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

1284 lines
1.2 MiB

This file contains ambiguous Unicode characters!

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

(self.webpackChunk=self.webpackChunk||[]).push([[4849],{89489:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},59477:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},40001:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},26227:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},49198:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},41464:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},73331:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},15277:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},52671:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},8657:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},56082:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},33853:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},15075:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},43531:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},61485:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},47472:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},87395:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(60499),Fe=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"},qe=fe,Se=ee(7657),ge=function(ce,Xe){return Fe.createElement(Se.Z,(0,b.Z)({},ce,{ref:Xe,icon:qe}))},Ee=Fe.forwardRef(ge),Ze=Ee},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Cn,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"}},4420:function(){"use strict"},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Cn={},Qt="5.0",ee={},b=null,Fe=!1,fe=!1,qe=null,Se=!1,ge=null,Ee=null,Ze=0;Ze<arguments.length;Ze++){var Pe=arguments[Ze];if(Pe!==null)switch(typeof Pe){case"number":Qt=Pe.toFixed(1);break;case"string":Pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Qt=Pe:qe=Pe;break;case"object":typeof Pe.is3D!="undefined"?b=Pe:ee=Pe;break;case"boolean":Fe=Pe,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&&(Fe=!0)),qe!==null&&ee.id===void 0&&(ee.id=qe);var ce="",Xe="",we=!1,St=null,tt=null,je=null,Me=!1,Ne=null,it=null,yt=null,Ot=null,We=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var Ie=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};Cn.setHTML5Codebase=function(ye,Ye){Ee=ye,Nt(ye,Ye)},Cn.setJavaCodebase=Cn.setJavaCodebaseVersion=Cn.isCompiledInstalled=Cn.setPreCompiledScriptPath=Cn.setPreCompiledResourcePath=function(){},Cn.setHTML5CodebaseVersion=function(ye,Ye){var lt=parseFloat(ye);if(lt!==NaN&&lt<5){console.log("The GeoGebra HTML5 codebase version "+lt+" is deprecated. Using version latest instead.");return}ge=ye,he(ye,Ye)},Cn.getHTML5CodebaseVersion=function(){return tt},Cn.getParameters=function(){return ee},Cn.setFontsCSSURL=function(ye){Ot=ye},Cn.setGiacJSURL=function(ye){},Cn.setJNLPFile=function(ye){ce=ye},Cn.setJNLPBaseDir=function(ye){},Cn.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",lt=ee.id,Xt,rt=!1,At=0;At<arguments.length;At++){var _e=arguments[At];typeof _e=="string"?(_e=_e.toLowerCase(),_e.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ye=_e:lt=arguments[At]):typeof _e=="boolean"?rt=_e:_e instanceof HTMLElement&&(Xt=_e)}Yt();function Yt(){if(!Se){setTimeout(Yt,200);return}Ye=Ut(Ye);var Ct=Xt||document.getElementById(lt);if(!Ct){console.log("possibly bug on ajax loading? ");return}if(Cn.removeExistingApplet(Ct,!1),ee.width===void 0&&Ct.clientWidth&&(ee.width=Ct.clientWidth),ee.height===void 0&&Ct.clientHeight&&(ee.height=Ct.clientHeight),!(ee.width&&ee.height)&&Ye==="html5"&&(delete ee.width,delete ee.height),St=Ye,Ye==="screenshot")Ve(Ct,ee);else{var ae=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?ae=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(ae=(!He()||ye())&&Ge()),ae?(St="screenshot",Dt(Ct,ee,rt,Ye)):at(Ct,ee,rt)}}};function He(){try{return window.self!==window.top}catch(ye){return!0}}function Ge(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Cn.getViews=function(){return b},Cn.isJavaInstalled=function(){return!1};var Et=function(ye){var Ye=function(At){var _e=JSON.parse(At),Yt=function(ne){return ne.type=="G"||ne.type=="E"},Ct=_e.elements?_e.elements.filter(Yt)[0]:_e;if(!Ct||!Ct.url){lt();return}ee.fileName=Ct.url,ut(Ct.settings||{}),b.is3D=!0;var ae="https://www.geogebra.org/images/";Cn.setPreviewImage(Ne||Ct.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),ye()},lt=function(){ee.onError&&ee.onError(),Jt("Error: Fetching material (id "+ee.material_id+") failed.",ee)},Xt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",rt="/materials/"+ee.material_id+"?scope=basic";et("https://"+Xt+"/api/proxy.php?path="+encodeURIComponent(rt),Ye,lt)};function ut(ye){var Ye=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(lt){ye[lt]=!!ye[lt]}),Ye.forEach(function(lt){ee[lt]===void 0&&ye[lt]!==void 0&&(ee[lt]=ye[lt])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function et(ye,Ye,lt){var Xt=new XMLHttpRequest;Xt.open("GET",ye),Xt.onload=function(){Ye(Xt.responseText)},Xt.onerror=lt,Xt.send()}Cn.isHTML5Installed=function(){return!0},Cn.getLoadedAppletType=function(){return St},Cn.setPreviewImage=function(ye,Ye,lt){Ne=ye,it=Ye,yt=lt},Cn.removeExistingApplet=function(ye,Ye){var lt;typeof ye=="string"&&(ye=document.getElementById(ye)),St=null;var Xt=null;for(lt=0;lt<ye.childNodes.length;lt++){var rt=ye.childNodes[lt],At=rt.className;At==="applet_screenshot"?Ye?(rt.style.display="block",St="screenshot"):rt.style.display="none":At!=="applet_scaler prerender"&&(ye.removeChild(rt),Xt=At&&At.indexOf("appletParameters")!=-1?rt.id:null,lt--)}var _e=ee.id!==void 0?ee.id:Xt,Yt=window[_e];Yt&&typeof Yt.getBase64=="function"&&(Yt.remove(),window[_e]=null)},Cn.refreshHitPoints=function(){if(Ie(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=Cn.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},Cn.startAnimation=function(){var ye=Cn.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},Cn.stopAnimation=function(){var ye=Cn.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},Cn.getAppletObject=function(){var ye=ee.id!==void 0?ee.id:"ggbApplet";return window[ye]},Cn.resize=function(){};var ot=function(ye,Ye,lt){var Xt=document.createElement("param");Xt.setAttribute("name",Ye),Xt.setAttribute("value",lt),ye.appendChild(Xt)},Ce=function(ye){return ye&&ye!=="false"},at=function(ye,Ye,lt){Ie(tt)<=4.2&&(lt=!0);var Xt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==tt||ggbHTML5LoadedCodebaseIsWebSimple&&!Me)&&(Xt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var rt=document.createElement("div");rt.classList.add("appletParameters","notranslate");var At=Ye.width,_e=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(Ie(tt)<=4.4)Ce(Ye.showToolBar)&&(Ye.height-=7),Ce(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&Ce(Ye.showToolBar)&&(Ye.width=605,At=605);else{var Yt=100;(Ce(Ye.showToolBar)||Ce(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),Yt=Ce(Ye.showMenuBar)?245:155),At<Yt&&(Ye.width=Yt,At=Yt)}rt.style.border="none",rt.style.display="inline-block";for(var Ct in Ye)Ye.hasOwnProperty(Ct)&&Ct!=="appletOnLoad"&&rt.setAttribute("data-param-"+Ct,Ye[Ct]);Ot&&rt.setAttribute("data-param-fontscssurl",Ot),Cn.resize=function(){GGBAppletUtils.responsiveResize(ye,Ye)},window.addEventListener("resize",function(nt){Cn.resize()});var ae=typeof Ye.appletOnLoad=="function"?Ye.appletOnLoad:function(){};if(!lt&&Ye.width!==void 0){Ye.hasOwnProperty("showSplash")||rt.setAttribute("data-param-showSplash","false");var ne=ye.querySelector(".applet_scaler.prerender"),te=ne!==null;if(te)var ie=ne.querySelector(".ggb_preview");else{var ie=st(At,_e,Ye.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=At+"px",ne.style.height=_e+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),Ie(tt)>=5?(Ye.appletOnLoad=function(nt){var bt=ye.querySelector(".ggb_preview");bt&&bt.parentNode.removeChild(bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(nt)},te||ne.appendChild(ie)):rt.appendChild(ie),ne.appendChild(rt),te||ye.appendChild(ne),setTimeout(function(){Cn.resize()},1)}else{var ue=document.createElement("div");ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.appendChild(rt),ye.appendChild(ue),Ye.appletOnLoad=function(nt){Cn.resize(),ae(nt)}}function re(nt,bt){bt&&typeof bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(nt,bt.appletOnLoad):renderGGBElement(nt),Jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",bt)}function le(nt,bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:nt,params:bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Oe){re(Oe.article,Oe.params)}),html5AppletsToProcess=null)},Ie(tt)<5&&(nt.className+=" geogebraweb")):re(nt,bt)}if(Xt){scriptLoadStarted=!0;for(var xe=0;xe<rt.childNodes.length;xe++){var ft=rt.childNodes[xe].tagName;ft==="TABLE"&&(rt.removeChild(rt.childNodes[xe]),xe--)}if(ggbHTML5LoadedScript!==null){var Ae=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ae!=null&&Ae.parentNode.removeChild(Ae)}var Le=document.createElement("script"),Qe=function(){le(rt,Ye)};Le.src=Xe+je,ggbHTML5LoadedCodebaseIsWebSimple=Me,ggbHTML5LoadedCodebaseVersion=tt,ggbHTML5LoadedScript=Le.src,Jt("GeoGebra HTML5 codebase loaded: '"+Xe+"'.",Ye),!Ee&&(!ge||ge=="5.0")?(Me?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Qe()):Xe.requirejs?__webpack_require__.e(4510).then(function(){var nt=[__webpack_require__(4510)];Qe.apply(null,nt)}.bind(this)).catch(__webpack_require__.oe):(Le.onload=Qe,ye.appendChild(Le))}else le(rt,Ye);Ye.height=_e,Ye.width=At},Ve=function(ye,Ye,lt){var Xt=st(Ye.width,Ye.height,Ye.borderColor,lt),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"+(lt?" applet_screenshot_play":""),rt.appendChild(Xt);var At=GGBAppletUtils.getScale(Ye,ye,lt);lt?(ye.appendChild(Ue()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(rt,"66%"),ye.appendChild(rt),At!==1&&!isNaN(At)&&(GGBAppletUtils.scaleElement(rt,At),rt.style.width=Ye.width+"px",rt.style.height=Ye.height+"px",rt.parentNode.style.width=Ye.width*At+"px",rt.parentNode.style.height=Ye.height*At+"px"),Cn.resize=function(){de(ye,Xt,rt,lt)},window.addEventListener("resize",function(_e){Cn.resize()}),Cn.resize()};function de(ye,Ye,lt,Xt){if(ye.contains(Ye)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var rt=GGBAppletUtils.getScale(ee,ye,Xt);lt.parentNode!==null&&(!isNaN(rt)&&rt!==1?(GGBAppletUtils.scaleElement(lt,rt),lt.parentNode.style.width=ee.width*rt+"px",lt.parentNode.style.height=ee.height*rt+"px"):(GGBAppletUtils.scaleElement(lt,1),lt.parentNode.style.width=ee.width+"px",lt.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Cn.onExitFullscreen=function(ye,Ye){Ye.appendChild(ye)};var Dt=function(ye,Ye,lt,Xt){Ve(ye,Ye,!0);for(var rt=function(){var Yt=[];for(_e=0;_e<ye.childNodes.length;_e++)Yt.push(ye.childNodes[_e]);if(window.GGBT_wsf_view){var Ct=window.GGBT_wsf_view.renderFullScreen(ye,Ye.id),ae=document.getElementById("fullscreencontainer"),ne=jQuery(ye).find(".fullscreencontent");ne.length>0?(Ct.remove(),ne.attr("id","fullscreencontent").show(),jQuery(ae).append(ne),window.dispatchEvent(new Event("resize"))):at(Ct,Ye,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else St=Xt,at(ye,Ye,!1);if(!window.GGBT_wsf_view)for(_e=0;_e<Yt.length;_e++)ye.removeChild(Yt[_e])},At=ye.getElementsByClassName("ggb_preview_play"),_e=0;_e<At.length;_e++)At[_e].addEventListener("click",rt,!1),At[_e].addEventListener("ontouchstart",rt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),Ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ue=function(){var ye=document.createElement("div");if(ye.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");}',lt=document.createElement("style");lt.styleSheet?lt.styleSheet.cssText=Ye:lt.appendChild(document.createTextNode(Ye)),document.getElementsByTagName("head")[0].appendChild(lt)}return ye},st=function(ye,Ye,lt,Xt){var rt=document.createElement("div");rt.className="ggb_preview",rt.style.position="absolute",rt.style.zIndex="90",rt.style.width=ye-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 At="lightgrey";lt!==void 0&&(lt==="none"?At="transparent":At=lt),rt.style.border="1px solid "+At;var _e=document.createElement("img");if(_e.style.position="relative",_e.style.zIndex="1000",_e.style.top="-1px",_e.style.left="-1px",Ne!==null&&_e.setAttribute("src",Ne),_e.style.opacity=.7,it!==null){var Yt,Ct,ae;if(!Xt){Yt=document.createElement("img"),Yt.style.position="absolute",Yt.style.zIndex="1001",Yt.style.opacity=1,_e.style.opacity=.3,Ct=360,Ct>ye/4*3&&(Ct=ye/4*3),ae=Ct/5.8,Yt.setAttribute("src",it),Yt.setAttribute("width",Ct),Yt.setAttribute("height",ae);var ne=(ye-Ct)/2,te=(Ye-ae)/2;Yt.style.left=ne+"px",Yt.style.top=te+"px",rt.appendChild(Yt)}}return rt.appendChild(_e),rt},Ut=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},Te=["web","webSimple","web3d","tablet","tablet3d","phone"],he=function(ye,Ye){if(tt=ye,Ye){Nt(tt,!0);return}var lt=!Fe;if(lt){var Xt=Ie(tt);!isNaN(Xt)&&Xt<4.4&&(lt=!1)}var rt,At;window.location.protocol.substr(0,4)==="http"?rt=window.location.protocol:rt="http:";var _e=tt.indexOf("//");_e>0?At=tt:_e===0?At=rt+tt:At="https://www.geogebra.org/apps/5.2.814.0/";for(var Yt in Te)if(tt.slice(Te[Yt].length*-1)===Te[Yt]||tt.slice((Te[Yt].length+1)*-1)===Te[Yt]+"/"){Nt(At,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&lt&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Ce(ee.showToolBar)&&!Ce(ee.showMenuBar)&&!Ce(ee.showAlgebraInput)&&!Ce(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?At+="webSimple/":At+="web3d/",Nt(At,!1)},Nt=function(ye,Ye){if(ye.requirejs){Xe=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),Xe=ye,Ye===null&&(Ye=ye.indexOf("http")===-1),we=Ye,je="web.nocache.js",Me=!1;var lt=Xe.split("/");lt.length>1&&(!Ye&&lt[lt.length-2]==="webSimple"?(je="webSimple.nocache.js",Me=!0):Te.indexOf(lt[lt.length-2])>=0&&(je=lt[lt.length-2]+".nocache.js")),lt=ye.split("/"),tt=lt[lt.length-3],tt.substr(0,4)==="test"?tt=tt.substr(4,1)+"."+tt.substr(5,1):(tt.substr(0,3)==="war"||tt.substr(0,4)==="beta")&&(tt="5.0");var Xt=parseFloat(tt);Xt!==NaN&&Xt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Xt+" is deprecated. Using version latest instead."),he("5.0",Ye))},Jt=function(ye,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(ye)};ee.material_id!==void 0?Et(Ft):Ft();function Ft(){var ye=Qt;ge!==null?ye=ge:parseFloat(ye)<5&&(ye="5.0"),he(ye,!1),Ee!==null&&Nt(Ee,we),Se=!0}return Cn},GGBAppletUtils=function(){"use strict";function Cn(){return window.GGBT_wsf_edit!==void 0}function Qt(Se,ge){ge!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+ge+","+ge+")",Se.style.webkitTransform="scale("+ge+","+ge+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function ee(Se,ge,Ee,Ze,Pe,ce){var Xe=null;if(ce!=null&&ce!="")for(var we=Se.parentNode;we!=null;)if((" "+we.className+" ").indexOf(" "+ce+" ")>-1){Xe=we;break}else we=we.parentNode;var St=0,tt=0,je=0,Me=0,Ne=0,it=0,yt=0;if(Xe)St=Xe.offsetWidth,tt=Math.max(Ze?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(St=Math.min(window.innerWidth,document.documentElement.clientWidth),tt=Math.min(window.innerHeight,document.documentElement.clientHeight),je=St):(St=window.innerWidth,tt=window.innerHeight,je=window.innerWidth),Se){var Ot=Se.getBoundingClientRect();Ot.left>0&&Ot.left<=St&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(Ne=St-Ot.width-Ot.left,it=je<=480?10:30):(it=Ot.left,Ne=je<=480?10:30),Me=it+Ne)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var We=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me=40,yt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me=0,yt=40)}}return Se&&((Ee===void 0||!Ee)&&ge>0&&ge+Me<St?St=ge:St-=Me,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ee===void 0||!Ee)&&(tt-=yt)),{width:St,height:tt}}function b(Se,ge,Ee,Ze,Pe){if(Se.isScreenshoGenerator)return 1;var ce=Ze!==void 0&&Ze,Xe=Se.noScaleMargin!=null&&Se.noScaleMargin,we=function(We){return We&&We!=="false"},St=we(Se.autoHeight),tt=ee(ge,Se.width,Ee,St,ce&&window.GGBT_wsf_view||Xe,Pe),je=parseInt(tt.width),Me=Se.width,Ne=Se.height;if(Me===void 0){var it=ge.querySelector(".appletParameters");it&&(Me=it.offsetWidth,Ne=it.offsetHeight)}var yt=je/Me,Ot=ce?1:tt.height/Ne;return Ee!==void 0&&!Ee&&(yt=Math.min(1,yt),Ot=Math.min(1,Ot)),Math.min(yt,Ot)}function Fe(Se,ge,Ee){var Ze=1,Pe,ce=!1;if(Se.hasOwnProperty("allowUpscale")&&(ce=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Ze=parseFloat(Se.scale),(isNaN(Ze)||Ze===null||Ze===0)&&(Ze=1),Ze>1&&(ce=!0)),ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Pe=b(Se,ge,ce,Ee,Se.scaleContainerClass);else return Ze;return ce&&(!Se.hasOwnProperty("scale")||Ze===1)?Pe:Math.min(Ze,Pe)}function fe(Se){var ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Ee=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=Se.getBoundingClientRect(),Pe=(ge-Ze.width)/2,ce=(Ee-Ze.height)/2;ce<0&&(ce=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?Se.style.left="40px":Se.style.left=Pe+"px",Se.style.top=ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ce<40?Se.style.top="40px":Se.style.top=ce+"px",Se.style.left=Pe+"px")}function qe(Se,ge){var Ee=Se.querySelector(".appletParameters");if(Ee){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ge.id!==Ee.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(Ee.parentElement&&/fullscreen/.test(Ee.parentElement.className))return;var Ze=Fe(ge,Se);Cn()&&Ee.setAttribute("data-param-scale",Ze);for(var Pe=null,ce=0;ce<Se.childNodes.length;ce++)if(Se.childNodes[ce].className!==void 0&&Se.childNodes[ce].className.match(/^applet_scaler/)){Pe=Se.childNodes[ce];break}if(Pe!==null&&Pe.querySelector(".noscale")!==null)return;var Xe=ge.id!==void 0?ge.id:"ggbApplet",we=window[Xe];(we==null||!we.recalculateEnvironments)&&Pe!==null&&!Pe.className.match(/fullscreen/)&&(Pe.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(Pe.parentNode.style.width=ge.width*Ze+"px",Pe.parentNode.style.height=ge.height*Ze+"px",Qt(Pe,Ze)):(Qt(Pe,1),Pe.parentNode.style.width=ge.width+"px",Pe.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&fe(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ee).parents(".content-added-content"))}}return{responsiveResize:qe,isFlexibleWorksheetEditor:Cn,positionCenter:fe,getScale:Fe,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 Cn=n.location.search;return Cn.indexOf(J)!=-1||Cn.indexOf(K)!=-1}function q(Cn,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(Cn){var Qt=s[L].bindings;s[L].bindings=function(){for(var ee=Qt?Qt():{},b=Cn[webModule.__softPermutationId],Fe=O;Fe<b.length;Fe++){var fe=b[Fe];ee[fe[O]]=fe[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var Cn=o.createElement(Q);if(Cn.id=L,Cn.style.cssText=R+S,Cn.tabIndex=-1,o.body.appendChild(Cn),t=Cn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Qt=document.compatMode==U?V:W;t.write(Qt+X),t.close()}}}function w(Cn){function Qt(b){function Fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var fe=Fe();if(fe){b();return}function qe(){if(!fe){if(!Fe())return;fe=!0,b(),o.removeEventListener&&o.removeEventListener(Z,qe,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,qe,!1);var Se=setInterval(function(){qe()},$)}function ee(b){var Fe=u(),fe=Fe.body,qe=Fe.createElement(_);qe.language=ab,qe.crossOrigin=W,qe.src=b,webModule.__errFn&&(qe.onerror=function(){webModule.__errFn(L,new Error(bb+b))}),fe.appendChild(qe)}Qt(function(){ee(Cn)})}webModule.__startLoadingFragment=function(Cn){return C(Cn)},webModule.__installRunAsyncCode=function(Cn){var Qt=u(),ee=Qt.body,b=Qt.createElement(_);b.language=ab,b.text=Cn,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(Cn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Cn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Cn){var Qt=c[Cn];return Qt==null?null:Qt},r=d,webModule.__errFn=e}function B(){function Cn(Se){var ge=Se.lastIndexOf(rb);ge==-1&&(ge=Se.length);var Ee=Se.indexOf(sb);Ee==-1&&(Ee=Se.length);var Ze=Se.lastIndexOf(tb,Math.min(Ee,ge));return Ze>=O?Se.substring(O,Ze+P):W}function Qt(Se){if(!Se.match(/^\w+:\/\//)){var ge=o.createElement(ub);ge.src=Se+vb,Se=Cn(ge.src)}return Se}function ee(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function b(){for(var Se=o.getElementsByTagName(_),ge=O;ge<Se.length;++ge)if(Se[ge].src.indexOf(xb)!=-1)return Cn(Se[ge].src);return W}function Fe(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function fe(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var qe=ee();return qe==W&&(qe=b()),qe==W&&(qe=Fe()),qe==W&&fe()&&(qe=Cn(o.location.href)),qe=Qt(qe),qe}function C(Cn){return Cn.match(/^\//)||Cn.match(/^[a-zA-Z]+:\/\//)?Cn:webModule.__moduleBase+Cn}function D(){var Cn=[],Qt=O,ee=[],b=[];function Fe(Se){var ge=b[Se](),Ee=ee[Se];if(ge in Ee)return ge;var Ze=[];for(var Pe in Ee)Ze[Ee[Pe]]=Pe;throw r&&r(Se,Ze,ge),null}if(__gwt_isKnownPropertyValue=function(Se,ge){return ge in ee[Se]},webModule.__getPropMap=function(){var Se={};for(var ge in ee)ee.hasOwnProperty(ge)&&(Se[ge]=Fe(ge));return Se},webModule.__computePropValue=Fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var fe;try{fe=Cb;var qe=fe.indexOf(Db);qe!=-1&&(Qt=parseInt(fe.substring(qe+P),$),fe=fe.substring(O,qe))}catch(Se){}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})()},23216:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Ax:function(){return qe},Ds:function(){return Se},KI:function(){return Ee},SI:function(){return fe},f1:function(){return Fe}});var b=ee(14185);function Fe(Ze){let Pe=!0;if(Ze.length>0){for(let ce=0;ce<Ze.length;ce++)if(Ze[ce].compile_success==0||!Ze[ce].compile_success){Pe=!1;break}}else Pe=!1;return Pe}function fe(Ze,Pe=""){let ce=[];for(let Xe=0;Xe<Ze.length;Xe++){let we=Ze[Xe],St=Pe?`${Pe}/${we.name}`:`${we.name}`;ce.push({title:we.name,type:we.type,isLeaf:we.type!=="tree",key:St})}return ce}function qe(Ze,Pe,ce){for(let Xe=0;Xe<Ze.length;Xe++){let we=Ze[Xe];if(we.key===Pe){we.children=ce;break}we.children&&qe(we.children,Pe,ce)}return Ze}function Se(Ze,Pe,ce){let Xe;return function(){let we=this,St=arguments,tt=function(){Xe=null,ce||Ze.apply(we,St)},je=ce&&!Xe;clearTimeout(Xe),Xe=setTimeout(tt,Pe),je&&Ze.apply(we,St)}}const ge=!0,Ee=b.Z.API_SERVER},42075:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return tt}});var b=ee(7939),Fe=ee(59301),fe=Object.defineProperty,qe=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Pe=(je,Me,Ne)=>Me in je?fe(je,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):je[Me]=Ne,ce=(je,Me)=>{for(var Ne in Me||(Me={}))Ee.call(Me,Ne)&&Pe(je,Ne,Me[Ne]);if(ge)for(var Ne of ge(Me))Ze.call(Me,Ne)&&Pe(je,Ne,Me[Ne]);return je},Xe=(je,Me)=>qe(je,Se(Me)),we=(je,Me)=>{var Ne={};for(var it in je)Ee.call(je,it)&&Me.indexOf(it)<0&&(Ne[it]=je[it]);if(je!=null&&ge)for(var it of ge(je))Me.indexOf(it)<0&&Ze.call(je,it)&&(Ne[it]=je[it]);return Ne},St=(je,Me,Ne)=>new Promise((it,yt)=>{var Ot=He=>{try{Ie(Ne.next(He))}catch(Ge){yt(Ge)}},We=He=>{try{Ie(Ne.throw(He))}catch(Ge){yt(Ge)}},Ie=He=>He.done?it(He.value):Promise.resolve(He.value).then(Ot,We);Ie((Ne=Ne.apply(je,Me)).next())});const tt=je=>{var Me=je,{children:Ne}=Me,it=we(Me,["children"]);const[yt,Ot]=(0,Fe.useState)(!1);return Fe.createElement(b.ZP,Xe(ce({},it),{loading:yt,onClick:We=>St(void 0,null,function*(){try{Ot(!0),yield it.onClick(We),Ot(!1)}catch(Ie){console.error(Ie),Ot(!1)}})}),Ne)}},40254:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Xe}});var b=ee(59301),Fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},fe=ee(92310),qe=ee.n(fe),Se=ee(29787),ge=ee(2859),Ee=ee(49317),Ze=ee(76406),Pe=(we,St,tt)=>new Promise((je,Me)=>{var Ne=Ot=>{try{yt(tt.next(Ot))}catch(We){Me(We)}},it=Ot=>{try{yt(tt.throw(Ot))}catch(We){Me(We)}},yt=Ot=>Ot.done?je(Ot.value):Promise.resolve(Ot.value).then(Ne,it);yt((tt=tt.apply(we,St)).next())}),Xe=({data:we,className:St,fullWidth:tt,style:je={},onClose:Me,onOk:Ne,showFullTools:it,noAssociationId:yt})=>{const Ot=(0,b.useRef)(null),We=(0,b.useRef)(null),Ie=(0,b.useRef)(null),He=(0,b.useRef)(null),[Ge,Et]=(0,b.useState)(!1),[ut,et]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>(Ie.current||(Ie.current=document.createElement("style"),document.head.appendChild(Ie.current)),we!=null&&we.visible?(document.body.setAttribute("data-custom","y-hidden"),Ie.current.innerHTML=" html { overflow-y: hidden; }",we!=null&&we.src&&ot()):(document.body.removeAttribute("data-custom"),Ie.current&&(document.head.removeChild(Ie.current),Ie.current=null)),()=>{document.body.removeAttribute("data-custom"),Ie.current&&(document.head.removeChild(Ie.current),Ie.current=null)}),[we==null?void 0:we.visible]);const ot=()=>Pe(void 0,null,function*(){Et(!0),et("\u6B63\u5728\u52A0\u8F7D\u4E2D");const de=yield(0,Ze.ZJ)(we==null?void 0:we.src);Ot.current.src="",Ot.current.src=de,Ot.current.onload=function(){Ve()},Et(!1),et("")}),Ce=de=>Pe(void 0,null,function*(){Et(!0),et("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Dt=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:we.title,file:de.dataUrl}});Dt!=null&&Dt.id&&!yt?(yield(0,Ee.ZP)(`/api/attachments/${we.id}/add_subitem.json`,{method:"post",body:{subitem_id:Dt==null?void 0:Dt.id,settings:JSON.stringify(de.state)}})).status===0&&Ne():Dt!=null&&Dt.id&&Ne(Dt),Et(!1),et("")}),at=()=>{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(Ue=>{const st=document.querySelector(Ue.name);st&&st.setAttribute("title",Ue.title)})},Ve=()=>{We.current=new ge.hP(Ot.current),We.current.targetRoot=He.current,We.current.addEventListener("render",Ce),We.current.addEventListener("beforeclose",Me),it&&(We.current.availableMarkerTypes=We.current.ALL_MARKER_TYPES,We.current.uiStyleSettings.redoButtonVisible=!0,We.current.uiStyleSettings.notesButtonVisible=!0,We.current.uiStyleSettings.zoomButtonVisible=!0,We.current.uiStyleSettings.zoomOutButtonVisible=!0,We.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=We.current.uiStyleSettings,We.current.show(),we!=null&&we.snapshotData&&We.current.restoreState(we.snapshotData),setTimeout(()=>{window.scrollTo(0,0),at()},300)};return b.createElement(b.Fragment,null,(we==null?void 0:we.visible)&&b.createElement(Se.Z,{spinning:Ge,tip:ut,style:{position:"absolute",width:"100vw"}},b.createElement("div",{ref:He,className:qe()(Fe.imageDimensions,St,tt?Fe.fullWidth:""),style:je},b.createElement("img",{className:Fe.img,ref:Ot}))))}},9057:function(Cn,Qt,ee){"use strict";var b=ee(59301),Fe=ee(77019),fe=ee(5269),qe=ee(31691),Se=ee(7939),ge=ee(35883),Ee=ee(74501),Ze=ee(48136),Pe=ee(59301);const ce=(0,b.forwardRef)(({callback:Xe,showSaveButton:we,value:St=""},tt)=>{const je=(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 "}]}]}],Ne=[{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}`}]}]}],it=We=>{je.current.setValue(je.current.getValue()+" "+We.value+" ")},yt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(Fe.Z,{className:Ee.Z.lists,gutter:[10,10]},Me.map((We,Ie)=>Pe.createElement(fe.Z,{flex:"110px",className:Ee.Z.item},Pe.createElement("div",null,Pe.createElement(ge.Z,{value:`$$${We.value}$$`}),We.name),Pe.createElement("div",{className:Ee.Z.children},We.children.map((He,Ge)=>Pe.createElement("div",{key:Ge},Pe.createElement("h1",null,He.name),Pe.createElement(Fe.Z,{gutter:[10,10]},He.data.map((Et,ut)=>Pe.createElement(fe.Z,{key:ut,onClick:()=>it(Et),className:Ee.Z.diamond},Pe.createElement(ge.Z,{value:"`$$"+Et.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(Fe.Z,{className:Ee.Z.lists,gutter:[10,10]},Ne.map((We,Ie)=>Pe.createElement(fe.Z,{flex:"110px",className:Ee.Z.item},Pe.createElement("div",null,Pe.createElement(ge.Z,{value:"`$$"+We.value+"$$`"}),We.name),Pe.createElement("div",{className:Ee.Z.children},We.children.map((He,Ge)=>Pe.createElement("div",{key:Ge},He.name&&Pe.createElement("h1",null,He.name),Pe.createElement(Fe.Z,{gutter:[10,10]},He.data.map((Et,ut)=>Pe.createElement(fe.Z,{key:ut,onClick:()=>it(Et),className:Ee.Z.diamond},Pe.createElement(ge.Z,{value:"`$$"+Et.value+"$$`"}))))))))))}],Ot=()=>{var We=document.createElement("div");We.innerHTML=je.current.getValue();var Ie=We.innerText;return Xe&&Xe(Ie),Ie};return(0,b.useImperativeHandle)(tt,()=>({getData:Ot})),Pe.createElement("div",{className:Ee.Z.mathWrap},Pe.createElement(qe.default,{defaultActiveKey:"1",items:yt}),Pe.createElement("math-field",{locale:"zh_cn",className:Ee.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:je,style:{width:800,marginTop:30,fontSize:18}},St||""),we&&Pe.createElement("div",{className:Ee.Z.button},Pe.createElement(Se.ZP,{size:"large",onClick:Ot,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Qt.Z=ce},90736:function(Cn,Qt,ee){"use strict";var b=ee(59301),Fe=ee(4977),fe=ee(7939),qe=Object.defineProperty,Se=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,ce=(tt,je,Me)=>je in tt?qe(tt,je,{enumerable:!0,configurable:!0,writable:!0,value:Me}):tt[je]=Me,Xe=(tt,je)=>{for(var Me in je||(je={}))Ze.call(je,Me)&&ce(tt,Me,je[Me]);if(Ee)for(var Me of Ee(je))Pe.call(je,Me)&&ce(tt,Me,je[Me]);return tt},we=(tt,je)=>Se(tt,ge(je));const St=({img:tt,buttonProps:je={},styles:Me={},customText:Ne,ButtonText:it,ButtonClick:yt,Buttonclass:Ot,ButtonTwo:We,imgStyles:Ie,loading:He=!1,className:Ge=""})=>b.createElement("section",{className:`tc animated fadeIn ${Ge}`,style:Xe({color:"#999",margin:"100px auto",visibility:He?"hidden":"visible"},Me)},b.createElement("img",{src:tt||Fe,style:we(Xe({},Ie),{pointerEvents:"none",userSelect:"none"})}),b.createElement("p",{className:"mt20 font14"},Ne||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),it&&b.createElement(fe.ZP,Xe({className:Ot,onClick:yt},je),it),We&&We);Qt.Z=St},86974:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ot}});var b=ee(59301),Fe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},fe=ee(7939),qe=ee(70557),Se=ee(34728),ge=ee(25399),Ee=ee(76406),Ze=ee(84849),Pe=ee(90736),ce=ee(14185),Xe=ee(52078),we=ee(59301),St=Object.defineProperty,tt=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ne=(We,Ie,He)=>Ie in We?St(We,Ie,{enumerable:!0,configurable:!0,writable:!0,value:He}):We[Ie]=He,it=(We,Ie)=>{for(var He in Ie||(Ie={}))je.call(Ie,He)&&Ne(We,He,Ie[He]);if(tt)for(var He of tt(Ie))Me.call(Ie,He)&&Ne(We,He,Ie[He]);return We},yt=(We,Ie,He)=>new Promise((Ge,Et)=>{var ut=Ce=>{try{ot(He.next(Ce))}catch(at){Et(at)}},et=Ce=>{try{ot(He.throw(Ce))}catch(at){Et(at)}},ot=Ce=>Ce.done?Ge(Ce.value):Promise.resolve(Ce.value).then(ut,et);ot((He=He.apply(We,Ie)).next())}),Ot=({editOffice:We="view",data:Ie,issaver:He,onSaver:Ge,theme:Et,type:ut,filename:et,monacoEditor:ot,className:Ce,style:at,close:Ve,onClose:de,hasMask:Dt,disabledDownload:Ue,onImgDimensions:st,showNodata:Ut,recordInfo:Te})=>{const[he,Nt]=(0,b.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Jt,Ft]=(0,b.useState)(""),[ye,Ye]=(0,b.useState)(),lt=window.ENV==="build"?"/react/build":"",Xt=location.host.startsWith("localhost")?ce.Z.PROXY_SERVER:ce.Z.API_SERVER,At=10*(1024*1024),_e=(0,b.useRef)();Ie!=null&&Ie.startsWith("/api")&&ut!=="txt"&&(Ie=ce.Z.API_SERVER+Ie);const Yt=ue=>ue.substring(ue.lastIndexOf("/")+1).split(".").pop();et&&ot&&(ot.filename=et),(0,b.useEffect)(()=>{var ue,re;const le=(re=(ue=document.cookie)==null?void 0:ue.replace(/\s/g,""))==null?void 0:re.split(";");le==null||le.map(xe=>{let ft=xe.split("=");ft[0]==="_educoder_session"&&Ft(ft[1])})},[]),(0,b.useEffect)(()=>{ut==="office"&&(Ie.indexOf("bigfilescdn.")>-1||Ie.indexOf("bigfiles1")>-1?Ye({url:Ie,fileType:Yt(Ie),model:Ie.indexOf("model=edit")?"edit":"view"}):Ie.indexOf("coze")>-1?Ye({url:Ie,fileType:"doc",model:"view"}):ae())},[ut,Ie]);function Ct(ue){return yt(this,null,function*(){ue.data.type==="pdfdata"&&(Ge(ue.data.data),window.removeEventListener("message",Ct,!1)),console.log("mess---:",ue.data)})}const ae=()=>yt(void 0,null,function*(){console.log("data:",Ie);let ue=Ie;Ie.startsWith("http")||(ue=location.origin+ue);let re=new URL(ue).pathname.split("/").pop();const le=yield(0,Ze.gJ)({attachment_id:re});le.url=Xt+le.url,Ye(le)}),ne=()=>{if(Ie.startsWith("http")||Ie.startsWith("blob:")){te();return}(0,Ee.Sv)(et||"educoder",Ie,et)},te=()=>{Te&&(0,Xe.fc)({id:Te==null?void 0:Te.id,watch_type:1,course_id:Te==null?void 0:Te.course_id}),(0,Ee.Nd)(et||"educoder",decodeURIComponent(Ie))};(0,b.useEffect)(()=>(window.addEventListener("message",ie),()=>{window.removeEventListener("message",ie)}),[]);const ie=ue=>{var re;((re=ue==null?void 0:ue.data)==null?void 0:re.type)==="closePop"&&de()};return we.createElement("div",{style:it({},at||{}),className:`${Dt&&Fe.bgBlack} ${ut?Fe.wrp:"hide"}`},!!ut&&Ve&&we.createElement("div",{id:"closePop",className:Fe.close,ref:_e},!!st&&we.createElement(ge.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>_e.current},we.createElement("span",{onClick:()=>{de(),st()}},we.createElement("i",{className:"icon-yulanpizhu"}))),!Ue&&window.parent===window&&we.createElement(ge.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>_e.current},we.createElement("span",{onClick:te},we.createElement("i",{className:"icon-quxiaozhiding"}))),He&&we.createElement(ge.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>_e.current},we.createElement("span",{className:"",onClick:()=>{const ue=document.getElementById("pdfiframe");window.addEventListener("message",Ct,!1),setTimeout(()=>{ue.contentWindow.postMessage("getData","*")},300)}},we.createElement("i",{className:"icon-baocun"}))),we.createElement(ge.Z,{title:"\u5173\u95ED",getPopupContainer:()=>_e.current},we.createElement("span",{className:"",onClick:()=>{de()}},we.createElement("i",{className:"icon-guanbi1"})))),we.createElement("div",{className:`${Fe[Ce]} ${Ce} ${Fe.monaco} ${ut==="txt"?"show":"hide"}`},ut==="txt"&&we.createElement(we.Fragment,null,we.createElement(Se.ZP,it({},ot)))),ut==="audio"&&we.createElement("audio",{controls:!0,src:`${(Ie==null?void 0:Ie.indexOf("http://"))>-1||(Ie==null?void 0:Ie.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ie}`,autoPlay:!0}),ut==="video"&&we.createElement(we.Fragment,null,(Ie==null?void 0:Ie.indexOf("http"))>-1?we.createElement("video",{controls:!0,src:`${Ie}`,autoPlay:!0}):we.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ie}`,autoPlay:!0})),ut==="office"&&ye&&we.createElement("iframe",{src:`${lt}/office.html?key=${ye.key}&url=${btoa(ye.url)}&callbackUrl=${Xt+(ye.callbackUrl||"")}&fileType=${ye.fileType}&title=${ye.title||""}&model=${We}&officeServer=${ce.Z.ONLYOFFICE}&disabledDownload=${!!Ue}`}),ut==="html"&&we.createElement("iframe",{src:Ie+"&disposition=inline"}),ut==="pdf"&&we.createElement("iframe",{id:"pdfiframe",src:`${lt}/js/pdf/index.html?filename=${et||"educoder.pdf"}&url=${encodeURIComponent(Ie)}&disabledDownload=${!!Ue}&model=${We}`}),ut==="image"&&we.createElement("img",{src:`${(Ie==null?void 0:Ie.indexOf("http://"))>-1||(Ie==null?void 0:Ie.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ie}`}),(ut==="other"||ut==="download")&&we.createElement(we.Fragment,null,Ut?we.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:we.createElement(fe.ZP,{icon:we.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:Ue},"\u4E0B\u8F7D")}):we.createElement(fe.ZP,{type:"primary",size:"middle",onClick:ne,disabled:Ue},we.createElement(qe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ut==="flowChart"&&we.createElement("div",{className:"embed"},we.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ie||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(Cn,Qt,ee){"use strict";ee.d(Qt,{z:function(){return ot},Z:function(){return Ce}});var b=ee(59301),Fe=ee(46214),fe=ee(20047),qe=ee(64018),Se=ee(16471),ge=ee(14185),Ee=ee(76406),Ze=ee(15342),Pe=ee(44104),ce=ee(7939),Xe=ee(1012),we=ee(86974),St=ee(59301),je=({html:at})=>{const Ve=(0,b.useRef)(null),de=(0,b.useRef)(null),Dt=`.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 Ue=Ve.current.attachShadow({mode:"open"});de.current=document.createElement("div"),de.current.className="markdown-body",de.current.innerHTML=at,Ue.appendChild(de.current);const st=document.createElement("style");return st.textContent=Dt,Ue.appendChild(st),()=>{Ue.innerHTML=""}},[]),(0,b.useEffect)(()=>{de.current&&(de.current.innerHTML=at)},[at]),St.createElement("div",{ref:Ve})};function Me(at){const Ve=["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(${Ve.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Dt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return at.replace(de,"").replace(Dt,"").trim()}var Ne={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},it=Object.defineProperty,yt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ie=(at,Ve,de)=>Ve in at?it(at,Ve,{enumerable:!0,configurable:!0,writable:!0,value:de}):at[Ve]=de,He=(at,Ve)=>{for(var de in Ve||(Ve={}))Ot.call(Ve,de)&&Ie(at,de,Ve[de]);if(yt)for(var de of yt(Ve))We.call(Ve,de)&&Ie(at,de,Ve[de]);return at};const Ge="@\u2581\u2581@",Et="@\u2581@",ut=/<pre[^>]*>/g;function et(at){let Ve=document.createElement("div");return Ve.innerHTML=at,Ve.childNodes.length===0?"":Ve.childNodes[0].nodeValue}const ot=(at,Ve)=>{at=at||"";const de=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Dt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ue=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,st=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ve?at.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(de,(Ut,Te,he,Nt,Jt,Ft,ye)=>{const Ye=Te||Nt||Ft,lt=he||Jt||ye||"?";return ge.Z.API_SERVER+"/api/attachments/"+Ye+lt+"&t="+(0,Ee.Jn)(Ye,Date.now())+(Ut.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(at=at.replace(st,(Ut,Te,he,Nt,Jt,Ft,ye)=>{const Ye=Te||Nt||Ft,lt=he||Jt||ye||"?";return ge.Z.API_SERVER+"/attachments/download/"+Ye+lt+"&t="+(0,Ee.Jn)(Ye,Date.now())+(Ut.indexOf(")")>-1?")":"&")}).replace(de,(Ut,Te,he,Nt,Jt,Ft,ye)=>{const Ye=Te||Nt||Ft,lt=he||Jt||ye||"?";return ge.Z.API_SERVER+"/api/attachments/"+Ye+lt+"&t="+(0,Ee.Jn)(Ye,Date.now())+(Ut.indexOf(")")>-1?")":"&")}).replace(Dt,(Ut,Te,he,Nt,Jt)=>{const Ft=Te||Nt,ye=he||Jt||"";return'"'+ge.Z.API_SERVER+"/api/attachments/"+Ft+ye+Ft+ye+"&t="+(0,Ee.Jn)(Ft,Date.now())}).replace(Ue,(Ut,Te,he,Nt,Jt)=>{const Ft=Te||Nt,ye=he||Jt||"";return"("+ge.Z.API_SERVER+"/files/uploads/"+Ft+ye+Ft+ye+"&t="+(0,Ee.Jn)(Ft,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,`
`),at)};var Ce=({value:at="",edit:Ve=!1,className:de,showTextOnly:Dt,showLines:Ue,style:st={},stylesPrev:Ut={},highlightKeywords:Te,showProgramFill:he,isProgramFill:Nt,disabledFill:Jt=!1,programFillValue:Ft,openEditor:ye=()=>{},onFillChange:Ye=rt=>{},onFillBlur:lt=()=>{},onFillFocus:Xt=()=>{}})=>{let rt=Me(String(at||""));const At=(0,b.useRef)(),_e=(0,b.useRef)(),[Yt,Ct]=(0,b.useState)(""),[ae,ne]=(0,b.useState)("office"),[te,ie]=(0,b.useState)([]),ue=(0,b.useRef)("a"+(0,Xe.Z)()),re={},le=Tt=>/<style[\s\S]*?>/i.test(Tt||""),xe=(Tt,an,Wt)=>{const Ke=document.createElement(Tt===Et?"input":"textarea");Ke.style.width="100%",Ke.style.height=Tt===Et?"40px":"151px",Ke.rows=5,Ke.spellcheck=!1,Ke.name="edu-program-fill",Ke.placeholder="\u8BF7\u8F93\u5165",Ke.dataset.id=an;const mt=Object.keys(re).length;return re[mt]=Ke,`<span class="edu-program-fill-wrap ${Tt===Et?"":"show"}" style="width:${Tt===Et?"600px":"100%"}" title=${Wt||""}><span>${Ke.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ft(Tt){return Tt=Tt.replace(/!\[.*?\]\(.*?\)/g,""),Tt=Tt.replace(/\[.*?\]\(.*?\)/g,""),Tt=Tt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Tt=Tt.replace(/<embed.*?>/g,""),Tt=Tt.replace(/<img.*?>/g,""),Tt=Tt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Tt=Tt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Tt=Tt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Tt=Tt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Tt}const Ae=Tt=>!Dt&&le(rt)?Tt:Tt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(an,Wt){let Ke=Wt.replace(/(\n|\r)/g,"").split("}"),mt=[];return Ke.map($t=>{$t!=""&&mt.push(`.${ue.current} ${$t}`)}),`<style>${mt.join("}")}</style>`}),Le=(0,b.useMemo)(()=>{(0,fe.Iy)();try{const Ke=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,mt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$t=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,nn=/\(\/attachments\/download\//g;rt=rt.replace(nn,"("+ge.Z.API_SERVER+"/attachments/download/").replace(Ke,"("+ge.Z.API_SERVER+"/api/attachments/").replace(mt,'"'+ge.Z.API_SERVER+"/api/attachments/").replace($t,'"'+ge.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,`
`),At.current.style.display="none"}catch(Ke){}if(he){let Ke=-1;return rt=rt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(mt,$t,nn){var Re;return++Ke,xe(mt,Ke,(Re=Ft==null?void 0:Ft[Ke])==null?void 0:Re.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Ae(rt||"")}</pre>`}let Tt=Ae(rt);Tt=(0,fe.ZP)(Tt);const an=(0,fe.ez)();rt.match(/\[TOC\]/)&&(Tt=Tt.replace("<p>[TOC]</p>",(0,fe.Qv)()),(0,fe.Iy)()),Tt=Tt.replace(/(__special_katext_id_\d+__)/g,(Ke,mt)=>{const{type:$t,expression:nn}=an[mt];return(0,Ze.renderToString)(et(nn)||"",{displayMode:$t==="block",throwOnError:!1,output:"html"})}),Tt=Tt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,fe.AL)();const Wt=document.createElement("div");if(Wt.innerHTML=Tt,Dt)return Wt.innerText;if(Te){const Ke=Te.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Oe(Wt,Ke),Wt.innerHTML}return setTimeout(()=>Zt(),500),Wt.innerHTML},[rt,Te]);(0,b.useEffect)(()=>{Be.current&&Be.current.querySelectorAll(["input","textarea"]).forEach(an=>{an.oninput=Qe,an.onblur=nt,an.onfocus=bt})},[te]),(0,b.useEffect)(()=>{var Tt,an,Wt,Ke,mt;if(Ft!=null&&Ft.length)try{const $t=Be.current.querySelectorAll(".edu-program-fill-score"),nn=Be.current.querySelectorAll('[name="edu-program-fill"]');for(const[Re,pt]of nn.entries())pt.value=((Tt=Ft==null?void 0:Ft[Re])==null?void 0:Tt.value)||"",((an=Ft==null?void 0:Ft[Re])==null?void 0:an.type)==="warning"?pt.className="program-fill-warning":((Wt=Ft==null?void 0:Ft[Re])==null?void 0:Wt.type)==="success"?pt.className="program-fill-success":pt.className="";for(const[Re,pt]of $t.entries())pt.innerHTML=(Ke=Ft==null?void 0:Ft[Re])!=null&&Ke.score?`${(mt=Ft==null?void 0:Ft[Re])==null?void 0:mt.score}\u5206`:"";ie(Ft)}catch($t){console.log($t,"error")}},[Ft]);const Qe=Tt=>{te[Tt.target.dataset.id]=te[Tt.target.dataset.id]||{},te[Tt.target.dataset.id].value=Tt.target.value,ie([...te]),Ye(te,Tt.target.dataset.id)},nt=Tt=>{te[Tt.target.dataset.id]=te[Tt.target.dataset.id]||{},te[Tt.target.dataset.id].value=Tt.target.value,ie([...te]),lt(te,Tt.target.dataset.id)},bt=Tt=>{te[Tt.target.dataset.id]=te[Tt.target.dataset.id]||{},te[Tt.target.dataset.id].value=Tt.target.value,ie([...te]),Xt(te,Tt.target.dataset.id)};function Oe(Tt,an){return Tt.childNodes.forEach(Wt=>{var Ke;if(Wt.childNodes.length>0)Oe(Wt,an);else if(Wt.nodeName!=="IMG")if(Wt.innerHTML)Wt.innerHTML=(Ke=Wt.innerHTML)==null?void 0:Ke.replace(new RegExp(an,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const mt=document.createElement("span");mt.innerHTML=Wt.textContent.replace(new RegExp(an,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Wt.replaceWith(mt)}})}const Be=(0,b.useRef)();fe.jb.WebkitLineClamp=Ue,Ue&&(st=He(He({},st),fe.jb));function zt(Tt){let an=Tt.target;if(an.tagName.toUpperCase()==="A"){let Wt=an.getAttribute("href");if(Wt.indexOf("office")>-1)Tt.preventDefault(),Ct(Wt),ne("office");else if(Wt.indexOf("application/pdf")>-1)Tt.preventDefault(),Ct(Wt),ne("pdf");else if(Wt.indexOf("text/html")>-1)Tt.preventDefault(),Ct(Wt),ne("html");else if(Wt.startsWith("#")){Tt.preventDefault();let Ke=document.getElementById(Wt.replace("#",""));Ke&&Ke.scrollIntoView(!0)}}}const Zt=()=>{var Tt;const an=(Tt=Be.current)==null?void 0:Tt.querySelectorAll("video");an==null||an.forEach(Wt=>{if(Wt.oncontextmenu=()=>!1,Wt.src.indexOf(".m3u8")>-1&&!Wt.canPlayType("application/vnd.apple.mpegurl")){if(Se.ZP.isSupported()){var Ke=new Se.ZP;Ke.loadSource(Wt.src),Ke.attachMedia(Wt)}}})};(0,b.useEffect)(()=>{if(Be.current&&Le&&Le.match(ut)&&window.PR.prettyPrint(),Be.current)return Be.current.addEventListener("click",zt),()=>{var Tt;(Tt=Be.current)==null||Tt.removeEventListener("click",zt),(0,fe.AL)(),(0,fe.Iy)()}},[Le,Be.current,zt]);const qt=Tt=>{Tt.target.nodeName==="IMG"&&Tt.target.className.indexOf("draw-flowchart")>-1?(At.current.style.zIndex=1,At.current.style.display="flex",At.current.style.width=Tt.target.clientWidth+"px",At.current.style.height=Tt.target.clientHeight+"px",At.current.style.top=Tt.target.offsetTop+"px",At.current.style.left=Tt.target.offsetLeft+"px",Tt.target.id&&(_e.current=Tt.target.id)):At.current.style.display="none"},en=()=>{At.current.style.display="none"};return(0,b.useEffect)(()=>{var Tt;const an=Wt=>{Wt.preventDefault(),Wt.clipboardData.setData("text",window.getSelection().toString())};return(Tt=Be.current)==null||Tt.addEventListener("copy",an),()=>{var Wt;(Wt=Be.current)==null||Wt.removeEventListener("copy",an)}},[Be.current]),b.createElement("div",{style:{position:"relative"},onMouseLeave:en},Dt&&b.createElement("div",{ref:Be,className:`${Ne.mdBody} `},Le),!Dt&&!le(Le)&&b.createElement("div",{ref:Be,style:He({},st),onMouseOver:qt,className:`${de||""} ${Jt?"disabled-fill":""} markdown-body ${Ne.mdBody} ${ue.current}`,dangerouslySetInnerHTML:{__html:Le}}),!Dt&&le(Le)&&b.createElement(je,{html:Le}),b.createElement("div",{ref:At,className:`${Ne.button} ${Ve?"":Ne.previewFlowChart}`},b.createElement(Pe.Z,null,b.createElement(ce.ZP,{onClick:()=>{Ve?ye(_e.current):(Ct(_e.current),ne("flowChart"))}},Ve?"\u7F16\u8F91":"\u9884\u89C8"))),b.createElement(we.Z,{close:!0,data:Yt,type:Yt!=null&&Yt.length?ae:"",style:He({},Ut),onClose:()=>Ct("")}))}},28267:function(Cn,Qt,ee){"use strict";ee.d(Qt,{h:function(){return We}});var b=ee(59301),Fe=ee(82326),fe=ee(28284),qe=ee(7939),Se=ee(89780),ge=ee.n(Se),Ee=ee(88319),Ze=ee(94896),Pe=Object.defineProperty,ce=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,je=(Ie,He,Ge)=>He in Ie?Pe(Ie,He,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Ie[He]=Ge,Me=(Ie,He)=>{for(var Ge in He||(He={}))St.call(He,Ge)&&je(Ie,Ge,He[Ge]);if(we)for(var Ge of we(He))tt.call(He,Ge)&&je(Ie,Ge,He[Ge]);return Ie},Ne=(Ie,He)=>ce(Ie,Xe(He));const it=Fe.default.Option,yt={labelCol:{span:4},wrapperCol:{span:20}},Ot={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:Ie,onCancel:He})=>{const[Ge,Et]=(0,b.useState)("python");function ut(ot){Et(Ot[ot][1])}function et(ot){Ie(ot)}return b.createElement(fe.default,Ne(Me({},yt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:et,style:{width:500}}),b.createElement(fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(Fe.default,{getPopupContainer:ot=>ot.parentNode,onChange:ut},Object.keys(Ot).map(ot=>b.createElement(it,{key:ot,value:ot},Ot[ot][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(We,{mode:Ge})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(qe.ZP,{type:"ghost",onClick:He},"\u53D6\u6D88")))};function We({value:Ie,onChange:He,mode:Ge,options:Et={}}){const ut=(0,b.useRef)(),[et,ot]=(0,b.useState)();return(0,b.useEffect)(()=>{if(et){let Ce=function(at){const Ve=at.getValue();He&&He(Ve)};return et.on("change",Ce),()=>{et.off("change",Ce)}}},[et,He]),(0,b.useEffect)(()=>{et&&et.setOption("mode",Ge)},[et,Ge]),(0,b.useEffect)(()=>{et&&(Ie!==et.getValue()||Ie==="")&&setTimeout(()=>{et.setValue(Ie||"")},300)},[et,Ie]),(0,b.useEffect)(()=>{if(ut.current&&!et){const Ce=ge().fromTextArea(ut.current,Me({mode:Ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Et));ot(Ce)}},[ut.current,et]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:ut}))}},39116:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return on}});var b=ee(59301),Fe=ee(44283),fe=ee(89780),qe=ee.n(fe),Se=ee(76374),ge=ee(88319),Ee=ee(6313),Ze=ee(25717),Pe=ee(99498),ce=ee(25419),Xe=ee(67549),we=ee(35883),St=({value:_t="",className:hn,showTextOnly:mn,showLines:Sn,style:zn={}})=>{const Wn=(0,b.useMemo)(()=>"",[_t]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:Wn}}))},tt=Object.defineProperty,je=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,Ot=(_t,hn,mn)=>hn in _t?tt(_t,hn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):_t[hn]=mn,We=(_t,hn)=>{for(var mn in hn||(hn={}))it.call(hn,mn)&&Ot(_t,mn,hn[mn]);if(Ne)for(var mn of Ne(hn))yt.call(hn,mn)&&Ot(_t,mn,hn[mn]);return _t},Ie=(_t,hn)=>je(_t,Me(hn));let He=[{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 Ge({onActionCallback:_t,title:hn,icon:mn,actionName:Sn,className:zn="",children:Wn}){function Zn(){_t(Sn)}return b.createElement("a",{title:hn,className:zn,onClick:Zn},b.createElement("i",{className:`${mn}`}),Wn)}var Et=({watch:_t,showNullButton:hn,showNullProgramButton:mn,onActionCallback:Sn,fullScreen:zn,insertTemp:Wn,hidetoolBar:Zn,extraUse:Jn})=>{const Gn=[...He,{title:`${_t?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${_t?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return b.createElement("ul",{className:"markdown-toolbar-container"},!Zn&&Gn.map((hr,cr)=>b.createElement("li",{key:cr},hr.actionName?b.createElement(Ge,Ie(We({},hr),{onActionCallback:Sn})):b.createElement("span",{className:"v-line"}))),hn?b.createElement("li",null,b.createElement(Ge,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Sn},b.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mn?b.createElement(b.Fragment,null,b.createElement("li",null,b.createElement(Ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Sn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),b.createElement("li",null,b.createElement(Ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Sn},b.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Wn&&b.createElement("li",null,b.createElement(Ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Wn}`,onActionCallback:Sn},b.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Jn&&b.createElement("li",null,Jn),b.createElement("li",{className:"btn-full-screen"},b.createElement(Ge,{icon:`${zn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:zn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Sn})))},ut=ee(88487),et=ee(28284),ot=ee(37568),Ce=ee(7939),at=Object.defineProperty,Ve=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Ut=(_t,hn,mn)=>hn in _t?at(_t,hn,{enumerable:!0,configurable:!0,writable:!0,value:mn}):_t[hn]=mn,Te=(_t,hn)=>{for(var mn in hn||(hn={}))Ue.call(hn,mn)&&Ut(_t,mn,hn[mn]);if(Dt)for(var mn of Dt(hn))st.call(hn,mn)&&Ut(_t,mn,hn[mn]);return _t},he=(_t,hn)=>Ve(_t,de(hn));const Nt={labelCol:{span:4},wrapperCol:{span:20}};var Jt=({callback:_t,onCancel:hn})=>{function mn(Sn){_t(Sn)}return b.createElement(et.default,he(Te({},Nt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mn,style:{width:500}}),b.createElement(et.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(ot.default,null)),b.createElement(et.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(ot.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ce.ZP,{type:"ghost",onClick:hn},"\u53D6\u6D88")))},Ft=ee(28267),ye=ee(53332),Ye=ee(62957),lt=ee(77019),Xt=ee(40254),rt=ee(59301),At=({callback:_t,onCancel:hn})=>{const mn=document.createElement("canvas"),Sn=mn.getContext("2d");mn.width=1e3,mn.height=800,Sn.fillStyle="#ffffff",Sn.fillRect(0,0,mn.width,mn.height);const zn=mn.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(lt.Z,{style:{height:"100vh"}},rt.createElement(Xt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:zn,visible:!0,title:String(Date.now())},onOk:Wn=>{_t({src:Wn.url})},onClose:hn})))},_e=ee(36207),Yt=ee(5269),Ct=ee(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=ee(59301),ie=(0,b.forwardRef)(({onCancel:_t,editImgId:hn,callback:mn},Sn)=>{let zn=(0,b.useRef)(),Wn=(0,b.useRef)(),Zn=(0,b.useRef)(),Jn=(0,b.useRef)(!1);const Gn=(0,b.useRef)(!1);console.log("ref:",Sn);const[hr,cr]=(0,b.useState)(0),[sn,yn]=(0,b.useState)("100vh");return(0,b.useEffect)(()=>{cr(1)},[]),(0,b.useImperativeHandle)(Sn,()=>({setHeight:yn})),ne.createElement("div",{ref:Gn,className:"body-overflow-initial"},ne.createElement(_e.Z,{width:"100vw",height:sn,footer:null,closable:!0,placement:"bottom",open:!!hr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData(Hn=>{mn({src:`/api/attachments/${Hn}`,id:Hn})})},title:ne.createElement(lt.Z,{align:"middle"},ne.createElement(Yt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(Yt.Z,{onClick:()=>{yn(sn==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(Yt.Z,{onClick:()=>{window.saveDrawData(Hn=>{if(Hn===null){Ct.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Ct.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),mn({src:`/api/attachments/${Hn}`,id:Hn,disabledClose:!0})})}},ne.createElement(Ce.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${hn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Wn})))}),ue=ee(14185),re=ee(47889),le=ee(4875);const xe=re.ZP.Group,ft={margin:"0 8px"};var Ae=({callback:_t,onCancel:hn})=>{function mn(Sn){_t(Sn)}return b.createElement(et.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mn},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:ft},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:ft},"\u884C\u6570"),b.createElement(et.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(le.Z,null)),b.createElement("span",{style:ft},"\u5217\u6570"),b.createElement(et.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:ft},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(et.default.Item,{name:"align"},b.createElement(xe,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(Ce.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ce.ZP,{type:"ghost",onClick:hn},"\u53D6\u6D88")))},Le=ee(58755),Qe=ee(84915),nt=ee.n(Qe),Oe=(0,b.forwardRef)(({use3d:_t,width:hn,height:mn,callback:Sn,showSaveButton:zn},Wn)=>{const Zn=(0,b.useRef)(),Jn=(0,b.useRef)(),[Gn,hr]=(0,b.useState)(!1),cr=(0,b.useRef)({id:Zn,appName:"graphing",width:hn||1e3,height:mn||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)(()=>{Jn.current=new(nt())(cr.current,!0),window.onload=function(){Jn.current.inject("applet_container")}},[]);const sn=()=>{var yn=window.ggbApplet.getPNGBase64(1,!0,72);return Sn&&Sn(yn),yn};return(0,b.useEffect)(()=>{cr.current.appName=Gn?"3D":"graphing",Jn.current.inject("applet_container")},[Gn]),(0,b.useEffect)(()=>{hr(_t)},[_t]),(0,b.useImperativeHandle)(Wn,()=>({getImgData:sn})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Zn}),b.createElement(lt.Z,{align:"middle"},b.createElement(Yt.Z,{flex:1},b.createElement(Le.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Gn,onChange:yn=>hr(yn)})),b.createElement(Yt.Z,null,b.createElement(Ce.ZP,{size:"large",onClick:sn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Be=ee(9057);const zt="link",Zt="upload-image",qt="add-flowchart",en="draw-image",Tt="add-flowchart",an="code-block",Wt="add-table",Ke="------------",mt={default:Ke,left:`:${Ke}`,center:`:${Ke}:`,right:`${Ke}:`};var $t=ee(79006),nn=ee(76406);function Re(){}let pt=0;const Mt=1e4,Kt="\u2581",cn="@\u2581\u2581@",Pn="@\u2581@",Rn=`
**\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`,Fn=["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 vn(_t){return/^\d+$/.test(_t)?`${_t}px`:_t}const dn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Vt={[dn+"-B"]:"bold",[dn+"-I"]:"italic"},tn={[zt]:"\u6DFB\u52A0\u94FE\u63A5",[an]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Zt]:"\u6DFB\u52A0\u56FE\u7247",[en]:"\u6DFB\u52A0\u753B\u56FE",[qt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var on=({defaultValue:_t="",onChange:hn,width:mn="100%",height:Sn=400,miniToolbar:zn=!1,isFocus:Wn=!1,watch:Zn,insertTemp:Jn,mode:Gn="markdown",id:hr="markdown-editor-id",showResizeBar:cr=!1,noStorage:sn=!1,showNullButton:yn=!1,showNullProgramButton:Hn=!1,hidetoolBar:An=!1,fullScreen:ct=!1,onBlur:It,onCMBeforeChange:ze,onFullScreen:vt,className:$e="",disablePaste:xt=!1,disabled:De=!1,disabledFill:Pt=!1,placeholder:kt="",values:jt="",extraUse:gt,onAddBlank:ht})=>{const[wt,Rt]=(0,b.useState)(null),[In,On]=(0,b.useState)(_t),[Nn,tr]=(0,b.useState)(Zn),[dr,mr]=(0,b.useState)(ct),[er,Yn]=(0,b.useState)(""),[Qn,rr]=(0,b.useState)(0),[wr,ar]=(0,b.useState)(Sn),[Cr,qn]=(0,b.useState)(!1),[pr,vr]=(0,b.useState)(0),[Kr,_r]=(0,b.useState)(0),Wr=(0,b.useRef)(),Ur=(0,b.useRef)(),ao=(0,b.useRef)(),Hr=(0,b.useRef)(),to=(0,b.useRef)(),Ir=(0,b.useRef)(),ro=(0,Fe.useDispatch)();(0,b.useEffect)(()=>{const $n=window.scrollY||window.pageYOffset;On(jt),wt==null||wt.setValue(jt),window.scrollTo(0,$n)},[jt]),(0,b.useEffect)(()=>{vt==null||vt(dr)},[dr]),(0,b.useEffect)(()=>{if(Wr.current){let $n=function(_n,or){var eo;if(xt){or.preventDefault();return}const Oo=or.clipboardData;if(Oo){const bo=Oo.types.toString(),ko=Oo.items;if(bo==="Files"||Oo.types.indexOf("Files")>-1){if(or.preventDefault(),Gn=="stex")return;try{let Do=ko[1];((eo=ko[0])==null?void 0:eo.kind)==="file"&&(Do=ko[0]);const Io=Do.getAsFile(),Zo=Io.name.split(".").pop();(0,ye.I)(Io,Lo=>{var Ro,si,xi;Lo.id?((Ro=Io==null?void 0:Io.type)==null?void 0:Ro.indexOf("image"))>-1?Bn.replaceSelection(`<img width="100%" src="/api/attachments/${Lo.id}?type=${Lo.content_type})" alt="" />`):((si=Io==null?void 0:Io.type)==null?void 0:si.indexOf("video"))>-1?Bn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Lo.id}"></video>`):((xi=Io==null?void 0:Io.type)==null?void 0:xi.indexOf("pdf"))>-1?Bn.replaceSelection(`<a href="/api/attachments/${Lo.id}?type=${Io.type}&disposition=inline" target="_blank">${Io.name}</a>`):Fn.includes(Zo)?Bn.replaceSelection(`<a href="/api/attachments/${Lo.id}?type=office&disposition=inline" target="_blank">${Io.name}</a>`):Bn.replaceSelection(`[${Io.name}](/api/attachments/${Lo.id}?type=${Lo.content_type})`):(Lo==null?void 0:Lo.status)===401&&(document.location.href="/user/login")})}catch(Do){Ct.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Bn=qe().fromTextArea(Wr.current,{mode:Gn,lineNumbers:!zn,lineWrapping:!0,value:_t,autoCloseTags:!0,autoCloseBrackets:!0});return Bn.on("keyup",function(_n,or){or.keyCode===8&&(_n.getValue()==""?Bn.setOption("placeholder",kt):Bn.setOption("placeholder",null))}),Bn.on("keydown",function(_n,or){if(or.keyCode===8){var eo=En(_n);eo&&or.preventDefault()}}),Wn&&Bn.focus(),Bn.on("paste",$n),De&&Bn.on("beforeChange",function(_n,or){(or.origin==="paste"||or.origin==="+input")&&or.cancel()}),Rt(Bn),()=>{Bn.off("paste",$n)}}},[]);const ho=(0,b.useCallback)(()=>{if(Ur.current)try{}catch($n){console.log($n,"---- to set md editor body height")}},[wr,Ur,dr]);(0,b.useEffect)(()=>{function $n(){let Bn=new Se.Z(_n=>{for(let or of _n)(or.target.offsetHeight>0||or.target.offsetWidth>0)&&(ho(),wt.setSize("100%","100%"),wt.refresh())});return Bn.observe(Wr.current.parentElement),Bn}if(wt){const Bn=$n();return()=>{var _n,or;(_n=Wr.current)!=null&&_n.parentElement&&Bn.unobserve((or=Wr.current)==null?void 0:or.parentElement)}}},[wt,ho]),(0,b.useEffect)(()=>{if(wt){let $n=[];for(const[Bn,_n]of Object.entries(Vt)){let or={[Bn]:()=>{Vn(_n)}};$n.push(or),wt.addKeyMap(or)}return()=>{for(let Bn of $n)wt.removeKeyMap(Bn)}}},[wt]),(0,b.useEffect)(()=>{ct!==dr&&mr(ct)},[ct]),(0,$t.Z)(()=>{if(!sn&&Qn>0){let $n=new Date().getTime(),Bn=window.sessionStorage.getItem(hr);$n>=Qn+Mt&&(!Bn||Bn!==In)&&(window.sessionStorage.setItem(hr,In),qn(!0))}},Mt),(0,b.useEffect)(()=>{tr(Zn)},[wt,Zn]),(0,b.useEffect)(()=>{wt&&Wn&&wt.focus()},[wt,Wn]),(0,b.useEffect)(()=>{if(Nn&&wt){let $n=function(_n){let or=_n.target;if(Hr.current){let eo=or.scrollTop/or.scrollHeight;Hr.current.scrollTop=Hr.current.scrollHeight*eo}};const Bn=wt.getScrollerElement();return Bn.addEventListener("scroll",$n),()=>{Bn.removeEventListener("scroll",$n)}}},[wt,Nn]),(0,b.useEffect)(()=>{if(wt&&ze){let $n=function(Bn,_n){ze(Bn,_n)};return wt.on("beforeChange",$n),()=>{wt.off("beforeChange",$n)}}},[wt,ze]),(0,b.useEffect)(()=>{if(wt&&It){let $n=function(){It(wt.getValue())};return wt.on("blur",$n),()=>{wt.off("blur",$n)}}},[wt,It]);function En($n,Bn){var _n=$n.getDoc(),or=_n.getCursor(),eo=_n.getLine(or.line),Oo=eo.charAt(or.ch-1),bo=eo.lastIndexOf("@\u2581@",or.ch),ko=eo.lastIndexOf("@\u2581\u2581@",or.ch),Do=bo>ko?bo:ko,Io=bo>ko?3:4;if(cn.indexOf(Oo)===-1)return null;if(console.log("change1:",Bn,$n,eo,or,Do,bo,ko,Oo),Do>=0&&or.ch-Do<5){var Zo=Do+Io;return _n.replaceRange("",{line:or.line,ch:Do},{line:or.line,ch:Zo}),{line:or.line,ch:Zo}}return null}(0,b.useEffect)(()=>{if(wt){let $n=function(Bn,_n){const or=Bn.getValue();On(or),rr(new Date().getTime()),Bn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),hn&&(Hn?hn(or,jn(or)):hn(or))};return wt.on("change",$n),()=>{wt.off("change",$n)}}},[wt,hn]),(0,b.useEffect)(()=>{if(wt)if(_t==null)wt.setValue(""),On("");else{const $n=window.scrollY||window.pageYOffset;_t!==wt.getValue()&&(wt.setValue(_t),On(_t),wt.setCursor(De?1:wt.lineCount(),0),window.scrollTo(0,$n))}},[wt,_t]);const Vn=(0,b.useCallback)($n=>{const Bn=wt.getCursor(),_n=wt.getSelection();let or=_n.split(`
`);switch($n){case"bold":return wt.replaceSelection("**"+_n+"**"),_n===""&&wt.setCursor(Bn.line,Bn.ch+2),wt.focus();case"italic":return wt.replaceSelection("*"+_n+"*"),_n===""&&wt.setCursor(Bn.line,Bn.ch+1),wt.focus();case"code":return wt.replaceSelection("`"+_n+"`"),_n===""&&wt.setCursor(Bn.line,Bn.ch+1),wt.focus();case"inline-latex":return(0,nn.Ye)(ro)?void 0:(Yn("inline-latex"),wt.focus());case"latex":return wt.replaceSelection("```latex\n"+_n+"\n```"),wt.setCursor(Bn.line+1,_n.length+1),wt.focus();case"line-break":return wt.replaceSelection(`<br/>
`),wt.focus();case"list-ul":return _n===""?wt.replaceSelection("- "+_n):wt.replaceSelection(or.map(eo=>eo===""?"":`- ${eo}`).join(`
`)),wt.focus();case"list-ol":return _n===""?wt.replaceSelection("1. "+_n):wt.replaceSelection(or.map((eo,Oo)=>eo===""?"":`${Oo+1}. ${eo}`).join(`
`)),wt.focus();case"add-null-ch":ht==null||ht();return;case"add-signal":return _n===""&&wt.setCursor(Bn.line,Bn.ch),wt.replaceSelection(Pn),wt.focus();case"add-multiple":return _n===""&&wt.setCursor(Bn.line,Bn.ch),wt.replaceSelection(cn),wt.focus();case"inster-template-1":return _n===""&&wt.setCursor(Bn.line,Bn.ch),wt.replaceSelection(Rn),wt.focus();case"eraser":return wt.setValue(""),wt.focus();case"trigger-watch":return tr(!Nn),wt.focus();case"trigger-full-screen":return mr(!dr),wt.focus();case zt:Yn(zt);return;case an:Yn(an);return;case Zt:Yn(Zt);return;case en:Yn(en);return;case"maths-latex":if((0,nn.Ye)(ro))return;Yn("maths-latex");return;case qt:to.current="",sessionStorage.removeItem("file_id"),Yn(qt);return;case Wt:Yn(Wt);return;default:throw new Error}},[wt,Nn,dr]),zr=(0,b.useCallback)(($n,Bn)=>{var _n,or,eo,Oo,bo,ko;$n!=null&&$n.disabledClose||Yn("");const{src:Do,alt:Io,id:Zo}=$n||{};switch(er){case zt:const{title:Ii,link:Ti}=$n;return wt.replaceSelection(`[${Ii}](${Ti})`),wt.focus();case an:const{language:Ci,content:oo}=$n;return wt.replaceSelection(["```"+Ci,oo,"```"].join(`
`)),wt.focus();case"maths-latex":for(var Lo=atob($n),Ro=new Uint8Array(Lo.length),si=0;si<Lo.length;si++)Ro[si]=Lo.charCodeAt(si);var xi=new Blob([Ro],{type:"image/png"});return(0,ye.I)(xi,Co=>{Co.id?wt.replaceSelection(`![,](/api/attachments/${Co.id}?type=${Co.content_type})`):(Co==null?void 0:Co.status)===401&&(document.location.href="/user/login")}),wt.focus();case"inline-latex":return(0,nn.Ye)(ro)?void 0:(wt.replaceSelection("`$$"+$n+"$$`"),wt.focus());case Tt:return Zo?(wt.getValue().indexOf(Do)===-1?wt.replaceSelection(`<center><img id="${Zo}" width="80%" src="${Do}" class="draw-flowchart" alt="${Io||""}" /></center>`):document.getElementById(Zo).src=ue.Z.API_SERVER+Do+"?t="+Date.now(),wt.focus()):void 0;case Zt:case en:const Xr=Bn,qo=(eo=(or=(_n=Xr==null?void 0:Xr.name)==null?void 0:_n.split("."))==null?void 0:or.pop)==null?void 0:eo.call(or);return((Oo=Xr==null?void 0:Xr.type)==null?void 0:Oo.indexOf("image"))>-1||!(Xr!=null&&Xr.type)?Xr!=null&&Xr.align||Xr!=null&&Xr.width?wt.replaceSelection(`<p style="text-align:${Xr.align||"initial"}"><img width="${Xr.width?Xr.width+"%":"initial"}" src="${Do}" alt="${Io||""}" /></p>`):wt.replaceSelection(`<img width="100%" src="${Do}" alt="${Io||""}" />`):((bo=Xr==null?void 0:Xr.type)==null?void 0:bo.indexOf("video"))>-1?wt.replaceSelection(`<video width="100%" controls src="${Do}"></video>`):((ko=Xr==null?void 0:Xr.type)==null?void 0:ko.indexOf("pdf"))>-1?wt.replaceSelection(`<a href="${Do}?type=${Xr.type}&disposition=inline" target="_blank">${Xr.name}</a>`):Fn.includes(qo)?wt.replaceSelection(`<a href="${Do}?type=office&disposition=inline" target="_blank">${Xr.name}</a>`):wt.replaceSelection(`[${Xr.name}](${Do})`),wt.focus();case Wt:const{row:ei,col:co,align:Ko}=$n;let Jo=`
`;for(let Co=0;Co<ei;Co++){let Ho=[],Bo=[];for(let Zi=0;Zi<co;Zi++)Co===1&&Bo.push(mt[Ko]),Ho.push(" ");Co===1&&(Jo+=`| ${Bo.join(" | ")} |
`),Jo+=`| ${Ho.join(co===1?"":" | ")} |
`}return wt.replaceSelection(Jo+`
`),wt.focus();default:throw new Error}},[wt,er]),no=(0,b.useMemo)(()=>{switch(er){case zt:return b.createElement(Jt,{callback:zr,onCancel:vo});case an:return b.createElement(Ft.Z,{callback:zr,onCancel:vo});case Zt:return b.createElement(ye.Z,{callback:zr,onCancel:vo});case qt:return b.createElement(ie,{editImgId:to.current,callback:zr,onCancel:vo});case Wt:return b.createElement(Ae,{callback:zr,onCancel:vo});case"maths-latex":return b.createElement(Oe,{showSaveButton:!0,callback:zr});case"inline-latex":return b.createElement(Be.Z,{showSaveButton:!0,callback:zr});default:return null}},[er]);function vo(){Yn("")}(0,b.useEffect)(()=>{if(ao.current){let $n=function(bo){eo=!0,Oo=bo.pageY},Bn=function(){eo=!1},_n=function(bo){if(eo){let ko=bo.pageY-Oo;ko<0&&(ko=0),ko>300&&(ko=300);let Do=Sn+ko+"px";ar(Do)}},or=ao.current,eo=!1,Oo=0;return or.addEventListener("mousedown",$n),document.addEventListener("mousemove",_n),document.addEventListener("mouseup",Bn),()=>{or.removeEventListener("mousedown",$n),document.removeEventListener("mousemove",_n),document.removeEventListener("mouseup",Bn)}}},[wt,ao]),(0,b.useEffect)(()=>{ar(Sn)},[Sn]);const Dr=vn(mn),kr=vn(wr),lr={width:Dr,height:kr},wn=(0,b.useMemo)(()=>{if(Qn){let $n=new Date(Qn),Bn=$n.getHours(),_n=$n.getMinutes(),or=$n.getSeconds();return Bn=Bn<10?"0"+Bn:Bn,_n=_n<10?"0"+_n:_n,or=or<10?"0"+or:or,`${Bn}:${_n}:${or}`}return 0},[Qn]),jn=$n=>{const Bn=[];if(Hn){let _n=-1;$n=$n.replace(/(@▁▁@|@▁@)/g,function(or,eo,Oo){Bn.push({multiLine:or!==Pn})})}return Bn};function Kn(){window.sessionStorage.removeItem(hr),qn(!1),rr(0)}function kn(){qn(!1),rr(0),wt.setValue(window.sessionStorage.getItem(hr))}(0,b.useEffect)(()=>{tn[er]&&er!==en&&er!==qt&&setTimeout(()=>{const $n=document.getElementsByClassName("markdown-popup-form")[0],Bn=window.innerWidth/2-$n.offsetWidth/2,_n=window.innerHeight/2-$n.offsetHeight/2;vr(Bn),_r(_n)},0)},[er]);const fr=$n=>{$n.preventDefault();const Bn=$n.clientX-pr,_n=$n.clientY-Kr;document.body.onmousemove=or=>{let eo=or.clientX-Bn,Oo=or.clientY-_n;const bo=document.getElementsByClassName("markdown-popup-form")[0],ko=window.innerWidth-bo.offsetWidth,Do=window.innerHeight-bo.offsetHeight;eo=Math.max(0,Math.min(eo,ko)),Oo=Math.max(0,Math.min(Oo,Do)),Er(or.clientX,or.clientY,Bn,_n)&&(vr(eo),_r(Oo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Er=($n,Bn,_n,or)=>{const eo=document.body.clientHeight,Oo=document.body.clientWidth;return $n<20&&_n>$n||$n>Oo-20&&_n<$n||Bn<20&&or>Bn||Bn>eo-20&&or<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:Ur},b.createElement("div",{className:`markdown-editor-container ${$e} ${Nn?"on-preview":""} ${zn?"mini":""} ${dr?"full-screen":""}`,style:lr},b.createElement(Et,{insertTemp:Jn,watch:Nn,fullScreen:dr,showNullButton:yn,showNullProgramButton:Hn,onActionCallback:Vn,hidetoolBar:An,extraUse:gt}),b.createElement("div",{className:"markdown-editor-body"},b.createElement("div",{className:"codemirror-container"},b.createElement("textarea",{ref:Wr,placeholder:kt})),Nn?b.createElement("div",{ref:Hr,className:"preview-container"},Gn==="stex"&&b.createElement(St,{value:In}),Gn!=="stex"&&b.createElement(we.Z,{edit:!0,disabledFill:Pt,showProgramFill:Hn,value:In,openEditor:$n=>{var Bn;to.current=$n,(Bn=Ir.current)==null||Bn.setHeight("100vh"),setTimeout(()=>{Yn("add-flowchart")},150)}})):null))),cr?b.createElement("a",{ref:ao,className:"editor-resize"}):null,er===en&&b.createElement(At,{callback:zr,onCancel:vo}),er===qt&&b.createElement(ie,{ref:Ir,editImgId:to.current,callback:zr,onCancel:vo}),b.createElement(ut.Z,null,tn[er]&&er!==en&&er!==qt?b.createElement(Ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:pr,top:Kr},title:b.createElement("div",{style:{cursor:"move"},onMouseDown:fr},tn[er]),open:!0,onCancel:vo,footer:null,destroyOnClose:!0,width:er===qt?"1200px":null,height:er===qt?"80vh":null,className:"markdown-popup-form"},no):null))}},53332:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return He},I:function(){return Et}});var b=ee(28284),Fe=ee(6767),fe=ee(37568),qe=ee(44104),Se=ee(4875),ge=ee(47889),Ee=ee(7939),Ze=ee(23216),Pe=ee(59301),ce=ee(59301),Xe=Object.defineProperty,we=Object.defineProperties,St=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ne=(ut,et,ot)=>et in ut?Xe(ut,et,{enumerable:!0,configurable:!0,writable:!0,value:ot}):ut[et]=ot,it=(ut,et)=>{for(var ot in et||(et={}))je.call(et,ot)&&Ne(ut,ot,et[ot]);if(tt)for(var ot of tt(et))Me.call(et,ot)&&Ne(ut,ot,et[ot]);return ut},yt=(ut,et)=>we(ut,St(et));const{useForm:Ot}=b.default,We={width:280,marginRight:10},Ie={labelCol:{span:5},wrapperCol:{span:19}};var He=({callback:ut,onCancel:et})=>{const[ot]=Ot();let Ce=(0,Pe.useRef)();function at(Dt){Ce.current.width=ot.getFieldValue("width"),Ce.current.align=ot.getFieldValue("align"),ut(Dt,Ce.current)}function Ve(Dt,Ue){if(Dt.status===-1){Fe.ZP.error(Dt.message);return}ot.setFieldsValue({src:`/api/attachments/${Dt.id}`,type:Ue.type})}function de(Dt){let Ue=Dt.target.files[0];Ce.current=Ue,Et(Ue,Ve)}return ce.createElement(b.default,yt(it({form:ot},Ie),{className:"upload-image-panel",onFinish:at,style:{width:470,overflow:"hidden"}}),ce.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ce.createElement("div",{className:"flex-container"},ce.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ce.createElement(fe.default,{style:We})),ce.createElement(Ge,{onFileChange:de}))),ce.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ce.createElement(fe.default,{style:{width:264}})),ce.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ce.createElement(qe.Z,null,ce.createElement(b.default.Item,{name:"width",style:{margin:0}},ce.createElement(Se.Z,{style:{width:264}})),ce.createElement("span",{className:"ml8"},"%"))),ce.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ce.createElement(ge.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"}]})),ce.createElement("aside",null,ce.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ce.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(Ee.ZP,{type:"default",onClick:et},"\u53D6\u6D88"))))};function Ge({onFileChange:ut}){return ce.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ce.createElement("input",{type:"file",onChange:ut}))}function Et(ut,et){if(!ut)throw new String("\u6CA1\u6709\u6587\u4EF6");let ot=new FormData;ot.append("editormd-image-file",ut),ot.append("file_param_name","editormd-image-file"),ot.append("byxhr","true");var Ce=new window.XMLHttpRequest;Ce.withCredentials=!0,Ce.addEventListener("load",function(at){et(JSON.parse(at.target.responseText),ut)},!1),Ce.addEventListener("error",function(at){console.error(at)},!1),Ce.open("POST",`${Ze.KI}/api/attachments.json`),Ce.send(ot)}},88487:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return fe}});var b=ee(59301),Fe=ee(4676);class fe extends b.Component{constructor(Se){super(Se);const ge=window.document;this.node=ge.createElement("div"),ge.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,Fe.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Cn,Qt,ee){"use strict";ee.d(Qt,{SV:function(){return At},ZP:function(){return rt}});var b=ee(59301),Fe=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"]},qe={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Se={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},ge={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(`
`)}]},Ee={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),Pe=ee.n(Ze),ce=(_e,Yt,Ct)=>new Promise((ae,ne)=>{var te=re=>{try{ue(Ct.next(re))}catch(le){ne(le)}},ie=re=>{try{ue(Ct.throw(re))}catch(le){ne(le)}},ue=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,ie);ue((Ct=Ct.apply(_e,Yt)).next())});const Xe={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"]}},we=(_e,Yt,Ct,ae)=>{const ne=Yt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Ct.lineNumber,endColumn:Ct.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(ie=>({label:ie,kind:_e.languages.CompletionItemKind.Text,insertText:ie,range:ae}))},St=(_e,Yt,Ct,ae)=>{_e.languages.registerCompletionItemProvider(Yt,{provideCompletionItems(ne,te){const ie=ne.getWordUntilPosition(te),ue={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:ie.startColumn,endColumn:ie.endColumn},re=ne.getLineContent(te.lineNumber).substring(ie.startColumn-2,ie.endColumn);return{suggestions:[...we(_e,ne,te,ue),...Ct.map(xe=>({label:xe,kind:_e.languages.CompletionItemKind.Keyword,documentation:xe,insertText:xe,insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue})),...ae.map(xe=>({label:xe.label,kind:_e.languages.CompletionItemKind.Snippet,documentation:xe.content,insertText:re.startsWith("#")?xe.content.replace(/#/,""):xe.content,insertTextRules:_e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ue}))]}}})};var tt=_e=>{Xe.languages.forEach(Yt=>{_e.languages.registerDocumentFormattingEditProvider(Yt,{provideDocumentFormattingEdits(Ct){return ce(this,null,function*(){const ae=Pe()(Ct.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:Ct.getFullModelRange(),text:ae}]})}})}),St(_e,"java",qe.keywords,qe.quickKey),St(_e,"cpp",Se.keywords,Se.quickKey),St(_e,"c",fe.keywords,[]),St(_e,"python",ge.keywords,ge.quickKey),St(_e,"scala",Ee.keywords,Ee.quickKey)};const je="\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,Ne=(_e,Yt,Ct)=>Yt in _e?Me(_e,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):_e[Yt]=Ct,it=(_e,Yt,Ct)=>Ne(_e,typeof Yt!="symbol"?Yt+"":Yt,Ct);const yt=class ju{constructor(Yt,Ct,ae){this.placeholder=Yt,this.editor=Ct,this.monaco=ae,Ct.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ju.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)}};it(yt,"ID","editor.widget.placeholderHint");var We=yt,Ie=ee(96236),He=ee(6767),Ge=ee(25399),Et=ee(78267),ut=ee(33156),et=ee(56102),ot=Object.defineProperty,Ce=Object.defineProperties,at=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,Ue=(_e,Yt,Ct)=>Yt in _e?ot(_e,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):_e[Yt]=Ct,st=(_e,Yt)=>{for(var Ct in Yt||(Yt={}))de.call(Yt,Ct)&&Ue(_e,Ct,Yt[Ct]);if(Ve)for(var Ct of Ve(Yt))Dt.call(Yt,Ct)&&Ue(_e,Ct,Yt[Ct]);return _e},Ut=(_e,Yt)=>Ce(_e,at(Yt)),Te=(_e,Yt)=>{var Ct={};for(var ae in _e)de.call(_e,ae)&&Yt.indexOf(ae)<0&&(Ct[ae]=_e[ae]);if(_e!=null&&Ve)for(var ae of Ve(_e))Yt.indexOf(ae)<0&&Dt.call(_e,ae)&&(Ct[ae]=_e[ae]);return Ct},he=(_e,Yt,Ct)=>new Promise((ae,ne)=>{var te=re=>{try{ue(Ct.next(re))}catch(le){ne(le)}},ie=re=>{try{ue(Ct.throw(re))}catch(le){ne(le)}},ue=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,ie);ue((Ct=Ct.apply(_e,Yt)).next())});function Nt(_e){return/^\d+$/.test(_e)?`${_e}px`:_e}function Jt(){}let Ft=!1;const ye={"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(_e=[]){let Yt=_e;if(Array.isArray(_e)){for(let Ct=0;Ct<_e.length;Ct++){let ae=ye[_e[Ct]];if(ae)return ae}return Yt[0]}return ye[Yt]||Yt}let lt=null;const Xt=()=>he(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(_e){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",_e)}});var rt=_e=>{var Yt=_e,{width:Ct="100%",height:ae="100%",value:ne,language:te="javascript",style:ie={},options:ue={},overrideServices:re={},theme:le="vs-dark",onEditBlur:xe,isCopy:ft=!1,onSave:Ae,autoHeight:Le=!1,forbidCopy:Qe=!1,forbidCopyTips:nt,onChange:bt=Jt,editorDidMount:Oe=Jt,onFocus:Be=Jt,onBreakPoint:zt=Jt,breakPointValue:Zt=[],filename:qt="educoder.txt",errorLine:en,errorContent:Tt="",highlightLine:an,openBreakPoint:Wt=!1,placeholder:Ke="",showMiniMap:mt=!0}=Yt,$t=Te(Yt,["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 nn=(0,b.useRef)(),Re=(0,b.useRef)({}),pt=(0,b.useRef)(),Mt=(0,b.useRef)(),Kt=(0,b.useRef)([]),cn=(0,b.useRef)(!1),Pn=(0,b.useRef)(),Rn=(0,b.useRef)(),Fn=(0,b.useRef)(!1),[vn,Mn]=(0,b.useState)(!1);function dn(){let sn;return nn.current&&(sn=new Fe.Z(yn=>{for(let Hn of yn)(Hn.target.offsetHeight>0||Hn.target.offsetWidth>0)&&Re.current.instance.layout()}),sn.observe(nn.current)),sn}function Vt(){He.ZP.warning({content:decodeURIComponent(nt||je),key:"monaco-editor-tip"})}const tn=()=>{let sn=Re.current.instance;if(ne!=null&&sn&&vn){const yn=sn.getModel();yn&&ne!==yn.getValue()&&(Ft=!0,yn.setValue(ne),sn.layout(),Ft=!1)}};(0,b.useEffect)(()=>{const sn=ut.Z.subscribe("formatDocument",yn=>{var Hn;let An=Re.current.instance;(Hn=An==null?void 0:An.getAction)==null||Hn.call(An,"editor.action.formatDocument").run()});return window.updateMonacoValue=yn=>{bt(yn)},sn},[]),(0,b.useEffect)(()=>{var sn;let yn=Re.current.instance;Mt.current&&clearTimeout(Mt.current),Mt.current=setTimeout(()=>{tn()},500),ne&&(ne!=null&&ne.length)&&((sn=yn==null?void 0:yn.updateOptions)==null||sn.call(yn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,vn,Re.current]),(0,b.useEffect)(()=>{if(en&&Re.current&&Re.current.instance){let yn=Re.current.instance;yn.changeViewZones(function(Hn){var An=document.createElement("div");An.style.padding="10px 20px",An.style.width="calc(100% - 20px)",An.className="my-error-line-wrp",An.innerHTML=Tt,Hn.addZone({afterLineNumber:en||11,heightInLines:3,domNode:An})});var sn={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}};yn.addOverlayWidget(sn),yn.revealPositionInCenter({lineNumber:20,column:1})}},[en,Re.current,vn]);const on=(sn="",yn)=>{if(!sn||sn.trim()==="")return!0;const An=Re.current.instance.getModel().getLineTokens(yn);let ct=!1;for(let It=0;It<2;It++)An.getStandardTokenType(It)===1&&(ct=!0);return ct};(0,b.useEffect)(()=>{var sn;const yn=(sn=Re.current)==null?void 0:sn.instance;if(yn&&vn&&Qe){const Hn=yn.onDidBlurEditorWidget(()=>{Fn.current=!1}),An=yn.onDidFocusEditorText(()=>{Fn.current=!0});return()=>{Hn.dispose(),An.dispose()}}},[Re.current,vn,Qe]),(0,b.useEffect)(()=>{var sn;if((sn=Re.current)!=null&&sn.instance&&vn&&Wt){let yn=Re.current.instance,Hn=yn.getModel();if(!Hn)return;(()=>{var gt;let ht=[],wt=[];const Rt=Hn.getAllDecorations();for(let On of Rt)On.options.className==="highlighted-line"&&(ht.push((gt=On==null?void 0:On.range)==null?void 0:gt.startLineNumber),wt.push(On==null?void 0:On.id));if(an===ht[0])return;Hn.deltaDecorations(wt,[]);const In=Hn.getLineCount();an&&an<=In&&(yn.deltaDecorations([],[{range:new lt.Range(an,1,an,Hn.getLineMaxColumn(an)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yn.revealLineInCenter(an))})();const ct=(gt=!1)=>{var ht;let wt=[],Rt=[];const In=Hn.getAllDecorations();for(let On of In)On.options.linesDecorationsClassName==="breakpoints-select"&&(wt.push((ht=On==null?void 0:On.range)==null?void 0:ht.startLineNumber),Rt.push(On==null?void 0:On.id));if(gt)return{lines:wt,ids:Rt};zt(wt)},It=gt=>he(void 0,null,function*(){let ht={range:new lt.Range(gt,1,gt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Hn.deltaDecorations([],[ht]),ct()}),ze=gt=>he(void 0,null,function*(){let ht=[];const wt=yn.getLineDecorations(gt);for(let Rt of wt)Rt.options.linesDecorationsClassName==="breakpoints-select"&&ht.push(Rt.id);yield Hn.deltaDecorations(ht,[]),ct()}),vt=gt=>{let ht=yn.getLineDecorations(gt);for(let wt of ht)if(wt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Et.isEqual)(Zt,ct(!0).lines)){Hn.deltaDecorations(ct(!0).ids,[]);const gt=Zt.map(ht=>({range:new lt.Range(ht,1,ht,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Hn.deltaDecorations([],gt)}const $e=yn.onDidChangeModelContent(gt=>{let ht=yn.getPosition();if(ht){let wt=ht.lineNumber;clearTimeout(Rn.current),Rn.current=setTimeout(()=>{on(Hn.getLineContent(wt),wt)?ze(wt):vt(wt)?(ze(wt),It(wt)):ct()},100)}}),xt=yn.onMouseDown(gt=>{var ht,wt,Rt;if(gt.target.detail&&((Rt=(wt=(ht=gt.target)==null?void 0:ht.element)==null?void 0:wt.className)!=null&&Rt.includes("line-numbers"))){let In=gt.target.position.lineNumber;if(on(Hn.getLineContent(In),In))return;vt(In)?ze(In):It(In)}}),De=gt=>{let ht={range:new lt.Range(gt,1,gt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Kt.current=yn.deltaDecorations(Kt.current,[ht])},Pt=()=>{Kt.current=yn.deltaDecorations(Kt.current,[])},kt=yn.onMouseMove(gt=>{var ht,wt,Rt;if(Pt(),gt.target.detail&&((Rt=(wt=(ht=gt.target)==null?void 0:ht.element)==null?void 0:wt.className)!=null&&Rt.includes("line-numbers"))){let In=gt.target.position.lineNumber;if(on(Hn.getLineContent(In),In))return;De(In)}}),jt=yn.onMouseLeave(()=>{Pt()});return()=>{$e.dispose(),xt.dispose(),kt.dispose(),jt.dispose()}}},[Re.current,vn,Zt,an,Wt,te]),(0,b.useEffect)(()=>{var sn;(sn=Re.current)!=null&&sn.instance&&Wt&&Re.current.instance.setPosition({lineNumber:0,column:0})},[an]);function _t(){let sn=Re.current.instance;if(sn){const yn=sn.getSelection(),Hn=Re.current.pastePos||{},An=new lt.Range(Hn.startLineNumber||yn.endLineNumber,Hn.startColumn||yn.endColumn,Hn.endLineNumber||yn.endLineNumber,Hn.endColumn||yn.endColumn);setTimeout(()=>{sn.executeEdits("",[{range:An,text:""}])},300)}}function hn(sn){(window.navigator.platform.match("Mac")?sn.metaKey:sn.ctrlKey)&&sn.keyCode==83&&(sn.preventDefault(),Ae())}const mn=()=>{if(Le&&Re.current.instance){const sn=Re.current.instance.getContentHeight();hr(sn<ae?ae:sn)}else hr(ae)};function Sn(sn){var yn=document.createEvent("MouseEvents");yn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),sn.dispatchEvent(yn)}const zn=sn=>{if(!Fn.current)return;const{keyCode:yn,ctrlKey:Hn,metaKey:An,target:ct,type:It}=sn;return(It==="paste"||(yn===67||yn===86)&&(An||Hn))&&ct.nodeName==="TEXTAREA"&&(Vt(),sn.preventDefault()),!1};function Wn(sn,yn){var Hn=window.URL||window.webkitURL||window,An=new Blob([yn]),ct=document.createElementNS("http://www.w3.org/1999/xhtml","a");ct.href=Hn.createObjectURL(An),ct.download=sn,Sn(ct)}(0,b.useEffect)(()=>{mn()},[mn]),(0,b.useEffect)(()=>{nn.current&&!vn&&Promise.all([ee.e(8909),ee.e(5977)]).then(ee.bind(ee,71448)).then(sn=>{try{lt=sn,Re.current.instance=lt.editor.create(nn.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 yn=Re.current.instance;let ct=[...Ie.BH._menuItems].find($e=>$e[0]._debugName=="EditorContext")[1],It=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ze=($e,xt)=>{var De,Pt;let kt=$e._first;do xt.includes((Pt=(De=kt.element)==null?void 0:De.command)==null?void 0:Pt.id)&&$e._remove(kt);while(kt=kt.next)};if(Oe(yn,lt),setTimeout(()=>{mn(),Re.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Wn(qt||"educoder.txt",yn.getValue())}})},500),Re.current.subscription=yn.onDidChangeModelContent($e=>{cn.current?clearTimeout(Pn.current):(mn(),bt(yn.getValue(),$e)),Pn.current=setTimeout(()=>{cn.current=!1},500)}),window.Monaco||tt(lt,Ye(te)),Qe&&(ze(ct,It),nn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",zn),window.removeEventListener("paste",zn),window.addEventListener("keydown",zn),window.addEventListener("paste",zn)),window.Monaco=lt,xe&&yn.onDidBlurEditorWidget(()=>{xe(yn.getValue())}),Be&&yn.onDidFocusEditorText(()=>{Qe&&Xt(),Be(yn.getValue())}),Qe){Xt();try{yn.onDidPaste($e=>{const xt=yn.getSelection(),De=Re.current.pastePos||{},Pt=new lt.Range(De.startLineNumber||xt.endLineNumber,De.startColumn||xt.endColumn,De.endLineNumber||xt.endLineNumber,De.endColumn||xt.endColumn);yn.executeEdits("",[{range:$e.range,text:""}])})}catch($e){}}let vt=dn();return Ke&&typeof Ke=="string"&&new We(Ke,yn,lt),Mn(!0),()=>{const $e=Re.current.instance;$e.dispose();const xt=$e.getModel();xt&&xt.dispose(),Re.current.subscription&&Re.current.subscription.dispose(),vt.unobserve(nn.current)}}catch(yn){}})},[]),(0,b.useEffect)(()=>{if(Re.current.instance&&vn)return document.addEventListener("keydown",hn,!1),()=>{document.removeEventListener("keydown",hn)}},[Ae,vn]),(0,b.useEffect)(()=>{let sn=Re.current.instance;if(sn&&vn){let yn=Ye(te);lt.editor.setModelLanguage(sn.getModel(),yn)}},[te,vn]),(0,b.useEffect)(()=>{Re.current.instance&&vn&&lt.editor.setTheme(le)},[le,vn]),(0,b.useEffect)(()=>{let sn=Re.current.instance;pt.current=ue,sn&&vn&&(sn.updateOptions(st({},ue)),setTimeout(()=>{sn.getModel().updateOptions(st({},ue))},200))},[JSON.stringify(ue),vn]),(0,b.useEffect)(()=>{let sn=Re.current.instance;sn&&vn&&sn.layout()},[Ct,ae,vn]);const[Zn,Jn]=(0,b.useState)(Nt(Ct)),[Gn,hr]=(0,b.useState)(Nt(ae)),cr=Ut(st({},ie),{width:Zn,height:Gn,position:"relative"});return b.createElement("div",{className:"my-monaco-editor",ref:nn,style:cr,onFocus:()=>{Qe&&Xt()}},ft&&b.createElement(et.CopyToClipboard,{text:ne,onCopy:()=>He.ZP.success("\u590D\u5236\u6210\u529F")},b.createElement(Ge.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 At({width:_e="100%",height:Yt="100%",original:Ct,modified:ae,language:ne,options:te={}}){const ie=(0,b.useRef)(),[ue,re]=(0,b.useState)(null);function le(Le){let Qe;return ie.current&&(Qe=new Fe.Z(nt=>{for(let bt of nt)(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&Le.layout()}),Qe.observe(ie.current)),Qe}(0,b.useEffect)(()=>(ie.current&&Promise.all([ee.e(8909),ee.e(9404)]).then(ee.bind(ee,2550)).then(Le=>{lt=Le;const Qe=lt.editor.createDiffEditor(ie.current,Ut(st({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(Qe);let nt=le(Qe);return()=>{Qe.dispose();const bt=Qe.getModel();bt&&bt.dispose(),nt.unobserve(ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,b.useEffect)(()=>{ue&&ue.setModel({original:lt.editor.createModel(Ct,ne),modified:lt.editor.createModel(ae,ne)})},[Ct,ae,ne,ue]);const xe=Nt(_e),ft=Nt(Yt),Ae={width:xe,height:ft};return b.createElement("div",{className:"my-diff-editor",ref:ie,style:Ae})}},54077:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Xe}});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"},Fe=ee(29787),fe=ee(25399),qe=ee(89787),Se=ee(92310),ge=ee.n(Se),Ee=ee(76406),Ze=ee(90736),Pe=ee(59301),Xe=({className:we,dataSource:St=[],col:tt=4,right:je,bottom:Me=23,precision:Ne=0,wrapWidth:it=1200,trackEventItems:yt,loading:Ot,onRemove:We=()=>{},isCurrent:Ie=!0,showProgress:He=!1,showAlias:Ge=!1,category:Et="notDisplay",hiddenClick:ut=()=>{}})=>{const et=Math.floor((it-(tt-1)*je)/tt),ot=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Pe.createElement(Fe.Z,{spinning:Ot},Pe.createElement("div",{className:ge()(b.list,we)},!!(St!=null&&St.length)&&(St==null?void 0:St.map((Ce,at)=>{var Ve,de,Dt,Ue,st,Ut,Te;const{name:he,id:Nt,identifier:Jt,featured:Ft,school_name:ye,image_url:Ye,excellent:lt,is_plan:Xt}=Ce;return Pe.createElement("div",{key:Nt,className:Ie&&He?b.wrapisCurrent:b.wrap,style:{width:et,marginRight:(1+at)%tt===0?0:je+Ne,marginBottom:Me}},Pe.createElement("a",{className:b.li,onClick:rt=>{rt.preventDefault(),rt.stopPropagation(),yt&&(0,Ee.L9)([yt]),(0,Ee.xg)(`/paths/${Jt}`)}},Pe.createElement("div",{className:b.img},Pe.createElement("img",{className:b.cover,src:`${Ye}`}),(Ve=Ce==null?void 0:Ce.subject_tags)==null?void 0:Ve.map((rt,At)=>{var _e,Yt;if(At===0){const ae=(_e=ot.find(ne=>ne.name==rt))==null?void 0:_e.swclass;return Pe.createElement("span",{className:`sprite ${ae} ${b.sign}`,style:{left:"-4px"}})}const Ct=(Yt=ot.find(ae=>ae.name==rt))==null?void 0:Yt.ptclass;return Pe.createElement("span",{className:`sprite ${Ct} ${b.sign}`,style:{left:`${48+52*(At-1)+2*At}px`}})}),Pe.createElement("div",{className:b.tagsDom},Pe.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Ce==null?void 0:Ce.excellent)&&Pe.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"),((de=Ce==null?void 0:Ce.custom_tags)==null?void 0:de.length)>0&&(Ce==null?void 0:Ce.custom_tags.map((rt,At)=>{var _e;return Pe.createElement(fe.Z,{title:rt==null?void 0:rt.tag_name,key:At},Pe.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((_e=Ce==null?void 0:Ce.custom_tags)==null?void 0:_e.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Pe.createElement("span",{className:"multi-llipsis1e"},rt==null?void 0:rt.tag_name)))})))),Et=="hide"&&(Ce==null?void 0:Ce.studying)&&Ie&&Pe.createElement("div",{className:`${b.movebq} user-path-items`,onClick:rt=>{rt.stopPropagation(),We(Ce)}},Pe.createElement("i",{className:"iconfont icon-yichu1 font12"}),Pe.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(Et)&&Ie&&Pe.createElement("div",{className:`${b.hiddenbq} user-path-items`,onClick:rt=>{rt.stopPropagation(),ut(Ce)}},Pe.createElement("i",{className:`iconfont ${Et=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Pe.createElement("span",null,Et=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Pe.createElement("div",{className:b.name},Pe.createElement(fe.Z,{title:Ge&&(Ce!=null&&Ce.excellent_alias_name)?Pe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${he}`,Pe.createElement("br",null),Pe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ce==null?void 0:Ce.excellent_alias_name}`)):he},Pe.createElement("span",{className:b.e},Ge&&(Ce==null?void 0:Ce.excellent_alias_name)||he))),Ie&&He&&((Dt=Ce==null?void 0:Ce.progress)==null?void 0:Dt.all_score)!=0&&Pe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Pe.createElement(qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ue=Ce==null?void 0:Ce.progress)==null?void 0:Ue.my_score)/((st=Ce==null?void 0:Ce.progress)==null?void 0:st.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ut=Ce==null?void 0:Ce.progress)==null?void 0:Ut.my_score,"/",(Te=Ce==null?void 0:Ce.progress)==null?void 0:Te.all_score),(!Ie||!He)&&Pe.createElement(fe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ye}`},Pe.createElement("div",{className:b.unit},Pe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ye)),(!Ie||!He)&&Pe.createElement("div",{className:b.tags},Pe.createElement("div",null,Pe.createElement(fe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Pe.createElement("span",null,Pe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Pe.createElement("span",null,Ce.stages_count))),Pe.createElement(fe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Pe.createElement("span",null,Pe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Pe.createElement("span",null,Ce.members_count)))))))})),!St.length&&Pe.createElement(Ze.Z,null)))}},70467:function(Cn,Qt,ee){"use strict";ee.d(Qt,{jL:function(){return qe},w9:function(){return he},QD:function(){return Zt},cQ:function(){return at.Z},op:function(){return Qe},O5:function(){return dn},_b:function(){return Ke},t7:function(){return Ne},Gi:function(){return lt},YG:function(){return ye},qp:function(){return ce},vr:function(){return Tt},qE:function(){return Oe},Je:function(){return Ot},wb:function(){return Ce},cq:function(){return Ct},tp:function(){return St}});var b=ee(59301),Fe={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"},qe=({dataSource:Vt=[],img:tn,imgWidth:on=346,title:_t,sunTitle:hn,bannerExtraContent:mn})=>b.createElement("div",{className:Fe.banner},b.createElement("div",{className:Fe.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,_t),b.createElement("span",null,hn)),Vt.length>0&&b.createElement("div",{className:Fe.btns},Vt.map((Sn,zn)=>b.createElement("div",{key:zn,onClick:Sn.click},Sn.name,Sn.sign?b.createElement("span",{className:"sprite sprite-33"}):null))),mn),tn&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:tn,width:on}))),Se={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ge=ee(92310),Ee=ee.n(ge),Ze=ee(78267),ce=({dataSource:Vt=[],value:tn,onChange:on,onTitleChange:_t,className:hn,title:mn,titleWidth:Sn=41,style:zn={},fontColor:Wn="#6A7283",showCount:Zn})=>{const[Jn,Gn]=(0,b.useState)(1),[hr,cr]=(0,b.useState)(!1),sn=(0,b.useRef)(null),yn=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Hn;Vt.length!==0&&(((Hn=sn==null?void 0:sn.current)==null?void 0:Hn.clientHeight)>97?Gn(1):Gn(0)),Vt.length===0&&Gn(0),cr(!1)},[Vt]),b.createElement("div",{className:Ee()(Se.row,hn,"fadeIn","animated"),style:zn},b.createElement("div",{onClick:(0,Ze.throttle)(()=>_t==null?void 0:_t(),2e3),style:{width:Sn,marginTop:hr?12:4},className:`${Se.title} ${_t?"current":""}`},mn),b.createElement("div",{className:hr?`${Se.tagsWrap} ${Se.tagsBorderWrap}`:Se.tagsWrap},b.createElement("div",{className:Se.bar,ref:yn,style:Jn>0?{height:Jn===1?97:"auto",overflow:Jn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Se.tag,ref:sn},Vt==null?void 0:Vt.map(Hn=>b.createElement("span",{onClick:()=>on(Hn.id),key:Hn.id,style:{color:Wn},className:tn===Hn.id?Se.active:""},b.createElement("span",{title:Hn.name,className:Se.name},Hn.name),!!Zn&&b.createElement("span",{className:Se.num},Hn.count))))),!!Jn&&b.createElement(b.Fragment,null,Jn===1?b.createElement("div",{onClick:()=>{var Hn;Gn(2),((Hn=sn==null?void 0:sn.current)==null?void 0:Hn.clientHeight)>245?cr(!0):cr(!1)},className:Se.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{yn.current.scrollTop=0,Gn(1),cr(!1)},className:Se.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Xe={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"},St=({dataSource:Vt=[],value:tn,onChange:on,className:_t,style:hn={}})=>b.createElement("div",{style:hn,className:Ee()(Xe.tabs,_t)},Vt.map(mn=>b.createElement("span",{onClick:()=>on(mn.id),className:tn===mn.id?Xe.active:"",key:mn.id},mn.name))),tt={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"},je=ee(37568),Ne=({dataSource:Vt=[],value:tn="",onChange:on,onInputChange:_t=()=>{},className:hn,style:mn={},placeholder:Sn,allowClear:zn=!1})=>{var Wn;const[Zn,Jn]=(0,b.useState)(""),[Gn,hr]=(0,b.useState)("");(0,b.useEffect)(()=>{var yn;let Hn=tn;(yn=JSON.stringify(tn))!=null&&yn.includes("{")&&(Jn(tn.id),Hn=tn.value||"");try{hr(decodeURIComponent(Hn||""))}catch(An){hr(decodeURIComponent(Hn||""))}},[tn]);const cr=()=>{on(encodeURIComponent(Gn),Zn||null)},sn=yn=>{yn!==Zn&&(Jn(yn),on(encodeURIComponent(Gn),yn))};return b.createElement("div",{className:Ee()(tt.input,hn),style:mn},!!Vt.length&&b.createElement("div",{className:tt.dropdown},b.createElement("div",{className:tt.text},(Wn=Vt.find(yn=>yn.id===Zn))==null?void 0:Wn.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:tt.b1}),b.createElement("b",{className:tt.b2})),b.createElement("div",{className:tt.menu},Vt.map((yn,Hn)=>b.createElement("div",{key:Hn,onClick:()=>sn(yn.id)},yn.name)))),b.createElement(je.default,{onPressEnter:cr,value:Gn,onChange:yn=>{hr(yn.target.value),_t(encodeURIComponent(yn.target.value),Zn||null)},placeholder:Sn,variant:"borderless",allowClear:zn,onClear:()=>on("",Zn||null)}),b.createElement("i",{onClick:cr,className:"iconfont icon-sousuo9 font14 current"}))},it={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"},Ot=({value:Vt,onChange:tn,className:on,total:_t,pageSize:hn,style:mn={}})=>{const Sn=Vt<2,zn=Vt>=Math.ceil(_t/hn);return _t<=hn?b.createElement(b.Fragment,null):b.createElement("div",{className:Ee()(it.quickPager,on),style:mn},b.createElement("div",{onClick:()=>{Sn||tn(Vt-1,"prev")},className:Sn?it.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{zn||tn(Vt+1,"next")},className:zn?it.disabled:""},"\u4E0B\u4E00\u9875"))},We={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ie=ee(29787),He=ee(25399),Ge=ee(63139),Et=ee(14185),ut=ee(76406),et=ee(90736),Ce=({className:Vt,dataSource:tn=[],col:on=4,right:_t,bottom:hn=23,precision:mn=0,wrapWidth:Sn=1200,trackEventItems:zn,loading:Wn})=>{const Zn=Math.floor((Sn-(on-1)*_t)/on);return b.createElement(Ie.Z,{spinning:Wn},b.createElement("div",{className:Ee()(We.list,Vt)},!!tn.length&&tn.map((Jn,Gn)=>{const{name:hr,id:cr,identifier:sn,power:yn,cover_image_id:Hn,pic:An}=Jn;return b.createElement("div",{className:We.wrap,key:cr,style:{width:Zn,marginRight:(1+Gn)%on===0?0:_t+mn,marginBottom:hn}},b.createElement("a",{target:"_blank",href:`/shixuns/${sn}/challenges`,className:We.li,onClick:ct=>{ct.preventDefault(),zn&&(0,ut.L9)([zn]),yn&&(0,ut.xg)(`/shixuns/${sn}/challenges`)}},b.createElement("div",{className:We.img},b.createElement("img",{className:We.cover,src:`${An}`}),Jn.is_jupyter&&b.createElement("span",{className:`sprite sprite-43 ${We.sign}`}),Jn.is_jupyter_lab&&b.createElement("span",{className:`sprite sprite-42 ${We.sign}`}),Jn.is_unity_3d&&b.createElement("span",{className:`sprite sprite-44 ${We.sign}`})),b.createElement("div",{className:We.name},b.createElement(He.Z,{title:hr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:We.e},hr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:We.tags},b.createElement(He.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Jn.challenges_count))),!!Jn.myshixuns_count&&b.createElement(He.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,Jn.myshixuns_count))),b.createElement(He.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Jn.level))),b.createElement("div",{className:We.rate},b.createElement(Ge.Z,{allowHalf:!0,disabled:!0,defaultValue:Jn.score_info}),b.createElement("span",null,"\xA0",Jn.score_info?`${Jn.score_info}\u5206`:"5\u5206")))),!yn&&b.createElement("div",{className:We.lockWrap},b.createElement("img",{src:`${Et.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")))}),!tn.length&&b.createElement(et.Z,null)))},at=ee(54077),Ve={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},de=ee(62957),Dt=ee(96599),Ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILCl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kFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",st=ee(59301),Ut=(Vt,tn,on)=>new Promise((_t,hn)=>{var mn=Wn=>{try{zn(on.next(Wn))}catch(Zn){hn(Zn)}},Sn=Wn=>{try{zn(on.throw(Wn))}catch(Zn){hn(Zn)}},zn=Wn=>Wn.done?_t(Wn.value):Promise.resolve(Wn.value).then(mn,Sn);zn((on=on.apply(Vt,tn)).next())}),he=({className:Vt,dataSource:tn=[],col:on=4,right:_t,bottom:hn=23,precision:mn=0,wrapWidth:Sn=1200,trackEventItems:zn,loading:Wn,category:Zn,hiddenClick:Jn,handleVery:Gn=()=>!0,isCurrent:hr})=>{const[cr,sn]=de.default.useModal(),yn=Math.floor((Sn-(on-1)*_t)/on),Hn=An=>Ut(void 0,null,function*(){cr.confirm({title:"\u7F6E\u9876",width:500,content:st.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",st.createElement("span",{className:"c-blue"},"\u201C",An.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return st.createElement(Ie.Z,{spinning:Wn},sn,st.createElement("div",{className:Ee()(Ve.list,Vt)},!!tn.length&&tn.map((An,ct)=>{const{subject_identifier:It,id:ze,identifier:vt,power:$e}=An,xt=An.is_public!=0&&An.is_public;return st.createElement("div",{className:Ve.wrap,key:ze,style:{width:yn,marginRight:(1+ct)%on===0?0:_t+mn,marginBottom:hn}},An.homepage_show&&st.createElement("div",{className:Ve.btnsTop},st.createElement(Dt.default,{color:"red"},"\u7F6E\u9876")),st.createElement("a",{className:Ve.li,onClick:De=>{De.preventDefault(),Gn(An==null?void 0:An.first_category_url)&&(zn&&(0,ut.L9)([zn]),(0,ut.xg)(An.first_category_url))}},st.createElement("div",{className:Ve.top},st.createElement(He.Z,{title:An.name},st.createElement("div",{className:Ve.name},An.name)),st.createElement("img",{className:Ve.img,src:Et.Z.IMG_SERVER+"/images/"+An.avatar_url}),st.createElement("div",{className:Ve.text,title:An.creator},An.creator),It&&st.createElement("div",{className:Ve.btns},st.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),st.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),xt&&st.createElement("div",{className:Ve.sign},"\u516C\u5F00"),hr&&st.createElement("div",{className:Ve.hidden,onClick:De=>{De.stopPropagation(),Jn(An)}},st.createElement("i",{className:`iconfont ${Zn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Zn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),st.createElement("div",{className:Ve.bottom},An.visits>0&&st.createElement(He.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-liulanyan"}),st.createElement("span",null,An.visits))),An.course_members_count>0&&st.createElement(He.Z,{title:"\u6210\u5458",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-chengyuan"}),An.course_members_count)),An.tasks_count>0&&st.createElement(He.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},st.createElement("span",null,st.createElement("i",{className:"iconfont icon-zuoye"}),An.tasks_count)),An.is_end?st.createElement("div",{style:{color:"#6B758B"}}):st.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!An.is_accessible&&st.createElement("div",{className:Ve.lockWrap},st.createElement("img",{src:`${Et.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),st.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!tn.length&&st.createElement(et.Z,null)))},Nt={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"},Jt=ee(44283),ye=({dataSource:Vt=[],value:tn,onChange:on,className:_t,style:hn={},tabBarExtraContent:mn})=>b.createElement("div",{className:Ee()(Nt.tabs,_t),style:hn},b.createElement("div",{className:Nt.tabsWrap},Vt.map((Sn,zn)=>!(Sn!=null&&Sn.hide)&&b.createElement("aside",{className:Nt.tab,onClick:()=>{on(Sn.id),Sn.link&&Jt.history.push(Sn.link)},key:zn},b.createElement("div",{className:tn===Sn.id?Nt.active:""},Sn.name),(Sn==null?void 0:Sn.resetCount)==null&&(Sn==null?void 0:Sn.total)!==void 0&&b.createElement("span",null,"\uFF08",Sn==null?void 0:Sn.total,"\uFF09"),(Sn==null?void 0:Sn.resetCount)!==void 0&&(Sn==null?void 0:Sn.total)!==void 0&&b.createElement(He.Z,{title:(Sn==null?void 0:Sn.tip)!=null?Sn==null?void 0:Sn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Sn==null?void 0:Sn.resetCount),"/",b.createElement("span",null,Sn==null?void 0:Sn.total),"\uFF09"))))),b.createElement("div",{className:Nt.tabBar},mn)),lt=({className:Vt,style:tn={},children:on})=>b.createElement("div",{className:Ee()(Vt),style:tn},on),Xt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},rt=ee(75727),At=ee(93041);const _e=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ct=({sortValue:Vt,dropValue:tn,className:on,onSort:_t,onDrop:hn,dataSource:mn=_e})=>{var Sn;return b.createElement("div",{className:Ee()(Xt.orderWrap,on)},b.createElement(rt.Z,{dropdownRender:()=>b.createElement(At.default,null,mn.map((zn,Wn)=>b.createElement(At.default.Item,{key:Wn,onClick:()=>hn(zn.id)},zn.name)))},b.createElement("span",{className:Xt.orderTextWrap},(Sn=mn.find(zn=>tn===zn.id))==null?void 0:Sn.name)),b.createElement("span",{className:Xt.orderIconWrap},b.createElement("span",{className:Xt.orderAsc},b.createElement("i",{className:Vt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Xt.cursorPointer} ${Xt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Xt.cursorPointer}`,onClick:()=>_t(Vt==="asc"?"desc":"asc")})),b.createElement("span",{className:Xt.orderDesc},b.createElement("i",{className:Vt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Xt.cursorPointer} ${Xt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Xt.cursorPointer}`,onClick:()=>_t(Vt==="asc"?"desc":"asc")}))))},ae={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"},ne=ee(7939),te=Object.defineProperty,ie=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,le=(Vt,tn,on)=>tn in Vt?te(Vt,tn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Vt[tn]=on,xe=(Vt,tn)=>{for(var on in tn||(tn={}))ue.call(tn,on)&&le(Vt,on,tn[on]);if(ie)for(var on of ie(tn))re.call(tn,on)&&le(Vt,on,tn[on]);return Vt},ft=(Vt,tn)=>{var on={};for(var _t in Vt)ue.call(Vt,_t)&&tn.indexOf(_t)<0&&(on[_t]=Vt[_t]);if(Vt!=null&&ie)for(var _t of ie(Vt))tn.indexOf(_t)<0&&re.call(Vt,_t)&&(on[_t]=Vt[_t]);return on},Ae=(Vt,tn,on)=>new Promise((_t,hn)=>{var mn=Wn=>{try{zn(on.next(Wn))}catch(Zn){hn(Zn)}},Sn=Wn=>{try{zn(on.throw(Wn))}catch(Zn){hn(Zn)}},zn=Wn=>Wn.done?_t(Wn.value):Promise.resolve(Wn.value).then(mn,Sn);zn((on=on.apply(Vt,tn)).next())}),Qe=Vt=>{var tn=Vt,{className:on,style:_t,children:hn,loading:mn=!1,openLoading:Sn,onClick:zn=()=>{},size:Wn="middle",shape:Zn="round"}=tn,Jn=ft(tn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gn,hr]=(0,b.useState)(!1);return b.createElement(ne.ZP,xe({onClick:(0,Ze.throttle)(cr=>Ae(void 0,null,function*(){Sn&&hr(!0);try{yield zn(cr)}catch(sn){console.log("error",sn)}Sn&&hr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ee()(ae.btn,ae[`${Wn}-${Zn}`],on),style:_t,size:Wn,shape:Zn,loading:Gn||mn},Jn),hn)},nt={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"},Oe=({className:Vt,style:tn,children:on=null,onClick:_t,title:hn})=>b.createElement("div",{className:Ee()(nt.head,Vt),style:tn},b.createElement("span",{className:"primary-hover",onClick:_t},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:hn},hn),b.createElement("div",{className:nt.node},on)),Be={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"},Zt=({confirmShow:Vt=!0,confirmTitle:tn,confirmClick:on,cancelShow:_t=!0,cancelTitle:hn,cancelClick:mn,className:Sn,style:zn,confirmLoading:Wn=!1})=>b.createElement("div",{className:Ee()(Be.btns,Sn),style:zn},Vt&&b.createElement(ne.ZP,{loading:Wn,onClick:on,type:"primary",className:Be.confirm},tn),_t&&b.createElement(ne.ZP,{onClick:mn,className:Be.cancel},hn)),qt={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"},Tt=({className:Vt,style:tn={},LeftContent:on,children:_t,RightContent:hn})=>b.createElement("div",{className:Ee()(qt.fixedBottom,Vt),style:tn},b.createElement("div",{className:qt.wrap},b.createElement("div",{className:qt.left},on),b.createElement("div",{className:qt.center},_t),b.createElement("div",{className:qt.right},hn))),an={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"},Ke=({className:Vt,style:tn={},dataSource:on=[]})=>b.createElement("div",{className:Ee()(an.crumbs,Vt),style:tn},on.map((_t,hn)=>hn<on.length-1?b.createElement(b.Fragment,{key:hn},_t.path||_t.onClick?b.createElement("span",{className:an.hover,onClick:_t!=null&&_t.onClick?_t.onClick:()=>Jt.history.push(_t.path)},_t.name):b.createElement("span",null,_t.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:hn,style:{color:"#5F6368"}},_t.name))),mt=ee(11938),$t=Object.defineProperty,nn=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,cn=(Vt,tn,on)=>tn in Vt?$t(Vt,tn,{enumerable:!0,configurable:!0,writable:!0,value:on}):Vt[tn]=on,Pn=(Vt,tn)=>{for(var on in tn||(tn={}))Mt.call(tn,on)&&cn(Vt,on,tn[on]);if(pt)for(var on of pt(tn))Kt.call(tn,on)&&cn(Vt,on,tn[on]);return Vt},Rn=(Vt,tn)=>nn(Vt,Re(tn)),Fn=(Vt,tn)=>{var on={};for(var _t in Vt)Mt.call(Vt,_t)&&tn.indexOf(_t)<0&&(on[_t]=Vt[_t]);if(Vt!=null&&pt)for(var _t of pt(Vt))tn.indexOf(_t)<0&&Kt.call(Vt,_t)&&(on[_t]=Vt[_t]);return on};const{Countdown:vn}=mt.default;var dn=Vt=>{var tn=Vt,{onChange:on}=tn,_t=Fn(tn,["onChange"]);const[hn,mn]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof hn=="number"&&hn>=0&&on(hn)},[hn]);const Sn=zn=>{const Wn=Math.floor(zn/1e3);mn(Wn)};return b.createElement(vn,Rn(Pn({},_t),{onChange:Sn}))}},79006:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Fe}});var b=ee(59301);function Fe(fe,qe){const Se=(0,b.useRef)();(0,b.useEffect)(()=>{Se.current=fe}),(0,b.useEffect)(()=>{function ge(){Se.current()}if(qe!==null){let Ee=setInterval(ge,qe);return()=>clearInterval(Ee)}},[qe])}},49229:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Se}});var b=ee(59301),Fe={label:"label___CZ1_z",left:"left___ZKFRV",right:"right___zVTRn",error:"error___oNJNo"},fe=ee(25399),Se=({name:ge,tooltipTitle:Ee,children:Ze,required:Pe,errorKey:ce,errorValue:Xe,errorName:we,errorStyle:St={},nameWidth:tt=112,align:je="center",contentStyle:Me={}})=>b.createElement(b.Fragment,null,b.createElement("div",{className:Fe.label,style:{alignItems:je}},b.createElement("div",{className:Fe.left,style:{width:tt}},Pe&&b.createElement("span",null,"*"),b.createElement("div",null,ge),!!Ee&&b.createElement(fe.Z,{title:Ee},b.createElement("i",{className:"iconfont icon-xiaowenhao2"}))),b.createElement("div",{className:Fe.right,style:Me},Ze,we&&Xe===ce&&b.createElement("div",{className:Fe.error,style:St},we))))},70303:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return yt}});var b=ee(59301),Fe=ee(44283),fe=ee(37568),qe=ee(28284),Se=ee(62957),ge=ee(6767),Ee=ee(94968),Ze=ee(7939),Pe=ee(14185),ce=ee(55351),Xe={flexRow:"flexRow___JBN3B",flexColumn:"flexColumn___zXgFj",formWrap:"formWrap___aNgan",upload:"upload___yGdLQ",color0152d9:"color0152d9___zzEpS",colorCCC:"colorCCC___k4Dxq",footerWrap:"footerWrap___WrUZd",qrCode:"qrCode___GPwSg",a1:"a1___R6etl",code:"code___fCL_L",group:"group___n7tgy",groupNumber:"groupNumber___tw7hA",a2:"a2___GGjDE"},we=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,je=(Ot,We)=>{var Ie={};for(var He in Ot)St.call(Ot,He)&&We.indexOf(He)<0&&(Ie[He]=Ot[He]);if(Ot!=null&&we)for(var He of we(Ot))We.indexOf(He)<0&&tt.call(Ot,He)&&(Ie[He]=Ot[He]);return Ie},Me=(Ot,We,Ie)=>new Promise((He,Ge)=>{var Et=ot=>{try{et(Ie.next(ot))}catch(Ce){Ge(Ce)}},ut=ot=>{try{et(Ie.throw(ot))}catch(Ce){Ge(Ce)}},et=ot=>ot.done?He(ot.value):Promise.resolve(ot.value).then(Et,ut);et((Ie=Ie.apply(Ot,We)).next())});const Ne=fe.default.TextArea,it=Ot=>{var We=Ot,{newShixuns:Ie,globalSetting:He,loading:Ge,dispatch:Et}=We,ut=je(We,["newShixuns","globalSetting","loading","dispatch"]);const[et]=qe.default.useForm(),[ot,Ce]=(0,b.useState)([]),at=st=>{["uploading","done","removed"].includes(st.file.status)&&Ce(st.fileList)},Ve=st=>{var Ut;if(!st.percent||st.percent==100){const Te=(Ut=st.response)==null?void 0:Ut.id;return Se.default.confirm({centered:!0,title:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u9644\u4EF6\u5417?",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>Me(void 0,null,function*(){(yield Et({type:"newShixuns/deleteAttachment",payload:{id:Te}}))&&Ce(ot.filter(Nt=>{var Jt;return((Jt=Nt.response)==null?void 0:Jt.id)!==Te}))})}),!1}},de=st=>ot.length?!1:st.size/1024/1024>50?(ge.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E50MB"),!1):!0,Dt=st=>Me(void 0,null,function*(){var Ut,Te;const{language:he,env:Nt,mode:Jt,code:Ft}=st||{},ye=yield Et({type:"newShixuns/applyShixunMirror",payload:{language:he,runtime:Nt,run_method:Jt,attachment_id:(Te=(Ut=ot==null?void 0:ot[0])==null?void 0:Ut.response)==null?void 0:Te.id}});Et({type:"newShixuns/setActionTabs",payload:{}}),ye&&ge.ZP.success("\u65B0\u5EFA\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u7BA1\u7406\u5458\u5BA1\u6838\u3002")}),Ue=()=>{et.resetFields(),Ce([])};return b.createElement(Se.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,open:Ie.actionTabs.key==="NewShixuns-Apply",title:"\u7533\u8BF7\u65B0\u5EFA",width:"1000px",footer:null,afterClose:Ue},b.createElement("section",{className:Xe.qrCode},b.createElement("aside",{className:Xe.a1},b.createElement("div",{className:Xe.code},b.createElement("img",{width:120,height:120,src:ce,alt:"\u4E8C\u7EF4\u7801"})),b.createElement("div",{className:Xe.group},"\u5B9E\u9A8C\u73AF\u5883\u7533\u8BF7QQ\u7FA4"),b.createElement("div",{className:Xe.groupNumber},"\u7FA4\u53F7\uFF1A740157011")),b.createElement("aside",{className:Xe.a2},"\u5C0A\u656C\u7684\u8001\u5E08/\u540C\u5B66\u60A8\u597D\uFF0C",b.createElement("br",null),"\u5982\u679C\u60A8\u60F3\u65B0\u5EFA\u5B9E\u9A8C\u73AF\u5883\uFF0C\u53EF\u4EE5\u626B\u63CF\u5DE6\u4FA7\u4E8C\u7EF4\u7801\u8FDB\u7FA4\uFF0C\u76F4\u63A5\u5411\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u7533\u8BF7\u54E6~ \u4E5F\u53EF\u4EE5\u63D0\u4EA4\u4E0B\u9762\u7684\u8868\u5355\u7533\u8BF7\uFF0C\u6211\u4EEC\u7684\u5DE5\u4F5C\u4EBA\u5458\u6536\u5230\u7533\u8BF7\u4FE1\u606F\u5C06\u4F1A\u7B2C\u4E00\u65F6\u95F4\u8054\u7CFB\u60A8\uFF01")),b.createElement(qe.default,{className:Xe.formWrap,form:et,labelCol:{span:4},wrapperCol:{span:20},onFinish:Dt},b.createElement(qe.default.Item,{label:"\u8BED\u8A00\uFF1A",name:"language",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00"}]},b.createElement(Ne,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48\u8BED\u8A00\uFF1A\u793A\u4F8B\uFF1APython",rows:4})),b.createElement(qe.default.Item,{label:"\u7CFB\u7EDF\u73AF\u5883\uFF1A",name:"env",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u8BED\u8A00\u7CFB\u7EDF\u73AF\u5883"}]},b.createElement(Ne,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u662F\u57FA\u4E8E\u4EC0\u4E48linux\u7CFB\u7EDF\u73AF\u5883,\u4EE3\u7801\u8FD0\u884C\u73AF\u5883",rows:4})),b.createElement(qe.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F\uFF1A",name:"mode",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F"}]},b.createElement(Ne,{placeholder:"\u8BF7\u586B\u5199\u8BE5\u955C\u50CF\u4E2D\u6D4B\u8BD5\u4EE3\u7801\u8FD0\u884C\u65B9\u5F0F",rows:4})),b.createElement(qe.default.Item,{label:"\u6D4B\u8BD5\u4EE3\u7801\uFF1A",name:"code",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u9644\u4EF6"}]},b.createElement("div",{className:Xe.upload},b.createElement(Ee.default,{fileList:ot,action:`${Pe.Z.API_SERVER}/api/attachments.json?client_key=6d57f8c3dd186c5ada392546ace9620a`,onChange:at,onRemove:Ve,beforeUpload:de,withCredentials:!0},b.createElement("span",{className:`${Xe.color0152d9} current`},"\u4E0A\u4F20\u9644\u4EF6"),b.createElement("span",{className:`${Xe.colorCCC} ml10`},"(\u5355\u4E2A\u6587\u4EF650M\u4EE5\u5185)")))),b.createElement("div",{className:Xe.footerWrap},b.createElement(qe.default.Item,null,b.createElement(Ze.ZP,{className:"mr5",size:"middle",onClick:()=>{Et({type:"newShixuns/setActionTabs",payload:{}})}},"\u53D6\u6D88"),b.createElement(Ze.ZP,{size:"middle",type:"primary",htmlType:"submit",loading:Ge["newShixuns/applyShixunMirror"]},"\u4FDD\u5B58")))))};var yt=(0,Fe.connect)(({newShixuns:Ot,loading:We,globalSetting:Ie})=>({newShixuns:Ot,globalSetting:Ie,loading:We.effects}))(it)},81759:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ie}});var b=ee(59301),Fe=ee(28284),fe=ee(6767),qe=ee(62957),Se=ee(37568),ge=ee(7939),Ee=ee(49317),Ze=ee(39116),Pe={errorTip:"errorTip___yZItq",btns:"btns___kcUDL",confirm:"confirm___EXVbh",cancel:"cancel___vQdUc",formWrap:"formWrap___diWab"},ce=ee(42075),Xe=Object.defineProperty,we=Object.defineProperties,St=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ne=(He,Ge,Et)=>Ge in He?Xe(He,Ge,{enumerable:!0,configurable:!0,writable:!0,value:Et}):He[Ge]=Et,it=(He,Ge)=>{for(var Et in Ge||(Ge={}))je.call(Ge,Et)&&Ne(He,Et,Ge[Et]);if(tt)for(var Et of tt(Ge))Me.call(Ge,Et)&&Ne(He,Et,Ge[Et]);return He},yt=(He,Ge)=>we(He,St(Ge)),Ot=(He,Ge,Et)=>new Promise((ut,et)=>{var ot=Ve=>{try{at(Et.next(Ve))}catch(de){et(de)}},Ce=Ve=>{try{at(Et.throw(Ve))}catch(de){et(de)}},at=Ve=>Ve.done?ut(Ve.value):Promise.resolve(Ve.value).then(ot,Ce);at((Et=Et.apply(He,Ge)).next())}),Ie=({visible:He,mirrorId:Ge,setVisible:Et,getData:ut})=>{const[et]=Fe.default.useForm(),[ot,Ce]=(0,b.useState)({}),[at,Ve]=(0,b.useState)(""),[de,Dt]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Ge!=null&&He&&Ue()},[Ge,He]);const Ue=()=>Ot(void 0,null,function*(){const he=yield(0,Ee.ZP)(`/api/user_mirrors/${Ge}.json`,{method:"get"});(he==null?void 0:he.status)===0&&(et.setFieldsValue(it({},he==null?void 0:he.data)),Ce(it({},he==null?void 0:he.data)))}),st=()=>{Et(!1),Ce({}),et.setFieldsValue({})},Ut=()=>Ot(void 0,null,function*(){Dt(!0);const he=it({},yield et.validateFields());(yield(0,Ee.ZP)(`/api/user_mirrors/${Ge}.json`,{method:"put",body:{type_name:he==null?void 0:he.type_name,description:he==null?void 0:he.description}})).status===0&&(fe.ZP.success("\u4FEE\u6539\u6210\u529F"),ut()),Dt(!1),Et(!1)}),Te=he=>Ot(void 0,null,function*(){const Nt=yield(0,Ee.ZP)("/api/user_mirrors/check_mirror_name.json",{method:"post",body:{type_name:he,id:Ge}});return(Nt==null?void 0:Nt.status)===0?{state:!1}:{state:!0,msg:Nt==null?void 0:Nt.message}});return b.createElement(qe.default,{centered:!0,width:1200,title:"\u4FEE\u6539\u955C\u50CF\u4FE1\u606F",maskClosable:!1,open:He,destroyOnClose:!0,footer:null,onCancel:st},b.createElement(Fe.default,{style:{marginTop:20},form:et,scrollToFirstError:!0,layout:"horizontal",className:Pe.formWrap},b.createElement(Fe.default.Item,{label:"\u955C\u50CF\u540D\u79F0",name:"type_name",colon:!1,className:Pe.errorTip,rules:[{required:!0,message:""},{validator:(he,Nt)=>Ot(void 0,null,function*(){const Jt=yield Te(Nt);return(Jt==null?void 0:Jt.state)===!0?Promise.reject(Jt==null?void 0:Jt.msg):Promise.resolve()})}]},b.createElement(Se.default,{size:"large",maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u955C\u50CF\u540D\u79F0"})),b.createElement(Fe.default.Item,{label:"\u955C\u50CF\u63CF\u8FF0",name:"description",colon:!1},b.createElement(Ze.Z,{watch:!0,height:300,placeholder:"",defaultValue:ot==null?void 0:ot.description,onChange:he=>{et.setFieldsValue(yt(it({},et.getFieldsValue()),{description:he})),Ce(yt(it({},ot),{description:he}))},onBlur:he=>{et.setFieldsValue(yt(it({},et.getFieldsValue()),{description:he})),Ce(yt(it({},ot),{description:he}))}}))),b.createElement("div",{className:Pe.btns},b.createElement(ge.ZP,{onClick:st,className:Pe.cancel},"\u53D6\u6D88 "),b.createElement(ce.Z,{type:"primary",className:Pe.confirm,onClick:()=>Ot(void 0,null,function*(){yield Ut()})},"\u786E\u5B9A")))}},50207:function(Cn,Qt,ee){"use strict";ee.r(Qt),ee.d(Qt,{default:function(){return At}});var b=ee(59301),Fe=ee(44283),fe=ee(11938),qe=ee(82326),Se=ee(6767),ge=ee(5269),Ee=ee(37639),Ze=ee(93041),Pe=ee(25399),ce=ee(29787),Xe=ee(77019),we=ee(7939),St=ee(70858),tt=ee(31709),je=ee(62957),Me=ee(62673),Ne=ee(4420),it=ee(35883),yt={auditModal:"auditModal___RBZv1",modalbtn:"modalbtn___FliJo"},We=({value:_e,visible:Yt,setVisible:Ct})=>b.createElement(je.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:Yt,title:"\u9A73\u56DE\u539F\u56E0",wrapClassName:yt.auditModal,footer:null,onCancel:()=>Ct(!1)},b.createElement(it.Z,{value:_e}),b.createElement(we.ZP,{className:yt.btn,onClick:()=>Ct(!1),type:"primary"},"\u6211\u77E5\u9053\u4E86")),Ie=ee(49317),He={flex_box_center:"flex_box_center___cRRGk",flex_space_between:"flex_space_between___DckQs",flex_box_vertical_center:"flex_box_vertical_center___IJP6X",flex_box_center_end:"flex_box_center_end___vCftz",flex_box_column:"flex_box_column___ML5vq",wrap:"wrap____U8oZ",rightBar:"rightBar___rHmY3",doc:"doc___UF8ms",create_button:"create_button___X31VI",create_disabled:"create_disabled___wfIK8",note:"note___pHbAA",noteTip:"noteTip___BILh7",countDown:"countDown____IvIZ",red:"red___tb6MS",cpuWrap:"cpuWrap___f1GVj",activebtn:"activebtn___NAeFf",btn:"btn___pgvih",activeTab:"activeTab___jXtg0",tab:"tab___bUdfs",footBtnWrap:"footBtnWrap___JBSba"},Ge=ee(70467),Et=ee(66649),ut=ee.n(Et),et=ee(76406),ot=ee(90736),Ce=ee(70303),at=ee(81759),Ve=ee(49229),de=ee(42075),Dt=Object.defineProperty,Ue=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Ut=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,Nt=(_e,Yt,Ct)=>Yt in _e?Dt(_e,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):_e[Yt]=Ct,Jt=(_e,Yt)=>{for(var Ct in Yt||(Yt={}))Te.call(Yt,Ct)&&Nt(_e,Ct,Yt[Ct]);if(Ut)for(var Ct of Ut(Yt))he.call(Yt,Ct)&&Nt(_e,Ct,Yt[Ct]);return _e},Ft=(_e,Yt)=>Ue(_e,st(Yt)),ye=(_e,Yt)=>{var Ct={};for(var ae in _e)Te.call(_e,ae)&&Yt.indexOf(ae)<0&&(Ct[ae]=_e[ae]);if(_e!=null&&Ut)for(var ae of Ut(_e))Yt.indexOf(ae)<0&&he.call(_e,ae)&&(Ct[ae]=_e[ae]);return Ct},Ye=(_e,Yt,Ct)=>new Promise((ae,ne)=>{var te=re=>{try{ue(Ct.next(re))}catch(le){ne(le)}},ie=re=>{try{ue(Ct.throw(re))}catch(le){ne(le)}},ue=re=>re.done?ae(re.value):Promise.resolve(re.value).then(te,ie);ue((Ct=Ct.apply(_e,Yt)).next())});const{Countdown:lt}=fe.default,{Option:Xt}=qe.default,rt=_e=>{var Yt=_e,{user:Ct,newShixuns:ae,classroomList:ne,globalSetting:te,loading:ie,dispatch:ue}=Yt,re=ye(Yt,["user","newShixuns","classroomList","globalSetting","loading","dispatch"]),le,xe;const ft=3,[Ae]=(0,Fe.useSearchParams)(),[Le,Qe]=(0,b.useState)(!1),[nt,bt]=(0,b.useState)(!1),[Oe,Be]=(0,b.useState)(!1),[zt,Zt]=(0,b.useState)(),[qt,en]=(0,b.useState)(parseInt(Ae.get("status"))||0),{username:Tt}=(0,Fe.useParams)(),[an,Wt]=(0,b.useState)(""),[Ke,mt]=(0,b.useState)([]),[$t,nn]=(0,b.useState)(0),[Re,pt]=(0,b.useState)(),[Mt,Kt]=(0,b.useState)(),[cn,Pn]=(0,b.useState)(),[Rn,Fn]=(0,b.useState)(),[vn,Mn]=(0,b.useState)(!1),[dn,Vt]=(0,b.useState)([]),tn=(0,Fe.useParams)(),[on,_t]=(0,b.useState)(!1),[hn,mn]=(0,b.useState)(0),[Sn,zn]=(0,b.useState)(!1),[Wn,Zn]=(0,b.useState)(!1),[Jn,Gn]=(0,b.useState)(!1),[hr,cr]=(0,b.useState)({}),[sn,yn]=(0,b.useState)(0),[Hn,An]=(0,b.useState)(0),[ct,It]=(0,b.useState)(!1),[ze,vt]=(0,b.useState)([]),[$e,xt]=(0,b.useState)([]),[De,Pt]=(0,b.useState)(!1),[kt,jt]=(0,b.useState)(!1),[gt,ht]=(0,b.useState)(),[wt,Rt]=(0,b.useState)(),[In,On]=(0,b.useState)([]),[Nn,tr]=(0,b.useState)(!1),[dr,mr]=(0,b.useState)(),[er,Yn]=(0,b.useState)(!0),[Qn,rr]=(0,b.useState)(!1);let wr=(0,b.useRef)();const[ar,Cr]=(0,b.useState)({page:1,per_page:10,keywords:"",tab_type:"customize"}),qn=[{id:0,name:"\u81EA\u5B9A\u4E49\u955C\u50CF",type:"customize",total:Mt,resetCount:cn,tip:Rn},{id:1,name:"\u5171\u4EAB\u955C\u50CF",type:"share"}];(0,b.useEffect)(()=>{pr()},[qt]),(0,b.useEffect)(()=>{document.title="\u5B9E\u9A8C\u955C\u50CF"},[location==null?void 0:location.pathname]);const pr=()=>Ye(void 0,null,function*(){var En,Vn,zr,no,vo,Dr,kr,lr;Mn(!0);const wn=yield(0,Ie.ZP)("/api/user_mirrors.json",{method:"get",params:Ft(Jt({},ar),{tab_type:(En=qn[qt])==null?void 0:En.type,account_id:Tt})});wn.status===0&&(mt((Vn=wn==null?void 0:wn.data)==null?void 0:Vn.list),nn((zr=wn==null?void 0:wn.data)==null?void 0:zr.count),Vt((no=wn==null?void 0:wn.data)==null?void 0:no.user_mirror_ids),ar.tab_type==="customize"&&((vo=wn==null?void 0:wn.data)==null?void 0:vo.max_count)!==-1&&(Pn((Dr=wn==null?void 0:wn.data)==null?void 0:Dr.total),Kt(ft),pt((kr=wn==null?void 0:wn.data)==null?void 0:kr.total),Fn(`\u955C\u50CF\u4E0A\u9650${ft}\uFF0C\u5DF2\u7528${(lr=wn==null?void 0:wn.data)==null?void 0:lr.total}`))),Mn(!1)});(0,b.useEffect)(()=>{Jn===!0&&vr()},[Jn]);const vr=()=>Ye(void 0,null,function*(){const En=yield(0,Ie.ZP)("/api/user_mirrors/other_info.json",{method:"get"});En.status===0&&cr(En==null?void 0:En.data)}),Kr=(En,Vn)=>Ye(void 0,null,function*(){var zr;const no=yield(0,Ie.ZP)(`/api/user_mirrors/${En}/check.json`,{method:"get"});(no==null?void 0:no.status)===0&&(((zr=no==null?void 0:no.data)==null?void 0:zr.exist)===0?Gn(!0):(Gn(!1),Vn?Fe.history.push(`/shixuns/new/${En}/imagepreview?operation=update_image`):Fe.history.push(`/shixuns/new/${En}/imagepreview`)))});(0,b.useEffect)(()=>(dn.length>0&&(wr.current=setInterval(()=>Ye(void 0,null,function*(){var En,Vn,zr,no,vo;const Dr=yield(0,Ie.ZP)("/api/user_mirrors/polling_update_status.json",{method:"post",body:{user_mirror_ids:dn}});if(Dr.status===0)if(((Vn=(En=Dr==null?void 0:Dr.data)==null?void 0:En.user_mirror_ids)==null?void 0:Vn.length)>0){if(((no=(zr=Dr==null?void 0:Dr.data)==null?void 0:zr.update_datas)==null?void 0:no.length)>0){const kr=Ke==null?void 0:Ke.map(lr=>{var wn,jn;return(jn=(wn=Dr==null?void 0:Dr.data)==null?void 0:wn.update_datas)==null||jn.map(Kn=>{lr.id===Kn.id&&(lr.status=Kn.status)}),lr});mt(kr),Vt((vo=Dr==null?void 0:Dr.data)==null?void 0:vo.user_mirror_ids)}}else Vt([]),pr(),clearInterval(wr.current)}),5e3)),()=>{clearInterval(wr.current)}),[dn,Ke]);const _r=En=>Ye(void 0,null,function*(){var Vn;const zr=yield(0,Ie.ZP)(`/api/user_mirrors/${En}/error_tips.json`,{method:"get"});(zr==null?void 0:zr.status)===0&&(On((Vn=zr==null?void 0:zr.data)==null?void 0:Vn.user_mirror_logs),Rt(!0))}),Wr=En=>Ye(void 0,null,function*(){var Vn;const zr=yield(0,Ie.ZP)(`/api/user_mirrors/${En}/check_is_can_delete.json`,{method:"get"});(zr==null?void 0:zr.status)===0&&(mn((Vn=zr==null?void 0:zr.data)==null?void 0:Vn.shixun_size),_t(!0))}),Ur=(En,Vn)=>{ar.page=1,ar.keywords=En,Cr(Jt({},ar)),pr()},ao=En=>{ar.keywords=En,Cr(Jt({},ar))},Hr=()=>Ye(void 0,null,function*(){var En;const Vn=yield(0,Ie.ZP)("/api/teach_group_shares.json",{method:"get"});(Vn==null?void 0:Vn.status)===0&&(vt(Vn==null?void 0:Vn.groups),((En=Vn==null?void 0:Vn.groups)==null?void 0:En.length)>0?It(!0):Se.ZP.info("\u6682\u65E0\u5171\u4EAB\u6570\u636E"))}),to=En=>Ye(void 0,null,function*(){const Vn=yield(0,Ie.ZP)(`/api/user_mirrors/${En}/check_is_making_end.json`,{method:"get"});(Vn==null?void 0:Vn.status)===0?Fe.history.push(`/shixuns/new/${En}/imagepreview?operation=create_image`):pr()}),Ir=En=>(En==null?void 0:En.status)===2&&[-1,0,1,2,3].includes(En==null?void 0:En.publish_status)?b.createElement(b.Fragment,null,b.createElement(ge.Z,null,b.createElement(Ee.Z,{placement:"bottomLeft",content:b.createElement(Ze.default,null,b.createElement(Ze.default.Item,null,b.createElement("a",{onClick:()=>{ht(En==null?void 0:En.id),Yn(!1),Kr(En==null?void 0:En.id,!1)}},"\u8FD0\u884C\u955C\u50CF")),b.createElement(Ze.default.Item,null,b.createElement("a",{onClick:()=>{(0,et.xg)(`/shixuns/new?tab=${Number(qt)+1}&mirror=${En==null?void 0:En.mirror_repository_id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),[-1,0].includes(En==null?void 0:En.publish_status)&&b.createElement(Ze.default.Item,null,b.createElement("a",{onClick:()=>{ht(En==null?void 0:En.id),zn(!0)}},"\u7533\u8BF7\u516C\u5F00")),(En==null?void 0:En.publish_status)===3&&b.createElement(Ze.default.Item,null,b.createElement("a",{onClick:()=>{ht(En==null?void 0:En.id),jt(!0)}},"\u91CD\u65B0\u7533\u8BF7")),[2,3].includes(En==null?void 0:En.publish_status)&&b.createElement(Ze.default.Item,null,b.createElement("a",{onClick:()=>{ht(En==null?void 0:En.id),Pt(!0)}},"\u64A4\u9500\u7533\u8BF7")),b.createElement(Ze.default.Item,null,b.createElement("a",{onClick:()=>{ht(En==null?void 0:En.id),Zn(!0)}},"\u4FEE\u6539\u955C\u50CF\u4FE1\u606F")),[-1,0,3].includes(En==null?void 0:En.publish_status)&&b.createElement(Ze.default.Item,null,b.createElement(de.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>Ye(void 0,null,function*(){ht(En==null?void 0:En.id),Yn(!0),yield Kr(En==null?void 0:En.id,!0)})},"\u66F4\u65B0\u955C\u50CF")),b.createElement(Ze.default.Item,null,b.createElement(de.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>Ye(void 0,null,function*(){ht(En==null?void 0:En.id),xt(En==null?void 0:En.share_group_ids),yield Hr()})},"\u5171\u4EAB\u955C\u50CF")),[-1,0,3].includes(En==null?void 0:En.publish_status)&&b.createElement(Ze.default.Item,null,b.createElement(de.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>Ye(void 0,null,function*(){ht(En==null?void 0:En.id),yield Wr(En==null?void 0:En.id)})},"\u5220\u9664")))},"\u66F4\u591A",b.createElement("i",{className:"iconfont icon-sanjiaoxing-down font14 ",style:{marginLeft:"4px"}})))):(En==null?void 0:En.status)===0?b.createElement(b.Fragment,null,(En==null?void 0:En.is_making_end)===!0&&b.createElement(ge.Z,null,b.createElement(de.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"#165DFF",height:22},onClick:()=>Ye(void 0,null,function*(){ht(En==null?void 0:En.id),yield Wr(En==null?void 0:En.id)})},"\u5220\u9664")),(En==null?void 0:En.is_making_end)===!1&&b.createElement(ge.Z,null,b.createElement(Ee.Z,{placement:"bottomLeft",content:b.createElement(Ze.default,null,b.createElement(Ze.default.Item,null,b.createElement(de.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>Ye(void 0,null,function*(){yield to(En==null?void 0:En.id)})},"\u5236\u4F5C\u955C\u50CF")),b.createElement(Ze.default.Item,null,b.createElement(de.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"rgba(0, 0, 0, 0.88)"},onClick:()=>Ye(void 0,null,function*(){ht(En==null?void 0:En.id),yield Wr(En==null?void 0:En.id)})},"\u5220\u9664")))},"\u66F4\u591A",b.createElement("i",{className:"iconfont icon-sanjiaoxing-down font14 ",style:{marginLeft:"4px"}})))):b.createElement(b.Fragment,null),ro=[{title:"\u955C\u50CF\u540D\u79F0",dataIndex:"type_name",key:"type_name",ellipsis:!0,width:120,render:(En,Vn)=>b.createElement("span",{style:{color:"#165DFF",cursor:"pointer"},onClick:()=>{Fe.history.push(`/users/${tn==null?void 0:tn.username}/experiment-img/${Vn==null?void 0:Vn.id}/detail?status=${qt}`)}},En)},{title:"\u521B\u5EFA\u65B9\u5F0F",dataIndex:"create_method",key:"create_method",width:80,render:(En,Vn,zr)=>En===1?"\u5728\u7EBF\u521B\u5EFA":"\u5BFC\u5165",ellipsis:!0},{title:"\u57FA\u7840\u73AF\u5883/\u955C\u50CF\u6587\u4EF6",dataIndex:"base_mirror",ellipsis:!0,align:"left",key:"base_mirror",width:110,render:(En,Vn,zr)=>b.createElement("span",{style:{color:"#666"}},En)},{title:"\u7C7B\u578B",dataIndex:"mirror_type_cn",align:"left",ellipsis:!0,width:120,key:"mirror_type_cn",render:(En,Vn,zr)=>(En==null?void 0:En.length)>1?En.join("\u3001"):En[0]},{title:"\u4FDD\u5B58\u72B6\u6001",dataIndex:"status",align:"left",key:"status",ellipsis:!0,width:90,render:(En,Vn,zr)=>b.createElement(b.Fragment,null,En===0&&b.createElement("span",null,b.createElement("span",{style:{color:"#5F6368"}},"\u5236\u4F5C\u4E2D"),(Vn==null?void 0:Vn.is_making_end)===!1?b.createElement("i",{className:"iconfont icon-shijian1 ml5",style:{color:"#165DFF",fontSize:14}}):b.createElement(Pe.Z,{title:"\u5269\u4F59\u5236\u4F5C\u65F6\u957F\u4E3A\u96F6\uFF0C\u4E0D\u80FD\u518D\u8FDB\u5165\u955C\u50CF\u5236\u4F5C\u9875\u9762\u3002"},b.createElement("i",{className:"iconfont icon-shijian1 ml5",style:{color:"#E30000",fontSize:14}}))),En===1&&b.createElement("span",null,b.createElement("span",{style:{color:"#165DFF",marginRight:5}},"\u4FDD\u5B58\u4E2D"),b.createElement(ce.Z,{size:"small"})),En===2&&b.createElement("span",null,b.createElement("span",{style:{color:"#00B187"}},"\u5B8C\u6210"),(Vn==null?void 0:Vn.has_error_tips)&&qt===0&&b.createElement("i",{className:"iconfont icon-tishi4 current ml5 c-light-primary",style:{color:"#FF8C29",fontSize:14},onClick:()=>{_r(Vn==null?void 0:Vn.id)}})),En===3&&b.createElement("span",{style:{color:"#E30000"}},"\u5931\u8D25"))},{title:"\u516C\u5F00\u72B6\u6001",dataIndex:"publish_status",align:"left",key:"publish_status",ellipsis:!0,width:80,render:(En,Vn,zr)=>b.createElement("span",null,En===0&&"\u672A\u516C\u5F00",En===-1&&"\u672A\u516C\u5F00",En===1&&"\u5DF2\u516C\u5F00",En===2&&"\u5BA1\u6838\u4E2D",En===3&&b.createElement(b.Fragment,null,"\u9A73\u56DE",qt===0&&b.createElement("i",{onClick:()=>{ht(Vn==null?void 0:Vn.id),tr(!0),mr(Vn==null?void 0:Vn.remark)},className:"iconfont icon-tishi4 ml5 ",style:{color:"#FF8C29",cursor:"pointer",fontSize:14}})))},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_at",align:"left",key:"created_at",ellipsis:!0,render:(En,Vn,zr)=>b.createElement("span",{style:{color:"#666"}},ut()(En).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u64CD\u4F5C",dataIndex:"action",align:"right",key:"action",width:qt===0?140:170,render:(En,Vn,zr)=>{if(qt===0)return b.createElement(Xe.Z,{style:{cursor:"pointer",color:"#165DFF"},gutter:[8,0],justify:"end"},b.createElement(ge.Z,{onClick:()=>{Fe.history.push(`/users/${tn==null?void 0:tn.username}/experiment-img/${Vn==null?void 0:Vn.id}/detail?status=${qt}`)}},"\u8BE6\u60C5"),(Vn==null?void 0:Vn.status)===1&&b.createElement(ge.Z,null),(Vn==null?void 0:Vn.status)===3&&b.createElement(ge.Z,null,b.createElement(de.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0,color:"#165DFF",height:22},onClick:()=>Ye(void 0,null,function*(){ht(Vn==null?void 0:Vn.id),yield Wr(Vn==null?void 0:Vn.id)})},"\u5220\u9664")),Ir(Vn));if(qt===1)return b.createElement(Xe.Z,{style:{cursor:"pointer",color:"#165DFF"},gutter:[8,0],justify:"end"},b.createElement(ge.Z,{onClick:()=>{Fe.history.push(`/users/${tn==null?void 0:tn.username}/experiment-img/${Vn==null?void 0:Vn.id}/detail?status=${qt}`)}},"\u8BE6\u60C5"),(Vn==null?void 0:Vn.status)===2&&b.createElement(ge.Z,null,b.createElement(Ee.Z,{placement:"bottomLeft",content:b.createElement(Ze.default,null,b.createElement(Ze.default.Item,null,b.createElement("a",{onClick:()=>{ht(Vn==null?void 0:Vn.id),Yn(!1),Kr(Vn==null?void 0:Vn.id,!1)}},"\u8FD0\u884C\u955C\u50CF")),b.createElement(Ze.default.Item,null,b.createElement("a",{onClick:()=>{(0,et.xg)(`/shixuns/new?tab=${Number(qt)+1}&mirror=${Vn==null?void 0:Vn.mirror_repository_id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")))},"\u66F4\u591A",b.createElement("i",{className:"iconfont icon-sanjiaoxing-down font14 ",style:{marginLeft:"4px"}}))))}}],ho=[{title:"\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(En,Vn,zr)=>b.createElement("span",{style:{color:"#666"}},ut()(En).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",render:(En,Vn,zr)=>b.createElement("span",{style:{color:"#000"}},"\u66F4\u65B0\u955C\u50CF")},{title:"\u72B6\u6001",dataIndex:"status",align:"right",key:"status",render:(En,Vn,zr)=>b.createElement("span",{style:{color:"#E30000"}},"\u5931\u8D25")}];return b.createElement("div",{className:He.wrap},b.createElement(Ge.YG,{value:qt,onChange:En=>{var Vn;(Vn=window.location.href.toString())!=null&&Vn.includes("status")?(0,et.jz)("status",En):window.history.replaceState(null,"",window.location.href.indexOf("?")>-1?window.location.href+`&status=${En}`:`?status=${En}`),en(En),ar.tab_type=qn[Number(En)].type,ar.page=1,Cr(Jt({},ar))},dataSource:qn,tabBarExtraContent:b.createElement("div",{className:He.rightBar},b.createElement(Pe.Z,{title:"",className:He.doc},b.createElement("span",{onClick:()=>{(0,et.xg)("https://www.educoder.net/forums/37006")}},b.createElement("i",{className:"iconfont icon-a-wenhaobeifen2"}),b.createElement("span",{style:{paddingLeft:4}},"\u5E2E\u52A9\u6587\u6863"))),b.createElement(Ge.t7,{style:{width:220,marginLeft:"40px",marginRight:"20px"},value:{value:ar.keywords},onChange:Ur,onInputChange:ao,placeholder:"\u8BF7\u8F93\u5165\u955C\u50CF\u540D\u79F0\u641C\u7D22"}),b.createElement(Pe.Z,{title:Re>=ft?"\u6700\u591A\u53EF\u521B\u5EFA3\u4E2A\u5B9E\u9A8C\u955C\u50CF":""},b.createElement(we.ZP,{disabled:Re>=ft,className:Re>=ft?He.create_disabled:He.create_button,type:Re>=ft?"default":"primary",onClick:()=>{Fe.history.push(`/users/${tn==null?void 0:tn.username}/experiment-img/add`)}},"\u521B\u5EFA\u955C\u50CF")),b.createElement(Ge.op,{shape:"default",size:"middle",style:{borderRadius:"2px",marginTop:"3px"},onClick:()=>{ue({type:"newShixuns/setActionTabs",payload:{key:"NewShixuns-Apply"}})}},"\u7533\u8BF7\u65B0\u5EFA"))}),b.createElement("div",{style:{paddingBottom:10}},qt==0&&b.createElement("div",{className:He.note},b.createElement("p",{style:{paddingLeft:20,paddingBottom:8,color:"#FF9D18"}},b.createElement("i",{className:"iconfont icon-tishi7"}),b.createElement("span",{style:{paddingLeft:10}},"\u6E29\u99A8\u63D0\u793A")),b.createElement("p",{style:{paddingLeft:42,color:"#666",fontSize:12}},b.createElement("p",null,"1.\u521B\u5EFA\u955C\u50CF\u9700\u8981\u7B26\u5408\u5E73\u53F0\u7684\u89C4\u8303\u6807\u51C6\uFF0C\u64CD\u4F5C\u6307\u5357\u53C2\u89C1",b.createElement("a",{target:"_blank",href:"https://www.educoder.net/forums/37006"},"\u5E2E\u52A9\u6587\u6863"),"\u3002"),b.createElement("p",null,"2.\u652F\u6301\u4E24\u79CD\u521B\u5EFA\u65B9\u5F0F\uFF1A\u4F7F\u7528\u57FA\u7840\u955C\u50CF\u5728\u7EBF\u521B\u5EFA\u3001\u5BFC\u5165\u672C\u5730\u955C\u50CF\u3002"),b.createElement("p",null,"3.\u5BFC\u5165\u955C\u50CF\u76EE\u524D\u53EA\u652F\u6301\u5927\u5C0F\u57285G\u4EE5\u5185\u7684\u955C\u50CF\uFF0C\u4EC5\u652F\u6301\u4E0A\u4F20gz\u3001bz2\u3001tar\u3001tar.gz\u3001tar.bz2\u683C\u5F0F\u955C\u50CF\u6587\u4EF6\u3002"),b.createElement("p",null,"4.\u81EA\u5B9A\u4E49\u7684\u955C\u50CF\uFF0C\u53EF\u4EE5\u7528\u6765\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE\u3002"),b.createElement("p",null,"5.\u652F\u6301\u5C06\u955C\u50CF\u5171\u4EAB\u7ED9\u6559\u7814\u56E2\u961F\u8FDB\u884C\u4F7F\u7528\u3002"),b.createElement("p",null,"6.\u652F\u6301\u5C06\u955C\u50CF\u516C\u5F00\uFF0C\u8D21\u732E\u7ED9\u5E73\u53F0\u6240\u6709\u4EBA\u8FDB\u884C\u4F7F\u7528\u3002"))),$t===0?b.createElement(ot.Z,{customText:"\u6682\u65E0\u6570\u636E"}):b.createElement(Ge.Gi,{style:{marginTop:20}},b.createElement(ce.Z,{spinning:vn},b.createElement(St.default,{dataSource:Ke,columns:ro,pagination:!1}))),$t!=0&&b.createElement(Xe.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"end"},b.createElement(ge.Z,null,b.createElement(tt.Z,{showSizeChanger:!0,showQuickJumper:!0,current:ar.page,pageSize:ar.per_page,onShowSizeChange:(En,Vn)=>{ar.per_page=Vn,ar.page=1,Cr(Jt({},ar)),pr()},onChange:En=>{ar.page=En,Cr(Jt({},ar)),pr()},total:$t})))),b.createElement("div",null,b.createElement(je.default,{centered:!0,title:"\u9A73\u56DE\u539F\u56E0",open:Nn,maskClosable:!1,footer:null,destroyOnClose:!0,onCancel:()=>{tr(!1)}},b.createElement("div",{style:{maxHeight:300,overflowY:"auto"}},dr),b.createElement("div",{className:He.footBtnWrap},b.createElement(we.ZP,{size:"middle",style:{marginRight:20},onClick:()=>{tr(!1),Pt(!0)},type:"primary"},"\u64A4\u9500\u7533\u8BF7"),b.createElement(we.ZP,{size:"middle",onClick:()=>{tr(!1),jt(!0)},type:"primary"},"\u91CD\u65B0\u7533\u8BF7"))),b.createElement(je.default,{centered:!0,title:"\u5F02\u5E38\u63D0\u793A",open:wt,maskClosable:!1,footer:null,destroyOnClose:!0,onCancel:()=>{Rt(!1)}},b.createElement(St.default,{style:{maxHeight:300,overflowY:"auto",marginBottom:20},dataSource:In,columns:ho,pagination:!1})),b.createElement(je.default,{centered:!0,title:"\u91CD\u65B0\u7533\u8BF7\u516C\u5F00",open:kt,maskClosable:!1,confirmLoading:Qn,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{jt(!1)},onOk:()=>Ye(void 0,null,function*(){rr(!0),(yield(0,Ie.ZP)(`/api/user_mirrors/${gt}/apply_public.json`,{method:"post"})).status===0&&(Se.ZP.success("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),pr()),rr(!1),jt(!1)})},b.createElement("div",null,"\u91CD\u65B0\u7533\u8BF7\u516C\u5F00\u524D\uFF0C\u8BF7\u6839\u636E\u9A73\u56DE\u539F\u56E0\u4FEE\u6539\u955C\u50CF\uFF0C\u7136\u540E\u518D\u7533\u8BF7\u3002\u4F60\u786E\u5B9A\u8981\u91CD\u65B0\u7533\u8BF7\u516C\u5F00\u5417\uFF1F")),b.createElement(je.default,{centered:!0,title:"\u64A4\u9500\u7533\u8BF7\u516C\u5F00",open:De,maskClosable:!1,confirmLoading:Qn,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{Pt(!1)},onOk:()=>Ye(void 0,null,function*(){rr(!0),(yield(0,Ie.ZP)(`/api/user_mirrors/${gt}/revoke_apply.json`,{method:"post"})).status===0&&(Se.ZP.success("\u64A4\u9500\u6210\u529F"),pr()),rr(!1),Pt(!1)})},b.createElement("div",null,"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u955C\u50CF\u56DE\u5230\u3010\u672A\u516C\u5F00\u3011\u72B6\u6001\u3002\u540E\u7EED\u5982\u6709\u9700\u8981\uFF0C\u53EF\u4EE5\u518D\u6B21\u7533\u8BF7\u516C\u5F00\u3002\u4F60\u786E\u5B9A\u8981\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u5417\uFF1F")),b.createElement(je.default,{centered:!0,width:518,title:"\u5171\u4EAB\u955C\u50CF",open:ct,maskClosable:!1,confirmLoading:Qn,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",className:He.modal,destroyOnClose:!0,onCancel:()=>{xt([]),It(!1)},onOk:()=>Ye(void 0,null,function*(){rr(!0),(yield(0,Ie.ZP)("/api/teach_group_shares.json",{method:"post",body:{ids:[gt],clazz:"UserMirror",group_ids:$e}})).status===0&&(Se.ZP.success("\u5171\u4EAB\u6210\u529F"),pr()),rr(!1),It(!1)})},b.createElement("div",{style:{marginBottom:"30px",backgroundColor:"rgba(255,157,24,0.1)",width:"468px",height:"42px",lineHeight:"42px"}},b.createElement("i",{className:"iconfont icon-tishi4",style:{color:"#FF9D18",paddingLeft:20}}),b.createElement("span",{style:{paddingLeft:"6px",color:"#FF9D18"}},"\u8BE5\u955C\u50CF\u4EC5\u5171\u4EAB\u7ED9\u9009\u4E2D\u7684\u6559\u7814\u56E2\u961F\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u64A4\u9500\u5171\u4EAB\u3002")),b.createElement("div",{style:{maxHeight:"260px",overflowY:"auto"}},b.createElement(Me.default.Group,{defaultValue:$e,value:$e,style:{flexDirection:"column"},onChange:En=>{xt(En)}},ze==null?void 0:ze.map(En=>b.createElement(Me.default,{checked:!!$e.some(Vn=>Vn===En.group_id),style:{marginBottom:14},value:En.group_id},En.name))))),b.createElement(at.Z,{visible:Wn,setVisible:Zn,mirrorId:gt,getData:pr}),b.createElement(je.default,{centered:!0,title:"\u7533\u8BF7\u516C\u5F00",open:Sn,maskClosable:!1,confirmLoading:Qn,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{zn(!1)},onOk:()=>Ye(void 0,null,function*(){rr(!0),(yield(0,Ie.ZP)(`/api/user_mirrors/${gt}/apply_public.json`,{method:"post"})).status===0&&(Se.ZP.success("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u8010\u5FC3\u7B49\u5F85"),pr()),rr(!1),zn(!1)})},b.createElement("div",{className:He.noteTip},b.createElement("p",null,"1.\u7533\u8BF7\u516C\u5F00\u524D\uFF0C\u8BF7\u4FDD\u8BC1\u955C\u50CF\u662F\u53EF\u8FD0\u884C\u7684\uFF0C\u5E76\u68C0\u67E5\u8BE5\u5B9E\u9A8C\u955C\u50CF\u662F\u5426\u7B26\u5408\u5E73\u53F0\u7684\u89C4\u8303\u6807\u51C6\u3002"),b.createElement("p",null,"2.\u516C\u5F00\u7684\u955C\u50CF\u5C06\u8D21\u732E\u7ED9\u5E73\u53F0\u6240\u6709\u4EBA\u8FDB\u884C\u4F7F\u7528\uFF0C\u82E5\u4EC5\u672C\u4EBA\u6559\u5B66\u4F7F\u7528\u5219\u65E0\u9700\u7533\u8BF7\u516C\u5F00\u3002"),b.createElement("p",null,"3.\u516C\u5F00\u955C\u50CF\u9700\u7ECF\u8FC7\u5E73\u53F0\u6807\u51C6\u5316\u5BA1\u6838\uFF0C\u5BA1\u6838\u5468\u671F\u4E3A1-2\u5929\u3002"),b.createElement("p",null,"\u4F60\u786E\u5B9A\u8981\u7533\u8BF7\u516C\u5F00\u5417\uFF1F"))),b.createElement(je.default,{centered:!0,keyboard:!1,destroyOnClose:!0,open:Jn,maskClosable:!1,confirmLoading:Qn,title:"\u9009\u62E9\u8FD0\u884C\u73AF\u5883",width:"558px",okText:"\u786E\u5B9A",wrapClassName:He.auditModal,onCancel:()=>{yn(0),An(0),Gn(!1)},onOk:()=>Ye(void 0,null,function*(){var En;rr(!0);const Vn=yield(0,Ie.ZP)(`/api/user_mirrors/${gt}/running_image.json`,{method:"post",body:{cpu_memory_limit:hr==null?void 0:hr.cpu_memory_limit_config[Number(sn)],time_limit:(En=hr==null?void 0:hr.time_limit_config[Number(Hn)])==null?void 0:En.value}});(Vn==null?void 0:Vn.status)===0&&(er?Fe.history.push(`/shixuns/new/${gt}/imagepreview?operation=update_image`):Fe.history.push(`/shixuns/new/${gt}/imagepreview`)),rr(!1),Gn(!1)})},b.createElement("div",{style:{paddingTop:20}},er&&b.createElement("div",{style:{marginBottom:"30px",backgroundColor:"rgba(255,157,24,0.1)",height:"42px",lineHeight:"42px"}},b.createElement("i",{className:"iconfont icon-tishi4",style:{color:"#FF9D18",paddingLeft:20}}),b.createElement("span",{style:{paddingLeft:"6px",color:"#FF9D18"}},"\u66F4\u65B0\u955C\u50CF\u540E\uFF0C\u539F\u6765\u7684\u955C\u50CF\u5C06\u88AB\u8986\u76D6\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u76F8\u5173\u7684\u5B9E\u8DF5\u9879\u76EE\u3002")),b.createElement(Ve.Z,{required:!0,name:"\u914D\u7F6E",align:"center",nameWidth:60},b.createElement("div",{className:He.cpuWrap},(le=hr==null?void 0:hr.cpu_memory_limit_config)==null?void 0:le.map((En,Vn)=>b.createElement("div",{className:sn===Vn?He.activebtn:He.btn,onClick:()=>yn(Vn)},b.createElement("div",null,En),sn===Vn?b.createElement("div",null,b.createElement("i",{className:"iconfont icon-xuanzhong9",style:{paddingRight:12}})):"")))),b.createElement(Ve.Z,{required:!0,name:"\u65F6\u957F",align:"center",nameWidth:60},(xe=hr==null?void 0:hr.time_limit_config)==null?void 0:xe.map((En,Vn)=>b.createElement("span",{className:Hn===Vn?He.activeTab:He.tab,onClick:()=>An(Vn)},En.name))))),b.createElement(je.default,{centered:!0,title:"\u5220\u9664\u955C\u50CF",maskClosable:!1,confirmLoading:Qn,open:on,okText:hn>0?"\u6211\u77E5\u9053\u4E86":"\u786E\u5B9A",cancelText:hn>0?"":"\u53D6\u6D88",destroyOnClose:!0,onCancel:()=>{_t(!1)},onOk:()=>Ye(void 0,null,function*(){if(rr(!0),hn>0){_t(!1);return}(yield(0,Ie.ZP)(`/api/user_mirrors/${gt}.json`,{method:"delete"})).status===0&&(Se.ZP.success("\u5220\u9664\u6210\u529F"),pr()),rr(!1),_t(!1)})},hn>0?b.createElement("div",null,b.createElement("div",null,"\u8BE5\u955C\u50CF\u5DF2\u88AB ",hn," \u4E2A\u5B9E\u8DF5\u9879\u76EE\u4F7F\u7528\uFF0C\u4E0D\u5141\u8BB8\u8FDB\u884C\u5220\u9664\u64CD\u4F5C\u3002"),b.createElement("div",{style:{color:"#165DFF",marginTop:20,cursor:"pointer"},onClick:()=>{Fe.history.push(`/users/${tn==null?void 0:tn.username}/experiment-img/${gt}/detail?status=${qt}`),_t(!1)}},b.createElement("span",{style:{paddingRight:"4"}},"\u67E5\u770B\u76F8\u5173\u5B9E\u8DF5\u9879\u76EE"),b.createElement("i",{className:"iconfont icon-you"}))):b.createElement("div",null,"\u955C\u50CF\u5220\u9664\u4E4B\u540E\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u955C\u50CF\u5417\uFF1F"))),b.createElement(We,{value:an,visible:Oe,setVisible:Be}),b.createElement(Ce.Z,null))};var At=(0,Fe.connect)(({user:_e,newShixuns:Yt,classroomList:Ct,loading:ae,globalSetting:ne})=>({user:_e,newShixuns:Yt,classroomList:Ct,globalSetting:ne,loading:ae.models.classroomList}))(rt)},20047:function(Cn,Qt,ee){"use strict";ee.d(Qt,{AL:function(){return We},Iy:function(){return Xe},Qv:function(){return tt},ez:function(){return Ot},jb:function(){return we}});var b=ee(32834),Fe=ee.n(b),fe=ee(11690),qe=ee.n(fe);let Se=1;function ge(ut,et){const ot=ut.match(/^(\s+)(?:```)/);if(ot===null)return et;const Ce=ot[1];return et.split(`
`).map(at=>{const Ve=at.match(/^\s+/);if(Ve===null)return at;const[de]=Ve;return de.length>=Ce.length?at.slice(Ce.length):at}).join(`
`)}let Ee=[],Ze=["<ul>"];const Pe=new(Fe()).Renderer,ce=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Xe(){Ee.length=0,Ze=["<ul>"]}const we={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function St(ut,et,ot,Ce){if(et>=ut.length||ut[et].level<=ot)return et;var at=ut[et];Ce.push("<li><a href='#"+Se+at.anchor+"'>"+at.text+"</a>"),et++;var Ve=[];return et=St(ut,et,at.level,Ve),Ve.length>0&&(Ce.push("<ul>"),Ve.forEach(function(de){Ce.push(de)}),Ce.push("</ul>")),Ce.push("</li>"),et=St(ut,et,ot,Ce),et}function tt(){return St(Ee,0,0,Ze),Ze.push("</ul>"),Ze.join("")}const je={heading(ut){const et=ce.exec(ut);if(Se+=1,et)return{type:"heading",raw:et[0],depth:et[1].length,text:et[2]}},fences(ut){const et=this.rules.block.fences.exec(ut);if(et){const ot=et[0];let Ce=ge(ot,et[3]||"");const at=et[2]?et[2].trim():et[2];if(["latex","katex","math"].indexOf(at)>=0){const Ve=it(),de=Ce;Ce=Ve,yt[Ve]={type:"block",expression:de}}return{type:"code",raw:ot,lang:at,text:Ce}}}},Me=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ne=0;const it=()=>`__special_katext_id_${Ne++}__`;let yt={};function Ot(){return yt}function We(){Ne=0,yt={}}function Ie(ut){return ut=ut.replace(Me,(et,ot)=>{const Ce=it();return yt[Ce]={type:"inline",expression:ot},Ce}),ut}const He=Pe.listitem;Pe.listitem=function(ut){return He(Ie(ut))};const Ge=Pe.paragraph;Pe.paragraph=function(ut){return Ge(Ie(ut))};const Et=Pe.tablecell;Pe.tablecell=function(ut,et){return Et(Ie(ut),et)},Pe.code=function(ut,et,ot){const Ce=(et||"").match(/\S*/)[0];return Ce?["latex","katex","math"].indexOf(Ce)>=0?`<p class='editormd-tex'>${ut}</p>`:`<pre class="prettyprint linenums"><code class="language-${et}">${ot?ut:(0,fe.escape)(ut,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(ot?ut:(0,fe.escape)(ut,!0))+"</code></pre>"},Pe.heading=function(ut,et,ot){let Ce=this.options.headerPrefix+ot.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ee.push({anchor:Ce,level:et,text:ut}),"<h"+et+' id="'+Se+Ce+'">'+ut+"</h"+et+">"},Fe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Fe().use({tokenizer:je,renderer:Pe}),Qt.ZP=Fe()},9981:function(Cn,Qt){"use strict";const ee=function(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Fe=1;Fe<arguments.length;Fe++){const fe=Fe<0||arguments.length<=Fe?void 0:arguments[Fe];fe&&Object.keys(fe).forEach(qe=>{const Se=fe[qe];Se!==void 0&&(b[qe]=Se)})}return b};Qt.Z=ee},86013:function(Cn,Qt,ee){"use strict";var b=ee(59301),Fe=ee(19248);const fe=qe=>{let Se;return typeof qe=="object"&&(qe!=null&&qe.clearIcon)?Se=qe:qe&&(Se={clearIcon:b.createElement(Fe.Z,null)}),Se};Qt.Z=fe},54500:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return b}});const b=Fe=>Fe?typeof Fe=="function"?Fe():Fe:null},97224:function(Cn,Qt,ee){"use strict";ee.d(Qt,{F:function(){return b}});function b(fe){return fe!=null&&fe===fe.window}const Fe=fe=>{var qe,Se;if(typeof window=="undefined")return 0;let ge=0;return b(fe)?ge=fe.pageYOffset:fe instanceof Document?ge=fe.documentElement.scrollTop:(fe instanceof HTMLElement||fe)&&(ge=fe.scrollTop),fe&&!b(fe)&&typeof ge!="number"&&(ge=(Se=((qe=fe.ownerDocument)!==null&&qe!==void 0?qe:fe).documentElement)===null||Se===void 0?void 0:Se.scrollTop),ge};Qt.Z=Fe},83010:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return qe}});var b=ee(16089);function Fe(Se,ge,Ee,Ze){const Pe=Ee-ge;return Se/=Ze/2,Se<1?Pe/2*Se*Se*Se+ge:Pe/2*((Se-=2)*Se*Se+2)+ge}var fe=ee(97224);function qe(Se){let ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:Ee=()=>window,callback:Ze,duration:Pe=450}=ge,ce=Ee(),Xe=(0,fe.Z)(ce),we=Date.now(),St=()=>{const je=Date.now()-we,Me=Fe(je>Pe?Pe:je,Xe,Se,Pe);(0,fe.F)(ce)?ce.scrollTo(window.pageXOffset,Me):ce instanceof Document||ce.constructor.name==="HTMLDocument"?ce.documentElement.scrollTop=Me:ce.scrollTop=Me,je<Pe?(0,b.Z)(St):typeof Ze=="function"&&Ze()};(0,b.Z)(St)}},62673:function(Cn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return ut}});var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(16632),Se=ee(8654),ge=ee(12919),Ee=ee(63872),Ze=ee(48755),Pe=ee(2171),ce=ee(83397),Xe=ee(56553),St=b.createContext(null),tt=ee(36170),je=ee(74632),Me=function(et,ot){var Ce={};for(var at in et)Object.prototype.hasOwnProperty.call(et,at)&&ot.indexOf(at)<0&&(Ce[at]=et[at]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,at=Object.getOwnPropertySymbols(et);Ve<at.length;Ve++)ot.indexOf(at[Ve])<0&&Object.prototype.propertyIsEnumerable.call(et,at[Ve])&&(Ce[at[Ve]]=et[at[Ve]]);return Ce};const Ne=(et,ot)=>{var Ce;const{prefixCls:at,className:Ve,rootClassName:de,children:Dt,indeterminate:Ue=!1,style:st,onMouseEnter:Ut,onMouseLeave:Te,skipGroup:he=!1,disabled:Nt}=et,Jt=Me(et,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ft,direction:ye,checkbox:Ye}=b.useContext(Ze.E_),lt=b.useContext(St),{isFormItemInput:Xt}=b.useContext(Xe.aM),rt=b.useContext(Pe.Z),At=(Ce=(lt==null?void 0:lt.disabled)||Nt)!==null&&Ce!==void 0?Ce:rt,_e=b.useRef(Jt.value),Yt=b.useRef(null),Ct=(0,Se.sQ)(ot,Yt);b.useEffect(()=>{lt==null||lt.registerValue(Jt.value)},[]),b.useEffect(()=>{if(!he)return Jt.value!==_e.current&&(lt==null||lt.cancelValue(_e.current),lt==null||lt.registerValue(Jt.value),_e.current=Jt.value),()=>lt==null?void 0:lt.cancelValue(Jt.value)},[Jt.value]),b.useEffect(()=>{var Le;!((Le=Yt.current)===null||Le===void 0)&&Le.input&&(Yt.current.input.indeterminate=Ue)},[Ue]);const ae=Ft("checkbox",at),ne=(0,ce.Z)(ae),[te,ie,ue]=(0,tt.ZP)(ae,ne),re=Object.assign({},Jt);lt&&!he&&(re.onChange=function(){Jt.onChange&&Jt.onChange.apply(Jt,arguments),lt.toggleOption&&lt.toggleOption({label:Dt,value:Jt.value})},re.name=lt.name,re.checked=lt.value.includes(Jt.value));const le=fe()(`${ae}-wrapper`,{[`${ae}-rtl`]:ye==="rtl",[`${ae}-wrapper-checked`]:re.checked,[`${ae}-wrapper-disabled`]:At,[`${ae}-wrapper-in-form-item`]:Xt},Ye==null?void 0:Ye.className,Ve,de,ue,ne,ie),xe=fe()({[`${ae}-indeterminate`]:Ue},Ee.A,ie),[ft,Ae]=(0,je.Z)(re.onClick);return te(b.createElement(ge.Z,{component:"Checkbox",disabled:At},b.createElement("label",{className:le,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),st),onMouseEnter:Ut,onMouseLeave:Te,onClick:ft},b.createElement(qe.Z,Object.assign({},re,{onClick:Ae,prefixCls:ae,className:xe,disabled:At,ref:Ct})),Dt!==void 0&&b.createElement("span",{className:`${ae}-label`},Dt))))};var yt=b.forwardRef(Ne),Ot=ee(77654),We=ee(2738),Ie=function(et,ot){var Ce={};for(var at in et)Object.prototype.hasOwnProperty.call(et,at)&&ot.indexOf(at)<0&&(Ce[at]=et[at]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,at=Object.getOwnPropertySymbols(et);Ve<at.length;Ve++)ot.indexOf(at[Ve])<0&&Object.prototype.propertyIsEnumerable.call(et,at[Ve])&&(Ce[at[Ve]]=et[at[Ve]]);return Ce},Ge=b.forwardRef((et,ot)=>{const{defaultValue:Ce,children:at,options:Ve=[],prefixCls:de,className:Dt,rootClassName:Ue,style:st,onChange:Ut}=et,Te=Ie(et,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:he,direction:Nt}=b.useContext(Ze.E_),[Jt,Ft]=b.useState(Te.value||Ce||[]),[ye,Ye]=b.useState([]);b.useEffect(()=>{"value"in Te&&Ft(Te.value||[])},[Te.value]);const lt=b.useMemo(()=>Ve.map(xe=>typeof xe=="string"||typeof xe=="number"?{label:xe,value:xe}:xe),[Ve]),Xt=xe=>{Ye(ft=>ft.filter(Ae=>Ae!==xe))},rt=xe=>{Ye(ft=>[].concat((0,Ot.Z)(ft),[xe]))},At=xe=>{const ft=Jt.indexOf(xe.value),Ae=(0,Ot.Z)(Jt);ft===-1?Ae.push(xe.value):Ae.splice(ft,1),"value"in Te||Ft(Ae),Ut==null||Ut(Ae.filter(Le=>ye.includes(Le)).sort((Le,Qe)=>{const nt=lt.findIndex(Oe=>Oe.value===Le),bt=lt.findIndex(Oe=>Oe.value===Qe);return nt-bt}))},_e=he("checkbox",de),Yt=`${_e}-group`,Ct=(0,ce.Z)(_e),[ae,ne,te]=(0,tt.ZP)(_e,Ct),ie=(0,We.Z)(Te,["value","disabled"]),ue=Ve.length?lt.map(xe=>b.createElement(yt,{prefixCls:_e,key:xe.value.toString(),disabled:"disabled"in xe?xe.disabled:Te.disabled,value:xe.value,checked:Jt.includes(xe.value),onChange:xe.onChange,className:`${Yt}-item`,style:xe.style,title:xe.title,id:xe.id,required:xe.required},xe.label)):at,re={toggleOption:At,value:Jt,disabled:Te.disabled,name:Te.name,registerValue:rt,cancelValue:Xt},le=fe()(Yt,{[`${Yt}-rtl`]:Nt==="rtl"},Dt,Ue,te,Ct,ne);return ae(b.createElement("div",Object.assign({className:le,style:st},ie,{ref:ot}),b.createElement(St.Provider,{value:re},ue)))});const Et=yt;Et.Group=Ge,Et.__ANT_CHECKBOX=!0;var ut=Et},36170:function(Cn,Qt,ee){"use strict";ee.d(Qt,{C2:function(){return ge}});var b=ee(36237),Fe=ee(63356),fe=ee(51636),qe=ee(16931);const Se=Ee=>{const{checkboxCls:Ze}=Ee,Pe=`${Ze}-wrapper`;return[{[`${Ze}-group`]:Object.assign(Object.assign({},(0,Fe.Wf)(Ee)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ee.marginXS,[`> ${Ee.antCls}-row`]:{flex:1}}),[Pe]:Object.assign(Object.assign({},(0,Fe.Wf)(Ee)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Pe}`]:{marginInlineStart:0},[`&${Pe}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Ze]:Object.assign(Object.assign({},(0,Fe.Wf)(Ee)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ee.borderRadiusSM,alignSelf:"center",[`${Ze}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Ze}-inner`]:Object.assign({},(0,Fe.oN)(Ee))},[`${Ze}-inner`]:{boxSizing:"border-box",display:"block",width:Ee.checkboxSize,height:Ee.checkboxSize,direction:"ltr",backgroundColor:Ee.colorBgContainer,border:`${(0,b.unit)(Ee.lineWidth)} ${Ee.lineType} ${Ee.colorBorder}`,borderRadius:Ee.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ee.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Ee.calc(Ee.checkboxSize).div(14).mul(5).equal(),height:Ee.calc(Ee.checkboxSize).div(14).mul(8).equal(),border:`${(0,b.unit)(Ee.lineWidthBold)} solid ${Ee.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ee.motionDurationFast} ${Ee.motionEaseInBack}, opacity ${Ee.motionDurationFast}`}},"& + span":{paddingInlineStart:Ee.paddingXS,paddingInlineEnd:Ee.paddingXS}})},{[`
${Pe}:not(${Pe}-disabled),
${Ze}:not(${Ze}-disabled)
`]:{[`&:hover ${Ze}-inner`]:{borderColor:Ee.colorPrimary}},[`${Pe}:not(${Pe}-disabled)`]:{[`&:hover ${Ze}-checked:not(${Ze}-disabled) ${Ze}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Ze}-checked:not(${Ze}-disabled):after`]:{borderColor:Ee.colorPrimaryHover}}},{[`${Ze}-checked`]:{[`${Ze}-inner`]:{backgroundColor:Ee.colorPrimary,borderColor:Ee.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ee.motionDurationMid} ${Ee.motionEaseOutBack} ${Ee.motionDurationFast}`}}},[`
${Pe}-checked:not(${Pe}-disabled),
${Ze}-checked:not(${Ze}-disabled)
`]:{[`&:hover ${Ze}-inner`]:{backgroundColor:Ee.colorPrimaryHover,borderColor:"transparent"}}},{[Ze]:{"&-indeterminate":{[`${Ze}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Ee.calc(Ee.fontSizeLG).div(2).equal(),height:Ee.calc(Ee.fontSizeLG).div(2).equal(),backgroundColor:Ee.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Ze}-inner`]:{backgroundColor:`${Ee.colorBgContainer} !important`,borderColor:`${Ee.colorPrimary} !important`}}}},{[`${Pe}-disabled`]:{cursor:"not-allowed"},[`${Ze}-disabled`]:{[`&, ${Ze}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Ze}-inner`]:{background:Ee.colorBgContainerDisabled,borderColor:Ee.colorBorder,"&:after":{borderColor:Ee.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ee.colorTextDisabled},[`&${Ze}-indeterminate ${Ze}-inner::after`]:{background:Ee.colorTextDisabled}}}]};function ge(Ee,Ze){const Pe=(0,fe.mergeToken)(Ze,{checkboxCls:`.${Ee}`,checkboxSize:Ze.controlInteractiveSize});return[Se(Pe)]}Qt.ZP=(0,qe.I$)("Checkbox",(Ee,Ze)=>{let{prefixCls:Pe}=Ze;return[ge(Pe,Ee)]})},38406:function(Cn,Qt,ee){"use strict";var b=ee(59301),Fe=ee(48755),fe=ee(584);const qe=Se=>{const{componentName:ge}=Se,{getPrefixCls:Ee}=(0,b.useContext)(Fe.E_),Ze=Ee("empty");switch(ge){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=qe},36207:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return ft}});var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(85899),Se=ee(72190),ge=ee(43403),Ee=ee(34280),Ze=b.createContext(null),Pe=b.createContext({}),ce=Ze,Xe=ee(18642),we=ee(60499),St=ee(77900),tt=ee(10228),je=ee(26112),Me=ee(42244),Ne=ee(8654),it=["prefixCls","className","containerRef"],yt=function(Le){var Qe=Le.prefixCls,nt=Le.className,bt=Le.containerRef,Oe=(0,Me.Z)(Le,it),Be=b.useContext(Pe),zt=Be.panel,Zt=(0,Ne.x1)(zt,bt);return b.createElement("div",(0,we.Z)({className:fe()("".concat(Qe,"-content"),nt),role:"dialog",ref:Zt},(0,je.Z)(Le,{aria:!0}),{"aria-modal":"true"},Oe))},Ot=yt,We=ee(48736);function Ie(Ae){return typeof Ae=="string"&&String(Number(Ae))===Ae?((0,We.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ae)):Ae}function He(Ae){warning(!("wrapperClassName"in Ae),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ae.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ge={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Et(Ae,Le){var Qe,nt,bt,Oe=Ae.prefixCls,Be=Ae.open,zt=Ae.placement,Zt=Ae.inline,qt=Ae.push,en=Ae.forceRender,Tt=Ae.autoFocus,an=Ae.keyboard,Wt=Ae.classNames,Ke=Ae.rootClassName,mt=Ae.rootStyle,$t=Ae.zIndex,nn=Ae.className,Re=Ae.id,pt=Ae.style,Mt=Ae.motion,Kt=Ae.width,cn=Ae.height,Pn=Ae.children,Rn=Ae.mask,Fn=Ae.maskClosable,vn=Ae.maskMotion,Mn=Ae.maskClassName,dn=Ae.maskStyle,Vt=Ae.afterOpenChange,tn=Ae.onClose,on=Ae.onMouseEnter,_t=Ae.onMouseOver,hn=Ae.onMouseLeave,mn=Ae.onClick,Sn=Ae.onKeyDown,zn=Ae.onKeyUp,Wn=Ae.styles,Zn=Ae.drawerRender,Jn=b.useRef(),Gn=b.useRef(),hr=b.useRef();b.useImperativeHandle(Le,function(){return Jn.current});var cr=function(ht){var wt=ht.keyCode,Rt=ht.shiftKey;switch(wt){case tt.Z.TAB:{if(wt===tt.Z.TAB){if(!Rt&&document.activeElement===hr.current){var In;(In=Gn.current)===null||In===void 0||In.focus({preventScroll:!0})}else if(Rt&&document.activeElement===Gn.current){var On;(On=hr.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case tt.Z.ESC:{tn&&an&&(ht.stopPropagation(),tn(ht));break}}};b.useEffect(function(){if(Be&&Tt){var gt;(gt=Jn.current)===null||gt===void 0||gt.focus({preventScroll:!0})}},[Be]);var sn=b.useState(!1),yn=(0,Se.Z)(sn,2),Hn=yn[0],An=yn[1],ct=b.useContext(ce),It;typeof qt=="boolean"?It=qt?{}:{distance:0}:It=qt||{};var ze=(Qe=(nt=(bt=It)===null||bt===void 0?void 0:bt.distance)!==null&&nt!==void 0?nt:ct==null?void 0:ct.pushDistance)!==null&&Qe!==void 0?Qe:180,vt=b.useMemo(function(){return{pushDistance:ze,push:function(){An(!0)},pull:function(){An(!1)}}},[ze]);b.useEffect(function(){if(Be){var gt;ct==null||(gt=ct.push)===null||gt===void 0||gt.call(ct)}else{var ht;ct==null||(ht=ct.pull)===null||ht===void 0||ht.call(ct)}},[Be]),b.useEffect(function(){return function(){var gt;ct==null||(gt=ct.pull)===null||gt===void 0||gt.call(ct)}},[]);var $e=Rn&&b.createElement(St.default,(0,we.Z)({key:"mask"},vn,{visible:Be}),function(gt,ht){var wt=gt.className,Rt=gt.style;return b.createElement("div",{className:fe()("".concat(Oe,"-mask"),wt,Wt==null?void 0:Wt.mask,Mn),style:(0,qe.Z)((0,qe.Z)((0,qe.Z)({},Rt),dn),Wn==null?void 0:Wn.mask),onClick:Fn&&Be?tn:void 0,ref:ht})}),xt=typeof Mt=="function"?Mt(zt):Mt,De={};if(Hn&&ze)switch(zt){case"top":De.transform="translateY(".concat(ze,"px)");break;case"bottom":De.transform="translateY(".concat(-ze,"px)");break;case"left":De.transform="translateX(".concat(ze,"px)");break;default:De.transform="translateX(".concat(-ze,"px)");break}zt==="left"||zt==="right"?De.width=Ie(Kt):De.height=Ie(cn);var Pt={onMouseEnter:on,onMouseOver:_t,onMouseLeave:hn,onClick:mn,onKeyDown:Sn,onKeyUp:zn},kt=b.createElement(St.default,(0,we.Z)({key:"panel"},xt,{visible:Be,forceRender:en,onVisibleChanged:function(ht){Vt==null||Vt(ht)},removeOnLeave:!1,leavedClassName:"".concat(Oe,"-content-wrapper-hidden")}),function(gt,ht){var wt=gt.className,Rt=gt.style,In=b.createElement(Ot,(0,we.Z)({id:Re,containerRef:ht,prefixCls:Oe,className:fe()(nn,Wt==null?void 0:Wt.content),style:(0,qe.Z)((0,qe.Z)({},pt),Wn==null?void 0:Wn.content)},(0,je.Z)(Ae,{aria:!0}),Pt),Pn);return b.createElement("div",(0,we.Z)({className:fe()("".concat(Oe,"-content-wrapper"),Wt==null?void 0:Wt.wrapper,wt),style:(0,qe.Z)((0,qe.Z)((0,qe.Z)({},De),Rt),Wn==null?void 0:Wn.wrapper)},(0,je.Z)(Ae,{data:!0})),Zn?Zn(In):In)}),jt=(0,qe.Z)({},mt);return $t&&(jt.zIndex=$t),b.createElement(ce.Provider,{value:vt},b.createElement("div",{className:fe()(Oe,"".concat(Oe,"-").concat(zt),Ke,(0,Xe.Z)((0,Xe.Z)({},"".concat(Oe,"-open"),Be),"".concat(Oe,"-inline"),Zt)),style:jt,tabIndex:-1,ref:Jn,onKeyDown:cr},$e,b.createElement("div",{tabIndex:0,ref:Gn,style:Ge,"aria-hidden":"true","data-sentinel":"start"}),kt,b.createElement("div",{tabIndex:0,ref:hr,style:Ge,"aria-hidden":"true","data-sentinel":"end"})))}var ut=b.forwardRef(Et),et=ut,ot=function(Le){var Qe=Le.open,nt=Qe===void 0?!1:Qe,bt=Le.prefixCls,Oe=bt===void 0?"rc-drawer":bt,Be=Le.placement,zt=Be===void 0?"right":Be,Zt=Le.autoFocus,qt=Zt===void 0?!0:Zt,en=Le.keyboard,Tt=en===void 0?!0:en,an=Le.width,Wt=an===void 0?378:an,Ke=Le.mask,mt=Ke===void 0?!0:Ke,$t=Le.maskClosable,nn=$t===void 0?!0:$t,Re=Le.getContainer,pt=Le.forceRender,Mt=Le.afterOpenChange,Kt=Le.destroyOnClose,cn=Le.onMouseEnter,Pn=Le.onMouseOver,Rn=Le.onMouseLeave,Fn=Le.onClick,vn=Le.onKeyDown,Mn=Le.onKeyUp,dn=Le.panelRef,Vt=b.useState(!1),tn=(0,Se.Z)(Vt,2),on=tn[0],_t=tn[1],hn=b.useState(!1),mn=(0,Se.Z)(hn,2),Sn=mn[0],zn=mn[1];(0,Ee.Z)(function(){zn(!0)},[]);var Wn=Sn?nt:!1,Zn=b.useRef(),Jn=b.useRef();(0,Ee.Z)(function(){Wn&&(Jn.current=document.activeElement)},[Wn]);var Gn=function(Hn){var An;if(_t(Hn),Mt==null||Mt(Hn),!Hn&&Jn.current&&!((An=Zn.current)!==null&&An!==void 0&&An.contains(Jn.current))){var ct;(ct=Jn.current)===null||ct===void 0||ct.focus({preventScroll:!0})}},hr=b.useMemo(function(){return{panel:dn}},[dn]);if(!pt&&!on&&!Wn&&Kt)return null;var cr={onMouseEnter:cn,onMouseOver:Pn,onMouseLeave:Rn,onClick:Fn,onKeyDown:vn,onKeyUp:Mn},sn=(0,qe.Z)((0,qe.Z)({},Le),{},{open:Wn,prefixCls:Oe,placement:zt,autoFocus:qt,keyboard:Tt,width:Wt,mask:mt,maskClosable:nn,inline:Re===!1,afterOpenChange:Gn,ref:Zn},cr);return b.createElement(Pe.Provider,{value:hr},b.createElement(ge.Z,{open:Wn||pt||on,autoDestroy:!1,getContainer:Re,autoLock:mt&&(Wn||on)},b.createElement(et,sn)))},Ce=ot,at=Ce,Ve=ee(62487),de=ee(75030),Dt=ee(86641),Ue=ee(55743),st=ee(48755),Ut=ee(91190),Te=ee(78776),he=ee(458),Jt=Ae=>{var Le,Qe;const{prefixCls:nt,title:bt,footer:Oe,extra:Be,loading:zt,onClose:Zt,headerStyle:qt,bodyStyle:en,footerStyle:Tt,children:an,classNames:Wt,styles:Ke}=Ae,mt=(0,st.dj)("drawer"),$t=b.useCallback(Kt=>b.createElement("button",{type:"button",onClick:Zt,"aria-label":"Close",className:`${nt}-close`},Kt),[Zt]),[nn,Re]=(0,Te.Z)((0,Te.w)(Ae),(0,Te.w)(mt),{closable:!0,closeIconRender:$t}),pt=b.useMemo(()=>{var Kt,cn;return!bt&&!nn?null:b.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Kt=mt.styles)===null||Kt===void 0?void 0:Kt.header),qt),Ke==null?void 0:Ke.header),className:fe()(`${nt}-header`,{[`${nt}-header-close-only`]:nn&&!bt&&!Be},(cn=mt.classNames)===null||cn===void 0?void 0:cn.header,Wt==null?void 0:Wt.header)},b.createElement("div",{className:`${nt}-header-title`},Re,bt&&b.createElement("div",{className:`${nt}-title`},bt)),Be&&b.createElement("div",{className:`${nt}-extra`},Be))},[nn,Re,Be,qt,nt,bt]),Mt=b.useMemo(()=>{var Kt,cn;if(!Oe)return null;const Pn=`${nt}-footer`;return b.createElement("div",{className:fe()(Pn,(Kt=mt.classNames)===null||Kt===void 0?void 0:Kt.footer,Wt==null?void 0:Wt.footer),style:Object.assign(Object.assign(Object.assign({},(cn=mt.styles)===null||cn===void 0?void 0:cn.footer),Tt),Ke==null?void 0:Ke.footer)},Oe)},[Oe,Tt,nt]);return b.createElement(b.Fragment,null,pt,b.createElement("div",{className:fe()(`${nt}-body`,Wt==null?void 0:Wt.body,(Le=mt.classNames)===null||Le===void 0?void 0:Le.body),style:Object.assign(Object.assign(Object.assign({},(Qe=mt.styles)===null||Qe===void 0?void 0:Qe.body),en),Ke==null?void 0:Ke.body)},zt?b.createElement(he.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${nt}-body-skeleton`}):an),Mt)},Ft=ee(36237),ye=ee(63356),Ye=ee(16931),lt=ee(51636);const Xt=Ae=>{const Le="100%";return{left:`translateX(-${Le})`,right:`translateX(${Le})`,top:`translateY(-${Le})`,bottom:`translateY(${Le})`}[Ae]},rt=(Ae,Le)=>({"&-enter, &-appear":Object.assign(Object.assign({},Ae),{"&-active":Le}),"&-leave":Object.assign(Object.assign({},Le),{"&-active":Ae})}),At=(Ae,Le)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Le}`}}},rt({opacity:Ae},{opacity:1})),_e=(Ae,Le)=>[At(.7,Le),rt({transform:Xt(Ae)},{transform:"none"})];var Ct=Ae=>{const{componentCls:Le,motionDurationSlow:Qe}=Ae;return{[Le]:{[`${Le}-mask-motion`]:At(0,Qe),[`${Le}-panel-motion`]:["left","right","top","bottom"].reduce((nt,bt)=>Object.assign(Object.assign({},nt),{[`&-${bt}`]:_e(bt,Qe)}),{})}}};const ae=Ae=>{const{borderRadiusSM:Le,componentCls:Qe,zIndexPopup:nt,colorBgMask:bt,colorBgElevated:Oe,motionDurationSlow:Be,motionDurationMid:zt,paddingXS:Zt,padding:qt,paddingLG:en,fontSizeLG:Tt,lineHeightLG:an,lineWidth:Wt,lineType:Ke,colorSplit:mt,marginXS:$t,colorIcon:nn,colorIconHover:Re,colorBgTextHover:pt,colorBgTextActive:Mt,colorText:Kt,fontWeightStrong:cn,footerPaddingBlock:Pn,footerPaddingInline:Rn,calc:Fn}=Ae,vn=`${Qe}-content-wrapper`;return{[Qe]:{position:"fixed",inset:0,zIndex:nt,pointerEvents:"none",color:Kt,"&-pure":{position:"relative",background:Oe,display:"flex",flexDirection:"column",[`&${Qe}-left`]:{boxShadow:Ae.boxShadowDrawerLeft},[`&${Qe}-right`]:{boxShadow:Ae.boxShadowDrawerRight},[`&${Qe}-top`]:{boxShadow:Ae.boxShadowDrawerUp},[`&${Qe}-bottom`]:{boxShadow:Ae.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Qe}-mask`]:{position:"absolute",inset:0,zIndex:nt,background:bt,pointerEvents:"auto"},[vn]:{position:"absolute",zIndex:nt,maxWidth:"100vw",transition:`all ${Be}`,"&-hidden":{display:"none"}},[`&-left > ${vn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ae.boxShadowDrawerLeft},[`&-right > ${vn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ae.boxShadowDrawerRight},[`&-top > ${vn}`]:{top:0,insetInline:0,boxShadow:Ae.boxShadowDrawerUp},[`&-bottom > ${vn}`]:{bottom:0,insetInline:0,boxShadow:Ae.boxShadowDrawerDown},[`${Qe}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Oe,pointerEvents:"auto"},[`${Qe}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Ft.unit)(qt)} ${(0,Ft.unit)(en)}`,fontSize:Tt,lineHeight:an,borderBottom:`${(0,Ft.unit)(Wt)} ${Ke} ${mt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Qe}-extra`]:{flex:"none"},[`${Qe}-close`]:Object.assign({display:"inline-flex",width:Fn(Tt).add(Zt).equal(),height:Fn(Tt).add(Zt).equal(),borderRadius:Le,justifyContent:"center",alignItems:"center",marginInlineEnd:$t,color:nn,fontWeight:cn,fontSize:Tt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${zt}`,textRendering:"auto","&:hover":{color:Re,backgroundColor:pt,textDecoration:"none"},"&:active":{backgroundColor:Mt}},(0,ye.Qy)(Ae)),[`${Qe}-title`]:{flex:1,margin:0,fontWeight:Ae.fontWeightStrong,fontSize:Tt,lineHeight:an},[`${Qe}-body`]:{flex:1,minWidth:0,minHeight:0,padding:en,overflow:"auto",[`${Qe}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${Qe}-footer`]:{flexShrink:0,padding:`${(0,Ft.unit)(Pn)} ${(0,Ft.unit)(Rn)}`,borderTop:`${(0,Ft.unit)(Wt)} ${Ke} ${mt}`},"&-rtl":{direction:"rtl"}}}},ne=Ae=>({zIndexPopup:Ae.zIndexPopupBase,footerPaddingBlock:Ae.paddingXS,footerPaddingInline:Ae.padding});var te=(0,Ye.I$)("Drawer",Ae=>{const Le=(0,lt.mergeToken)(Ae,{});return[ae(Le),Ct(Le)]},ne),ie=function(Ae,Le){var Qe={};for(var nt in Ae)Object.prototype.hasOwnProperty.call(Ae,nt)&&Le.indexOf(nt)<0&&(Qe[nt]=Ae[nt]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,nt=Object.getOwnPropertySymbols(Ae);bt<nt.length;bt++)Le.indexOf(nt[bt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,nt[bt])&&(Qe[nt[bt]]=Ae[nt[bt]]);return Qe};const ue=null,re={distance:180},le=Ae=>{var Le;const{rootClassName:Qe,width:nt,height:bt,size:Oe="default",mask:Be=!0,push:zt=re,open:Zt,afterOpenChange:qt,onClose:en,prefixCls:Tt,getContainer:an,style:Wt,className:Ke,visible:mt,afterVisibleChange:$t,maskStyle:nn,drawerStyle:Re,contentWrapperStyle:pt}=Ae,Mt=ie(Ae,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Kt,getPrefixCls:cn,direction:Pn,className:Rn,style:Fn,classNames:vn,styles:Mn}=(0,st.dj)("drawer"),dn=cn("drawer",Tt),[Vt,tn,on]=te(dn),_t=an===void 0&&Kt?()=>Kt(document.body):an,hn=fe()({"no-mask":!Be,[`${dn}-rtl`]:Pn==="rtl"},Qe,tn,on),mn=b.useMemo(()=>nt!=null?nt:Oe==="large"?736:378,[nt,Oe]),Sn=b.useMemo(()=>bt!=null?bt:Oe==="large"?736:378,[bt,Oe]),zn={motionName:(0,Dt.m)(dn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Wn=sn=>({motionName:(0,Dt.m)(dn,`panel-motion-${sn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Zn=(0,Ut.H)(),[Jn,Gn]=(0,de.Cn)("Drawer",Mt.zIndex),{classNames:hr={},styles:cr={}}=Mt;return Vt(b.createElement(Ve.Z,{form:!0,space:!0},b.createElement(Ue.Z.Provider,{value:Gn},b.createElement(at,Object.assign({prefixCls:dn,onClose:en,maskMotion:zn,motion:Wn},Mt,{classNames:{mask:fe()(hr.mask,vn.mask),content:fe()(hr.content,vn.content),wrapper:fe()(hr.wrapper,vn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},cr.mask),nn),Mn.mask),content:Object.assign(Object.assign(Object.assign({},cr.content),Re),Mn.content),wrapper:Object.assign(Object.assign(Object.assign({},cr.wrapper),pt),Mn.wrapper)},open:Zt!=null?Zt:mt,mask:Be,push:zt,width:mn,height:Sn,style:Object.assign(Object.assign({},Fn),Wt),className:fe()(Rn,Ke),rootClassName:hn,getContainer:_t,afterOpenChange:qt!=null?qt:$t,panelRef:Zn,zIndex:Jn}),b.createElement(Jt,Object.assign({prefixCls:dn},Mt,{onClose:en}))))))},xe=Ae=>{const{prefixCls:Le,style:Qe,className:nt,placement:bt="right"}=Ae,Oe=ie(Ae,["prefixCls","style","className","placement"]),{getPrefixCls:Be}=b.useContext(st.E_),zt=Be("drawer",Le),[Zt,qt,en]=te(zt),Tt=fe()(zt,`${zt}-pure`,`${zt}-${bt}`,qt,en,nt);return Zt(b.createElement("div",{className:Tt,style:Qe},b.createElement(Jt,Object.assign({prefixCls:zt},Oe))))};le._InternalPanelDoNotUseOrYouWillBeFired=xe;var ft=le},19563:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ft}});var b=ee(59301),Fe=ee(33853),fe=ee(38819),qe=ee(92310),Se=ee.n(qe),ge=ee(96478),Ee=ee(6089),Ze=ee(18929),Pe=ee(2738),ce=ee(75030),we=ye=>typeof ye!="object"&&typeof ye!="function"||ye===null,St=ee(52838),tt=ee(45915),je=ee(22703),Me=ee(32383),Ne=ee(55743),it=ee(48755),yt=ee(83397),Ot=ee(93041),We=ee(78857),Ie=ee(57700),He=ee(36237),Ge=ee(63356),Et=ee(46e3),ut=ee(93873),et=ee(34925),ot=ee(37645),Ce=ee(36305),at=ee(16931),Ve=ee(51636),Dt=ye=>{const{componentCls:Ye,menuCls:lt,colorError:Xt,colorTextLightSolid:rt}=ye,At=`${lt}-item`;return{[`${Ye}, ${Ye}-menu-submenu`]:{[`${lt} ${At}`]:{[`&${At}-danger:not(${At}-disabled)`]:{color:Xt,"&:hover":{color:rt,backgroundColor:Xt}}}}}};const Ue=ye=>{const{componentCls:Ye,menuCls:lt,zIndexPopup:Xt,dropdownArrowDistance:rt,sizePopupArrow:At,antCls:_e,iconCls:Yt,motionDurationMid:Ct,paddingBlock:ae,fontSize:ne,dropdownEdgeChildPadding:te,colorTextDisabled:ie,fontSizeIcon:ue,controlPaddingHorizontal:re,colorBgElevated:le}=ye;return[{[Ye]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Xt,display:"block","&::before":{position:"absolute",insetBlock:ye.calc(At).div(2).sub(rt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${_e}-btn`]:{[`& > ${Yt}-down, & > ${_e}-btn-icon > ${Yt}-down`]:{fontSize:ue}},[`${Ye}-wrap`]:{position:"relative",[`${_e}-btn > ${Yt}-down`]:{fontSize:ue},[`${Yt}-down::before`]:{transition:`transform ${Ct}`}},[`${Ye}-wrap-open`]:{[`${Yt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${_e}-slide-down-enter${_e}-slide-down-enter-active${Ye}-placement-bottomLeft,
&${_e}-slide-down-appear${_e}-slide-down-appear-active${Ye}-placement-bottomLeft,
&${_e}-slide-down-enter${_e}-slide-down-enter-active${Ye}-placement-bottom,
&${_e}-slide-down-appear${_e}-slide-down-appear-active${Ye}-placement-bottom,
&${_e}-slide-down-enter${_e}-slide-down-enter-active${Ye}-placement-bottomRight,
&${_e}-slide-down-appear${_e}-slide-down-appear-active${Ye}-placement-bottomRight`]:{animationName:Et.fJ},[`&${_e}-slide-up-enter${_e}-slide-up-enter-active${Ye}-placement-topLeft,
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Ye}-placement-topLeft,
&${_e}-slide-up-enter${_e}-slide-up-enter-active${Ye}-placement-top,
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Ye}-placement-top,
&${_e}-slide-up-enter${_e}-slide-up-enter-active${Ye}-placement-topRight,
&${_e}-slide-up-appear${_e}-slide-up-appear-active${Ye}-placement-topRight`]:{animationName:Et.Qt},[`&${_e}-slide-down-leave${_e}-slide-down-leave-active${Ye}-placement-bottomLeft,
&${_e}-slide-down-leave${_e}-slide-down-leave-active${Ye}-placement-bottom,
&${_e}-slide-down-leave${_e}-slide-down-leave-active${Ye}-placement-bottomRight`]:{animationName:Et.Uw},[`&${_e}-slide-up-leave${_e}-slide-up-leave-active${Ye}-placement-topLeft,
&${_e}-slide-up-leave${_e}-slide-up-leave-active${Ye}-placement-top,
&${_e}-slide-up-leave${_e}-slide-up-leave-active${Ye}-placement-topRight`]:{animationName:Et.ly}}},(0,ot.ZP)(ye,le,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ye} ${lt}`]:{position:"relative",margin:0},[`${lt}-submenu-popup`]:{position:"absolute",zIndex:Xt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ye}, ${Ye}-menu-submenu`]:Object.assign(Object.assign({},(0,Ge.Wf)(ye)),{[lt]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:ye.borderRadiusLG,outline:"none",boxShadow:ye.boxShadowSecondary},(0,Ge.Qy)(ye)),{"&:empty":{padding:0,boxShadow:"none"},[`${lt}-item-group-title`]:{padding:`${(0,He.unit)(ae)} ${(0,He.unit)(re)}`,color:ye.colorTextDescription,transition:`all ${Ct}`},[`${lt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${lt}-item-icon`]:{minWidth:ne,marginInlineEnd:ye.marginXS,fontSize:ye.fontSizeSM},[`${lt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Ct}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${lt}-item-extra`]:{paddingInlineStart:ye.padding,marginInlineStart:"auto",fontSize:ye.fontSizeSM,color:ye.colorTextDescription}},[`${lt}-item, ${lt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,He.unit)(ae)} ${(0,He.unit)(re)}`,color:ye.colorText,fontWeight:"normal",fontSize:ne,lineHeight:ye.lineHeight,cursor:"pointer",transition:`all ${Ct}`,borderRadius:ye.borderRadiusSM,"&:hover, &-active":{backgroundColor:ye.controlItemBgHover}},(0,Ge.Qy)(ye)),{"&-selected":{color:ye.colorPrimary,backgroundColor:ye.controlItemBgActive,"&:hover, &-active":{backgroundColor:ye.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,He.unit)(ye.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:ye.colorSplit},[`${Ye}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ye.paddingXS,[`${Ye}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ye.colorTextDescription,fontSize:ue,fontStyle:"normal"}}}),[`${lt}-item-group-list`]:{margin:`0 ${(0,He.unit)(ye.marginXS)}`,padding:0,listStyle:"none"},[`${lt}-submenu-title`]:{paddingInlineEnd:ye.calc(re).add(ye.fontSizeSM).equal()},[`${lt}-submenu-vertical`]:{position:"relative"},[`${lt}-submenu${lt}-submenu-disabled ${Ye}-menu-submenu-title`]:{[`&, ${Ye}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:le,cursor:"not-allowed"}},[`${lt}-submenu-selected ${Ye}-menu-submenu-title`]:{color:ye.colorPrimary}})})},[(0,Et.oN)(ye,"slide-up"),(0,Et.oN)(ye,"slide-down"),(0,ut.Fm)(ye,"move-up"),(0,ut.Fm)(ye,"move-down"),(0,et._y)(ye,"zoom-big")]]},st=ye=>Object.assign(Object.assign({zIndexPopup:ye.zIndexPopupBase+50,paddingBlock:(ye.controlHeight-ye.fontSize*ye.lineHeight)/2},(0,ot.wZ)({contentRadius:ye.borderRadiusLG,limitVerticalRadius:!0})),(0,Ce.w)(ye));var Ut=(0,at.I$)("Dropdown",ye=>{const{marginXXS:Ye,sizePopupArrow:lt,paddingXXS:Xt,componentCls:rt}=ye,At=(0,Ve.mergeToken)(ye,{menuCls:`${rt}-menu`,dropdownArrowDistance:ye.calc(lt).div(2).add(Ye).equal(),dropdownEdgeChildPadding:Xt});return[Ue(At),Dt(At)]},st,{resetStyle:!1});const Te=null,he=ye=>{var Ye;const{menu:lt,arrow:Xt,prefixCls:rt,children:At,trigger:_e,disabled:Yt,dropdownRender:Ct,getPopupContainer:ae,overlayClassName:ne,rootClassName:te,overlayStyle:ie,open:ue,onOpenChange:re,visible:le,onVisibleChange:xe,mouseEnterDelay:ft=.15,mouseLeaveDelay:Ae=.1,autoAdjustOverflow:Le=!0,placement:Qe="",overlay:nt,transitionName:bt}=ye,{getPopupContainer:Oe,getPrefixCls:Be,direction:zt,dropdown:Zt}=b.useContext(it.E_),qt=(0,Me.ln)("Dropdown"),en=b.useMemo(()=>{const _t=Be();return bt!==void 0?bt:Qe.includes("top")?`${_t}-slide-down`:`${_t}-slide-up`},[Be,Qe,bt]),Tt=b.useMemo(()=>Qe?Qe.includes("Center")?Qe.slice(0,Qe.indexOf("Center")):Qe:zt==="rtl"?"bottomRight":"bottomLeft",[Qe,zt]),an=Be("dropdown",rt),Wt=(0,yt.Z)(an),[Ke,mt,$t]=Ut(an,Wt),[,nn]=(0,Ie.ZP)(),Re=b.Children.only(we(At)?b.createElement("span",null,At):At),pt=(0,je.Tm)(Re,{className:Se()(`${an}-trigger`,{[`${an}-rtl`]:zt==="rtl"},Re.props.className),disabled:(Ye=Re.props.disabled)!==null&&Ye!==void 0?Ye:Yt}),Mt=Yt?[]:_e,Kt=!!(Mt!=null&&Mt.includes("contextMenu")),[cn,Pn]=(0,Ze.Z)(!1,{value:ue!=null?ue:le}),Rn=(0,Ee.Z)(_t=>{re==null||re(_t,{source:"trigger"}),xe==null||xe(_t),Pn(_t)}),Fn=Se()(ne,te,mt,$t,Wt,Zt==null?void 0:Zt.className,{[`${an}-rtl`]:zt==="rtl"}),vn=(0,St.Z)({arrowPointAtCenter:typeof Xt=="object"&&Xt.pointAtCenter,autoAdjustOverflow:Le,offset:nn.marginXXS,arrowWidth:Xt?nn.sizePopupArrow:0,borderRadius:nn.borderRadius}),Mn=b.useCallback(()=>{lt!=null&&lt.selectable&&(lt!=null&&lt.multiple)||(re==null||re(!1,{source:"menu"}),Pn(!1))},[lt==null?void 0:lt.selectable,lt==null?void 0:lt.multiple]),dn=()=>{let _t;return lt!=null&&lt.items?_t=b.createElement(Ot.default,Object.assign({},lt)):typeof nt=="function"?_t=nt():_t=nt,Ct&&(_t=Ct(_t)),_t=b.Children.only(typeof _t=="string"?b.createElement("span",null,_t):_t),b.createElement(We.J,{prefixCls:`${an}-menu`,rootClassName:Se()($t,Wt),expandIcon:b.createElement("span",{className:`${an}-menu-submenu-arrow`},zt==="rtl"?b.createElement(Fe.Z,{className:`${an}-menu-submenu-arrow-icon`}):b.createElement(fe.Z,{className:`${an}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Mn,validator:hn=>{let{mode:mn}=hn}},_t)},[Vt,tn]=(0,ce.Cn)("Dropdown",ie==null?void 0:ie.zIndex);let on=b.createElement(ge.Z,Object.assign({alignPoint:Kt},(0,Pe.Z)(ye,["rootClassName"]),{mouseEnterDelay:ft,mouseLeaveDelay:Ae,visible:cn,builtinPlacements:vn,arrow:!!Xt,overlayClassName:Fn,prefixCls:an,getPopupContainer:ae||Oe,transitionName:en,trigger:Mt,overlay:dn,placement:Tt,onVisibleChange:Rn,overlayStyle:Object.assign(Object.assign(Object.assign({},Zt==null?void 0:Zt.style),ie),{zIndex:Vt})}),pt);return Vt&&(on=b.createElement(Ne.Z.Provider,{value:tn},on)),Ke(on)},Nt=(0,tt.Z)(he,"align",void 0,"dropdown",ye=>ye),Jt=ye=>b.createElement(Nt,Object.assign({},ye),b.createElement("span",null));he._InternalPanelDoNotUseOrYouWillBeFired=Jt;var Ft=he},75727:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return tt}});var b=ee(19563),Fe=ee(59301),fe=ee(18785),qe=ee(92310),Se=ee.n(qe),ge=ee(7939),Ee=ee(48755),Ze=ee(44104),Pe=ee(70045),ce=function(je,Me){var Ne={};for(var it in je)Object.prototype.hasOwnProperty.call(je,it)&&Me.indexOf(it)<0&&(Ne[it]=je[it]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yt=0,it=Object.getOwnPropertySymbols(je);yt<it.length;yt++)Me.indexOf(it[yt])<0&&Object.prototype.propertyIsEnumerable.call(je,it[yt])&&(Ne[it[yt]]=je[it[yt]]);return Ne};const Xe=je=>{const{getPopupContainer:Me,getPrefixCls:Ne,direction:it}=Fe.useContext(Ee.E_),{prefixCls:yt,type:Ot="default",danger:We,disabled:Ie,loading:He,onClick:Ge,htmlType:Et,children:ut,className:et,menu:ot,arrow:Ce,autoFocus:at,overlay:Ve,trigger:de,align:Dt,open:Ue,onOpenChange:st,placement:Ut,getPopupContainer:Te,href:he,icon:Nt=Fe.createElement(fe.Z,null),title:Jt,buttonsRender:Ft=ft=>ft,mouseEnterDelay:ye,mouseLeaveDelay:Ye,overlayClassName:lt,overlayStyle:Xt,destroyPopupOnHide:rt,dropdownRender:At}=je,_e=ce(je,["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"]),Yt=Ne("dropdown",yt),Ct=`${Yt}-button`,ae={menu:ot,arrow:Ce,autoFocus:at,align:Dt,disabled:Ie,trigger:Ie?[]:de,onOpenChange:st,getPopupContainer:Te||Me,mouseEnterDelay:ye,mouseLeaveDelay:Ye,overlayClassName:lt,overlayStyle:Xt,destroyPopupOnHide:rt,dropdownRender:At},{compactSize:ne,compactItemClassnames:te}=(0,Pe.ri)(Yt,it),ie=Se()(Ct,te,et);"overlay"in je&&(ae.overlay=Ve),"open"in je&&(ae.open=Ue),"placement"in je?ae.placement=Ut:ae.placement=it==="rtl"?"bottomLeft":"bottomRight";const ue=Fe.createElement(ge.ZP,{type:Ot,danger:We,disabled:Ie,loading:He,onClick:Ge,htmlType:Et,href:he,title:Jt},ut),re=Fe.createElement(ge.ZP,{type:Ot,danger:We,icon:Nt}),[le,xe]=Ft([ue,re]);return Fe.createElement(Ze.Z.Compact,Object.assign({className:ie,size:ne,block:!0},_e),le,Fe.createElement(b.Z,Object.assign({},ae),xe))};Xe.__ANT_BUTTON=!0;var we=Xe;const St=b.Z;St.Button=we;var tt=St},584:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ot}});var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(9017),Se=ee(17835),ge=ee(57700),Ze=()=>{const[,We]=(0,ge.ZP)(),[Ie]=(0,qe.Z)("Empty"),Ge=new Se.FastColor(We.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return b.createElement("svg",{style:Ge,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Ie==null?void 0:Ie.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"}))))},ce=()=>{const[,We]=(0,ge.ZP)(),[Ie]=(0,qe.Z)("Empty"),{colorFill:He,colorFillTertiary:Ge,colorFillQuaternary:Et,colorBgContainer:ut}=We,{borderColor:et,shadowColor:ot,contentColor:Ce}=(0,b.useMemo)(()=>({borderColor:new Se.FastColor(He).onBackground(ut).toHexString(),shadowColor:new Se.FastColor(Ge).onBackground(ut).toHexString(),contentColor:new Se.FastColor(Et).onBackground(ut).toHexString()}),[He,Ge,Et,ut]);return b.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},b.createElement("title",null,(Ie==null?void 0:Ie.description)||"Empty"),b.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},b.createElement("ellipse",{fill:ot,cx:"32",cy:"33",rx:"32",ry:"7"}),b.createElement("g",{fillRule:"nonzero",stroke:et},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:Ce}))))},Xe=ee(16931),we=ee(51636);const St=We=>{const{componentCls:Ie,margin:He,marginXS:Ge,marginXL:Et,fontSize:ut,lineHeight:et}=We;return{[Ie]:{marginInline:Ge,fontSize:ut,lineHeight:et,textAlign:"center",[`${Ie}-image`]:{height:We.emptyImgHeight,marginBottom:Ge,opacity:We.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ie}-description`]:{color:We.colorTextDescription},[`${Ie}-footer`]:{marginTop:He},"&-normal":{marginBlock:Et,color:We.colorTextDescription,[`${Ie}-description`]:{color:We.colorTextDescription},[`${Ie}-image`]:{height:We.emptyImgHeightMD}},"&-small":{marginBlock:Ge,color:We.colorTextDescription,[`${Ie}-image`]:{height:We.emptyImgHeightSM}}}}};var tt=(0,Xe.I$)("Empty",We=>{const{componentCls:Ie,controlHeightLG:He,calc:Ge}=We,Et=(0,we.mergeToken)(We,{emptyImgCls:`${Ie}-img`,emptyImgHeight:Ge(He).mul(2.5).equal(),emptyImgHeightMD:He,emptyImgHeightSM:Ge(He).mul(.875).equal()});return[St(Et)]}),je=ee(48755),Me=function(We,Ie){var He={};for(var Ge in We)Object.prototype.hasOwnProperty.call(We,Ge)&&Ie.indexOf(Ge)<0&&(He[Ge]=We[Ge]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,Ge=Object.getOwnPropertySymbols(We);Et<Ge.length;Et++)Ie.indexOf(Ge[Et])<0&&Object.prototype.propertyIsEnumerable.call(We,Ge[Et])&&(He[Ge[Et]]=We[Ge[Et]]);return He};const Ne=b.createElement(Ze,null),it=b.createElement(ce,null),yt=We=>{const{className:Ie,rootClassName:He,prefixCls:Ge,image:Et=Ne,description:ut,children:et,imageStyle:ot,style:Ce,classNames:at,styles:Ve}=We,de=Me(We,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Dt,direction:Ue,className:st,style:Ut,classNames:Te,styles:he}=(0,je.dj)("empty"),Nt=Dt("empty",Ge),[Jt,Ft,ye]=tt(Nt),[Ye]=(0,qe.Z)("Empty"),lt=typeof ut!="undefined"?ut:Ye==null?void 0:Ye.description,Xt=typeof lt=="string"?lt:"empty";let rt=null;return typeof Et=="string"?rt=b.createElement("img",{alt:Xt,src:Et}):rt=Et,Jt(b.createElement("div",Object.assign({className:fe()(Ft,ye,Nt,st,{[`${Nt}-normal`]:Et===it,[`${Nt}-rtl`]:Ue==="rtl"},Ie,He,Te.root,at==null?void 0:at.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),Ut),Ve==null?void 0:Ve.root),Ce)},de),b.createElement("div",{className:fe()(`${Nt}-image`,Te.image,at==null?void 0:at.image),style:Object.assign(Object.assign(Object.assign({},ot),he.image),Ve==null?void 0:Ve.image)},rt),lt&&b.createElement("div",{className:fe()(`${Nt}-description`,Te.description,at==null?void 0:at.description),style:Object.assign(Object.assign({},he.description),Ve==null?void 0:Ve.description)},lt),et&&b.createElement("div",{className:fe()(`${Nt}-footer`,Te.footer,at==null?void 0:at.footer),style:Object.assign(Object.assign({},he.footer),Ve==null?void 0:Ve.footer)},et)))};yt.PRESENTED_IMAGE_DEFAULT=Ne,yt.PRESENTED_IMAGE_SIMPLE=it;var Ot=yt},28284:function(Cn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return It}});var b=ee(56553),Fe=ee(77654),fe=ee(59301),qe=ee(92310),Se=ee.n(qe),ge=ee(77900),Ee=ee(86641),Ze=ee(83397);function Pe(ze){const[vt,$e]=fe.useState(ze);return fe.useEffect(()=>{const xt=setTimeout(()=>{$e(ze)},ze.length?0:10);return()=>{clearTimeout(xt)}},[ze]),vt}var ce=ee(36237),Xe=ee(63356),we=ee(34925),St=ee(34961),tt=ee(51636),je=ee(16931),Ne=ze=>{const{componentCls:vt}=ze,$e=`${vt}-show-help`,xt=`${vt}-show-help-item`;return{[$e]:{transition:`opacity ${ze.motionDurationFast} ${ze.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[xt]:{overflow:"hidden",transition:`height ${ze.motionDurationFast} ${ze.motionEaseInOut},
opacity ${ze.motionDurationFast} ${ze.motionEaseInOut},
transform ${ze.motionDurationFast} ${ze.motionEaseInOut} !important`,[`&${xt}-appear, &${xt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${xt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const it=ze=>({legend:{display:"block",width:"100%",marginBottom:ze.marginLG,padding:0,color:ze.colorTextDescription,fontSize:ze.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ce.unit)(ze.lineWidth)} ${ze.lineType} ${ze.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,ce.unit)(ze.controlOutlineWidth)} ${ze.controlOutline}`},output:{display:"block",paddingTop:15,color:ze.colorText,fontSize:ze.fontSize,lineHeight:ze.lineHeight}}),yt=(ze,vt)=>{const{formItemCls:$e}=ze;return{[$e]:{[`${$e}-label > label`]:{height:vt},[`${$e}-control-input`]:{minHeight:vt}}}},Ot=ze=>{const{componentCls:vt}=ze;return{[ze.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Xe.Wf)(ze)),it(ze)),{[`${vt}-text`]:{display:"inline-block",paddingInlineEnd:ze.paddingSM},"&-small":Object.assign({},yt(ze,ze.controlHeightSM)),"&-large":Object.assign({},yt(ze,ze.controlHeightLG))})}},We=ze=>{const{formItemCls:vt,iconCls:$e,rootPrefixCls:xt,antCls:De,labelRequiredMarkColor:Pt,labelColor:kt,labelFontSize:jt,labelHeight:gt,labelColonMarginInlineStart:ht,labelColonMarginInlineEnd:wt,itemMarginBottom:Rt}=ze;return{[vt]:Object.assign(Object.assign({},(0,Xe.Wf)(ze)),{marginBottom:Rt,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${De}-row`]:{display:"none"},"&-has-warning":{[`${vt}-split`]:{color:ze.colorError}},"&-has-error":{[`${vt}-split`]:{color:ze.colorWarning}},[`${vt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ze.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:gt,color:kt,fontSize:jt,[`> ${$e}`]:{fontSize:ze.fontSize,verticalAlign:"top"},[`&${vt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ze.marginXXS,color:Pt,fontSize:ze.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${vt}-required-mark-hidden, &${vt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${vt}-optional`]:{display:"inline-block",marginInlineStart:ze.marginXXS,color:ze.colorTextDescription,[`&${vt}-required-mark-hidden`]:{display:"none"}},[`${vt}-tooltip`]:{color:ze.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ze.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ht,marginInlineEnd:wt},[`&${vt}-no-colon::after`]:{content:'"\\a0"'}}},[`${vt}-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:ze.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[vt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ze.colorTextDescription,fontSize:ze.fontSize,lineHeight:ze.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ze.controlHeightSM,transition:`color ${ze.motionDurationMid} ${ze.motionEaseOut}`},"&-explain":{"&-error":{color:ze.colorError},"&-warning":{color:ze.colorWarning}}},[`&-with-help ${vt}-explain`]:{height:"auto",opacity:1},[`${vt}-feedback-icon`]:{fontSize:ze.fontSize,textAlign:"center",visibility:"visible",animationName:we.kr,animationDuration:ze.motionDurationMid,animationTimingFunction:ze.motionEaseOutBack,pointerEvents:"none","&-success":{color:ze.colorSuccess},"&-error":{color:ze.colorError},"&-warning":{color:ze.colorWarning},"&-validating":{color:ze.colorPrimary}}})}},Ie=(ze,vt)=>{const{formItemCls:$e}=ze;return{[`${vt}-horizontal`]:{[`${$e}-label`]:{flexGrow:0},[`${$e}-control`]:{flex:"1 1 0",minWidth:0},[`${$e}-label[class$='-24'], ${$e}-label[class*='-24 ']`]:{[`& + ${$e}-control`]:{minWidth:"unset"}}}}},He=ze=>{const{componentCls:vt,formItemCls:$e,inlineItemMarginBottom:xt}=ze;return{[`${vt}-inline`]:{display:"flex",flexWrap:"wrap",[$e]:{flex:"none",marginInlineEnd:ze.margin,marginBottom:xt,"&-row":{flexWrap:"nowrap"},[`> ${$e}-label,
> ${$e}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${$e}-label`]:{flex:"none"},[`${vt}-text`]:{display:"inline-block"},[`${$e}-has-feedback`]:{display:"inline-block"}}}}},Ge=ze=>({padding:ze.verticalLabelPadding,margin:ze.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Et=ze=>{const{componentCls:vt,formItemCls:$e,rootPrefixCls:xt}=ze;return{[`${$e} ${$e}-label`]:Ge(ze),[`${vt}:not(${vt}-inline)`]:{[$e]:{flexWrap:"wrap",[`${$e}-label, ${$e}-control`]:{[`&:not([class*=" ${xt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ut=ze=>{const{componentCls:vt,formItemCls:$e,antCls:xt}=ze;return{[`${vt}-vertical`]:{[`${$e}:not(${$e}-horizontal)`]:{[`${$e}-row`]:{flexDirection:"column"},[`${$e}-label > label`]:{height:"auto"},[`${$e}-control`]:{width:"100%"},[`${$e}-label,
${xt}-col-24${$e}-label,
${xt}-col-xl-24${$e}-label`]:Ge(ze)}},[`@media (max-width: ${(0,ce.unit)(ze.screenXSMax)})`]:[Et(ze),{[vt]:{[`${$e}:not(${$e}-horizontal)`]:{[`${xt}-col-xs-24${$e}-label`]:Ge(ze)}}}],[`@media (max-width: ${(0,ce.unit)(ze.screenSMMax)})`]:{[vt]:{[`${$e}:not(${$e}-horizontal)`]:{[`${xt}-col-sm-24${$e}-label`]:Ge(ze)}}},[`@media (max-width: ${(0,ce.unit)(ze.screenMDMax)})`]:{[vt]:{[`${$e}:not(${$e}-horizontal)`]:{[`${xt}-col-md-24${$e}-label`]:Ge(ze)}}},[`@media (max-width: ${(0,ce.unit)(ze.screenLGMax)})`]:{[vt]:{[`${$e}:not(${$e}-horizontal)`]:{[`${xt}-col-lg-24${$e}-label`]:Ge(ze)}}}}},et=ze=>{const{formItemCls:vt,antCls:$e}=ze;return{[`${vt}-vertical`]:{[`${vt}-row`]:{flexDirection:"column"},[`${vt}-label > label`]:{height:"auto"},[`${vt}-control`]:{width:"100%"}},[`${vt}-vertical ${vt}-label,
${$e}-col-24${vt}-label,
${$e}-col-xl-24${vt}-label`]:Ge(ze),[`@media (max-width: ${(0,ce.unit)(ze.screenXSMax)})`]:[Et(ze),{[vt]:{[`${$e}-col-xs-24${vt}-label`]:Ge(ze)}}],[`@media (max-width: ${(0,ce.unit)(ze.screenSMMax)})`]:{[vt]:{[`${$e}-col-sm-24${vt}-label`]:Ge(ze)}},[`@media (max-width: ${(0,ce.unit)(ze.screenMDMax)})`]:{[vt]:{[`${$e}-col-md-24${vt}-label`]:Ge(ze)}},[`@media (max-width: ${(0,ce.unit)(ze.screenLGMax)})`]:{[vt]:{[`${$e}-col-lg-24${vt}-label`]:Ge(ze)}}}},ot=ze=>({labelRequiredMarkColor:ze.colorError,labelColor:ze.colorTextHeading,labelFontSize:ze.fontSize,labelHeight:ze.controlHeight,labelColonMarginInlineStart:ze.marginXXS/2,labelColonMarginInlineEnd:ze.marginXS,itemMarginBottom:ze.marginLG,verticalLabelPadding:`0 0 ${ze.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ce=(ze,vt)=>(0,tt.mergeToken)(ze,{formItemCls:`${ze.componentCls}-item`,rootPrefixCls:vt});var at=(0,je.I$)("Form",(ze,vt)=>{let{rootPrefixCls:$e}=vt;const xt=Ce(ze,$e);return[Ot(xt),We(xt),Ne(xt),Ie(xt,xt.componentCls),Ie(xt,xt.formItemCls),He(xt),ut(xt),et(xt),(0,St.Z)(xt),we.kr]},ot,{order:-1e3});const Ve=[];function de(ze,vt,$e){let xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ze=="string"?ze:`${vt}-${xt}`,error:ze,errorStatus:$e}}var Ue=ze=>{let{help:vt,helpStatus:$e,errors:xt=Ve,warnings:De=Ve,className:Pt,fieldId:kt,onVisibleChanged:jt}=ze;const{prefixCls:gt}=fe.useContext(b.Rk),ht=`${gt}-item-explain`,wt=(0,Ze.Z)(gt),[Rt,In,On]=at(gt,wt),Nn=fe.useMemo(()=>(0,Ee.Z)(gt),[gt]),tr=Pe(xt),dr=Pe(De),mr=fe.useMemo(()=>vt!=null?[de(vt,"help",$e)]:[].concat((0,Fe.Z)(tr.map((Qn,rr)=>de(Qn,"error","error",rr))),(0,Fe.Z)(dr.map((Qn,rr)=>de(Qn,"warning","warning",rr)))),[vt,$e,tr,dr]),er=fe.useMemo(()=>{const Qn={};return mr.forEach(rr=>{let{key:wr}=rr;Qn[wr]=(Qn[wr]||0)+1}),mr.map((rr,wr)=>Object.assign(Object.assign({},rr),{key:Qn[rr.key]>1?`${rr.key}-fallback-${wr}`:rr.key}))},[mr]),Yn={};return kt&&(Yn.id=`${kt}_help`),Rt(fe.createElement(ge.default,{motionDeadline:Nn.motionDeadline,motionName:`${gt}-show-help`,visible:!!er.length,onVisibleChanged:jt},Qn=>{const{className:rr,style:wr}=Qn;return fe.createElement("div",Object.assign({},Yn,{className:Se()(ht,rr,On,wt,Pt,In),style:wr}),fe.createElement(ge.CSSMotionList,Object.assign({keys:er},(0,Ee.Z)(gt),{motionName:`${gt}-show-help-item`,component:!1}),ar=>{const{key:Cr,error:qn,errorStatus:pr,className:vr,style:Kr}=ar;return fe.createElement("div",{key:Cr,className:Se()(vr,{[`${ht}-${pr}`]:pr}),style:Kr},qn)}))}))},st=ee(69180),Ut=ee(48755),Te=ee(2171),he=ee(31756),Nt=ee(23069),Jt=ee(76846),Ft=ee(16722);const ye=["parentNode"],Ye="form_item";function lt(ze){return ze===void 0||ze===!1?[]:Array.isArray(ze)?ze:[ze]}function Xt(ze,vt){if(!ze.length)return;const $e=ze.join("_");return vt?`${vt}_${$e}`:ye.includes($e)?`${Ye}_${$e}`:$e}function rt(ze,vt,$e,xt,De,Pt){let kt=xt;return Pt!==void 0?kt=Pt:$e.validating?kt="validating":ze.length?kt="error":vt.length?kt="warning":($e.touched||De&&$e.validated)&&(kt="success"),kt}var At=function(ze,vt){var $e={};for(var xt in ze)Object.prototype.hasOwnProperty.call(ze,xt)&&vt.indexOf(xt)<0&&($e[xt]=ze[xt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,xt=Object.getOwnPropertySymbols(ze);De<xt.length;De++)vt.indexOf(xt[De])<0&&Object.prototype.propertyIsEnumerable.call(ze,xt[De])&&($e[xt[De]]=ze[xt[De]]);return $e};function _e(ze){return lt(ze).join("_")}function Yt(ze,vt){const $e=vt.getFieldInstance(ze),xt=(0,Jt.bn)($e);if(xt)return xt;const De=Xt(lt(ze),vt.__INTERNAL__.name);if(De)return document.getElementById(De)}function Ct(ze){const[vt]=(0,st.useForm)(),$e=fe.useRef({}),xt=fe.useMemo(()=>ze!=null?ze:Object.assign(Object.assign({},vt),{__INTERNAL__:{itemRef:De=>Pt=>{const kt=_e(De);Pt?$e.current[kt]=Pt:delete $e.current[kt]}},scrollToField:function(De){let Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:kt}=Pt,jt=At(Pt,["focus"]),gt=Yt(De,xt);gt&&((0,Ft.Z)(gt,Object.assign({scrollMode:"if-needed",block:"nearest"},jt)),kt&&xt.focusField(De))},focusField:De=>{var Pt,kt;const jt=xt.getFieldInstance(De);typeof(jt==null?void 0:jt.focus)=="function"?jt.focus():(kt=(Pt=Yt(De,xt))===null||Pt===void 0?void 0:Pt.focus)===null||kt===void 0||kt.call(Pt)},getFieldInstance:De=>{const Pt=_e(De);return $e.current[Pt]}}),[ze,vt]);return[xt]}var ae=ee(98350),ne=function(ze,vt){var $e={};for(var xt in ze)Object.prototype.hasOwnProperty.call(ze,xt)&&vt.indexOf(xt)<0&&($e[xt]=ze[xt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,xt=Object.getOwnPropertySymbols(ze);De<xt.length;De++)vt.indexOf(xt[De])<0&&Object.prototype.propertyIsEnumerable.call(ze,xt[De])&&($e[xt[De]]=ze[xt[De]]);return $e};const te=(ze,vt)=>{const $e=fe.useContext(Te.Z),{getPrefixCls:xt,direction:De,requiredMark:Pt,colon:kt,scrollToFirstError:jt,className:gt,style:ht}=(0,Ut.dj)("form"),{prefixCls:wt,className:Rt,rootClassName:In,size:On,disabled:Nn=$e,form:tr,colon:dr,labelAlign:mr,labelWrap:er,labelCol:Yn,wrapperCol:Qn,hideRequiredMark:rr,layout:wr="horizontal",scrollToFirstError:ar,requiredMark:Cr,onFinishFailed:qn,name:pr,style:vr,feedbackIcons:Kr,variant:_r}=ze,Wr=ne(ze,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Ur=(0,he.Z)(On),ao=fe.useContext(ae.Z),Hr=fe.useMemo(()=>Cr!==void 0?Cr:rr?!1:Pt!==void 0?Pt:!0,[rr,Cr,Pt]),to=dr!=null?dr:kt,Ir=xt("form",wt),ro=(0,Ze.Z)(Ir),[ho,En,Vn]=at(Ir,ro),zr=Se()(Ir,`${Ir}-${wr}`,{[`${Ir}-hide-required-mark`]:Hr===!1,[`${Ir}-rtl`]:De==="rtl",[`${Ir}-${Ur}`]:Ur},Vn,ro,En,gt,Rt,In),[no]=Ct(tr),{__INTERNAL__:vo}=no;vo.name=pr;const Dr=fe.useMemo(()=>({name:pr,labelAlign:mr,labelCol:Yn,labelWrap:er,wrapperCol:Qn,vertical:wr==="vertical",colon:to,requiredMark:Hr,itemRef:vo.itemRef,form:no,feedbackIcons:Kr}),[pr,mr,Yn,Qn,wr,to,Hr,no,Kr]),kr=fe.useRef(null);fe.useImperativeHandle(vt,()=>{var jn;return Object.assign(Object.assign({},no),{nativeElement:(jn=kr.current)===null||jn===void 0?void 0:jn.nativeElement})});const lr=(jn,Kn)=>{if(jn){let kn={block:"nearest"};typeof jn=="object"&&(kn=Object.assign(Object.assign({},kn),jn)),no.scrollToField(Kn,kn)}},wn=jn=>{if(qn==null||qn(jn),jn.errorFields.length){const Kn=jn.errorFields[0].name;if(ar!==void 0){lr(ar,Kn);return}jt!==void 0&&lr(jt,Kn)}};return ho(fe.createElement(b.pg.Provider,{value:_r},fe.createElement(Te.n,{disabled:Nn},fe.createElement(Nt.Z.Provider,{value:Ur},fe.createElement(b.RV,{validateMessages:ao},fe.createElement(b.q3.Provider,{value:Dr},fe.createElement(st.default,Object.assign({id:pr},Wr,{name:pr,onFinishFailed:wn,form:no,ref:kr,style:Object.assign(Object.assign({},ht),vr),className:zr}))))))))};var ue=fe.forwardRef(te),re=ee(41799),le=ee(8654),xe=ee(22703),ft=ee(32383),Ae=ee(11592);function Le(ze){if(typeof ze=="function")return ze;const vt=(0,Ae.Z)(ze);return vt.length<=1?vt[0]:vt}const Qe=()=>{const{status:ze,errors:vt=[],warnings:$e=[]}=fe.useContext(b.aM);return{status:ze,errors:vt,warnings:$e}};Qe.Context=b.aM;var nt=Qe,bt=ee(16089);function Oe(ze){const[vt,$e]=fe.useState(ze),xt=fe.useRef(null),De=fe.useRef([]),Pt=fe.useRef(!1);fe.useEffect(()=>(Pt.current=!1,()=>{Pt.current=!0,bt.Z.cancel(xt.current),xt.current=null}),[]);function kt(jt){Pt.current||(xt.current===null&&(De.current=[],xt.current=(0,bt.Z)(()=>{xt.current=null,$e(gt=>{let ht=gt;return De.current.forEach(wt=>{ht=wt(ht)}),ht})})),De.current.push(jt))}return[vt,kt]}function Be(){const{itemRef:ze}=fe.useContext(b.q3),vt=fe.useRef({});function $e(xt,De){const Pt=De&&typeof De=="object"&&(0,le.C4)(De),kt=xt.join("_");return(vt.current.name!==kt||vt.current.originRef!==Pt)&&(vt.current.name=kt,vt.current.originRef=Pt,vt.current.ref=(0,le.sQ)(ze(xt),Pt)),vt.current.ref}return $e}var zt=ee(29194),Zt=ee(34280),qt=ee(2738),en=ee(65970),Tt=ee(70425),an=ee(5472);const Wt=ze=>{const{formItemCls:vt}=ze;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${vt}-control`]:{display:"flex"}}}};var Ke=(0,je.bk)(["Form","item-item"],(ze,vt)=>{let{rootPrefixCls:$e}=vt;const xt=Ce(ze,$e);return[Wt(xt)]}),mt=function(ze,vt){var $e={};for(var xt in ze)Object.prototype.hasOwnProperty.call(ze,xt)&&vt.indexOf(xt)<0&&($e[xt]=ze[xt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,xt=Object.getOwnPropertySymbols(ze);De<xt.length;De++)vt.indexOf(xt[De])<0&&Object.prototype.propertyIsEnumerable.call(ze,xt[De])&&($e[xt[De]]=ze[xt[De]]);return $e};const $t=24;var Re=ze=>{const{prefixCls:vt,status:$e,labelCol:xt,wrapperCol:De,children:Pt,errors:kt,warnings:jt,_internalItemRender:gt,extra:ht,help:wt,fieldId:Rt,marginBottom:In,onErrorVisibleChanged:On,label:Nn}=ze,tr=`${vt}-item`,dr=fe.useContext(b.q3),mr=fe.useMemo(()=>{let Wr=Object.assign({},De||dr.wrapperCol||{});return Nn===null&&!xt&&!De&&dr.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(ao=>{const Hr=ao?[ao]:[],to=(0,Tt.U2)(dr.labelCol,Hr),Ir=typeof to=="object"?to:{},ro=(0,Tt.U2)(Wr,Hr),ho=typeof ro=="object"?ro:{};"span"in Ir&&!("offset"in ho)&&Ir.span<$t&&(Wr=(0,Tt.t8)(Wr,[].concat(Hr,["offset"]),Ir.span))}),Wr},[De,dr]),er=Se()(`${tr}-control`,mr.className),Yn=fe.useMemo(()=>{const{labelCol:Wr,wrapperCol:Ur}=dr;return mt(dr,["labelCol","wrapperCol"])},[dr]),Qn=fe.useRef(null),[rr,wr]=fe.useState(0);(0,Zt.Z)(()=>{ht&&Qn.current?wr(Qn.current.clientHeight):wr(0)},[ht]);const ar=fe.createElement("div",{className:`${tr}-control-input`},fe.createElement("div",{className:`${tr}-control-input-content`},Pt)),Cr=fe.useMemo(()=>({prefixCls:vt,status:$e}),[vt,$e]),qn=In!==null||kt.length||jt.length?fe.createElement(b.Rk.Provider,{value:Cr},fe.createElement(Ue,{fieldId:Rt,errors:kt,warnings:jt,help:wt,helpStatus:$e,className:`${tr}-explain-connected`,onVisibleChanged:On})):null,pr={};Rt&&(pr.id=`${Rt}_extra`);const vr=ht?fe.createElement("div",Object.assign({},pr,{className:`${tr}-extra`,ref:Qn}),ht):null,Kr=qn||vr?fe.createElement("div",{className:`${tr}-additional`,style:In?{minHeight:In+rr}:{}},qn,vr):null,_r=gt&&gt.mark==="pro_table_render"&&gt.render?gt.render(ze,{input:ar,errorList:qn,extra:vr}):fe.createElement(fe.Fragment,null,ar,Kr);return fe.createElement(b.q3.Provider,{value:Yn},fe.createElement(an.Z,Object.assign({},mr,{className:er}),_r),fe.createElement(Ke,{prefixCls:vt}))},pt=ee(61485),Mt=ee(9017),Kt=ee(85981),cn=ee(25399),Pn=function(ze,vt){var $e={};for(var xt in ze)Object.prototype.hasOwnProperty.call(ze,xt)&&vt.indexOf(xt)<0&&($e[xt]=ze[xt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,xt=Object.getOwnPropertySymbols(ze);De<xt.length;De++)vt.indexOf(xt[De])<0&&Object.prototype.propertyIsEnumerable.call(ze,xt[De])&&($e[xt[De]]=ze[xt[De]]);return $e};function Rn(ze){return ze?typeof ze=="object"&&!fe.isValidElement(ze)?ze:{title:ze}:null}var vn=ze=>{let{prefixCls:vt,label:$e,htmlFor:xt,labelCol:De,labelAlign:Pt,colon:kt,required:jt,requiredMark:gt,tooltip:ht,vertical:wt}=ze;var Rt;const[In]=(0,Mt.Z)("Form"),{labelAlign:On,labelCol:Nn,labelWrap:tr,colon:dr}=fe.useContext(b.q3);if(!$e)return null;const mr=De||Nn||{},er=Pt||On,Yn=`${vt}-item-label`,Qn=Se()(Yn,er==="left"&&`${Yn}-left`,mr.className,{[`${Yn}-wrap`]:!!tr});let rr=$e;const wr=kt===!0||dr!==!1&&kt!==!1;wr&&!wt&&typeof $e=="string"&&$e.trim()&&(rr=$e.replace(/[:|]\s*$/,""));const Cr=Rn(ht);if(Cr){const{icon:Wr=fe.createElement(pt.Z,null)}=Cr,Ur=Pn(Cr,["icon"]),ao=fe.createElement(cn.Z,Object.assign({},Ur),fe.cloneElement(Wr,{className:`${vt}-item-tooltip`,title:"",onClick:Hr=>{Hr.preventDefault()},tabIndex:null}));rr=fe.createElement(fe.Fragment,null,rr,ao)}const qn=gt==="optional",pr=typeof gt=="function",vr=gt===!1;pr?rr=gt(rr,{required:!!jt}):qn&&!jt&&(rr=fe.createElement(fe.Fragment,null,rr,fe.createElement("span",{className:`${vt}-item-optional`,title:""},(In==null?void 0:In.optional)||((Rt=Kt.Z.Form)===null||Rt===void 0?void 0:Rt.optional))));let Kr;vr?Kr="hidden":(qn||pr)&&(Kr="optional");const _r=Se()({[`${vt}-item-required`]:jt,[`${vt}-item-required-mark-${Kr}`]:Kr,[`${vt}-item-no-colon`]:!wr});return fe.createElement(an.Z,Object.assign({},mr,{className:Qn}),fe.createElement("label",{htmlFor:xt,className:_r,title:typeof $e=="string"?$e:""},rr))},Mn=ee(29679),dn=ee(19248),Vt=ee(96512),tn=ee(58617);const on={success:Mn.Z,warning:Vt.Z,error:dn.Z,validating:tn.Z};function _t(ze){let{children:vt,errors:$e,warnings:xt,hasFeedback:De,validateStatus:Pt,prefixCls:kt,meta:jt,noStyle:gt}=ze;const ht=`${kt}-item`,{feedbackIcons:wt}=fe.useContext(b.q3),Rt=rt($e,xt,jt,null,!!De,Pt),{isFormItemInput:In,status:On,hasFeedback:Nn,feedbackIcon:tr}=fe.useContext(b.aM),dr=fe.useMemo(()=>{var mr;let er;if(De){const Qn=De!==!0&&De.icons||wt,rr=Rt&&((mr=Qn==null?void 0:Qn({status:Rt,errors:$e,warnings:xt}))===null||mr===void 0?void 0:mr[Rt]),wr=Rt&&on[Rt];er=rr!==!1&&wr?fe.createElement("span",{className:Se()(`${ht}-feedback-icon`,`${ht}-feedback-icon-${Rt}`)},rr||fe.createElement(wr,null)):null}const Yn={status:Rt||"",errors:$e,warnings:xt,hasFeedback:!!De,feedbackIcon:er,isFormItemInput:!0};return gt&&(Yn.status=(Rt!=null?Rt:On)||"",Yn.isFormItemInput=In,Yn.hasFeedback=!!(De!=null?De:Nn),Yn.feedbackIcon=De!==void 0?Yn.feedbackIcon:tr),Yn},[Rt,De,gt,In,On]);return fe.createElement(b.aM.Provider,{value:dr},vt)}var hn=function(ze,vt){var $e={};for(var xt in ze)Object.prototype.hasOwnProperty.call(ze,xt)&&vt.indexOf(xt)<0&&($e[xt]=ze[xt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,xt=Object.getOwnPropertySymbols(ze);De<xt.length;De++)vt.indexOf(xt[De])<0&&Object.prototype.propertyIsEnumerable.call(ze,xt[De])&&($e[xt[De]]=ze[xt[De]]);return $e};function mn(ze){const{prefixCls:vt,className:$e,rootClassName:xt,style:De,help:Pt,errors:kt,warnings:jt,validateStatus:gt,meta:ht,hasFeedback:wt,hidden:Rt,children:In,fieldId:On,required:Nn,isRequired:tr,onSubItemMetaChange:dr,layout:mr}=ze,er=hn(ze,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),Yn=`${vt}-item`,{requiredMark:Qn,vertical:rr}=fe.useContext(b.q3),wr=rr||mr==="vertical",ar=fe.useRef(null),Cr=Pe(kt),qn=Pe(jt),pr=Pt!=null,vr=!!(pr||kt.length||jt.length),Kr=!!ar.current&&(0,zt.Z)(ar.current),[_r,Wr]=fe.useState(null);(0,Zt.Z)(()=>{if(vr&&ar.current){const Ir=getComputedStyle(ar.current);Wr(parseInt(Ir.marginBottom,10))}},[vr,Kr]);const Ur=Ir=>{Ir||Wr(null)},Hr=function(){let Ir=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const ro=Ir?Cr:ht.errors,ho=Ir?qn:ht.warnings;return rt(ro,ho,ht,"",!!wt,gt)}(),to=Se()(Yn,$e,xt,{[`${Yn}-with-help`]:pr||Cr.length||qn.length,[`${Yn}-has-feedback`]:Hr&&wt,[`${Yn}-has-success`]:Hr==="success",[`${Yn}-has-warning`]:Hr==="warning",[`${Yn}-has-error`]:Hr==="error",[`${Yn}-is-validating`]:Hr==="validating",[`${Yn}-hidden`]:Rt,[`${Yn}-${mr}`]:mr});return fe.createElement("div",{className:to,style:De,ref:ar},fe.createElement(en.Z,Object.assign({className:`${Yn}-row`},(0,qt.Z)(er,["_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(vn,Object.assign({htmlFor:On},ze,{requiredMark:Qn,required:Nn!=null?Nn:tr,prefixCls:vt,vertical:wr})),fe.createElement(Re,Object.assign({},ze,ht,{errors:Cr,warnings:qn,prefixCls:vt,status:Hr,help:Pt,marginBottom:_r,onErrorVisibleChanged:Ur}),fe.createElement(b.qI.Provider,{value:dr},fe.createElement(_t,{prefixCls:vt,meta:ht,errors:ht.errors,warnings:ht.warnings,hasFeedback:wt,validateStatus:Hr},In)))),!!_r&&fe.createElement("div",{className:`${Yn}-margin-offset`,style:{marginBottom:-_r}}))}const Sn="__SPLIT__",zn=null;function Wn(ze,vt){const $e=Object.keys(ze),xt=Object.keys(vt);return $e.length===xt.length&&$e.every(De=>{const Pt=ze[De],kt=vt[De];return Pt===kt||typeof Pt=="function"||typeof kt=="function"})}const Zn=fe.memo(ze=>{let{children:vt}=ze;return vt},(ze,vt)=>Wn(ze.control,vt.control)&&ze.update===vt.update&&ze.childProps.length===vt.childProps.length&&ze.childProps.every(($e,xt)=>$e===vt.childProps[xt]));function Jn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Gn(ze){const{name:vt,noStyle:$e,className:xt,dependencies:De,prefixCls:Pt,shouldUpdate:kt,rules:jt,children:gt,required:ht,label:wt,messageVariables:Rt,trigger:In="onChange",validateTrigger:On,hidden:Nn,help:tr,layout:dr}=ze,{getPrefixCls:mr}=fe.useContext(Ut.E_),{name:er}=fe.useContext(b.q3),Yn=Le(gt),Qn=typeof Yn=="function",rr=fe.useContext(b.qI),{validateTrigger:wr}=fe.useContext(st.FieldContext),ar=On!==void 0?On:wr,Cr=vt!=null,qn=mr("form",Pt),pr=(0,Ze.Z)(qn),[vr,Kr,_r]=at(qn,pr),Wr=(0,ft.ln)("Form.Item"),Ur=fe.useContext(st.ListContext),ao=fe.useRef(null),[Hr,to]=Oe({}),[Ir,ro]=(0,re.Z)(()=>Jn()),ho=kr=>{const lr=Ur==null?void 0:Ur.getKey(kr.name);if(ro(kr.destroy?Jn():kr,!0),$e&&tr!==!1&&rr){let wn=kr.name;if(kr.destroy)wn=ao.current||wn;else if(lr!==void 0){const[jn,Kn]=lr;wn=[jn].concat((0,Fe.Z)(Kn)),ao.current=wn}rr(kr,wn)}},En=(kr,lr)=>{to(wn=>{const jn=Object.assign({},wn),kn=[].concat((0,Fe.Z)(kr.name.slice(0,-1)),(0,Fe.Z)(lr)).join(Sn);return kr.destroy?delete jn[kn]:jn[kn]=kr,jn})},[Vn,zr]=fe.useMemo(()=>{const kr=(0,Fe.Z)(Ir.errors),lr=(0,Fe.Z)(Ir.warnings);return Object.values(Hr).forEach(wn=>{kr.push.apply(kr,(0,Fe.Z)(wn.errors||[])),lr.push.apply(lr,(0,Fe.Z)(wn.warnings||[]))}),[kr,lr]},[Hr,Ir.errors,Ir.warnings]),no=Be();function vo(kr,lr,wn){return $e&&!Nn?fe.createElement(_t,{prefixCls:qn,hasFeedback:ze.hasFeedback,validateStatus:ze.validateStatus,meta:Ir,errors:Vn,warnings:zr,noStyle:!0},kr):fe.createElement(mn,Object.assign({key:"row"},ze,{className:Se()(xt,_r,pr,Kr),prefixCls:qn,fieldId:lr,isRequired:wn,errors:Vn,warnings:zr,meta:Ir,onSubItemMetaChange:En,layout:dr}),kr)}if(!Cr&&!Qn&&!De)return vr(vo(Yn));let Dr={};return typeof wt=="string"?Dr.label=wt:vt&&(Dr.label=String(vt)),Rt&&(Dr=Object.assign(Object.assign({},Dr),Rt)),vr(fe.createElement(st.Field,Object.assign({},ze,{messageVariables:Dr,trigger:In,validateTrigger:ar,onMetaChange:ho}),(kr,lr,wn)=>{const jn=lt(vt).length&&lr?lr.name:[],Kn=Xt(jn,er),kn=ht!==void 0?ht:!!(jt!=null&&jt.some($n=>{if($n&&typeof $n=="object"&&$n.required&&!$n.warningOnly)return!0;if(typeof $n=="function"){const Bn=$n(wn);return(Bn==null?void 0:Bn.required)&&!(Bn!=null&&Bn.warningOnly)}return!1})),fr=Object.assign({},kr);let Er=null;if(Array.isArray(Yn)&&Cr)Er=Yn;else if(!(Qn&&(!(kt||De)||Cr))){if(!(De&&!Qn&&!Cr))if(fe.isValidElement(Yn)){const $n=Object.assign(Object.assign({},Yn.props),fr);if($n.id||($n.id=Kn),tr||Vn.length>0||zr.length>0||ze.extra){const or=[];(tr||Vn.length>0)&&or.push(`${Kn}_help`),ze.extra&&or.push(`${Kn}_extra`),$n["aria-describedby"]=or.join(" ")}Vn.length>0&&($n["aria-invalid"]="true"),kn&&($n["aria-required"]="true"),(0,le.Yr)(Yn)&&($n.ref=no(jn,Yn)),new Set([].concat((0,Fe.Z)(lt(In)),(0,Fe.Z)(lt(ar)))).forEach(or=>{$n[or]=function(){for(var eo,Oo,bo,ko,Do,Io=arguments.length,Zo=new Array(Io),Lo=0;Lo<Io;Lo++)Zo[Lo]=arguments[Lo];(bo=fr[or])===null||bo===void 0||(eo=bo).call.apply(eo,[fr].concat(Zo)),(Do=(ko=Yn.props)[or])===null||Do===void 0||(Oo=Do).call.apply(Oo,[ko].concat(Zo))}});const _n=[$n["aria-required"],$n["aria-invalid"],$n["aria-describedby"]];Er=fe.createElement(Zn,{control:fr,update:Yn,childProps:_n},(0,xe.Tm)(Yn,$n))}else Qn&&(kt||De)&&!Cr?Er=Yn(wn):Er=Yn}return vo(Er,Kn,kn)}))}const hr=Gn;hr.useStatus=nt;var cr=hr,sn=function(ze,vt){var $e={};for(var xt in ze)Object.prototype.hasOwnProperty.call(ze,xt)&&vt.indexOf(xt)<0&&($e[xt]=ze[xt]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,xt=Object.getOwnPropertySymbols(ze);De<xt.length;De++)vt.indexOf(xt[De])<0&&Object.prototype.propertyIsEnumerable.call(ze,xt[De])&&($e[xt[De]]=ze[xt[De]]);return $e},Hn=ze=>{var{prefixCls:vt,children:$e}=ze,xt=sn(ze,["prefixCls","children"]);const{getPrefixCls:De}=fe.useContext(Ut.E_),Pt=De("form",vt),kt=fe.useMemo(()=>({prefixCls:Pt,status:"error"}),[Pt]);return fe.createElement(st.List,Object.assign({},xt),(jt,gt,ht)=>fe.createElement(b.Rk.Provider,{value:kt},$e(jt.map(wt=>Object.assign(Object.assign({},wt),{fieldKey:wt.key})),gt,{errors:ht.errors,warnings:ht.warnings})))};function An(){const{form:ze}=fe.useContext(b.q3);return ze}const ct=ue;ct.Item=cr,ct.List=Hn,ct.ErrorList=Ue,ct.useForm=Ct,ct.useFormInstance=An,ct.useWatch=st.useWatch,ct.Provider=b.RV,ct.create=()=>{};var It=ct},4875:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return nn}});var b=ee(59301),Fe=ee(84105),fe=ee(87395),qe=ee(92310),Se=ee.n(qe),ge=ee(60499),Ee=ee(18642),Ze=ee(43749),Pe=ee(72190),ce=ee(42244),Xe=ee(38705),we=ee(17212);function St(){return typeof BigInt=="function"}function tt(Re){return!Re&&Re!==0&&!Number.isNaN(Re)||!String(Re).trim()}function je(Re){var pt=Re.trim(),Mt=pt.startsWith("-");Mt&&(pt=pt.slice(1)),pt=pt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),pt.startsWith(".")&&(pt="0".concat(pt));var Kt=pt||"0",cn=Kt.split("."),Pn=cn[0]||"0",Rn=cn[1]||"0";Pn==="0"&&Rn==="0"&&(Mt=!1);var Fn=Mt?"-":"";return{negative:Mt,negativeStr:Fn,trimStr:Kt,integerStr:Pn,decimalStr:Rn,fullStr:"".concat(Fn).concat(Kt)}}function Me(Re){var pt=String(Re);return!Number.isNaN(Number(pt))&&pt.includes("e")}function Ne(Re){var pt=String(Re);if(Me(Re)){var Mt=Number(pt.slice(pt.indexOf("e-")+2)),Kt=pt.match(/\.(\d+)/);return Kt!=null&&Kt[1]&&(Mt+=Kt[1].length),Mt}return pt.includes(".")&&yt(pt)?pt.length-pt.indexOf(".")-1:0}function it(Re){var pt=String(Re);if(Me(Re)){if(Re>Number.MAX_SAFE_INTEGER)return String(St()?BigInt(Re).toString():Number.MAX_SAFE_INTEGER);if(Re<Number.MIN_SAFE_INTEGER)return String(St()?BigInt(Re).toString():Number.MIN_SAFE_INTEGER);pt=Re.toFixed(Ne(pt))}return je(pt).fullStr}function yt(Re){return typeof Re=="number"?!Number.isNaN(Re):Re?/^\s*-?\d+(\.\d+)?\s*$/.test(Re)||/^\s*-?\d+\.\s*$/.test(Re)||/^\s*-?\.\d+\s*$/.test(Re):!1}var Ot=function(){function Re(pt){if((0,Xe.Z)(this,Re),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"negative",void 0),(0,Ee.Z)(this,"integer",void 0),(0,Ee.Z)(this,"decimal",void 0),(0,Ee.Z)(this,"decimalLen",void 0),(0,Ee.Z)(this,"empty",void 0),(0,Ee.Z)(this,"nan",void 0),tt(pt)){this.empty=!0;return}if(this.origin=String(pt),pt==="-"||Number.isNaN(pt)){this.nan=!0;return}var Mt=pt;if(Me(Mt)&&(Mt=Number(Mt)),Mt=typeof Mt=="string"?Mt:it(Mt),yt(Mt)){var Kt=je(Mt);this.negative=Kt.negative;var cn=Kt.trimStr.split(".");this.integer=BigInt(cn[0]);var Pn=cn[1]||"0";this.decimal=BigInt(Pn),this.decimalLen=Pn.length}else this.nan=!0}return(0,we.Z)(Re,[{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(Mt){var Kt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Mt,"0"));return BigInt(Kt)}},{key:"negate",value:function(){var Mt=new Re(this.toString());return Mt.negative=!Mt.negative,Mt}},{key:"cal",value:function(Mt,Kt,cn){var Pn=Math.max(this.getDecimalStr().length,Mt.getDecimalStr().length),Rn=this.alignDecimal(Pn),Fn=Mt.alignDecimal(Pn),vn=Kt(Rn,Fn).toString(),Mn=cn(Pn),dn=je(vn),Vt=dn.negativeStr,tn=dn.trimStr,on="".concat(Vt).concat(tn.padStart(Mn+1,"0"));return new Re("".concat(on.slice(0,-Mn),".").concat(on.slice(-Mn)))}},{key:"add",value:function(Mt){if(this.isInvalidate())return new Re(Mt);var Kt=new Re(Mt);return Kt.isInvalidate()?this:this.cal(Kt,function(cn,Pn){return cn+Pn},function(cn){return cn})}},{key:"multi",value:function(Mt){var Kt=new Re(Mt);return this.isInvalidate()||Kt.isInvalidate()?new Re(NaN):this.cal(Kt,function(cn,Pn){return cn*Pn},function(cn){return cn*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(Mt){return this.toString()===(Mt==null?void 0:Mt.toString())}},{key:"lessEquals",value:function(Mt){return this.add(Mt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Mt?this.isInvalidate()?"":je("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Re}(),We=function(){function Re(pt){if((0,Xe.Z)(this,Re),(0,Ee.Z)(this,"origin",""),(0,Ee.Z)(this,"number",void 0),(0,Ee.Z)(this,"empty",void 0),tt(pt)){this.empty=!0;return}this.origin=String(pt),this.number=Number(pt)}return(0,we.Z)(Re,[{key:"negate",value:function(){return new Re(-this.toNumber())}},{key:"add",value:function(Mt){if(this.isInvalidate())return new Re(Mt);var Kt=Number(Mt);if(Number.isNaN(Kt))return this;var cn=this.number+Kt;if(cn>Number.MAX_SAFE_INTEGER)return new Re(Number.MAX_SAFE_INTEGER);if(cn<Number.MIN_SAFE_INTEGER)return new Re(Number.MIN_SAFE_INTEGER);var Pn=Math.max(Ne(this.number),Ne(Kt));return new Re(cn.toFixed(Pn))}},{key:"multi",value:function(Mt){var Kt=Number(Mt);if(this.isInvalidate()||Number.isNaN(Kt))return new Re(NaN);var cn=this.number*Kt;if(cn>Number.MAX_SAFE_INTEGER)return new Re(Number.MAX_SAFE_INTEGER);if(cn<Number.MIN_SAFE_INTEGER)return new Re(Number.MIN_SAFE_INTEGER);var Pn=Math.max(Ne(this.number),Ne(Kt));return new Re(cn.toFixed(Pn))}},{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(Mt){return this.toNumber()===(Mt==null?void 0:Mt.toNumber())}},{key:"lessEquals",value:function(Mt){return this.add(Mt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Mt?this.isInvalidate()?"":it(this.number):this.origin}}]),Re}();function Ie(Re){return St()?new Ot(Re):new We(Re)}function He(Re,pt,Mt){var Kt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Re==="")return"";var cn=je(Re),Pn=cn.negativeStr,Rn=cn.integerStr,Fn=cn.decimalStr,vn="".concat(pt).concat(Fn),Mn="".concat(Pn).concat(Rn);if(Mt>=0){var dn=Number(Fn[Mt]);if(dn>=5&&!Kt){var Vt=Ie(Re).add("".concat(Pn,"0.").concat("0".repeat(Mt)).concat(10-dn));return He(Vt.toString(),pt,Mt,Kt)}return Mt===0?Mn:"".concat(Mn).concat(pt).concat(Fn.padEnd(Mt,"0").slice(0,Mt))}return vn===".0"?Mn:"".concat(Mn).concat(vn)}var Ge=Ie,Et=ee(36901),ut=ee(34280);function et(Re,pt){return typeof Proxy!="undefined"&&Re?new Proxy(Re,{get:function(Kt,cn){if(pt[cn])return pt[cn];var Pn=Kt[cn];return typeof Pn=="function"?Pn.bind(Kt):Pn}}):Re}var ot=ee(8654),Ce=ee(48736);function at(Re,pt){var Mt=(0,b.useRef)(null);function Kt(){try{var Pn=Re.selectionStart,Rn=Re.selectionEnd,Fn=Re.value,vn=Fn.substring(0,Pn),Mn=Fn.substring(Rn);Mt.current={start:Pn,end:Rn,value:Fn,beforeTxt:vn,afterTxt:Mn}}catch(dn){}}function cn(){if(Re&&Mt.current&&pt)try{var Pn=Re.value,Rn=Mt.current,Fn=Rn.beforeTxt,vn=Rn.afterTxt,Mn=Rn.start,dn=Pn.length;if(Pn.startsWith(Fn))dn=Fn.length;else if(Pn.endsWith(vn))dn=Pn.length-Mt.current.afterTxt.length;else{var Vt=Fn[Mn-1],tn=Pn.indexOf(Vt,Mn-1);tn!==-1&&(dn=tn+1)}Re.setSelectionRange(dn,dn)}catch(on){(0,Ce.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(on.message))}}return[Kt,cn]}var Ve=ee(49658),de=function(){var pt=(0,b.useState)(!1),Mt=(0,Pe.Z)(pt,2),Kt=Mt[0],cn=Mt[1];return(0,ut.Z)(function(){cn((0,Ve.Z)())},[]),Kt},Dt=de,Ue=ee(16089),st=200,Ut=600;function Te(Re){var pt=Re.prefixCls,Mt=Re.upNode,Kt=Re.downNode,cn=Re.upDisabled,Pn=Re.downDisabled,Rn=Re.onStep,Fn=b.useRef(),vn=b.useRef([]),Mn=b.useRef();Mn.current=Rn;var dn=function(){clearTimeout(Fn.current)},Vt=function(Wn,Zn){Wn.preventDefault(),dn(),Mn.current(Zn);function Jn(){Mn.current(Zn),Fn.current=setTimeout(Jn,st)}Fn.current=setTimeout(Jn,Ut)};b.useEffect(function(){return function(){dn(),vn.current.forEach(function(zn){return Ue.Z.cancel(zn)})}},[]);var tn=Dt();if(tn)return null;var on="".concat(pt,"-handler"),_t=Se()(on,"".concat(on,"-up"),(0,Ee.Z)({},"".concat(on,"-up-disabled"),cn)),hn=Se()(on,"".concat(on,"-down"),(0,Ee.Z)({},"".concat(on,"-down-disabled"),Pn)),mn=function(){return vn.current.push((0,Ue.Z)(dn))},Sn={unselectable:"on",role:"button",onMouseUp:mn,onMouseLeave:mn};return b.createElement("div",{className:"".concat(on,"-wrap")},b.createElement("span",(0,ge.Z)({},Sn,{onMouseDown:function(Wn){Vt(Wn,!0)},"aria-label":"Increase Value","aria-disabled":cn,className:_t}),Mt||b.createElement("span",{unselectable:"on",className:"".concat(pt,"-handler-up-inner")})),b.createElement("span",(0,ge.Z)({},Sn,{onMouseDown:function(Wn){Vt(Wn,!1)},"aria-label":"Decrease Value","aria-disabled":Pn,className:hn}),Kt||b.createElement("span",{unselectable:"on",className:"".concat(pt,"-handler-down-inner")})))}function he(Re){var pt=typeof Re=="number"?it(Re):je(Re).fullStr,Mt=pt.includes(".");return Mt?je(pt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Re+"0"}var Nt=ee(30292),Jt=function(){var Re=(0,b.useRef)(0),pt=function(){Ue.Z.cancel(Re.current)};return(0,b.useEffect)(function(){return pt},[]),function(Mt){pt(),Re.current=(0,Ue.Z)(function(){Mt()})}},Ft=["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"],ye=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ye=function(pt,Mt){return pt||Mt.isEmpty()?Mt.toString():Mt.toNumber()},lt=function(pt){var Mt=Ge(pt);return Mt.isInvalidate()?null:Mt},Xt=b.forwardRef(function(Re,pt){var Mt=Re.prefixCls,Kt=Re.className,cn=Re.style,Pn=Re.min,Rn=Re.max,Fn=Re.step,vn=Fn===void 0?1:Fn,Mn=Re.defaultValue,dn=Re.value,Vt=Re.disabled,tn=Re.readOnly,on=Re.upHandler,_t=Re.downHandler,hn=Re.keyboard,mn=Re.changeOnWheel,Sn=mn===void 0?!1:mn,zn=Re.controls,Wn=zn===void 0?!0:zn,Zn=Re.classNames,Jn=Re.stringMode,Gn=Re.parser,hr=Re.formatter,cr=Re.precision,sn=Re.decimalSeparator,yn=Re.onChange,Hn=Re.onInput,An=Re.onPressEnter,ct=Re.onStep,It=Re.changeOnBlur,ze=It===void 0?!0:It,vt=Re.domRef,$e=(0,ce.Z)(Re,Ft),xt="".concat(Mt,"-input"),De=b.useRef(null),Pt=b.useState(!1),kt=(0,Pe.Z)(Pt,2),jt=kt[0],gt=kt[1],ht=b.useRef(!1),wt=b.useRef(!1),Rt=b.useRef(!1),In=b.useState(function(){return Ge(dn!=null?dn:Mn)}),On=(0,Pe.Z)(In,2),Nn=On[0],tr=On[1];function dr(Kn){dn===void 0&&tr(Kn)}var mr=b.useCallback(function(Kn,kn){if(!kn)return cr>=0?cr:Math.max(Ne(Kn),Ne(vn))},[cr,vn]),er=b.useCallback(function(Kn){var kn=String(Kn);if(Gn)return Gn(kn);var fr=kn;return sn&&(fr=fr.replace(sn,".")),fr.replace(/[^\w.-]+/g,"")},[Gn,sn]),Yn=b.useRef(""),Qn=b.useCallback(function(Kn,kn){if(hr)return hr(Kn,{userTyping:kn,input:String(Yn.current)});var fr=typeof Kn=="number"?it(Kn):Kn;if(!kn){var Er=mr(fr,kn);if(yt(fr)&&(sn||Er>=0)){var $n=sn||".";fr=He(fr,$n,Er)}}return fr},[hr,mr,sn]),rr=b.useState(function(){var Kn=Mn!=null?Mn:dn;return Nn.isInvalidate()&&["string","number"].includes((0,Ze.Z)(Kn))?Number.isNaN(Kn)?"":Kn:Qn(Nn.toString(),!1)}),wr=(0,Pe.Z)(rr,2),ar=wr[0],Cr=wr[1];Yn.current=ar;function qn(Kn,kn){Cr(Qn(Kn.isInvalidate()?Kn.toString(!1):Kn.toString(!kn),kn))}var pr=b.useMemo(function(){return lt(Rn)},[Rn,cr]),vr=b.useMemo(function(){return lt(Pn)},[Pn,cr]),Kr=b.useMemo(function(){return!pr||!Nn||Nn.isInvalidate()?!1:pr.lessEquals(Nn)},[pr,Nn]),_r=b.useMemo(function(){return!vr||!Nn||Nn.isInvalidate()?!1:Nn.lessEquals(vr)},[vr,Nn]),Wr=at(De.current,jt),Ur=(0,Pe.Z)(Wr,2),ao=Ur[0],Hr=Ur[1],to=function(kn){return pr&&!kn.lessEquals(pr)?pr:vr&&!vr.lessEquals(kn)?vr:null},Ir=function(kn){return!to(kn)},ro=function(kn,fr){var Er=kn,$n=Ir(Er)||Er.isEmpty();if(!Er.isEmpty()&&!fr&&(Er=to(Er)||Er,$n=!0),!tn&&!Vt&&$n){var Bn=Er.toString(),_n=mr(Bn,fr);return _n>=0&&(Er=Ge(He(Bn,".",_n)),Ir(Er)||(Er=Ge(He(Bn,".",_n,!0)))),Er.equals(Nn)||(dr(Er),yn==null||yn(Er.isEmpty()?null:Ye(Jn,Er)),dn===void 0&&qn(Er,fr)),Er}return Nn},ho=Jt(),En=function Kn(kn){if(ao(),Yn.current=kn,Cr(kn),!wt.current){var fr=er(kn),Er=Ge(fr);Er.isNaN()||ro(Er,!0)}Hn==null||Hn(kn),ho(function(){var $n=kn;Gn||($n=kn.replace(/。/g,".")),$n!==kn&&Kn($n)})},Vn=function(){wt.current=!0},zr=function(){wt.current=!1,En(De.current.value)},no=function(kn){En(kn.target.value)},vo=function(kn){var fr;if(!(kn&&Kr||!kn&&_r)){ht.current=!1;var Er=Ge(Rt.current?he(vn):vn);kn||(Er=Er.negate());var $n=(Nn||Ge(0)).add(Er.toString()),Bn=ro($n,!1);ct==null||ct(Ye(Jn,Bn),{offset:Rt.current?he(vn):vn,type:kn?"up":"down"}),(fr=De.current)===null||fr===void 0||fr.focus()}},Dr=function(kn){var fr=Ge(er(ar)),Er;fr.isNaN()?Er=ro(Nn,kn):Er=ro(fr,kn),dn!==void 0?qn(Nn,!1):Er.isNaN()||qn(Er,!1)},kr=function(){ht.current=!0},lr=function(kn){var fr=kn.key,Er=kn.shiftKey;ht.current=!0,Rt.current=Er,fr==="Enter"&&(wt.current||(ht.current=!1),Dr(!1),An==null||An(kn)),hn!==!1&&!wt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(fr)&&(vo(fr==="Up"||fr==="ArrowUp"),kn.preventDefault())},wn=function(){ht.current=!1,Rt.current=!1};b.useEffect(function(){if(Sn&&jt){var Kn=function(Er){vo(Er.deltaY<0),Er.preventDefault()},kn=De.current;if(kn)return kn.addEventListener("wheel",Kn,{passive:!1}),function(){return kn.removeEventListener("wheel",Kn)}}});var jn=function(){ze&&Dr(!1),gt(!1),ht.current=!1};return(0,ut.o)(function(){Nn.isInvalidate()||qn(Nn,!1)},[cr,hr]),(0,ut.o)(function(){var Kn=Ge(dn);tr(Kn);var kn=Ge(er(ar));(!Kn.equals(kn)||!ht.current||hr)&&qn(Kn,ht.current)},[dn]),(0,ut.o)(function(){hr&&Hr()},[ar]),b.createElement("div",{ref:vt,className:Se()(Mt,Kt,(0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)((0,Ee.Z)({},"".concat(Mt,"-focused"),jt),"".concat(Mt,"-disabled"),Vt),"".concat(Mt,"-readonly"),tn),"".concat(Mt,"-not-a-number"),Nn.isNaN()),"".concat(Mt,"-out-of-range"),!Nn.isInvalidate()&&!Ir(Nn))),style:cn,onFocus:function(){gt(!0)},onBlur:jn,onKeyDown:lr,onKeyUp:wn,onCompositionStart:Vn,onCompositionEnd:zr,onBeforeInput:kr},Wn&&b.createElement(Te,{prefixCls:Mt,upNode:on,downNode:_t,upDisabled:Kr,downDisabled:_r,onStep:vo}),b.createElement("div",{className:"".concat(xt,"-wrap")},b.createElement("input",(0,ge.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Pn,"aria-valuemax":Rn,"aria-valuenow":Nn.isInvalidate()?null:Nn.toString(),step:vn},$e,{ref:(0,ot.sQ)(De,pt),className:xt,value:ar,onChange:no,disabled:Vt,readOnly:tn}))))}),rt=b.forwardRef(function(Re,pt){var Mt=Re.disabled,Kt=Re.style,cn=Re.prefixCls,Pn=cn===void 0?"rc-input-number":cn,Rn=Re.value,Fn=Re.prefix,vn=Re.suffix,Mn=Re.addonBefore,dn=Re.addonAfter,Vt=Re.className,tn=Re.classNames,on=(0,ce.Z)(Re,ye),_t=b.useRef(null),hn=b.useRef(null),mn=b.useRef(null),Sn=function(Wn){mn.current&&(0,Nt.nH)(mn.current,Wn)};return b.useImperativeHandle(pt,function(){return et(mn.current,{focus:Sn,nativeElement:_t.current.nativeElement||hn.current})}),b.createElement(Et.BaseInput,{className:Vt,triggerFocus:Sn,prefixCls:Pn,value:Rn,disabled:Mt,style:Kt,prefix:Fn,suffix:vn,addonAfter:dn,addonBefore:Mn,classNames:tn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:_t},b.createElement(Xt,(0,ge.Z)({prefixCls:Pn,disabled:Mt,ref:mn,domRef:hn,className:tn==null?void 0:tn.input},on)))}),At=rt,_e=At,Yt=ee(62487),Ct=ee(82855),ae=ee(48755),ne=ee(60840),te=ee(2171),ie=ee(83397),ue=ee(31756),re=ee(56553),le=ee(24971),xe=ee(70045),ft=ee(36237),Ae=ee(53075),Le=ee(64910),Qe=ee(39082),nt=ee(63356),bt=ee(56119),Oe=ee(16931),Be=ee(51636),zt=ee(17835);const Zt=Re=>{var pt;const Mt=(pt=Re.handleVisible)!==null&&pt!==void 0?pt:"auto",Kt=Re.controlHeightSM-Re.lineWidth*2;return Object.assign(Object.assign({},(0,Le.T)(Re)),{controlWidth:90,handleWidth:Kt,handleFontSize:Re.fontSize/2,handleVisible:Mt,handleActiveBg:Re.colorFillAlter,handleBg:Re.colorBgContainer,filledHandleBg:new zt.FastColor(Re.colorFillSecondary).onBackground(Re.colorBgContainer).toHexString(),handleHoverColor:Re.colorPrimary,handleBorderColor:Re.colorBorder,handleOpacity:Mt===!0?1:0,handleVisibleWidth:Mt===!0?Kt:0})},qt=(Re,pt)=>{let{componentCls:Mt,borderRadiusSM:Kt,borderRadiusLG:cn}=Re;const Pn=pt==="lg"?cn:Kt;return{[`&-${pt}`]:{[`${Mt}-handler-wrap`]:{borderStartEndRadius:Pn,borderEndEndRadius:Pn},[`${Mt}-handler-up`]:{borderStartEndRadius:Pn},[`${Mt}-handler-down`]:{borderEndEndRadius:Pn}}}},en=Re=>{const{componentCls:pt,lineWidth:Mt,lineType:Kt,borderRadius:cn,inputFontSizeSM:Pn,inputFontSizeLG:Rn,controlHeightLG:Fn,controlHeightSM:vn,colorError:Mn,paddingInlineSM:dn,paddingBlockSM:Vt,paddingBlockLG:tn,paddingInlineLG:on,colorTextDescription:_t,motionDurationMid:hn,handleHoverColor:mn,handleOpacity:Sn,paddingInline:zn,paddingBlock:Wn,handleBg:Zn,handleActiveBg:Jn,colorTextDisabled:Gn,borderRadiusSM:hr,borderRadiusLG:cr,controlWidth:sn,handleBorderColor:yn,filledHandleBg:Hn,lineHeightLG:An,calc:ct}=Re;return[{[pt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(Re)),(0,Ae.ik)(Re)),{display:"inline-block",width:sn,margin:0,padding:0,borderRadius:cn}),(0,Qe.qG)(Re,{[`${pt}-handler-wrap`]:{background:Zn,[`${pt}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(Mt)} ${Kt} ${yn}`}}})),(0,Qe.H8)(Re,{[`${pt}-handler-wrap`]:{background:Hn,[`${pt}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(Mt)} ${Kt} ${yn}`}},"&:focus-within":{[`${pt}-handler-wrap`]:{background:Zn}}})),(0,Qe.vc)(Re,{[`${pt}-handler-wrap`]:{background:Zn,[`${pt}-handler-down`]:{borderBlockStart:`${(0,ft.unit)(Mt)} ${Kt} ${yn}`}}})),(0,Qe.Mu)(Re)),{"&-rtl":{direction:"rtl",[`${pt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Rn,lineHeight:An,borderRadius:cr,[`input${pt}-input`]:{height:ct(Fn).sub(ct(Mt).mul(2)).equal(),padding:`${(0,ft.unit)(tn)} ${(0,ft.unit)(on)}`}},"&-sm":{padding:0,fontSize:Pn,borderRadius:hr,[`input${pt}-input`]:{height:ct(vn).sub(ct(Mt).mul(2)).equal(),padding:`${(0,ft.unit)(Vt)} ${(0,ft.unit)(dn)}`}},"&-out-of-range":{[`${pt}-input-wrap`]:{input:{color:Mn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(Re)),(0,Ae.s7)(Re)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${pt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${pt}-group-addon`]:{borderRadius:cr,fontSize:Re.fontSizeLG}},"&-sm":{[`${pt}-group-addon`]:{borderRadius:hr}}},(0,Qe.ir)(Re)),(0,Qe.S5)(Re)),{[`&:not(${pt}-compact-first-item):not(${pt}-compact-last-item)${pt}-compact-item`]:{[`${pt}, ${pt}-group-addon`]:{borderRadius:0}},[`&:not(${pt}-compact-last-item)${pt}-compact-first-item`]:{[`${pt}, ${pt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${pt}-compact-first-item)${pt}-compact-last-item`]:{[`${pt}, ${pt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${pt}-input`]:{cursor:"not-allowed"},[pt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,nt.Wf)(Re)),{width:"100%",padding:`${(0,ft.unit)(Wn)} ${(0,ft.unit)(zn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:cn,outline:0,transition:`all ${hn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Ae.nz)(Re.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${pt}-handler-wrap, &-focused ${pt}-handler-wrap`]:{width:Re.handleWidth,opacity:1}})},{[pt]:Object.assign(Object.assign(Object.assign({[`${pt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Re.handleVisibleWidth,opacity:Sn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:cn,borderEndEndRadius:cn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${hn}`,overflow:"hidden",[`${pt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${pt}-handler-up-inner,
${pt}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Re.handleFontSize}}},[`${pt}-handler`]:{height:"50%",overflow:"hidden",color:_t,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ft.unit)(Mt)} ${Kt} ${yn}`,transition:`all ${hn} linear`,"&:active":{background:Jn},"&:hover":{height:"60%",[`
${pt}-handler-up-inner,
${pt}-handler-down-inner
`]:{color:mn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,nt.Ro)()),{color:_t,transition:`all ${hn} linear`,userSelect:"none"})},[`${pt}-handler-up`]:{borderStartEndRadius:cn},[`${pt}-handler-down`]:{borderEndEndRadius:cn}},qt(Re,"lg")),qt(Re,"sm")),{"&-disabled, &-readonly":{[`${pt}-handler-wrap`]:{display:"none"},[`${pt}-input`]:{color:"inherit"}},[`
${pt}-handler-up-disabled,
${pt}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${pt}-handler-up-disabled:hover &-handler-up-inner,
${pt}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Gn}})}]},Tt=Re=>{const{componentCls:pt,paddingBlock:Mt,paddingInline:Kt,inputAffixPadding:cn,controlWidth:Pn,borderRadiusLG:Rn,borderRadiusSM:Fn,paddingInlineLG:vn,paddingInlineSM:Mn,paddingBlockLG:dn,paddingBlockSM:Vt,motionDurationMid:tn}=Re;return{[`${pt}-affix-wrapper`]:Object.assign(Object.assign({[`input${pt}-input`]:{padding:`${(0,ft.unit)(Mt)} 0`}},(0,Ae.ik)(Re)),{position:"relative",display:"inline-flex",alignItems:"center",width:Pn,padding:0,paddingInlineStart:Kt,"&-lg":{borderRadius:Rn,paddingInlineStart:vn,[`input${pt}-input`]:{padding:`${(0,ft.unit)(dn)} 0`}},"&-sm":{borderRadius:Fn,paddingInlineStart:Mn,[`input${pt}-input`]:{padding:`${(0,ft.unit)(Vt)} 0`}},[`&:not(${pt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${pt}-disabled`]:{background:"transparent"},[`> div${pt}`]:{width:"100%",border:"none",outline:"none",[`&${pt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${pt}-handler-wrap`]:{zIndex:2},[pt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:cn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Kt,marginInlineStart:cn,transition:`margin ${tn}`}},[`&:hover ${pt}-handler-wrap, &-focused ${pt}-handler-wrap`]:{width:Re.handleWidth,opacity:1},[`&:not(${pt}-affix-wrapper-without-controls):hover ${pt}-suffix`]:{marginInlineEnd:Re.calc(Re.handleWidth).add(Kt).equal()}})}};var an=(0,Oe.I$)("InputNumber",Re=>{const pt=(0,Be.mergeToken)(Re,(0,Le.e)(Re));return[en(pt),Tt(pt),(0,bt.c)(pt)]},Zt,{unitless:{handleOpacity:!0}}),Wt=function(Re,pt){var Mt={};for(var Kt in Re)Object.prototype.hasOwnProperty.call(Re,Kt)&&pt.indexOf(Kt)<0&&(Mt[Kt]=Re[Kt]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var cn=0,Kt=Object.getOwnPropertySymbols(Re);cn<Kt.length;cn++)pt.indexOf(Kt[cn])<0&&Object.prototype.propertyIsEnumerable.call(Re,Kt[cn])&&(Mt[Kt[cn]]=Re[Kt[cn]]);return Mt};const Ke=b.forwardRef((Re,pt)=>{const{getPrefixCls:Mt,direction:Kt}=b.useContext(ae.E_),cn=b.useRef(null);b.useImperativeHandle(pt,()=>cn.current);const{className:Pn,rootClassName:Rn,size:Fn,disabled:vn,prefixCls:Mn,addonBefore:dn,addonAfter:Vt,prefix:tn,suffix:on,bordered:_t,readOnly:hn,status:mn,controls:Sn,variant:zn}=Re,Wn=Wt(Re,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Zn=Mt("input-number",Mn),Jn=(0,ie.Z)(Zn),[Gn,hr,cr]=an(Zn,Jn),{compactSize:sn,compactItemClassnames:yn}=(0,xe.ri)(Zn,Kt);let Hn=b.createElement(fe.Z,{className:`${Zn}-handler-up-inner`}),An=b.createElement(Fe.Z,{className:`${Zn}-handler-down-inner`});const ct=typeof Sn=="boolean"?Sn:void 0;typeof Sn=="object"&&(Hn=typeof Sn.upIcon=="undefined"?Hn:b.createElement("span",{className:`${Zn}-handler-up-inner`},Sn.upIcon),An=typeof Sn.downIcon=="undefined"?An:b.createElement("span",{className:`${Zn}-handler-down-inner`},Sn.downIcon));const{hasFeedback:It,status:ze,isFormItemInput:vt,feedbackIcon:$e}=b.useContext(re.aM),xt=(0,Ct.F)(ze,mn),De=(0,ue.Z)(On=>{var Nn;return(Nn=Fn!=null?Fn:sn)!==null&&Nn!==void 0?Nn:On}),Pt=b.useContext(te.Z),kt=vn!=null?vn:Pt,[jt,gt]=(0,le.Z)("inputNumber",zn,_t),ht=It&&b.createElement(b.Fragment,null,$e),wt=Se()({[`${Zn}-lg`]:De==="large",[`${Zn}-sm`]:De==="small",[`${Zn}-rtl`]:Kt==="rtl",[`${Zn}-in-form-item`]:vt},hr),Rt=`${Zn}-group`,In=b.createElement(_e,Object.assign({ref:cn,disabled:kt,className:Se()(cr,Jn,Pn,Rn,yn),upHandler:Hn,downHandler:An,prefixCls:Zn,readOnly:hn,controls:ct,prefix:tn,suffix:ht||on,addonBefore:dn&&b.createElement(Yt.Z,{form:!0,space:!0},dn),addonAfter:Vt&&b.createElement(Yt.Z,{form:!0,space:!0},Vt),classNames:{input:wt,variant:Se()({[`${Zn}-${jt}`]:gt},(0,Ct.Z)(Zn,xt,It)),affixWrapper:Se()({[`${Zn}-affix-wrapper-sm`]:De==="small",[`${Zn}-affix-wrapper-lg`]:De==="large",[`${Zn}-affix-wrapper-rtl`]:Kt==="rtl",[`${Zn}-affix-wrapper-without-controls`]:Sn===!1||kt},hr),wrapper:Se()({[`${Rt}-rtl`]:Kt==="rtl"},hr),groupWrapper:Se()({[`${Zn}-group-wrapper-sm`]:De==="small",[`${Zn}-group-wrapper-lg`]:De==="large",[`${Zn}-group-wrapper-rtl`]:Kt==="rtl",[`${Zn}-group-wrapper-${jt}`]:gt},(0,Ct.Z)(`${Zn}-group-wrapper`,xt,It),hr)}},Wn));return Gn(In)}),mt=Ke,$t=Re=>b.createElement(ne.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},b.createElement(Ke,Object.assign({},Re)));mt._InternalPanelDoNotUseOrYouWillBeFired=$t;var nn=mt},49397:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return We}});var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(36901),Se=ee(8654),ge=ee(62487),Ee=ee(86013),Ze=ee(82855),Pe=ee(48755),ce=ee(2171),Xe=ee(83397),we=ee(31756),St=ee(56553),tt=ee(24971),je=ee(70045),Me=ee(23826),Ne=ee(53075);function it(Ie){return!!(Ie.prefix||Ie.suffix||Ie.allowClear||Ie.showCount)}var yt=function(Ie,He){var Ge={};for(var Et in Ie)Object.prototype.hasOwnProperty.call(Ie,Et)&&He.indexOf(Et)<0&&(Ge[Et]=Ie[Et]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,Et=Object.getOwnPropertySymbols(Ie);ut<Et.length;ut++)He.indexOf(Et[ut])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Et[ut])&&(Ge[Et[ut]]=Ie[Et[ut]]);return Ge},We=(0,b.forwardRef)((Ie,He)=>{const{prefixCls:Ge,bordered:Et=!0,status:ut,size:et,disabled:ot,onBlur:Ce,onFocus:at,suffix:Ve,allowClear:de,addonAfter:Dt,addonBefore:Ue,className:st,style:Ut,styles:Te,rootClassName:he,onChange:Nt,classNames:Jt,variant:Ft}=Ie,ye=yt(Ie,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ye,direction:lt,allowClear:Xt,autoComplete:rt,className:At,style:_e,classNames:Yt,styles:Ct}=(0,Pe.dj)("input"),ae=Ye("input",Ge),ne=(0,b.useRef)(null),te=(0,Xe.Z)(ae),[ie,ue,re]=(0,Ne.TI)(ae,he),[le]=(0,Ne.ZP)(ae,te),{compactSize:xe,compactItemClassnames:ft}=(0,je.ri)(ae,lt),Ae=(0,we.Z)(nn=>{var Re;return(Re=et!=null?et:xe)!==null&&Re!==void 0?Re:nn}),Le=b.useContext(ce.Z),Qe=ot!=null?ot:Le,{status:nt,hasFeedback:bt,feedbackIcon:Oe}=(0,b.useContext)(St.aM),Be=(0,Ze.F)(nt,ut),zt=it(Ie)||!!bt,Zt=(0,b.useRef)(zt),qt=(0,Me.Z)(ne,!0),en=nn=>{qt(),Ce==null||Ce(nn)},Tt=nn=>{qt(),at==null||at(nn)},an=nn=>{qt(),Nt==null||Nt(nn)},Wt=(bt||Ve)&&b.createElement(b.Fragment,null,Ve,bt&&Oe),Ke=(0,Ee.Z)(de!=null?de:Xt),[mt,$t]=(0,tt.Z)("input",Ft,Et);return ie(le(b.createElement(qe.default,Object.assign({ref:(0,Se.sQ)(He,ne),prefixCls:ae,autoComplete:rt},ye,{disabled:Qe,onBlur:en,onFocus:Tt,style:Object.assign(Object.assign({},_e),Ut),styles:Object.assign(Object.assign({},Ct),Te),suffix:Wt,allowClear:Ke,className:fe()(st,he,re,te,ft,At),onChange:an,addonBefore:Ue&&b.createElement(ge.Z,{form:!0,space:!0},Ue),addonAfter:Dt&&b.createElement(ge.Z,{form:!0,space:!0},Dt),classNames:Object.assign(Object.assign(Object.assign({},Jt),Yt),{input:fe()({[`${ae}-sm`]:Ae==="small",[`${ae}-lg`]:Ae==="large",[`${ae}-rtl`]:lt==="rtl"},Jt==null?void 0:Jt.input,Yt.input,ue),variant:fe()({[`${ae}-${mt}`]:$t},(0,Ze.Z)(ae,Be)),affixWrapper:fe()({[`${ae}-affix-wrapper-sm`]:Ae==="small",[`${ae}-affix-wrapper-lg`]:Ae==="large",[`${ae}-affix-wrapper-rtl`]:lt==="rtl"},ue),wrapper:fe()({[`${ae}-group-rtl`]:lt==="rtl"},ue),groupWrapper:fe()({[`${ae}-group-wrapper-sm`]:Ae==="small",[`${ae}-group-wrapper-lg`]:Ae==="large",[`${ae}-group-wrapper-rtl`]:lt==="rtl",[`${ae}-group-wrapper-${mt}`]:$t},(0,Ze.Z)(`${ae}-group-wrapper`,Be,bt),ue)})}))))})},79809:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return He}});var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(22711),Se=ee(86013),ge=ee(82855),Ee=ee(48755),Ze=ee(2171),Pe=ee(83397),ce=ee(31756),Xe=ee(56553),we=ee(24971),St=ee(70045),tt=ee(30292),je=ee(53075),Me=ee(16931),Ne=ee(51636),it=ee(64910);const yt=Ge=>{const{componentCls:Et,paddingLG:ut}=Ge,et=`${Et}-textarea`;return{[`textarea${Et}`]:{maxWidth:"100%",height:"auto",minHeight:Ge.controlHeight,lineHeight:Ge.lineHeight,verticalAlign:"bottom",transition:`all ${Ge.motionDurationSlow}`,resize:"vertical",[`&${Et}-mouse-active`]:{transition:`all ${Ge.motionDurationSlow}, height 0s, width 0s`}},[`${Et}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[et]:{position:"relative","&-show-count":{[`> ${Et}`]:{height:"100%"},[`${Et}-data-count`]:{position:"absolute",bottom:Ge.calc(Ge.fontSize).mul(Ge.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ge.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${Et},
&-affix-wrapper${et}-has-feedback ${Et}
`]:{paddingInlineEnd:ut},[`&-affix-wrapper${Et}-affix-wrapper`]:{padding:0,[`> textarea${Et}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ge.calc(Ge.controlHeight).sub(Ge.calc(Ge.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Et}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Et}-clear-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingInline,insetBlockStart:Ge.paddingXS},[`${et}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ge.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Et}-affix-wrapper-sm`]:{[`${Et}-suffix`]:{[`${Et}-clear-icon`]:{insetInlineEnd:Ge.paddingInlineSM}}}}}};var Ot=(0,Me.I$)(["Input","TextArea"],Ge=>{const Et=(0,Ne.mergeToken)(Ge,(0,it.e)(Ge));return[yt(Et)]},it.T,{resetFont:!1}),We=function(Ge,Et){var ut={};for(var et in Ge)Object.prototype.hasOwnProperty.call(Ge,et)&&Et.indexOf(et)<0&&(ut[et]=Ge[et]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,et=Object.getOwnPropertySymbols(Ge);ot<et.length;ot++)Et.indexOf(et[ot])<0&&Object.prototype.propertyIsEnumerable.call(Ge,et[ot])&&(ut[et[ot]]=Ge[et[ot]]);return ut},He=(0,b.forwardRef)((Ge,Et)=>{var ut;const{prefixCls:et,bordered:ot=!0,size:Ce,disabled:at,status:Ve,allowClear:de,classNames:Dt,rootClassName:Ue,className:st,style:Ut,styles:Te,variant:he,showCount:Nt,onMouseDown:Jt,onResize:Ft}=Ge,ye=We(Ge,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ye,direction:lt,allowClear:Xt,autoComplete:rt,className:At,style:_e,classNames:Yt,styles:Ct}=(0,Ee.dj)("textArea"),ae=b.useContext(Ze.Z),ne=at!=null?at:ae,{status:te,hasFeedback:ie,feedbackIcon:ue}=b.useContext(Xe.aM),re=(0,ge.F)(te,Ve),le=b.useRef(null);b.useImperativeHandle(Et,()=>{var $t;return{resizableTextArea:($t=le.current)===null||$t===void 0?void 0:$t.resizableTextArea,focus:nn=>{var Re,pt;(0,tt.nH)((pt=(Re=le.current)===null||Re===void 0?void 0:Re.resizableTextArea)===null||pt===void 0?void 0:pt.textArea,nn)},blur:()=>{var nn;return(nn=le.current)===null||nn===void 0?void 0:nn.blur()}}});const xe=Ye("input",et),ft=(0,Pe.Z)(xe),[Ae,Le,Qe]=(0,je.TI)(xe,Ue),[nt]=Ot(xe,ft),{compactSize:bt,compactItemClassnames:Oe}=(0,St.ri)(xe,lt),Be=(0,ce.Z)($t=>{var nn;return(nn=Ce!=null?Ce:bt)!==null&&nn!==void 0?nn:$t}),[zt,Zt]=(0,we.Z)("textArea",he,ot),qt=(0,Se.Z)(de!=null?de:Xt),[en,Tt]=b.useState(!1),[an,Wt]=b.useState(!1),Ke=$t=>{Tt(!0),Jt==null||Jt($t);const nn=()=>{Tt(!1),document.removeEventListener("mouseup",nn)};document.addEventListener("mouseup",nn)},mt=$t=>{var nn,Re;if(Ft==null||Ft($t),en&&typeof getComputedStyle=="function"){const pt=(Re=(nn=le.current)===null||nn===void 0?void 0:nn.nativeElement)===null||Re===void 0?void 0:Re.querySelector("textarea");pt&&getComputedStyle(pt).resize==="both"&&Wt(!0)}};return Ae(nt(b.createElement(qe.default,Object.assign({autoComplete:rt},ye,{style:Object.assign(Object.assign({},_e),Ut),styles:Object.assign(Object.assign({},Ct),Te),disabled:ne,allowClear:qt,className:fe()(Qe,ft,st,Ue,Oe,At,an&&`${xe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Dt),Yt),{textarea:fe()({[`${xe}-sm`]:Be==="small",[`${xe}-lg`]:Be==="large"},Le,Dt==null?void 0:Dt.textarea,Yt.textarea,en&&`${xe}-mouse-active`),variant:fe()({[`${xe}-${zt}`]:Zt},(0,ge.Z)(xe,re)),affixWrapper:fe()(`${xe}-textarea-affix-wrapper`,{[`${xe}-affix-wrapper-rtl`]:lt==="rtl",[`${xe}-affix-wrapper-sm`]:Be==="small",[`${xe}-affix-wrapper-lg`]:Be==="large",[`${xe}-textarea-show-count`]:Nt||((ut=Ge.count)===null||ut===void 0?void 0:ut.show)},Le)}),prefixCls:xe,suffix:ie&&b.createElement("span",{className:`${xe}-textarea-suffix`},ue),showCount:Nt,ref:le,onResize:mt,onMouseDown:Ke}))))})},23826:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Fe}});var b=ee(59301);function Fe(fe,qe){const Se=(0,b.useRef)([]),ge=()=>{Se.current.push(setTimeout(()=>{var Ee,Ze,Pe,ce;!((Ee=fe.current)===null||Ee===void 0)&&Ee.input&&((Ze=fe.current)===null||Ze===void 0?void 0:Ze.input.getAttribute("type"))==="password"&&(!((Pe=fe.current)===null||Pe===void 0)&&Pe.input.hasAttribute("value"))&&((ce=fe.current)===null||ce===void 0||ce.input.removeAttribute("value"))}))};return(0,b.useEffect)(()=>(qe&&ge(),()=>Se.current.forEach(Ee=>{Ee&&clearTimeout(Ee)})),[]),ge}},37568:function(Cn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Yt}});var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(48755),Se=ee(56553),ge=ee(53075),Ze=Ct=>{const{getPrefixCls:ae,direction:ne}=(0,b.useContext)(qe.E_),{prefixCls:te,className:ie}=Ct,ue=ae("input-group",te),re=ae("input"),[le,xe,ft]=(0,ge.ZP)(re),Ae=fe()(ue,ft,{[`${ue}-lg`]:Ct.size==="large",[`${ue}-sm`]:Ct.size==="small",[`${ue}-compact`]:Ct.compact,[`${ue}-rtl`]:ne==="rtl"},xe,ie),Le=(0,b.useContext)(Se.aM),Qe=(0,b.useMemo)(()=>Object.assign(Object.assign({},Le),{isFormItemInput:!1}),[Le]);return le(b.createElement("span",{className:Ae,style:Ct.style,onMouseEnter:Ct.onMouseEnter,onMouseLeave:Ct.onMouseLeave,onFocus:Ct.onFocus,onBlur:Ct.onBlur},b.createElement(Se.aM.Provider,{value:Qe},Ct.children)))},Pe=ee(49397),ce=ee(77654),Xe=ee(6089),we=ee(26112),St=ee(82855),tt=ee(31756),je=ee(16931),Me=ee(51636),Ne=ee(64910);const it=Ct=>{const{componentCls:ae,paddingXS:ne}=Ct;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ne,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:Ct.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:Ct.calc(Ct.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:Ct.paddingXS}}}};var yt=(0,je.I$)(["Input","OTP"],Ct=>{const ae=(0,Me.mergeToken)(Ct,(0,Ne.e)(Ct));return[it(ae)]},Ne.T),Ot=ee(16089),We=function(Ct,ae){var ne={};for(var te in Ct)Object.prototype.hasOwnProperty.call(Ct,te)&&ae.indexOf(te)<0&&(ne[te]=Ct[te]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(Ct);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(Ct,te[ie])&&(ne[te[ie]]=Ct[te[ie]]);return ne},He=b.forwardRef((Ct,ae)=>{const{value:ne,onChange:te,onActiveChange:ie,index:ue,mask:re}=Ct,le=We(Ct,["value","onChange","onActiveChange","index","mask"]),xe=ne&&typeof re=="string"?re:ne,ft=bt=>{te(ue,bt.target.value)},Ae=b.useRef(null);b.useImperativeHandle(ae,()=>Ae.current);const Le=()=>{(0,Ot.Z)(()=>{var bt;const Oe=(bt=Ae.current)===null||bt===void 0?void 0:bt.input;document.activeElement===Oe&&Oe&&Oe.select()})},Qe=bt=>{const{key:Oe,ctrlKey:Be,metaKey:zt}=bt;Oe==="ArrowLeft"?ie(ue-1):Oe==="ArrowRight"?ie(ue+1):Oe==="z"&&(Be||zt)&&bt.preventDefault(),Le()},nt=bt=>{bt.key==="Backspace"&&!ne&&ie(ue-1),Le()};return b.createElement(Pe.Z,Object.assign({type:re===!0?"password":"text"},le,{ref:Ae,value:xe,onInput:ft,onFocus:Le,onKeyDown:Qe,onKeyUp:nt,onMouseDown:Le,onMouseUp:Le}))}),Ge=function(Ct,ae){var ne={};for(var te in Ct)Object.prototype.hasOwnProperty.call(Ct,te)&&ae.indexOf(te)<0&&(ne[te]=Ct[te]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(Ct);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(Ct,te[ie])&&(ne[te[ie]]=Ct[te[ie]]);return ne};function Et(Ct){return(Ct||"").split("")}const ut=Ct=>{const{index:ae,prefixCls:ne,separator:te}=Ct,ie=typeof te=="function"?te(ae):te;return ie?b.createElement("span",{className:`${ne}-separator`},ie):null};var ot=b.forwardRef((Ct,ae)=>{const{prefixCls:ne,length:te=6,size:ie,defaultValue:ue,value:re,onChange:le,formatter:xe,separator:ft,variant:Ae,disabled:Le,status:Qe,autoFocus:nt,mask:bt,type:Oe,onInput:Be,inputMode:zt}=Ct,Zt=Ge(Ct,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:qt,direction:en}=b.useContext(qe.E_),Tt=qt("otp",ne),an=(0,we.Z)(Zt,{aria:!0,data:!0,attr:!0}),[Wt,Ke,mt]=yt(Tt),$t=(0,tt.Z)(tn=>ie!=null?ie:tn),nn=b.useContext(Se.aM),Re=(0,St.F)(nn.status,Qe),pt=b.useMemo(()=>Object.assign(Object.assign({},nn),{status:Re,hasFeedback:!1,feedbackIcon:null}),[nn,Re]),Mt=b.useRef(null),Kt=b.useRef({});b.useImperativeHandle(ae,()=>({focus:()=>{var tn;(tn=Kt.current[0])===null||tn===void 0||tn.focus()},blur:()=>{var tn;for(let on=0;on<te;on+=1)(tn=Kt.current[on])===null||tn===void 0||tn.blur()},nativeElement:Mt.current}));const cn=tn=>xe?xe(tn):tn,[Pn,Rn]=b.useState(()=>Et(cn(ue||"")));b.useEffect(()=>{re!==void 0&&Rn(Et(re))},[re]);const Fn=(0,Xe.Z)(tn=>{Rn(tn),Be&&Be(tn),le&&tn.length===te&&tn.every(on=>on)&&tn.some((on,_t)=>Pn[_t]!==on)&&le(tn.join(""))}),vn=(0,Xe.Z)((tn,on)=>{let _t=(0,ce.Z)(Pn);for(let mn=0;mn<tn;mn+=1)_t[mn]||(_t[mn]="");on.length<=1?_t[tn]=on:_t=_t.slice(0,tn).concat(Et(on)),_t=_t.slice(0,te);for(let mn=_t.length-1;mn>=0&&!_t[mn];mn-=1)_t.pop();const hn=cn(_t.map(mn=>mn||" ").join(""));return _t=Et(hn).map((mn,Sn)=>mn===" "&&!_t[Sn]?_t[Sn]:mn),_t}),Mn=(tn,on)=>{var _t;const hn=vn(tn,on),mn=Math.min(tn+on.length,te-1);mn!==tn&&hn[tn]!==void 0&&((_t=Kt.current[mn])===null||_t===void 0||_t.focus()),Fn(hn)},dn=tn=>{var on;(on=Kt.current[tn])===null||on===void 0||on.focus()},Vt={variant:Ae,disabled:Le,status:Re,mask:bt,type:Oe,inputMode:zt};return Wt(b.createElement("div",Object.assign({},an,{ref:Mt,className:fe()(Tt,{[`${Tt}-sm`]:$t==="small",[`${Tt}-lg`]:$t==="large",[`${Tt}-rtl`]:en==="rtl"},mt,Ke)}),b.createElement(Se.aM.Provider,{value:pt},Array.from({length:te}).map((tn,on)=>{const _t=`otp-${on}`,hn=Pn[on]||"";return b.createElement(b.Fragment,{key:_t},b.createElement(He,Object.assign({ref:mn=>{Kt.current[on]=mn},index:on,size:$t,htmlSize:1,className:`${Tt}-input`,onChange:Mn,value:hn,onActiveChange:dn,autoFocus:on===0&&nt},Vt)),on<te-1&&b.createElement(ut,{separator:ft,index:on,prefixCls:Tt}))}))))}),Ce=ee(73331),at=ee(15277),Ve=ee(2738),de=ee(8654),Dt=ee(2171),Ue=ee(23826),st=function(Ct,ae){var ne={};for(var te in Ct)Object.prototype.hasOwnProperty.call(Ct,te)&&ae.indexOf(te)<0&&(ne[te]=Ct[te]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(Ct);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(Ct,te[ie])&&(ne[te[ie]]=Ct[te[ie]]);return ne};const Ut=Ct=>Ct?b.createElement(at.Z,null):b.createElement(Ce.Z,null),Te={click:"onClick",hover:"onMouseOver"};var Nt=b.forwardRef((Ct,ae)=>{const{disabled:ne,action:te="click",visibilityToggle:ie=!0,iconRender:ue=Ut}=Ct,re=b.useContext(Dt.Z),le=ne!=null?ne:re,xe=typeof ie=="object"&&ie.visible!==void 0,[ft,Ae]=(0,b.useState)(()=>xe?ie.visible:!1),Le=(0,b.useRef)(null);b.useEffect(()=>{xe&&Ae(ie.visible)},[xe,ie]);const Qe=(0,Ue.Z)(Le),nt=()=>{var $t;if(le)return;ft&&Qe();const nn=!ft;Ae(nn),typeof ie=="object"&&(($t=ie.onVisibleChange)===null||$t===void 0||$t.call(ie,nn))},bt=$t=>{const nn=Te[te]||"",Re=ue(ft),pt={[nn]:nt,className:`${$t}-icon`,key:"passwordIcon",onMouseDown:Mt=>{Mt.preventDefault()},onMouseUp:Mt=>{Mt.preventDefault()}};return b.cloneElement(b.isValidElement(Re)?Re:b.createElement("span",null,Re),pt)},{className:Oe,prefixCls:Be,inputPrefixCls:zt,size:Zt}=Ct,qt=st(Ct,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:en}=b.useContext(qe.E_),Tt=en("input",zt),an=en("input-password",Be),Wt=ie&&bt(an),Ke=fe()(an,Oe,{[`${an}-${Zt}`]:!!Zt}),mt=Object.assign(Object.assign({},(0,Ve.Z)(qt,["suffix","iconRender","visibilityToggle"])),{type:ft?"text":"password",className:Ke,prefixCls:Tt,suffix:Wt});return Zt&&(mt.size=Zt),b.createElement(Pe.Z,Object.assign({ref:(0,de.sQ)(ae,Le)},mt))}),Jt=ee(47472),Ft=ee(22703),ye=ee(7939),Ye=ee(70045),lt=function(Ct,ae){var ne={};for(var te in Ct)Object.prototype.hasOwnProperty.call(Ct,te)&&ae.indexOf(te)<0&&(ne[te]=Ct[te]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,te=Object.getOwnPropertySymbols(Ct);ie<te.length;ie++)ae.indexOf(te[ie])<0&&Object.prototype.propertyIsEnumerable.call(Ct,te[ie])&&(ne[te[ie]]=Ct[te[ie]]);return ne},rt=b.forwardRef((Ct,ae)=>{const{prefixCls:ne,inputPrefixCls:te,className:ie,size:ue,suffix:re,enterButton:le=!1,addonAfter:xe,loading:ft,disabled:Ae,onSearch:Le,onChange:Qe,onCompositionStart:nt,onCompositionEnd:bt}=Ct,Oe=lt(Ct,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Be,direction:zt}=b.useContext(qe.E_),Zt=b.useRef(!1),qt=Be("input-search",ne),en=Be("input",te),{compactSize:Tt}=(0,Ye.ri)(qt,zt),an=(0,tt.Z)(Mn=>{var dn;return(dn=ue!=null?ue:Tt)!==null&&dn!==void 0?dn:Mn}),Wt=b.useRef(null),Ke=Mn=>{Mn!=null&&Mn.target&&Mn.type==="click"&&Le&&Le(Mn.target.value,Mn,{source:"clear"}),Qe==null||Qe(Mn)},mt=Mn=>{var dn;document.activeElement===((dn=Wt.current)===null||dn===void 0?void 0:dn.input)&&Mn.preventDefault()},$t=Mn=>{var dn,Vt;Le&&Le((Vt=(dn=Wt.current)===null||dn===void 0?void 0:dn.input)===null||Vt===void 0?void 0:Vt.value,Mn,{source:"input"})},nn=Mn=>{Zt.current||ft||$t(Mn)},Re=typeof le=="boolean"?b.createElement(Jt.Z,null):null,pt=`${qt}-button`;let Mt;const Kt=le||{},cn=Kt.type&&Kt.type.__ANT_BUTTON===!0;cn||Kt.type==="button"?Mt=(0,Ft.Tm)(Kt,Object.assign({onMouseDown:mt,onClick:Mn=>{var dn,Vt;(Vt=(dn=Kt==null?void 0:Kt.props)===null||dn===void 0?void 0:dn.onClick)===null||Vt===void 0||Vt.call(dn,Mn),$t(Mn)},key:"enterButton"},cn?{className:pt,size:an}:{})):Mt=b.createElement(ye.ZP,{className:pt,type:le?"primary":void 0,size:an,disabled:Ae,key:"enterButton",onMouseDown:mt,onClick:$t,loading:ft,icon:Re},le),xe&&(Mt=[Mt,(0,Ft.Tm)(xe,{key:"addonAfter"})]);const Pn=fe()(qt,{[`${qt}-rtl`]:zt==="rtl",[`${qt}-${an}`]:!!an,[`${qt}-with-button`]:!!le},ie),Rn=Object.assign(Object.assign({},Oe),{className:Pn,prefixCls:en,type:"search"}),Fn=Mn=>{Zt.current=!0,nt==null||nt(Mn)},vn=Mn=>{Zt.current=!1,bt==null||bt(Mn)};return b.createElement(Pe.Z,Object.assign({ref:(0,de.sQ)(Wt,ae),onPressEnter:nn},Rn,{size:an,onCompositionStart:Fn,onCompositionEnd:vn,addonAfter:Mt,suffix:re,onChange:Ke,disabled:Ae}))}),At=ee(79809);const _e=Pe.Z;_e.Group=Ze,_e.Search=rt,_e.TextArea=At.Z,_e.Password=Nt,_e.OTP=ot;var Yt=_e},24303:function(Cn,Qt,ee){"use strict";ee.d(Qt,{D:function(){return Ge},Z:function(){return et}});var b=ee(59301),Fe=ee(60499),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"},qe=fe,Se=ee(7657),ge=function(Ce,at){return b.createElement(Se.Z,(0,Fe.Z)({},Ce,{ref:at,icon:qe}))},Ee=b.forwardRef(ge),Ze=Ee,Pe=ee(33853),ce=ee(38819),Xe=ee(92310),we=ee.n(Xe),St=ee(2738),tt=ee(48755),je=ee(6989),Me=ee(36237),Ne=ee(48923),it=ee(16931);const yt=ot=>{const{componentCls:Ce,siderBg:at,motionDurationMid:Ve,motionDurationSlow:de,antCls:Dt,triggerHeight:Ue,triggerColor:st,triggerBg:Ut,headerHeight:Te,zeroTriggerWidth:he,zeroTriggerHeight:Nt,borderRadiusLG:Jt,lightSiderBg:Ft,lightTriggerColor:ye,lightTriggerBg:Ye,bodyBg:lt}=ot;return{[Ce]:{position:"relative",minWidth:0,background:at,transition:`all ${Ve}, background 0s`,"&-has-trigger":{paddingBottom:Ue},"&-right":{order:1},[`${Ce}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Dt}-menu${Dt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Ce}-children`]:{overflow:"hidden"},[`${Ce}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Ue,color:st,lineHeight:(0,Me.unit)(Ue),textAlign:"center",background:Ut,cursor:"pointer",transition:`all ${Ve}`},[`${Ce}-zero-width-trigger`]:{position:"absolute",top:Te,insetInlineEnd:ot.calc(he).mul(-1).equal(),zIndex:1,width:he,height:Nt,color:st,fontSize:ot.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:at,borderRadius:`0 ${(0,Me.unit)(Jt)} ${(0,Me.unit)(Jt)} 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:ot.calc(he).mul(-1).equal(),borderRadius:`${(0,Me.unit)(Jt)} 0 0 ${(0,Me.unit)(Jt)}`}},"&-light":{background:Ft,[`${Ce}-trigger`]:{color:ye,background:Ye},[`${Ce}-zero-width-trigger`]:{color:ye,background:Ye,border:`1px solid ${lt}`,borderInlineStart:0}}}}};var Ot=(0,it.I$)(["Layout","Sider"],ot=>[yt(ot)],Ne.eh,{deprecatedTokens:Ne.jn}),We=function(ot,Ce){var at={};for(var Ve in ot)Object.prototype.hasOwnProperty.call(ot,Ve)&&Ce.indexOf(Ve)<0&&(at[Ve]=ot[Ve]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ve=Object.getOwnPropertySymbols(ot);de<Ve.length;de++)Ce.indexOf(Ve[de])<0&&Object.prototype.propertyIsEnumerable.call(ot,Ve[de])&&(at[Ve[de]]=ot[Ve[de]]);return at};const Ie={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},He=ot=>!Number.isNaN(Number.parseFloat(ot))&&isFinite(ot),Ge=b.createContext({}),Et=(()=>{let ot=0;return function(){let Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ot+=1,`${Ce}${ot}`}})();var et=b.forwardRef((ot,Ce)=>{const{prefixCls:at,className:Ve,trigger:de,children:Dt,defaultCollapsed:Ue=!1,theme:st="dark",style:Ut={},collapsible:Te=!1,reverseArrow:he=!1,width:Nt=200,collapsedWidth:Jt=80,zeroWidthTriggerStyle:Ft,breakpoint:ye,onCollapse:Ye,onBreakpoint:lt}=ot,Xt=We(ot,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:rt}=(0,b.useContext)(je.V),[At,_e]=(0,b.useState)("collapsed"in ot?ot.collapsed:Ue),[Yt,Ct]=(0,b.useState)(!1);(0,b.useEffect)(()=>{"collapsed"in ot&&_e(ot.collapsed)},[ot.collapsed]);const ae=(an,Wt)=>{"collapsed"in ot||_e(an),Ye==null||Ye(an,Wt)},{getPrefixCls:ne,direction:te}=(0,b.useContext)(tt.E_),ie=ne("layout-sider",at),[ue,re,le]=Ot(ie),xe=(0,b.useRef)(null);xe.current=an=>{Ct(an.matches),lt==null||lt(an.matches),At!==an.matches&&ae(an.matches,"responsive")},(0,b.useEffect)(()=>{function an(Ke){return xe.current(Ke)}let Wt;if(typeof window!="undefined"){const{matchMedia:Ke}=window;if(Ke&&ye&&ye in Ie){Wt=Ke(`screen and (max-width: ${Ie[ye]})`);try{Wt.addEventListener("change",an)}catch(mt){Wt.addListener(an)}an(Wt)}}return()=>{try{Wt==null||Wt.removeEventListener("change",an)}catch(Ke){Wt==null||Wt.removeListener(an)}}},[ye]),(0,b.useEffect)(()=>{const an=Et("ant-sider-");return rt.addSider(an),()=>rt.removeSider(an)},[]);const ft=()=>{ae(!At,"clickTrigger")},Ae=(0,St.Z)(Xt,["collapsed"]),Le=At?Jt:Nt,Qe=He(Le)?`${Le}px`:String(Le),nt=parseFloat(String(Jt||0))===0?b.createElement("span",{onClick:ft,className:we()(`${ie}-zero-width-trigger`,`${ie}-zero-width-trigger-${he?"right":"left"}`),style:Ft},de||b.createElement(Ze,null)):null,bt=te==="rtl"==!he,zt={expanded:bt?b.createElement(ce.Z,null):b.createElement(Pe.Z,null),collapsed:bt?b.createElement(Pe.Z,null):b.createElement(ce.Z,null)}[At?"collapsed":"expanded"],Zt=de!==null?nt||b.createElement("div",{className:`${ie}-trigger`,onClick:ft,style:{width:Qe}},de||zt):null,qt=Object.assign(Object.assign({},Ut),{flex:`0 0 ${Qe}`,maxWidth:Qe,minWidth:Qe,width:Qe}),en=we()(ie,`${ie}-${st}`,{[`${ie}-collapsed`]:!!At,[`${ie}-has-trigger`]:Te&&de!==null&&!nt,[`${ie}-below`]:!!Yt,[`${ie}-zero-width`]:parseFloat(Qe)===0},Ve,re,le),Tt=b.useMemo(()=>({siderCollapsed:At}),[At]);return ue(b.createElement(Ge.Provider,{value:Tt},b.createElement("aside",Object.assign({className:en},Ae,{style:qt,ref:Ce}),b.createElement("div",{className:`${ie}-children`},Dt),Te||Yt&&nt?Zt:null)))})},6989:function(Cn,Qt,ee){"use strict";ee.d(Qt,{V:function(){return Fe}});var b=ee(59301);const Fe=b.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(Cn,Qt,ee){"use strict";ee.d(Qt,{eh:function(){return qe},jn:function(){return Se}});var b=ee(36237),Fe=ee(16931);const fe=ge=>{const{antCls:Ee,componentCls:Ze,colorText:Pe,footerBg:ce,headerHeight:Xe,headerPadding:we,headerColor:St,footerPadding:tt,fontSize:je,bodyBg:Me,headerBg:Ne}=ge;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:Xe,padding:we,color:St,lineHeight:(0,b.unit)(Xe),background:Ne,[`${Ee}-menu`]:{lineHeight:"inherit"}},[`${Ze}-footer`]:{padding:tt,color:Pe,fontSize:je,background:ce},[`${Ze}-content`]:{flex:"auto",color:Pe,minHeight:0}}},qe=ge=>{const{colorBgLayout:Ee,controlHeight:Ze,controlHeightLG:Pe,colorText:ce,controlHeightSM:Xe,marginXXS:we,colorTextLightSolid:St,colorBgContainer:tt}=ge,je=Pe*1.25;return{colorBgHeader:"#001529",colorBgBody:Ee,colorBgTrigger:"#002140",bodyBg:Ee,headerBg:"#001529",headerHeight:Ze*2,headerPadding:`0 ${je}px`,headerColor:ce,footerPadding:`${Xe}px ${je}px`,footerBg:Ee,siderBg:"#001529",triggerHeight:Pe+we*2,triggerBg:"#002140",triggerColor:St,zeroTriggerWidth:Pe,zeroTriggerHeight:Pe,lightSiderBg:tt,lightTriggerBg:tt,lightTriggerColor:ce}},Se=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Qt.ZP=(0,Fe.I$)("Layout",ge=>[fe(ge)],qe,{deprecatedTokens:Se})},78857:function(Cn,Qt,ee){"use strict";ee.d(Qt,{J:function(){return ge}});var b=ee(59301),Fe=ee(8654),fe=ee(62487),qe=function(Ee,Ze){var Pe={};for(var ce in Ee)Object.prototype.hasOwnProperty.call(Ee,ce)&&Ze.indexOf(ce)<0&&(Pe[ce]=Ee[ce]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,ce=Object.getOwnPropertySymbols(Ee);Xe<ce.length;Xe++)Ze.indexOf(ce[Xe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ce[Xe])&&(Pe[ce[Xe]]=Ee[ce[Xe]]);return Pe};const Se=b.createContext(null),ge=b.forwardRef((Ee,Ze)=>{const{children:Pe}=Ee,ce=qe(Ee,["children"]),Xe=b.useContext(Se),we=b.useMemo(()=>Object.assign(Object.assign({},Xe),ce),[Xe,ce.prefixCls,ce.mode,ce.selectable,ce.rootClassName]),St=(0,Fe.t4)(Pe),tt=(0,Fe.x1)(Ze,St?(0,Fe.C4)(Pe):null);return b.createElement(Se.Provider,{value:we},b.createElement(fe.Z,{space:!0},St?b.cloneElement(Pe,{ref:tt}):Pe))});Qt.Z=Se},93041:function(Cn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return ue}});var b=ee(59301),Fe=ee(28321),fe=ee(24303),qe=ee(18785),Se=ee(92310),ge=ee.n(Se),Ee=ee(6089),Ze=ee(2738),Pe=ee(86641),ce=ee(22703),Xe=ee(48755),we=ee(83397),tt=(0,b.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),je=function(re,le){var xe={};for(var ft in re)Object.prototype.hasOwnProperty.call(re,ft)&&le.indexOf(ft)<0&&(xe[ft]=re[ft]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ft=Object.getOwnPropertySymbols(re);Ae<ft.length;Ae++)le.indexOf(ft[Ae])<0&&Object.prototype.propertyIsEnumerable.call(re,ft[Ae])&&(xe[ft[Ae]]=re[ft[Ae]]);return xe},Ne=re=>{const{prefixCls:le,className:xe,dashed:ft}=re,Ae=je(re,["prefixCls","className","dashed"]),{getPrefixCls:Le}=b.useContext(Xe.E_),Qe=Le("menu",le),nt=ge()({[`${Qe}-item-divider-dashed`]:!!ft},xe);return b.createElement(Fe.iz,Object.assign({className:nt},Ae))},it=ee(11592),yt=ee(25399),We=re=>{var le;const{className:xe,children:ft,icon:Ae,title:Le,danger:Qe,extra:nt}=re,{prefixCls:bt,firstLevel:Oe,direction:Be,disableMenuItemTitleTooltip:zt,inlineCollapsed:Zt}=b.useContext(tt),qt=mt=>{const $t=ft==null?void 0:ft[0],nn=b.createElement("span",{className:ge()(`${bt}-title-content`,{[`${bt}-title-content-with-extra`]:!!nt||nt===0})},ft);return(!Ae||b.isValidElement(ft)&&ft.type==="span")&&ft&&mt&&Oe&&typeof $t=="string"?b.createElement("div",{className:`${bt}-inline-collapsed-noicon`},$t.charAt(0)):nn},{siderCollapsed:en}=b.useContext(fe.D);let Tt=Le;typeof Le=="undefined"?Tt=Oe?ft:"":Le===!1&&(Tt="");const an={title:Tt};!en&&!Zt&&(an.title=null,an.open=!1);const Wt=(0,it.Z)(ft).length;let Ke=b.createElement(Fe.ck,Object.assign({},(0,Ze.Z)(re,["title","icon","danger"]),{className:ge()({[`${bt}-item-danger`]:Qe,[`${bt}-item-only-child`]:(Ae?Wt+1:Wt)===1},xe),title:typeof Le=="string"?Le:void 0}),(0,ce.Tm)(Ae,{className:ge()(b.isValidElement(Ae)?(le=Ae.props)===null||le===void 0?void 0:le.className:"",`${bt}-item-icon`)}),qt(Zt));return zt||(Ke=b.createElement(yt.Z,Object.assign({},an,{placement:Be==="rtl"?"left":"right",classNames:{root:`${bt}-inline-collapsed-tooltip`}}),Ke)),Ke},Ie=ee(78857),He=ee(36237),Ge=ee(17835),Et=ee(63356),ut=ee(34961),et=ee(46e3),ot=ee(34925),Ce=ee(16931),at=ee(51636),de=re=>{const{componentCls:le,motionDurationSlow:xe,horizontalLineHeight:ft,colorSplit:Ae,lineWidth:Le,lineType:Qe,itemPaddingInline:nt}=re;return{[`${le}-horizontal`]:{lineHeight:ft,border:0,borderBottom:`${(0,He.unit)(Le)} ${Qe} ${Ae}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${le}-item, ${le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:nt},[`> ${le}-item:hover,
> ${le}-item-active,
> ${le}-submenu ${le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${le}-item, ${le}-submenu-title`]:{transition:[`border-color ${xe}`,`background ${xe}`].join(",")},[`${le}-submenu-arrow`]:{display:"none"}}}},Ue=re=>{let{componentCls:le,menuArrowOffset:xe,calc:ft}=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,He.unit)(ft(xe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,He.unit)(xe)})`}}}}};const st=re=>Object.assign({},(0,Et.oN)(re));var Te=(re,le)=>{const{componentCls:xe,itemColor:ft,itemSelectedColor:Ae,subMenuItemSelectedColor:Le,groupTitleColor:Qe,itemBg:nt,subMenuItemBg:bt,itemSelectedBg:Oe,activeBarHeight:Be,activeBarWidth:zt,activeBarBorderWidth:Zt,motionDurationSlow:qt,motionEaseInOut:en,motionEaseOut:Tt,itemPaddingInline:an,motionDurationMid:Wt,itemHoverColor:Ke,lineType:mt,colorSplit:$t,itemDisabledColor:nn,dangerItemColor:Re,dangerItemHoverColor:pt,dangerItemSelectedColor:Mt,dangerItemActiveBg:Kt,dangerItemSelectedBg:cn,popupBg:Pn,itemHoverBg:Rn,itemActiveBg:Fn,menuSubMenuBg:vn,horizontalItemSelectedColor:Mn,horizontalItemSelectedBg:dn,horizontalItemBorderRadius:Vt,horizontalItemHoverBg:tn}=re;return{[`${xe}-${le}, ${xe}-${le} > ${xe}`]:{color:ft,background:nt,[`&${xe}-root:focus-visible`]:Object.assign({},st(re)),[`${xe}-item`]:{"&-group-title, &-extra":{color:Qe}},[`${xe}-submenu-selected > ${xe}-submenu-title`]:{color:Le},[`${xe}-item, ${xe}-submenu-title`]:{color:ft,[`&:not(${xe}-item-disabled):focus-visible`]:Object.assign({},st(re))},[`${xe}-item-disabled, ${xe}-submenu-disabled`]:{color:`${nn} !important`},[`${xe}-item:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{[`&:hover, > ${xe}-submenu-title:hover`]:{color:Ke}},[`&:not(${xe}-horizontal)`]:{[`${xe}-item:not(${xe}-item-selected)`]:{"&:hover":{backgroundColor:Rn},"&:active":{backgroundColor:Fn}},[`${xe}-submenu-title`]:{"&:hover":{backgroundColor:Rn},"&:active":{backgroundColor:Fn}}},[`${xe}-item-danger`]:{color:Re,[`&${xe}-item:hover`]:{[`&:not(${xe}-item-selected):not(${xe}-submenu-selected)`]:{color:pt}},[`&${xe}-item:active`]:{background:Kt}},[`${xe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${xe}-item-selected`]:{color:Ae,[`&${xe}-item-danger`]:{color:Mt},"a, a:hover":{color:"inherit"}},[`& ${xe}-item-selected`]:{backgroundColor:Oe,[`&${xe}-item-danger`]:{backgroundColor:cn}},[`&${xe}-submenu > ${xe}`]:{backgroundColor:vn},[`&${xe}-popup > ${xe}`]:{backgroundColor:Pn},[`&${xe}-submenu-popup > ${xe}`]:{backgroundColor:Pn},[`&${xe}-horizontal`]:Object.assign(Object.assign({},le==="dark"?{borderBottom:0}:{}),{[`> ${xe}-item, > ${xe}-submenu`]:{top:Zt,marginTop:re.calc(Zt).mul(-1).equal(),marginBottom:0,borderRadius:Vt,"&::after":{position:"absolute",insetInline:an,bottom:0,borderBottom:`${(0,He.unit)(Be)} solid transparent`,transition:`border-color ${qt} ${en}`,content:'""'},"&:hover, &-active, &-open":{background:tn,"&::after":{borderBottomWidth:Be,borderBottomColor:Mn}},"&-selected":{color:Mn,backgroundColor:dn,"&:hover":{backgroundColor:dn},"&::after":{borderBottomWidth:Be,borderBottomColor:Mn}}}}),[`&${xe}-root`]:{[`&${xe}-inline, &${xe}-vertical`]:{borderInlineEnd:`${(0,He.unit)(Zt)} ${mt} ${$t}`}},[`&${xe}-inline`]:{[`${xe}-sub${xe}-inline`]:{background:bt},[`${xe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,He.unit)(zt)} solid ${Ae}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Wt} ${Tt}`,`opacity ${Wt} ${Tt}`].join(","),content:'""'},[`&${xe}-item-danger`]:{"&::after":{borderInlineEndColor:Mt}}},[`${xe}-selected, ${xe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Wt} ${en}`,`opacity ${Wt} ${en}`].join(",")}}}}}};const he=re=>{const{componentCls:le,itemHeight:xe,itemMarginInline:ft,padding:Ae,menuArrowSize:Le,marginXS:Qe,itemMarginBlock:nt,itemWidth:bt,itemPaddingInline:Oe}=re,Be=re.calc(Le).add(Ae).add(Qe).equal();return{[`${le}-item`]:{position:"relative",overflow:"hidden"},[`${le}-item, ${le}-submenu-title`]:{height:xe,lineHeight:(0,He.unit)(xe),paddingInline:Oe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ft,marginBlock:nt,width:bt},[`> ${le}-item,
> ${le}-submenu > ${le}-submenu-title`]:{height:xe,lineHeight:(0,He.unit)(xe)},[`${le}-item-group-list ${le}-submenu-title,
${le}-submenu-title`]:{paddingInlineEnd:Be}}};var Jt=re=>{const{componentCls:le,iconCls:xe,itemHeight:ft,colorTextLightSolid:Ae,dropdownWidth:Le,controlHeightLG:Qe,motionEaseOut:nt,paddingXL:bt,itemMarginInline:Oe,fontSizeLG:Be,motionDurationFast:zt,motionDurationSlow:Zt,paddingXS:qt,boxShadowSecondary:en,collapsedWidth:Tt,collapsedIconSize:an}=re,Wt={height:ft,lineHeight:(0,He.unit)(ft),listStylePosition:"inside",listStyleType:"disc"};return[{[le]:{"&-inline, &-vertical":Object.assign({[`&${le}-root`]:{boxShadow:"none"}},he(re))},[`${le}-submenu-popup`]:{[`${le}-vertical`]:Object.assign(Object.assign({},he(re)),{boxShadow:en})}},{[`${le}-submenu-popup ${le}-vertical${le}-sub`]:{minWidth:Le,maxHeight:`calc(100vh - ${(0,He.unit)(re.calc(Qe).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 ${Zt}`,`background ${Zt}`,`padding ${zt} ${nt}`].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:bt}},[`${le}-item`]:Wt}},{[`${le}-inline-collapsed`]:{width:Tt,[`&${le}-root`]:{[`${le}-item, ${le}-submenu ${le}-submenu-title`]:{[`> ${le}-inline-collapsed-noicon`]:{fontSize:Be,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,He.unit)(re.calc(an).div(2).equal())} - ${(0,He.unit)(Oe)})`,textOverflow:"clip",[`
${le}-submenu-arrow,
${le}-submenu-expand-icon
`]:{opacity:0},[`${le}-item-icon, ${xe}`]:{margin:0,fontSize:an,lineHeight:(0,He.unit)(ft),"+ span":{display:"inline-block",opacity:0}}},[`${le}-item-icon, ${xe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${le}-item-icon, ${xe}`]:{display:"none"},"a, a:hover":{color:Ae}},[`${le}-item-group-title`]:Object.assign(Object.assign({},Et.vS),{paddingInline:qt})}}]};const Ft=re=>{const{componentCls:le,motionDurationSlow:xe,motionDurationMid:ft,motionEaseInOut:Ae,motionEaseOut:Le,iconCls:Qe,iconSize:nt,iconMarginInlineEnd:bt}=re;return{[`${le}-item, ${le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${xe}`,`background ${xe}`,`padding calc(${xe} + 0.1s) ${Ae}`].join(","),[`${le}-item-icon, ${Qe}`]:{minWidth:nt,fontSize:nt,transition:[`font-size ${ft} ${Le}`,`margin ${xe} ${Ae}`,`color ${xe}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${xe} ${Ae}`,`margin ${xe}`,`color ${xe}`].join(",")}},[`${le}-item-icon`]:Object.assign({},(0,Et.Ro)()),[`&${le}-item-only-child`]:{[`> ${Qe}, > ${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"}}}},ye=re=>{const{componentCls:le,motionDurationSlow:xe,motionEaseInOut:ft,borderRadius:Ae,menuArrowSize:Le,menuArrowOffset:Qe}=re;return{[`${le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Le,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${xe} ${ft}, opacity ${xe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Le).mul(.6).equal(),height:re.calc(Le).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Ae,transition:[`background ${xe} ${ft}`,`transform ${xe} ${ft}`,`top ${xe} ${ft}`,`color ${xe} ${ft}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,He.unit)(re.calc(Qe).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,He.unit)(Qe)})`}}}}},Ye=re=>{const{antCls:le,componentCls:xe,fontSize:ft,motionDurationSlow:Ae,motionDurationMid:Le,motionEaseInOut:Qe,paddingXS:nt,padding:bt,colorSplit:Oe,lineWidth:Be,zIndexPopup:zt,borderRadiusLG:Zt,subMenuItemBorderRadius:qt,menuArrowSize:en,menuArrowOffset:Tt,lineType:an,groupTitleLineHeight:Wt,groupTitleFontSize:Ke}=re;return[{"":{[xe]:Object.assign(Object.assign({},(0,Et.dF)()),{"&-hidden":{display:"none"}})},[`${xe}-submenu-hidden`]:{display:"none"}},{[xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Et.Wf)(re)),(0,Et.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ft,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ae} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${xe}-item`]:{flex:"none"}},[`${xe}-item, ${xe}-submenu, ${xe}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${xe}-item-group-title`]:{padding:`${(0,He.unit)(nt)} ${(0,He.unit)(bt)}`,fontSize:Ke,lineHeight:Wt,transition:`all ${Ae}`},[`&-horizontal ${xe}-submenu`]:{transition:[`border-color ${Ae} ${Qe}`,`background ${Ae} ${Qe}`].join(",")},[`${xe}-submenu, ${xe}-submenu-inline`]:{transition:[`border-color ${Ae} ${Qe}`,`background ${Ae} ${Qe}`,`padding ${Le} ${Qe}`].join(",")},[`${xe}-submenu ${xe}-sub`]:{cursor:"initial",transition:[`background ${Ae} ${Qe}`,`padding ${Ae} ${Qe}`].join(",")},[`${xe}-title-content`]:{transition:`color ${Ae}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${le}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${xe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${xe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${xe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Oe,borderStyle:an,borderWidth:0,borderTopWidth:Be,marginBlock:Be,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ft(re)),{[`${xe}-item-group`]:{[`${xe}-item-group-list`]:{margin:0,padding:0,[`${xe}-item, ${xe}-submenu-title`]:{paddingInline:`${(0,He.unit)(re.calc(ft).mul(2).equal())} ${(0,He.unit)(bt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:zt,borderRadius:Zt,boxShadow:"none",transformOrigin:"0 0",[`&${xe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${xe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Zt},Ft(re)),ye(re)),{[`${xe}-item, ${xe}-submenu > ${xe}-submenu-title`]:{borderRadius:qt},[`${xe}-submenu-title::after`]:{transition:`transform ${Ae} ${Qe}`}})},"\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}}}),ye(re)),{[`&-inline-collapsed ${xe}-submenu-arrow,
&-inline ${xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,He.unit)(Tt)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,He.unit)(re.calc(Tt).mul(-1).equal())})`}},[`${xe}-submenu-open${xe}-submenu-inline > ${xe}-submenu-title > ${xe}-submenu-arrow`]:{transform:`translateY(${(0,He.unit)(re.calc(en).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,He.unit)(re.calc(Tt).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,He.unit)(Tt)})`}}})},{[`${le}-layout-header`]:{[xe]:{lineHeight:"inherit"}}}]},lt=re=>{var le,xe,ft;const{colorPrimary:Ae,colorError:Le,colorTextDisabled:Qe,colorErrorBg:nt,colorText:bt,colorTextDescription:Oe,colorBgContainer:Be,colorFillAlter:zt,colorFillContent:Zt,lineWidth:qt,lineWidthBold:en,controlItemBgActive:Tt,colorBgTextHover:an,controlHeightLG:Wt,lineHeight:Ke,colorBgElevated:mt,marginXXS:$t,padding:nn,fontSize:Re,controlHeightSM:pt,fontSizeLG:Mt,colorTextLightSolid:Kt,colorErrorHover:cn}=re,Pn=(le=re.activeBarWidth)!==null&&le!==void 0?le:0,Rn=(xe=re.activeBarBorderWidth)!==null&&xe!==void 0?xe:qt,Fn=(ft=re.itemMarginInline)!==null&&ft!==void 0?ft:re.marginXXS,vn=new Ge.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:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:Ae,horizontalItemHoverColor:Ae,colorGroupTitle:Oe,groupTitleColor:Oe,colorItemTextSelected:Ae,itemSelectedColor:Ae,subMenuItemSelectedColor:Ae,colorItemTextSelectedHorizontal:Ae,horizontalItemSelectedColor:Ae,colorItemBg:Be,itemBg:Be,colorItemBgHover:an,itemHoverBg:an,colorItemBgActive:Zt,itemActiveBg:Tt,colorSubItemBg:zt,subMenuItemBg:zt,colorItemBgSelected:Tt,itemSelectedBg:Tt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Pn,colorActiveBarHeight:en,activeBarHeight:en,colorActiveBarBorderSize:qt,activeBarBorderWidth:Rn,colorItemTextDisabled:Qe,itemDisabledColor:Qe,colorDangerItemText:Le,dangerItemColor:Le,colorDangerItemTextHover:Le,dangerItemHoverColor:Le,colorDangerItemTextSelected:Le,dangerItemSelectedColor:Le,colorDangerItemBgActive:nt,dangerItemActiveBg:nt,colorDangerItemBgSelected:nt,dangerItemSelectedBg:nt,itemMarginInline:Fn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Wt,groupTitleLineHeight:Ke,collapsedWidth:Wt*2,popupBg:mt,itemMarginBlock:$t,itemPaddingInline:nn,horizontalLineHeight:`${Wt*1.15}px`,iconSize:Re,iconMarginInlineEnd:pt-Re,collapsedIconSize:Mt,groupTitleFontSize:Re,darkItemDisabledColor:new Ge.FastColor(Kt).setA(.25).toRgbString(),darkItemColor:vn,darkDangerItemColor:Le,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kt,darkItemSelectedBg:Ae,darkDangerItemSelectedBg:Le,darkItemHoverBg:"transparent",darkGroupTitleColor:vn,darkItemHoverColor:Kt,darkDangerItemHoverColor:cn,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:Le,itemWidth:Pn?`calc(100% + ${Rn}px)`:`calc(100% - ${Fn*2}px)`}};var Xt=function(re){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Ce.I$)("Menu",Ae=>{const{colorBgElevated:Le,controlHeightLG:Qe,fontSize:nt,darkItemColor:bt,darkDangerItemColor:Oe,darkItemBg:Be,darkSubMenuItemBg:zt,darkItemSelectedColor:Zt,darkItemSelectedBg:qt,darkDangerItemSelectedBg:en,darkItemHoverBg:Tt,darkGroupTitleColor:an,darkItemHoverColor:Wt,darkItemDisabledColor:Ke,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:$t,darkDangerItemActiveBg:nn,popupBg:Re,darkPopupBg:pt}=Ae,Mt=Ae.calc(nt).div(7).mul(5).equal(),Kt=(0,at.mergeToken)(Ae,{menuArrowSize:Mt,menuHorizontalHeight:Ae.calc(Qe).mul(1.15).equal(),menuArrowOffset:Ae.calc(Mt).mul(.25).equal(),menuSubMenuBg:Le,calc:Ae.calc,popupBg:Re}),cn=(0,at.mergeToken)(Kt,{itemColor:bt,itemHoverColor:Wt,groupTitleColor:an,itemSelectedColor:Zt,subMenuItemSelectedColor:Zt,itemBg:Be,popupBg:pt,subMenuItemBg:zt,itemActiveBg:"transparent",itemSelectedBg:qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Tt,itemDisabledColor:Ke,dangerItemColor:Oe,dangerItemHoverColor:mt,dangerItemSelectedColor:$t,dangerItemActiveBg:nn,dangerItemSelectedBg:en,menuSubMenuBg:zt,horizontalItemSelectedColor:Zt,horizontalItemSelectedBg:qt});return[Ye(Kt),de(Kt),Jt(Kt),Te(Kt,"light"),Te(cn,"dark"),Ue(Kt),(0,ut.Z)(Kt),(0,et.oN)(Kt,"slide-up"),(0,et.oN)(Kt,"slide-down"),(0,ot._y)(Kt,"zoom-big")]},lt,{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:xe,unitless:{groupTitleLineHeight:!0}})(re,le)},rt=ee(75030),_e=re=>{var le;const{popupClassName:xe,icon:ft,title:Ae,theme:Le}=re,Qe=b.useContext(tt),{prefixCls:nt,inlineCollapsed:bt,theme:Oe}=Qe,Be=(0,Fe.Xl)();let zt;if(!ft)zt=bt&&!Be.length&&Ae&&typeof Ae=="string"?b.createElement("div",{className:`${nt}-inline-collapsed-noicon`},Ae.charAt(0)):b.createElement("span",{className:`${nt}-title-content`},Ae);else{const en=b.isValidElement(Ae)&&Ae.type==="span";zt=b.createElement(b.Fragment,null,(0,ce.Tm)(ft,{className:ge()(b.isValidElement(ft)?(le=ft.props)===null||le===void 0?void 0:le.className:"",`${nt}-item-icon`)}),en?Ae:b.createElement("span",{className:`${nt}-title-content`},Ae))}const Zt=b.useMemo(()=>Object.assign(Object.assign({},Qe),{firstLevel:!1}),[Qe]),[qt]=(0,rt.Cn)("Menu");return b.createElement(tt.Provider,{value:Zt},b.createElement(Fe.Wd,Object.assign({},(0,Ze.Z)(re,["icon"]),{title:zt,popupClassName:ge()(nt,xe,`${nt}-${Le||Oe}`),popupStyle:Object.assign({zIndex:qt},re.popupStyle)})))},Yt=function(re,le){var xe={};for(var ft in re)Object.prototype.hasOwnProperty.call(re,ft)&&le.indexOf(ft)<0&&(xe[ft]=re[ft]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ft=Object.getOwnPropertySymbols(re);Ae<ft.length;Ae++)le.indexOf(ft[Ae])<0&&Object.prototype.propertyIsEnumerable.call(re,ft[Ae])&&(xe[ft[Ae]]=re[ft[Ae]]);return xe};function Ct(re){return re===null||re===!1}const ae={item:We,submenu:_e,divider:Ne};var te=(0,b.forwardRef)((re,le)=>{var xe;const ft=b.useContext(Ie.Z),Ae=ft||{},{getPrefixCls:Le,getPopupContainer:Qe,direction:nt,menu:bt}=b.useContext(Xe.E_),Oe=Le(),{prefixCls:Be,className:zt,style:Zt,theme:qt="light",expandIcon:en,_internalDisableMenuItemTitleTooltip:Tt,inlineCollapsed:an,siderCollapsed:Wt,rootClassName:Ke,mode:mt,selectable:$t,onClick:nn,overflowedIndicatorPopupClassName:Re}=re,pt=Yt(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Mt=(0,Ze.Z)(pt,["collapsedWidth"]);(xe=Ae.validator)===null||xe===void 0||xe.call(Ae,{mode:mt});const Kt=(0,Ee.Z)(function(){var mn;nn==null||nn.apply(void 0,arguments),(mn=Ae.onClick)===null||mn===void 0||mn.call(Ae)}),cn=Ae.mode||mt,Pn=$t!=null?$t:Ae.selectable,Rn=an!=null?an:Wt,Fn={horizontal:{motionName:`${Oe}-slide-up`},inline:(0,Pe.Z)(Oe),other:{motionName:`${Oe}-zoom-big`}},vn=Le("menu",Be||Ae.prefixCls),Mn=(0,we.Z)(vn),[dn,Vt,tn]=Xt(vn,Mn,!ft),on=ge()(`${vn}-${qt}`,bt==null?void 0:bt.className,zt),_t=b.useMemo(()=>{var mn,Sn;if(typeof en=="function"||Ct(en))return en||null;if(typeof Ae.expandIcon=="function"||Ct(Ae.expandIcon))return Ae.expandIcon||null;if(typeof(bt==null?void 0:bt.expandIcon)=="function"||Ct(bt==null?void 0:bt.expandIcon))return(bt==null?void 0:bt.expandIcon)||null;const zn=(mn=en!=null?en:Ae==null?void 0:Ae.expandIcon)!==null&&mn!==void 0?mn:bt==null?void 0:bt.expandIcon;return(0,ce.Tm)(zn,{className:ge()(`${vn}-submenu-expand-icon`,b.isValidElement(zn)?(Sn=zn.props)===null||Sn===void 0?void 0:Sn.className:void 0)})},[en,Ae==null?void 0:Ae.expandIcon,bt==null?void 0:bt.expandIcon,vn]),hn=b.useMemo(()=>({prefixCls:vn,inlineCollapsed:Rn||!1,direction:nt,firstLevel:!0,theme:qt,mode:cn,disableMenuItemTitleTooltip:Tt}),[vn,Rn,nt,Tt,qt]);return dn(b.createElement(Ie.Z.Provider,{value:null},b.createElement(tt.Provider,{value:hn},b.createElement(Fe.ZP,Object.assign({getPopupContainer:Qe,overflowedIndicator:b.createElement(qe.Z,null),overflowedIndicatorPopupClassName:ge()(vn,`${vn}-${qt}`,Re),mode:cn,selectable:Pn,onClick:Kt},Mt,{inlineCollapsed:Rn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Zt),className:on,prefixCls:vn,direction:nt,defaultMotions:Fn,expandIcon:_t,ref:le,rootClassName:ge()(Ke,Vt,Ae.rootClassName,tn,Mn),_internalComponents:ae})))))});const ie=(0,b.forwardRef)((re,le)=>{const xe=(0,b.useRef)(null),ft=b.useContext(fe.D);return(0,b.useImperativeHandle)(le,()=>({menu:xe.current,focus:Ae=>{var Le;(Le=xe.current)===null||Le===void 0||Le.focus(Ae)}})),b.createElement(te,Object.assign({ref:xe},re,ft))});ie.Item=We,ie.SubMenu=_e,ie.Divider=Ne,ie.ItemGroup=Fe.BW;var ue=ie},31709:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return bt}});var b=ee(59301),Fe=ee(60499),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"},qe=fe,Se=ee(7657),ge=function(Be,zt){return b.createElement(Se.Z,(0,Fe.Z)({},Be,{ref:zt,icon:qe}))},Ee=b.forwardRef(ge),Ze=Ee,Pe=ee(49198),ce=ee(33853),Xe=ee(38819),we=ee(92310),St=ee.n(we),tt=ee(18642),je=ee(43749),Me=ee(85899),Ne=ee(72190),it=ee(18929),yt=ee(10228),Ot=ee(26112),We=ee(48736),Ie=ee(17119),He=[10,20,50,100],Ge=function(Be){var zt=Be.pageSizeOptions,Zt=zt===void 0?He:zt,qt=Be.locale,en=Be.changeSize,Tt=Be.pageSize,an=Be.goButton,Wt=Be.quickGo,Ke=Be.rootPrefixCls,mt=Be.disabled,$t=Be.buildOptionText,nn=Be.showSizeChanger,Re=Be.sizeChangerRender,pt=b.useState(""),Mt=(0,Ne.Z)(pt,2),Kt=Mt[0],cn=Mt[1],Pn=function(){return!Kt||Number.isNaN(Kt)?void 0:Number(Kt)},Rn=typeof $t=="function"?$t:function(hn){return"".concat(hn," ").concat(qt.items_per_page)},Fn=function(mn){cn(mn.target.value)},vn=function(mn){an||Kt===""||(cn(""),!(mn.relatedTarget&&(mn.relatedTarget.className.indexOf("".concat(Ke,"-item-link"))>=0||mn.relatedTarget.className.indexOf("".concat(Ke,"-item"))>=0))&&(Wt==null||Wt(Pn())))},Mn=function(mn){Kt!==""&&(mn.keyCode===yt.Z.ENTER||mn.type==="click")&&(cn(""),Wt==null||Wt(Pn()))},dn=function(){return Zt.some(function(mn){return mn.toString()===Tt.toString()})?Zt:Zt.concat([Tt]).sort(function(mn,Sn){var zn=Number.isNaN(Number(mn))?0:Number(mn),Wn=Number.isNaN(Number(Sn))?0:Number(Sn);return zn-Wn})},Vt="".concat(Ke,"-options");if(!nn&&!Wt)return null;var tn=null,on=null,_t=null;return nn&&Re&&(tn=Re({disabled:mt,size:Tt,onSizeChange:function(mn){en==null||en(Number(mn))},"aria-label":qt.page_size,className:"".concat(Vt,"-size-changer"),options:dn().map(function(hn){return{label:Rn(hn),value:hn}})})),Wt&&(an&&(_t=typeof an=="boolean"?b.createElement("button",{type:"button",onClick:Mn,onKeyUp:Mn,disabled:mt,className:"".concat(Vt,"-quick-jumper-button")},qt.jump_to_confirm):b.createElement("span",{onClick:Mn,onKeyUp:Mn},an)),on=b.createElement("div",{className:"".concat(Vt,"-quick-jumper")},qt.jump_to,b.createElement("input",{disabled:mt,type:"text",value:Kt,onChange:Fn,onKeyUp:Mn,onBlur:vn,"aria-label":qt.page}),qt.page,_t)),b.createElement("li",{className:Vt},tn,on)},Et=Ge,ut=function(Be){var zt=Be.rootPrefixCls,Zt=Be.page,qt=Be.active,en=Be.className,Tt=Be.showTitle,an=Be.onClick,Wt=Be.onKeyPress,Ke=Be.itemRender,mt="".concat(zt,"-item"),$t=St()(mt,"".concat(mt,"-").concat(Zt),(0,tt.Z)((0,tt.Z)({},"".concat(mt,"-active"),qt),"".concat(mt,"-disabled"),!Zt),en),nn=function(){an(Zt)},Re=function(Kt){Wt(Kt,an,Zt)},pt=Ke(Zt,"page",b.createElement("a",{rel:"nofollow"},Zt));return pt?b.createElement("li",{title:Tt?String(Zt):null,className:$t,onClick:nn,onKeyDown:Re,tabIndex:0},pt):null},et=ut,ot=function(Be,zt,Zt){return Zt};function Ce(){}function at(Oe){var Be=Number(Oe);return typeof Be=="number"&&!Number.isNaN(Be)&&isFinite(Be)&&Math.floor(Be)===Be}function Ve(Oe,Be,zt){var Zt=typeof Oe=="undefined"?Be:Oe;return Math.floor((zt-1)/Zt)+1}var de=function(Be){var zt=Be.prefixCls,Zt=zt===void 0?"rc-pagination":zt,qt=Be.selectPrefixCls,en=qt===void 0?"rc-select":qt,Tt=Be.className,an=Be.current,Wt=Be.defaultCurrent,Ke=Wt===void 0?1:Wt,mt=Be.total,$t=mt===void 0?0:mt,nn=Be.pageSize,Re=Be.defaultPageSize,pt=Re===void 0?10:Re,Mt=Be.onChange,Kt=Mt===void 0?Ce:Mt,cn=Be.hideOnSinglePage,Pn=Be.align,Rn=Be.showPrevNextJumpers,Fn=Rn===void 0?!0:Rn,vn=Be.showQuickJumper,Mn=Be.showLessItems,dn=Be.showTitle,Vt=dn===void 0?!0:dn,tn=Be.onShowSizeChange,on=tn===void 0?Ce:tn,_t=Be.locale,hn=_t===void 0?Ie.Z:_t,mn=Be.style,Sn=Be.totalBoundaryShowSizeChanger,zn=Sn===void 0?50:Sn,Wn=Be.disabled,Zn=Be.simple,Jn=Be.showTotal,Gn=Be.showSizeChanger,hr=Gn===void 0?$t>zn:Gn,cr=Be.sizeChangerRender,sn=Be.pageSizeOptions,yn=Be.itemRender,Hn=yn===void 0?ot:yn,An=Be.jumpPrevIcon,ct=Be.jumpNextIcon,It=Be.prevIcon,ze=Be.nextIcon,vt=b.useRef(null),$e=(0,it.Z)(10,{value:nn,defaultValue:pt}),xt=(0,Ne.Z)($e,2),De=xt[0],Pt=xt[1],kt=(0,it.Z)(1,{value:an,defaultValue:Ke,postState:function(Xr){return Math.max(1,Math.min(Xr,Ve(void 0,De,$t)))}}),jt=(0,Ne.Z)(kt,2),gt=jt[0],ht=jt[1],wt=b.useState(gt),Rt=(0,Ne.Z)(wt,2),In=Rt[0],On=Rt[1];(0,b.useEffect)(function(){On(gt)},[gt]);var Nn=Kt!==Ce,tr="current"in Be,dr=Math.max(1,gt-(Mn?3:5)),mr=Math.min(Ve(void 0,De,$t),gt+(Mn?3:5));function er(oo,Xr){var qo=oo||b.createElement("button",{type:"button","aria-label":Xr,className:"".concat(Zt,"-item-link")});return typeof oo=="function"&&(qo=b.createElement(oo,(0,Me.Z)({},Be))),qo}function Yn(oo){var Xr=oo.target.value,qo=Ve(void 0,De,$t),ei;return Xr===""?ei=Xr:Number.isNaN(Number(Xr))?ei=In:Xr>=qo?ei=qo:ei=Number(Xr),ei}function Qn(oo){return at(oo)&&oo!==gt&&at($t)&&$t>0}var rr=$t>De?vn:!1;function wr(oo){(oo.keyCode===yt.Z.UP||oo.keyCode===yt.Z.DOWN)&&oo.preventDefault()}function ar(oo){var Xr=Yn(oo);switch(Xr!==In&&On(Xr),oo.keyCode){case yt.Z.ENTER:pr(Xr);break;case yt.Z.UP:pr(Xr-1);break;case yt.Z.DOWN:pr(Xr+1);break;default:break}}function Cr(oo){pr(Yn(oo))}function qn(oo){var Xr=Ve(oo,De,$t),qo=gt>Xr&&Xr!==0?Xr:gt;Pt(oo),On(qo),on==null||on(gt,oo),ht(qo),Kt==null||Kt(qo,oo)}function pr(oo){if(Qn(oo)&&!Wn){var Xr=Ve(void 0,De,$t),qo=oo;return oo>Xr?qo=Xr:oo<1&&(qo=1),qo!==In&&On(qo),ht(qo),Kt==null||Kt(qo,De),qo}return gt}var vr=gt>1,Kr=gt<Ve(void 0,De,$t);function _r(){vr&&pr(gt-1)}function Wr(){Kr&&pr(gt+1)}function Ur(){pr(dr)}function ao(){pr(mr)}function Hr(oo,Xr){if(oo.key==="Enter"||oo.charCode===yt.Z.ENTER||oo.keyCode===yt.Z.ENTER){for(var qo=arguments.length,ei=new Array(qo>2?qo-2:0),co=2;co<qo;co++)ei[co-2]=arguments[co];Xr.apply(void 0,ei)}}function to(oo){Hr(oo,_r)}function Ir(oo){Hr(oo,Wr)}function ro(oo){Hr(oo,Ur)}function ho(oo){Hr(oo,ao)}function En(oo){var Xr=Hn(oo,"prev",er(It,"prev page"));return b.isValidElement(Xr)?b.cloneElement(Xr,{disabled:!vr}):Xr}function Vn(oo){var Xr=Hn(oo,"next",er(ze,"next page"));return b.isValidElement(Xr)?b.cloneElement(Xr,{disabled:!Kr}):Xr}function zr(oo){(oo.type==="click"||oo.keyCode===yt.Z.ENTER)&&pr(In)}var no=null,vo=(0,Ot.Z)(Be,{aria:!0,data:!0}),Dr=Jn&&b.createElement("li",{className:"".concat(Zt,"-total-text")},Jn($t,[$t===0?0:(gt-1)*De+1,gt*De>$t?$t:gt*De])),kr=null,lr=Ve(void 0,De,$t);if(cn&&$t<=De)return null;var wn=[],jn={rootPrefixCls:Zt,onClick:pr,onKeyPress:Hr,showTitle:Vt,itemRender:Hn,page:-1},Kn=gt-1>0?gt-1:0,kn=gt+1<lr?gt+1:lr,fr=vn&&vn.goButton,Er=(0,je.Z)(Zn)==="object"?Zn.readOnly:!Zn,$n=fr,Bn=null;Zn&&(fr&&(typeof fr=="boolean"?$n=b.createElement("button",{type:"button",onClick:zr,onKeyUp:zr},hn.jump_to_confirm):$n=b.createElement("span",{onClick:zr,onKeyUp:zr},fr),$n=b.createElement("li",{title:Vt?"".concat(hn.jump_to).concat(gt,"/").concat(lr):null,className:"".concat(Zt,"-simple-pager")},$n)),Bn=b.createElement("li",{title:Vt?"".concat(gt,"/").concat(lr):null,className:"".concat(Zt,"-simple-pager")},Er?In:b.createElement("input",{type:"text","aria-label":hn.jump_to,value:In,disabled:Wn,onKeyDown:wr,onKeyUp:ar,onChange:ar,onBlur:Cr,size:3}),b.createElement("span",{className:"".concat(Zt,"-slash")},"/"),lr));var _n=Mn?1:2;if(lr<=3+_n*2){lr||wn.push(b.createElement(et,(0,Fe.Z)({},jn,{key:"noPager",page:1,className:"".concat(Zt,"-item-disabled")})));for(var or=1;or<=lr;or+=1)wn.push(b.createElement(et,(0,Fe.Z)({},jn,{key:or,page:or,active:gt===or})))}else{var eo=Mn?hn.prev_3:hn.prev_5,Oo=Mn?hn.next_3:hn.next_5,bo=Hn(dr,"jump-prev",er(An,"prev page")),ko=Hn(mr,"jump-next",er(ct,"next page"));Fn&&(no=bo?b.createElement("li",{title:Vt?eo:null,key:"prev",onClick:Ur,tabIndex:0,onKeyDown:ro,className:St()("".concat(Zt,"-jump-prev"),(0,tt.Z)({},"".concat(Zt,"-jump-prev-custom-icon"),!!An))},bo):null,kr=ko?b.createElement("li",{title:Vt?Oo:null,key:"next",onClick:ao,tabIndex:0,onKeyDown:ho,className:St()("".concat(Zt,"-jump-next"),(0,tt.Z)({},"".concat(Zt,"-jump-next-custom-icon"),!!ct))},ko):null);var Do=Math.max(1,gt-_n),Io=Math.min(gt+_n,lr);gt-1<=_n&&(Io=1+_n*2),lr-gt<=_n&&(Do=lr-_n*2);for(var Zo=Do;Zo<=Io;Zo+=1)wn.push(b.createElement(et,(0,Fe.Z)({},jn,{key:Zo,page:Zo,active:gt===Zo})));if(gt-1>=_n*2&&gt!==3&&(wn[0]=b.cloneElement(wn[0],{className:St()("".concat(Zt,"-item-after-jump-prev"),wn[0].props.className)}),wn.unshift(no)),lr-gt>=_n*2&&gt!==lr-2){var Lo=wn[wn.length-1];wn[wn.length-1]=b.cloneElement(Lo,{className:St()("".concat(Zt,"-item-before-jump-next"),Lo.props.className)}),wn.push(kr)}Do!==1&&wn.unshift(b.createElement(et,(0,Fe.Z)({},jn,{key:1,page:1}))),Io!==lr&&wn.push(b.createElement(et,(0,Fe.Z)({},jn,{key:lr,page:lr})))}var Ro=En(Kn);if(Ro){var si=!vr||!lr;Ro=b.createElement("li",{title:Vt?hn.prev_page:null,onClick:_r,tabIndex:si?null:0,onKeyDown:to,className:St()("".concat(Zt,"-prev"),(0,tt.Z)({},"".concat(Zt,"-disabled"),si)),"aria-disabled":si},Ro)}var xi=Vn(kn);if(xi){var Ii,Ti;Zn?(Ii=!Kr,Ti=vr?0:null):(Ii=!Kr||!lr,Ti=Ii?null:0),xi=b.createElement("li",{title:Vt?hn.next_page:null,onClick:Wr,tabIndex:Ti,onKeyDown:Ir,className:St()("".concat(Zt,"-next"),(0,tt.Z)({},"".concat(Zt,"-disabled"),Ii)),"aria-disabled":Ii},xi)}var Ci=St()(Zt,Tt,(0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)((0,tt.Z)({},"".concat(Zt,"-start"),Pn==="start"),"".concat(Zt,"-center"),Pn==="center"),"".concat(Zt,"-end"),Pn==="end"),"".concat(Zt,"-simple"),Zn),"".concat(Zt,"-disabled"),Wn));return b.createElement("ul",(0,Fe.Z)({className:Ci,style:mn,ref:vt},vo),Dr,Ro,Zn?Bn:wn,xi,b.createElement(Et,{locale:hn,rootPrefixCls:Zt,disabled:Wn,selectPrefixCls:en,changeSize:qn,pageSize:De,pageSizeOptions:sn,quickGo:rr?pr:null,goButton:$n,showSizeChanger:hr,sizeChangerRender:cr}))},Dt=de,Ue=ee(61852),st=ee(48755),Ut=ee(31756),Te=ee(13783),he=ee(9017),Nt=ee(82326),Jt=ee(57700),Ft=ee(36237),ye=ee(53075),Ye=ee(64910),lt=ee(39082),Xt=ee(63356),rt=ee(51636),At=ee(16931);const _e=Oe=>{const{componentCls:Be}=Oe;return{[`${Be}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Oe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Be}-item-link`]:{color:Oe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Be}-disabled`]:{cursor:"not-allowed",[`${Be}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Oe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Oe.colorBorder,backgroundColor:Oe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Oe.itemActiveBgDisabled},a:{color:Oe.itemActiveColorDisabled}}},[`${Be}-item-link`]:{color:Oe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Be}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Be}-simple-pager`]:{color:Oe.colorTextDisabled},[`${Be}-jump-prev, ${Be}-jump-next`]:{[`${Be}-item-link-icon`]:{opacity:0},[`${Be}-item-ellipsis`]:{opacity:1}}},[`&${Be}-simple`]:{[`${Be}-prev, ${Be}-next`]:{[`&${Be}-disabled ${Be}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Yt=Oe=>{const{componentCls:Be}=Oe;return{[`&${Be}-mini ${Be}-total-text, &${Be}-mini ${Be}-simple-pager`]:{height:Oe.itemSizeSM,lineHeight:(0,Ft.unit)(Oe.itemSizeSM)},[`&${Be}-mini ${Be}-item`]:{minWidth:Oe.itemSizeSM,height:Oe.itemSizeSM,margin:0,lineHeight:(0,Ft.unit)(Oe.calc(Oe.itemSizeSM).sub(2).equal())},[`&${Be}-mini ${Be}-prev, &${Be}-mini ${Be}-next`]:{minWidth:Oe.itemSizeSM,height:Oe.itemSizeSM,margin:0,lineHeight:(0,Ft.unit)(Oe.itemSizeSM)},[`&${Be}-mini:not(${Be}-disabled)`]:{[`${Be}-prev, ${Be}-next`]:{[`&:hover ${Be}-item-link`]:{backgroundColor:Oe.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Oe.colorBgTextActive},[`&${Be}-disabled:hover ${Be}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Be}-mini ${Be}-prev ${Be}-item-link,
&${Be}-mini ${Be}-next ${Be}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Oe.itemSizeSM,lineHeight:(0,Ft.unit)(Oe.itemSizeSM)}},[`&${Be}-mini ${Be}-jump-prev, &${Be}-mini ${Be}-jump-next`]:{height:Oe.itemSizeSM,marginInlineEnd:0,lineHeight:(0,Ft.unit)(Oe.itemSizeSM)},[`&${Be}-mini ${Be}-options`]:{marginInlineStart:Oe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Oe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Oe.itemSizeSM,lineHeight:(0,Ft.unit)(Oe.itemSizeSM),input:Object.assign(Object.assign({},(0,ye.x0)(Oe)),{width:Oe.paginationMiniQuickJumperInputWidth,height:Oe.controlHeightSM})}}}},Ct=Oe=>{const{componentCls:Be}=Oe;return{[`
&${Be}-simple ${Be}-prev,
&${Be}-simple ${Be}-next
`]:{height:Oe.itemSizeSM,lineHeight:(0,Ft.unit)(Oe.itemSizeSM),verticalAlign:"top",[`${Be}-item-link`]:{height:Oe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Oe.colorBgTextHover},"&:active":{backgroundColor:Oe.colorBgTextActive},"&::after":{height:Oe.itemSizeSM,lineHeight:(0,Ft.unit)(Oe.itemSizeSM)}}},[`&${Be}-simple ${Be}-simple-pager`]:{display:"inline-block",height:Oe.itemSizeSM,marginInlineEnd:Oe.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,Ft.unit)(Oe.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:Oe.itemInputBg,border:`${(0,Ft.unit)(Oe.lineWidth)} ${Oe.lineType} ${Oe.colorBorder}`,borderRadius:Oe.borderRadius,outline:"none",transition:`border-color ${Oe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Oe.colorPrimary},"&:focus":{borderColor:Oe.colorPrimaryHover,boxShadow:`${(0,Ft.unit)(Oe.inputOutlineOffset)} 0 ${(0,Ft.unit)(Oe.controlOutlineWidth)} ${Oe.controlOutline}`},"&[disabled]":{color:Oe.colorTextDisabled,backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,cursor:"not-allowed"}}}}},ae=Oe=>{const{componentCls:Be}=Oe;return{[`${Be}-jump-prev, ${Be}-jump-next`]:{outline:0,[`${Be}-item-container`]:{position:"relative",[`${Be}-item-link-icon`]:{color:Oe.colorPrimary,fontSize:Oe.fontSizeSM,opacity:0,transition:`all ${Oe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Be}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Oe.colorTextDisabled,letterSpacing:Oe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Oe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Oe.motionDurationMid}`}},"&:hover":{[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}}},[`
${Be}-prev,
${Be}-jump-prev,
${Be}-jump-next
`]:{marginInlineEnd:Oe.marginXS},[`
${Be}-prev,
${Be}-next,
${Be}-jump-prev,
${Be}-jump-next
`]:{display:"inline-block",minWidth:Oe.itemSize,height:Oe.itemSize,color:Oe.colorText,fontFamily:Oe.fontFamily,lineHeight:(0,Ft.unit)(Oe.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Oe.borderRadius,cursor:"pointer",transition:`all ${Oe.motionDurationMid}`},[`${Be}-prev, ${Be}-next`]:{outline:0,button:{color:Oe.colorText,cursor:"pointer",userSelect:"none"},[`${Be}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Oe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,Ft.unit)(Oe.lineWidth)} ${Oe.lineType} transparent`,borderRadius:Oe.borderRadius,outline:"none",transition:`all ${Oe.motionDurationMid}`},[`&:hover ${Be}-item-link`]:{backgroundColor:Oe.colorBgTextHover},[`&:active ${Be}-item-link`]:{backgroundColor:Oe.colorBgTextActive},[`&${Be}-disabled:hover`]:{[`${Be}-item-link`]:{backgroundColor:"transparent"}}},[`${Be}-slash`]:{marginInlineEnd:Oe.paginationSlashMarginInlineEnd,marginInlineStart:Oe.paginationSlashMarginInlineStart},[`${Be}-options`]:{display:"inline-block",marginInlineStart:Oe.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Oe.controlHeight,marginInlineStart:Oe.marginXS,lineHeight:(0,Ft.unit)(Oe.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,ye.ik)(Oe)),(0,lt.$U)(Oe,{borderColor:Oe.colorBorder,hoverBorderColor:Oe.colorPrimaryHover,activeBorderColor:Oe.colorPrimary,activeShadow:Oe.activeShadow})),{"&[disabled]":Object.assign({},(0,lt.Xy)(Oe)),width:Oe.calc(Oe.controlHeightLG).mul(1.25).equal(),height:Oe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Oe.marginXS,marginInlineEnd:Oe.marginXS})}}}},ne=Oe=>{const{componentCls:Be}=Oe;return{[`${Be}-item`]:{display:"inline-block",minWidth:Oe.itemSize,height:Oe.itemSize,marginInlineEnd:Oe.marginXS,fontFamily:Oe.fontFamily,lineHeight:(0,Ft.unit)(Oe.calc(Oe.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:Oe.itemBg,border:`${(0,Ft.unit)(Oe.lineWidth)} ${Oe.lineType} transparent`,borderRadius:Oe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,Ft.unit)(Oe.paginationItemPaddingInline)}`,color:Oe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Be}-item-active)`]:{"&:hover":{transition:`all ${Oe.motionDurationMid}`,backgroundColor:Oe.colorBgTextHover},"&:active":{backgroundColor:Oe.colorBgTextActive}},"&-active":{fontWeight:Oe.fontWeightStrong,backgroundColor:Oe.itemActiveBg,borderColor:Oe.colorPrimary,a:{color:Oe.colorPrimary},"&:hover":{borderColor:Oe.colorPrimaryHover},"&:hover a":{color:Oe.colorPrimaryHover}}}}},te=Oe=>{const{componentCls:Be}=Oe;return{[Be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Xt.Wf)(Oe)),{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:'""'},[`${Be}-total-text`]:{display:"inline-block",height:Oe.itemSize,marginInlineEnd:Oe.marginXS,lineHeight:(0,Ft.unit)(Oe.calc(Oe.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ne(Oe)),ae(Oe)),Ct(Oe)),Yt(Oe)),_e(Oe)),{[`@media only screen and (max-width: ${Oe.screenLG}px)`]:{[`${Be}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Oe.screenSM}px)`]:{[`${Be}-options`]:{display:"none"}}}),[`&${Oe.componentCls}-rtl`]:{direction:"rtl"}}},ie=Oe=>{const{componentCls:Be}=Oe;return{[`${Be}:not(${Be}-disabled)`]:{[`${Be}-item`]:Object.assign({},(0,Xt.Qy)(Oe)),[`${Be}-jump-prev, ${Be}-jump-next`]:{"&:focus-visible":Object.assign({[`${Be}-item-link-icon`]:{opacity:1},[`${Be}-item-ellipsis`]:{opacity:0}},(0,Xt.oN)(Oe))},[`${Be}-prev, ${Be}-next`]:{[`&:focus-visible ${Be}-item-link`]:Object.assign({},(0,Xt.oN)(Oe))}}}},ue=Oe=>Object.assign({itemBg:Oe.colorBgContainer,itemSize:Oe.controlHeight,itemSizeSM:Oe.controlHeightSM,itemActiveBg:Oe.colorBgContainer,itemLinkBg:Oe.colorBgContainer,itemActiveColorDisabled:Oe.colorTextDisabled,itemActiveBgDisabled:Oe.controlItemBgActiveDisabled,itemInputBg:Oe.colorBgContainer,miniOptionsSizeChangerTop:0},(0,Ye.T)(Oe)),re=Oe=>(0,rt.mergeToken)(Oe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Oe.calc(Oe.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:Oe.calc(Oe.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:Oe.calc(Oe.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:Oe.calc(Oe.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:Oe.marginSM,paginationSlashMarginInlineEnd:Oe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ye.e)(Oe));var le=(0,At.I$)("Pagination",Oe=>{const Be=re(Oe);return[te(Be),ie(Be)]},ue);const xe=Oe=>{const{componentCls:Be}=Oe;return{[`${Be}${Be}-bordered${Be}-disabled:not(${Be}-mini)`]:{"&, &:hover":{[`${Be}-item-link`]:{borderColor:Oe.colorBorder}},"&:focus-visible":{[`${Be}-item-link`]:{borderColor:Oe.colorBorder}},[`${Be}-item, ${Be}-item-link`]:{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,[`&:hover:not(${Be}-item-active)`]:{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,a:{color:Oe.colorTextDisabled}},[`&${Be}-item-active`]:{backgroundColor:Oe.itemActiveBgDisabled}},[`${Be}-prev, ${Be}-next`]:{"&:hover button":{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,color:Oe.colorTextDisabled},[`${Be}-item-link`]:{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder}}},[`${Be}${Be}-bordered:not(${Be}-mini)`]:{[`${Be}-prev, ${Be}-next`]:{"&:hover button":{borderColor:Oe.colorPrimaryHover,backgroundColor:Oe.itemBg},[`${Be}-item-link`]:{backgroundColor:Oe.itemLinkBg,borderColor:Oe.colorBorder},[`&:hover ${Be}-item-link`]:{borderColor:Oe.colorPrimary,backgroundColor:Oe.itemBg,color:Oe.colorPrimary},[`&${Be}-disabled`]:{[`${Be}-item-link`]:{borderColor:Oe.colorBorder,color:Oe.colorTextDisabled}}},[`${Be}-item`]:{backgroundColor:Oe.itemBg,border:`${(0,Ft.unit)(Oe.lineWidth)} ${Oe.lineType} ${Oe.colorBorder}`,[`&:hover:not(${Be}-item-active)`]:{borderColor:Oe.colorPrimary,backgroundColor:Oe.itemBg,a:{color:Oe.colorPrimary}},"&-active":{borderColor:Oe.colorPrimary}}}}};var ft=(0,At.bk)(["Pagination","bordered"],Oe=>{const Be=re(Oe);return[xe(Be)]},ue);function Ae(Oe){return(0,b.useMemo)(()=>typeof Oe=="boolean"?[Oe,{}]:Oe&&typeof Oe=="object"?[!0,Oe]:[void 0,void 0],[Oe])}var Le=function(Oe,Be){var zt={};for(var Zt in Oe)Object.prototype.hasOwnProperty.call(Oe,Zt)&&Be.indexOf(Zt)<0&&(zt[Zt]=Oe[Zt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Zt=Object.getOwnPropertySymbols(Oe);qt<Zt.length;qt++)Be.indexOf(Zt[qt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Zt[qt])&&(zt[Zt[qt]]=Oe[Zt[qt]]);return zt},nt=Oe=>{const{align:Be,prefixCls:zt,selectPrefixCls:Zt,className:qt,rootClassName:en,style:Tt,size:an,locale:Wt,responsive:Ke,showSizeChanger:mt,selectComponentClass:$t,pageSizeOptions:nn}=Oe,Re=Le(Oe,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:pt}=(0,Te.Z)(Ke),[,Mt]=(0,Jt.ZP)(),{getPrefixCls:Kt,direction:cn,showSizeChanger:Pn,className:Rn,style:Fn}=(0,st.dj)("pagination"),vn=Kt("pagination",zt),[Mn,dn,Vt]=le(vn),tn=(0,Ut.Z)(an),on=tn==="small"||!!(pt&&!tn&&Ke),[_t]=(0,he.Z)("Pagination",Ue.Z),hn=Object.assign(Object.assign({},_t),Wt),[mn,Sn]=Ae(mt),[zn,Wn]=Ae(Pn),Zn=mn!=null?mn:zn,Jn=Sn!=null?Sn:Wn,Gn=$t||Nt.default,hr=b.useMemo(()=>nn?nn.map(ct=>Number(ct)):void 0,[nn]),cr=ct=>{var It;const{disabled:ze,size:vt,onSizeChange:$e,"aria-label":xt,className:De,options:Pt}=ct,{className:kt,onChange:jt}=Jn||{},gt=(It=Pt.find(ht=>String(ht.value)===String(vt)))===null||It===void 0?void 0:It.value;return b.createElement(Gn,Object.assign({disabled:ze,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ht=>ht.parentNode,"aria-label":xt,options:Pt},Jn,{value:gt,onChange:(ht,wt)=>{$e==null||$e(ht),jt==null||jt(ht,wt)},size:on?"small":"middle",className:St()(De,kt)}))},sn=b.useMemo(()=>{const ct=b.createElement("span",{className:`${vn}-item-ellipsis`},"\u2022\u2022\u2022"),It=b.createElement("button",{className:`${vn}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?b.createElement(Xe.Z,null):b.createElement(ce.Z,null)),ze=b.createElement("button",{className:`${vn}-item-link`,type:"button",tabIndex:-1},cn==="rtl"?b.createElement(ce.Z,null):b.createElement(Xe.Z,null)),vt=b.createElement("a",{className:`${vn}-item-link`},b.createElement("div",{className:`${vn}-item-container`},cn==="rtl"?b.createElement(Pe.Z,{className:`${vn}-item-link-icon`}):b.createElement(Ze,{className:`${vn}-item-link-icon`}),ct)),$e=b.createElement("a",{className:`${vn}-item-link`},b.createElement("div",{className:`${vn}-item-container`},cn==="rtl"?b.createElement(Ze,{className:`${vn}-item-link-icon`}):b.createElement(Pe.Z,{className:`${vn}-item-link-icon`}),ct));return{prevIcon:It,nextIcon:ze,jumpPrevIcon:vt,jumpNextIcon:$e}},[cn,vn]),yn=Kt("select",Zt),Hn=St()({[`${vn}-${Be}`]:!!Be,[`${vn}-mini`]:on,[`${vn}-rtl`]:cn==="rtl",[`${vn}-bordered`]:Mt.wireframe},Rn,qt,en,dn,Vt),An=Object.assign(Object.assign({},Fn),Tt);return Mn(b.createElement(b.Fragment,null,Mt.wireframe&&b.createElement(ft,{prefixCls:vn}),b.createElement(Dt,Object.assign({},sn,Re,{style:An,prefixCls:vn,selectPrefixCls:yn,className:Hn,locale:hn,pageSizeOptions:hr,showSizeChanger:Zn,sizeChangerRender:cr}))))},bt=nt},69106:function(Cn,Qt,ee){"use strict";ee.d(Qt,{aV:function(){return Pe},t5:function(){return ce}});var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(29125),Se=ee(54500),ge=ee(48755),Ee=ee(85074),Ze=function(we,St){var tt={};for(var je in we)Object.prototype.hasOwnProperty.call(we,je)&&St.indexOf(je)<0&&(tt[je]=we[je]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,je=Object.getOwnPropertySymbols(we);Me<je.length;Me++)St.indexOf(je[Me])<0&&Object.prototype.propertyIsEnumerable.call(we,je[Me])&&(tt[je[Me]]=we[je[Me]]);return tt};const Pe=we=>{let{title:St,content:tt,prefixCls:je}=we;return!St&&!tt?null:b.createElement(b.Fragment,null,St&&b.createElement("div",{className:`${je}-title`},St),tt&&b.createElement("div",{className:`${je}-inner-content`},tt))},ce=we=>{const{hashId:St,prefixCls:tt,className:je,style:Me,placement:Ne="top",title:it,content:yt,children:Ot}=we,We=(0,Se.Z)(it),Ie=(0,Se.Z)(yt),He=fe()(St,tt,`${tt}-pure`,`${tt}-placement-${Ne}`,je);return b.createElement("div",{className:He,style:Me},b.createElement("div",{className:`${tt}-arrow`}),b.createElement(qe.G,Object.assign({},we,{className:St,prefixCls:tt}),Ot||b.createElement(Pe,{prefixCls:tt,title:We,content:Ie})))},Xe=we=>{const{prefixCls:St,className:tt}=we,je=Ze(we,["prefixCls","className"]),{getPrefixCls:Me}=b.useContext(ge.E_),Ne=Me("popover",St),[it,yt,Ot]=(0,Ee.Z)(Ne);return it(b.createElement(ce,Object.assign({},je,{prefixCls:Ne,hashId:yt,className:fe()(tt,Ot)})))};Qt.ZP=Xe},37639:function(Cn,Qt,ee){"use strict";var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(18929),Se=ee(10228),ge=ee(54500),Ee=ee(86641),Ze=ee(22703),Pe=ee(25399),ce=ee(69106),Xe=ee(48755),we=ee(85074),St=function(Me,Ne){var it={};for(var yt in Me)Object.prototype.hasOwnProperty.call(Me,yt)&&Ne.indexOf(yt)<0&&(it[yt]=Me[yt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ot=0,yt=Object.getOwnPropertySymbols(Me);Ot<yt.length;Ot++)Ne.indexOf(yt[Ot])<0&&Object.prototype.propertyIsEnumerable.call(Me,yt[Ot])&&(it[yt[Ot]]=Me[yt[Ot]]);return it};const je=b.forwardRef((Me,Ne)=>{var it,yt;const{prefixCls:Ot,title:We,content:Ie,overlayClassName:He,placement:Ge="top",trigger:Et="hover",children:ut,mouseEnterDelay:et=.1,mouseLeaveDelay:ot=.1,onOpenChange:Ce,overlayStyle:at={},styles:Ve,classNames:de}=Me,Dt=St(Me,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Ue,className:st,style:Ut,classNames:Te,styles:he}=(0,Xe.dj)("popover"),Nt=Ue("popover",Ot),[Jt,Ft,ye]=(0,we.Z)(Nt),Ye=Ue(),lt=fe()(He,Ft,ye,st,Te.root,de==null?void 0:de.root),Xt=fe()(Te.body,de==null?void 0:de.body),[rt,At]=(0,qe.Z)(!1,{value:(it=Me.open)!==null&&it!==void 0?it:Me.visible,defaultValue:(yt=Me.defaultOpen)!==null&&yt!==void 0?yt:Me.defaultVisible}),_e=(te,ie)=>{At(te,!0),Ce==null||Ce(te,ie)},Yt=te=>{te.keyCode===Se.Z.ESC&&_e(!1,te)},Ct=te=>{_e(te)},ae=(0,ge.Z)(We),ne=(0,ge.Z)(Ie);return Jt(b.createElement(Pe.Z,Object.assign({placement:Ge,trigger:Et,mouseEnterDelay:et,mouseLeaveDelay:ot},Dt,{prefixCls:Nt,classNames:{root:lt,body:Xt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},he.root),Ut),at),Ve==null?void 0:Ve.root),body:Object.assign(Object.assign({},he.body),Ve==null?void 0:Ve.body)},ref:Ne,open:rt,onOpenChange:Ct,overlay:ae||ne?b.createElement(ce.aV,{prefixCls:Nt,title:ae,content:ne}):null,transitionName:(0,Ee.m)(Ye,"zoom-big",Dt.transitionName),"data-popover-inject":!0}),(0,Ze.Tm)(ut,{onKeyDown:te=>{var ie,ue;b.isValidElement(ut)&&((ue=ut==null?void 0:(ie=ut.props).onKeyDown)===null||ue===void 0||ue.call(ie,te)),Yt(te)}})))});je._InternalPanelDoNotUseOrYouWillBeFired=ce.ZP,Qt.Z=je},85074:function(Cn,Qt,ee){"use strict";var b=ee(63356),Fe=ee(34925),fe=ee(37645),qe=ee(36305),Se=ee(34998),ge=ee(16931),Ee=ee(51636);const Ze=Xe=>{const{componentCls:we,popoverColor:St,titleMinWidth:tt,fontWeightStrong:je,innerPadding:Me,boxShadowSecondary:Ne,colorTextHeading:it,borderRadiusLG:yt,zIndexPopup:Ot,titleMarginBottom:We,colorBgElevated:Ie,popoverBg:He,titleBorderBottom:Ge,innerContentPadding:Et,titlePadding:ut}=Xe;return[{[we]:Object.assign(Object.assign({},(0,b.Wf)(Xe)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Ot,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":Ie,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${we}-content`]:{position:"relative"},[`${we}-inner`]:{backgroundColor:He,backgroundClip:"padding-box",borderRadius:yt,boxShadow:Ne,padding:Me},[`${we}-title`]:{minWidth:tt,marginBottom:We,color:it,fontWeight:je,borderBottom:Ge,padding:ut},[`${we}-inner-content`]:{color:St,padding:Et}})},(0,fe.ZP)(Xe,"var(--antd-arrow-background-color)"),{[`${we}-pure`]:{position:"relative",maxWidth:"none",margin:Xe.sizePopupArrow,display:"inline-block",[`${we}-content`]:{display:"inline-block"}}}]},Pe=Xe=>{const{componentCls:we}=Xe;return{[we]:Se.i.map(St=>{const tt=Xe[`${St}6`];return{[`&${we}-${St}`]:{"--antd-arrow-background-color":tt,[`${we}-inner`]:{backgroundColor:tt},[`${we}-arrow`]:{background:"transparent"}}}})}},ce=Xe=>{const{lineWidth:we,controlHeight:St,fontHeight:tt,padding:je,wireframe:Me,zIndexPopupBase:Ne,borderRadiusLG:it,marginXS:yt,lineType:Ot,colorSplit:We,paddingSM:Ie}=Xe,He=St-tt,Ge=He/2,Et=He/2-we,ut=je;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Ne+30},(0,qe.w)(Xe)),(0,fe.wZ)({contentRadius:it,limitVerticalRadius:!0})),{innerPadding:Me?0:12,titleMarginBottom:Me?0:yt,titlePadding:Me?`${Ge}px ${ut}px ${Et}px`:0,titleBorderBottom:Me?`${we}px ${Ot} ${We}`:"none",innerContentPadding:Me?`${Ie}px ${ut}px`:0})};Qt.Z=(0,ge.I$)("Popover",Xe=>{const{colorBgElevated:we,colorText:St}=Xe,tt=(0,Ee.mergeToken)(Xe,{popoverBg:we,popoverColor:St});return[Ze(tt),Pe(tt),(0,Fe._y)(tt,"zoom-big")]},ce,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Wt}});var b=ee(59301),Fe=ee(17835),fe=ee(29679),qe=ee(40001),Se=ee(19248),ge=ee(99267),Ee=ee(92310),Ze=ee.n(Ee),Pe=ee(2738),ce=ee(48755),Xe=ee(60499),we=ee(85899),St=ee(42244),tt={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},je=function(){var mt=(0,b.useRef)([]),$t=(0,b.useRef)(null);return(0,b.useEffect)(function(){var nn=Date.now(),Re=!1;mt.current.forEach(function(pt){if(pt){Re=!0;var Mt=pt.style;Mt.transitionDuration=".3s, .3s, .3s, .06s",$t.current&&nn-$t.current<100&&(Mt.transitionDuration="0s, 0s")}}),Re&&($t.current=Date.now())}),mt.current},Me=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ne=function(mt){var $t=(0,we.Z)((0,we.Z)({},tt),mt),nn=$t.className,Re=$t.percent,pt=$t.prefixCls,Mt=$t.strokeColor,Kt=$t.strokeLinecap,cn=$t.strokeWidth,Pn=$t.style,Rn=$t.trailColor,Fn=$t.trailWidth,vn=$t.transition,Mn=(0,St.Z)($t,Me);delete Mn.gapPosition;var dn=Array.isArray(Re)?Re:[Re],Vt=Array.isArray(Mt)?Mt:[Mt],tn=je(),on=cn/2,_t=100-cn/2,hn="M ".concat(Kt==="round"?on:0,",").concat(on,`
L `).concat(Kt==="round"?_t:100,",").concat(on),mn="0 0 100 ".concat(cn),Sn=0;return b.createElement("svg",(0,Xe.Z)({className:Ze()("".concat(pt,"-line"),nn),viewBox:mn,preserveAspectRatio:"none",style:Pn},Mn),b.createElement("path",{className:"".concat(pt,"-line-trail"),d:hn,strokeLinecap:Kt,stroke:Rn,strokeWidth:Fn||cn,fillOpacity:"0"}),dn.map(function(zn,Wn){var Zn=1;switch(Kt){case"round":Zn=1-cn/100;break;case"square":Zn=1-cn/2/100;break;default:Zn=1;break}var Jn={strokeDasharray:"".concat(zn*Zn,"px, 100px"),strokeDashoffset:"-".concat(Sn,"px"),transition:vn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Gn=Vt[Wn]||Vt[Vt.length-1];return Sn+=zn,b.createElement("path",{key:Wn,className:"".concat(pt,"-line-path"),d:hn,strokeLinecap:Kt,stroke:Gn,strokeWidth:cn,fillOpacity:"0",ref:function(cr){tn[Wn]=cr},style:Jn})}))},it=Ne,yt=ee(43749),Ot=ee(72190),We=ee(47273),Ie=0,He=(0,We.Z)();function Ge(){var Ke;return He?(Ke=Ie,Ie+=1):Ke="TEST_OR_SSR",Ke}var Et=function(Ke){var mt=b.useState(),$t=(0,Ot.Z)(mt,2),nn=$t[0],Re=$t[1];return b.useEffect(function(){Re("rc_progress_".concat(Ge()))},[]),Ke||nn},ut=function(mt){var $t=mt.bg,nn=mt.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:$t}},nn)};function et(Ke,mt){return Object.keys(Ke).map(function($t){var nn=parseFloat($t),Re="".concat(Math.floor(nn*mt),"%");return"".concat(Ke[$t]," ").concat(Re)})}var ot=b.forwardRef(function(Ke,mt){var $t=Ke.prefixCls,nn=Ke.color,Re=Ke.gradientId,pt=Ke.radius,Mt=Ke.style,Kt=Ke.ptg,cn=Ke.strokeLinecap,Pn=Ke.strokeWidth,Rn=Ke.size,Fn=Ke.gapDegree,vn=nn&&(0,yt.Z)(nn)==="object",Mn=vn?"#FFF":void 0,dn=Rn/2,Vt=b.createElement("circle",{className:"".concat($t,"-circle-path"),r:pt,cx:dn,cy:dn,stroke:Mn,strokeLinecap:cn,strokeWidth:Pn,opacity:Kt===0?0:1,style:Mt,ref:mt});if(!vn)return Vt;var tn="".concat(Re,"-conic"),on=Fn?"".concat(180+Fn/2,"deg"):"0deg",_t=et(nn,(360-Fn)/360),hn=et(nn,1),mn="conic-gradient(from ".concat(on,", ").concat(_t.join(", "),")"),Sn="linear-gradient(to ".concat(Fn?"bottom":"top",", ").concat(hn.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:tn},Vt),b.createElement("foreignObject",{x:0,y:0,width:Rn,height:Rn,mask:"url(#".concat(tn,")")},b.createElement(ut,{bg:Sn},b.createElement(ut,{bg:mn}))))}),Ce=ot,at=100,Ve=function(mt,$t,nn,Re,pt,Mt,Kt,cn,Pn,Rn){var Fn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,vn=nn/100*360*((360-Mt)/360),Mn=Mt===0?0:{bottom:0,top:180,left:90,right:-90}[Kt],dn=(100-Re)/100*$t;Pn==="round"&&Re!==100&&(dn+=Rn/2,dn>=$t&&(dn=$t-.01));var Vt=at/2;return{stroke:typeof cn=="string"?cn:void 0,strokeDasharray:"".concat($t,"px ").concat(mt),strokeDashoffset:dn+Fn,transform:"rotate(".concat(pt+vn+Mn,"deg)"),transformOrigin:"".concat(Vt,"px ").concat(Vt,"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 Dt(Ke){var mt=Ke!=null?Ke:[];return Array.isArray(mt)?mt:[mt]}var Ue=function(mt){var $t=(0,we.Z)((0,we.Z)({},tt),mt),nn=$t.id,Re=$t.prefixCls,pt=$t.steps,Mt=$t.strokeWidth,Kt=$t.trailWidth,cn=$t.gapDegree,Pn=cn===void 0?0:cn,Rn=$t.gapPosition,Fn=$t.trailColor,vn=$t.strokeLinecap,Mn=$t.style,dn=$t.className,Vt=$t.strokeColor,tn=$t.percent,on=(0,St.Z)($t,de),_t=at/2,hn=Et(nn),mn="".concat(hn,"-gradient"),Sn=_t-Mt/2,zn=Math.PI*2*Sn,Wn=Pn>0?90+Pn/2:-90,Zn=zn*((360-Pn)/360),Jn=(0,yt.Z)(pt)==="object"?pt:{count:pt,gap:2},Gn=Jn.count,hr=Jn.gap,cr=Dt(tn),sn=Dt(Vt),yn=sn.find(function($e){return $e&&(0,yt.Z)($e)==="object"}),Hn=yn&&(0,yt.Z)(yn)==="object",An=Hn?"butt":vn,ct=Ve(zn,Zn,0,100,Wn,Pn,Rn,Fn,An,Mt),It=je(),ze=function(){var xt=0;return cr.map(function(De,Pt){var kt=sn[Pt]||sn[sn.length-1],jt=Ve(zn,Zn,xt,De,Wn,Pn,Rn,kt,An,Mt);return xt+=De,b.createElement(Ce,{key:Pt,color:kt,ptg:De,radius:Sn,prefixCls:Re,gradientId:mn,style:jt,strokeLinecap:An,strokeWidth:Mt,gapDegree:Pn,ref:function(ht){It[Pt]=ht},size:at})}).reverse()},vt=function(){var xt=Math.round(Gn*(cr[0]/100)),De=100/Gn,Pt=0;return new Array(Gn).fill(null).map(function(kt,jt){var gt=jt<=xt-1?sn[0]:Fn,ht=gt&&(0,yt.Z)(gt)==="object"?"url(#".concat(mn,")"):void 0,wt=Ve(zn,Zn,Pt,De,Wn,Pn,Rn,gt,"butt",Mt,hr);return Pt+=(Zn-wt.strokeDashoffset+hr)*100/Zn,b.createElement("circle",{key:jt,className:"".concat(Re,"-circle-path"),r:Sn,cx:_t,cy:_t,stroke:ht,strokeWidth:Mt,opacity:1,style:wt,ref:function(In){It[jt]=In}})})};return b.createElement("svg",(0,Xe.Z)({className:Ze()("".concat(Re,"-circle"),dn),viewBox:"0 0 ".concat(at," ").concat(at),style:Mn,id:nn,role:"presentation"},on),!Gn&&b.createElement("circle",{className:"".concat(Re,"-circle-trail"),r:Sn,cx:_t,cy:_t,stroke:Fn,strokeLinecap:An,strokeWidth:Kt||Mt,style:ct}),Gn?vt():ze())},st=Ue,Ut={Line:it,Circle:st},Te=ee(25399),he=ee(68361);function Nt(Ke){return!Ke||Ke<0?0:Ke>100?100:Ke}function Jt(Ke){let{success:mt,successPercent:$t}=Ke,nn=$t;return mt&&"progress"in mt&&(nn=mt.progress),mt&&"percent"in mt&&(nn=mt.percent),nn}const Ft=Ke=>{let{percent:mt,success:$t,successPercent:nn}=Ke;const Re=Nt(Jt({success:$t,successPercent:nn}));return[Re,Nt(Nt(mt)-Re)]},ye=Ke=>{let{success:mt={},strokeColor:$t}=Ke;const{strokeColor:nn}=mt;return[nn||he.presetPrimaryColors.green,$t||null]},Ye=(Ke,mt,$t)=>{var nn,Re,pt,Mt;let Kt=-1,cn=-1;if(mt==="step"){const Pn=$t.steps,Rn=$t.strokeWidth;typeof Ke=="string"||typeof Ke=="undefined"?(Kt=Ke==="small"?2:14,cn=Rn!=null?Rn:8):typeof Ke=="number"?[Kt,cn]=[Ke,Ke]:[Kt=14,cn=8]=Array.isArray(Ke)?Ke:[Ke.width,Ke.height],Kt*=Pn}else if(mt==="line"){const Pn=$t==null?void 0:$t.strokeWidth;typeof Ke=="string"||typeof Ke=="undefined"?cn=Pn||(Ke==="small"?6:8):typeof Ke=="number"?[Kt,cn]=[Ke,Ke]:[Kt=-1,cn=8]=Array.isArray(Ke)?Ke:[Ke.width,Ke.height]}else(mt==="circle"||mt==="dashboard")&&(typeof Ke=="string"||typeof Ke=="undefined"?[Kt,cn]=Ke==="small"?[60,60]:[120,120]:typeof Ke=="number"?[Kt,cn]=[Ke,Ke]:Array.isArray(Ke)&&(Kt=(Re=(nn=Ke[0])!==null&&nn!==void 0?nn:Ke[1])!==null&&Re!==void 0?Re:120,cn=(Mt=(pt=Ke[0])!==null&&pt!==void 0?pt:Ke[1])!==null&&Mt!==void 0?Mt:120));return[Kt,cn]},lt=3,Xt=Ke=>lt/Ke*100;var At=Ke=>{const{prefixCls:mt,trailColor:$t=null,strokeLinecap:nn="round",gapPosition:Re,gapDegree:pt,width:Mt=120,type:Kt,children:cn,success:Pn,size:Rn=Mt,steps:Fn}=Ke,[vn,Mn]=Ye(Rn,"circle");let{strokeWidth:dn}=Ke;dn===void 0&&(dn=Math.max(Xt(vn),6));const Vt={width:vn,height:Mn,fontSize:vn*.15+6},tn=b.useMemo(()=>{if(pt||pt===0)return pt;if(Kt==="dashboard")return 75},[pt,Kt]),on=Ft(Ke),_t=Re||Kt==="dashboard"&&"bottom"||void 0,hn=Object.prototype.toString.call(Ke.strokeColor)==="[object Object]",mn=ye({success:Pn,strokeColor:Ke.strokeColor}),Sn=Ze()(`${mt}-inner`,{[`${mt}-circle-gradient`]:hn}),zn=b.createElement(st,{steps:Fn,percent:Fn?on[1]:on,strokeWidth:dn,trailWidth:dn,strokeColor:Fn?mn[1]:mn,strokeLinecap:nn,trailColor:$t,prefixCls:mt,gapDegree:tn,gapPosition:_t}),Wn=vn<=20,Zn=b.createElement("div",{className:Sn,style:Vt},zn,!Wn&&cn);return Wn?b.createElement(Te.Z,{title:cn},Zn):Zn},_e=ee(36237),Yt=ee(63356),Ct=ee(16931),ae=ee(51636);const ne="--progress-line-stroke-color",te="--progress-percent",ie=Ke=>{const mt=Ke?"100%":"-100%";return new _e.Keyframes(`antProgress${Ke?"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}})},ue=Ke=>{const{componentCls:mt,iconCls:$t}=Ke;return{[mt]:Object.assign(Object.assign({},(0,Yt.Wf)(Ke)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ke.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:Ke.remainingColor,borderRadius:Ke.lineBorderRadius},[`${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:Ke.defaultColor}},[`${mt}-success-bg, ${mt}-bg`]:{position:"relative",background:Ke.defaultColor,borderRadius:Ke.lineBorderRadius,transition:`all ${Ke.motionDurationSlow} ${Ke.motionEaseInOutCirc}`},[`${mt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${mt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ke.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:Ke.colorWhite,[`&${mt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${mt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ke.colorSuccess},[`${mt}-text`]:{display:"inline-block",marginInlineStart:Ke.marginXS,color:Ke.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[$t]:{fontSize:Ke.fontSize},[`&${mt}-text-outer`]:{width:"max-content"},[`&${mt}-text-outer${mt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ke.marginXS}},[`${mt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,_e.unit)(Ke.paddingXXS)}`,[`&${mt}-text-start`]:{justifyContent:"start"},[`&${mt}-text-end`]:{justifyContent:"end"}},[`&${mt}-status-active`]:{[`${mt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ke.colorBgContainer,borderRadius:Ke.lineBorderRadius,opacity:0,animationName:ie(),animationDuration:Ke.progressActiveMotionDuration,animationTimingFunction:Ke.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${mt}-rtl${mt}-status-active`]:{[`${mt}-bg::before`]:{animationName:ie(!0)}},[`&${mt}-status-exception`]:{[`${mt}-bg`]:{backgroundColor:Ke.colorError},[`${mt}-text`]:{color:Ke.colorError}},[`&${mt}-status-exception ${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:Ke.colorError}},[`&${mt}-status-success`]:{[`${mt}-bg`]:{backgroundColor:Ke.colorSuccess},[`${mt}-text`]:{color:Ke.colorSuccess}},[`&${mt}-status-success ${mt}-inner:not(${mt}-circle-gradient)`]:{[`${mt}-circle-path`]:{stroke:Ke.colorSuccess}}})}},re=Ke=>{const{componentCls:mt,iconCls:$t}=Ke;return{[mt]:{[`${mt}-circle-trail`]:{stroke:Ke.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:Ke.circleTextColor,fontSize:Ke.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[$t]:{fontSize:Ke.circleIconFontSize}},[`${mt}-circle&-status-exception`]:{[`${mt}-text`]:{color:Ke.colorError}},[`${mt}-circle&-status-success`]:{[`${mt}-text`]:{color:Ke.colorSuccess}}},[`${mt}-inline-circle`]:{lineHeight:1,[`${mt}-inner`]:{verticalAlign:"bottom"}}}},le=Ke=>{const{componentCls:mt}=Ke;return{[mt]:{[`${mt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ke.progressStepMinWidth,marginInlineEnd:Ke.progressStepMarginInlineEnd,backgroundColor:Ke.remainingColor,transition:`all ${Ke.motionDurationSlow}`,"&-active":{backgroundColor:Ke.defaultColor}}}}}},xe=Ke=>{const{componentCls:mt,iconCls:$t}=Ke;return{[mt]:{[`${mt}-small&-line, ${mt}-small&-line ${mt}-text ${$t}`]:{fontSize:Ke.fontSizeSM}}}},ft=Ke=>({circleTextColor:Ke.colorText,defaultColor:Ke.colorInfo,remainingColor:Ke.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ke.fontSize/Ke.fontSizeSM}em`});var Ae=(0,Ct.I$)("Progress",Ke=>{const mt=Ke.calc(Ke.marginXXS).div(2).equal(),$t=(0,ae.mergeToken)(Ke,{progressStepMarginInlineEnd:mt,progressStepMinWidth:mt,progressActiveMotionDuration:"2.4s"});return[ue($t),re($t),le($t),xe($t)]},ft),Le=function(Ke,mt){var $t={};for(var nn in Ke)Object.prototype.hasOwnProperty.call(Ke,nn)&&mt.indexOf(nn)<0&&($t[nn]=Ke[nn]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,nn=Object.getOwnPropertySymbols(Ke);Re<nn.length;Re++)mt.indexOf(nn[Re])<0&&Object.prototype.propertyIsEnumerable.call(Ke,nn[Re])&&($t[nn[Re]]=Ke[nn[Re]]);return $t};const Qe=Ke=>{let mt=[];return Object.keys(Ke).forEach($t=>{const nn=parseFloat($t.replace(/%/g,""));Number.isNaN(nn)||mt.push({key:nn,value:Ke[$t]})}),mt=mt.sort(($t,nn)=>$t.key-nn.key),mt.map($t=>{let{key:nn,value:Re}=$t;return`${Re} ${nn}%`}).join(", ")},nt=(Ke,mt)=>{const{from:$t=he.presetPrimaryColors.blue,to:nn=he.presetPrimaryColors.blue,direction:Re=mt==="rtl"?"to left":"to right"}=Ke,pt=Le(Ke,["from","to","direction"]);if(Object.keys(pt).length!==0){const Kt=Qe(pt),cn=`linear-gradient(${Re}, ${Kt})`;return{background:cn,[ne]:cn}}const Mt=`linear-gradient(${Re}, ${$t}, ${nn})`;return{background:Mt,[ne]:Mt}};var Oe=Ke=>{const{prefixCls:mt,direction:$t,percent:nn,size:Re,strokeWidth:pt,strokeColor:Mt,strokeLinecap:Kt="round",children:cn,trailColor:Pn=null,percentPosition:Rn,success:Fn}=Ke,{align:vn,type:Mn}=Rn,dn=Mt&&typeof Mt!="string"?nt(Mt,$t):{[ne]:Mt,background:Mt},Vt=Kt==="square"||Kt==="butt"?0:void 0,tn=Re!=null?Re:[-1,pt||(Re==="small"?6:8)],[on,_t]=Ye(tn,"line",{strokeWidth:pt}),hn={backgroundColor:Pn||void 0,borderRadius:Vt},mn=Object.assign(Object.assign({width:`${Nt(nn)}%`,height:_t,borderRadius:Vt},dn),{[te]:Nt(nn)/100}),Sn=Jt(Ke),zn={width:`${Nt(Sn)}%`,height:_t,borderRadius:Vt,backgroundColor:Fn==null?void 0:Fn.strokeColor},Wn={width:on<0?"100%":on},Zn=b.createElement("div",{className:`${mt}-inner`,style:hn},b.createElement("div",{className:Ze()(`${mt}-bg`,`${mt}-bg-${Mn}`),style:mn},Mn==="inner"&&cn),Sn!==void 0&&b.createElement("div",{className:`${mt}-success-bg`,style:zn})),Jn=Mn==="outer"&&vn==="start",Gn=Mn==="outer"&&vn==="end";return Mn==="outer"&&vn==="center"?b.createElement("div",{className:`${mt}-layout-bottom`},Zn,cn):b.createElement("div",{className:`${mt}-outer`,style:Wn},Jn&&cn,Zn,Gn&&cn)},zt=Ke=>{const{size:mt,steps:$t,rounding:nn=Math.round,percent:Re=0,strokeWidth:pt=8,strokeColor:Mt,trailColor:Kt=null,prefixCls:cn,children:Pn}=Ke,Rn=nn($t*(Re/100)),Fn=mt==="small"?2:14,vn=mt!=null?mt:[Fn,pt],[Mn,dn]=Ye(vn,"step",{steps:$t,strokeWidth:pt}),Vt=Mn/$t,tn=Array.from({length:$t});for(let on=0;on<$t;on++){const _t=Array.isArray(Mt)?Mt[on]:Mt;tn[on]=b.createElement("div",{key:on,className:Ze()(`${cn}-steps-item`,{[`${cn}-steps-item-active`]:on<=Rn-1}),style:{backgroundColor:on<=Rn-1?_t:Kt,width:Vt,height:dn}})}return b.createElement("div",{className:`${cn}-steps-outer`},tn,Pn)},Zt=function(Ke,mt){var $t={};for(var nn in Ke)Object.prototype.hasOwnProperty.call(Ke,nn)&&mt.indexOf(nn)<0&&($t[nn]=Ke[nn]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,nn=Object.getOwnPropertySymbols(Ke);Re<nn.length;Re++)mt.indexOf(nn[Re])<0&&Object.prototype.propertyIsEnumerable.call(Ke,nn[Re])&&($t[nn[Re]]=Ke[nn[Re]]);return $t};const qt=null,en=["normal","exception","active","success"];var an=b.forwardRef((Ke,mt)=>{const{prefixCls:$t,className:nn,rootClassName:Re,steps:pt,strokeColor:Mt,percent:Kt=0,size:cn="default",showInfo:Pn=!0,type:Rn="line",status:Fn,format:vn,style:Mn,percentPosition:dn={}}=Ke,Vt=Zt(Ke,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:tn="end",type:on="outer"}=dn,_t=Array.isArray(Mt)?Mt[0]:Mt,hn=typeof Mt=="string"||Array.isArray(Mt)?Mt:void 0,mn=b.useMemo(()=>{if(_t){const ze=typeof _t=="string"?_t:Object.values(_t)[0];return new Fe.FastColor(ze).isLight()}return!1},[Mt]),Sn=b.useMemo(()=>{var ze,vt;const $e=Jt(Ke);return parseInt($e!==void 0?(ze=$e!=null?$e:0)===null||ze===void 0?void 0:ze.toString():(vt=Kt!=null?Kt:0)===null||vt===void 0?void 0:vt.toString(),10)},[Kt,Ke.success,Ke.successPercent]),zn=b.useMemo(()=>!en.includes(Fn)&&Sn>=100?"success":Fn||"normal",[Fn,Sn]),{getPrefixCls:Wn,direction:Zn,progress:Jn}=b.useContext(ce.E_),Gn=Wn("progress",$t),[hr,cr,sn]=Ae(Gn),yn=Rn==="line",Hn=yn&&!pt,An=b.useMemo(()=>{if(!Pn)return null;const ze=Jt(Ke);let vt;const $e=vn||(De=>`${De}%`),xt=yn&&mn&&on==="inner";return on==="inner"||vn||zn!=="exception"&&zn!=="success"?vt=$e(Nt(Kt),Nt(ze)):zn==="exception"?vt=yn?b.createElement(Se.Z,null):b.createElement(ge.Z,null):zn==="success"&&(vt=yn?b.createElement(fe.Z,null):b.createElement(qe.Z,null)),b.createElement("span",{className:Ze()(`${Gn}-text`,{[`${Gn}-text-bright`]:xt,[`${Gn}-text-${tn}`]:Hn,[`${Gn}-text-${on}`]:Hn}),title:typeof vt=="string"?vt:void 0},vt)},[Pn,Kt,Sn,zn,Rn,Gn,vn]);let ct;Rn==="line"?ct=pt?b.createElement(zt,Object.assign({},Ke,{strokeColor:hn,prefixCls:Gn,steps:typeof pt=="object"?pt.count:pt}),An):b.createElement(Oe,Object.assign({},Ke,{strokeColor:_t,prefixCls:Gn,direction:Zn,percentPosition:{align:tn,type:on}}),An):(Rn==="circle"||Rn==="dashboard")&&(ct=b.createElement(At,Object.assign({},Ke,{strokeColor:_t,prefixCls:Gn,progressStatus:zn}),An));const It=Ze()(Gn,`${Gn}-status-${zn}`,{[`${Gn}-${Rn==="dashboard"&&"circle"||Rn}`]:Rn!=="line",[`${Gn}-inline-circle`]:Rn==="circle"&&Ye(cn,"circle")[0]<=20,[`${Gn}-line`]:Hn,[`${Gn}-line-align-${tn}`]:Hn,[`${Gn}-line-position-${on}`]:Hn,[`${Gn}-steps`]:pt,[`${Gn}-show-info`]:Pn,[`${Gn}-${cn}`]:typeof cn=="string",[`${Gn}-rtl`]:Zn==="rtl"},Jn==null?void 0:Jn.className,nn,Re,cr,sn);return hr(b.createElement("div",Object.assign({ref:mt,style:Object.assign(Object.assign({},Jn==null?void 0:Jn.style),Mn),className:It,role:"progressbar","aria-valuenow":Sn,"aria-valuemin":0,"aria-valuemax":100},(0,Pe.Z)(Vt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),ct))}),Wt=an},63139:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ft}});var b=ee(59301),Fe=ee(60499),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"},qe=fe,Se=ee(7657),ge=function(Ye,lt){return b.createElement(Se.Z,(0,Fe.Z)({},Ye,{ref:lt,icon:qe}))},Ee=b.forwardRef(ge),Ze=Ee,Pe=ee(92310),ce=ee.n(Pe),Xe=ee(18642),we=ee(72190),St=ee(42244),tt=ee(18929),je=ee(10228),Me=ee(26112);function Ne(ye,Ye){var lt=ye.disabled,Xt=ye.prefixCls,rt=ye.character,At=ye.characterRender,_e=ye.index,Yt=ye.count,Ct=ye.value,ae=ye.allowHalf,ne=ye.focused,te=ye.onHover,ie=ye.onClick,ue=function(nt){te(nt,_e)},re=function(nt){ie(nt,_e)},le=function(nt){nt.keyCode===je.Z.ENTER&&ie(nt,_e)},xe=_e+1,ft=new Set([Xt]);Ct===0&&_e===0&&ne?ft.add("".concat(Xt,"-focused")):ae&&Ct+.5>=xe&&Ct<xe?(ft.add("".concat(Xt,"-half")),ft.add("".concat(Xt,"-active")),ne&&ft.add("".concat(Xt,"-focused"))):(xe<=Ct?ft.add("".concat(Xt,"-full")):ft.add("".concat(Xt,"-zero")),xe===Ct&&ne&&ft.add("".concat(Xt,"-focused")));var Ae=typeof rt=="function"?rt(ye):rt,Le=b.createElement("li",{className:ce()(Array.from(ft)),ref:Ye},b.createElement("div",{onClick:lt?null:re,onKeyDown:lt?null:le,onMouseMove:lt?null:ue,role:"radio","aria-checked":Ct>_e?"true":"false","aria-posinset":_e+1,"aria-setsize":Yt,tabIndex:lt?-1:0},b.createElement("div",{className:"".concat(Xt,"-first")},Ae),b.createElement("div",{className:"".concat(Xt,"-second")},Ae)));return At&&(Le=At(Le,ye)),Le}var it=b.forwardRef(Ne);function yt(){var ye=b.useRef({});function Ye(Xt){return ye.current[Xt]}function lt(Xt){return function(rt){ye.current[Xt]=rt}}return[Ye,lt]}function Ot(ye){var Ye=ye.pageXOffset,lt="scrollLeft";if(typeof Ye!="number"){var Xt=ye.document;Ye=Xt.documentElement[lt],typeof Ye!="number"&&(Ye=Xt.body[lt])}return Ye}function We(ye){var Ye,lt,Xt=ye.ownerDocument,rt=Xt.body,At=Xt&&Xt.documentElement,_e=ye.getBoundingClientRect();return Ye=_e.left,lt=_e.top,Ye-=At.clientLeft||rt.clientLeft||0,lt-=At.clientTop||rt.clientTop||0,{left:Ye,top:lt}}function Ie(ye){var Ye=We(ye),lt=ye.ownerDocument,Xt=lt.defaultView||lt.parentWindow;return Ye.left+=Ot(Xt),Ye.left}var He=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Ge(ye,Ye){var lt=ye.prefixCls,Xt=lt===void 0?"rc-rate":lt,rt=ye.className,At=ye.defaultValue,_e=ye.value,Yt=ye.count,Ct=Yt===void 0?5:Yt,ae=ye.allowHalf,ne=ae===void 0?!1:ae,te=ye.allowClear,ie=te===void 0?!0:te,ue=ye.keyboard,re=ue===void 0?!0:ue,le=ye.character,xe=le===void 0?"\u2605":le,ft=ye.characterRender,Ae=ye.disabled,Le=ye.direction,Qe=Le===void 0?"ltr":Le,nt=ye.tabIndex,bt=nt===void 0?0:nt,Oe=ye.autoFocus,Be=ye.onHoverChange,zt=ye.onChange,Zt=ye.onFocus,qt=ye.onBlur,en=ye.onKeyDown,Tt=ye.onMouseLeave,an=(0,St.Z)(ye,He),Wt=yt(),Ke=(0,we.Z)(Wt,2),mt=Ke[0],$t=Ke[1],nn=b.useRef(null),Re=function(){if(!Ae){var An;(An=nn.current)===null||An===void 0||An.focus()}};b.useImperativeHandle(Ye,function(){return{focus:Re,blur:function(){if(!Ae){var An;(An=nn.current)===null||An===void 0||An.blur()}}}});var pt=(0,tt.Z)(At||0,{value:_e}),Mt=(0,we.Z)(pt,2),Kt=Mt[0],cn=Mt[1],Pn=(0,tt.Z)(null),Rn=(0,we.Z)(Pn,2),Fn=Rn[0],vn=Rn[1],Mn=function(An,ct){var It=Qe==="rtl",ze=An+1;if(ne){var vt=mt(An),$e=Ie(vt),xt=vt.clientWidth;(It&&ct-$e>xt/2||!It&&ct-$e<xt/2)&&(ze-=.5)}return ze},dn=function(An){cn(An),zt==null||zt(An)},Vt=b.useState(!1),tn=(0,we.Z)(Vt,2),on=tn[0],_t=tn[1],hn=function(){_t(!0),Zt==null||Zt()},mn=function(){_t(!1),qt==null||qt()},Sn=b.useState(null),zn=(0,we.Z)(Sn,2),Wn=zn[0],Zn=zn[1],Jn=function(An,ct){var It=Mn(ct,An.pageX);It!==Fn&&(Zn(It),vn(null)),Be==null||Be(It)},Gn=function(An){Ae||(Zn(null),vn(null),Be==null||Be(void 0)),An&&(Tt==null||Tt(An))},hr=function(An,ct){var It=Mn(ct,An.pageX),ze=!1;ie&&(ze=It===Kt),Gn(),dn(ze?0:It),vn(ze?It:null)},cr=function(An){var ct=An.keyCode,It=Qe==="rtl",ze=ne?.5:1;re&&(ct===je.Z.RIGHT&&Kt<Ct&&!It?(dn(Kt+ze),An.preventDefault()):ct===je.Z.LEFT&&Kt>0&&!It||ct===je.Z.RIGHT&&Kt>0&&It?(dn(Kt-ze),An.preventDefault()):ct===je.Z.LEFT&&Kt<Ct&&It&&(dn(Kt+ze),An.preventDefault())),en==null||en(An)};b.useEffect(function(){Oe&&!Ae&&Re()},[]);var sn=new Array(Ct).fill(0).map(function(Hn,An){return b.createElement(it,{ref:$t(An),index:An,count:Ct,disabled:Ae,prefixCls:"".concat(Xt,"-star"),allowHalf:ne,value:Wn===null?Kt:Wn,onClick:hr,onHover:Jn,key:Hn||An,character:xe,characterRender:ft,focused:on})}),yn=ce()(Xt,rt,(0,Xe.Z)((0,Xe.Z)({},"".concat(Xt,"-disabled"),Ae),"".concat(Xt,"-rtl"),Qe==="rtl"));return b.createElement("ul",(0,Fe.Z)({className:yn,onMouseLeave:Gn,tabIndex:Ae?-1:bt,onFocus:Ae?null:hn,onBlur:Ae?null:mn,onKeyDown:Ae?null:cr,ref:nn},(0,Me.Z)(an,{aria:!0,data:!0,attr:!0})),sn)}var Et=b.forwardRef(Ge),ut=Et,et=ee(48755),ot=ee(25399),Ce=ee(36237),at=ee(63356),Ve=ee(16931),de=ee(51636);const Dt=ye=>{const{componentCls:Ye}=ye;return{[`${Ye}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ye.marginXS},"> div":{transition:`all ${ye.motionDurationMid}, outline 0s`,"&:hover":{transform:ye.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Ce.unit)(ye.lineWidth)} dashed ${ye.starColor}`,transform:ye.starHoverScale}},"&-first, &-second":{color:ye.starBg,transition:`all ${ye.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"}}}},Ue=ye=>({[`&-rtl${ye.componentCls}`]:{direction:"rtl"}}),st=ye=>{const{componentCls:Ye}=ye;return{[Ye]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,at.Wf)(ye)),{display:"inline-block",margin:0,padding:0,color:ye.starColor,fontSize:ye.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Ye} ${Ye}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Dt(ye)),Ue(ye))}},Ut=ye=>({starColor:ye.yellow6,starSize:ye.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ye.colorFillContent});var Te=(0,Ve.I$)("Rate",ye=>{const Ye=(0,de.mergeToken)(ye,{});return[st(Ye)]},Ut),he=ee(2171),Nt=function(ye,Ye){var lt={};for(var Xt in ye)Object.prototype.hasOwnProperty.call(ye,Xt)&&Ye.indexOf(Xt)<0&&(lt[Xt]=ye[Xt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Xt=Object.getOwnPropertySymbols(ye);rt<Xt.length;rt++)Ye.indexOf(Xt[rt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Xt[rt])&&(lt[Xt[rt]]=ye[Xt[rt]]);return lt},Ft=b.forwardRef((ye,Ye)=>{const{prefixCls:lt,className:Xt,rootClassName:rt,style:At,tooltips:_e,character:Yt=b.createElement(Ze,null),disabled:Ct}=ye,ae=Nt(ye,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),ne=(nt,bt)=>{let{index:Oe}=bt;return _e?b.createElement(ot.Z,{title:_e[Oe]},nt):nt},{getPrefixCls:te,direction:ie,rate:ue}=b.useContext(et.E_),re=te("rate",lt),[le,xe,ft]=Te(re),Ae=Object.assign(Object.assign({},ue==null?void 0:ue.style),At),Le=b.useContext(he.Z),Qe=Ct!=null?Ct:Le;return le(b.createElement(ut,Object.assign({ref:Ye,character:Yt,characterRender:ne,disabled:Qe},ae,{className:ce()(Xt,rt,xe,ft,ue==null?void 0:ue.className),style:Ae,prefixCls:re,direction:ie})))})},82326:function(Cn,Qt,ee){"use strict";var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(37463),Se=ee(2738),ge=ee(75030),Ee=ee(86641),Ze=ee(45915),Pe=ee(82855),ce=ee(48755),Xe=ee(38406),we=ee(2171),St=ee(83397),tt=ee(31756),je=ee(56553),Me=ee(24971),Ne=ee(70045),it=ee(57700),yt=ee(1722),Ot=ee(90376),We=ee(68525),Ie=ee(90005),He=function(ot,Ce){var at={};for(var Ve in ot)Object.prototype.hasOwnProperty.call(ot,Ve)&&Ce.indexOf(Ve)<0&&(at[Ve]=ot[Ve]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ve=Object.getOwnPropertySymbols(ot);de<Ve.length;de++)Ce.indexOf(Ve[de])<0&&Object.prototype.propertyIsEnumerable.call(ot,Ve[de])&&(at[Ve[de]]=ot[Ve[de]]);return at};const Ge="SECRET_COMBOBOX_MODE_DO_NOT_USE",Et=(ot,Ce)=>{var at;const{prefixCls:Ve,bordered:de,className:Dt,rootClassName:Ue,getPopupContainer:st,popupClassName:Ut,dropdownClassName:Te,listHeight:he=256,placement:Nt,listItemHeight:Jt,size:Ft,disabled:ye,notFoundContent:Ye,status:lt,builtinPlacements:Xt,dropdownMatchSelectWidth:rt,popupMatchSelectWidth:At,direction:_e,style:Yt,allowClear:Ct,variant:ae,dropdownStyle:ne,transitionName:te,tagRender:ie,maxCount:ue,prefix:re}=ot,le=He(ot,["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:xe,getPrefixCls:ft,renderEmpty:Ae,direction:Le,virtual:Qe,popupMatchSelectWidth:nt,popupOverflow:bt}=b.useContext(ce.E_),Oe=(0,ce.dj)("select"),[,Be]=(0,it.ZP)(),zt=Jt!=null?Jt:Be==null?void 0:Be.controlHeight,Zt=ft("select",Ve),qt=ft(),en=_e!=null?_e:Le,{compactSize:Tt,compactItemClassnames:an}=(0,Ne.ri)(Zt,en),[Wt,Ke]=(0,Me.Z)("select",ae,de),mt=(0,St.Z)(Zt),[$t,nn,Re]=(0,Ot.Z)(Zt,mt),pt=b.useMemo(()=>{const{mode:cr}=ot;if(cr!=="combobox")return cr===Ge?"combobox":cr},[ot.mode]),Mt=pt==="multiple"||pt==="tags",Kt=(0,Ie.Z)(ot.suffixIcon,ot.showArrow),cn=(at=At!=null?At:rt)!==null&&at!==void 0?at:nt,{status:Pn,hasFeedback:Rn,isFormItemInput:Fn,feedbackIcon:vn}=b.useContext(je.aM),Mn=(0,Pe.F)(Pn,lt);let dn;Ye!==void 0?dn=Ye:pt==="combobox"?dn=null:dn=(Ae==null?void 0:Ae("Select"))||b.createElement(Xe.Z,{componentName:"Select"});const{suffixIcon:Vt,itemIcon:tn,removeIcon:on,clearIcon:_t}=(0,We.Z)(Object.assign(Object.assign({},le),{multiple:Mt,hasFeedback:Rn,feedbackIcon:vn,showSuffixIcon:Kt,prefixCls:Zt,componentName:"Select"})),hn=Ct===!0?{clearIcon:_t}:Ct,mn=(0,Se.Z)(le,["suffixIcon","itemIcon"]),Sn=fe()(Ut||Te,{[`${Zt}-dropdown-${en}`]:en==="rtl"},Ue,Re,mt,nn),zn=(0,tt.Z)(cr=>{var sn;return(sn=Ft!=null?Ft:Tt)!==null&&sn!==void 0?sn:cr}),Wn=b.useContext(we.Z),Zn=ye!=null?ye:Wn,Jn=fe()({[`${Zt}-lg`]:zn==="large",[`${Zt}-sm`]:zn==="small",[`${Zt}-rtl`]:en==="rtl",[`${Zt}-${Wt}`]:Ke,[`${Zt}-in-form-item`]:Fn},(0,Pe.Z)(Zt,Mn,Rn),an,Oe.className,Dt,Ue,Re,mt,nn),Gn=b.useMemo(()=>Nt!==void 0?Nt:en==="rtl"?"bottomRight":"bottomLeft",[Nt,en]),[hr]=(0,ge.Cn)("SelectLike",ne==null?void 0:ne.zIndex);return $t(b.createElement(qe.ZP,Object.assign({ref:Ce,virtual:Qe,showSearch:Oe.showSearch},mn,{style:Object.assign(Object.assign({},Oe.style),Yt),dropdownMatchSelectWidth:cn,transitionName:(0,Ee.m)(qt,"slide-up",te),builtinPlacements:(0,yt.Z)(Xt,bt),listHeight:he,listItemHeight:zt,mode:pt,prefixCls:Zt,placement:Gn,direction:en,prefix:re,suffixIcon:Vt,menuItemSelectedIcon:tn,removeIcon:on,allowClear:hn,notFoundContent:dn,className:Jn,getPopupContainer:st||xe,dropdownClassName:Sn,disabled:Zn,dropdownStyle:Object.assign(Object.assign({},ne),{zIndex:hr}),maxCount:Mt?ue:void 0,tagRender:Mt?ie:void 0})))},ut=b.forwardRef(Et),et=(0,Ze.Z)(ut,"dropdownAlign");ut.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ge,ut.Option=qe.Wx,ut.OptGroup=qe.Xo,ut._InternalPanelDoNotUseOrYouWillBeFired=et,Qt.default=ut},1722:function(Cn,Qt){"use strict";const ee=Fe=>{const qe={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Fe==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},qe),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},qe),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},qe),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},qe),{points:["br","tr"],offset:[0,-4]})}};function b(Fe,fe){return Fe||ee(fe)}Qt.Z=b},90376:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ve}});var b=ee(63356),Fe=ee(56119),fe=ee(16931),qe=ee(51636),Se=ee(46e3),ge=ee(93873);const Ee=de=>{const{optionHeight:Dt,optionFontSize:Ue,optionLineHeight:st,optionPadding:Ut}=de;return{position:"relative",display:"block",minHeight:Dt,padding:Ut,color:de.colorText,fontWeight:"normal",fontSize:Ue,lineHeight:st,boxSizing:"border-box"}};var Pe=de=>{const{antCls:Dt,componentCls:Ue}=de,st=`${Ue}-item`,Ut=`&${Dt}-slide-up-enter${Dt}-slide-up-enter-active`,Te=`&${Dt}-slide-up-appear${Dt}-slide-up-appear-active`,he=`&${Dt}-slide-up-leave${Dt}-slide-up-leave-active`,Nt=`${Ue}-dropdown-placement-`,Jt=`${st}-option-selected`;return[{[`${Ue}-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,[`
${Ut}${Nt}bottomLeft,
${Te}${Nt}bottomLeft
`]:{animationName:Se.fJ},[`
${Ut}${Nt}topLeft,
${Te}${Nt}topLeft,
${Ut}${Nt}topRight,
${Te}${Nt}topRight
`]:{animationName:Se.Qt},[`${he}${Nt}bottomLeft`]:{animationName:Se.Uw},[`
${he}${Nt}topLeft,
${he}${Nt}topRight
`]:{animationName:Se.ly},"&-hidden":{display:"none"},[st]:Object.assign(Object.assign({},Ee(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(${st}-option-disabled)`]:{backgroundColor:de.optionActiveBg},[`&-selected:not(${st}-option-disabled)`]:{color:de.optionSelectedColor,fontWeight:de.optionSelectedFontWeight,backgroundColor:de.optionSelectedBg,[`${st}-option-state`]:{color:de.colorPrimary}},"&-disabled":{[`&${st}-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({},Ee(de)),{color:de.colorTextDisabled})}),[`${Jt}:has(+ ${Jt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Jt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,Se.oN)(de,"slide-up"),(0,Se.oN)(de,"slide-down"),(0,ge.Fm)(de,"move-up"),(0,ge.Fm)(de,"move-down")]},ce=ee(26743),Xe=ee(36237);function we(de,Dt){const{componentCls:Ue,inputPaddingHorizontalBase:st,borderRadius:Ut}=de,Te=de.calc(de.controlHeight).sub(de.calc(de.lineWidth).mul(2)).equal(),he=Dt?`${Ue}-${Dt}`:"";return{[`${Ue}-single${he}`]:{fontSize:de.fontSize,height:de.controlHeight,[`${Ue}-selector`]:Object.assign(Object.assign({},(0,b.Wf)(de,!0)),{display:"flex",borderRadius:Ut,flex:"1 1 auto",[`${Ue}-selection-wrap:after`]:{lineHeight:(0,Xe.unit)(Te)},[`${Ue}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Ue}-selection-item,
${Ue}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,Xe.unit)(Te),transition:`all ${de.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Ue}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ue}-selection-item:empty:after`,`${Ue}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Ue}-show-arrow ${Ue}-selection-item,
&${Ue}-show-arrow ${Ue}-selection-search,
&${Ue}-show-arrow ${Ue}-selection-placeholder
`]:{paddingInlineEnd:de.showArrowPaddingInlineEnd},[`&${Ue}-open ${Ue}-selection-item`]:{color:de.colorTextPlaceholder},[`&:not(${Ue}-customize-input)`]:{[`${Ue}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Xe.unit)(st)}`,[`${Ue}-selection-search-input`]:{height:Te,fontSize:de.fontSize},"&:after":{lineHeight:(0,Xe.unit)(Te)}}},[`&${Ue}-customize-input`]:{[`${Ue}-selector`]:{"&:after":{display:"none"},[`${Ue}-selection-search`]:{position:"static",width:"100%"},[`${Ue}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Xe.unit)(st)}`,"&:after":{display:"none"}}}}}}}function St(de){const{componentCls:Dt}=de,Ue=de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal();return[we(de),we((0,qe.mergeToken)(de,{controlHeight:de.controlHeightSM,borderRadius:de.borderRadiusSM}),"sm"),{[`${Dt}-single${Dt}-sm`]:{[`&:not(${Dt}-customize-input)`]:{[`${Dt}-selector`]:{padding:`0 ${(0,Xe.unit)(Ue)}`},[`&${Dt}-show-arrow ${Dt}-selection-search`]:{insetInlineEnd:de.calc(Ue).add(de.calc(de.fontSize).mul(1.5)).equal()},[`
&${Dt}-show-arrow ${Dt}-selection-item,
&${Dt}-show-arrow ${Dt}-selection-placeholder
`]:{paddingInlineEnd:de.calc(de.fontSize).mul(1.5).equal()}}}},we((0,qe.mergeToken)(de,{controlHeight:de.singleItemHeightLG,fontSize:de.fontSizeLG,borderRadius:de.borderRadiusLG}),"lg")]}const tt=de=>{const{fontSize:Dt,lineHeight:Ue,lineWidth:st,controlHeight:Ut,controlHeightSM:Te,controlHeightLG:he,paddingXXS:Nt,controlPaddingHorizontal:Jt,zIndexPopupBase:Ft,colorText:ye,fontWeightStrong:Ye,controlItemBgActive:lt,controlItemBgHover:Xt,colorBgContainer:rt,colorFillSecondary:At,colorBgContainerDisabled:_e,colorTextDisabled:Yt,colorPrimaryHover:Ct,colorPrimary:ae,controlOutline:ne}=de,te=Nt*2,ie=st*2,ue=Math.min(Ut-te,Ut-ie),re=Math.min(Te-te,Te-ie),le=Math.min(he-te,he-ie);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Nt/2),zIndexPopup:Ft+50,optionSelectedColor:ye,optionSelectedFontWeight:Ye,optionSelectedBg:lt,optionActiveBg:Xt,optionPadding:`${(Ut-Dt*Ue)/2}px ${Jt}px`,optionFontSize:Dt,optionLineHeight:Ue,optionHeight:Ut,selectorBg:rt,clearBg:rt,singleItemHeightLG:he,multipleItemBg:At,multipleItemBorderColor:"transparent",multipleItemHeight:ue,multipleItemHeightSM:re,multipleItemHeightLG:le,multipleSelectorBgDisabled:_e,multipleItemColorDisabled:Yt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(de.fontSize*1.25),hoverBorderColor:Ct,activeBorderColor:ae,activeOutlineColor:ne,selectAffixPadding:Nt}},je=(de,Dt)=>{const{componentCls:Ue,antCls:st,controlOutlineWidth:Ut}=de;return{[`&:not(${Ue}-customize-input) ${Ue}-selector`]:{border:`${(0,Xe.unit)(de.lineWidth)} ${de.lineType} ${Dt.borderColor}`,background:de.selectorBg},[`&:not(${Ue}-disabled):not(${Ue}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${Ue}-selector`]:{borderColor:Dt.hoverBorderHover},[`${Ue}-focused& ${Ue}-selector`]:{borderColor:Dt.activeBorderColor,boxShadow:`0 0 0 ${(0,Xe.unit)(Ut)} ${Dt.activeOutlineColor}`,outline:0},[`${Ue}-prefix`]:{color:Dt.color}}}},Me=(de,Dt)=>({[`&${de.componentCls}-status-${Dt.status}`]:Object.assign({},je(de,Dt))}),Ne=de=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},je(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,Xe.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})}),it=(de,Dt)=>{const{componentCls:Ue,antCls:st}=de;return{[`&:not(${Ue}-customize-input) ${Ue}-selector`]:{background:Dt.bg,border:`${(0,Xe.unit)(de.lineWidth)} ${de.lineType} transparent`,color:Dt.color},[`&:not(${Ue}-disabled):not(${Ue}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${Ue}-selector`]:{background:Dt.hoverBg},[`${Ue}-focused& ${Ue}-selector`]:{background:de.selectorBg,borderColor:Dt.activeBorderColor,outline:0}}}},yt=(de,Dt)=>({[`&${de.componentCls}-status-${Dt.status}`]:Object.assign({},it(de,Dt))}),Ot=de=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},it(de,{bg:de.colorFillTertiary,hoverBg:de.colorFillSecondary,activeBorderColor:de.activeBorderColor,color:de.colorText})),yt(de,{status:"error",bg:de.colorErrorBg,hoverBg:de.colorErrorBgHover,activeBorderColor:de.colorError,color:de.colorError})),yt(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,Xe.unit)(de.lineWidth)} ${de.lineType} ${de.colorSplit}`}})}),We=de=>({"&-borderless":{[`${de.componentCls}-selector`]:{background:"transparent",border:`${(0,Xe.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,Xe.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}}}}),Ie=(de,Dt)=>{const{componentCls:Ue,antCls:st}=de;return{[`&:not(${Ue}-customize-input) ${Ue}-selector`]:{borderWidth:`0 0 ${(0,Xe.unit)(de.lineWidth)} 0`,borderStyle:`none none ${de.lineType} none`,borderColor:Dt.borderColor,background:de.selectorBg,borderRadius:0},[`&:not(${Ue}-disabled):not(${Ue}-customize-input):not(${st}-pagination-size-changer)`]:{[`&:hover ${Ue}-selector`]:{borderColor:Dt.hoverBorderHover},[`${Ue}-focused& ${Ue}-selector`]:{borderColor:Dt.activeBorderColor,outline:0},[`${Ue}-prefix`]:{color:Dt.color}}}},He=(de,Dt)=>({[`&${de.componentCls}-status-${Dt.status}`]:Object.assign({},Ie(de,Dt))}),Ge=de=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Ie(de,{borderColor:de.colorBorder,hoverBorderHover:de.hoverBorderColor,activeBorderColor:de.activeBorderColor,activeOutlineColor:de.activeOutlineColor,color:de.colorText})),He(de,{status:"error",borderColor:de.colorError,hoverBorderHover:de.colorErrorHover,activeBorderColor:de.colorError,activeOutlineColor:de.colorErrorOutline,color:de.colorError})),He(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,Xe.unit)(de.lineWidth)} ${de.lineType} ${de.multipleItemBorderColor}`}})});var ut=de=>({[de.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ne(de)),Ot(de)),We(de)),Ge(de))});const et=de=>{const{componentCls:Dt}=de;return{position:"relative",transition:`all ${de.motionDurationMid} ${de.motionEaseInOut}`,input:{cursor:"pointer"},[`${Dt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Dt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ot=de=>{const{componentCls:Dt}=de;return{[`${Dt}-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"}}}},Ce=de=>{const{antCls:Dt,componentCls:Ue,inputPaddingHorizontalBase:st,iconCls:Ut}=de;return{[Ue]:Object.assign(Object.assign({},(0,b.Wf)(de)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Ue}-customize-input) ${Ue}-selector`]:Object.assign(Object.assign({},et(de)),ot(de)),[`${Ue}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},b.vS),{[`> ${Dt}-typography`]:{display:"inline"}}),[`${Ue}-selection-placeholder`]:Object.assign(Object.assign({},b.vS),{flex:1,color:de.colorTextPlaceholder,pointerEvents:"none"}),[`${Ue}-arrow`]:Object.assign(Object.assign({},(0,b.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:st,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`,[Ut]:{verticalAlign:"top",transition:`transform ${de.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ue}-suffix)`]:{pointerEvents:"auto"}},[`${Ue}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ue}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Ue}-prefix`]:{flex:"none",marginInlineEnd:de.selectAffixPadding},[`${Ue}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:st,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 ${Ue}-clear`]:{opacity:1,background:de.colorBgBase,borderRadius:"50%"}}),[`${Ue}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Ue}-has-feedback`]:{[`${Ue}-clear`]:{insetInlineEnd:de.calc(st).add(de.fontSize).add(de.paddingXS).equal()}}}}}},at=de=>{const{componentCls:Dt}=de;return[{[Dt]:{[`&${Dt}-in-form-item`]:{width:"100%"}}},Ce(de),St(de),(0,ce.ZP)(de),Pe(de),{[`${Dt}-rtl`]:{direction:"rtl"}},(0,Fe.c)(de,{borderElCls:`${Dt}-selector`,focusElCls:`${Dt}-focused`})]};var Ve=(0,fe.I$)("Select",(de,Dt)=>{let{rootPrefixCls:Ue}=Dt;const st=(0,qe.mergeToken)(de,{rootPrefixCls:Ue,inputPaddingHorizontalBase:de.calc(de.paddingSM).sub(1).equal(),multipleSelectItemHeight:de.multipleItemHeight,selectHeight:de.controlHeight});return[at(st),ut(st)]},tt,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Cn,Qt,ee){"use strict";ee.d(Qt,{_z:function(){return ge},gp:function(){return qe}});var b=ee(36237),Fe=ee(63356),fe=ee(51636);const qe=ce=>{const{multipleSelectItemHeight:Xe,paddingXXS:we,lineWidth:St,INTERNAL_FIXED_ITEM_MARGIN:tt}=ce,je=ce.max(ce.calc(we).sub(St).equal(),0),Me=ce.max(ce.calc(je).sub(tt).equal(),0);return{basePadding:je,containerPadding:Me,itemHeight:(0,b.unit)(Xe),itemLineHeight:(0,b.unit)(ce.calc(Xe).sub(ce.calc(ce.lineWidth).mul(2)).equal())}},Se=ce=>{const{multipleSelectItemHeight:Xe,selectHeight:we,lineWidth:St}=ce;return ce.calc(we).sub(Xe).div(2).sub(St).equal()},ge=ce=>{const{componentCls:Xe,iconCls:we,borderRadiusSM:St,motionDurationSlow:tt,paddingXS:je,multipleItemColorDisabled:Me,multipleItemBorderColorDisabled:Ne,colorIcon:it,colorIconHover:yt,INTERNAL_FIXED_ITEM_MARGIN:Ot}=ce;return{[`${Xe}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${Xe}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Ot,borderRadius:St,cursor:"default",transition:`font-size ${tt}, line-height ${tt}, height ${tt}`,marginInlineEnd:ce.calc(Ot).mul(2).equal(),paddingInlineStart:je,paddingInlineEnd:ce.calc(je).div(2).equal(),[`${Xe}-disabled&`]:{color:Me,borderColor:Ne,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ce.calc(je).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Fe.Ro)()),{display:"inline-flex",alignItems:"center",color:it,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${we}`]:{verticalAlign:"-0.2em"},"&:hover":{color:yt}})}}}},Ee=(ce,Xe)=>{const{componentCls:we,INTERNAL_FIXED_ITEM_MARGIN:St}=ce,tt=`${we}-selection-overflow`,je=ce.multipleSelectItemHeight,Me=Se(ce),Ne=Xe?`${we}-${Xe}`:"",it=qe(ce);return{[`${we}-multiple${Ne}`]:Object.assign(Object.assign({},ge(ce)),{[`${we}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:it.basePadding,paddingBlock:it.containerPadding,borderRadius:ce.borderRadius,[`${we}-disabled&`]:{background:ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,b.unit)(St)} 0`,lineHeight:(0,b.unit)(je),visibility:"hidden",content:'"\\a0"'}},[`${we}-selection-item`]:{height:it.itemHeight,lineHeight:(0,b.unit)(it.itemLineHeight)},[`${we}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,b.unit)(je),marginBlock:St}},[`${we}-prefix`]:{marginInlineStart:ce.calc(ce.inputPaddingHorizontalBase).sub(it.basePadding).equal()},[`${tt}-item + ${tt}-item,
${we}-prefix + ${we}-selection-wrap
`]:{[`${we}-selection-search`]:{marginInlineStart:0},[`${we}-selection-placeholder`]:{insetInlineStart:0}},[`${tt}-item-suffix`]:{minHeight:it.itemHeight,marginBlock:St},[`${we}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ce.calc(ce.inputPaddingHorizontalBase).sub(Me).equal(),"\n &-input,\n &-mirror\n ":{height:je,fontFamily:ce.fontFamily,lineHeight:(0,b.unit)(je),transition:`all ${ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${we}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ce.calc(ce.inputPaddingHorizontalBase).sub(it.basePadding).equal(),insetInlineEnd:ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ce.motionDurationSlow}`}})}};function Ze(ce,Xe){const{componentCls:we}=ce,St=Xe?`${we}-${Xe}`:"",tt={[`${we}-multiple${St}`]:{fontSize:ce.fontSize,[`${we}-selector`]:{[`${we}-show-search&`]:{cursor:"text"}},[`
&${we}-show-arrow ${we}-selector,
&${we}-allow-clear ${we}-selector
`]:{paddingInlineEnd:ce.calc(ce.fontSizeIcon).add(ce.controlPaddingHorizontal).equal()}}};return[Ee(ce,Xe),tt]}const Pe=ce=>{const{componentCls:Xe}=ce,we=(0,fe.mergeToken)(ce,{selectHeight:ce.controlHeightSM,multipleSelectItemHeight:ce.multipleItemHeightSM,borderRadius:ce.borderRadiusSM,borderRadiusSM:ce.borderRadiusXS}),St=(0,fe.mergeToken)(ce,{fontSize:ce.fontSizeLG,selectHeight:ce.controlHeightLG,multipleSelectItemHeight:ce.multipleItemHeightLG,borderRadius:ce.borderRadiusLG,borderRadiusSM:ce.borderRadius});return[Ze(ce),Ze(we,"sm"),{[`${Xe}-multiple${Xe}-sm`]:{[`${Xe}-selection-placeholder`]:{insetInline:ce.calc(ce.controlPaddingHorizontalSM).sub(ce.lineWidth).equal()},[`${Xe}-selection-search`]:{marginInlineStart:2}}},Ze(St,"lg")]};Qt.ZP=Pe},68525:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});var b=ee(59301),Fe=ee(40001),fe=ee(19248),qe=ee(99267),Se=ee(84105),ge=ee(58617),Ee=ee(47472);function Ze(Pe){let{suffixIcon:ce,clearIcon:Xe,menuItemSelectedIcon:we,removeIcon:St,loading:tt,multiple:je,hasFeedback:Me,prefixCls:Ne,showSuffixIcon:it,feedbackIcon:yt,showArrow:Ot,componentName:We}=Pe;const Ie=Xe!=null?Xe:b.createElement(fe.Z,null),He=et=>ce===null&&!Me&&!Ot?null:b.createElement(b.Fragment,null,it!==!1&&et,Me&&yt);let Ge=null;if(ce!==void 0)Ge=He(ce);else if(tt)Ge=He(b.createElement(ge.Z,{spin:!0}));else{const et=`${Ne}-suffix`;Ge=ot=>{let{open:Ce,showSearch:at}=ot;return He(Ce&&at?b.createElement(Ee.Z,{className:et}):b.createElement(Se.Z,{className:et}))}}let Et=null;we!==void 0?Et=we:je?Et=b.createElement(Fe.Z,null):Et=null;let ut=null;return St!==void 0?ut=St:ut=b.createElement(qe.Z,null),{clearIcon:Ie,suffixIcon:Ge,itemIcon:Et,removeIcon:ut}}},90005:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return b}});function b(Fe,fe){return fe!==void 0?fe:Fe!==null}},11938:function(Cn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return ot}});var b=ee(59301),Fe=ee(40192),fe=ee(22703),qe=ee(92310),Se=ee.n(qe),ge=ee(26112),Ee=ee(48755),Ze=ee(458),ce=Ce=>{const{value:at,formatter:Ve,precision:de,decimalSeparator:Dt,groupSeparator:Ue="",prefixCls:st}=Ce;let Ut;if(typeof Ve=="function")Ut=Ve(at);else{const Te=String(at),he=Te.match(/^(-?)(\d*)(\.(\d+))?$/);if(!he||Te==="-")Ut=Te;else{const Nt=he[1];let Jt=he[2]||"0",Ft=he[4]||"";Jt=Jt.replace(/\B(?=(\d{3})+(?!\d))/g,Ue),typeof de=="number"&&(Ft=Ft.padEnd(de,"0").slice(0,de>0?de:0)),Ft&&(Ft=`${Dt}${Ft}`),Ut=[b.createElement("span",{key:"int",className:`${st}-content-value-int`},Nt,Jt),Ft&&b.createElement("span",{key:"decimal",className:`${st}-content-value-decimal`},Ft)]}}return b.createElement("span",{className:`${st}-content-value`},Ut)},Xe=ee(63356),we=ee(16931),St=ee(51636);const tt=Ce=>{const{componentCls:at,marginXXS:Ve,padding:de,colorTextDescription:Dt,titleFontSize:Ue,colorTextHeading:st,contentFontSize:Ut,fontFamily:Te}=Ce;return{[at]:Object.assign(Object.assign({},(0,Xe.Wf)(Ce)),{[`${at}-title`]:{marginBottom:Ve,color:Dt,fontSize:Ue},[`${at}-skeleton`]:{paddingTop:de},[`${at}-content`]:{color:st,fontSize:Ut,fontFamily:Te,[`${at}-content-value`]:{display:"inline-block",direction:"ltr"},[`${at}-content-prefix, ${at}-content-suffix`]:{display:"inline-block"},[`${at}-content-prefix`]:{marginInlineEnd:Ve},[`${at}-content-suffix`]:{marginInlineStart:Ve}}})}},je=Ce=>{const{fontSizeHeading3:at,fontSize:Ve}=Ce;return{titleFontSize:Ve,contentFontSize:at}};var Me=(0,we.I$)("Statistic",Ce=>{const at=(0,St.mergeToken)(Ce,{});return[tt(at)]},je),Ne=function(Ce,at){var Ve={};for(var de in Ce)Object.prototype.hasOwnProperty.call(Ce,de)&&at.indexOf(de)<0&&(Ve[de]=Ce[de]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,de=Object.getOwnPropertySymbols(Ce);Dt<de.length;Dt++)at.indexOf(de[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,de[Dt])&&(Ve[de[Dt]]=Ce[de[Dt]]);return Ve},yt=Ce=>{const{prefixCls:at,className:Ve,rootClassName:de,style:Dt,valueStyle:Ue,value:st=0,title:Ut,valueRender:Te,prefix:he,suffix:Nt,loading:Jt=!1,formatter:Ft,precision:ye,decimalSeparator:Ye=".",groupSeparator:lt=",",onMouseEnter:Xt,onMouseLeave:rt}=Ce,At=Ne(Ce,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:_e,direction:Yt,className:Ct,style:ae}=(0,Ee.dj)("statistic"),ne=_e("statistic",at),[te,ie,ue]=Me(ne),re=b.createElement(ce,{decimalSeparator:Ye,groupSeparator:lt,prefixCls:ne,formatter:Ft,precision:ye,value:st}),le=Se()(ne,{[`${ne}-rtl`]:Yt==="rtl"},Ct,Ve,de,ie,ue),xe=(0,ge.Z)(At,{aria:!0,data:!0});return te(b.createElement("div",Object.assign({},xe,{className:le,style:Object.assign(Object.assign({},ae),Dt),onMouseEnter:Xt,onMouseLeave:rt}),Ut&&b.createElement("div",{className:`${ne}-title`},Ut),b.createElement(Ze.Z,{paragraph:!1,loading:Jt,className:`${ne}-skeleton`},b.createElement("div",{style:Ue,className:`${ne}-content`},he&&b.createElement("span",{className:`${ne}-content-prefix`},he),Te?Te(re):re,Nt&&b.createElement("span",{className:`${ne}-content-suffix`},Nt)))))};const Ot=[["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 We(Ce,at){let Ve=Ce;const de=/\[[^\]]*]/g,Dt=(at.match(de)||[]).map(Te=>Te.slice(1,-1)),Ue=at.replace(de,"[]"),st=Ot.reduce((Te,he)=>{let[Nt,Jt]=he;if(Te.includes(Nt)){const Ft=Math.floor(Ve/Jt);return Ve-=Ft*Jt,Te.replace(new RegExp(`${Nt}+`,"g"),ye=>{const Ye=ye.length;return Ft.toString().padStart(Ye,"0")})}return Te},Ue);let Ut=0;return st.replace(de,()=>{const Te=Dt[Ut];return Ut+=1,Te})}function Ie(Ce,at){const{format:Ve=""}=at,de=new Date(Ce).getTime(),Dt=Date.now(),Ue=Math.max(de-Dt,0);return We(Ue,Ve)}var He=function(Ce,at){var Ve={};for(var de in Ce)Object.prototype.hasOwnProperty.call(Ce,de)&&at.indexOf(de)<0&&(Ve[de]=Ce[de]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,de=Object.getOwnPropertySymbols(Ce);Dt<de.length;Dt++)at.indexOf(de[Dt])<0&&Object.prototype.propertyIsEnumerable.call(Ce,de[Dt])&&(Ve[de[Dt]]=Ce[de[Dt]]);return Ve};const Ge=1e3/30;function Et(Ce){return new Date(Ce).getTime()}const ut=Ce=>{const{value:at,format:Ve="HH:mm:ss",onChange:de,onFinish:Dt}=Ce,Ue=He(Ce,["value","format","onChange","onFinish"]),st=(0,Fe.Z)(),Ut=b.useRef(null),Te=()=>{Dt==null||Dt(),Ut.current&&(clearInterval(Ut.current),Ut.current=null)},he=()=>{const Ft=Et(at);Ft>=Date.now()&&(Ut.current=setInterval(()=>{st(),de==null||de(Ft-Date.now()),Ft<Date.now()&&Te()},Ge))};b.useEffect(()=>(he(),()=>{Ut.current&&(clearInterval(Ut.current),Ut.current=null)}),[at]);const Nt=(Ft,ye)=>Ie(Ft,Object.assign(Object.assign({},ye),{format:Ve})),Jt=Ft=>(0,fe.Tm)(Ft,{title:void 0});return b.createElement(yt,Object.assign({},Ue,{value:at,valueRender:Jt,formatter:Nt}))};var et=b.memo(ut);yt.Countdown=et;var ot=yt},58755:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Dt}});var b=ee(59301),Fe=ee(58617),fe=ee(92310),qe=ee.n(fe),Se=ee(60499),ge=ee(18642),Ee=ee(72190),Ze=ee(42244),Pe=ee(18929),ce=ee(10228),Xe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],we=b.forwardRef(function(Ue,st){var Ut,Te=Ue.prefixCls,he=Te===void 0?"rc-switch":Te,Nt=Ue.className,Jt=Ue.checked,Ft=Ue.defaultChecked,ye=Ue.disabled,Ye=Ue.loadingIcon,lt=Ue.checkedChildren,Xt=Ue.unCheckedChildren,rt=Ue.onClick,At=Ue.onChange,_e=Ue.onKeyDown,Yt=(0,Ze.Z)(Ue,Xe),Ct=(0,Pe.Z)(!1,{value:Jt,defaultValue:Ft}),ae=(0,Ee.Z)(Ct,2),ne=ae[0],te=ae[1];function ie(xe,ft){var Ae=ne;return ye||(Ae=xe,te(Ae),At==null||At(Ae,ft)),Ae}function ue(xe){xe.which===ce.Z.LEFT?ie(!1,xe):xe.which===ce.Z.RIGHT&&ie(!0,xe),_e==null||_e(xe)}function re(xe){var ft=ie(!ne,xe);rt==null||rt(ft,xe)}var le=qe()(he,Nt,(Ut={},(0,ge.Z)(Ut,"".concat(he,"-checked"),ne),(0,ge.Z)(Ut,"".concat(he,"-disabled"),ye),Ut));return b.createElement("button",(0,Se.Z)({},Yt,{type:"button",role:"switch","aria-checked":ne,disabled:ye,className:le,ref:st,onKeyDown:ue,onClick:re}),Ye,b.createElement("span",{className:"".concat(he,"-inner")},b.createElement("span",{className:"".concat(he,"-inner-checked")},lt),b.createElement("span",{className:"".concat(he,"-inner-unchecked")},Xt)))});we.displayName="Switch";var St=we,tt=ee(12919),je=ee(48755),Me=ee(2171),Ne=ee(31756),it=ee(36237),yt=ee(17835),Ot=ee(63356),We=ee(16931),Ie=ee(51636);const He=Ue=>{const{componentCls:st,trackHeightSM:Ut,trackPadding:Te,trackMinWidthSM:he,innerMinMarginSM:Nt,innerMaxMarginSM:Jt,handleSizeSM:Ft,calc:ye}=Ue,Ye=`${st}-inner`,lt=(0,it.unit)(ye(Ft).add(ye(Te).mul(2)).equal()),Xt=(0,it.unit)(ye(Jt).mul(2).equal());return{[st]:{[`&${st}-small`]:{minWidth:he,height:Ut,lineHeight:(0,it.unit)(Ut),[`${st}-inner`]:{paddingInlineStart:Jt,paddingInlineEnd:Nt,[`${Ye}-checked, ${Ye}-unchecked`]:{minHeight:Ut},[`${Ye}-checked`]:{marginInlineStart:`calc(-100% + ${lt} - ${Xt})`,marginInlineEnd:`calc(100% - ${lt} + ${Xt})`},[`${Ye}-unchecked`]:{marginTop:ye(Ut).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${st}-handle`]:{width:Ft,height:Ft},[`${st}-loading-icon`]:{top:ye(ye(Ft).sub(Ue.switchLoadingIconSize)).div(2).equal(),fontSize:Ue.switchLoadingIconSize},[`&${st}-checked`]:{[`${st}-inner`]:{paddingInlineStart:Nt,paddingInlineEnd:Jt,[`${Ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ye}-unchecked`]:{marginInlineStart:`calc(100% - ${lt} + ${Xt})`,marginInlineEnd:`calc(-100% + ${lt} - ${Xt})`}},[`${st}-handle`]:{insetInlineStart:`calc(100% - ${(0,it.unit)(ye(Ft).add(Te).equal())})`}},[`&:not(${st}-disabled):active`]:{[`&:not(${st}-checked) ${Ye}`]:{[`${Ye}-unchecked`]:{marginInlineStart:ye(Ue.marginXXS).div(2).equal(),marginInlineEnd:ye(Ue.marginXXS).mul(-1).div(2).equal()}},[`&${st}-checked ${Ye}`]:{[`${Ye}-checked`]:{marginInlineStart:ye(Ue.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:ye(Ue.marginXXS).div(2).equal()}}}}}}},Ge=Ue=>{const{componentCls:st,handleSize:Ut,calc:Te}=Ue;return{[st]:{[`${st}-loading-icon${Ue.iconCls}`]:{position:"relative",top:Te(Te(Ut).sub(Ue.fontSize)).div(2).equal(),color:Ue.switchLoadingIconColor,verticalAlign:"top"},[`&${st}-checked ${st}-loading-icon`]:{color:Ue.switchColor}}}},Et=Ue=>{const{componentCls:st,trackPadding:Ut,handleBg:Te,handleShadow:he,handleSize:Nt,calc:Jt}=Ue,Ft=`${st}-handle`;return{[st]:{[Ft]:{position:"absolute",top:Ut,insetInlineStart:Ut,width:Nt,height:Nt,transition:`all ${Ue.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Te,borderRadius:Jt(Nt).div(2).equal(),boxShadow:he,transition:`all ${Ue.switchDuration} ease-in-out`,content:'""'}},[`&${st}-checked ${Ft}`]:{insetInlineStart:`calc(100% - ${(0,it.unit)(Jt(Nt).add(Ut).equal())})`},[`&:not(${st}-disabled):active`]:{[`${Ft}::before`]:{insetInlineEnd:Ue.switchHandleActiveInset,insetInlineStart:0},[`&${st}-checked ${Ft}::before`]:{insetInlineEnd:0,insetInlineStart:Ue.switchHandleActiveInset}}}}},ut=Ue=>{const{componentCls:st,trackHeight:Ut,trackPadding:Te,innerMinMargin:he,innerMaxMargin:Nt,handleSize:Jt,calc:Ft}=Ue,ye=`${st}-inner`,Ye=(0,it.unit)(Ft(Jt).add(Ft(Te).mul(2)).equal()),lt=(0,it.unit)(Ft(Nt).mul(2).equal());return{[st]:{[ye]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Nt,paddingInlineEnd:he,transition:`padding-inline-start ${Ue.switchDuration} ease-in-out, padding-inline-end ${Ue.switchDuration} ease-in-out`,[`${ye}-checked, ${ye}-unchecked`]:{display:"block",color:Ue.colorTextLightSolid,fontSize:Ue.fontSizeSM,transition:`margin-inline-start ${Ue.switchDuration} ease-in-out, margin-inline-end ${Ue.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Ut},[`${ye}-checked`]:{marginInlineStart:`calc(-100% + ${Ye} - ${lt})`,marginInlineEnd:`calc(100% - ${Ye} + ${lt})`},[`${ye}-unchecked`]:{marginTop:Ft(Ut).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${st}-checked ${ye}`]:{paddingInlineStart:he,paddingInlineEnd:Nt,[`${ye}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ye}-unchecked`]:{marginInlineStart:`calc(100% - ${Ye} + ${lt})`,marginInlineEnd:`calc(-100% + ${Ye} - ${lt})`}},[`&:not(${st}-disabled):active`]:{[`&:not(${st}-checked) ${ye}`]:{[`${ye}-unchecked`]:{marginInlineStart:Ft(Te).mul(2).equal(),marginInlineEnd:Ft(Te).mul(-1).mul(2).equal()}},[`&${st}-checked ${ye}`]:{[`${ye}-checked`]:{marginInlineStart:Ft(Te).mul(-1).mul(2).equal(),marginInlineEnd:Ft(Te).mul(2).equal()}}}}}},et=Ue=>{const{componentCls:st,trackHeight:Ut,trackMinWidth:Te}=Ue;return{[st]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ot.Wf)(Ue)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Te,height:Ut,lineHeight:(0,it.unit)(Ut),verticalAlign:"middle",background:Ue.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Ue.motionDurationMid}`,userSelect:"none",[`&:hover:not(${st}-disabled)`]:{background:Ue.colorTextTertiary}}),(0,Ot.Qy)(Ue)),{[`&${st}-checked`]:{background:Ue.switchColor,[`&:hover:not(${st}-disabled)`]:{background:Ue.colorPrimaryHover}},[`&${st}-loading, &${st}-disabled`]:{cursor:"not-allowed",opacity:Ue.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${st}-rtl`]:{direction:"rtl"}})}},ot=Ue=>{const{fontSize:st,lineHeight:Ut,controlHeight:Te,colorWhite:he}=Ue,Nt=st*Ut,Jt=Te/2,Ft=2,ye=Nt-Ft*2,Ye=Jt-Ft*2;return{trackHeight:Nt,trackHeightSM:Jt,trackMinWidth:ye*2+Ft*4,trackMinWidthSM:Ye*2+Ft*2,trackPadding:Ft,handleBg:he,handleSize:ye,handleSizeSM:Ye,handleShadow:`0 2px 4px 0 ${new yt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:ye/2,innerMaxMargin:ye+Ft+Ft*2,innerMinMarginSM:Ye/2,innerMaxMarginSM:Ye+Ft+Ft*2}};var Ce=(0,We.I$)("Switch",Ue=>{const st=(0,Ie.mergeToken)(Ue,{switchDuration:Ue.motionDurationMid,switchColor:Ue.colorPrimary,switchDisabledOpacity:Ue.opacityLoading,switchLoadingIconSize:Ue.calc(Ue.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Ue.opacityLoading})`,switchHandleActiveInset:"-30%"});return[et(st),ut(st),Et(st),Ge(st),He(st)]},ot),at=function(Ue,st){var Ut={};for(var Te in Ue)Object.prototype.hasOwnProperty.call(Ue,Te)&&st.indexOf(Te)<0&&(Ut[Te]=Ue[Te]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Te=Object.getOwnPropertySymbols(Ue);he<Te.length;he++)st.indexOf(Te[he])<0&&Object.prototype.propertyIsEnumerable.call(Ue,Te[he])&&(Ut[Te[he]]=Ue[Te[he]]);return Ut};const de=b.forwardRef((Ue,st)=>{const{prefixCls:Ut,size:Te,disabled:he,loading:Nt,className:Jt,rootClassName:Ft,style:ye,checked:Ye,value:lt,defaultChecked:Xt,defaultValue:rt,onChange:At}=Ue,_e=at(Ue,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Yt,Ct]=(0,Pe.Z)(!1,{value:Ye!=null?Ye:lt,defaultValue:Xt!=null?Xt:rt}),{getPrefixCls:ae,direction:ne,switch:te}=b.useContext(je.E_),ie=b.useContext(Me.Z),ue=(he!=null?he:ie)||Nt,re=ae("switch",Ut),le=b.createElement("div",{className:`${re}-handle`},Nt&&b.createElement(Fe.Z,{className:`${re}-loading-icon`})),[xe,ft,Ae]=Ce(re),Le=(0,Ne.Z)(Te),Qe=qe()(te==null?void 0:te.className,{[`${re}-small`]:Le==="small",[`${re}-loading`]:Nt,[`${re}-rtl`]:ne==="rtl"},Jt,Ft,ft,Ae),nt=Object.assign(Object.assign({},te==null?void 0:te.style),ye),bt=function(){Ct(arguments.length<=0?void 0:arguments[0]),At==null||At.apply(void 0,arguments)};return xe(b.createElement(tt.Z,{component:"Switch"},b.createElement(St,Object.assign({},_e,{checked:Yt,onChange:bt,prefixCls:re,className:Qe,style:nt,disabled:ue,ref:st,loadingIcon:le}))))});de.__ANT_SWITCH=!0;var Dt=de},70858:function(Cn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return mu}});var b=ee(59301),Fe={},fe="rc-table-internal-hook",qe=ee(72190),Se=ee(6089),ge=ee(34280),Ee=ee(13697),Ze=ee(4676);function Pe(ve){var me=b.createContext(void 0),Je=function(Bt){var Ht=Bt.value,ln=Bt.children,rn=b.useRef(Ht);rn.current=Ht;var fn=b.useState(function(){return{getValue:function(){return rn.current},listeners:new Set}}),un=(0,qe.Z)(fn,1),Ln=un[0];return(0,ge.Z)(function(){(0,Ze.unstable_batchedUpdates)(function(){Ln.listeners.forEach(function(Tn){Tn(Ht)})})},[Ht]),b.createElement(me.Provider,{value:Ln},ln)};return{Context:me,Provider:Je,defaultValue:ve}}function ce(ve,me){var Je=(0,Se.Z)(typeof me=="function"?me:function(Tn){if(me===void 0)return Tn;if(!Array.isArray(me))return Tn[me];var Dn={};return me.forEach(function(bn){Dn[bn]=Tn[bn]}),Dn}),dt=b.useContext(ve==null?void 0:ve.Context),Bt=dt||{},Ht=Bt.listeners,ln=Bt.getValue,rn=b.useRef();rn.current=Je(dt?ln():ve==null?void 0:ve.defaultValue);var fn=b.useState({}),un=(0,qe.Z)(fn,2),Ln=un[1];return(0,ge.Z)(function(){if(!dt)return;function Tn(Dn){var bn=Je(Dn);(0,Ee.Z)(rn.current,bn,!0)||Ln({})}return Ht.add(Tn),function(){Ht.delete(Tn)}},[dt]),rn.current}var Xe=ee(60499),we=ee(8654);function St(){var ve=b.createContext(null);function me(){return b.useContext(ve)}function Je(Bt,Ht){var ln=(0,we.Yr)(Bt),rn=function(un,Ln){var Tn=ln?{ref:Ln}:{},Dn=b.useRef(0),bn=b.useRef(un),gn=me();return gn!==null?b.createElement(Bt,(0,Xe.Z)({},un,Tn)):((!Ht||Ht(bn.current,un))&&(Dn.current+=1),bn.current=un,b.createElement(ve.Provider,{value:Dn.current},b.createElement(Bt,(0,Xe.Z)({},un,Tn))))};return ln?b.forwardRef(rn):rn}function dt(Bt,Ht){var ln=(0,we.Yr)(Bt),rn=function(un,Ln){var Tn=ln?{ref:Ln}:{};return me(),b.createElement(Bt,(0,Xe.Z)({},un,Tn))};return ln?b.memo(b.forwardRef(rn),Ht):b.memo(rn,Ht)}return{makeImmutable:Je,responseImmutable:dt,useImmutableMark:me}}var tt=St(),je=tt.makeImmutable,Me=tt.responseImmutable,Ne=tt.useImmutableMark,it=St(),yt=it.makeImmutable,Ot=it.responseImmutable,We=it.useImmutableMark,Ie=Pe(),He=Ie;function Ge(ve,me){var Je=React.useRef(0);Je.current+=1;var dt=React.useRef(ve),Bt=[];Object.keys(ve||{}).map(function(ln){var rn;(ve==null?void 0:ve[ln])!==((rn=dt.current)===null||rn===void 0?void 0:rn[ln])&&Bt.push(ln)}),dt.current=ve;var Ht=React.useRef([]);return Bt.length&&(Ht.current=Bt),React.useDebugValue(Je.current),React.useDebugValue(Ht.current.join(", ")),me&&console.log("".concat(me,":"),Je.current,Ht.current),Je.current}var Et=null,ut=null,et=ee(43749),ot=ee(85899),Ce=ee(18642),at=ee(92310),Ve=ee.n(at),de=ee(80547),Dt=ee(97938),Ue=ee(48736),st=b.createContext({renderWithProps:!1}),Ut=st,Te="RC_TABLE_KEY";function he(ve){return ve==null?[]:Array.isArray(ve)?ve:[ve]}function Nt(ve){var me=[],Je={};return ve.forEach(function(dt){for(var Bt=dt||{},Ht=Bt.key,ln=Bt.dataIndex,rn=Ht||he(ln).join("-")||Te;Je[rn];)rn="".concat(rn,"_next");Je[rn]=!0,me.push(rn)}),me}function Jt(ve){return ve!=null}function Ft(ve){return typeof ve=="number"&&!Number.isNaN(ve)}function ye(ve){return ve&&(0,et.Z)(ve)==="object"&&!Array.isArray(ve)&&!b.isValidElement(ve)}function Ye(ve,me,Je,dt,Bt,Ht){var ln=b.useContext(Ut),rn=We(),fn=(0,de.Z)(function(){if(Jt(dt))return[dt];var un=me==null||me===""?[]:Array.isArray(me)?me:[me],Ln=(0,Dt.Z)(ve,un),Tn=Ln,Dn=void 0;if(Bt){var bn=Bt(Ln,ve,Je);ye(bn)?(Tn=bn.children,Dn=bn.props,ln.renderWithProps=!0):Tn=bn}return[Tn,Dn]},[rn,ve,dt,me,Bt,Je],function(un,Ln){if(Ht){var Tn=(0,qe.Z)(un,2),Dn=Tn[1],bn=(0,qe.Z)(Ln,2),gn=bn[1];return Ht(gn,Dn)}return ln.renderWithProps?!0:!(0,Ee.Z)(un,Ln,!0)});return fn}function lt(ve,me,Je,dt){var Bt=ve+me-1;return ve<=dt&&Bt>=Je}function Xt(ve,me){return ce(He,function(Je){var dt=lt(ve,me||1,Je.hoverStartRow,Je.hoverEndRow);return[dt,Je.onHover]})}var rt=ee(70425),At=function(me){var Je=me.ellipsis,dt=me.rowType,Bt=me.children,Ht,ln=Je===!0?{showTitle:!0}:Je;return ln&&(ln.showTitle||dt==="header")&&(typeof Bt=="string"||typeof Bt=="number"?Ht=Bt.toString():b.isValidElement(Bt)&&typeof Bt.props.children=="string"&&(Ht=Bt.props.children)),Ht};function _e(ve){var me,Je,dt,Bt,Ht,ln,rn,fn,un=ve.component,Ln=ve.children,Tn=ve.ellipsis,Dn=ve.scope,bn=ve.prefixCls,gn=ve.className,ir=ve.align,Xn=ve.record,sr=ve.render,gr=ve.dataIndex,ur=ve.renderIndex,xr=ve.shouldCellUpdate,Or=ve.index,Rr=ve.rowType,Mr=ve.colSpan,xo=ve.rowSpan,Qr=ve.fixLeft,Vr=ve.fixRight,uo=ve.firstFixLeft,Ar=ve.lastFixLeft,Fr=ve.firstFixRight,Sr=ve.lastFixRight,yr=ve.appendNode,Lr=ve.additionalProps,Zr=Lr===void 0?{}:Lr,qr=ve.isSticky,Pr="".concat(bn,"-cell"),Po=ce(He,["supportSticky","allColumnsFixedLeft","rowHoverable"]),To=Po.supportSticky,yi=Po.allColumnsFixedLeft,fi=Po.rowHoverable,oi=Ye(Xn,gr,ur,Ln,sr,xr),hi=(0,qe.Z)(oi,2),Si=hi[0],No=hi[1],Mo={},wi=typeof Qr=="number"&&To,ki=typeof Vr=="number"&&To;wi&&(Mo.position="sticky",Mo.left=Qr),ki&&(Mo.position="sticky",Mo.right=Vr);var Gr=(me=(Je=(dt=No==null?void 0:No.colSpan)!==null&&dt!==void 0?dt:Zr.colSpan)!==null&&Je!==void 0?Je:Mr)!==null&&me!==void 0?me:1,go=(Bt=(Ht=(ln=No==null?void 0:No.rowSpan)!==null&&ln!==void 0?ln:Zr.rowSpan)!==null&&Ht!==void 0?Ht:xo)!==null&&Bt!==void 0?Bt:1,$r=Xt(Or,go),Br=(0,qe.Z)($r,2),Fo=Br[0],Go=Br[1],ci=(0,rt.zX)(function(ti){var Qo;Xn&&Go(Or,Or+go-1),Zr==null||(Qo=Zr.onMouseEnter)===null||Qo===void 0||Qo.call(Zr,ti)}),ni=(0,rt.zX)(function(ti){var Qo;Xn&&Go(-1,-1),Zr==null||(Qo=Zr.onMouseLeave)===null||Qo===void 0||Qo.call(Zr,ti)});if(Gr===0||go===0)return null;var Ei=(rn=Zr.title)!==null&&rn!==void 0?rn:At({rowType:Rr,ellipsis:Tn,children:Si}),Ai=Ve()(Pr,gn,(fn={},(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)(fn,"".concat(Pr,"-fix-left"),wi&&To),"".concat(Pr,"-fix-left-first"),uo&&To),"".concat(Pr,"-fix-left-last"),Ar&&To),"".concat(Pr,"-fix-left-all"),Ar&&yi&&To),"".concat(Pr,"-fix-right"),ki&&To),"".concat(Pr,"-fix-right-first"),Fr&&To),"".concat(Pr,"-fix-right-last"),Sr&&To),"".concat(Pr,"-ellipsis"),Tn),"".concat(Pr,"-with-append"),yr),"".concat(Pr,"-fix-sticky"),(wi||ki)&&qr&&To),(0,Ce.Z)(fn,"".concat(Pr,"-row-hover"),!No&&Fo)),Zr.className,No==null?void 0:No.className),Jr={};ir&&(Jr.textAlign=ir);var io=(0,ot.Z)((0,ot.Z)((0,ot.Z)((0,ot.Z)({},No==null?void 0:No.style),Mo),Jr),Zr.style),Yo=Si;return(0,et.Z)(Yo)==="object"&&!Array.isArray(Yo)&&!b.isValidElement(Yo)&&(Yo=null),Tn&&(Ar||Fr)&&(Yo=b.createElement("span",{className:"".concat(Pr,"-content")},Yo)),b.createElement(un,(0,Xe.Z)({},No,Zr,{className:Ai,style:io,title:Ei,scope:Dn,onMouseEnter:fi?ci:void 0,onMouseLeave:fi?ni:void 0,colSpan:Gr!==1?Gr:null,rowSpan:go!==1?go:null}),yr,Yo)}var Yt=b.memo(_e);function Ct(ve,me,Je,dt,Bt){var Ht=Je[ve]||{},ln=Je[me]||{},rn,fn;Ht.fixed==="left"?rn=dt.left[Bt==="rtl"?me:ve]:ln.fixed==="right"&&(fn=dt.right[Bt==="rtl"?ve:me]);var un=!1,Ln=!1,Tn=!1,Dn=!1,bn=Je[me+1],gn=Je[ve-1],ir=bn&&!bn.fixed||gn&&!gn.fixed||Je.every(function(xr){return xr.fixed==="left"});if(Bt==="rtl"){if(rn!==void 0){var Xn=gn&&gn.fixed==="left";Dn=!Xn&&ir}else if(fn!==void 0){var sr=bn&&bn.fixed==="right";Tn=!sr&&ir}}else if(rn!==void 0){var gr=bn&&bn.fixed==="left";un=!gr&&ir}else if(fn!==void 0){var ur=gn&&gn.fixed==="right";Ln=!ur&&ir}return{fixLeft:rn,fixRight:fn,lastFixLeft:un,firstFixRight:Ln,lastFixRight:Tn,firstFixLeft:Dn,isSticky:dt.isSticky}}var ae=b.createContext({}),ne=ae;function te(ve){var me=ve.className,Je=ve.index,dt=ve.children,Bt=ve.colSpan,Ht=Bt===void 0?1:Bt,ln=ve.rowSpan,rn=ve.align,fn=ce(He,["prefixCls","direction"]),un=fn.prefixCls,Ln=fn.direction,Tn=b.useContext(ne),Dn=Tn.scrollColumnIndex,bn=Tn.stickyOffsets,gn=Tn.flattenColumns,ir=Je+Ht-1,Xn=ir+1===Dn?Ht+1:Ht,sr=Ct(Je,Je+Xn-1,gn,bn,Ln);return b.createElement(Yt,(0,Xe.Z)({className:me,index:Je,component:"td",prefixCls:un,record:null,dataIndex:null,align:rn,colSpan:Xn,rowSpan:ln,render:function(){return dt}},sr))}var ie=ee(42244),ue=["children"];function re(ve){var me=ve.children,Je=(0,ie.Z)(ve,ue);return b.createElement("tr",Je,me)}function le(ve){var me=ve.children;return me}le.Row=re,le.Cell=te;var xe=le;function ft(ve){var me=ve.children,Je=ve.stickyOffsets,dt=ve.flattenColumns,Bt=ce(He,"prefixCls"),Ht=dt.length-1,ln=dt[Ht],rn=b.useMemo(function(){return{stickyOffsets:Je,flattenColumns:dt,scrollColumnIndex:ln!=null&&ln.scrollbar?Ht:null}},[ln,dt,Ht,Je]);return b.createElement(ne.Provider,{value:rn},b.createElement("tfoot",{className:"".concat(Bt,"-summary")},me))}var Ae=Ot(ft),Le=xe,Qe=ee(29301),nt=ee(24514),bt=ee(75152),Oe=ee(26112);function Be(ve,me,Je,dt,Bt,Ht,ln){ve.push({record:me,indent:Je,index:ln});var rn=Ht(me),fn=Bt==null?void 0:Bt.has(rn);if(me&&Array.isArray(me[dt])&&fn)for(var un=0;un<me[dt].length;un+=1)Be(ve,me[dt][un],Je+1,dt,Bt,Ht,un)}function zt(ve,me,Je,dt){var Bt=b.useMemo(function(){if(Je!=null&&Je.size){for(var Ht=[],ln=0;ln<(ve==null?void 0:ve.length);ln+=1){var rn=ve[ln];Be(Ht,rn,0,me,Je,dt,ln)}return Ht}return ve==null?void 0:ve.map(function(fn,un){return{record:fn,indent:0,index:un}})},[ve,me,Je,dt]);return Bt}function Zt(ve,me,Je,dt){var Bt=ce(He,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ht=Bt.flattenColumns,ln=Bt.expandableType,rn=Bt.expandedKeys,fn=Bt.childrenColumnName,un=Bt.onTriggerExpand,Ln=Bt.rowExpandable,Tn=Bt.onRow,Dn=Bt.expandRowByClick,bn=Bt.rowClassName,gn=ln==="nest",ir=ln==="row"&&(!Ln||Ln(ve)),Xn=ir||gn,sr=rn&&rn.has(me),gr=fn&&ve&&ve[fn],ur=(0,rt.zX)(un),xr=Tn==null?void 0:Tn(ve,Je),Or=xr==null?void 0:xr.onClick,Rr=function(Vr){Dn&&Xn&&un(ve,Vr);for(var uo=arguments.length,Ar=new Array(uo>1?uo-1:0),Fr=1;Fr<uo;Fr++)Ar[Fr-1]=arguments[Fr];Or==null||Or.apply(void 0,[Vr].concat(Ar))},Mr;typeof bn=="string"?Mr=bn:typeof bn=="function"&&(Mr=bn(ve,Je,dt));var xo=Nt(Ht);return(0,ot.Z)((0,ot.Z)({},Bt),{},{columnsKey:xo,nestExpandable:gn,expanded:sr,hasNestChildren:gr,record:ve,onTriggerExpand:ur,rowSupportExpand:ir,expandable:Xn,rowProps:(0,ot.Z)((0,ot.Z)({},xr),{},{className:Ve()(Mr,xr==null?void 0:xr.className),onClick:Rr})})}function qt(ve){var me=ve.prefixCls,Je=ve.children,dt=ve.component,Bt=ve.cellComponent,Ht=ve.className,ln=ve.expanded,rn=ve.colSpan,fn=ve.isEmpty,un=ce(He,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ln=un.scrollbarSize,Tn=un.fixHeader,Dn=un.fixColumn,bn=un.componentWidth,gn=un.horizonScroll,ir=Je;return(fn?gn&&bn:Dn)&&(ir=b.createElement("div",{style:{width:bn-(Tn&&!fn?Ln:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(me,"-expanded-row-fixed")},ir)),b.createElement(dt,{className:Ht,style:{display:ln?null:"none"}},b.createElement(Yt,{component:Bt,prefixCls:me,colSpan:rn},ir))}var en=qt;function Tt(ve){var me=ve.prefixCls,Je=ve.record,dt=ve.onExpand,Bt=ve.expanded,Ht=ve.expandable,ln="".concat(me,"-row-expand-icon");if(!Ht)return b.createElement("span",{className:Ve()(ln,"".concat(me,"-row-spaced"))});var rn=function(un){dt(Je,un),un.stopPropagation()};return b.createElement("span",{className:Ve()(ln,(0,Ce.Z)((0,Ce.Z)({},"".concat(me,"-row-expanded"),Bt),"".concat(me,"-row-collapsed"),!Bt)),onClick:rn})}function an(ve,me,Je){var dt=[];function Bt(Ht){(Ht||[]).forEach(function(ln,rn){dt.push(me(ln,rn)),Bt(ln[Je])})}return Bt(ve),dt}function Wt(ve,me,Je,dt){return typeof ve=="string"?ve:typeof ve=="function"?ve(me,Je,dt):""}function Ke(ve,me,Je,dt,Bt){var Ht=ve.record,ln=ve.prefixCls,rn=ve.columnsKey,fn=ve.fixedInfoList,un=ve.expandIconColumnIndex,Ln=ve.nestExpandable,Tn=ve.indentSize,Dn=ve.expandIcon,bn=ve.expanded,gn=ve.hasNestChildren,ir=ve.onTriggerExpand,Xn=rn[Je],sr=fn[Je],gr;Je===(un||0)&&Ln&&(gr=b.createElement(b.Fragment,null,b.createElement("span",{style:{paddingLeft:"".concat(Tn*dt,"px")},className:"".concat(ln,"-row-indent indent-level-").concat(dt)}),Dn({prefixCls:ln,expanded:bn,expandable:gn,record:Ht,onExpand:ir})));var ur;return me.onCell&&(ur=me.onCell(Ht,Bt)),{key:Xn,fixedInfo:sr,appendCellNode:gr,additionalCellProps:ur||{}}}function mt(ve){var me=ve.className,Je=ve.style,dt=ve.record,Bt=ve.index,Ht=ve.renderIndex,ln=ve.rowKey,rn=ve.indent,fn=rn===void 0?0:rn,un=ve.rowComponent,Ln=ve.cellComponent,Tn=ve.scopeCellComponent,Dn=Zt(dt,ln,Bt,fn),bn=Dn.prefixCls,gn=Dn.flattenColumns,ir=Dn.expandedRowClassName,Xn=Dn.expandedRowRender,sr=Dn.rowProps,gr=Dn.expanded,ur=Dn.rowSupportExpand,xr=b.useRef(!1);xr.current||(xr.current=gr);var Or=Wt(ir,dt,Bt,fn),Rr=b.createElement(un,(0,Xe.Z)({},sr,{"data-row-key":ln,className:Ve()(me,"".concat(bn,"-row"),"".concat(bn,"-row-level-").concat(fn),sr==null?void 0:sr.className,(0,Ce.Z)({},Or,fn>=1)),style:(0,ot.Z)((0,ot.Z)({},Je),sr==null?void 0:sr.style)}),gn.map(function(Qr,Vr){var uo=Qr.render,Ar=Qr.dataIndex,Fr=Qr.className,Sr=Ke(Dn,Qr,Vr,fn,Bt),yr=Sr.key,Lr=Sr.fixedInfo,Zr=Sr.appendCellNode,qr=Sr.additionalCellProps;return b.createElement(Yt,(0,Xe.Z)({className:Fr,ellipsis:Qr.ellipsis,align:Qr.align,scope:Qr.rowScope,component:Qr.rowScope?Tn:Ln,prefixCls:bn,key:yr,record:dt,index:Bt,renderIndex:Ht,dataIndex:Ar,render:uo,shouldCellUpdate:Qr.shouldCellUpdate},Lr,{appendNode:Zr,additionalProps:qr}))})),Mr;if(ur&&(xr.current||gr)){var xo=Xn(dt,Bt,fn+1,gr);Mr=b.createElement(en,{expanded:gr,className:Ve()("".concat(bn,"-expanded-row"),"".concat(bn,"-expanded-row-level-").concat(fn+1),Or),prefixCls:bn,component:un,cellComponent:Ln,colSpan:gn.length,isEmpty:!1},xo)}return b.createElement(b.Fragment,null,Rr,Mr)}var $t=Ot(mt);function nn(ve){var me=ve.columnKey,Je=ve.onColumnResize,dt=b.useRef();return(0,ge.Z)(function(){dt.current&&Je(me,dt.current.offsetWidth)},[]),b.createElement(Qe.Z,{data:me},b.createElement("td",{ref:dt,style:{padding:0,border:0,height:0}},b.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Re=ee(29194);function pt(ve){var me=ve.prefixCls,Je=ve.columnsKey,dt=ve.onColumnResize,Bt=b.useRef(null);return b.createElement("tr",{"aria-hidden":"true",className:"".concat(me,"-measure-row"),style:{height:0,fontSize:0},ref:Bt},b.createElement(Qe.Z.Collection,{onBatchResize:function(ln){(0,Re.Z)(Bt.current)&&ln.forEach(function(rn){var fn=rn.data,un=rn.size;dt(fn,un.offsetWidth)})}},Je.map(function(Ht){return b.createElement(nn,{key:Ht,columnKey:Ht,onColumnResize:dt})})))}function Mt(ve){var me=ve.data,Je=ve.measureColumnWidth,dt=ce(He,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Bt=dt.prefixCls,Ht=dt.getComponent,ln=dt.onColumnResize,rn=dt.flattenColumns,fn=dt.getRowKey,un=dt.expandedKeys,Ln=dt.childrenColumnName,Tn=dt.emptyNode,Dn=zt(me,Ln,un,fn),bn=b.useRef({renderWithProps:!1}),gn=Ht(["body","wrapper"],"tbody"),ir=Ht(["body","row"],"tr"),Xn=Ht(["body","cell"],"td"),sr=Ht(["body","cell"],"th"),gr;me.length?gr=Dn.map(function(xr,Or){var Rr=xr.record,Mr=xr.indent,xo=xr.index,Qr=fn(Rr,Or);return b.createElement($t,{key:Qr,rowKey:Qr,record:Rr,index:Or,renderIndex:xo,rowComponent:ir,cellComponent:Xn,scopeCellComponent:sr,indent:Mr})}):gr=b.createElement(en,{expanded:!0,className:"".concat(Bt,"-placeholder"),prefixCls:Bt,component:ir,cellComponent:Xn,colSpan:rn.length,isEmpty:!0},Tn);var ur=Nt(rn);return b.createElement(Ut.Provider,{value:bn.current},b.createElement(gn,{className:"".concat(Bt,"-tbody")},Je&&b.createElement(pt,{prefixCls:Bt,columnsKey:ur,onColumnResize:ln}),gr))}var Kt=Ot(Mt),cn=["expandable"],Pn="RC_TABLE_INTERNAL_COL_DEFINE";function Rn(ve){var me=ve.expandable,Je=(0,ie.Z)(ve,cn),dt;return"expandable"in ve?dt=(0,ot.Z)((0,ot.Z)({},Je),me):dt=Je,dt.showExpandColumn===!1&&(dt.expandIconColumnIndex=-1),dt}var Fn=["columnType"];function vn(ve){for(var me=ve.colWidths,Je=ve.columns,dt=ve.columCount,Bt=ce(He,["tableLayout"]),Ht=Bt.tableLayout,ln=[],rn=dt||Je.length,fn=!1,un=rn-1;un>=0;un-=1){var Ln=me[un],Tn=Je&&Je[un],Dn=void 0,bn=void 0;if(Tn&&(Dn=Tn[Pn],Ht==="auto"&&(bn=Tn.minWidth)),Ln||bn||Dn||fn){var gn=Dn||{},ir=gn.columnType,Xn=(0,ie.Z)(gn,Fn);ln.unshift(b.createElement("col",(0,Xe.Z)({key:un,style:{width:Ln,minWidth:bn}},Xn))),fn=!0}}return b.createElement("colgroup",null,ln)}var Mn=vn,dn=ee(77654),Vt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function tn(ve,me){return(0,b.useMemo)(function(){for(var Je=[],dt=0;dt<me;dt+=1){var Bt=ve[dt];if(Bt!==void 0)Je[dt]=Bt;else return null}return Je},[ve.join("_"),me])}var on=b.forwardRef(function(ve,me){var Je=ve.className,dt=ve.noData,Bt=ve.columns,Ht=ve.flattenColumns,ln=ve.colWidths,rn=ve.columCount,fn=ve.stickyOffsets,un=ve.direction,Ln=ve.fixHeader,Tn=ve.stickyTopOffset,Dn=ve.stickyBottomOffset,bn=ve.stickyClassName,gn=ve.onScroll,ir=ve.maxContentScroll,Xn=ve.children,sr=(0,ie.Z)(ve,Vt),gr=ce(He,["prefixCls","scrollbarSize","isSticky","getComponent"]),ur=gr.prefixCls,xr=gr.scrollbarSize,Or=gr.isSticky,Rr=gr.getComponent,Mr=Rr(["header","table"],"table"),xo=Or&&!Ln?0:xr,Qr=b.useRef(null),Vr=b.useCallback(function(qr){(0,we.mH)(me,qr),(0,we.mH)(Qr,qr)},[]);b.useEffect(function(){var qr;function Pr(Po){var To=Po,yi=To.currentTarget,fi=To.deltaX;fi&&(gn({currentTarget:yi,scrollLeft:yi.scrollLeft+fi}),Po.preventDefault())}return(qr=Qr.current)===null||qr===void 0||qr.addEventListener("wheel",Pr,{passive:!1}),function(){var Po;(Po=Qr.current)===null||Po===void 0||Po.removeEventListener("wheel",Pr)}},[]);var uo=b.useMemo(function(){return Ht.every(function(qr){return qr.width})},[Ht]),Ar=Ht[Ht.length-1],Fr={fixed:Ar?Ar.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ur,"-cell-scrollbar")}}},Sr=(0,b.useMemo)(function(){return xo?[].concat((0,dn.Z)(Bt),[Fr]):Bt},[xo,Bt]),yr=(0,b.useMemo)(function(){return xo?[].concat((0,dn.Z)(Ht),[Fr]):Ht},[xo,Ht]),Lr=(0,b.useMemo)(function(){var qr=fn.right,Pr=fn.left;return(0,ot.Z)((0,ot.Z)({},fn),{},{left:un==="rtl"?[].concat((0,dn.Z)(Pr.map(function(Po){return Po+xo})),[0]):Pr,right:un==="rtl"?qr:[].concat((0,dn.Z)(qr.map(function(Po){return Po+xo})),[0]),isSticky:Or})},[xo,fn,Or]),Zr=tn(ln,rn);return b.createElement("div",{style:(0,ot.Z)({overflow:"hidden"},Or?{top:Tn,bottom:Dn}:{}),ref:Vr,className:Ve()(Je,(0,Ce.Z)({},bn,!!bn))},b.createElement(Mr,{style:{tableLayout:"fixed",visibility:dt||Zr?null:"hidden"}},(!dt||!ir||uo)&&b.createElement(Mn,{colWidths:Zr?[].concat((0,dn.Z)(Zr),[xo]):[],columCount:rn+1,columns:yr}),Xn((0,ot.Z)((0,ot.Z)({},sr),{},{stickyOffsets:Lr,columns:Sr,flattenColumns:yr}))))}),_t=b.memo(on),hn=function(me){var Je=me.cells,dt=me.stickyOffsets,Bt=me.flattenColumns,Ht=me.rowComponent,ln=me.cellComponent,rn=me.onHeaderRow,fn=me.index,un=ce(He,["prefixCls","direction"]),Ln=un.prefixCls,Tn=un.direction,Dn;rn&&(Dn=rn(Je.map(function(gn){return gn.column}),fn));var bn=Nt(Je.map(function(gn){return gn.column}));return b.createElement(Ht,Dn,Je.map(function(gn,ir){var Xn=gn.column,sr=Ct(gn.colStart,gn.colEnd,Bt,dt,Tn),gr;return Xn&&Xn.onHeaderCell&&(gr=gn.column.onHeaderCell(Xn)),b.createElement(Yt,(0,Xe.Z)({},gn,{scope:Xn.title?gn.colSpan>1?"colgroup":"col":null,ellipsis:Xn.ellipsis,align:Xn.align,component:ln,prefixCls:Ln,key:bn[ir]},sr,{additionalProps:gr,rowType:"header"}))}))},mn=hn;function Sn(ve){var me=[];function Je(ln,rn){var fn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;me[fn]=me[fn]||[];var un=rn,Ln=ln.filter(Boolean).map(function(Tn){var Dn={key:Tn.key,className:Tn.className||"",children:Tn.title,column:Tn,colStart:un},bn=1,gn=Tn.children;return gn&&gn.length>0&&(bn=Je(gn,un,fn+1).reduce(function(ir,Xn){return ir+Xn},0),Dn.hasSubColumns=!0),"colSpan"in Tn&&(bn=Tn.colSpan),"rowSpan"in Tn&&(Dn.rowSpan=Tn.rowSpan),Dn.colSpan=bn,Dn.colEnd=Dn.colStart+bn-1,me[fn].push(Dn),un+=bn,bn});return Ln}Je(ve,0);for(var dt=me.length,Bt=function(rn){me[rn].forEach(function(fn){!("rowSpan"in fn)&&!fn.hasSubColumns&&(fn.rowSpan=dt-rn)})},Ht=0;Ht<dt;Ht+=1)Bt(Ht);return me}var zn=function(me){var Je=me.stickyOffsets,dt=me.columns,Bt=me.flattenColumns,Ht=me.onHeaderRow,ln=ce(He,["prefixCls","getComponent"]),rn=ln.prefixCls,fn=ln.getComponent,un=b.useMemo(function(){return Sn(dt)},[dt]),Ln=fn(["header","wrapper"],"thead"),Tn=fn(["header","row"],"tr"),Dn=fn(["header","cell"],"th");return b.createElement(Ln,{className:"".concat(rn,"-thead")},un.map(function(bn,gn){var ir=b.createElement(mn,{key:gn,flattenColumns:Bt,cells:bn,stickyOffsets:Je,rowComponent:Tn,cellComponent:Dn,onHeaderRow:Ht,index:gn});return ir}))},Wn=Ot(zn),Zn=ee(11592);function Jn(ve){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof me=="number"?me:me.endsWith("%")?ve*parseFloat(me)/100:null}function Gn(ve,me,Je){return b.useMemo(function(){if(me&&me>0){var dt=0,Bt=0;ve.forEach(function(Dn){var bn=Jn(me,Dn.width);bn?dt+=bn:Bt+=1});var Ht=Math.max(me,Je),ln=Math.max(Ht-dt,Bt),rn=Bt,fn=ln/Bt,un=0,Ln=ve.map(function(Dn){var bn=(0,ot.Z)({},Dn),gn=Jn(me,bn.width);if(gn)bn.width=gn;else{var ir=Math.floor(fn);bn.width=rn===1?ln:ir,ln-=ir,rn-=1}return un+=bn.width,bn});if(un<Ht){var Tn=Ht/un;ln=Ht,Ln.forEach(function(Dn,bn){var gn=Math.floor(Dn.width*Tn);Dn.width=bn===Ln.length-1?ln:gn,ln-=gn})}return[Ln,Math.max(un,Ht)]}return[ve,me]},[ve,me,Je])}var hr=["children"],cr=["fixed"];function sn(ve){return(0,Zn.Z)(ve).filter(function(me){return b.isValidElement(me)}).map(function(me){var Je=me.key,dt=me.props,Bt=dt.children,Ht=(0,ie.Z)(dt,hr),ln=(0,ot.Z)({key:Je},Ht);return Bt&&(ln.children=sn(Bt)),ln})}function yn(ve){return ve.filter(function(me){return me&&(0,et.Z)(me)==="object"&&!me.hidden}).map(function(me){var Je=me.children;return Je&&Je.length>0?(0,ot.Z)((0,ot.Z)({},me),{},{children:yn(Je)}):me})}function Hn(ve){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ve.filter(function(Je){return Je&&(0,et.Z)(Je)==="object"}).reduce(function(Je,dt,Bt){var Ht=dt.fixed,ln=Ht===!0?"left":Ht,rn="".concat(me,"-").concat(Bt),fn=dt.children;return fn&&fn.length>0?[].concat((0,dn.Z)(Je),(0,dn.Z)(Hn(fn,rn).map(function(un){return(0,ot.Z)({fixed:ln},un)}))):[].concat((0,dn.Z)(Je),[(0,ot.Z)((0,ot.Z)({key:rn},dt),{},{fixed:ln})])},[])}function An(ve){return ve.map(function(me){var Je=me.fixed,dt=(0,ie.Z)(me,cr),Bt=Je;return Je==="left"?Bt="right":Je==="right"&&(Bt="left"),(0,ot.Z)({fixed:Bt},dt)})}function ct(ve,me){var Je=ve.prefixCls,dt=ve.columns,Bt=ve.children,Ht=ve.expandable,ln=ve.expandedKeys,rn=ve.columnTitle,fn=ve.getRowKey,un=ve.onTriggerExpand,Ln=ve.expandIcon,Tn=ve.rowExpandable,Dn=ve.expandIconColumnIndex,bn=ve.direction,gn=ve.expandRowByClick,ir=ve.columnWidth,Xn=ve.fixed,sr=ve.scrollWidth,gr=ve.clientWidth,ur=b.useMemo(function(){var Ar=dt||sn(Bt)||[];return yn(Ar.slice())},[dt,Bt]),xr=b.useMemo(function(){if(Ht){var Ar=ur.slice();if(!Ar.includes(Fe)){var Fr=Dn||0;Fr>=0&&(Fr||Xn==="left"||!Xn)&&Ar.splice(Fr,0,Fe),Xn==="right"&&Ar.splice(ur.length,0,Fe)}var Sr=Ar.indexOf(Fe);Ar=Ar.filter(function(qr,Pr){return qr!==Fe||Pr===Sr});var yr=ur[Sr],Lr;Xn?Lr=Xn:Lr=yr?yr.fixed:null;var Zr=(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},Pn,{className:"".concat(Je,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",rn),"fixed",Lr),"className","".concat(Je,"-row-expand-icon-cell")),"width",ir),"render",function(Pr,Po,To){var yi=fn(Po,To),fi=ln.has(yi),oi=Tn?Tn(Po):!0,hi=Ln({prefixCls:Je,expanded:fi,expandable:oi,record:Po,onExpand:un});return gn?b.createElement("span",{onClick:function(No){return No.stopPropagation()}},hi):hi});return Ar.map(function(qr){return qr===Fe?Zr:qr})}return ur.filter(function(qr){return qr!==Fe})},[Ht,ur,fn,ln,Ln,bn]),Or=b.useMemo(function(){var Ar=xr;return me&&(Ar=me(Ar)),Ar.length||(Ar=[{render:function(){return null}}]),Ar},[me,xr,bn]),Rr=b.useMemo(function(){return bn==="rtl"?An(Hn(Or)):Hn(Or)},[Or,bn,sr]),Mr=b.useMemo(function(){for(var Ar=-1,Fr=Rr.length-1;Fr>=0;Fr-=1){var Sr=Rr[Fr].fixed;if(Sr==="left"||Sr===!0){Ar=Fr;break}}if(Ar>=0)for(var yr=0;yr<=Ar;yr+=1){var Lr=Rr[yr].fixed;if(Lr!=="left"&&Lr!==!0)return!0}var Zr=Rr.findIndex(function(Po){var To=Po.fixed;return To==="right"});if(Zr>=0)for(var qr=Zr;qr<Rr.length;qr+=1){var Pr=Rr[qr].fixed;if(Pr!=="right")return!0}return!1},[Rr]),xo=Gn(Rr,sr,gr),Qr=(0,qe.Z)(xo,2),Vr=Qr[0],uo=Qr[1];return[Or,Vr,uo,Mr]}var It=ct;function ze(ve,me,Je){var dt=Rn(ve),Bt=dt.expandIcon,Ht=dt.expandedRowKeys,ln=dt.defaultExpandedRowKeys,rn=dt.defaultExpandAllRows,fn=dt.expandedRowRender,un=dt.onExpand,Ln=dt.onExpandedRowsChange,Tn=dt.childrenColumnName,Dn=Bt||Tt,bn=Tn||"children",gn=b.useMemo(function(){return fn?"row":ve.expandable&&ve.internalHooks===fe&&ve.expandable.__PARENT_RENDER_ICON__||me.some(function(Or){return Or&&(0,et.Z)(Or)==="object"&&Or[bn]})?"nest":!1},[!!fn,me]),ir=b.useState(function(){return ln||(rn?an(me,Je,bn):[])}),Xn=(0,qe.Z)(ir,2),sr=Xn[0],gr=Xn[1],ur=b.useMemo(function(){return new Set(Ht||sr||[])},[Ht,sr]),xr=b.useCallback(function(Or){var Rr=Je(Or,me.indexOf(Or)),Mr,xo=ur.has(Rr);xo?(ur.delete(Rr),Mr=(0,dn.Z)(ur)):Mr=[].concat((0,dn.Z)(ur),[Rr]),gr(Mr),un&&un(!xo,Or),Ln&&Ln(Mr)},[Je,ur,me,un,Ln]);return[dt,gn,ur,Dn,bn,xr]}function vt(ve,me,Je){var dt=ve.map(function(Bt,Ht){return Ct(Ht,Ht,ve,me,Je)});return(0,de.Z)(function(){return dt},[dt],function(Bt,Ht){return!(0,Ee.Z)(Bt,Ht)})}function $e(ve){var me=(0,b.useRef)(ve),Je=(0,b.useState)({}),dt=(0,qe.Z)(Je,2),Bt=dt[1],Ht=(0,b.useRef)(null),ln=(0,b.useRef)([]);function rn(fn){ln.current.push(fn);var un=Promise.resolve();Ht.current=un,un.then(function(){if(Ht.current===un){var Ln=ln.current,Tn=me.current;ln.current=[],Ln.forEach(function(Dn){me.current=Dn(me.current)}),Ht.current=null,Tn!==me.current&&Bt({})}})}return(0,b.useEffect)(function(){return function(){Ht.current=null}},[]),[me.current,rn]}function xt(ve){var me=(0,b.useRef)(ve||null),Je=(0,b.useRef)();function dt(){window.clearTimeout(Je.current)}function Bt(ln){me.current=ln,dt(),Je.current=window.setTimeout(function(){me.current=null,Je.current=void 0},100)}function Ht(){return me.current}return(0,b.useEffect)(function(){return dt},[]),[Bt,Ht]}function De(){var ve=b.useState(-1),me=(0,qe.Z)(ve,2),Je=me[0],dt=me[1],Bt=b.useState(-1),Ht=(0,qe.Z)(Bt,2),ln=Ht[0],rn=Ht[1],fn=b.useCallback(function(un,Ln){dt(un),rn(Ln)},[]);return[Je,ln,fn]}var Pt=ee(47273),kt=(0,Pt.Z)()?window:null;function jt(ve,me){var Je=(0,et.Z)(ve)==="object"?ve:{},dt=Je.offsetHeader,Bt=dt===void 0?0:dt,Ht=Je.offsetSummary,ln=Ht===void 0?0:Ht,rn=Je.offsetScroll,fn=rn===void 0?0:rn,un=Je.getContainer,Ln=un===void 0?function(){return kt}:un,Tn=Ln()||kt,Dn=!!ve;return b.useMemo(function(){return{isSticky:Dn,stickyClassName:Dn?"".concat(me,"-sticky-holder"):"",offsetHeader:Bt,offsetSummary:ln,offsetScroll:fn,container:Tn}},[Dn,fn,Bt,ln,me,Tn])}function gt(ve,me,Je){var dt=(0,b.useMemo)(function(){var Bt=me.length,Ht=function(un,Ln,Tn){for(var Dn=[],bn=0,gn=un;gn!==Ln;gn+=Tn)Dn.push(bn),me[gn].fixed&&(bn+=ve[gn]||0);return Dn},ln=Ht(0,Bt,1),rn=Ht(Bt-1,-1,-1).reverse();return Je==="rtl"?{left:rn,right:ln}:{left:ln,right:rn}},[ve,me,Je]);return dt}var ht=gt;function wt(ve){var me=ve.className,Je=ve.children;return b.createElement("div",{className:me},Je)}var Rt=wt,In=ee(8224),On=ee(16089),Nn=ee(76846);function tr(ve){var me=(0,Nn.bn)(ve),Je=me.getBoundingClientRect(),dt=document.documentElement;return{left:Je.left+(window.pageXOffset||dt.scrollLeft)-(dt.clientLeft||document.body.clientLeft||0),top:Je.top+(window.pageYOffset||dt.scrollTop)-(dt.clientTop||document.body.clientTop||0)}}var dr=function(me,Je){var dt,Bt,Ht=me.scrollBodyRef,ln=me.onScroll,rn=me.offsetScroll,fn=me.container,un=me.direction,Ln=ce(He,"prefixCls"),Tn=((dt=Ht.current)===null||dt===void 0?void 0:dt.scrollWidth)||0,Dn=((Bt=Ht.current)===null||Bt===void 0?void 0:Bt.clientWidth)||0,bn=Tn&&Dn*(Dn/Tn),gn=b.useRef(),ir=$e({scrollLeft:0,isHiddenScrollBar:!0}),Xn=(0,qe.Z)(ir,2),sr=Xn[0],gr=Xn[1],ur=b.useRef({delta:0,x:0}),xr=b.useState(!1),Or=(0,qe.Z)(xr,2),Rr=Or[0],Mr=Or[1],xo=b.useRef(null);b.useEffect(function(){return function(){On.Z.cancel(xo.current)}},[]);var Qr=function(){Mr(!1)},Vr=function(yr){yr.persist(),ur.current.delta=yr.pageX-sr.scrollLeft,ur.current.x=0,Mr(!0),yr.preventDefault()},uo=function(yr){var Lr,Zr=yr||((Lr=window)===null||Lr===void 0?void 0:Lr.event),qr=Zr.buttons;if(!Rr||qr===0){Rr&&Mr(!1);return}var Pr=ur.current.x+yr.pageX-ur.current.x-ur.current.delta,Po=un==="rtl";Pr=Math.max(Po?bn-Dn:0,Math.min(Po?0:Dn-bn,Pr));var To=!Po||Math.abs(Pr)+Math.abs(bn)<Dn;To&&(ln({scrollLeft:Pr/Dn*(Tn+2)}),ur.current.x=yr.pageX)},Ar=function(){On.Z.cancel(xo.current),xo.current=(0,On.Z)(function(){if(Ht.current){var yr=tr(Ht.current).top,Lr=yr+Ht.current.offsetHeight,Zr=fn===window?document.documentElement.scrollTop+window.innerHeight:tr(fn).top+fn.clientHeight;Lr-(0,bt.Z)()<=Zr||yr>=Zr-rn?gr(function(qr){return(0,ot.Z)((0,ot.Z)({},qr),{},{isHiddenScrollBar:!0})}):gr(function(qr){return(0,ot.Z)((0,ot.Z)({},qr),{},{isHiddenScrollBar:!1})})}})},Fr=function(yr){gr(function(Lr){return(0,ot.Z)((0,ot.Z)({},Lr),{},{scrollLeft:yr/Tn*Dn||0})})};return b.useImperativeHandle(Je,function(){return{setScrollLeft:Fr,checkScrollBarVisible:Ar}}),b.useEffect(function(){var Sr=(0,In.Z)(document.body,"mouseup",Qr,!1),yr=(0,In.Z)(document.body,"mousemove",uo,!1);return Ar(),function(){Sr.remove(),yr.remove()}},[bn,Rr]),b.useEffect(function(){if(Ht.current){for(var Sr=[],yr=(0,Nn.bn)(Ht.current);yr;)Sr.push(yr),yr=yr.parentElement;return Sr.forEach(function(Lr){return Lr.addEventListener("scroll",Ar,!1)}),window.addEventListener("resize",Ar,!1),window.addEventListener("scroll",Ar,!1),fn.addEventListener("scroll",Ar,!1),function(){Sr.forEach(function(Lr){return Lr.removeEventListener("scroll",Ar)}),window.removeEventListener("resize",Ar),window.removeEventListener("scroll",Ar),fn.removeEventListener("scroll",Ar)}}},[fn]),b.useEffect(function(){sr.isHiddenScrollBar||gr(function(Sr){var yr=Ht.current;return yr?(0,ot.Z)((0,ot.Z)({},Sr),{},{scrollLeft:yr.scrollLeft/yr.scrollWidth*yr.clientWidth}):Sr})},[sr.isHiddenScrollBar]),Tn<=Dn||!bn||sr.isHiddenScrollBar?null:b.createElement("div",{style:{height:(0,bt.Z)(),width:Dn,bottom:rn},className:"".concat(Ln,"-sticky-scroll")},b.createElement("div",{onMouseDown:Vr,ref:gn,className:Ve()("".concat(Ln,"-sticky-scroll-bar"),(0,Ce.Z)({},"".concat(Ln,"-sticky-scroll-bar-active"),Rr)),style:{width:"".concat(bn,"px"),transform:"translate3d(".concat(sr.scrollLeft,"px, 0, 0)")}}))},mr=b.forwardRef(dr);function er(ve){return null}var Yn=er;function Qn(ve){return null}var rr=Qn,wr="rc-table",ar=[],Cr={};function qn(){return"No Data"}function pr(ve,me){var Je=(0,ot.Z)({rowKey:"key",prefixCls:wr,emptyText:qn},ve),dt=Je.prefixCls,Bt=Je.className,Ht=Je.rowClassName,ln=Je.style,rn=Je.data,fn=Je.rowKey,un=Je.scroll,Ln=Je.tableLayout,Tn=Je.direction,Dn=Je.title,bn=Je.footer,gn=Je.summary,ir=Je.caption,Xn=Je.id,sr=Je.showHeader,gr=Je.components,ur=Je.emptyText,xr=Je.onRow,Or=Je.onHeaderRow,Rr=Je.onScroll,Mr=Je.internalHooks,xo=Je.transformColumns,Qr=Je.internalRefs,Vr=Je.tailor,uo=Je.getContainerWidth,Ar=Je.sticky,Fr=Je.rowHoverable,Sr=Fr===void 0?!0:Fr,yr=rn||ar,Lr=!!yr.length,Zr=Mr===fe,qr=b.useCallback(function(Wo,Uo){return(0,Dt.Z)(gr,Wo)||Uo},[gr]),Pr=b.useMemo(function(){return typeof fn=="function"?fn:function(Wo){var Uo=Wo&&Wo[fn];return Uo}},[fn]),Po=qr(["body"]),To=De(),yi=(0,qe.Z)(To,3),fi=yi[0],oi=yi[1],hi=yi[2],Si=ze(Je,yr,Pr),No=(0,qe.Z)(Si,6),Mo=No[0],wi=No[1],ki=No[2],Gr=No[3],go=No[4],$r=No[5],Br=un==null?void 0:un.x,Fo=b.useState(0),Go=(0,qe.Z)(Fo,2),ci=Go[0],ni=Go[1],Ei=It((0,ot.Z)((0,ot.Z)((0,ot.Z)({},Je),Mo),{},{expandable:!!Mo.expandedRowRender,columnTitle:Mo.columnTitle,expandedKeys:ki,getRowKey:Pr,onTriggerExpand:$r,expandIcon:Gr,expandIconColumnIndex:Mo.expandIconColumnIndex,direction:Tn,scrollWidth:Zr&&Vr&&typeof Br=="number"?Br:null,clientWidth:ci}),Zr?xo:null),Ai=(0,qe.Z)(Ei,4),Jr=Ai[0],io=Ai[1],Yo=Ai[2],ti=Ai[3],Qo=Yo!=null?Yo:Br,Hi=b.useMemo(function(){return{columns:Jr,flattenColumns:io}},[Jr,io]),Pi=b.useRef(),va=b.useRef(),pi=b.useRef(),jo=b.useRef();b.useImperativeHandle(me,function(){return{nativeElement:Pi.current,scrollTo:function(Uo){var ta;if(pi.current instanceof HTMLElement){var Pa=Uo.index,na=Uo.top,Nl=Uo.key;if(Ft(na)){var sl;(sl=pi.current)===null||sl===void 0||sl.scrollTo({top:na})}else{var Qa,Ml=Nl!=null?Nl:Pr(yr[Pa]);(Qa=pi.current.querySelector('[data-row-key="'.concat(Ml,'"]')))===null||Qa===void 0||Qa.scrollIntoView()}}else(ta=pi.current)!==null&&ta!==void 0&&ta.scrollTo&&pi.current.scrollTo(Uo)}}});var ri=b.useRef(),ii=b.useState(!1),Fi=(0,qe.Z)(ii,2),bi=Fi[0],$o=Fi[1],mi=b.useState(!1),_o=(0,qe.Z)(mi,2),Qi=_o[0],Li=_o[1],ca=b.useState(new Map),ga=(0,qe.Z)(ca,2),Ga=ga[0],ai=ga[1],Wl=Nt(io),da=Wl.map(function(Wo){return Ga.get(Wo)}),ka=b.useMemo(function(){return da},[da.join("_")]),wa=ht(ka,io,Tn),ya=un&&Jt(un.y),li=un&&Jt(Qo)||!!Mo.fixed,Ea=li&&io.some(function(Wo){var Uo=Wo.fixed;return Uo}),al=b.useRef(),Ua=jt(Ar,dt),Ya=Ua.isSticky,os=Ua.offsetHeader,is=Ua.offsetSummary,as=Ua.offsetScroll,ls=Ua.stickyClassName,Ps=Ua.container,So=b.useMemo(function(){return gn==null?void 0:gn(yr)},[gn,yr]),Ao=(ya||Ya)&&b.isValidElement(So)&&So.type===xe&&So.props.fixed,vi,Oi,Gi;ya&&(Oi={overflowY:Lr?"scroll":"auto",maxHeight:un.y}),li&&(vi={overflowX:"auto"},ya||(Oi={overflowY:"hidden"}),Gi={width:Qo===!0?"auto":Qo,minWidth:"100%"});var ji=b.useCallback(function(Wo,Uo){ai(function(ta){if(ta.get(Wo)!==Uo){var Pa=new Map(ta);return Pa.set(Wo,Uo),Pa}return ta})},[]),za=xt(null),ea=(0,qe.Z)(za,2),Il=ea[0],Os=ea[1];function Kl(Wo,Uo){Uo&&(typeof Uo=="function"?Uo(Wo):Uo.scrollLeft!==Wo&&(Uo.scrollLeft=Wo,Uo.scrollLeft!==Wo&&setTimeout(function(){Uo.scrollLeft=Wo},0)))}var vl=(0,Se.Z)(function(Wo){var Uo=Wo.currentTarget,ta=Wo.scrollLeft,Pa=Tn==="rtl",na=typeof ta=="number"?ta:Uo.scrollLeft,Nl=Uo||Cr;if(!Os()||Os()===Nl){var sl;Il(Nl),Kl(na,va.current),Kl(na,pi.current),Kl(na,ri.current),Kl(na,(sl=al.current)===null||sl===void 0?void 0:sl.setScrollLeft)}var Qa=Uo||va.current;if(Qa){var Ml=Zr&&Vr&&typeof Qo=="number"?Qo:Qa.scrollWidth,zs=Qa.clientWidth;if(Ml===zs){$o(!1),Li(!1);return}Pa?($o(-na<Ml-zs),Li(-na>0)):($o(na>0),Li(na<Ml-zs))}}),ss=(0,Se.Z)(function(Wo){vl(Wo),Rr==null||Rr(Wo)}),gl=function(){if(li&&pi.current){var Uo;vl({currentTarget:(0,Nn.bn)(pi.current),scrollLeft:(Uo=pi.current)===null||Uo===void 0?void 0:Uo.scrollLeft})}else $o(!1),Li(!1)},Ds=function(Uo){var ta,Pa=Uo.width;(ta=al.current)===null||ta===void 0||ta.checkScrollBarVisible();var na=Pi.current?Pi.current.offsetWidth:Pa;Zr&&uo&&Pi.current&&(na=uo(Pi.current,na)||na),na!==ci&&(gl(),ni(na))},us=b.useRef(!1);b.useEffect(function(){us.current&&gl()},[li,rn,Jr.length]),b.useEffect(function(){us.current=!0},[]);var Is=b.useState(0),Js=(0,qe.Z)(Is,2),ll=Js[0],Ts=Js[1],vu=b.useState(!0),Ns=(0,qe.Z)(vu,2),Vl=Ns[0],gu=Ns[1];(0,ge.Z)(function(){(!Vr||!Zr)&&(pi.current instanceof Element?Ts((0,bt.o)(pi.current).width):Ts((0,bt.o)(jo.current).width)),gu((0,nt.G)("position","sticky"))},[]),b.useEffect(function(){Zr&&Qr&&(Qr.body.current=pi.current)});var yu=b.useCallback(function(Wo){return b.createElement(b.Fragment,null,b.createElement(Wn,Wo),Ao==="top"&&b.createElement(Ae,Wo,So))},[Ao,So]),Xl=b.useCallback(function(Wo){return b.createElement(Ae,Wo,So)},[So]),Ms=qr(["table"],"table"),Gl=b.useMemo(function(){return Ln||(Ea?Qo==="max-content"?"auto":"fixed":ya||Ya||io.some(function(Wo){var Uo=Wo.ellipsis;return Uo})?"fixed":"auto")},[ya,Ea,io,Ln,Ya]),Bs,Ul={colWidths:ka,columCount:io.length,stickyOffsets:wa,onHeaderRow:Or,fixHeader:ya,scroll:un},ks=b.useMemo(function(){return Lr?null:typeof ur=="function"?ur():ur},[Lr,ur]),Qs=b.createElement(Kt,{data:yr,measureColumnWidth:ya||li||Ya}),Ls=b.createElement(Mn,{colWidths:io.map(function(Wo){var Uo=Wo.width;return Uo}),columns:io}),Rs=ir!=null?b.createElement("caption",{className:"".concat(dt,"-caption")},ir):void 0,bu=(0,Oe.Z)(Je,{data:!0}),cs=(0,Oe.Z)(Je,{aria:!0});if(ya||Ya){var yl;typeof Po=="function"?(yl=Po(yr,{scrollbarSize:ll,ref:pi,onScroll:vl}),Ul.colWidths=io.map(function(Wo,Uo){var ta=Wo.width,Pa=Uo===io.length-1?ta-ll:ta;return typeof Pa=="number"&&!Number.isNaN(Pa)?Pa:0})):yl=b.createElement("div",{style:(0,ot.Z)((0,ot.Z)({},vi),Oi),onScroll:ss,ref:pi,className:Ve()("".concat(dt,"-body"))},b.createElement(Ms,(0,Xe.Z)({style:(0,ot.Z)((0,ot.Z)({},Gi),{},{tableLayout:Gl})},cs),Rs,Ls,Qs,!Ao&&So&&b.createElement(Ae,{stickyOffsets:wa,flattenColumns:io},So)));var Tl=(0,ot.Z)((0,ot.Z)((0,ot.Z)({noData:!yr.length,maxContentScroll:li&&Qo==="max-content"},Ul),Hi),{},{direction:Tn,stickyClassName:ls,onScroll:vl});Bs=b.createElement(b.Fragment,null,sr!==!1&&b.createElement(_t,(0,Xe.Z)({},Tl,{stickyTopOffset:os,className:"".concat(dt,"-header"),ref:va}),yu),yl,Ao&&Ao!=="top"&&b.createElement(_t,(0,Xe.Z)({},Tl,{stickyBottomOffset:is,className:"".concat(dt,"-summary"),ref:ri}),Xl),Ya&&pi.current&&pi.current instanceof Element&&b.createElement(mr,{ref:al,offsetScroll:as,scrollBodyRef:pi,onScroll:vl,container:Ps,direction:Tn}))}else Bs=b.createElement("div",{style:(0,ot.Z)((0,ot.Z)({},vi),Oi),className:Ve()("".concat(dt,"-content")),onScroll:vl,ref:pi},b.createElement(Ms,(0,Xe.Z)({style:(0,ot.Z)((0,ot.Z)({},Gi),{},{tableLayout:Gl})},cs),Rs,Ls,sr!==!1&&b.createElement(Wn,(0,Xe.Z)({},Ul,Hi)),Qs,So&&b.createElement(Ae,{stickyOffsets:wa,flattenColumns:io},So)));var As=b.createElement("div",(0,Xe.Z)({className:Ve()(dt,Bt,(0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)((0,Ce.Z)({},"".concat(dt,"-rtl"),Tn==="rtl"),"".concat(dt,"-ping-left"),bi),"".concat(dt,"-ping-right"),Qi),"".concat(dt,"-layout-fixed"),Ln==="fixed"),"".concat(dt,"-fixed-header"),ya),"".concat(dt,"-fixed-column"),Ea),"".concat(dt,"-fixed-column-gapped"),Ea&&ti),"".concat(dt,"-scroll-horizontal"),li),"".concat(dt,"-has-fix-left"),io[0]&&io[0].fixed),"".concat(dt,"-has-fix-right"),io[io.length-1]&&io[io.length-1].fixed==="right")),style:ln,id:Xn,ref:Pi},bu),Dn&&b.createElement(Rt,{className:"".concat(dt,"-title")},Dn(yr)),b.createElement("div",{ref:jo,className:"".concat(dt,"-container")},Bs),bn&&b.createElement(Rt,{className:"".concat(dt,"-footer")},bn(yr)));li&&(As=b.createElement(Qe.Z,{onResize:Ds},As));var Fs=vt(io,wa,Tn),xu=b.useMemo(function(){return{scrollX:Qo,prefixCls:dt,getComponent:qr,scrollbarSize:ll,direction:Tn,fixedInfoList:Fs,isSticky:Ya,supportSticky:Vl,componentWidth:ci,fixHeader:ya,fixColumn:Ea,horizonScroll:li,tableLayout:Gl,rowClassName:Ht,expandedRowClassName:Mo.expandedRowClassName,expandIcon:Gr,expandableType:wi,expandRowByClick:Mo.expandRowByClick,expandedRowRender:Mo.expandedRowRender,onTriggerExpand:$r,expandIconColumnIndex:Mo.expandIconColumnIndex,indentSize:Mo.indentSize,allColumnsFixedLeft:io.every(function(Wo){return Wo.fixed==="left"}),emptyNode:ks,columns:Jr,flattenColumns:io,onColumnResize:ji,hoverStartRow:fi,hoverEndRow:oi,onHover:hi,rowExpandable:Mo.rowExpandable,onRow:xr,getRowKey:Pr,expandedKeys:ki,childrenColumnName:go,rowHoverable:Sr}},[Qo,dt,qr,ll,Tn,Fs,Ya,Vl,ci,ya,Ea,li,Gl,Ht,Mo.expandedRowClassName,Gr,wi,Mo.expandRowByClick,Mo.expandedRowRender,$r,Mo.expandIconColumnIndex,Mo.indentSize,ks,Jr,io,ji,fi,oi,hi,Mo.rowExpandable,xr,Pr,ki,go,Sr]);return b.createElement(He.Provider,{value:xu},As)}var vr=b.forwardRef(pr);function Kr(ve){return yt(vr,ve)}var _r=Kr();_r.EXPAND_COLUMN=Fe,_r.INTERNAL_HOOKS=fe,_r.Column=Yn,_r.ColumnGroup=rr,_r.Summary=Le;var Wr=_r,Ur=ee(48911),ao=Pe(null),Hr=Pe(null);function to(ve,me,Je){var dt=me||1;return Je[ve+dt]-(Je[ve]||0)}function Ir(ve){var me=ve.rowInfo,Je=ve.column,dt=ve.colIndex,Bt=ve.indent,Ht=ve.index,ln=ve.component,rn=ve.renderIndex,fn=ve.record,un=ve.style,Ln=ve.className,Tn=ve.inverse,Dn=ve.getHeight,bn=Je.render,gn=Je.dataIndex,ir=Je.className,Xn=Je.width,sr=ce(Hr,["columnsOffset"]),gr=sr.columnsOffset,ur=Ke(me,Je,dt,Bt,Ht),xr=ur.key,Or=ur.fixedInfo,Rr=ur.appendCellNode,Mr=ur.additionalCellProps,xo=Mr.style,Qr=Mr.colSpan,Vr=Qr===void 0?1:Qr,uo=Mr.rowSpan,Ar=uo===void 0?1:uo,Fr=dt-1,Sr=to(Fr,Vr,gr),yr=Vr>1?Xn-Sr:0,Lr=(0,ot.Z)((0,ot.Z)((0,ot.Z)({},xo),un),{},{flex:"0 0 ".concat(Sr,"px"),width:"".concat(Sr,"px"),marginRight:yr,pointerEvents:"auto"}),Zr=b.useMemo(function(){return Tn?Ar<=1:Vr===0||Ar===0||Ar>1},[Ar,Vr,Tn]);Zr?Lr.visibility="hidden":Tn&&(Lr.height=Dn==null?void 0:Dn(Ar));var qr=Zr?function(){return null}:bn,Pr={};return(Ar===0||Vr===0)&&(Pr.rowSpan=1,Pr.colSpan=1),b.createElement(Yt,(0,Xe.Z)({className:Ve()(ir,Ln),ellipsis:Je.ellipsis,align:Je.align,scope:Je.rowScope,component:ln,prefixCls:me.prefixCls,key:xr,record:fn,index:Ht,renderIndex:rn,dataIndex:gn,render:qr,shouldCellUpdate:Je.shouldCellUpdate},Or,{appendNode:Rr,additionalProps:(0,ot.Z)((0,ot.Z)({},Mr),{},{style:Lr},Pr)}))}var ro=Ir,ho=["data","index","className","rowKey","style","extra","getHeight"],En=b.forwardRef(function(ve,me){var Je=ve.data,dt=ve.index,Bt=ve.className,Ht=ve.rowKey,ln=ve.style,rn=ve.extra,fn=ve.getHeight,un=(0,ie.Z)(ve,ho),Ln=Je.record,Tn=Je.indent,Dn=Je.index,bn=ce(He,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),gn=bn.scrollX,ir=bn.flattenColumns,Xn=bn.prefixCls,sr=bn.fixColumn,gr=bn.componentWidth,ur=ce(ao,["getComponent"]),xr=ur.getComponent,Or=Zt(Ln,Ht,dt,Tn),Rr=xr(["body","row"],"div"),Mr=xr(["body","cell"],"div"),xo=Or.rowSupportExpand,Qr=Or.expanded,Vr=Or.rowProps,uo=Or.expandedRowRender,Ar=Or.expandedRowClassName,Fr;if(xo&&Qr){var Sr=uo(Ln,dt,Tn+1,Qr),yr=Wt(Ar,Ln,dt,Tn),Lr={};sr&&(Lr={style:(0,Ce.Z)({},"--virtual-width","".concat(gr,"px"))});var Zr="".concat(Xn,"-expanded-row-cell");Fr=b.createElement(Rr,{className:Ve()("".concat(Xn,"-expanded-row"),"".concat(Xn,"-expanded-row-level-").concat(Tn+1),yr)},b.createElement(Yt,{component:Mr,prefixCls:Xn,className:Ve()(Zr,(0,Ce.Z)({},"".concat(Zr,"-fixed"),sr)),additionalProps:Lr},Sr))}var qr=(0,ot.Z)((0,ot.Z)({},ln),{},{width:gn});rn&&(qr.position="absolute",qr.pointerEvents="none");var Pr=b.createElement(Rr,(0,Xe.Z)({},Vr,un,{"data-row-key":Ht,ref:xo?null:me,className:Ve()(Bt,"".concat(Xn,"-row"),Vr==null?void 0:Vr.className,(0,Ce.Z)({},"".concat(Xn,"-row-extra"),rn)),style:(0,ot.Z)((0,ot.Z)({},qr),Vr==null?void 0:Vr.style)}),ir.map(function(Po,To){return b.createElement(ro,{key:To,component:Mr,rowInfo:Or,column:Po,colIndex:To,indent:Tn,index:dt,renderIndex:Dn,record:Ln,inverse:rn,getHeight:fn})}));return xo?b.createElement("div",{ref:me},Pr,Fr):Pr}),Vn=Ot(En),zr=Vn,no=b.forwardRef(function(ve,me){var Je=ve.data,dt=ve.onScroll,Bt=ce(He,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Ht=Bt.flattenColumns,ln=Bt.onColumnResize,rn=Bt.getRowKey,fn=Bt.expandedKeys,un=Bt.prefixCls,Ln=Bt.childrenColumnName,Tn=Bt.scrollX,Dn=Bt.direction,bn=ce(ao),gn=bn.sticky,ir=bn.scrollY,Xn=bn.listItemHeight,sr=bn.getComponent,gr=bn.onScroll,ur=b.useRef(),xr=zt(Je,Ln,fn,rn),Or=b.useMemo(function(){var Fr=0;return Ht.map(function(Sr){var yr=Sr.width,Lr=Sr.key;return Fr+=yr,[Lr,yr,Fr]})},[Ht]),Rr=b.useMemo(function(){return Or.map(function(Fr){return Fr[2]})},[Or]);b.useEffect(function(){Or.forEach(function(Fr){var Sr=(0,qe.Z)(Fr,2),yr=Sr[0],Lr=Sr[1];ln(yr,Lr)})},[Or]),b.useImperativeHandle(me,function(){var Fr,Sr={scrollTo:function(Lr){var Zr;(Zr=ur.current)===null||Zr===void 0||Zr.scrollTo(Lr)},nativeElement:(Fr=ur.current)===null||Fr===void 0?void 0:Fr.nativeElement};return Object.defineProperty(Sr,"scrollLeft",{get:function(){var Lr;return((Lr=ur.current)===null||Lr===void 0?void 0:Lr.getScrollInfo().x)||0},set:function(Lr){var Zr;(Zr=ur.current)===null||Zr===void 0||Zr.scrollTo({left:Lr})}}),Sr});var Mr=function(Sr,yr){var Lr,Zr=(Lr=xr[yr])===null||Lr===void 0?void 0:Lr.record,qr=Sr.onCell;if(qr){var Pr,Po=qr(Zr,yr);return(Pr=Po==null?void 0:Po.rowSpan)!==null&&Pr!==void 0?Pr:1}return 1},xo=function(Sr){var yr=Sr.start,Lr=Sr.end,Zr=Sr.getSize,qr=Sr.offsetY;if(Lr<0)return null;for(var Pr=Ht.filter(function(Gr){return Mr(Gr,yr)===0}),Po=yr,To=function(go){if(Pr=Pr.filter(function($r){return Mr($r,go)===0}),!Pr.length)return Po=go,1},yi=yr;yi>=0&&!To(yi);yi-=1);for(var fi=Ht.filter(function(Gr){return Mr(Gr,Lr)!==1}),oi=Lr,hi=function(go){if(fi=fi.filter(function($r){return Mr($r,go)!==1}),!fi.length)return oi=Math.max(go-1,Lr),1},Si=Lr;Si<xr.length&&!hi(Si);Si+=1);for(var No=[],Mo=function(go){var $r=xr[go];if(!$r)return 1;Ht.some(function(Br){return Mr(Br,go)>1})&&No.push(go)},wi=Po;wi<=oi;wi+=1)Mo(wi);var ki=No.map(function(Gr){var go=xr[Gr],$r=rn(go.record,Gr),Br=function(ci){var ni=Gr+ci-1,Ei=rn(xr[ni].record,ni),Ai=Zr($r,Ei);return Ai.bottom-Ai.top},Fo=Zr($r);return b.createElement(zr,{key:Gr,data:go,rowKey:$r,index:Gr,style:{top:-qr+Fo.top},extra:!0,getHeight:Br})});return ki},Qr=b.useMemo(function(){return{columnsOffset:Rr}},[Rr]),Vr="".concat(un,"-tbody"),uo=sr(["body","wrapper"]),Ar={};return gn&&(Ar.position="sticky",Ar.bottom=0,(0,et.Z)(gn)==="object"&&gn.offsetScroll&&(Ar.bottom=gn.offsetScroll)),b.createElement(Hr.Provider,{value:Qr},b.createElement(Ur.Z,{fullHeight:!1,ref:ur,prefixCls:"".concat(Vr,"-virtual"),styles:{horizontalScrollBar:Ar},className:Vr,height:ir,itemHeight:Xn||24,data:xr,itemKey:function(Sr){return rn(Sr.record)},component:uo,scrollWidth:Tn,direction:Dn,onVirtualScroll:function(Sr){var yr,Lr=Sr.x;dt({currentTarget:(yr=ur.current)===null||yr===void 0?void 0:yr.nativeElement,scrollLeft:Lr})},onScroll:gr,extraRender:xo},function(Fr,Sr,yr){var Lr=rn(Fr.record,Sr);return b.createElement(zr,{data:Fr,rowKey:Lr,index:Sr,style:yr.style})}))}),vo=Ot(no),Dr=vo,kr=function(me,Je){var dt=Je.ref,Bt=Je.onScroll;return b.createElement(Dr,{ref:dt,data:me,onScroll:Bt})};function lr(ve,me){var Je=ve.data,dt=ve.columns,Bt=ve.scroll,Ht=ve.sticky,ln=ve.prefixCls,rn=ln===void 0?wr:ln,fn=ve.className,un=ve.listItemHeight,Ln=ve.components,Tn=ve.onScroll,Dn=Bt||{},bn=Dn.x,gn=Dn.y;typeof bn!="number"&&(bn=1),typeof gn!="number"&&(gn=500);var ir=(0,rt.zX)(function(gr,ur){return(0,Dt.Z)(Ln,gr)||ur}),Xn=(0,rt.zX)(Tn),sr=b.useMemo(function(){return{sticky:Ht,scrollY:gn,listItemHeight:un,getComponent:ir,onScroll:Xn}},[Ht,gn,un,ir,Xn]);return b.createElement(ao.Provider,{value:sr},b.createElement(Wr,(0,Xe.Z)({},ve,{className:Ve()(fn,"".concat(rn,"-virtual")),scroll:(0,ot.Z)((0,ot.Z)({},Bt),{},{x:bn}),components:(0,ot.Z)((0,ot.Z)({},Ln),{},{body:Je!=null&&Je.length?kr:void 0}),columns:dt,internalHooks:fe,tailor:!0,ref:me})))}var wn=b.forwardRef(lr);function jn(ve){return yt(wn,ve)}var Kn=jn(),kn=null,Er=ve=>null,Bn=ve=>null,_n=ee(84105),or=ee(82661),eo=ee(34643),Oo=ee(34061),bo=ee(18929);function ko(ve){const[me,Je]=(0,b.useState)(null);return[(0,b.useCallback)((Ht,ln,rn)=>{const fn=me!=null?me:Ht,un=Math.min(fn||0,Ht),Ln=Math.max(fn||0,Ht),Tn=ln.slice(un,Ln+1).map(gn=>ve(gn)),Dn=Tn.some(gn=>!rn.has(gn)),bn=[];return Tn.forEach(gn=>{Dn?(rn.has(gn)||bn.push(gn),rn.add(gn)):(rn.delete(gn),bn.push(gn))}),Je(Dn?Ln:null),bn},[me]),Ht=>{Je(Ht)}]}var Do=ee(32383),Io=ee(62673),Zo=ee(75727),Lo=ee(47889);const Ro={},si="SELECT_ALL",xi="SELECT_INVERT",Ii="SELECT_NONE",Ti=[],Ci=(ve,me)=>{let Je=[];return(me||[]).forEach(dt=>{Je.push(dt),dt&&typeof dt=="object"&&ve in dt&&(Je=[].concat((0,dn.Z)(Je),(0,dn.Z)(Ci(ve,dt[ve]))))}),Je};var Xr=(ve,me)=>{const{preserveSelectedRowKeys:Je,selectedRowKeys:dt,defaultSelectedRowKeys:Bt,getCheckboxProps:Ht,onChange:ln,onSelect:rn,onSelectAll:fn,onSelectInvert:un,onSelectNone:Ln,onSelectMultiple:Tn,columnWidth:Dn,type:bn,selections:gn,fixed:ir,renderCell:Xn,hideSelectAll:sr,checkStrictly:gr=!0}=me||{},{prefixCls:ur,data:xr,pageData:Or,getRecordByKey:Rr,getRowKey:Mr,expandType:xo,childrenColumnName:Qr,locale:Vr,getPopupContainer:uo}=ve,Ar=(0,Do.ln)("Table"),[Fr,Sr]=ko(Gr=>Gr),[yr,Lr]=(0,bo.Z)(dt||Bt||Ti,{value:dt}),Zr=b.useRef(new Map),qr=(0,b.useCallback)(Gr=>{if(Je){const go=new Map;Gr.forEach($r=>{let Br=Rr($r);!Br&&Zr.current.has($r)&&(Br=Zr.current.get($r)),go.set($r,Br)}),Zr.current=go}},[Rr,Je]);b.useEffect(()=>{qr(yr)},[yr]);const Pr=(0,b.useMemo)(()=>Ci(Qr,Or),[Qr,Or]),{keyEntities:Po}=(0,b.useMemo)(()=>{if(gr)return{keyEntities:null};let Gr=xr;if(Je){const go=new Set(Pr.map((Br,Fo)=>Mr(Br,Fo))),$r=Array.from(Zr.current).reduce((Br,Fo)=>{let[Go,ci]=Fo;return go.has(Go)?Br:Br.concat(ci)},[]);Gr=[].concat((0,dn.Z)(Gr),(0,dn.Z)($r))}return(0,Oo.I8)(Gr,{externalGetKey:Mr,childrenPropName:Qr})},[xr,Mr,gr,Qr,Je,Pr]),To=(0,b.useMemo)(()=>{const Gr=new Map;return Pr.forEach((go,$r)=>{const Br=Mr(go,$r),Fo=(Ht?Ht(go):null)||{};Gr.set(Br,Fo)}),Gr},[Pr,Mr,Ht]),yi=(0,b.useCallback)(Gr=>{const go=Mr(Gr);let $r;return To.has(go)?$r=To.get(Mr(Gr)):$r=Ht?Ht(Gr):void 0,!!($r!=null&&$r.disabled)},[To,Mr]),[fi,oi]=(0,b.useMemo)(()=>{if(gr)return[yr||[],[]];const{checkedKeys:Gr,halfCheckedKeys:go}=(0,eo.S)(yr,!0,Po,yi);return[Gr||[],go]},[yr,gr,Po,yi]),hi=(0,b.useMemo)(()=>{const Gr=bn==="radio"?fi.slice(0,1):fi;return new Set(Gr)},[fi,bn]),Si=(0,b.useMemo)(()=>bn==="radio"?new Set:new Set(oi),[oi,bn]);b.useEffect(()=>{me||Lr(Ti)},[!!me]);const No=(0,b.useCallback)((Gr,go)=>{let $r,Br;qr(Gr),Je?($r=Gr,Br=Gr.map(Fo=>Zr.current.get(Fo))):($r=[],Br=[],Gr.forEach(Fo=>{const Go=Rr(Fo);Go!==void 0&&($r.push(Fo),Br.push(Go))})),Lr($r),ln==null||ln($r,Br,{type:go})},[Lr,Rr,ln,Je]),Mo=(0,b.useCallback)((Gr,go,$r,Br)=>{if(rn){const Fo=$r.map(Go=>Rr(Go));rn(Rr(Gr),go,Fo,Br)}No($r,"single")},[rn,Rr,No]),wi=(0,b.useMemo)(()=>!gn||sr?null:(gn===!0?[si,xi,Ii]:gn).map(go=>go===si?{key:"all",text:Vr.selectionAll,onSelect(){No(xr.map(($r,Br)=>Mr($r,Br)).filter($r=>{const Br=To.get($r);return!(Br!=null&&Br.disabled)||hi.has($r)}),"all")}}:go===xi?{key:"invert",text:Vr.selectInvert,onSelect(){const $r=new Set(hi);Or.forEach((Fo,Go)=>{const ci=Mr(Fo,Go),ni=To.get(ci);ni!=null&&ni.disabled||($r.has(ci)?$r.delete(ci):$r.add(ci))});const Br=Array.from($r);un&&(Ar.deprecated(!1,"onSelectInvert","onChange"),un(Br)),No(Br,"invert")}}:go===Ii?{key:"none",text:Vr.selectNone,onSelect(){Ln==null||Ln(),No(Array.from(hi).filter($r=>{const Br=To.get($r);return Br==null?void 0:Br.disabled}),"none")}}:go).map(go=>Object.assign(Object.assign({},go),{onSelect:function(){for(var $r,Br,Fo=arguments.length,Go=new Array(Fo),ci=0;ci<Fo;ci++)Go[ci]=arguments[ci];(Br=go.onSelect)===null||Br===void 0||($r=Br).call.apply($r,[go].concat(Go)),Sr(null)}})),[gn,hi,Or,Mr,un,No]);return[(0,b.useCallback)(Gr=>{var go;if(!me)return Gr.filter(jo=>jo!==Ro);let $r=(0,dn.Z)(Gr);const Br=new Set(hi),Fo=Pr.map(Mr).filter(jo=>!To.get(jo).disabled),Go=Fo.every(jo=>Br.has(jo)),ci=Fo.some(jo=>Br.has(jo)),ni=()=>{const jo=[];Go?Fo.forEach(ii=>{Br.delete(ii),jo.push(ii)}):Fo.forEach(ii=>{Br.has(ii)||(Br.add(ii),jo.push(ii))});const ri=Array.from(Br);fn==null||fn(!Go,ri.map(ii=>Rr(ii)),jo.map(ii=>Rr(ii))),No(ri,"all"),Sr(null)};let Ei,Ai;if(bn!=="radio"){let jo;if(wi){const $o={getPopupContainer:uo,items:wi.map((mi,_o)=>{const{key:Qi,text:Li,onSelect:ca}=mi;return{key:Qi!=null?Qi:_o,onClick:()=>{ca==null||ca(Fo)},label:Li}})};jo=b.createElement("div",{className:`${ur}-selection-extra`},b.createElement(Zo.Z,{menu:$o,getPopupContainer:uo},b.createElement("span",null,b.createElement(_n.Z,null))))}const ri=Pr.map(($o,mi)=>{const _o=Mr($o,mi),Qi=To.get(_o)||{};return Object.assign({checked:Br.has(_o)},Qi)}).filter($o=>{let{disabled:mi}=$o;return mi}),ii=!!ri.length&&ri.length===Pr.length,Fi=ii&&ri.every($o=>{let{checked:mi}=$o;return mi}),bi=ii&&ri.some($o=>{let{checked:mi}=$o;return mi});Ai=b.createElement(Io.default,{checked:ii?Fi:!!Pr.length&&Go,indeterminate:ii?!Fi&&bi:!Go&&ci,onChange:ni,disabled:Pr.length===0||ii,"aria-label":jo?"Custom selection":"Select all",skipGroup:!0}),Ei=!sr&&b.createElement("div",{className:`${ur}-selection`},Ai,jo)}let Jr;bn==="radio"?Jr=(jo,ri,ii)=>{const Fi=Mr(ri,ii),bi=Br.has(Fi),$o=To.get(Fi);return{node:b.createElement(Lo.ZP,Object.assign({},$o,{checked:bi,onClick:mi=>{var _o;mi.stopPropagation(),(_o=$o==null?void 0:$o.onClick)===null||_o===void 0||_o.call($o,mi)},onChange:mi=>{var _o;Br.has(Fi)||Mo(Fi,!0,[Fi],mi.nativeEvent),(_o=$o==null?void 0:$o.onChange)===null||_o===void 0||_o.call($o,mi)}})),checked:bi}}:Jr=(jo,ri,ii)=>{var Fi;const bi=Mr(ri,ii),$o=Br.has(bi),mi=Si.has(bi),_o=To.get(bi);let Qi;return xo==="nest"?Qi=mi:Qi=(Fi=_o==null?void 0:_o.indeterminate)!==null&&Fi!==void 0?Fi:mi,{node:b.createElement(Io.default,Object.assign({},_o,{indeterminate:Qi,checked:$o,skipGroup:!0,onClick:Li=>{var ca;Li.stopPropagation(),(ca=_o==null?void 0:_o.onClick)===null||ca===void 0||ca.call(_o,Li)},onChange:Li=>{var ca;const{nativeEvent:ga}=Li,{shiftKey:Ga}=ga,ai=Fo.findIndex(da=>da===bi),Wl=fi.some(da=>Fo.includes(da));if(Ga&&gr&&Wl){const da=Fr(ai,Fo,Br),ka=Array.from(Br);Tn==null||Tn(!$o,ka.map(wa=>Rr(wa)),da.map(wa=>Rr(wa))),No(ka,"multiple")}else{const da=fi;if(gr){const ka=$o?(0,or._5)(da,bi):(0,or.L0)(da,bi);Mo(bi,!$o,ka,ga)}else{const ka=(0,eo.S)([].concat((0,dn.Z)(da),[bi]),!0,Po,yi),{checkedKeys:wa,halfCheckedKeys:ya}=ka;let li=wa;if($o){const Ea=new Set(wa);Ea.delete(bi),li=(0,eo.S)(Array.from(Ea),{checked:!1,halfCheckedKeys:ya},Po,yi).checkedKeys}Mo(bi,!$o,li,ga)}}Sr($o?null:ai),(ca=_o==null?void 0:_o.onChange)===null||ca===void 0||ca.call(_o,Li)}})),checked:$o}};const io=(jo,ri,ii)=>{const{node:Fi,checked:bi}=Jr(jo,ri,ii);return Xn?Xn(bi,ri,ii,Fi):Fi};if(!$r.includes(Ro))if($r.findIndex(jo=>{var ri;return((ri=jo[Pn])===null||ri===void 0?void 0:ri.columnType)==="EXPAND_COLUMN"})===0){const[jo,...ri]=$r;$r=[jo,Ro].concat((0,dn.Z)(ri))}else $r=[Ro].concat((0,dn.Z)($r));const Yo=$r.indexOf(Ro);$r=$r.filter((jo,ri)=>jo!==Ro||ri===Yo);const ti=$r[Yo-1],Qo=$r[Yo+1];let Hi=ir;Hi===void 0&&((Qo==null?void 0:Qo.fixed)!==void 0?Hi=Qo.fixed:(ti==null?void 0:ti.fixed)!==void 0&&(Hi=ti.fixed)),Hi&&ti&&((go=ti[Pn])===null||go===void 0?void 0:go.columnType)==="EXPAND_COLUMN"&&ti.fixed===void 0&&(ti.fixed=Hi);const Pi=Ve()(`${ur}-selection-col`,{[`${ur}-selection-col-with-dropdown`]:gn&&bn==="checkbox"}),va=()=>me!=null&&me.columnTitle?typeof me.columnTitle=="function"?me.columnTitle(Ai):me.columnTitle:Ei,pi={fixed:Hi,width:Dn,className:`${ur}-selection-column`,title:va(),render:io,onCell:me.onCell,[Pn]:{className:Pi}};return $r.map(jo=>jo===Ro?pi:jo)},[Mr,Pr,me,fi,hi,Si,Dn,wi,xo,To,Tn,Mo,yi]),hi]},qo=ee(2738);function ei(ve,me){return ve._antProxy=ve._antProxy||{},Object.keys(me).forEach(Je=>{if(!(Je in ve._antProxy)){const dt=ve[Je];ve._antProxy[Je]=dt,ve[Je]=me[Je]}}),ve}function co(ve,me){return(0,b.useImperativeHandle)(ve,()=>{const Je=me(),{nativeElement:dt}=Je;return typeof Proxy!="undefined"?new Proxy(dt,{get(Bt,Ht){return Je[Ht]?Je[Ht]:Reflect.get(Bt,Ht)}}):ei(dt,Je)})}var Ko=ee(83010),Jo=ee(48755),Co=ee(38406),Ho=ee(83397),Bo=ee(31756),Zi=ee(13783),ha=ee(85981),Wi=ee(31709),Ni=ee(29787),cl=ee(57700);function el(ve){return me=>{const{prefixCls:Je,onExpand:dt,record:Bt,expanded:Ht,expandable:ln}=me,rn=`${Je}-row-expand-icon`;return b.createElement("button",{type:"button",onClick:fn=>{dt(Bt,fn),fn.stopPropagation()},className:Ve()(rn,{[`${rn}-spaced`]:!ln,[`${rn}-expanded`]:ln&&Ht,[`${rn}-collapsed`]:ln&&!Ht}),"aria-label":Ht?ve.collapse:ve.expand,"aria-expanded":Ht})}}var po=el;function wo(ve){return(Je,dt)=>{const Bt=Je.querySelector(`.${ve}-container`);let Ht=dt;if(Bt){const ln=getComputedStyle(Bt),rn=parseInt(ln.borderLeftWidth,10),fn=parseInt(ln.borderRightWidth,10);Ht=dt-rn-fn}return Ht}}const lo=(ve,me)=>"key"in ve&&ve.key!==void 0&&ve.key!==null?ve.key:ve.dataIndex?Array.isArray(ve.dataIndex)?ve.dataIndex.join("."):ve.dataIndex:me;function mo(ve,me){return me?`${me}-${ve}`:`${ve}`}const Xo=(ve,me)=>typeof ve=="function"?ve(me):ve,ui=(ve,me)=>{const Je=Xo(ve,me);return Object.prototype.toString.call(Je)==="[object Object]"?"":Je};var Ra={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"},ia=Ra,_i=ee(7657),Mi=function(me,Je){return b.createElement(_i.Z,(0,Xe.Z)({},me,{ref:Je,icon:ia}))},Ta=b.forwardRef(Mi),Za=Ta,pa=ee(9981),Ha=ee(40192);function _a(ve){const me=b.useRef(ve),Je=(0,Ha.Z)();return[()=>me.current,dt=>{me.current=dt,Je()}]}var Na=ee(7939),dl=ee(584),ms=ee(93041),Jl=ee(78857),ja=ee(18287),tl=ee(47472),Ma=ee(49397),kl=ve=>{const{value:me,filterSearch:Je,tablePrefixCls:dt,locale:Bt,onChange:Ht}=ve;return Je?b.createElement("div",{className:`${dt}-filter-dropdown-search`},b.createElement(Ma.Z,{prefix:b.createElement(tl.Z,null),placeholder:Bt.filterSearchPlaceholder,onChange:Ht,value:me,htmlSize:1,className:`${dt}-filter-dropdown-search-input`})):null},Ql=ee(10228);const ql=ve=>{const{keyCode:me}=ve;me===Ql.Z.ENTER&&ve.stopPropagation()};var Ll=b.forwardRef((ve,me)=>b.createElement("div",{className:ve.className,onClick:Je=>Je.stopPropagation(),onKeyDown:ql,ref:me},ve.children));function $a(ve){let me=[];return(ve||[]).forEach(Je=>{let{value:dt,children:Bt}=Je;me.push(dt),Bt&&(me=[].concat((0,dn.Z)(me),(0,dn.Z)($a(Bt))))}),me}function fl(ve){return ve.some(me=>{let{children:Je}=me;return Je})}function xl(ve,me){return typeof me=="string"||typeof me=="number"?me==null?void 0:me.toString().toLowerCase().includes(ve.trim().toLowerCase()):!1}function Rl(ve){let{filters:me,prefixCls:Je,filteredKeys:dt,filterMultiple:Bt,searchValue:Ht,filterSearch:ln}=ve;return me.map((rn,fn)=>{const un=String(rn.value);if(rn.children)return{key:un||fn,label:rn.text,popupClassName:`${Je}-dropdown-submenu`,children:Rl({filters:rn.children,prefixCls:Je,filteredKeys:dt,filterMultiple:Bt,searchValue:Ht,filterSearch:ln})};const Ln=Bt?Io.default:Lo.ZP,Tn={key:rn.value!==void 0?un:fn,label:b.createElement(b.Fragment,null,b.createElement(Ln,{checked:dt.includes(un)}),b.createElement("span",null,rn.text))};return Ht.trim()?typeof ln=="function"?ln(Ht,rn)?Tn:null:xl(Ht,rn.text)?Tn:null:Tn})}function hl(ve){return ve||[]}var es=ve=>{var me,Je,dt,Bt;const{tablePrefixCls:Ht,prefixCls:ln,column:rn,dropdownPrefixCls:fn,columnKey:un,filterOnClose:Ln,filterMultiple:Tn,filterMode:Dn="menu",filterSearch:bn=!1,filterState:gn,triggerFilter:ir,locale:Xn,children:sr,getPopupContainer:gr,rootClassName:ur}=ve,{filterResetToDefaultFilteredValue:xr,defaultFilteredValue:Or,filterDropdownProps:Rr={},filterDropdownOpen:Mr,filterDropdownVisible:xo,onFilterDropdownVisibleChange:Qr,onFilterDropdownOpenChange:Vr}=rn,[uo,Ar]=b.useState(!1),Fr=!!(gn&&(!((me=gn.filteredKeys)===null||me===void 0)&&me.length||gn.forceFiltered)),Sr=Jr=>{var io;Ar(Jr),(io=Rr.onOpenChange)===null||io===void 0||io.call(Rr,Jr),Vr==null||Vr(Jr),Qr==null||Qr(Jr)},yr=(Bt=(dt=(Je=Rr.open)!==null&&Je!==void 0?Je:Mr)!==null&&dt!==void 0?dt:xo)!==null&&Bt!==void 0?Bt:uo,Lr=gn==null?void 0:gn.filteredKeys,[Zr,qr]=_a(hl(Lr)),Pr=Jr=>{let{selectedKeys:io}=Jr;qr(io)},Po=(Jr,io)=>{let{node:Yo,checked:ti}=io;Pr(Tn?{selectedKeys:Jr}:{selectedKeys:ti&&Yo.key?[Yo.key]:[]})};b.useEffect(()=>{uo&&Pr({selectedKeys:hl(Lr)})},[Lr]);const[To,yi]=b.useState([]),fi=Jr=>{yi(Jr)},[oi,hi]=b.useState(""),Si=Jr=>{const{value:io}=Jr.target;hi(io)};b.useEffect(()=>{uo||hi("")},[uo]);const No=Jr=>{const io=Jr!=null&&Jr.length?Jr:null;if(io===null&&(!gn||!gn.filteredKeys)||(0,Ee.Z)(io,gn==null?void 0:gn.filteredKeys,!0))return null;ir({column:rn,key:un,filteredKeys:io})},Mo=()=>{Sr(!1),No(Zr())},wi=function(){let{confirm:Jr,closeDropdown:io}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Jr&&No([]),io&&Sr(!1),hi(""),qr(xr?(Or||[]).map(Yo=>String(Yo)):[])},ki=function(){let{closeDropdown:Jr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Jr&&Sr(!1),No(Zr())},Gr=(Jr,io)=>{io.source==="trigger"&&(Jr&&Lr!==void 0&&qr(hl(Lr)),Sr(Jr),!Jr&&!rn.filterDropdown&&Ln&&Mo())},go=Ve()({[`${fn}-menu-without-submenu`]:!fl(rn.filters||[])}),$r=Jr=>{if(Jr.target.checked){const io=$a(rn==null?void 0:rn.filters).map(Yo=>String(Yo));qr(io)}else qr([])},Br=Jr=>{let{filters:io}=Jr;return(io||[]).map((Yo,ti)=>{const Qo=String(Yo.value),Hi={title:Yo.text,key:Yo.value!==void 0?Qo:String(ti)};return Yo.children&&(Hi.children=Br({filters:Yo.children})),Hi})},Fo=Jr=>{var io;return Object.assign(Object.assign({},Jr),{text:Jr.title,value:Jr.key,children:((io=Jr.children)===null||io===void 0?void 0:io.map(Yo=>Fo(Yo)))||[]})};let Go;const{direction:ci,renderEmpty:ni}=b.useContext(Jo.E_);if(typeof rn.filterDropdown=="function")Go=rn.filterDropdown({prefixCls:`${fn}-custom`,setSelectedKeys:Jr=>Pr({selectedKeys:Jr}),selectedKeys:Zr(),confirm:ki,clearFilters:wi,filters:rn.filters,visible:yr,close:()=>{Sr(!1)}});else if(rn.filterDropdown)Go=rn.filterDropdown;else{const Jr=Zr()||[],io=()=>{var ti,Qo;const Hi=(ti=ni==null?void 0:ni("Table.filter"))!==null&&ti!==void 0?ti:b.createElement(dl.Z,{image:dl.Z.PRESENTED_IMAGE_SIMPLE,description:Xn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((rn.filters||[]).length===0)return Hi;if(Dn==="tree")return b.createElement(b.Fragment,null,b.createElement(kl,{filterSearch:bn,value:oi,onChange:Si,tablePrefixCls:Ht,locale:Xn}),b.createElement("div",{className:`${Ht}-filter-dropdown-tree`},Tn?b.createElement(Io.default,{checked:Jr.length===$a(rn.filters).length,indeterminate:Jr.length>0&&Jr.length<$a(rn.filters).length,className:`${Ht}-filter-dropdown-checkall`,onChange:$r},(Qo=Xn==null?void 0:Xn.filterCheckall)!==null&&Qo!==void 0?Qo:Xn==null?void 0:Xn.filterCheckAll):null,b.createElement(ja.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Tn,checkStrictly:!Tn,className:`${fn}-menu`,onCheck:Po,checkedKeys:Jr,selectedKeys:Jr,showIcon:!1,treeData:Br({filters:rn.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:oi.trim()?pi=>typeof bn=="function"?bn(oi,Fo(pi)):xl(oi,pi.title):void 0})));const Pi=Rl({filters:rn.filters||[],filterSearch:bn,prefixCls:ln,filteredKeys:Zr(),filterMultiple:Tn,searchValue:oi}),va=Pi.every(pi=>pi===null);return b.createElement(b.Fragment,null,b.createElement(kl,{filterSearch:bn,value:oi,onChange:Si,tablePrefixCls:Ht,locale:Xn}),va?Hi:b.createElement(ms.default,{selectable:!0,multiple:Tn,prefixCls:`${fn}-menu`,className:go,onSelect:Pr,onDeselect:Pr,selectedKeys:Jr,getPopupContainer:gr,openKeys:To,onOpenChange:fi,items:Pi}))},Yo=()=>xr?(0,Ee.Z)((Or||[]).map(ti=>String(ti)),Jr,!0):Jr.length===0;Go=b.createElement(b.Fragment,null,io(),b.createElement("div",{className:`${ln}-dropdown-btns`},b.createElement(Na.ZP,{type:"link",size:"small",disabled:Yo(),onClick:()=>wi()},Xn.filterReset),b.createElement(Na.ZP,{type:"primary",size:"small",onClick:Mo},Xn.filterConfirm)))}rn.filterDropdown&&(Go=b.createElement(Jl.J,{selectable:void 0},Go)),Go=b.createElement(Ll,{className:`${ln}-dropdown`},Go);const Ei=()=>{let Jr;return typeof rn.filterIcon=="function"?Jr=rn.filterIcon(Fr):rn.filterIcon?Jr=rn.filterIcon:Jr=b.createElement(Za,null),b.createElement("span",{role:"button",tabIndex:-1,className:Ve()(`${ln}-trigger`,{active:Fr}),onClick:io=>{io.stopPropagation()}},Jr)},Ai=(0,pa.Z)({trigger:["click"],placement:ci==="rtl"?"bottomLeft":"bottomRight",children:Ei(),getPopupContainer:gr},Object.assign(Object.assign({},Rr),{rootClassName:Ve()(ur,Rr.rootClassName),open:yr,onOpenChange:Gr,dropdownRender:()=>typeof(Rr==null?void 0:Rr.dropdownRender)=="function"?Rr.dropdownRender(Go):Go}));return b.createElement("div",{className:`${ln}-column`},b.createElement("span",{className:`${Ht}-column-title`},sr),b.createElement(Zo.Z,Object.assign({},Ai)))};const nl=(ve,me,Je)=>{let dt=[];return(ve||[]).forEach((Bt,Ht)=>{var ln;const rn=mo(Ht,Je);if(Bt.filters||"filterDropdown"in Bt||"onFilter"in Bt)if("filteredValue"in Bt){let fn=Bt.filteredValue;"filterDropdown"in Bt||(fn=(ln=fn==null?void 0:fn.map(String))!==null&&ln!==void 0?ln:fn),dt.push({column:Bt,key:lo(Bt,rn),filteredKeys:fn,forceFiltered:Bt.filtered})}else dt.push({column:Bt,key:lo(Bt,rn),filteredKeys:me&&Bt.defaultFilteredValue?Bt.defaultFilteredValue:void 0,forceFiltered:Bt.filtered});"children"in Bt&&(dt=[].concat((0,dn.Z)(dt),(0,dn.Z)(nl(Bt.children,me,rn))))}),dt};function aa(ve,me,Je,dt,Bt,Ht,ln,rn,fn){return Je.map((un,Ln)=>{const Tn=mo(Ln,rn),{filterOnClose:Dn=!0,filterMultiple:bn=!0,filterMode:gn,filterSearch:ir}=un;let Xn=un;if(Xn.filters||Xn.filterDropdown){const sr=lo(Xn,Tn),gr=dt.find(ur=>{let{key:xr}=ur;return sr===xr});Xn=Object.assign(Object.assign({},Xn),{title:ur=>b.createElement(es,{tablePrefixCls:ve,prefixCls:`${ve}-filter`,dropdownPrefixCls:me,column:Xn,columnKey:sr,filterState:gr,filterOnClose:Dn,filterMultiple:bn,filterMode:gn,filterSearch:ir,triggerFilter:Ht,locale:Bt,getPopupContainer:ln,rootClassName:fn},Xo(un.title,ur))})}return"children"in Xn&&(Xn=Object.assign(Object.assign({},Xn),{children:aa(ve,me,Xn.children,dt,Bt,Ht,ln,Tn,fn)})),Xn})}const Vo=ve=>{const me={};return ve.forEach(Je=>{let{key:dt,filteredKeys:Bt,column:Ht}=Je;const ln=dt,{filters:rn,filterDropdown:fn}=Ht;if(fn)me[ln]=Bt||null;else if(Array.isArray(Bt)){const un=$a(rn);me[ln]=un.filter(Ln=>Bt.includes(String(Ln)))}else me[ln]=null}),me},Eo=(ve,me,Je)=>me.reduce((Bt,Ht)=>{const{column:{onFilter:ln,filters:rn},filteredKeys:fn}=Ht;return ln&&fn&&fn.length?Bt.map(un=>Object.assign({},un)).filter(un=>fn.some(Ln=>{const Tn=$a(rn),Dn=Tn.findIndex(gn=>String(gn)===String(Ln)),bn=Dn!==-1?Tn[Dn]:Ln;return un[Je]&&(un[Je]=Eo(un[Je],me,Je)),ln(bn,un)})):Bt},ve),Ki=ve=>ve.flatMap(me=>"children"in me?[me].concat((0,dn.Z)(Ki(me.children||[]))):[me]);var Bi=ve=>{const{prefixCls:me,dropdownPrefixCls:Je,mergedColumns:dt,onFilterChange:Bt,getPopupContainer:Ht,locale:ln,rootClassName:rn}=ve,fn=(0,Do.ln)("Table"),un=b.useMemo(()=>Ki(dt||[]),[dt]),[Ln,Tn]=b.useState(()=>nl(un,!0)),Dn=b.useMemo(()=>{const Xn=nl(un,!1);if(Xn.length===0)return Xn;let sr=!0,gr=!0;if(Xn.forEach(ur=>{let{filteredKeys:xr}=ur;xr!==void 0?sr=!1:gr=!1}),sr){const ur=(un||[]).map((xr,Or)=>lo(xr,mo(Or)));return Ln.filter(xr=>{let{key:Or}=xr;return ur.includes(Or)}).map(xr=>{const Or=un[ur.findIndex(Rr=>Rr===xr.key)];return Object.assign(Object.assign({},xr),{column:Object.assign(Object.assign({},xr.column),Or),forceFiltered:Or.filtered})})}return Xn},[un,Ln]),bn=b.useMemo(()=>Vo(Dn),[Dn]),gn=Xn=>{const sr=Dn.filter(gr=>{let{key:ur}=gr;return ur!==Xn.key});sr.push(Xn),Tn(sr),Bt(Vo(sr),sr)};return[Xn=>aa(me,Je,Xn,Dn,ln,gn,Ht,void 0,rn),Dn,bn]},Aa=(ve,me,Je)=>{const dt=b.useRef({});function Bt(Ht){var ln;if(!dt.current||dt.current.data!==ve||dt.current.childrenColumnName!==me||dt.current.getRowKey!==Je){let fn=function(un){un.forEach((Ln,Tn)=>{const Dn=Je(Ln,Tn);rn.set(Dn,Ln),Ln&&typeof Ln=="object"&&me in Ln&&fn(Ln[me]||[])})};const rn=new Map;fn(ve),dt.current={data:ve,childrenColumnName:me,kvMap:rn,getRowKey:Je}}return(ln=dt.current.kvMap)===null||ln===void 0?void 0:ln.get(Ht)}return[Bt]},Ba=function(ve,me){var Je={};for(var dt in ve)Object.prototype.hasOwnProperty.call(ve,dt)&&me.indexOf(dt)<0&&(Je[dt]=ve[dt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,dt=Object.getOwnPropertySymbols(ve);Bt<dt.length;Bt++)me.indexOf(dt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(ve,dt[Bt])&&(Je[dt[Bt]]=ve[dt[Bt]]);return Je};const Wa=10;function xa(ve,me){const Je={current:ve.current,pageSize:ve.pageSize};return Object.keys(me&&typeof me=="object"?me:{}).forEach(Bt=>{const Ht=ve[Bt];typeof Ht!="function"&&(Je[Bt]=Ht)}),Je}function Ca(ve,me,Je){const dt=Je&&typeof Je=="object"?Je:{},{total:Bt=0}=dt,Ht=Ba(dt,["total"]),[ln,rn]=(0,b.useState)(()=>({current:"defaultCurrent"in Ht?Ht.defaultCurrent:1,pageSize:"defaultPageSize"in Ht?Ht.defaultPageSize:Wa})),fn=(0,pa.Z)(ln,Ht,{total:Bt>0?Bt:ve}),un=Math.ceil((Bt||ve)/fn.pageSize);fn.current>un&&(fn.current=un||1);const Ln=(Dn,bn)=>{rn({current:Dn!=null?Dn:1,pageSize:bn||fn.pageSize})},Tn=(Dn,bn)=>{var gn;Je&&((gn=Je.onChange)===null||gn===void 0||gn.call(Je,Dn,bn)),Ln(Dn,bn),me(Dn,bn||(fn==null?void 0:fn.pageSize))};return Je===!1?[{},()=>{}]:[Object.assign(Object.assign({},fn),{onChange:Tn}),Ln]}var Fa=Ca,rl=ee(89489),gs=ee(59477),ys=ee(25399);const Cl="ascend",Ja="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,ol=(ve,me)=>me?ve[ve.indexOf(me)+1]:ve[0],Va=(ve,me,Je)=>{let dt=[];const Bt=(Ht,ln)=>{dt.push({column:Ht,key:lo(Ht,ln),multiplePriority:Ka(Ht),sortOrder:Ht.sortOrder})};return(ve||[]).forEach((Ht,ln)=>{const rn=mo(ln,Je);Ht.children?("sortOrder"in Ht&&Bt(Ht,rn),dt=[].concat((0,dn.Z)(dt),(0,dn.Z)(Va(Ht.children,me,rn)))):Ht.sorter&&("sortOrder"in Ht?Bt(Ht,rn):me&&Ht.defaultSortOrder&&dt.push({column:Ht,key:lo(Ht,rn),multiplePriority:Ka(Ht),sortOrder:Ht.defaultSortOrder}))}),dt},Fl=(ve,me,Je,dt,Bt,Ht,ln,rn)=>(me||[]).map((un,Ln)=>{const Tn=mo(Ln,rn);let Dn=un;if(Dn.sorter){const bn=Dn.sortDirections||Bt,gn=Dn.showSorterTooltip===void 0?ln:Dn.showSorterTooltip,ir=lo(Dn,Tn),Xn=Je.find(Qr=>{let{key:Vr}=Qr;return Vr===ir}),sr=Xn?Xn.sortOrder:null,gr=ol(bn,sr);let ur;if(un.sortIcon)ur=un.sortIcon({sortOrder:sr});else{const Qr=bn.includes(Cl)&&b.createElement(gs.Z,{className:Ve()(`${ve}-column-sorter-up`,{active:sr===Cl})}),Vr=bn.includes(Ja)&&b.createElement(rl.Z,{className:Ve()(`${ve}-column-sorter-down`,{active:sr===Ja})});ur=b.createElement("span",{className:Ve()(`${ve}-column-sorter`,{[`${ve}-column-sorter-full`]:!!(Qr&&Vr)})},b.createElement("span",{className:`${ve}-column-sorter-inner`,"aria-hidden":"true"},Qr,Vr))}const{cancelSort:xr,triggerAsc:Or,triggerDesc:Rr}=Ht||{};let Mr=xr;gr===Ja?Mr=Rr:gr===Cl&&(Mr=Or);const xo=typeof gn=="object"?Object.assign({title:Mr},gn):{title:Mr};Dn=Object.assign(Object.assign({},Dn),{className:Ve()(Dn.className,{[`${ve}-column-sort`]:sr}),title:Qr=>{const Vr=`${ve}-column-sorters`,uo=b.createElement("span",{className:`${ve}-column-title`},Xo(un.title,Qr)),Ar=b.createElement("div",{className:Vr},uo,ur);return gn?typeof gn!="boolean"&&(gn==null?void 0:gn.target)==="sorter-icon"?b.createElement("div",{className:`${Vr} ${ve}-column-sorters-tooltip-target-sorter`},uo,b.createElement(ys.Z,Object.assign({},xo),ur)):b.createElement(ys.Z,Object.assign({},xo),Ar):Ar},onHeaderCell:Qr=>{var Vr;const uo=((Vr=un.onHeaderCell)===null||Vr===void 0?void 0:Vr.call(un,Qr))||{},Ar=uo.onClick,Fr=uo.onKeyDown;uo.onClick=Lr=>{dt({column:un,key:ir,sortOrder:gr,multiplePriority:Ka(un)}),Ar==null||Ar(Lr)},uo.onKeyDown=Lr=>{Lr.keyCode===Ql.Z.ENTER&&(dt({column:un,key:ir,sortOrder:gr,multiplePriority:Ka(un)}),Fr==null||Fr(Lr))};const Sr=ui(un.title,{}),yr=Sr==null?void 0:Sr.toString();return sr&&(uo["aria-sort"]=sr==="ascend"?"ascending":"descending"),uo["aria-label"]=yr||"",uo.className=Ve()(uo.className,`${ve}-column-has-sorters`),uo.tabIndex=0,un.ellipsis&&(uo.title=(Sr!=null?Sr:"").toString()),uo}})}return"children"in Dn&&(Dn=Object.assign(Object.assign({},Dn),{children:Fl(ve,Dn.children,Je,dt,Bt,Ht,ln,Tn)})),Dn}),js=ve=>{const{column:me,sortOrder:Je}=ve;return{column:me,order:Je,field:me.dataIndex,columnKey:me.key}},bs=ve=>{const me=ve.filter(Je=>{let{sortOrder:dt}=Je;return dt}).map(js);if(me.length===0&&ve.length){const Je=ve.length-1;return Object.assign(Object.assign({},js(ve[Je])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return me.length<=1?me[0]||{}:me},pl=(ve,me,Je)=>{const dt=me.slice().sort((ln,rn)=>rn.multiplePriority-ln.multiplePriority),Bt=ve.slice(),Ht=dt.filter(ln=>{let{column:{sorter:rn},sortOrder:fn}=ln;return sa(rn)&&fn});return Ht.length?Bt.sort((ln,rn)=>{for(let fn=0;fn<Ht.length;fn+=1){const un=Ht[fn],{column:{sorter:Ln},sortOrder:Tn}=un,Dn=sa(Ln);if(Dn&&Tn){const bn=Dn(ln,rn,Tn);if(bn!==0)return Tn===Cl?bn:-bn}}return 0}).map(ln=>{const rn=ln[Je];return rn?Object.assign(Object.assign({},ln),{[Je]:pl(rn,me,Je)}):ln}):Bt};var $s=ve=>{const{prefixCls:me,mergedColumns:Je,sortDirections:dt,tableLocale:Bt,showSorterTooltip:Ht,onSorterChange:ln}=ve,[rn,fn]=b.useState(Va(Je,!0)),un=(ir,Xn)=>{const sr=[];return ir.forEach((gr,ur)=>{const xr=mo(ur,Xn);if(sr.push(lo(gr,xr)),Array.isArray(gr.children)){const Or=un(gr.children,xr);sr.push.apply(sr,(0,dn.Z)(Or))}}),sr},Ln=b.useMemo(()=>{let ir=!0;const Xn=Va(Je,!1);if(!Xn.length){const xr=un(Je);return rn.filter(Or=>{let{key:Rr}=Or;return xr.includes(Rr)})}const sr=[];function gr(xr){ir?sr.push(xr):sr.push(Object.assign(Object.assign({},xr),{sortOrder:null}))}let ur=null;return Xn.forEach(xr=>{ur===null?(gr(xr),xr.sortOrder&&(xr.multiplePriority===!1?ir=!1:ur=!0)):(ur&&xr.multiplePriority!==!1||(ir=!1),gr(xr))}),sr},[Je,rn]),Tn=b.useMemo(()=>{var ir,Xn;const sr=Ln.map(gr=>{let{column:ur,sortOrder:xr}=gr;return{column:ur,order:xr}});return{sortColumns:sr,sortColumn:(ir=sr[0])===null||ir===void 0?void 0:ir.column,sortOrder:(Xn=sr[0])===null||Xn===void 0?void 0:Xn.order}},[Ln]),Dn=ir=>{let Xn;ir.multiplePriority===!1||!Ln.length||Ln[0].multiplePriority===!1?Xn=[ir]:Xn=[].concat((0,dn.Z)(Ln.filter(sr=>{let{key:gr}=sr;return gr!==ir.key})),[ir]),fn(Xn),ln(bs(Xn),Xn)};return[ir=>Fl(me,ir,Ln,Dn,dt,Bt,Ht),Ln,Tn,()=>bs(Ln)]};const zl=(ve,me)=>ve.map(dt=>{const Bt=Object.assign({},dt);return Bt.title=Xo(dt.title,me),"children"in Bt&&(Bt.children=zl(Bt.children,me)),Bt});var xs=ve=>[b.useCallback(Je=>zl(Je,ve),[ve])],Ws=Kr((ve,me)=>{const{_renderTimes:Je}=ve,{_renderTimes:dt}=me;return Je!==dt}),Sl=jn((ve,me)=>{const{_renderTimes:Je}=ve,{_renderTimes:dt}=me;return Je!==dt}),so=ee(36237),wl=ee(17835),il=ee(63356),iu=ee(16931),au=ee(51636),Cs=ve=>{const{componentCls:me,lineWidth:Je,lineType:dt,tableBorderColor:Bt,tableHeaderBg:Ht,tablePaddingVertical:ln,tablePaddingHorizontal:rn,calc:fn}=ve,un=`${(0,so.unit)(Je)} ${dt} ${Bt}`,Ln=(Tn,Dn,bn)=>({[`&${me}-${Tn}`]:{[`> ${me}-container`]:{[`> ${me}-content, > ${me}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`${(0,so.unit)(fn(Dn).mul(-1).equal())}
${(0,so.unit)(fn(fn(bn).add(Je)).mul(-1).equal())}`}}}}}});return{[`${me}-wrapper`]:{[`${me}${me}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${me}-title`]:{border:un,borderBottom:0},[`> ${me}-container`]:{borderInlineStart:un,borderTop:un,[`
> ${me}-content,
> ${me}-header,
> ${me}-body,
> ${me}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:un},"> thead":{"> tr:not(:last-child) > th":{borderBottom:un},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${me}-cell-fix-right-first::after`]:{borderInlineEnd:un}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${me}-expanded-row-fixed`]:{margin:`${(0,so.unit)(fn(ln).mul(-1).equal())} ${(0,so.unit)(fn(fn(rn).add(Je)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Je,bottom:0,borderInlineEnd:un,content:'""'}}}}}},[`&${me}-scroll-horizontal`]:{[`> ${me}-container > ${me}-body`]:{"> table > tbody":{[`
> tr${me}-expanded-row,
> tr${me}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ln("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle)),Ln("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall)),{[`> ${me}-footer`]:{border:un,borderTop:0}}),[`${me}-cell`]:{[`${me}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,so.unit)(Je)} 0 ${(0,so.unit)(Je)} ${Ht}`}},[`${me}-bordered ${me}-cell-scrollbar`]:{borderInlineEnd:un}}}},El=ve=>{const{componentCls:me}=ve;return{[`${me}-wrapper`]:{[`${me}-cell-ellipsis`]:Object.assign(Object.assign({},il.vS),{wordBreak:"keep-all",[`
&${me}-cell-fix-left-last,
&${me}-cell-fix-right-first
`]:{overflow:"visible",[`${me}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${me}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},lu=ve=>{const{componentCls:me}=ve;return{[`${me}-wrapper`]:{[`${me}-tbody > tr${me}-placeholder`]:{textAlign:"center",color:ve.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ve.colorBgContainer}}}}},Xs=ve=>{const{componentCls:me,antCls:Je,motionDurationSlow:dt,lineWidth:Bt,paddingXS:Ht,lineType:ln,tableBorderColor:rn,tableExpandIconBg:fn,tableExpandColumnWidth:un,borderRadius:Ln,tablePaddingVertical:Tn,tablePaddingHorizontal:Dn,tableExpandedRowBg:bn,paddingXXS:gn,expandIconMarginTop:ir,expandIconSize:Xn,expandIconHalfInner:sr,expandIconScale:gr,calc:ur}=ve,xr=`${(0,so.unit)(Bt)} ${ln} ${rn}`,Or=ur(gn).sub(Bt).equal();return{[`${me}-wrapper`]:{[`${me}-expand-icon-col`]:{width:un},[`${me}-row-expand-icon-cell`]:{textAlign:"center",[`${me}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${me}-row-indent`]:{height:1,float:"left"},[`${me}-row-expand-icon`]:Object.assign(Object.assign({},(0,il.Nd)(ve)),{position:"relative",float:"left",width:Xn,height:Xn,color:"inherit",lineHeight:(0,so.unit)(Xn),background:fn,border:xr,borderRadius:Ln,transform:`scale(${gr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${dt} ease-out`,content:'""'},"&::before":{top:sr,insetInlineEnd:Or,insetInlineStart:Or,height:Bt},"&::after":{top:Or,bottom:Or,insetInlineStart:sr,width:Bt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${me}-row-indent + ${me}-row-expand-icon`]:{marginTop:ir,marginInlineEnd:Ht},[`tr${me}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:bn}},[`${Je}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${me}-expanded-row-fixed`]:{position:"relative",margin:`${(0,so.unit)(ur(Tn).mul(-1).equal())} ${(0,so.unit)(ur(Dn).mul(-1).equal())}`,padding:`${(0,so.unit)(Tn)} ${(0,so.unit)(Dn)}`}}}},Gs=ve=>{const{componentCls:me,antCls:Je,iconCls:dt,tableFilterDropdownWidth:Bt,tableFilterDropdownSearchWidth:Ht,paddingXXS:ln,paddingXS:rn,colorText:fn,lineWidth:un,lineType:Ln,tableBorderColor:Tn,headerIconColor:Dn,fontSizeSM:bn,tablePaddingHorizontal:gn,borderRadius:ir,motionDurationSlow:Xn,colorTextDescription:sr,colorPrimary:gr,tableHeaderFilterActiveBg:ur,colorTextDisabled:xr,tableFilterDropdownBg:Or,tableFilterDropdownHeight:Rr,controlItemBgHover:Mr,controlItemBgActive:xo,boxShadowSecondary:Qr,filterDropdownMenuBg:Vr,calc:uo}=ve,Ar=`${Je}-dropdown`,Fr=`${me}-filter-dropdown`,Sr=`${Je}-tree`,yr=`${(0,so.unit)(un)} ${Ln} ${Tn}`;return[{[`${me}-wrapper`]:{[`${me}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${me}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:uo(ln).mul(-1).equal(),marginInline:`${(0,so.unit)(ln)} ${(0,so.unit)(uo(gn).div(2).mul(-1).equal())}`,padding:`0 ${(0,so.unit)(ln)}`,color:Dn,fontSize:bn,borderRadius:ir,cursor:"pointer",transition:`all ${Xn}`,"&:hover":{color:sr,background:ur},"&.active":{color:gr}}}},{[`${Je}-dropdown`]:{[Fr]:Object.assign(Object.assign({},(0,il.Wf)(ve)),{minWidth:Bt,backgroundColor:Or,borderRadius:ir,boxShadow:Qr,overflow:"hidden",[`${Ar}-menu`]:{maxHeight:Rr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Vr,"&:empty::after":{display:"block",padding:`${(0,so.unit)(rn)} 0`,color:xr,fontSize:bn,textAlign:"center",content:'"Not Found"'}},[`${Fr}-tree`]:{paddingBlock:`${(0,so.unit)(rn)} 0`,paddingInline:rn,[Sr]:{padding:0},[`${Sr}-treenode ${Sr}-node-content-wrapper:hover`]:{backgroundColor:Mr},[`${Sr}-treenode-checkbox-checked ${Sr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:xo}}},[`${Fr}-search`]:{padding:rn,borderBottom:yr,"&-input":{input:{minWidth:Ht},[dt]:{color:xr}}},[`${Fr}-checkall`]:{width:"100%",marginBottom:ln,marginInlineStart:ln},[`${Fr}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,so.unit)(uo(rn).sub(un).equal())} ${(0,so.unit)(rn)}`,overflow:"hidden",borderTop:yr}})}},{[`${Je}-dropdown ${Fr}, ${Fr}-submenu`]:{[`${Je}-checkbox-wrapper + span`]:{paddingInlineStart:rn,color:fn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Zl=ve=>{const{componentCls:me,lineWidth:Je,colorSplit:dt,motionDurationSlow:Bt,zIndexTableFixed:Ht,tableBg:ln,zIndexTableSticky:rn,calc:fn}=ve,un=dt;return{[`${me}-wrapper`]:{[`
${me}-cell-fix-left,
${me}-cell-fix-right
`]:{position:"sticky !important",zIndex:Ht,background:ln},[`
${me}-cell-fix-left-first::after,
${me}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:fn(Je).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Bt}`,content:'""',pointerEvents:"none"},[`${me}-cell-fix-left-all::after`]:{display:"none"},[`
${me}-cell-fix-right-first::after,
${me}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:fn(Je).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Bt}`,content:'""',pointerEvents:"none"},[`${me}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:fn(rn).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Bt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${me}-ping-left`]:{[`&:not(${me}-has-fix-left) ${me}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${un}`},[`
${me}-cell-fix-left-first::after,
${me}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${un}`},[`${me}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${me}-ping-right`]:{[`&:not(${me}-has-fix-right) ${me}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${un}`},[`
${me}-cell-fix-right-first::after,
${me}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${un}`}},[`${me}-fixed-column-gapped`]:{[`
${me}-cell-fix-left-first::after,
${me}-cell-fix-left-last::after,
${me}-cell-fix-right-first::after,
${me}-cell-fix-right-last::after
`]:{boxShadow:"none"}}}}},Hl=ve=>{const{componentCls:me,antCls:Je,margin:dt}=ve;return{[`${me}-wrapper`]:{[`${me}-pagination${Je}-pagination`]:{margin:`${(0,so.unit)(dt)} 0`},[`${me}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ve.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Us=ve=>{const{componentCls:me,tableRadius:Je}=ve;return{[`${me}-wrapper`]:{[me]:{[`${me}-title, ${me}-header`]:{borderRadius:`${(0,so.unit)(Je)} ${(0,so.unit)(Je)} 0 0`},[`${me}-title + ${me}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${me}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Je,borderStartEndRadius:Je,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Je},"> *:last-child":{borderStartEndRadius:Je}}},"&-footer":{borderRadius:`0 0 ${(0,so.unit)(Je)} ${(0,so.unit)(Je)}`}}}}},Ys=ve=>{const{componentCls:me}=ve;return{[`${me}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${me}-pagination-left`]:{justifyContent:"flex-end"},[`${me}-pagination-right`]:{justifyContent:"flex-start"},[`${me}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${me}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${me}-row-indent`]:{float:"right"}}}}},ml=ve=>{const{componentCls:me,antCls:Je,iconCls:dt,fontSizeIcon:Bt,padding:Ht,paddingXS:ln,headerIconColor:rn,headerIconHoverColor:fn,tableSelectionColumnWidth:un,tableSelectedRowBg:Ln,tableSelectedRowHoverBg:Tn,tableRowHoverBg:Dn,tablePaddingHorizontal:bn,calc:gn}=ve;return{[`${me}-wrapper`]:{[`${me}-selection-col`]:{width:un,[`&${me}-selection-col-with-dropdown`]:{width:gn(un).add(Bt).add(gn(Ht).div(4)).equal()}},[`${me}-bordered ${me}-selection-col`]:{width:gn(un).add(gn(ln).mul(2)).equal(),[`&${me}-selection-col-with-dropdown`]:{width:gn(un).add(Bt).add(gn(Ht).div(4)).add(gn(ln).mul(2)).equal()}},[`
table tr th${me}-selection-column,
table tr td${me}-selection-column,
${me}-selection-column
`]:{paddingInlineEnd:ve.paddingXS,paddingInlineStart:ve.paddingXS,textAlign:"center",[`${Je}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${me}-selection-column${me}-cell-fix-left`]:{zIndex:gn(ve.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${me}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${me}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${me}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,so.unit)(gn(bn).div(4).equal()),[dt]:{color:rn,fontSize:Bt,verticalAlign:"baseline","&:hover":{color:fn}}},[`${me}-tbody`]:{[`${me}-row`]:{[`&${me}-row-selected`]:{[`> ${me}-cell`]:{background:Ln,"&-row-hover":{background:Tn}}},[`> ${me}-cell-row-hover`]:{background:Dn}}}}}},uu=ve=>{const{componentCls:me,tableExpandColumnWidth:Je,calc:dt}=ve,Bt=(Ht,ln,rn,fn)=>({[`${me}${me}-${Ht}`]:{fontSize:fn,[`
${me}-title,
${me}-footer,
${me}-cell,
${me}-thead > tr > th,
${me}-tbody > tr > th,
${me}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${(0,so.unit)(ln)} ${(0,so.unit)(rn)}`},[`${me}-filter-trigger`]:{marginInlineEnd:(0,so.unit)(dt(rn).div(2).mul(-1).equal())},[`${me}-expanded-row-fixed`]:{margin:`${(0,so.unit)(dt(ln).mul(-1).equal())} ${(0,so.unit)(dt(rn).mul(-1).equal())}`},[`${me}-tbody`]:{[`${me}-wrapper:only-child ${me}`]:{marginBlock:(0,so.unit)(dt(ln).mul(-1).equal()),marginInline:`${(0,so.unit)(dt(Je).sub(rn).equal())} ${(0,so.unit)(dt(rn).mul(-1).equal())}`}},[`${me}-selection-extra`]:{paddingInlineStart:(0,so.unit)(dt(rn).div(4).equal())}}});return{[`${me}-wrapper`]:Object.assign(Object.assign({},Bt("middle",ve.tablePaddingVerticalMiddle,ve.tablePaddingHorizontalMiddle,ve.tableFontSizeMiddle)),Bt("small",ve.tablePaddingVerticalSmall,ve.tablePaddingHorizontalSmall,ve.tableFontSizeSmall))}},cu=ve=>{const{componentCls:me,marginXXS:Je,fontSizeIcon:dt,headerIconColor:Bt,headerIconHoverColor:Ht}=ve;return{[`${me}-wrapper`]:{[`${me}-thead th${me}-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},[`
&${me}-cell-fix-left:hover,
&${me}-cell-fix-right:hover
`]:{background:ve.tableFixedHeaderSortActiveBg}},[`${me}-thead th${me}-column-sort`]:{background:ve.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${me}-column-sort`]:{background:ve.tableBodySortBg},[`${me}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${me}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${me}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${me}-column-sorter`]:{marginInlineStart:Je,color:Bt,fontSize:0,transition:`color ${ve.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:dt,"&.active":{color:ve.colorPrimary}},[`${me}-column-sorter-up + ${me}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${me}-column-sorters:hover ${me}-column-sorter`]:{color:Ht}}}},du=ve=>{const{componentCls:me,opacityLoading:Je,tableScrollThumbBg:dt,tableScrollThumbBgHover:Bt,tableScrollThumbSize:Ht,tableScrollBg:ln,zIndexTableSticky:rn,stickyScrollBarBorderRadius:fn,lineWidth:un,lineType:Ln,tableBorderColor:Tn}=ve,Dn=`${(0,so.unit)(un)} ${Ln} ${Tn}`;return{[`${me}-wrapper`]:{[`${me}-sticky`]:{"&-holder":{position:"sticky",zIndex:rn,background:ve.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,so.unit)(Ht)} !important`,zIndex:rn,display:"flex",alignItems:"center",background:ln,borderTop:Dn,opacity:Je,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ht,backgroundColor:dt,borderRadius:fn,transition:`all ${ve.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Bt}}}}}}},ma=ve=>{const{componentCls:me,lineWidth:Je,tableBorderColor:dt,calc:Bt}=ve,Ht=`${(0,so.unit)(Je)} ${ve.lineType} ${dt}`;return{[`${me}-wrapper`]:{[`${me}-summary`]:{position:"relative",zIndex:ve.zIndexTableFixed,background:ve.tableBg,"> tr":{"> th, > td":{borderBottom:Ht}}},[`div${me}-summary`]:{boxShadow:`0 ${(0,so.unit)(Bt(Je).mul(-1).equal())} 0 ${dt}`}}}},ua=ve=>{const{componentCls:me,motionDurationMid:Je,lineWidth:dt,lineType:Bt,tableBorderColor:Ht,calc:ln}=ve,rn=`${(0,so.unit)(dt)} ${Bt} ${Ht}`,fn=`${me}-expanded-row-cell`;return{[`${me}-wrapper`]:{[`${me}-tbody-virtual`]:{[`${me}-tbody-virtual-holder-inner`]:{[`
& > ${me}-row,
& > div:not(${me}-row) > ${me}-row
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${me}-cell`]:{borderBottom:rn,transition:`background ${Je}`},[`${me}-expanded-row`]:{[`${fn}${fn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,so.unit)(dt)})`,borderInlineEnd:"none"}}},[`${me}-bordered`]:{[`${me}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:rn,position:"absolute"},[`${me}-cell`]:{borderInlineEnd:rn,[`&${me}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:ln(dt).mul(-1).equal(),borderInlineStart:rn}}},[`&${me}-virtual`]:{[`${me}-placeholder ${me}-cell`]:{borderInlineEnd:rn,borderBottom:rn}}}}}};const Xi=ve=>{const{componentCls:me,fontWeightStrong:Je,tablePaddingVertical:dt,tablePaddingHorizontal:Bt,tableExpandColumnWidth:Ht,lineWidth:ln,lineType:rn,tableBorderColor:fn,tableFontSize:un,tableBg:Ln,tableRadius:Tn,tableHeaderTextColor:Dn,motionDurationMid:bn,tableHeaderBg:gn,tableHeaderCellSplitColor:ir,tableFooterTextColor:Xn,tableFooterBg:sr,calc:gr}=ve,ur=`${(0,so.unit)(ln)} ${rn} ${fn}`;return{[`${me}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,il.dF)()),{[me]:Object.assign(Object.assign({},(0,il.Wf)(ve)),{fontSize:un,background:Ln,borderRadius:`${(0,so.unit)(Tn)} ${(0,so.unit)(Tn)} 0 0`,scrollbarColor:`${ve.tableScrollThumbBg} ${ve.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,so.unit)(Tn)} ${(0,so.unit)(Tn)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${me}-cell,
${me}-thead > tr > th,
${me}-tbody > tr > th,
${me}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${(0,so.unit)(dt)} ${(0,so.unit)(Bt)}`,overflowWrap:"break-word"},[`${me}-title`]:{padding:`${(0,so.unit)(dt)} ${(0,so.unit)(Bt)}`},[`${me}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Dn,fontWeight:Je,textAlign:"start",background:gn,borderBottom:ur,transition:`background ${bn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${me}-selection-column):not(${me}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:ir,transform:"translateY(-50%)",transition:`background-color ${bn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${me}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${bn}, border-color ${bn}`,borderBottom:ur,[`
> ${me}-wrapper:only-child,
> ${me}-expanded-row-fixed > ${me}-wrapper:only-child
`]:{[me]:{marginBlock:(0,so.unit)(gr(dt).mul(-1).equal()),marginInline:`${(0,so.unit)(gr(Ht).sub(Bt).equal())}
${(0,so.unit)(gr(Bt).mul(-1).equal())}`,[`${me}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Dn,fontWeight:Je,textAlign:"start",background:gn,borderBottom:ur,transition:`background ${bn} ease`}}},[`${me}-footer`]:{padding:`${(0,so.unit)(dt)} ${(0,so.unit)(Bt)}`,color:Xn,background:sr}})}},$l=ve=>{const{colorFillAlter:me,colorBgContainer:Je,colorTextHeading:dt,colorFillSecondary:Bt,colorFillContent:Ht,controlItemBgActive:ln,controlItemBgActiveHover:rn,padding:fn,paddingSM:un,paddingXS:Ln,colorBorderSecondary:Tn,borderRadiusLG:Dn,controlHeight:bn,colorTextPlaceholder:gn,fontSize:ir,fontSizeSM:Xn,lineHeight:sr,lineWidth:gr,colorIcon:ur,colorIconHover:xr,opacityLoading:Or,controlInteractiveSize:Rr}=ve,Mr=new wl.FastColor(Bt).onBackground(Je).toHexString(),xo=new wl.FastColor(Ht).onBackground(Je).toHexString(),Qr=new wl.FastColor(me).onBackground(Je).toHexString(),Vr=new wl.FastColor(ur),uo=new wl.FastColor(xr),Ar=Rr/2-gr,Fr=Ar*2+gr*3;return{headerBg:Qr,headerColor:dt,headerSortActiveBg:Mr,headerSortHoverBg:xo,bodySortBg:Qr,rowHoverBg:Qr,rowSelectedBg:ln,rowSelectedHoverBg:rn,rowExpandedBg:me,cellPaddingBlock:fn,cellPaddingInline:fn,cellPaddingBlockMD:un,cellPaddingInlineMD:Ln,cellPaddingBlockSM:Ln,cellPaddingInlineSM:Ln,borderColor:Tn,headerBorderRadius:Dn,footerBg:Qr,footerColor:dt,cellFontSize:ir,cellFontSizeMD:ir,cellFontSizeSM:ir,headerSplitColor:Tn,fixedHeaderSortActiveBg:Mr,headerFilterHoverBg:Ht,filterDropdownMenuBg:Je,filterDropdownBg:Je,expandIconBg:Je,selectionColumnWidth:bn,stickyScrollBarBg:gn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(ir*sr-gr*3)/2-Math.ceil((Xn*1.4-gr*3)/2),headerIconColor:Vr.clone().setA(Vr.a*Or).toRgbString(),headerIconHoverColor:uo.clone().setA(uo.a*Or).toRgbString(),expandIconHalfInner:Ar,expandIconSize:Fr,expandIconScale:Rr/Fr}},_s=2;var rs=(0,iu.I$)("Table",ve=>{const{colorTextHeading:me,colorSplit:Je,colorBgContainer:dt,controlInteractiveSize:Bt,headerBg:Ht,headerColor:ln,headerSortActiveBg:rn,headerSortHoverBg:fn,bodySortBg:un,rowHoverBg:Ln,rowSelectedBg:Tn,rowSelectedHoverBg:Dn,rowExpandedBg:bn,cellPaddingBlock:gn,cellPaddingInline:ir,cellPaddingBlockMD:Xn,cellPaddingInlineMD:sr,cellPaddingBlockSM:gr,cellPaddingInlineSM:ur,borderColor:xr,footerBg:Or,footerColor:Rr,headerBorderRadius:Mr,cellFontSize:xo,cellFontSizeMD:Qr,cellFontSizeSM:Vr,headerSplitColor:uo,fixedHeaderSortActiveBg:Ar,headerFilterHoverBg:Fr,filterDropdownBg:Sr,expandIconBg:yr,selectionColumnWidth:Lr,stickyScrollBarBg:Zr,calc:qr}=ve,Pr=(0,au.mergeToken)(ve,{tableFontSize:xo,tableBg:dt,tableRadius:Mr,tablePaddingVertical:gn,tablePaddingHorizontal:ir,tablePaddingVerticalMiddle:Xn,tablePaddingHorizontalMiddle:sr,tablePaddingVerticalSmall:gr,tablePaddingHorizontalSmall:ur,tableBorderColor:xr,tableHeaderTextColor:ln,tableHeaderBg:Ht,tableFooterTextColor:Rr,tableFooterBg:Or,tableHeaderCellSplitColor:uo,tableHeaderSortBg:rn,tableHeaderSortHoverBg:fn,tableBodySortBg:un,tableFixedHeaderSortActiveBg:Ar,tableHeaderFilterActiveBg:Fr,tableFilterDropdownBg:Sr,tableRowHoverBg:Ln,tableSelectedRowBg:Tn,tableSelectedRowHoverBg:Dn,zIndexTableFixed:_s,zIndexTableSticky:qr(_s).add(1).equal({unit:!1}),tableFontSizeMiddle:Qr,tableFontSizeSmall:Vr,tableSelectionColumnWidth:Lr,tableExpandIconBg:yr,tableExpandColumnWidth:qr(Bt).add(qr(ve.padding).mul(2)).equal(),tableExpandedRowBg:bn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Zr,tableScrollThumbBgHover:me,tableScrollBg:Je});return[Xi(Pr),Hl(Pr),ma(Pr),cu(Pr),Gs(Pr),Cs(Pr),Us(Pr),Xs(Pr),ma(Pr),lu(Pr),ml(Pr),Zl(Pr),du(Pr),El(Pr),uu(Pr),Ys(Pr),ua(Pr)]},$l,{unitless:{expandIconScale:!0}});const fu=[],hu=(ve,me)=>{var Je,dt;const{prefixCls:Bt,className:Ht,rootClassName:ln,style:rn,size:fn,bordered:un,dropdownPrefixCls:Ln,dataSource:Tn,pagination:Dn,rowSelection:bn,rowKey:gn="key",rowClassName:ir,columns:Xn,children:sr,childrenColumnName:gr,onChange:ur,getPopupContainer:xr,loading:Or,expandIcon:Rr,expandable:Mr,expandedRowRender:xo,expandIconColumnIndex:Qr,indentSize:Vr,scroll:uo,sortDirections:Ar,locale:Fr,showSorterTooltip:Sr={target:"full-header"},virtual:yr}=ve,Lr=(0,Do.ln)("Table"),Zr=b.useMemo(()=>Xn||sn(sr),[Xn,sr]),qr=b.useMemo(()=>Zr.some(So=>So.responsive),[Zr]),Pr=(0,Zi.Z)(qr),Po=b.useMemo(()=>{const So=new Set(Object.keys(Pr).filter(Ao=>Pr[Ao]));return Zr.filter(Ao=>!Ao.responsive||Ao.responsive.some(vi=>So.has(vi)))},[Zr,Pr]),To=(0,qo.Z)(ve,["className","style","columns"]),{locale:yi=ha.Z,direction:fi,table:oi,renderEmpty:hi,getPrefixCls:Si,getPopupContainer:No}=b.useContext(Jo.E_),Mo=(0,Bo.Z)(fn),wi=Object.assign(Object.assign({},yi.Table),Fr),ki=Tn||fu,Gr=Si("table",Bt),go=Si("dropdown",Ln),[,$r]=(0,cl.ZP)(),Br=(0,Ho.Z)(Gr),[Fo,Go,ci]=rs(Gr,Br),ni=Object.assign(Object.assign({childrenColumnName:gr,expandIconColumnIndex:Qr},Mr),{expandIcon:(Je=Mr==null?void 0:Mr.expandIcon)!==null&&Je!==void 0?Je:(dt=oi==null?void 0:oi.expandable)===null||dt===void 0?void 0:dt.expandIcon}),{childrenColumnName:Ei="children"}=ni,Ai=b.useMemo(()=>ki.some(So=>So==null?void 0:So[Ei])?"nest":xo||Mr!=null&&Mr.expandedRowRender?"row":null,[ki]),Jr={body:b.useRef(null)},io=wo(Gr),Yo=b.useRef(null),ti=b.useRef(null);co(me,()=>Object.assign(Object.assign({},ti.current),{nativeElement:Yo.current}));const Qo=b.useMemo(()=>typeof gn=="function"?gn:So=>So==null?void 0:So[gn],[gn]),[Hi]=Aa(ki,Ei,Qo),Pi={},va=function(So,Ao){let vi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Oi,Gi,ji,za;const ea=Object.assign(Object.assign({},Pi),So);vi&&((Oi=Pi.resetPagination)===null||Oi===void 0||Oi.call(Pi),!((Gi=ea.pagination)===null||Gi===void 0)&&Gi.current&&(ea.pagination.current=1),Dn&&((ji=Dn.onChange)===null||ji===void 0||ji.call(Dn,1,(za=ea.pagination)===null||za===void 0?void 0:za.pageSize))),uo&&uo.scrollToFirstRowOnChange!==!1&&Jr.body.current&&(0,Ko.Z)(0,{getContainer:()=>Jr.body.current}),ur==null||ur(ea.pagination,ea.filters,ea.sorter,{currentDataSource:Eo(pl(ki,ea.sorterStates,Ei),ea.filterStates,Ei),action:Ao})},pi=(So,Ao)=>{va({sorter:So,sorterStates:Ao},"sort",!1)},[jo,ri,ii,Fi]=$s({prefixCls:Gr,mergedColumns:Po,onSorterChange:pi,sortDirections:Ar||["ascend","descend"],tableLocale:wi,showSorterTooltip:Sr}),bi=b.useMemo(()=>pl(ki,ri,Ei),[ki,ri]);Pi.sorter=Fi(),Pi.sorterStates=ri;const $o=(So,Ao)=>{va({filters:So,filterStates:Ao},"filter",!0)},[mi,_o,Qi]=Bi({prefixCls:Gr,locale:wi,dropdownPrefixCls:go,mergedColumns:Po,onFilterChange:$o,getPopupContainer:xr||No,rootClassName:Ve()(ln,Br)}),Li=Eo(bi,_o,Ei);Pi.filters=Qi,Pi.filterStates=_o;const ca=b.useMemo(()=>{const So={};return Object.keys(Qi).forEach(Ao=>{Qi[Ao]!==null&&(So[Ao]=Qi[Ao])}),Object.assign(Object.assign({},ii),{filters:So})},[ii,Qi]),[ga]=xs(ca),Ga=(So,Ao)=>{va({pagination:Object.assign(Object.assign({},Pi.pagination),{current:So,pageSize:Ao})},"paginate")},[ai,Wl]=Fa(Li.length,Ga,Dn);Pi.pagination=Dn===!1?{}:xa(ai,Dn),Pi.resetPagination=Wl;const da=b.useMemo(()=>{if(Dn===!1||!ai.pageSize)return Li;const{current:So=1,total:Ao,pageSize:vi=Wa}=ai;return Li.length<Ao?Li.length>vi?Li.slice((So-1)*vi,So*vi):Li:Li.slice((So-1)*vi,So*vi)},[!!Dn,Li,ai==null?void 0:ai.current,ai==null?void 0:ai.pageSize,ai==null?void 0:ai.total]),[ka,wa]=Xr({prefixCls:Gr,data:Li,pageData:da,getRowKey:Qo,getRecordByKey:Hi,expandType:Ai,childrenColumnName:Ei,locale:wi,getPopupContainer:xr||No},bn),ya=(So,Ao,vi)=>{let Oi;return typeof ir=="function"?Oi=Ve()(ir(So,Ao,vi)):Oi=Ve()(ir),Ve()({[`${Gr}-row-selected`]:wa.has(Qo(So,Ao))},Oi)};ni.__PARENT_RENDER_ICON__=ni.expandIcon,ni.expandIcon=ni.expandIcon||Rr||po(wi),Ai==="nest"&&ni.expandIconColumnIndex===void 0?ni.expandIconColumnIndex=bn?1:0:ni.expandIconColumnIndex>0&&bn&&(ni.expandIconColumnIndex-=1),typeof ni.indentSize!="number"&&(ni.indentSize=typeof Vr=="number"?Vr:15);const li=b.useCallback(So=>ga(ka(mi(jo(So)))),[jo,mi,ka]);let Ea,al;if(Dn!==!1&&(ai!=null&&ai.total)){let So;ai.size?So=ai.size:So=Mo==="small"||Mo==="middle"?"small":void 0;const Ao=Gi=>b.createElement(Wi.Z,Object.assign({},ai,{className:Ve()(`${Gr}-pagination ${Gr}-pagination-${Gi}`,ai.className),size:So})),vi=fi==="rtl"?"left":"right",{position:Oi}=ai;if(Oi!==null&&Array.isArray(Oi)){const Gi=Oi.find(ea=>ea.includes("top")),ji=Oi.find(ea=>ea.includes("bottom")),za=Oi.every(ea=>`${ea}`=="none");!Gi&&!ji&&!za&&(al=Ao(vi)),Gi&&(Ea=Ao(Gi.toLowerCase().replace("top",""))),ji&&(al=Ao(ji.toLowerCase().replace("bottom","")))}else al=Ao(vi)}let Ua;typeof Or=="boolean"?Ua={spinning:Or}:typeof Or=="object"&&(Ua=Object.assign({spinning:!0},Or));const Ya=Ve()(ci,Br,`${Gr}-wrapper`,oi==null?void 0:oi.className,{[`${Gr}-wrapper-rtl`]:fi==="rtl"},Ht,ln,Go),os=Object.assign(Object.assign({},oi==null?void 0:oi.style),rn),is=typeof(Fr==null?void 0:Fr.emptyText)!="undefined"?Fr.emptyText:(hi==null?void 0:hi("Table"))||b.createElement(Co.Z,{componentName:"Table"}),as=yr?Sl:Ws,ls={},Ps=b.useMemo(()=>{const{fontSize:So,lineHeight:Ao,lineWidth:vi,padding:Oi,paddingXS:Gi,paddingSM:ji}=$r,za=Math.floor(So*Ao);switch(Mo){case"middle":return ji*2+za+vi;case"small":return Gi*2+za+vi;default:return Oi*2+za+vi}},[$r,Mo]);return yr&&(ls.listItemHeight=Ps),Fo(b.createElement("div",{ref:Yo,className:Ya,style:os},b.createElement(Ni.Z,Object.assign({spinning:!1},Ua),Ea,b.createElement(as,Object.assign({},ls,To,{ref:ti,columns:Po,direction:fi,expandable:ni,prefixCls:Gr,className:Ve()({[`${Gr}-middle`]:Mo==="middle",[`${Gr}-small`]:Mo==="small",[`${Gr}-bordered`]:un,[`${Gr}-empty`]:ki.length===0},ci,Br,Go),data:da,rowKey:Qo,rowClassName:ya,emptyText:is,internalHooks:fe,internalRefs:Jr,transformColumns:li,getContainerWidth:io})),al)))};var pu=b.forwardRef(hu);const ws=(ve,me)=>{const Je=b.useRef(0);return Je.current+=1,b.createElement(pu,Object.assign({},ve,{ref:me,_renderTimes:Je.current}))},Xa=b.forwardRef(ws);Xa.SELECTION_COLUMN=Ro,Xa.EXPAND_COLUMN=Fe,Xa.SELECTION_ALL=si,Xa.SELECTION_INVERT=xi,Xa.SELECTION_NONE=Ii,Xa.Column=Er,Xa.ColumnGroup=Bn,Xa.Summary=Le;var Es=Xa,mu=Es},96599:function(Cn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Ve}});var b=ee(59301),Fe=ee(92310),fe=ee.n(Fe),qe=ee(2738),Se=ee(29509),ge=ee(78776),Ee=ee(22703),Ze=ee(12919),Pe=ee(48755),ce=ee(36237),Xe=ee(17835),we=ee(63356),St=ee(51636),tt=ee(16931);const je=de=>{const{paddingXXS:Dt,lineWidth:Ue,tagPaddingHorizontal:st,componentCls:Ut,calc:Te}=de,he=Te(st).sub(Ue).equal(),Nt=Te(Dt).sub(Ue).equal();return{[Ut]:Object.assign(Object.assign({},(0,we.Wf)(de)),{display:"inline-block",height:"auto",marginInlineEnd:de.marginXS,paddingInline:he,fontSize:de.tagFontSize,lineHeight:de.tagLineHeight,whiteSpace:"nowrap",background:de.defaultBg,border:`${(0,ce.unit)(de.lineWidth)} ${de.lineType} ${de.colorBorder}`,borderRadius:de.borderRadiusSM,opacity:1,transition:`all ${de.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Ut}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:de.defaultColor},[`${Ut}-close-icon`]:{marginInlineStart:Nt,fontSize:de.tagIconSize,color:de.colorTextDescription,cursor:"pointer",transition:`all ${de.motionDurationMid}`,"&:hover":{color:de.colorTextHeading}},[`&${Ut}-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(${Ut}-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:he}}),[`${Ut}-borderless`]:{borderColor:"transparent",background:de.tagBorderlessBg}}},Me=de=>{const{lineWidth:Dt,fontSizeIcon:Ue,calc:st}=de,Ut=de.fontSizeSM;return(0,St.mergeToken)(de,{tagFontSize:Ut,tagLineHeight:(0,ce.unit)(st(de.lineHeightSM).mul(Ut).equal()),tagIconSize:st(Ue).sub(st(Dt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:de.defaultBg})},Ne=de=>({defaultBg:new Xe.FastColor(de.colorFillQuaternary).onBackground(de.colorBgContainer).toHexString(),defaultColor:de.colorText});var it=(0,tt.I$)("Tag",de=>{const Dt=Me(de);return je(Dt)},Ne),yt=function(de,Dt){var Ue={};for(var st in de)Object.prototype.hasOwnProperty.call(de,st)&&Dt.indexOf(st)<0&&(Ue[st]=de[st]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,st=Object.getOwnPropertySymbols(de);Ut<st.length;Ut++)Dt.indexOf(st[Ut])<0&&Object.prototype.propertyIsEnumerable.call(de,st[Ut])&&(Ue[st[Ut]]=de[st[Ut]]);return Ue},We=b.forwardRef((de,Dt)=>{const{prefixCls:Ue,style:st,className:Ut,checked:Te,onChange:he,onClick:Nt}=de,Jt=yt(de,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ft,tag:ye}=b.useContext(Pe.E_),Ye=Yt=>{he==null||he(!Te),Nt==null||Nt(Yt)},lt=Ft("tag",Ue),[Xt,rt,At]=it(lt),_e=fe()(lt,`${lt}-checkable`,{[`${lt}-checkable-checked`]:Te},ye==null?void 0:ye.className,Ut,rt,At);return Xt(b.createElement("span",Object.assign({},Jt,{ref:Dt,style:Object.assign(Object.assign({},st),ye==null?void 0:ye.style),className:_e,onClick:Ye})))}),Ie=ee(93427);const He=de=>(0,Ie.Z)(de,(Dt,Ue)=>{let{textColor:st,lightBorderColor:Ut,lightColor:Te,darkColor:he}=Ue;return{[`${de.componentCls}${de.componentCls}-${Dt}`]:{color:st,background:Te,borderColor:Ut,"&-inverse":{color:de.colorTextLightSolid,background:he,borderColor:he},[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ge=(0,tt.bk)(["Tag","preset"],de=>{const Dt=Me(de);return He(Dt)},Ne);function Et(de){return typeof de!="string"?de:de.charAt(0).toUpperCase()+de.slice(1)}const ut=(de,Dt,Ue)=>{const st=Et(Ue);return{[`${de.componentCls}${de.componentCls}-${Dt}`]:{color:de[`color${Ue}`],background:de[`color${st}Bg`],borderColor:de[`color${st}Border`],[`&${de.componentCls}-borderless`]:{borderColor:"transparent"}}}};var et=(0,tt.bk)(["Tag","status"],de=>{const Dt=Me(de);return[ut(Dt,"success","Success"),ut(Dt,"processing","Info"),ut(Dt,"error","Error"),ut(Dt,"warning","Warning")]},Ne),ot=function(de,Dt){var Ue={};for(var st in de)Object.prototype.hasOwnProperty.call(de,st)&&Dt.indexOf(st)<0&&(Ue[st]=de[st]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,st=Object.getOwnPropertySymbols(de);Ut<st.length;Ut++)Dt.indexOf(st[Ut])<0&&Object.prototype.propertyIsEnumerable.call(de,st[Ut])&&(Ue[st[Ut]]=de[st[Ut]]);return Ue};const at=b.forwardRef((de,Dt)=>{const{prefixCls:Ue,className:st,rootClassName:Ut,style:Te,children:he,icon:Nt,color:Jt,onClose:Ft,bordered:ye=!0,visible:Ye}=de,lt=ot(de,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:Xt,direction:rt,tag:At}=b.useContext(Pe.E_),[_e,Yt]=b.useState(!0),Ct=(0,qe.Z)(lt,["closeIcon","closable"]);b.useEffect(()=>{Ye!==void 0&&Yt(Ye)},[Ye]);const ae=(0,Se.o2)(Jt),ne=(0,Se.yT)(Jt),te=ae||ne,ie=Object.assign(Object.assign({backgroundColor:Jt&&!te?Jt:void 0},At==null?void 0:At.style),Te),ue=Xt("tag",Ue),[re,le,xe]=it(ue),ft=fe()(ue,At==null?void 0:At.className,{[`${ue}-${Jt}`]:te,[`${ue}-has-color`]:Jt&&!te,[`${ue}-hidden`]:!_e,[`${ue}-rtl`]:rt==="rtl",[`${ue}-borderless`]:!ye},st,Ut,le,xe),Ae=Be=>{Be.stopPropagation(),Ft==null||Ft(Be),!Be.defaultPrevented&&Yt(!1)},[,Le]=(0,ge.Z)((0,ge.w)(de),(0,ge.w)(At),{closable:!1,closeIconRender:Be=>{const zt=b.createElement("span",{className:`${ue}-close-icon`,onClick:Ae},Be);return(0,Ee.wm)(Be,zt,Zt=>({onClick:qt=>{var en;(en=Zt==null?void 0:Zt.onClick)===null||en===void 0||en.call(Zt,qt),Ae(qt)},className:fe()(Zt==null?void 0:Zt.className,`${ue}-close-icon`)}))}}),Qe=typeof lt.onClick=="function"||he&&he.type==="a",nt=Nt||null,bt=nt?b.createElement(b.Fragment,null,nt,he&&b.createElement("span",null,he)):he,Oe=b.createElement("span",Object.assign({},Ct,{ref:Dt,className:ft,style:ie}),bt,Le,ae&&b.createElement(Ge,{key:"preset",prefixCls:ue}),ne&&b.createElement(et,{key:"status",prefixCls:ue}));return re(Qe?b.createElement(Ze.Z,{component:"Tag"},Oe):Oe)});at.CheckableTag=We;var Ve=at},18287:function(Cn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return Ft}});var b=ee(87632),Fe=ee(77654),fe=ee(59301),qe=ee(52671),Se=ee(8657),ge=ee(60499),Ee={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=Ee,Pe=ee(7657),ce=function(Ye,lt){return fe.createElement(Pe.Z,(0,ge.Z)({},Ye,{ref:lt,icon:Ze}))},Xe=fe.forwardRef(ce),we=Xe,St=ee(92310),tt=ee.n(St),je=ee(82661),Me=ee(34061),Ne=ee(48755),it=ee(56082),yt=ee(86641),Ot=ee(57700),We=ee(12425);const Ie=4;function He(ye){const{dropPosition:Ye,dropLevelOffset:lt,prefixCls:Xt,indent:rt,direction:At="ltr"}=ye,_e=At==="ltr"?"left":"right",Yt=At==="ltr"?"right":"left",Ct={[_e]:-lt*rt+Ie,[Yt]:0};switch(Ye){case-1:Ct.top=-3;break;case 1:Ct.bottom=-3;break;default:Ct.bottom=-3,Ct[_e]=rt+Ie;break}return fe.createElement("div",{style:Ct,className:`${Xt}-drop-indicator`})}var Ge=He,Et=ee(85278),et=fe.forwardRef((ye,Ye)=>{var lt;const{getPrefixCls:Xt,direction:rt,virtual:At,tree:_e}=fe.useContext(Ne.E_),{prefixCls:Yt,className:Ct,showIcon:ae=!1,showLine:ne,switcherIcon:te,switcherLoadingIcon:ie,blockNode:ue=!1,children:re,checkable:le=!1,selectable:xe=!0,draggable:ft,motion:Ae,style:Le}=ye,Qe=Xt("tree",Yt),nt=Xt(),bt=Ae!=null?Ae:Object.assign(Object.assign({},(0,yt.Z)(nt)),{motionAppear:!1}),Oe=Object.assign(Object.assign({},ye),{checkable:le,selectable:xe,showIcon:ae,motion:bt,blockNode:ue,showLine:!!ne,dropIndicatorRender:Ge}),[Be,zt,Zt]=(0,We.ZP)(Qe),[,qt]=(0,Ot.ZP)(),en=qt.paddingXS/2+(((lt=qt.Tree)===null||lt===void 0?void 0:lt.titleHeight)||qt.controlHeightSM),Tt=fe.useMemo(()=>{if(!ft)return!1;let Wt={};switch(typeof ft){case"function":Wt.nodeDraggable=ft;break;case"object":Wt=Object.assign({},ft);break;default:break}return Wt.icon!==!1&&(Wt.icon=Wt.icon||fe.createElement(it.Z,null)),Wt},[ft]),an=Wt=>fe.createElement(Et.Z,{prefixCls:Qe,switcherIcon:te,switcherLoadingIcon:ie,treeNodeProps:Wt,showLine:ne});return Be(fe.createElement(b.ZP,Object.assign({itemHeight:en,ref:Ye,virtual:At},Oe,{style:Object.assign(Object.assign({},_e==null?void 0:_e.style),Le),prefixCls:Qe,className:tt()({[`${Qe}-icon-hide`]:!ae,[`${Qe}-block-node`]:ue,[`${Qe}-unselectable`]:!xe,[`${Qe}-rtl`]:rt==="rtl"},_e==null?void 0:_e.className,Ct,zt,Zt),direction:rt,checkable:le&&fe.createElement("span",{className:`${Qe}-checkbox-inner`}),selectable:xe,switcherIcon:an,draggable:Tt}),re))});const ot=0,Ce=1,at=2;function Ve(ye,Ye,lt){const{key:Xt,children:rt}=lt;function At(_e){const Yt=_e[Xt],Ct=_e[rt];Ye(Yt,_e)!==!1&&Ve(Ct||[],Ye,lt)}ye.forEach(At)}function de(ye){let{treeData:Ye,expandedKeys:lt,startKey:Xt,endKey:rt,fieldNames:At}=ye;const _e=[];let Yt=ot;if(Xt&&Xt===rt)return[Xt];if(!Xt||!rt)return[];function Ct(ae){return ae===Xt||ae===rt}return Ve(Ye,ae=>{if(Yt===at)return!1;if(Ct(ae)){if(_e.push(ae),Yt===ot)Yt=Ce;else if(Yt===Ce)return Yt=at,!1}else Yt===Ce&&_e.push(ae);return lt.includes(ae)},(0,Me.w$)(At)),_e}function Dt(ye,Ye,lt){const Xt=(0,Fe.Z)(Ye),rt=[];return Ve(ye,(At,_e)=>{const Yt=Xt.indexOf(At);return Yt!==-1&&(rt.push(_e),Xt.splice(Yt,1)),!!Xt.length},(0,Me.w$)(lt)),rt}var Ue=function(ye,Ye){var lt={};for(var Xt in ye)Object.prototype.hasOwnProperty.call(ye,Xt)&&Ye.indexOf(Xt)<0&&(lt[Xt]=ye[Xt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Xt=Object.getOwnPropertySymbols(ye);rt<Xt.length;rt++)Ye.indexOf(Xt[rt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Xt[rt])&&(lt[Xt[rt]]=ye[Xt[rt]]);return lt};function st(ye){const{isLeaf:Ye,expanded:lt}=ye;return Ye?fe.createElement(qe.Z,null):lt?fe.createElement(Se.Z,null):fe.createElement(we,null)}function Ut(ye){let{treeData:Ye,children:lt}=ye;return Ye||(0,Me.zn)(lt)}const Te=(ye,Ye)=>{var{defaultExpandAll:lt,defaultExpandParent:Xt,defaultExpandedKeys:rt}=ye,At=Ue(ye,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const _e=fe.useRef(null),Yt=fe.useRef(null),Ct=()=>{const{keyEntities:Be}=(0,Me.I8)(Ut(At));let zt;return lt?zt=Object.keys(Be):Xt?zt=(0,je.r7)(At.expandedKeys||rt||[],Be):zt=At.expandedKeys||rt||[],zt},[ae,ne]=fe.useState(At.selectedKeys||At.defaultSelectedKeys||[]),[te,ie]=fe.useState(()=>Ct());fe.useEffect(()=>{"selectedKeys"in At&&ne(At.selectedKeys)},[At.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in At&&ie(At.expandedKeys)},[At.expandedKeys]);const ue=(Be,zt)=>{var Zt;return"expandedKeys"in At||ie(Be),(Zt=At.onExpand)===null||Zt===void 0?void 0:Zt.call(At,Be,zt)},re=(Be,zt)=>{var Zt;const{multiple:qt,fieldNames:en}=At,{node:Tt,nativeEvent:an}=zt,{key:Wt=""}=Tt,Ke=Ut(At),mt=Object.assign(Object.assign({},zt),{selected:!0}),$t=(an==null?void 0:an.ctrlKey)||(an==null?void 0:an.metaKey),nn=an==null?void 0:an.shiftKey;let Re;qt&&$t?(Re=Be,_e.current=Wt,Yt.current=Re,mt.selectedNodes=Dt(Ke,Re,en)):qt&&nn?(Re=Array.from(new Set([].concat((0,Fe.Z)(Yt.current||[]),(0,Fe.Z)(de({treeData:Ke,expandedKeys:te,startKey:Wt,endKey:_e.current,fieldNames:en}))))),mt.selectedNodes=Dt(Ke,Re,en)):(Re=[Wt],_e.current=Wt,Yt.current=Re,mt.selectedNodes=Dt(Ke,Re,en)),(Zt=At.onSelect)===null||Zt===void 0||Zt.call(At,Re,mt),"selectedKeys"in At||ne(Re)},{getPrefixCls:le,direction:xe}=fe.useContext(Ne.E_),{prefixCls:ft,className:Ae,showIcon:Le=!0,expandAction:Qe="click"}=At,nt=Ue(At,["prefixCls","className","showIcon","expandAction"]),bt=le("tree",ft),Oe=tt()(`${bt}-directory`,{[`${bt}-directory-rtl`]:xe==="rtl"},Ae);return fe.createElement(et,Object.assign({icon:st,ref:Ye,blockNode:!0},nt,{showIcon:Le,expandAction:Qe,prefixCls:bt,className:Oe,expandedKeys:te,selectedKeys:ae,onSelect:re,onExpand:ue}))};var Nt=fe.forwardRef(Te);const Jt=et;Jt.DirectoryTree=Nt,Jt.TreeNode=b.OF;var Ft=Jt},12425:function(Cn,Qt,ee){"use strict";ee.d(Qt,{ZP:function(){return je},Yk:function(){return we},TM:function(){return St}});var b=ee(36237),Fe=ee(36170),fe=ee(63356),qe=ee(34961),Se=ee(51636),ge=ee(16931);const Ee=Me=>{let{treeCls:Ne,treeNodeCls:it,directoryNodeSelectedBg:yt,directoryNodeSelectedColor:Ot,motionDurationMid:We,borderRadius:Ie,controlItemBgHover:He}=Me;return{[`${Ne}${Ne}-directory ${it}`]:{[`${Ne}-node-content-wrapper`]:{position:"static",[`> *:not(${Ne}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${We}`,content:'""',borderRadius:Ie},"&:hover:before":{background:He}},[`${Ne}-switcher, ${Ne}-checkbox, ${Ne}-draggable-icon`]:{zIndex:1},"&-selected":{[`${Ne}-switcher, ${Ne}-draggable-icon`]:{color:Ot},[`${Ne}-node-content-wrapper`]:{color:Ot,background:"transparent","&:before, &:hover:before":{background:yt}}}}}},Ze=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Pe=(Me,Ne)=>({[`.${Me}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ne.motionDurationSlow}`}}}),ce=(Me,Ne)=>({[`.${Me}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ne.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,b.unit)(Ne.lineWidthBold)} solid ${Ne.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Xe=(Me,Ne)=>{const{treeCls:it,treeNodeCls:yt,treeNodePadding:Ot,titleHeight:We,indentSize:Ie,nodeSelectedBg:He,nodeHoverBg:Ge,colorTextQuaternary:Et,controlItemBgActiveDisabled:ut}=Ne;return{[it]:Object.assign(Object.assign({},(0,fe.Wf)(Ne)),{background:Ne.colorBgContainer,borderRadius:Ne.borderRadius,transition:`background-color ${Ne.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${it}-rtl ${it}-switcher_close ${it}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${it}-active-focused)`]:Object.assign({},(0,fe.oN)(Ne)),[`${it}-list-holder-inner`]:{alignItems:"flex-start"},[`&${it}-block-node`]:{[`${it}-list-holder-inner`]:{alignItems:"stretch",[`${it}-node-content-wrapper`]:{flex:"auto"},[`${yt}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${Ne.colorPrimary}`,opacity:0,animationName:Ze,animationDuration:Ne.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:Ne.borderRadius}}},[yt]:{display:"flex",alignItems:"flex-start",marginBottom:Ot,lineHeight:(0,b.unit)(We),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:Ot},[`&-disabled ${it}-node-content-wrapper`]:{color:Ne.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${it}-checkbox-disabled + ${it}-node-selected,&${yt}-disabled${yt}-selected ${it}-node-content-wrapper`]:{backgroundColor:ut},[`${it}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${yt}-disabled)`]:{[`${it}-node-content-wrapper`]:{"&:hover":{color:Ne.nodeHoverColor}}},[`&-active ${it}-node-content-wrapper`]:{background:Ne.controlItemBgHover},[`&:not(${yt}-disabled).filter-node ${it}-title`]:{color:Ne.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${it}-draggable-icon`]:{flexShrink:0,width:We,textAlign:"center",visibility:"visible",color:Et},[`&${yt}-disabled ${it}-draggable-icon`]:{visibility:"hidden"}}},[`${it}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:Ie}},[`${it}-draggable-icon`]:{visibility:"hidden"},[`${it}-switcher, ${it}-checkbox`]:{marginInlineEnd:Ne.calc(Ne.calc(We).sub(Ne.controlInteractiveSize)).div(2).equal()},[`${it}-switcher`]:Object.assign(Object.assign({},Pe(Me,Ne)),{position:"relative",flex:"none",alignSelf:"stretch",width:We,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${Ne.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:We,height:We,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:Ne.borderRadius,transition:`all ${Ne.motionDurationSlow}`},[`&:not(${it}-switcher-noop):hover:before`]:{backgroundColor:Ne.colorBgTextHover},[`&_close ${it}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:Ne.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ne.calc(We).div(2).equal(),bottom:Ne.calc(Ot).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${Ne.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:Ne.calc(Ne.calc(We).div(2).equal()).mul(.8).equal(),height:Ne.calc(We).div(2).equal(),borderBottom:`1px solid ${Ne.colorBorder}`,content:'""'}}}),[`${it}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:We,paddingBlock:0,paddingInline:Ne.paddingXS,background:"transparent",borderRadius:Ne.borderRadius,cursor:"pointer",transition:`all ${Ne.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},ce(Me,Ne)),{"&:hover":{backgroundColor:Ge},[`&${it}-node-selected`]:{color:Ne.nodeSelectedColor,backgroundColor:He},[`${it}-iconEle`]:{display:"inline-block",width:We,height:We,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${it}-unselectable ${it}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${yt}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${Ne.colorPrimary}`},"&-show-line":{[`${it}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:Ne.calc(We).div(2).equal(),bottom:Ne.calc(Ot).mul(-1).equal(),borderInlineEnd:`1px solid ${Ne.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${it}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${yt}-leaf-last ${it}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,b.unit)(Ne.calc(We).div(2).equal())} !important`}})}},we=function(Me,Ne){let it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const yt=`.${Me}`,Ot=`${yt}-treenode`,We=Ne.calc(Ne.paddingXS).div(2).equal(),Ie=(0,Se.mergeToken)(Ne,{treeCls:yt,treeNodeCls:Ot,treeNodePadding:We});return[Xe(Me,Ie),it&&Ee(Ie)].filter(Boolean)},St=Me=>{const{controlHeightSM:Ne,controlItemBgHover:it,controlItemBgActive:yt}=Me,Ot=Ne;return{titleHeight:Ot,indentSize:Ot,nodeHoverBg:it,nodeHoverColor:Me.colorText,nodeSelectedBg:yt,nodeSelectedColor:Me.colorText}},tt=Me=>{const{colorTextLightSolid:Ne,colorPrimary:it}=Me;return Object.assign(Object.assign({},St(Me)),{directoryNodeSelectedColor:Ne,directoryNodeSelectedBg:it})};var je=(0,ge.I$)("Tree",(Me,Ne)=>{let{prefixCls:it}=Ne;return[{[Me.componentCls]:(0,Fe.C2)(`${it}-checkbox`,Me)},we(it,Me),(0,qe.Z)(Me)]},tt)},85278:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ne}});var b=ee(59301),Fe=ee(60499),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"},qe=fe,Se=ee(7657),ge=function(yt,Ot){return b.createElement(Se.Z,(0,Fe.Z)({},yt,{ref:Ot,icon:qe}))},Ee=b.forwardRef(ge),Ze=Ee,Pe=ee(52671),ce=ee(58617),Xe=ee(15075),we=ee(43531),St=ee(92310),tt=ee.n(St),je=ee(22703),Ne=it=>{const{prefixCls:yt,switcherIcon:Ot,treeNodeProps:We,showLine:Ie,switcherLoadingIcon:He}=it,{isLeaf:Ge,expanded:Et,loading:ut}=We;if(ut)return b.isValidElement(He)?He:b.createElement(ce.Z,{className:`${yt}-switcher-loading-icon`});let et;if(Ie&&typeof Ie=="object"&&(et=Ie.showLeafIcon),Ge){if(!Ie)return null;if(typeof et!="boolean"&&et){const at=typeof et=="function"?et(We):et,Ve=`${yt}-switcher-line-custom-icon`;return b.isValidElement(at)?(0,je.Tm)(at,{className:tt()(at.props.className||"",Ve)}):at}return et?b.createElement(Pe.Z,{className:`${yt}-switcher-line-icon`}):b.createElement("span",{className:`${yt}-switcher-leaf-line`})}const ot=`${yt}-switcher-icon`,Ce=typeof Ot=="function"?Ot(We):Ot;return b.isValidElement(Ce)?(0,je.Tm)(Ce,{className:tt()(Ce.props.className||"",ot)}):Ce!==void 0?Ce:Ie?Et?b.createElement(Xe.Z,{className:`${yt}-switcher-line-icon`}):b.createElement(we.Z,{className:`${yt}-switcher-line-icon`}):b.createElement(Ze,{className:ot})}},94968:function(Cn,Qt,ee){"use strict";ee.d(Qt,{default:function(){return xt}});var b=ee(59301),Fe=ee(77654),fe=ee(4676),qe=ee(92310),Se=ee.n(qe),ge=ee(60499),Ee=ee(38705),Ze=ee(17212),Pe=ee(15793),ce=ee(39153),Xe=ee(55401),we=ee(18642),St=ee(85899),tt=ee(42244),je=ee(43749),Me=ee(73001),Ne=ee(11576),it=ee(26112),yt=ee(48736),Ot=function(De,Pt){if(De&&Pt){var kt=Array.isArray(Pt)?Pt:Pt.split(","),jt=De.name||"",gt=De.type||"",ht=gt.replace(/\/.*$/,"");return kt.some(function(wt){var Rt=wt.trim();if(/^\*(\/\*)?$/.test(wt))return!0;if(Rt.charAt(0)==="."){var In=jt.toLowerCase(),On=Rt.toLowerCase(),Nn=[On];return(On===".jpg"||On===".jpeg")&&(Nn=[".jpg",".jpeg"]),Nn.some(function(tr){return In.endsWith(tr)})}return/\/\*$/.test(Rt)?ht===Rt.replace(/\/.*$/,""):gt===Rt?!0:/^\w+$/.test(Rt)?((0,yt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Rt,"'.Skip for check.")),!0):!1})}return!0};function We(De,Pt){var kt="cannot ".concat(De.method," ").concat(De.action," ").concat(Pt.status,"'"),jt=new Error(kt);return jt.status=Pt.status,jt.method=De.method,jt.url=De.action,jt}function Ie(De){var Pt=De.responseText||De.response;if(!Pt)return Pt;try{return JSON.parse(Pt)}catch(kt){return Pt}}function He(De){var Pt=new XMLHttpRequest;De.onProgress&&Pt.upload&&(Pt.upload.onprogress=function(ht){ht.total>0&&(ht.percent=ht.loaded/ht.total*100),De.onProgress(ht)});var kt=new FormData;De.data&&Object.keys(De.data).forEach(function(gt){var ht=De.data[gt];if(Array.isArray(ht)){ht.forEach(function(wt){kt.append("".concat(gt,"[]"),wt)});return}kt.append(gt,ht)}),De.file instanceof Blob?kt.append(De.filename,De.file,De.file.name):kt.append(De.filename,De.file),Pt.onerror=function(ht){De.onError(ht)},Pt.onload=function(){return Pt.status<200||Pt.status>=300?De.onError(We(De,Pt),Ie(Pt)):De.onSuccess(Ie(Pt),Pt)},Pt.open(De.method,De.action,!0),De.withCredentials&&"withCredentials"in Pt&&(Pt.withCredentials=!0);var jt=De.headers||{};return jt["X-Requested-With"]!==null&&Pt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(jt).forEach(function(gt){jt[gt]!==null&&Pt.setRequestHeader(gt,jt[gt])}),Pt.send(kt),{abort:function(){Pt.abort()}}}var Ge=function(){var De=(0,Ne.Z)((0,Me.Z)().mark(function Pt(kt,jt){var gt,ht,wt,Rt,In,On,Nn,tr;return(0,Me.Z)().wrap(function(mr){for(;;)switch(mr.prev=mr.next){case 0:On=function(){return On=(0,Ne.Z)((0,Me.Z)().mark(function Yn(Qn){return(0,Me.Z)().wrap(function(wr){for(;;)switch(wr.prev=wr.next){case 0:return wr.abrupt("return",new Promise(function(ar){Qn.file(function(Cr){jt(Cr)?(Qn.fullPath&&!Cr.webkitRelativePath&&(Object.defineProperties(Cr,{webkitRelativePath:{writable:!0}}),Cr.webkitRelativePath=Qn.fullPath.replace(/^\//,""),Object.defineProperties(Cr,{webkitRelativePath:{writable:!1}})),ar(Cr)):ar(null)})}));case 1:case"end":return wr.stop()}},Yn)})),On.apply(this,arguments)},In=function(Yn){return On.apply(this,arguments)},Rt=function(){return Rt=(0,Ne.Z)((0,Me.Z)().mark(function Yn(Qn){var rr,wr,ar,Cr,qn;return(0,Me.Z)().wrap(function(vr){for(;;)switch(vr.prev=vr.next){case 0:rr=Qn.createReader(),wr=[];case 2:return vr.next=5,new Promise(function(Kr){rr.readEntries(Kr,function(){return Kr([])})});case 5:if(ar=vr.sent,Cr=ar.length,Cr){vr.next=9;break}return vr.abrupt("break",12);case 9:for(qn=0;qn<Cr;qn++)wr.push(ar[qn]);vr.next=2;break;case 12:return vr.abrupt("return",wr);case 13:case"end":return vr.stop()}},Yn)})),Rt.apply(this,arguments)},wt=function(Yn){return Rt.apply(this,arguments)},gt=[],ht=[],kt.forEach(function(er){return ht.push(er.webkitGetAsEntry())}),Nn=function(){var er=(0,Ne.Z)((0,Me.Z)().mark(function Yn(Qn,rr){var wr,ar;return(0,Me.Z)().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(Qn){qn.next=2;break}return qn.abrupt("return");case 2:if(Qn.path=rr||"",!Qn.isFile){qn.next=10;break}return qn.next=6,In(Qn);case 6:wr=qn.sent,wr&&gt.push(wr),qn.next=15;break;case 10:if(!Qn.isDirectory){qn.next=15;break}return qn.next=13,wt(Qn);case 13:ar=qn.sent,ht.push.apply(ht,(0,Fe.Z)(ar));case 15:case"end":return qn.stop()}},Yn)}));return function(Qn,rr){return er.apply(this,arguments)}}(),tr=0;case 9:if(!(tr<ht.length)){mr.next=15;break}return mr.next=12,Nn(ht[tr]);case 12:tr++,mr.next=9;break;case 15:return mr.abrupt("return",gt);case 16:case"end":return mr.stop()}},Pt)}));return function(kt,jt){return De.apply(this,arguments)}}(),Et=Ge,ut=+new Date,et=0;function ot(){return"rc-upload-".concat(ut,"-").concat(++et)}var Ce=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],at=function(De){(0,ce.Z)(kt,De);var Pt=(0,Xe.Z)(kt);function kt(){var jt;(0,Ee.Z)(this,kt);for(var gt=arguments.length,ht=new Array(gt),wt=0;wt<gt;wt++)ht[wt]=arguments[wt];return jt=Pt.call.apply(Pt,[this].concat(ht)),(0,we.Z)((0,Pe.Z)(jt),"state",{uid:ot()}),(0,we.Z)((0,Pe.Z)(jt),"reqs",{}),(0,we.Z)((0,Pe.Z)(jt),"fileInput",void 0),(0,we.Z)((0,Pe.Z)(jt),"_isMounted",void 0),(0,we.Z)((0,Pe.Z)(jt),"onChange",function(Rt){var In=jt.props,On=In.accept,Nn=In.directory,tr=Rt.target.files,dr=(0,Fe.Z)(tr).filter(function(mr){return!Nn||Ot(mr,On)});jt.uploadFiles(dr),jt.reset()}),(0,we.Z)((0,Pe.Z)(jt),"onClick",function(Rt){var In=jt.fileInput;if(In){var On=Rt.target,Nn=jt.props.onClick;if(On&&On.tagName==="BUTTON"){var tr=In.parentNode;tr.focus(),On.blur()}In.click(),Nn&&Nn(Rt)}}),(0,we.Z)((0,Pe.Z)(jt),"onKeyDown",function(Rt){Rt.key==="Enter"&&jt.onClick(Rt)}),(0,we.Z)((0,Pe.Z)(jt),"onFileDrop",function(){var Rt=(0,Ne.Z)((0,Me.Z)().mark(function In(On){var Nn,tr,dr;return(0,Me.Z)().wrap(function(er){for(;;)switch(er.prev=er.next){case 0:if(Nn=jt.props.multiple,On.preventDefault(),On.type!=="dragover"){er.next=4;break}return er.abrupt("return");case 4:if(!jt.props.directory){er.next=11;break}return er.next=7,Et(Array.prototype.slice.call(On.dataTransfer.items),function(Yn){return Ot(Yn,jt.props.accept)});case 7:tr=er.sent,jt.uploadFiles(tr),er.next=14;break;case 11:dr=(0,Fe.Z)(On.dataTransfer.files).filter(function(Yn){return Ot(Yn,jt.props.accept)}),Nn===!1&&(dr=dr.slice(0,1)),jt.uploadFiles(dr);case 14:case"end":return er.stop()}},In)}));return function(In){return Rt.apply(this,arguments)}}()),(0,we.Z)((0,Pe.Z)(jt),"uploadFiles",function(Rt){var In=(0,Fe.Z)(Rt),On=In.map(function(Nn){return Nn.uid=ot(),jt.processFile(Nn,In)});Promise.all(On).then(function(Nn){var tr=jt.props.onBatchStart;tr==null||tr(Nn.map(function(dr){var mr=dr.origin,er=dr.parsedFile;return{file:mr,parsedFile:er}})),Nn.filter(function(dr){return dr.parsedFile!==null}).forEach(function(dr){jt.post(dr)})})}),(0,we.Z)((0,Pe.Z)(jt),"processFile",function(){var Rt=(0,Ne.Z)((0,Me.Z)().mark(function In(On,Nn){var tr,dr,mr,er,Yn,Qn,rr,wr,ar;return(0,Me.Z)().wrap(function(qn){for(;;)switch(qn.prev=qn.next){case 0:if(tr=jt.props.beforeUpload,dr=On,!tr){qn.next=14;break}return qn.prev=3,qn.next=6,tr(On,Nn);case 6:dr=qn.sent,qn.next=12;break;case 9:qn.prev=9,qn.t0=qn.catch(3),dr=!1;case 12:if(dr!==!1){qn.next=14;break}return qn.abrupt("return",{origin:On,parsedFile:null,action:null,data:null});case 14:if(mr=jt.props.action,typeof mr!="function"){qn.next=21;break}return qn.next=18,mr(On);case 18:er=qn.sent,qn.next=22;break;case 21:er=mr;case 22:if(Yn=jt.props.data,typeof Yn!="function"){qn.next=29;break}return qn.next=26,Yn(On);case 26:Qn=qn.sent,qn.next=30;break;case 29:Qn=Yn;case 30:return rr=((0,je.Z)(dr)==="object"||typeof dr=="string")&&dr?dr:On,rr instanceof File?wr=rr:wr=new File([rr],On.name,{type:On.type}),ar=wr,ar.uid=On.uid,qn.abrupt("return",{origin:On,data:Qn,parsedFile:ar,action:er});case 35:case"end":return qn.stop()}},In,null,[[3,9]])}));return function(In,On){return Rt.apply(this,arguments)}}()),(0,we.Z)((0,Pe.Z)(jt),"saveFileInput",function(Rt){jt.fileInput=Rt}),jt}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(gt){var ht=this,wt=gt.data,Rt=gt.origin,In=gt.action,On=gt.parsedFile;if(this._isMounted){var Nn=this.props,tr=Nn.onStart,dr=Nn.customRequest,mr=Nn.name,er=Nn.headers,Yn=Nn.withCredentials,Qn=Nn.method,rr=Rt.uid,wr=dr||He,ar={action:In,filename:mr,data:wt,file:On,headers:er,withCredentials:Yn,method:Qn||"post",onProgress:function(qn){var pr=ht.props.onProgress;pr==null||pr(qn,On)},onSuccess:function(qn,pr){var vr=ht.props.onSuccess;vr==null||vr(qn,On,pr),delete ht.reqs[rr]},onError:function(qn,pr){var vr=ht.props.onError;vr==null||vr(qn,pr,On),delete ht.reqs[rr]}};tr(Rt),this.reqs[rr]=wr(ar)}}},{key:"reset",value:function(){this.setState({uid:ot()})}},{key:"abort",value:function(gt){var ht=this.reqs;if(gt){var wt=gt.uid?gt.uid:gt;ht[wt]&&ht[wt].abort&&ht[wt].abort(),delete ht[wt]}else Object.keys(ht).forEach(function(Rt){ht[Rt]&&ht[Rt].abort&&ht[Rt].abort(),delete ht[Rt]})}},{key:"render",value:function(){var gt=this.props,ht=gt.component,wt=gt.prefixCls,Rt=gt.className,In=gt.classNames,On=In===void 0?{}:In,Nn=gt.disabled,tr=gt.id,dr=gt.name,mr=gt.style,er=gt.styles,Yn=er===void 0?{}:er,Qn=gt.multiple,rr=gt.accept,wr=gt.capture,ar=gt.children,Cr=gt.directory,qn=gt.openFileDialogOnClick,pr=gt.onMouseEnter,vr=gt.onMouseLeave,Kr=gt.hasControlInside,_r=(0,tt.Z)(gt,Ce),Wr=Se()((0,we.Z)((0,we.Z)((0,we.Z)({},wt,!0),"".concat(wt,"-disabled"),Nn),Rt,Rt)),Ur=Cr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ao=Nn?{}:{onClick:qn?this.onClick:function(){},onKeyDown:qn?this.onKeyDown:function(){},onMouseEnter:pr,onMouseLeave:vr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Kr?void 0:"0"};return b.createElement(ht,(0,ge.Z)({},ao,{className:Wr,role:Kr?void 0:"button",style:mr}),b.createElement("input",(0,ge.Z)({},(0,it.Z)(_r,{aria:!0,data:!0}),{id:tr,name:dr,disabled:Nn,type:"file",ref:this.saveFileInput,onClick:function(to){return to.stopPropagation()},key:this.state.uid,style:(0,St.Z)({display:"none"},Yn.input),className:On.input,accept:rr},Ur,{multiple:Qn,onChange:this.onChange},wr!=null?{capture:wr}:{})),ar)}}]),kt}(b.Component),Ve=at;function de(){}var Dt=function(De){(0,ce.Z)(kt,De);var Pt=(0,Xe.Z)(kt);function kt(){var jt;(0,Ee.Z)(this,kt);for(var gt=arguments.length,ht=new Array(gt),wt=0;wt<gt;wt++)ht[wt]=arguments[wt];return jt=Pt.call.apply(Pt,[this].concat(ht)),(0,we.Z)((0,Pe.Z)(jt),"uploader",void 0),(0,we.Z)((0,Pe.Z)(jt),"saveUploader",function(Rt){jt.uploader=Rt}),jt}return(0,Ze.Z)(kt,[{key:"abort",value:function(gt){this.uploader.abort(gt)}},{key:"render",value:function(){return b.createElement(Ve,(0,ge.Z)({},this.props,{ref:this.saveUploader}))}}]),kt}(b.Component);(0,we.Z)(Dt,"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 Ue=Dt,st=Ue,Ut=ee(18929),Te=ee(48755),he=ee(2171),Nt=ee(9017),Jt=ee(85981),Ft=ee(63356),ye=ee(34961),Ye=ee(16931),lt=ee(51636),Xt=ee(36237),At=De=>{const{componentCls:Pt,iconCls:kt}=De;return{[`${Pt}-wrapper`]:{[`${Pt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:De.colorFillAlter,border:`${(0,Xt.unit)(De.lineWidth)} dashed ${De.colorBorder}`,borderRadius:De.borderRadiusLG,cursor:"pointer",transition:`border-color ${De.motionDurationSlow}`,[Pt]:{padding:De.padding},[`${Pt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:De.borderRadiusLG,"&:focus-visible":{outline:`${(0,Xt.unit)(De.lineWidthFocus)} solid ${De.colorPrimaryBorder}`}},[`${Pt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${Pt}-disabled):hover,
&-hover:not(${Pt}-disabled)
`]:{borderColor:De.colorPrimaryHover},[`p${Pt}-drag-icon`]:{marginBottom:De.margin,[kt]:{color:De.colorPrimary,fontSize:De.uploadThumbnailSize}},[`p${Pt}-text`]:{margin:`0 0 ${(0,Xt.unit)(De.marginXXS)}`,color:De.colorTextHeading,fontSize:De.fontSizeLG},[`p${Pt}-hint`]:{color:De.colorTextDescription,fontSize:De.fontSize},[`&${Pt}-disabled`]:{[`p${Pt}-drag-icon ${kt},
p${Pt}-text,
p${Pt}-hint
`]:{color:De.colorTextDisabled}}}}}},Yt=De=>{const{componentCls:Pt,iconCls:kt,fontSize:jt,lineHeight:gt,calc:ht}=De,wt=`${Pt}-list-item`,Rt=`${wt}-actions`,In=`${wt}-action`;return{[`${Pt}-wrapper`]:{[`${Pt}-list`]:Object.assign(Object.assign({},(0,Ft.dF)()),{lineHeight:De.lineHeight,[wt]:{position:"relative",height:ht(De.lineHeight).mul(jt).equal(),marginTop:De.marginXS,fontSize:jt,display:"flex",alignItems:"center",transition:`background-color ${De.motionDurationSlow}`,borderRadius:De.borderRadiusSM,"&:hover":{backgroundColor:De.controlItemBgHover},[`${wt}-name`]:Object.assign(Object.assign({},Ft.vS),{padding:`0 ${(0,Xt.unit)(De.paddingXS)}`,lineHeight:gt,flex:"auto",transition:`all ${De.motionDurationSlow}`}),[Rt]:{whiteSpace:"nowrap",[In]:{opacity:0},[kt]:{color:De.actionsColor,transition:`all ${De.motionDurationSlow}`},[`
${In}:focus-visible,
&.picture ${In}
`]:{opacity:1}},[`${Pt}-icon ${kt}`]:{color:De.colorTextDescription,fontSize:jt},[`${wt}-progress`]:{position:"absolute",bottom:De.calc(De.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:ht(jt).add(De.paddingXS).equal(),fontSize:jt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${wt}:hover ${In}`]:{opacity:1},[`${wt}-error`]:{color:De.colorError,[`${wt}-name, ${Pt}-icon ${kt}`]:{color:De.colorError},[Rt]:{[`${kt}, ${kt}:hover`]:{color:De.colorError},[In]:{opacity:1}}},[`${Pt}-list-item-container`]:{transition:`opacity ${De.motionDurationSlow}, height ${De.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ct=ee(99495),ne=De=>{const{componentCls:Pt}=De,kt=new Xt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:De.calc(De.marginXS).div(-2).equal()}}),jt=new Xt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:De.calc(De.marginXS).div(-2).equal()}}),gt=`${Pt}-animate-inline`;return[{[`${Pt}-wrapper`]:{[`${gt}-appear, ${gt}-enter, ${gt}-leave`]:{animationDuration:De.motionDurationSlow,animationTimingFunction:De.motionEaseInOutCirc,animationFillMode:"forwards"},[`${gt}-appear, ${gt}-enter`]:{animationName:kt},[`${gt}-leave`]:{animationName:jt}}},{[`${Pt}-wrapper`]:(0,Ct.J$)(De)},kt,jt]},te=ee(68361);const ie=De=>{const{componentCls:Pt,iconCls:kt,uploadThumbnailSize:jt,uploadProgressOffset:gt,calc:ht}=De,wt=`${Pt}-list`,Rt=`${wt}-item`;return{[`${Pt}-wrapper`]:{[`
${wt}${wt}-picture,
${wt}${wt}-picture-card,
${wt}${wt}-picture-circle
`]:{[Rt]:{position:"relative",height:ht(jt).add(ht(De.lineWidth).mul(2)).add(ht(De.paddingXS).mul(2)).equal(),padding:De.paddingXS,border:`${(0,Xt.unit)(De.lineWidth)} ${De.lineType} ${De.colorBorder}`,borderRadius:De.borderRadiusLG,"&:hover":{background:"transparent"},[`${Rt}-thumbnail`]:Object.assign(Object.assign({},Ft.vS),{width:jt,height:jt,lineHeight:(0,Xt.unit)(ht(jt).add(De.paddingSM).equal()),textAlign:"center",flex:"none",[kt]:{fontSize:De.fontSizeHeading2,color:De.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Rt}-progress`]:{bottom:gt,width:`calc(100% - ${(0,Xt.unit)(ht(De.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:ht(jt).add(De.paddingXS).equal()}},[`${Rt}-error`]:{borderColor:De.colorError,[`${Rt}-thumbnail ${kt}`]:{[`svg path[fill='${te.blue[0]}']`]:{fill:De.colorErrorBg},[`svg path[fill='${te.blue.primary}']`]:{fill:De.colorError}}},[`${Rt}-uploading`]:{borderStyle:"dashed",[`${Rt}-name`]:{marginBottom:gt}}},[`${wt}${wt}-picture-circle ${Rt}`]:{[`&, &::before, ${Rt}-thumbnail`]:{borderRadius:"50%"}}}}},ue=De=>{const{componentCls:Pt,iconCls:kt,fontSizeLG:jt,colorTextLightSolid:gt,calc:ht}=De,wt=`${Pt}-list`,Rt=`${wt}-item`,In=De.uploadPicCardSize;return{[`
${Pt}-wrapper${Pt}-picture-card-wrapper,
${Pt}-wrapper${Pt}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Ft.dF)()),{display:"block",[`${Pt}${Pt}-select`]:{width:In,height:In,textAlign:"center",verticalAlign:"top",backgroundColor:De.colorFillAlter,border:`${(0,Xt.unit)(De.lineWidth)} dashed ${De.colorBorder}`,borderRadius:De.borderRadiusLG,cursor:"pointer",transition:`border-color ${De.motionDurationSlow}`,[`> ${Pt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Pt}-disabled):hover`]:{borderColor:De.colorPrimary}},[`${wt}${wt}-picture-card, ${wt}${wt}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:De.marginXS,marginInlineEnd:De.marginXS}},"@supports (gap: 1px)":{gap:De.marginXS},[`${wt}-item-container`]:{display:"inline-block",width:In,height:In,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[Rt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,Xt.unit)(ht(De.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,Xt.unit)(ht(De.paddingXS).mul(2).equal())})`,backgroundColor:De.colorBgMask,opacity:0,transition:`all ${De.motionDurationSlow}`,content:'" "'}},[`${Rt}:hover`]:{[`&::before, ${Rt}-actions`]:{opacity:1}},[`${Rt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${De.motionDurationSlow}`,[`
${kt}-eye,
${kt}-download,
${kt}-delete
`]:{zIndex:10,width:jt,margin:`0 ${(0,Xt.unit)(De.marginXXS)}`,fontSize:jt,cursor:"pointer",transition:`all ${De.motionDurationSlow}`,color:gt,"&:hover":{color:gt},svg:{verticalAlign:"baseline"}}},[`${Rt}-thumbnail, ${Rt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Rt}-name`]:{display:"none",textAlign:"center"},[`${Rt}-file + ${Rt}-name`]:{position:"absolute",bottom:De.margin,display:"block",width:`calc(100% - ${(0,Xt.unit)(ht(De.paddingXS).mul(2).equal())})`},[`${Rt}-uploading`]:{[`&${Rt}`]:{backgroundColor:De.colorFillAlter},[`&::before, ${kt}-eye, ${kt}-download, ${kt}-delete`]:{display:"none"}},[`${Rt}-progress`]:{bottom:De.marginXL,width:`calc(100% - ${(0,Xt.unit)(ht(De.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Pt}-wrapper${Pt}-picture-circle-wrapper`]:{[`${Pt}${Pt}-select`]:{borderRadius:"50%"}}}};var le=De=>{const{componentCls:Pt}=De;return{[`${Pt}-rtl`]:{direction:"rtl"}}};const xe=De=>{const{componentCls:Pt,colorTextDisabled:kt}=De;return{[`${Pt}-wrapper`]:Object.assign(Object.assign({},(0,Ft.Wf)(De)),{[Pt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Pt}-select`]:{display:"inline-block"},[`${Pt}-hidden`]:{display:"none"},[`${Pt}-disabled`]:{color:kt,cursor:"not-allowed"}})}},ft=De=>({actionsColor:De.colorTextDescription});var Ae=(0,Ye.I$)("Upload",De=>{const{fontSizeHeading3:Pt,fontHeight:kt,lineWidth:jt,controlHeightLG:gt,calc:ht}=De,wt=(0,lt.mergeToken)(De,{uploadThumbnailSize:ht(Pt).mul(2).equal(),uploadProgressOffset:ht(ht(kt).div(2)).add(jt).equal(),uploadPicCardSize:ht(gt).mul(2.55).equal()});return[xe(wt),At(wt),ie(wt),ue(wt),Yt(wt),ne(wt),le(wt),(0,ye.Z)(wt)]},ft),Le={icon:function(Pt,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:Pt}}]}},name:"file",theme:"twotone"},Qe=Le,nt=ee(7657),bt=function(Pt,kt){return b.createElement(nt.Z,(0,ge.Z)({},Pt,{ref:kt,icon:Qe}))},Oe=b.forwardRef(bt),Be=Oe,zt=ee(58617),Zt={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"},qt=Zt,en=function(Pt,kt){return b.createElement(nt.Z,(0,ge.Z)({},Pt,{ref:kt,icon:qt}))},Tt=b.forwardRef(en),an=Tt,Wt={icon:function(Pt,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:Pt}},{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:Pt}}]}},name:"picture",theme:"twotone"},Ke=Wt,mt=function(Pt,kt){return b.createElement(nt.Z,(0,ge.Z)({},Pt,{ref:kt,icon:Ke}))},$t=b.forwardRef(mt),nn=$t,Re=ee(77900),pt=ee(2738),Mt=ee(40192),Kt=ee(86641),cn=ee(22703),Pn=ee(7939);function Rn(De){return Object.assign(Object.assign({},De),{lastModified:De.lastModified,lastModifiedDate:De.lastModifiedDate,name:De.name,size:De.size,type:De.type,uid:De.uid,percent:0,originFileObj:De})}function Fn(De,Pt){const kt=(0,Fe.Z)(Pt),jt=kt.findIndex(gt=>{let{uid:ht}=gt;return ht===De.uid});return jt===-1?kt.push(De):kt[jt]=De,kt}function vn(De,Pt){const kt=De.uid!==void 0?"uid":"name";return Pt.filter(jt=>jt[kt]===De[kt])[0]}function Mn(De,Pt){const kt=De.uid!==void 0?"uid":"name",jt=Pt.filter(gt=>gt[kt]!==De[kt]);return jt.length===Pt.length?null:jt}const dn=function(){const Pt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),jt=Pt[Pt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(jt)||[""])[0]},Vt=De=>De.indexOf("image/")===0,tn=De=>{if(De.type&&!De.thumbUrl)return Vt(De.type);const Pt=De.thumbUrl||De.url||"",kt=dn(Pt);return/^data:image\//.test(Pt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(kt)?!0:!(/^data:/.test(Pt)||kt)},on=200;function _t(De){return new Promise(Pt=>{if(!De.type||!Vt(De.type)){Pt("");return}const kt=document.createElement("canvas");kt.width=on,kt.height=on,kt.style.cssText=`position: fixed; left: 0; top: 0; width: ${on}px; height: ${on}px; z-index: 9999; display: none;`,document.body.appendChild(kt);const jt=kt.getContext("2d"),gt=new Image;if(gt.onload=()=>{const{width:ht,height:wt}=gt;let Rt=on,In=on,On=0,Nn=0;ht>wt?(In=wt*(on/ht),Nn=-(In-Rt)/2):(Rt=ht*(on/wt),On=-(Rt-In)/2),jt.drawImage(gt,On,Nn,Rt,In);const tr=kt.toDataURL();document.body.removeChild(kt),window.URL.revokeObjectURL(gt.src),Pt(tr)},gt.crossOrigin="anonymous",De.type.startsWith("image/svg+xml")){const ht=new FileReader;ht.onload=()=>{ht.result&&typeof ht.result=="string"&&(gt.src=ht.result)},ht.readAsDataURL(De)}else if(De.type.startsWith("image/gif")){const ht=new FileReader;ht.onload=()=>{ht.result&&Pt(ht.result)},ht.readAsDataURL(De)}else gt.src=window.URL.createObjectURL(De)})}var hn=ee(26227),mn=ee(41464),Sn=ee(15277),zn=ee(89787),Wn=ee(25399),Jn=b.forwardRef((De,Pt)=>{let{prefixCls:kt,className:jt,style:gt,locale:ht,listType:wt,file:Rt,items:In,progress:On,iconRender:Nn,actionIconRender:tr,itemRender:dr,isImgUrl:mr,showPreviewIcon:er,showRemoveIcon:Yn,showDownloadIcon:Qn,previewIcon:rr,removeIcon:wr,downloadIcon:ar,extra:Cr,onPreview:qn,onDownload:pr,onClose:vr}=De;var Kr,_r;const{status:Wr}=Rt,[Ur,ao]=b.useState(Wr);b.useEffect(()=>{Wr!=="removed"&&ao(Wr)},[Wr]);const[Hr,to]=b.useState(!1);b.useEffect(()=>{const Bn=setTimeout(()=>{to(!0)},300);return()=>{clearTimeout(Bn)}},[]);const Ir=Nn(Rt);let ro=b.createElement("div",{className:`${kt}-icon`},Ir);if(wt==="picture"||wt==="picture-card"||wt==="picture-circle")if(Ur==="uploading"||!Rt.thumbUrl&&!Rt.url){const Bn=Se()(`${kt}-list-item-thumbnail`,{[`${kt}-list-item-file`]:Ur!=="uploading"});ro=b.createElement("div",{className:Bn},Ir)}else{const Bn=mr!=null&&mr(Rt)?b.createElement("img",{src:Rt.thumbUrl||Rt.url,alt:Rt.name,className:`${kt}-list-item-image`,crossOrigin:Rt.crossOrigin}):Ir,_n=Se()(`${kt}-list-item-thumbnail`,{[`${kt}-list-item-file`]:mr&&!mr(Rt)});ro=b.createElement("a",{className:_n,onClick:or=>qn(Rt,or),href:Rt.url||Rt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Bn)}const ho=Se()(`${kt}-list-item`,`${kt}-list-item-${Ur}`),En=typeof Rt.linkProps=="string"?JSON.parse(Rt.linkProps):Rt.linkProps,Vn=(typeof Yn=="function"?Yn(Rt):Yn)?tr((typeof wr=="function"?wr(Rt):wr)||b.createElement(hn.Z,null),()=>vr(Rt),kt,ht.removeFile,!0):null,zr=(typeof Qn=="function"?Qn(Rt):Qn)&&Ur==="done"?tr((typeof ar=="function"?ar(Rt):ar)||b.createElement(mn.Z,null),()=>pr(Rt),kt,ht.downloadFile):null,no=wt!=="picture-card"&&wt!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:Se()(`${kt}-list-item-actions`,{picture:wt==="picture"})},zr,Vn),vo=typeof Cr=="function"?Cr(Rt):Cr,Dr=vo&&b.createElement("span",{className:`${kt}-list-item-extra`},vo),kr=Se()(`${kt}-list-item-name`),lr=Rt.url?b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:kr,title:Rt.name},En,{href:Rt.url,onClick:Bn=>qn(Rt,Bn)}),Rt.name,Dr):b.createElement("span",{key:"view",className:kr,onClick:Bn=>qn(Rt,Bn),title:Rt.name},Rt.name,Dr),wn=(typeof er=="function"?er(Rt):er)&&(Rt.url||Rt.thumbUrl)?b.createElement("a",{href:Rt.url||Rt.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:Bn=>qn(Rt,Bn),title:ht.previewFile},typeof rr=="function"?rr(Rt):rr||b.createElement(Sn.Z,null)):null,jn=(wt==="picture-card"||wt==="picture-circle")&&Ur!=="uploading"&&b.createElement("span",{className:`${kt}-list-item-actions`},wn,Ur==="done"&&zr,Vn),{getPrefixCls:Kn}=b.useContext(Te.E_),kn=Kn(),fr=b.createElement("div",{className:ho},ro,lr,no,jn,Hr&&b.createElement(Re.default,{motionName:`${kn}-fade`,visible:Ur==="uploading",motionDeadline:2e3},Bn=>{let{className:_n}=Bn;const or="percent"in Rt?b.createElement(zn.Z,Object.assign({},On,{type:"line",percent:Rt.percent,"aria-label":Rt["aria-label"],"aria-labelledby":Rt["aria-labelledby"]})):null;return b.createElement("div",{className:Se()(`${kt}-list-item-progress`,_n)},or)})),Er=Rt.response&&typeof Rt.response=="string"?Rt.response:((Kr=Rt.error)===null||Kr===void 0?void 0:Kr.statusText)||((_r=Rt.error)===null||_r===void 0?void 0:_r.message)||ht.uploadError,$n=Ur==="error"?b.createElement(Wn.Z,{title:Er,getPopupContainer:Bn=>Bn.parentNode},fr):fr;return b.createElement("div",{className:Se()(`${kt}-list-item-container`,jt),style:gt,ref:Pt},dr?dr($n,Rt,In,{download:pr.bind(null,Rt),preview:qn.bind(null,Rt),remove:vr.bind(null,Rt)}):$n)});const Gn=(De,Pt)=>{const{listType:kt="text",previewFile:jt=_t,onPreview:gt,onDownload:ht,onRemove:wt,locale:Rt,iconRender:In,isImageUrl:On=tn,prefixCls:Nn,items:tr=[],showPreviewIcon:dr=!0,showRemoveIcon:mr=!0,showDownloadIcon:er=!1,removeIcon:Yn,previewIcon:Qn,downloadIcon:rr,extra:wr,progress:ar={size:[-1,2],showInfo:!1},appendAction:Cr,appendActionVisible:qn=!0,itemRender:pr,disabled:vr}=De,Kr=(0,Mt.Z)(),[_r,Wr]=b.useState(!1),Ur=["picture-card","picture-circle"].includes(kt);b.useEffect(()=>{kt.startsWith("picture")&&(tr||[]).forEach(Dr=>{!(Dr.originFileObj instanceof File||Dr.originFileObj instanceof Blob)||Dr.thumbUrl!==void 0||(Dr.thumbUrl="",jt==null||jt(Dr.originFileObj).then(kr=>{Dr.thumbUrl=kr||"",Kr()}))})},[kt,tr,jt]),b.useEffect(()=>{Wr(!0)},[]);const ao=(Dr,kr)=>{if(gt)return kr==null||kr.preventDefault(),gt(Dr)},Hr=Dr=>{typeof ht=="function"?ht(Dr):Dr.url&&window.open(Dr.url)},to=Dr=>{wt==null||wt(Dr)},Ir=Dr=>{if(In)return In(Dr,kt);const kr=Dr.status==="uploading";if(kt.startsWith("picture")){const lr=kt==="picture"?b.createElement(zt.Z,null):Rt.uploading,wn=On!=null&&On(Dr)?b.createElement(nn,null):b.createElement(Be,null);return kr?lr:wn}return kr?b.createElement(zt.Z,null):b.createElement(an,null)},ro=(Dr,kr,lr,wn,jn)=>{const Kn={type:"text",size:"small",title:wn,onClick:kn=>{var fr,Er;kr(),b.isValidElement(Dr)&&((Er=(fr=Dr.props).onClick)===null||Er===void 0||Er.call(fr,kn))},className:`${lr}-list-item-action`};return jn&&(Kn.disabled=vr),b.isValidElement(Dr)?b.createElement(Pn.ZP,Object.assign({},Kn,{icon:(0,cn.Tm)(Dr,Object.assign(Object.assign({},Dr.props),{onClick:()=>{}}))})):b.createElement(Pn.ZP,Object.assign({},Kn),b.createElement("span",null,Dr))};b.useImperativeHandle(Pt,()=>({handlePreview:ao,handleDownload:Hr}));const{getPrefixCls:ho}=b.useContext(Te.E_),En=ho("upload",Nn),Vn=ho(),zr=Se()(`${En}-list`,`${En}-list-${kt}`),no=b.useMemo(()=>(0,pt.Z)((0,Kt.Z)(Vn),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Vn]),vo=Object.assign(Object.assign({},Ur?{}:no),{motionDeadline:2e3,motionName:`${En}-${Ur?"animate-inline":"animate"}`,keys:(0,Fe.Z)(tr.map(Dr=>({key:Dr.uid,file:Dr}))),motionAppear:_r});return b.createElement("div",{className:zr},b.createElement(Re.CSSMotionList,Object.assign({},vo,{component:!1}),Dr=>{let{key:kr,file:lr,className:wn,style:jn}=Dr;return b.createElement(Jn,{key:kr,locale:Rt,prefixCls:En,className:wn,style:jn,file:lr,items:tr,progress:ar,listType:kt,isImgUrl:On,showPreviewIcon:dr,showRemoveIcon:mr,showDownloadIcon:er,removeIcon:Yn,previewIcon:Qn,downloadIcon:rr,extra:wr,iconRender:Ir,actionIconRender:ro,itemRender:pr,onPreview:ao,onDownload:Hr,onClose:to})}),Cr&&b.createElement(Re.default,Object.assign({},vo,{visible:qn,forceRender:!0}),Dr=>{let{className:kr,style:lr}=Dr;return(0,cn.Tm)(Cr,wn=>({className:Se()(wn.className,kr),style:Object.assign(Object.assign(Object.assign({},lr),{pointerEvents:kr?"none":void 0}),wn.style)}))}))};var cr=b.forwardRef(Gn),sn=function(De,Pt,kt,jt){function gt(ht){return ht instanceof kt?ht:new kt(function(wt){wt(ht)})}return new(kt||(kt=Promise))(function(ht,wt){function Rt(Nn){try{On(jt.next(Nn))}catch(tr){wt(tr)}}function In(Nn){try{On(jt.throw(Nn))}catch(tr){wt(tr)}}function On(Nn){Nn.done?ht(Nn.value):gt(Nn.value).then(Rt,In)}On((jt=jt.apply(De,Pt||[])).next())})};const yn=`__LIST_IGNORE_${Date.now()}__`,Hn=(De,Pt)=>{const{fileList:kt,defaultFileList:jt,onRemove:gt,showUploadList:ht=!0,listType:wt="text",onPreview:Rt,onDownload:In,onChange:On,onDrop:Nn,previewFile:tr,disabled:dr,locale:mr,iconRender:er,isImageUrl:Yn,progress:Qn,prefixCls:rr,className:wr,type:ar="select",children:Cr,style:qn,itemRender:pr,maxCount:vr,data:Kr={},multiple:_r=!1,hasControlInside:Wr=!0,action:Ur="",accept:ao="",supportServerRender:Hr=!0,rootClassName:to}=De,Ir=b.useContext(he.Z),ro=dr!=null?dr:Ir,[ho,En]=(0,Ut.Z)(jt||[],{value:kt,postState:co=>co!=null?co:[]}),[Vn,zr]=b.useState("drop"),no=b.useRef(null),vo=b.useRef(null);b.useMemo(()=>{const co=Date.now();(kt||[]).forEach((Ko,Jo)=>{!Ko.uid&&!Object.isFrozen(Ko)&&(Ko.uid=`__AUTO__${co}_${Jo}__`)})},[kt]);const Dr=(co,Ko,Jo)=>{let Co=(0,Fe.Z)(Ko),Ho=!1;vr===1?Co=Co.slice(-1):vr&&(Ho=Co.length>vr,Co=Co.slice(0,vr)),(0,fe.flushSync)(()=>{En(Co)});const Bo={file:co,fileList:Co};Jo&&(Bo.event=Jo),(!Ho||co.status==="removed"||Co.some(Zi=>Zi.uid===co.uid))&&(0,fe.flushSync)(()=>{On==null||On(Bo)})},kr=(co,Ko)=>sn(void 0,void 0,void 0,function*(){const{beforeUpload:Jo,transformFile:Co}=De;let Ho=co;if(Jo){const Bo=yield Jo(co,Ko);if(Bo===!1)return!1;if(delete co[yn],Bo===yn)return Object.defineProperty(co,yn,{value:!0,configurable:!0}),!1;typeof Bo=="object"&&Bo&&(Ho=Bo)}return Co&&(Ho=yield Co(Ho)),Ho}),lr=co=>{const Ko=co.filter(Ho=>!Ho.file[yn]);if(!Ko.length)return;const Jo=Ko.map(Ho=>Rn(Ho.file));let Co=(0,Fe.Z)(ho);Jo.forEach(Ho=>{Co=Fn(Ho,Co)}),Jo.forEach((Ho,Bo)=>{let Zi=Ho;if(Ko[Bo].parsedFile)Ho.status="uploading";else{const{originFileObj:ha}=Ho;let Wi;try{Wi=new File([ha],ha.name,{type:ha.type})}catch(Ni){Wi=new Blob([ha],{type:ha.type}),Wi.name=ha.name,Wi.lastModifiedDate=new Date,Wi.lastModified=new Date().getTime()}Wi.uid=Ho.uid,Zi=Wi}Dr(Zi,Co)})},wn=(co,Ko,Jo)=>{try{typeof co=="string"&&(co=JSON.parse(co))}catch(Bo){}if(!vn(Ko,ho))return;const Co=Rn(Ko);Co.status="done",Co.percent=100,Co.response=co,Co.xhr=Jo;const Ho=Fn(Co,ho);Dr(Co,Ho)},jn=(co,Ko)=>{if(!vn(Ko,ho))return;const Jo=Rn(Ko);Jo.status="uploading",Jo.percent=co.percent;const Co=Fn(Jo,ho);Dr(Jo,Co,co)},Kn=(co,Ko,Jo)=>{if(!vn(Jo,ho))return;const Co=Rn(Jo);Co.error=co,Co.response=Ko,Co.status="error";const Ho=Fn(Co,ho);Dr(Co,Ho)},kn=co=>{let Ko;Promise.resolve(typeof gt=="function"?gt(co):gt).then(Jo=>{var Co;if(Jo===!1)return;const Ho=Mn(co,ho);Ho&&(Ko=Object.assign(Object.assign({},co),{status:"removed"}),ho==null||ho.forEach(Bo=>{const Zi=Ko.uid!==void 0?"uid":"name";Bo[Zi]===Ko[Zi]&&!Object.isFrozen(Bo)&&(Bo.status="removed")}),(Co=no.current)===null||Co===void 0||Co.abort(Ko),Dr(Ko,Ho))})},fr=co=>{zr(co.type),co.type==="drop"&&(Nn==null||Nn(co))};b.useImperativeHandle(Pt,()=>({onBatchStart:lr,onSuccess:wn,onProgress:jn,onError:Kn,fileList:ho,upload:no.current,nativeElement:vo.current}));const{getPrefixCls:Er,direction:$n,upload:Bn}=b.useContext(Te.E_),_n=Er("upload",rr),or=Object.assign(Object.assign({onBatchStart:lr,onError:Kn,onProgress:jn,onSuccess:wn},De),{data:Kr,multiple:_r,action:Ur,accept:ao,supportServerRender:Hr,prefixCls:_n,disabled:ro,beforeUpload:kr,onChange:void 0,hasControlInside:Wr});delete or.className,delete or.style,(!Cr||ro)&&delete or.id;const eo=`${_n}-wrapper`,[Oo,bo,ko]=Ae(_n,eo),[Do]=(0,Nt.Z)("Upload",Jt.Z.Upload),{showRemoveIcon:Io,showPreviewIcon:Zo,showDownloadIcon:Lo,removeIcon:Ro,previewIcon:si,downloadIcon:xi,extra:Ii}=typeof ht=="boolean"?{}:ht,Ti=typeof Io=="undefined"?!ro:Io,Ci=(co,Ko)=>ht?b.createElement(cr,{prefixCls:_n,listType:wt,items:ho,previewFile:tr,onPreview:Rt,onDownload:In,onRemove:kn,showRemoveIcon:Ti,showPreviewIcon:Zo,showDownloadIcon:Lo,removeIcon:Ro,previewIcon:si,downloadIcon:xi,iconRender:er,extra:Ii,locale:Object.assign(Object.assign({},Do),mr),isImageUrl:Yn,progress:Qn,appendAction:co,appendActionVisible:Ko,itemRender:pr,disabled:ro}):co,oo=Se()(eo,wr,to,bo,ko,Bn==null?void 0:Bn.className,{[`${_n}-rtl`]:$n==="rtl",[`${_n}-picture-card-wrapper`]:wt==="picture-card",[`${_n}-picture-circle-wrapper`]:wt==="picture-circle"}),Xr=Object.assign(Object.assign({},Bn==null?void 0:Bn.style),qn);if(ar==="drag"){const co=Se()(bo,_n,`${_n}-drag`,{[`${_n}-drag-uploading`]:ho.some(Ko=>Ko.status==="uploading"),[`${_n}-drag-hover`]:Vn==="dragover",[`${_n}-disabled`]:ro,[`${_n}-rtl`]:$n==="rtl"});return Oo(b.createElement("span",{className:oo,ref:vo},b.createElement("div",{className:co,style:Xr,onDrop:fr,onDragOver:fr,onDragLeave:fr},b.createElement(st,Object.assign({},or,{ref:no,className:`${_n}-btn`}),b.createElement("div",{className:`${_n}-drag-container`},Cr))),Ci()))}const qo=Se()(_n,`${_n}-select`,{[`${_n}-disabled`]:ro,[`${_n}-hidden`]:!Cr}),ei=b.createElement("div",{className:qo},b.createElement(st,Object.assign({},or,{ref:no})));return Oo(wt==="picture-card"||wt==="picture-circle"?b.createElement("span",{className:oo,ref:vo},Ci(ei,!!Cr)):b.createElement("span",{className:oo,ref:vo},ei,Ci()))};var ct=b.forwardRef(Hn),It=function(De,Pt){var kt={};for(var jt in De)Object.prototype.hasOwnProperty.call(De,jt)&&Pt.indexOf(jt)<0&&(kt[jt]=De[jt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,jt=Object.getOwnPropertySymbols(De);gt<jt.length;gt++)Pt.indexOf(jt[gt])<0&&Object.prototype.propertyIsEnumerable.call(De,jt[gt])&&(kt[jt[gt]]=De[jt[gt]]);return kt},vt=b.forwardRef((De,Pt)=>{var{style:kt,height:jt,hasControlInside:gt=!1}=De,ht=It(De,["style","height","hasControlInside"]);return b.createElement(ct,Object.assign({ref:Pt,hasControlInside:gt},ht,{type:"drag",style:Object.assign(Object.assign({},kt),{height:jt})}))});const $e=ct;$e.Dragger=vt,$e.LIST_IGNORE=yn;var xt=$e},99498:function(Cn,Qt,ee){(function(b){b(ee(89780))})(function(b){b.defineOption("placeholder","",function(Ze,Pe,ce){var Xe=ce&&ce!=b.Init;if(Pe&&!Xe)Ze.on("blur",Se),Ze.on("change",ge),Ze.on("swapDoc",ge),b.on(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose=function(){qe(Ze)}),ge(Ze);else if(!Pe&&Xe){Ze.off("blur",Se),Ze.off("change",ge),Ze.off("swapDoc",ge),b.off(Ze.getInputField(),"compositionupdate",Ze.state.placeholderCompose),Fe(Ze);var we=Ze.getWrapperElement();we.className=we.className.replace(" CodeMirror-empty","")}Pe&&!Ze.hasFocus()&&Se(Ze)});function Fe(Ze){Ze.state.placeholder&&(Ze.state.placeholder.parentNode.removeChild(Ze.state.placeholder),Ze.state.placeholder=null)}function fe(Ze){Fe(Ze);var Pe=Ze.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=Ze.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var ce=Ze.getOption("placeholder");typeof ce=="string"&&(ce=document.createTextNode(ce)),Pe.appendChild(ce),Ze.display.lineSpace.insertBefore(Pe,Ze.display.lineSpace.firstChild)}function qe(Ze){setTimeout(function(){var Pe=!1,ce=Ze.getInputField();ce.nodeName=="TEXTAREA"?Pe=!ce.value:Ze.lineCount()==1&&(Pe=!/[^\u200b]/.test(ce.querySelector(".CodeMirror-line").textContent)),Pe?fe(Ze):Fe(Ze)},20)}function Se(Ze){Ee(Ze)&&fe(Ze)}function ge(Ze){var Pe=Ze.getWrapperElement(),ce=Ee(Ze);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(ce?" CodeMirror-empty":""),ce?fe(Ze):Fe(Ze)}function Ee(Ze){return Ze.lineCount()===1&&Ze.getLine(0)===""}})},25717:function(Cn,Qt,ee){(function(b){b(ee(89780))})(function(b){var Fe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},fe=b.Pos;b.defineOption("autoCloseBrackets",!1,function(je,Me,Ne){Ne&&Ne!=b.Init&&(je.removeKeyMap(Se),je.state.closeBrackets=null),Me&&(ge(qe(Me,"pairs")),je.state.closeBrackets=Me,je.addKeyMap(Se))});function qe(je,Me){return Me=="pairs"&&typeof je=="string"?je:typeof je=="object"&&je[Me]!=null?je[Me]:Fe[Me]}var Se={Backspace:Pe,Enter:ce};function ge(je){for(var Me=0;Me<je.length;Me++){var Ne=je.charAt(Me),it="'"+Ne+"'";Se[it]||(Se[it]=Ee(Ne))}}ge(Fe.pairs+"`");function Ee(je){return function(Me){return we(Me,je)}}function Ze(je){var Me=je.state.closeBrackets;if(!Me||Me.override)return Me;var Ne=je.getModeAt(je.getCursor());return Ne.closeBrackets||Me}function Pe(je){var Me=Ze(je);if(!Me||je.getOption("disableInput"))return b.Pass;for(var Ne=qe(Me,"pairs"),it=je.listSelections(),yt=0;yt<it.length;yt++){if(!it[yt].empty())return b.Pass;var Ot=St(je,it[yt].head);if(!Ot||Ne.indexOf(Ot)%2!=0)return b.Pass}for(var yt=it.length-1;yt>=0;yt--){var We=it[yt].head;je.replaceRange("",fe(We.line,We.ch-1),fe(We.line,We.ch+1),"+delete")}}function ce(je){var Me=Ze(je),Ne=Me&&qe(Me,"explode");if(!Ne||je.getOption("disableInput"))return b.Pass;for(var it=je.listSelections(),yt=0;yt<it.length;yt++){if(!it[yt].empty())return b.Pass;var Ot=St(je,it[yt].head);if(!Ot||Ne.indexOf(Ot)%2!=0)return b.Pass}je.operation(function(){var We=je.lineSeparator()||`
`;je.replaceSelection(We+We,null),je.execCommand("goCharLeft"),it=je.listSelections();for(var Ie=0;Ie<it.length;Ie++){var He=it[Ie].head.line;je.indentLine(He,null,!0),je.indentLine(He+1,null,!0)}})}function Xe(je){var Me=b.cmpPos(je.anchor,je.head)>0;return{anchor:new fe(je.anchor.line,je.anchor.ch+(Me?-1:1)),head:new fe(je.head.line,je.head.ch+(Me?1:-1))}}function we(je,Me){var Ne=Ze(je);if(!Ne||je.getOption("disableInput"))return b.Pass;var it=qe(Ne,"pairs"),yt=it.indexOf(Me);if(yt==-1)return b.Pass;for(var Ot=qe(Ne,"closeBefore"),We=qe(Ne,"triples"),Ie=it.charAt(yt+1)==Me,He=je.listSelections(),Ge=yt%2==0,Et,ut=0;ut<He.length;ut++){var et=He[ut],ot=et.head,Ce,at=je.getRange(ot,fe(ot.line,ot.ch+1));if(Ge&&!et.empty())Ce="surround";else if((Ie||!Ge)&&at==Me)Ie&&tt(je,ot)?Ce="both":We.indexOf(Me)>=0&&je.getRange(ot,fe(ot.line,ot.ch+3))==Me+Me+Me?Ce="skipThree":Ce="skip";else if(Ie&&ot.ch>1&&We.indexOf(Me)>=0&&je.getRange(fe(ot.line,ot.ch-2),ot)==Me+Me){if(ot.ch>2&&/\bstring/.test(je.getTokenTypeAt(fe(ot.line,ot.ch-2))))return b.Pass;Ce="addFour"}else if(Ie){var Ve=ot.ch==0?" ":je.getRange(fe(ot.line,ot.ch-1),ot);if(!b.isWordChar(at)&&Ve!=Me&&!b.isWordChar(Ve))Ce="both";else return b.Pass}else if(Ge&&(at.length===0||/\s/.test(at)||Ot.indexOf(at)>-1))Ce="both";else return b.Pass;if(!Et)Et=Ce;else if(Et!=Ce)return b.Pass}var de=yt%2?it.charAt(yt-1):Me,Dt=yt%2?Me:it.charAt(yt+1);je.operation(function(){if(Et=="skip")je.execCommand("goCharRight");else if(Et=="skipThree")for(var Ue=0;Ue<3;Ue++)je.execCommand("goCharRight");else if(Et=="surround"){for(var st=je.getSelections(),Ue=0;Ue<st.length;Ue++)st[Ue]=de+st[Ue]+Dt;je.replaceSelections(st,"around"),st=je.listSelections().slice();for(var Ue=0;Ue<st.length;Ue++)st[Ue]=Xe(st[Ue]);je.setSelections(st)}else Et=="both"?(je.replaceSelection(de+Dt,null),je.triggerElectric(de+Dt),je.execCommand("goCharLeft")):Et=="addFour"&&(je.replaceSelection(de+de+de+de,"before"),je.execCommand("goCharRight"))})}function St(je,Me){var Ne=je.getRange(fe(Me.line,Me.ch-1),fe(Me.line,Me.ch+1));return Ne.length==2?Ne:null}function tt(je,Me){var Ne=je.getTokenAt(fe(Me.line,Me.ch+1));return/\bstring/.test(Ne.type)&&Ne.start==Me.ch&&(Me.ch==0||!/\bstring/.test(je.getTokenTypeAt(Me)))}})},6313:function(Cn,Qt,ee){(function(b){b(ee(89780),ee(32855))})(function(b){b.defineOption("autoCloseTags",!1,function(Pe,ce,Xe){if(Xe!=b.Init&&Xe&&Pe.removeKeyMap("autoCloseTags"),!!ce){var we={name:"autoCloseTags"};(typeof ce!="object"||ce.whenClosing!==!1)&&(we["'/'"]=function(St){return ge(St)}),(typeof ce!="object"||ce.whenOpening!==!1)&&(we["'>'"]=function(St){return qe(St)}),Pe.addKeyMap(we)}});var Fe=["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 qe(Pe){if(Pe.getOption("disableInput"))return b.Pass;for(var ce=Pe.listSelections(),Xe=[],we=Pe.getOption("autoCloseTags"),St=0;St<ce.length;St++){if(!ce[St].empty())return b.Pass;var tt=ce[St].head,je=Pe.getTokenAt(tt),Me=b.innerMode(Pe.getMode(),je.state),Ne=Me.state,it=Me.mode.xmlCurrentTag&&Me.mode.xmlCurrentTag(Ne),yt=it&&it.name;if(!yt)return b.Pass;var Ot=Me.mode.configuration=="html",We=typeof we=="object"&&we.dontCloseTags||Ot&&Fe,Ie=typeof we=="object"&&we.indentTags||Ot&&fe;je.end>tt.ch&&(yt=yt.slice(0,yt.length-je.end+tt.ch));var He=yt.toLowerCase();if(!yt||je.type=="string"&&(je.end!=tt.ch||!/[\"\']/.test(je.string.charAt(je.string.length-1))||je.string.length==1)||je.type=="tag"&&it.close||je.string.indexOf("/")==tt.ch-je.start-1||We&&Ee(We,He)>-1||Ze(Pe,Me.mode.xmlCurrentContext&&Me.mode.xmlCurrentContext(Ne)||[],yt,tt,!0))return b.Pass;var Ge=typeof we=="object"&&we.emptyTags;if(Ge&&Ee(Ge,yt)>-1){Xe[St]={text:"/>",newPos:b.Pos(tt.line,tt.ch+2)};continue}var Et=Ie&&Ee(Ie,He)>-1;Xe[St]={indent:Et,text:">"+(Et?`
`:"")+"</"+yt+">",newPos:Et?b.Pos(tt.line+1,0):b.Pos(tt.line,tt.ch+1)}}for(var ut=typeof we=="object"&&we.dontIndentOnAutoClose,St=ce.length-1;St>=0;St--){var et=Xe[St];Pe.replaceRange(et.text,ce[St].head,ce[St].anchor,"+insert");var ot=Pe.listSelections().slice(0);ot[St]={head:et.newPos,anchor:et.newPos},Pe.setSelections(ot),!ut&&et.indent&&(Pe.indentLine(et.newPos.line,null,!0),Pe.indentLine(et.newPos.line+1,null,!0))}}function Se(Pe,ce){for(var Xe=Pe.listSelections(),we=[],St=ce?"/":"</",tt=Pe.getOption("autoCloseTags"),je=typeof tt=="object"&&tt.dontIndentOnSlash,Me=0;Me<Xe.length;Me++){if(!Xe[Me].empty())return b.Pass;var Ne=Xe[Me].head,it=Pe.getTokenAt(Ne),yt=b.innerMode(Pe.getMode(),it.state),Ot=yt.state;if(ce&&(it.type=="string"||it.string.charAt(0)!="<"||it.start!=Ne.ch-1))return b.Pass;var We,Ie=yt.mode.name!="xml"&&Pe.getMode().name=="htmlmixed";if(Ie&&yt.mode.name=="javascript")We=St+"script";else if(Ie&&yt.mode.name=="css")We=St+"style";else{var He=yt.mode.xmlCurrentContext&&yt.mode.xmlCurrentContext(Ot);if(!He||He.length&&Ze(Pe,He,He[He.length-1],Ne))return b.Pass;We=St+He[He.length-1]}Pe.getLine(Ne.line).charAt(it.end)!=">"&&(We+=">"),we[Me]=We}if(Pe.replaceSelections(we),Xe=Pe.listSelections(),!je)for(var Me=0;Me<Xe.length;Me++)(Me==Xe.length-1||Xe[Me].head.line<Xe[Me+1].head.line)&&Pe.indentLine(Xe[Me].head.line)}function ge(Pe){return Pe.getOption("disableInput")?b.Pass:Se(Pe,!0)}b.commands.closeTag=function(Pe){return Se(Pe)};function Ee(Pe,ce){if(Pe.indexOf)return Pe.indexOf(ce);for(var Xe=0,we=Pe.length;Xe<we;++Xe)if(Pe[Xe]==ce)return Xe;return-1}function Ze(Pe,ce,Xe,we,St){if(!b.scanForClosingTag)return!1;var tt=Math.min(Pe.lastLine()+1,we.line+500),je=b.scanForClosingTag(Pe,we,null,tt);if(!je||je.tag!=Xe)return!1;for(var Me=St?1:0,Ne=ce.length-1;Ne>=0&&ce[Ne]==Xe;Ne--)++Me;we=je.to;for(var Ne=1;Ne<Me;Ne++){var it=b.scanForClosingTag(Pe,we,null,tt);if(!it||it.tag!=Xe)return!1;we=it.to}return!0}})},32855:function(Cn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";var Fe=b.Pos;function fe(Ne,it){return Ne.line-it.line||Ne.ch-it.ch}var qe="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Se=qe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ge=new RegExp("<(/?)(["+qe+"]["+Se+"]*)","g");function Ee(Ne,it,yt,Ot){this.line=it,this.ch=yt,this.cm=Ne,this.text=Ne.getLine(it),this.min=Ot?Math.max(Ot.from,Ne.firstLine()):Ne.firstLine(),this.max=Ot?Math.min(Ot.to-1,Ne.lastLine()):Ne.lastLine()}function Ze(Ne,it){var yt=Ne.cm.getTokenTypeAt(Fe(Ne.line,it));return yt&&/\btag\b/.test(yt)}function Pe(Ne){if(!(Ne.line>=Ne.max))return Ne.ch=0,Ne.text=Ne.cm.getLine(++Ne.line),!0}function ce(Ne){if(!(Ne.line<=Ne.min))return Ne.text=Ne.cm.getLine(--Ne.line),Ne.ch=Ne.text.length,!0}function Xe(Ne){for(;;){var it=Ne.text.indexOf(">",Ne.ch);if(it==-1){if(Pe(Ne))continue;return}if(!Ze(Ne,it+1)){Ne.ch=it+1;continue}var yt=Ne.text.lastIndexOf("/",it),Ot=yt>-1&&!/\S/.test(Ne.text.slice(yt+1,it));return Ne.ch=it+1,Ot?"selfClose":"regular"}}function we(Ne){for(;;){var it=Ne.ch?Ne.text.lastIndexOf("<",Ne.ch-1):-1;if(it==-1){if(ce(Ne))continue;return}if(!Ze(Ne,it+1)){Ne.ch=it;continue}ge.lastIndex=it,Ne.ch=it;var yt=ge.exec(Ne.text);if(yt&&yt.index==it)return yt}}function St(Ne){for(;;){ge.lastIndex=Ne.ch;var it=ge.exec(Ne.text);if(!it){if(Pe(Ne))continue;return}if(!Ze(Ne,it.index+1)){Ne.ch=it.index+1;continue}return Ne.ch=it.index+it[0].length,it}}function tt(Ne){for(;;){var it=Ne.ch?Ne.text.lastIndexOf(">",Ne.ch-1):-1;if(it==-1){if(ce(Ne))continue;return}if(!Ze(Ne,it+1)){Ne.ch=it;continue}var yt=Ne.text.lastIndexOf("/",it),Ot=yt>-1&&!/\S/.test(Ne.text.slice(yt+1,it));return Ne.ch=it+1,Ot?"selfClose":"regular"}}function je(Ne,it){for(var yt=[];;){var Ot=St(Ne),We,Ie=Ne.line,He=Ne.ch-(Ot?Ot[0].length:0);if(!Ot||!(We=Xe(Ne)))return;if(We!="selfClose")if(Ot[1]){for(var Ge=yt.length-1;Ge>=0;--Ge)if(yt[Ge]==Ot[2]){yt.length=Ge;break}if(Ge<0&&(!it||it==Ot[2]))return{tag:Ot[2],from:Fe(Ie,He),to:Fe(Ne.line,Ne.ch)}}else yt.push(Ot[2])}}function Me(Ne,it){for(var yt=[];;){var Ot=tt(Ne);if(!Ot)return;if(Ot=="selfClose"){we(Ne);continue}var We=Ne.line,Ie=Ne.ch,He=we(Ne);if(!He)return;if(He[1])yt.push(He[2]);else{for(var Ge=yt.length-1;Ge>=0;--Ge)if(yt[Ge]==He[2]){yt.length=Ge;break}if(Ge<0&&(!it||it==He[2]))return{tag:He[2],from:Fe(Ne.line,Ne.ch),to:Fe(We,Ie)}}}}b.registerHelper("fold","xml",function(Ne,it){for(var yt=new Ee(Ne,it.line,0);;){var Ot=St(yt);if(!Ot||yt.line!=it.line)return;var We=Xe(yt);if(!We)return;if(!Ot[1]&&We!="selfClose"){var Ie=Fe(yt.line,yt.ch),He=je(yt,Ot[2]);return He&&fe(He.from,Ie)>0?{from:Ie,to:He.from}:null}}}),b.findMatchingTag=function(Ne,it,yt){var Ot=new Ee(Ne,it.line,it.ch,yt);if(!(Ot.text.indexOf(">")==-1&&Ot.text.indexOf("<")==-1)){var We=Xe(Ot),Ie=We&&Fe(Ot.line,Ot.ch),He=We&&we(Ot);if(!(!We||!He||fe(Ot,it)>0)){var Ge={from:Fe(Ot.line,Ot.ch),to:Ie,tag:He[2]};return We=="selfClose"?{open:Ge,close:null,at:"open"}:He[1]?{open:Me(Ot,He[2]),close:Ge,at:"close"}:(Ot=new Ee(Ne,Ie.line,Ie.ch,yt),{open:Ge,close:je(Ot,He[2]),at:"open"})}}},b.findEnclosingTag=function(Ne,it,yt,Ot){for(var We=new Ee(Ne,it.line,it.ch,yt);;){var Ie=Me(We,Ot);if(!Ie)break;var He=new Ee(Ne,it.line,it.ch,yt),Ge=je(He,Ie.tag);if(Ge)return{open:Ie,close:Ge}}},b.scanForClosingTag=function(Ne,it,yt,Ot){var We=new Ee(Ne,it.line,it.ch,Ot?{from:0,to:Ot}:null);return je(We,yt)}})},89780:function(Cn){(function(Qt,ee){Cn.exports=ee()})(this,function(){"use strict";var Qt=navigator.userAgent,ee=navigator.platform,b=/gecko\/\d/i.test(Qt),Fe=/MSIE \d/.test(Qt),fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qt),qe=/Edge\/(\d+)/.exec(Qt),Se=Fe||fe||qe,ge=Se&&(Fe?document.documentMode||6:+(qe||fe)[1]),Ee=!qe&&/WebKit\//.test(Qt),Ze=Ee&&/Qt\/\d+\.\d+/.test(Qt),Pe=!qe&&/Chrome\//.test(Qt),ce=/Opera\//.test(Qt),Xe=/Apple Computer/.test(navigator.vendor),we=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Qt),St=/PhantomJS/.test(Qt),tt=!qe&&/AppleWebKit/.test(Qt)&&/Mobile\/\w+/.test(Qt),je=/Android/.test(Qt),Me=tt||je||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Qt),Ne=tt||/Mac/.test(ee),it=/\bCrOS\b/.test(Qt),yt=/win/i.test(ee),Ot=ce&&Qt.match(/Version\/(\d*\.\d*)/);Ot&&(Ot=Number(Ot[1])),Ot&&Ot>=15&&(ce=!1,Ee=!0);var We=Ne&&(Ze||ce&&(Ot==null||Ot<12.11)),Ie=b||Se&&ge>=9;function He(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ge=function(a,y){var E=a.className,x=He(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 Et(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function ut(a,y){return Et(a).appendChild(y)}function et(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 oe=0;oe<y.length;++oe)z.appendChild(y[oe]);return z}function ot(a,y,E,x){var z=et(a,y,E,x);return z.setAttribute("role","presentation"),z}var Ce;document.createRange?Ce=function(a,y,E,x){var z=document.createRange();return z.setEnd(x||a,E),z.setStart(a,y),z}:Ce=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 at(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 Ve(){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;He(y).test(E)||(a.className+=(E?" ":"")+y)}function Dt(a,y){for(var E=a.split(" "),x=0;x<E.length;x++)E[x]&&!He(E[x]).test(y)&&(y+=" "+E[x]);return y}var Ue=function(a){a.select()};tt?Ue=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Se&&(Ue=function(a){try{a.select()}catch(y){}});function st(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function Ut(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 Te(a,y,E,x,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var oe=x||0,se=z||0;;){var pe=a.indexOf(" ",oe);if(pe<0||pe>=y)return se+(y-oe);se+=pe-oe,se+=E-se%E,oe=pe+1}}var he=function(){this.id=null,this.f=null,this.time=0,this.handler=st(this.onTimeout,this)};he.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},he.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 Nt(a,y){for(var E=0;E<a.length;++E)if(a[E]==y)return E;return-1}var Jt=50,Ft={toString:function(){return"CodeMirror.Pass"}},ye={scroll:!1},Ye={origin:"*mouse"},lt={origin:"+move"};function Xt(a,y,E){for(var x=0,z=0;;){var oe=a.indexOf(" ",x);oe==-1&&(oe=a.length);var se=oe-x;if(oe==a.length||z+se>=y)return x+Math.min(se,y-z);if(z+=oe-x,z+=E-z%E,x=oe+1,z>=y)return x}}var rt=[""];function At(a){for(;rt.length<=a;)rt.push(_e(rt)+" ");return rt[a]}function _e(a){return a[a.length-1]}function Yt(a,y){for(var E=[],x=0;x<a.length;x++)E[x]=y(a[x],x);return E}function Ct(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&&Ut(y,E),E}var te=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||te.test(a))}function ue(a,y){return y?y.source.indexOf("\\w")>-1&&ie(a)?!0:y.test(a):ie(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 xe(a){return a.charCodeAt(0)>=768&&le.test(a)}function ft(a,y,E){for(;(E<0?y>0:y<a.length)&&xe(a.charAt(y));)y+=E;return y}function Ae(a,y,E){for(var x=y>E?-1:1;;){if(y==E)return y;var z=(y+E)/2,oe=x<0?Math.ceil(z):Math.floor(z);if(oe==y)return a(oe)?y:E;a(oe)?E=oe:y=oe+x}}function Le(a,y,E,x){if(!a)return x(y,E,"ltr",0);for(var z=!1,oe=0;oe<a.length;++oe){var se=a[oe];(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",oe),z=!0)}z||x(y,E,"ltr")}var Qe=null;function nt(a,y,E){var x;Qe=null;for(var z=0;z<a.length;++z){var oe=a[z];if(oe.from<y&&oe.to>y)return z;oe.to==y&&(oe.from!=oe.to&&E=="before"?x=z:Qe=z),oe.from==y&&(oe.from!=oe.to&&E!="before"?x=z:Qe=z)}return x!=null?x:Qe}var bt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function E(ke){return ke<=247?a.charAt(ke):1424<=ke&&ke<=1524?"R":1536<=ke&&ke<=1785?y.charAt(ke-1536):1774<=ke&&ke<=2220?"r":8192<=ke&&ke<=8203?"w":ke==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,oe=/[LRr]/,se=/[Lb1n]/,pe=/[1n]/;function be(ke,Lt,Gt){this.level=ke,this.from=Lt,this.to=Gt}return function(ke,Lt){var Gt=Lt=="ltr"?"L":"R";if(ke.length==0||Lt=="ltr"&&!x.test(ke))return!1;for(var xn=ke.length,pn=[],Un=0;Un<xn;++Un)pn.push(E(ke.charCodeAt(Un)));for(var nr=0,br=Gt;nr<xn;++nr){var Tr=pn[nr];Tr=="m"?pn[nr]=br:br=Tr}for(var jr=0,Nr=Gt;jr<xn;++jr){var Yr=pn[jr];Yr=="1"&&Nr=="r"?pn[jr]="n":oe.test(Yr)&&(Nr=Yr,Yr=="r"&&(pn[jr]="R"))}for(var yo=1,fo=pn[0];yo<xn-1;++yo){var zo=pn[yo];zo=="+"&&fo=="1"&&pn[yo+1]=="1"?pn[yo]="1":zo==","&&fo==pn[yo+1]&&(fo=="1"||fo=="n")&&(pn[yo]=fo),fo=zo}for(var gi=0;gi<xn;++gi){var ra=pn[gi];if(ra==",")pn[gi]="N";else if(ra=="%"){var Ri=void 0;for(Ri=gi+1;Ri<xn&&pn[Ri]=="%";++Ri);for(var La=gi&&pn[gi-1]=="!"||Ri<xn&&pn[Ri]=="1"?"1":"N",Oa=gi;Oa<Ri;++Oa)pn[Oa]=La;gi=Ri-1}}for(var Ui=0,Da=Gt;Ui<xn;++Ui){var fa=pn[Ui];Da=="L"&&fa=="1"?pn[Ui]="L":oe.test(fa)&&(Da=fa)}for(var qi=0;qi<xn;++qi)if(z.test(pn[qi])){var Yi=void 0;for(Yi=qi+1;Yi<xn&&z.test(pn[Yi]);++Yi);for(var zi=(qi?pn[qi-1]:Gt)=="L",Ia=(Yi<xn?pn[Yi]:Gt)=="L",hs=zi==Ia?zi?"L":"R":Gt,Bl=qi;Bl<Yi;++Bl)pn[Bl]=hs;qi=Yi-1}for(var ba=[],ul,oa=0;oa<xn;)if(se.test(pn[oa])){var Eu=oa;for(++oa;oa<xn&&se.test(pn[oa]);++oa);ba.push(new be(0,Eu,oa))}else{var bl=oa,Yl=ba.length,_l=Lt=="rtl"?1:0;for(++oa;oa<xn&&pn[oa]!="L";++oa);for(var Sa=bl;Sa<oa;)if(pe.test(pn[Sa])){bl<Sa&&(ba.splice(Yl,0,new be(1,bl,Sa)),Yl+=_l);var ps=Sa;for(++Sa;Sa<oa&&pe.test(pn[Sa]);++Sa);ba.splice(Yl,0,new be(2,ps,Sa)),Yl+=_l,bl=Sa}else++Sa;bl<oa&&ba.splice(Yl,0,new be(1,bl,oa))}return Lt=="ltr"&&(ba[0].level==1&&(ul=ke.match(/^\s+/))&&(ba[0].from=ul[0].length,ba.unshift(new be(0,0,ul[0].length))),_e(ba).level==1&&(ul=ke.match(/\s+$/))&&(_e(ba).to-=ul[0].length,ba.push(new be(0,xn-ul[0].length,xn)))),Lt=="rtl"?ba.reverse():ba}}();function Oe(a,y){var E=a.order;return E==null&&(E=a.order=bt(a.text,y)),E}var Be=[],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]||Be).concat(E)}};function Zt(a,y){return a._handlers&&a._handlers[y]||Be}function qt(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 oe=Nt(z,E);oe>-1&&(x[y]=z.slice(0,oe).concat(z.slice(oe+1)))}}}function en(a,y){var E=Zt(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 Tt(a,y,E){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),en(a,E||y.type,a,y),nn(y)||y.codemirrorIgnore}function an(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)Nt(E,y[x])==-1&&E.push(y[x])}function Wt(a,y){return Zt(a,y).length>0}function Ke(a){a.prototype.on=function(y,E){zt(this,y,E)},a.prototype.off=function(y,E){qt(this,y,E)}}function mt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function $t(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function nn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Re(a){mt(a),$t(a)}function pt(a){return a.target||a.srcElement}function Mt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ne&&a.ctrlKey&&y==1&&(y=3),y}var Kt=function(){if(Se&&ge<9)return!1;var a=et("div");return"draggable"in a||"dragDrop"in a}(),cn;function Pn(a){if(cn==null){var y=et("span","\u200B");ut(a,et("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(cn=y.offsetWidth<=1&&y.offsetHeight>2&&!(Se&&ge<8))}var E=cn?et("span","\u200B"):et("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return E.setAttribute("cm-text",""),E}var Rn;function Fn(a){if(Rn!=null)return Rn;var y=ut(a,document.createTextNode("A\u062EA")),E=Ce(y,0,1).getBoundingClientRect(),x=Ce(y,1,2).getBoundingClientRect();return Et(a),!E||E.left==E.right?!1:Rn=x.right-E.right<3}var vn=`
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 oe=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),se=oe.indexOf("\r");se!=-1?(E.push(oe.slice(0,se)),y+=se+1):(E.push(oe),y=z+1)}return E}:function(a){return a.split(/\r\n?|\n/)},Mn=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},dn=function(){var a=et("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Vt=null;function tn(a){if(Vt!=null)return Vt;var y=ut(a,et("span","x")),E=y.getBoundingClientRect(),x=Ce(y,0,1).getBoundingClientRect();return Vt=Math.abs(E.left-x.left)>1}var on={},_t={};function hn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),on[a]=y}function mn(a,y){_t[a]=y}function Sn(a){if(typeof a=="string"&&_t.hasOwnProperty(a))a=_t[a];else if(a&&typeof a.name=="string"&&_t.hasOwnProperty(a.name)){var y=_t[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 Sn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Sn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function zn(a,y){y=Sn(y);var E=on[y.name];if(!E)return zn(a,"text/plain");var x=E(a,y);if(Wn.hasOwnProperty(y.name)){var z=Wn[y.name];for(var oe in z)z.hasOwnProperty(oe)&&(x.hasOwnProperty(oe)&&(x["_"+oe]=x[oe]),x[oe]=z[oe])}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 Wn={};function Zn(a,y){var E=Wn.hasOwnProperty(a)?Wn[a]:Wn[a]={};Ut(y,E)}function Jn(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 Gn(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 hr(a,y,E){return a.startState?a.startState(y,E):!0}var cr=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};cr.prototype.eol=function(){return this.pos>=this.string.length},cr.prototype.sol=function(){return this.pos==this.lineStart},cr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},cr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},cr.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},cr.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},cr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},cr.prototype.skipToEnd=function(){this.pos=this.string.length},cr.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},cr.prototype.backUp=function(a){this.pos-=a},cr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Te(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Te(this.string,this.lineStart,this.tabSize):0)},cr.prototype.indentation=function(){return Te(this.string,null,this.tabSize)-(this.lineStart?Te(this.string,this.lineStart,this.tabSize):0)},cr.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 oe=this.string.slice(this.pos).match(a);return oe&&oe.index>0?null:(oe&&y!==!1&&(this.pos+=oe[0].length),oe)}},cr.prototype.current=function(){return this.string.slice(this.start,this.pos)},cr.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},cr.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},cr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function sn(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],oe=z.chunkSize();if(y<oe){E=z;break}y-=oe}return E.lines[y]}function yn(a,y,E){var x=[],z=y.line;return a.iter(y.line,E.line+1,function(oe){var se=oe.text;z==E.line&&(se=se.slice(0,E.ch)),z==y.line&&(se=se.slice(y.ch)),x.push(se),++z}),x}function Hn(a,y,E){var x=[];return a.iter(y,E,function(z){x.push(z.text)}),x}function An(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=Nt(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 It(a,y){var E=a.first;e:do{for(var x=0;x<a.children.length;++x){var z=a.children[x],oe=z.height;if(y<oe){a=z;continue e}y-=oe,E+=z.chunkSize()}return E}while(!a.lines);for(var se=0;se<a.lines.length;++se){var pe=a.lines[se],be=pe.height;if(y<be)break;y-=be}return E+se}function ze(a,y){return y>=a.first&&y<a.first+a.size}function vt(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function $e(a,y,E){if(E===void 0&&(E=null),!(this instanceof $e))return new $e(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 De(a,y){return a.sticky==y.sticky&&xt(a,y)==0}function Pt(a){return $e(a.line,a.ch)}function kt(a,y){return xt(a,y)<0?y:a}function jt(a,y){return xt(a,y)<0?a:y}function gt(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function ht(a,y){if(y.line<a.first)return $e(a.first,0);var E=a.first+a.size-1;return y.line>E?$e(E,sn(a,E).text.length):wt(y,sn(a,y.line).text.length)}function wt(a,y){var E=a.ch;return E==null||E>y?$e(a.line,y):E<0?$e(a.line,0):a}function Rt(a,y){for(var E=[],x=0;x<y.length;x++)E[x]=ht(a,y[x]);return E}var In=function(a,y){this.state=a,this.lookAhead=y},On=function(a,y,E,x){this.state=y,this.doc=a,this.line=E,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};On.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},On.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}},On.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},On.fromSaved=function(a,y,E){return y instanceof In?new On(a,Jn(a.mode,y.state),E,y.lookAhead):new On(a,Jn(a.mode,y),E)},On.prototype.save=function(a){var y=a!==!1?Jn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new In(y,this.maxLookAhead):y};function Nn(a,y,E,x){var z=[a.state.modeGen],oe={};ar(a,y.text,a.doc.mode,E,function(ke,Lt){return z.push(ke,Lt)},oe,x);for(var se=E.state,pe=function(ke){E.baseTokens=z;var Lt=a.state.overlays[ke],Gt=1,xn=0;E.state=!0,ar(a,y.text,Lt.mode,E,function(pn,Un){for(var nr=Gt;xn<pn;){var br=z[Gt];br>pn&&z.splice(Gt,1,pn,z[Gt+1],br),Gt+=2,xn=Math.min(pn,br)}if(Un)if(Lt.opaque)z.splice(nr,Gt-nr,pn,"overlay "+Un),Gt=nr+2;else for(;nr<Gt;nr+=2){var Tr=z[nr+1];z[nr+1]=(Tr?Tr+" ":"")+"overlay "+Un}},oe),E.state=se,E.baseTokens=null,E.baseTokenPos=1},be=0;be<a.state.overlays.length;++be)pe(be);return{styles:z,classes:oe.bgClass||oe.textClass?oe:null}}function tr(a,y,E){if(!y.styles||y.styles[0]!=a.state.modeGen){var x=dr(a,ct(y)),z=y.text.length>a.options.maxHighlightLength&&Jn(a.doc.mode,x.state),oe=Nn(a,y,x);z&&(x.state=z),y.stateAfter=x.save(!z),y.styles=oe.styles,oe.classes?y.styleClasses=oe.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 dr(a,y,E){var x=a.doc,z=a.display;if(!x.mode.startState)return new On(x,!0,y);var oe=Cr(a,y,E),se=oe>x.first&&sn(x,oe-1).stateAfter,pe=se?On.fromSaved(x,se,oe):new On(x,hr(x.mode),oe);return x.iter(oe,y,function(be){mr(a,be.text,pe);var ke=pe.line;be.stateAfter=ke==y-1||ke%5==0||ke>=z.viewFrom&&ke<z.viewTo?pe.save():null,pe.nextLine()}),E&&(x.modeFrontier=pe.line),pe}function mr(a,y,E,x){var z=a.doc.mode,oe=new cr(y,a.options.tabSize,E);for(oe.start=oe.pos=x||0,y==""&&er(z,E.state);!oe.eol();)Yn(z,oe,E.state),oe.start=oe.pos}function er(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var E=Gn(a,y);if(E.mode.blankLine)return E.mode.blankLine(E.state)}}function Yn(a,y,E,x){for(var z=0;z<10;z++){x&&(x[0]=Gn(a,E).mode);var oe=a.token(y,E);if(y.pos>y.start)return oe}throw new Error("Mode "+a.name+" failed to advance stream.")}var Qn=function(a,y,E){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=E};function rr(a,y,E,x){var z=a.doc,oe=z.mode,se;y=ht(z,y);var pe=sn(z,y.line),be=dr(a,y.line,E),ke=new cr(pe.text,a.options.tabSize,be),Lt;for(x&&(Lt=[]);(x||ke.pos<y.ch)&&!ke.eol();)ke.start=ke.pos,se=Yn(oe,ke,be.state),x&&Lt.push(new Qn(ke,se,Jn(z.mode,be.state)));return x?Lt:new Qn(ke,se,be.state)}function wr(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 ar(a,y,E,x,z,oe,se){var pe=E.flattenSpans;pe==null&&(pe=a.options.flattenSpans);var be=0,ke=null,Lt=new cr(y,a.options.tabSize,x),Gt,xn=a.options.addModeClass&&[null];for(y==""&&wr(er(E,x.state),oe);!Lt.eol();){if(Lt.pos>a.options.maxHighlightLength?(pe=!1,se&&mr(a,y,x,Lt.pos),Lt.pos=y.length,Gt=null):Gt=wr(Yn(E,Lt,x.state,xn),oe),xn){var pn=xn[0].name;pn&&(Gt="m-"+(Gt?pn+" "+Gt:pn))}if(!pe||ke!=Gt){for(;be<Lt.start;)be=Math.min(Lt.start,be+5e3),z(be,ke);ke=Gt}Lt.start=Lt.pos}for(;be<Lt.pos;){var Un=Math.min(Lt.pos,be+5e3);z(Un,ke),be=Un}}function Cr(a,y,E){for(var x,z,oe=a.doc,se=E?-1:y-(a.doc.mode.innerMode?1e3:100),pe=y;pe>se;--pe){if(pe<=oe.first)return oe.first;var be=sn(oe,pe-1),ke=be.stateAfter;if(ke&&(!E||pe+(ke instanceof In?ke.lookAhead:0)<=oe.modeFrontier))return pe;var Lt=Te(be.text,null,a.options.tabSize);(z==null||x>Lt)&&(z=pe-1,x=Lt)}return z}function qn(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=sn(a,x).stateAfter;if(z&&(!(z instanceof In)||x+z.lookAhead<y)){E=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,E)}}var pr=!1,vr=!1;function Kr(){pr=!0}function _r(){vr=!0}function Wr(a,y,E){this.marker=a,this.from=y,this.to=E}function Ur(a,y){if(a)for(var E=0;E<a.length;++E){var x=a[E];if(x.marker==y)return x}}function ao(a,y){for(var E,x=0;x<a.length;++x)a[x]!=y&&(E||(E=[])).push(a[x]);return E}function Hr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function to(a,y,E){var x;if(a)for(var z=0;z<a.length;++z){var oe=a[z],se=oe.marker,pe=oe.from==null||(se.inclusiveLeft?oe.from<=y:oe.from<y);if(pe||oe.from==y&&se.type=="bookmark"&&(!E||!oe.marker.insertLeft)){var be=oe.to==null||(se.inclusiveRight?oe.to>=y:oe.to>y);(x||(x=[])).push(new Wr(se,oe.from,be?null:oe.to))}}return x}function Ir(a,y,E){var x;if(a)for(var z=0;z<a.length;++z){var oe=a[z],se=oe.marker,pe=oe.to==null||(se.inclusiveRight?oe.to>=y:oe.to>y);if(pe||oe.from==y&&se.type=="bookmark"&&(!E||oe.marker.insertLeft)){var be=oe.from==null||(se.inclusiveLeft?oe.from<=y:oe.from<y);(x||(x=[])).push(new Wr(se,be?null:oe.from-y,oe.to==null?null:oe.to-y))}}return x}function ro(a,y){if(y.full)return null;var E=ze(a,y.from.line)&&sn(a,y.from.line).markedSpans,x=ze(a,y.to.line)&&sn(a,y.to.line).markedSpans;if(!E&&!x)return null;var z=y.from.ch,oe=y.to.ch,se=xt(y.from,y.to)==0,pe=to(E,z,se),be=Ir(x,oe,se),ke=y.text.length==1,Lt=_e(y.text).length+(ke?z:0);if(pe)for(var Gt=0;Gt<pe.length;++Gt){var xn=pe[Gt];if(xn.to==null){var pn=Ur(be,xn.marker);pn?ke&&(xn.to=pn.to==null?null:pn.to+Lt):xn.to=z}}if(be)for(var Un=0;Un<be.length;++Un){var nr=be[Un];if(nr.to!=null&&(nr.to+=Lt),nr.from==null){var br=Ur(pe,nr.marker);br||(nr.from=Lt,ke&&(pe||(pe=[])).push(nr))}else nr.from+=Lt,ke&&(pe||(pe=[])).push(nr)}pe&&(pe=ho(pe)),be&&be!=pe&&(be=ho(be));var Tr=[pe];if(!ke){var jr=y.text.length-2,Nr;if(jr>0&&pe)for(var Yr=0;Yr<pe.length;++Yr)pe[Yr].to==null&&(Nr||(Nr=[])).push(new Wr(pe[Yr].marker,null,null));for(var yo=0;yo<jr;++yo)Tr.push(Nr);Tr.push(be)}return Tr}function ho(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 En(a,y,E){var x=null;if(a.iter(y.line,E.line+1,function(pn){if(pn.markedSpans)for(var Un=0;Un<pn.markedSpans.length;++Un){var nr=pn.markedSpans[Un].marker;nr.readOnly&&(!x||Nt(x,nr)==-1)&&(x||(x=[])).push(nr)}}),!x)return null;for(var z=[{from:y,to:E}],oe=0;oe<x.length;++oe)for(var se=x[oe],pe=se.find(0),be=0;be<z.length;++be){var ke=z[be];if(!(xt(ke.to,pe.from)<0||xt(ke.from,pe.to)>0)){var Lt=[be,1],Gt=xt(ke.from,pe.from),xn=xt(ke.to,pe.to);(Gt<0||!se.inclusiveLeft&&!Gt)&&Lt.push({from:ke.from,to:pe.from}),(xn>0||!se.inclusiveRight&&!xn)&&Lt.push({from:pe.to,to:ke.to}),z.splice.apply(z,Lt),be+=Lt.length-3}}return z}function Vn(a){var y=a.markedSpans;if(y){for(var E=0;E<y.length;++E)y[E].marker.detachLine(a);a.markedSpans=null}}function zr(a,y){if(y){for(var E=0;E<y.length;++E)y[E].marker.attachLine(a);a.markedSpans=y}}function no(a){return a.inclusiveLeft?-1:0}function vo(a){return a.inclusiveRight?1:0}function Dr(a,y){var E=a.lines.length-y.lines.length;if(E!=0)return E;var x=a.find(),z=y.find(),oe=xt(x.from,z.from)||no(a)-no(y);if(oe)return-oe;var se=xt(x.to,z.to)||vo(a)-vo(y);return se||y.id-a.id}function kr(a,y){var E=vr&&a.markedSpans,x;if(E)for(var z=void 0,oe=0;oe<E.length;++oe)z=E[oe],z.marker.collapsed&&(y?z.from:z.to)==null&&(!x||Dr(x,z.marker)<0)&&(x=z.marker);return x}function lr(a){return kr(a,!0)}function wn(a){return kr(a,!1)}function jn(a,y){var E=vr&&a.markedSpans,x;if(E)for(var z=0;z<E.length;++z){var oe=E[z];oe.marker.collapsed&&(oe.from==null||oe.from<y)&&(oe.to==null||oe.to>y)&&(!x||Dr(x,oe.marker)<0)&&(x=oe.marker)}return x}function Kn(a,y,E,x,z){var oe=sn(a,y),se=vr&&oe.markedSpans;if(se)for(var pe=0;pe<se.length;++pe){var be=se[pe];if(be.marker.collapsed){var ke=be.marker.find(0),Lt=xt(ke.from,E)||no(be.marker)-no(z),Gt=xt(ke.to,x)||vo(be.marker)-vo(z);if(!(Lt>=0&&Gt<=0||Lt<=0&&Gt>=0)&&(Lt<=0&&(be.marker.inclusiveRight&&z.inclusiveLeft?xt(ke.to,E)>=0:xt(ke.to,E)>0)||Lt>=0&&(be.marker.inclusiveRight&&z.inclusiveLeft?xt(ke.from,x)<=0:xt(ke.from,x)<0)))return!0}}}function kn(a){for(var y;y=lr(a);)a=y.find(-1,!0).line;return a}function fr(a){for(var y;y=wn(a);)a=y.find(1,!0).line;return a}function Er(a){for(var y,E;y=wn(a);)a=y.find(1,!0).line,(E||(E=[])).push(a);return E}function $n(a,y){var E=sn(a,y),x=kn(E);return E==x?y:ct(x)}function Bn(a,y){if(y>a.lastLine())return y;var E=sn(a,y),x;if(!_n(a,E))return y;for(;x=wn(E);)E=x.find(1,!0).line;return ct(E)+1}function _n(a,y){var E=vr&&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&&or(a,y,x))return!0}}}function or(a,y,E){if(E.to==null){var x=E.marker.find(1,!0);return or(a,x.line,Ur(x.line.markedSpans,E.marker))}if(E.marker.inclusiveRight&&E.to==y.text.length)return!0;for(var z=void 0,oe=0;oe<y.markedSpans.length;++oe)if(z=y.markedSpans[oe],z.marker.collapsed&&!z.marker.widgetNode&&z.from==E.to&&(z.to==null||z.to!=E.from)&&(z.marker.inclusiveLeft||E.marker.inclusiveRight)&&or(a,y,z))return!0}function eo(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 oe=E.parent;oe;E=oe,oe=E.parent)for(var se=0;se<oe.children.length;++se){var pe=oe.children[se];if(pe==E)break;y+=pe.height}return y}function Oo(a){if(a.height==0)return 0;for(var y=a.text.length,E,x=a;E=lr(x);){var z=E.find(0,!0);x=z.from.line,y+=z.from.ch-z.to.ch}for(x=a;E=wn(x);){var oe=E.find(0,!0);y-=x.text.length-oe.from.ch,x=oe.to.line,y+=x.text.length-oe.to.ch}return y}function bo(a){var y=a.display,E=a.doc;y.maxLine=sn(E,E.first),y.maxLineLength=Oo(y.maxLine),y.maxLineChanged=!0,E.iter(function(x){var z=Oo(x);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=x)})}var ko=function(a,y,E){this.text=a,zr(this,y),this.height=E?E(this):1};ko.prototype.lineNo=function(){return ct(this)},Ke(ko);function Do(a,y,E,x){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Vn(a),zr(a,E);var z=x?x(a):1;z!=a.height&&An(a,z)}function Io(a){a.parent=null,Vn(a)}var Zo={},Lo={};function Ro(a,y){if(!a||/^\s*$/.test(a))return null;var E=y.addModeClass?Lo:Zo;return E[a]||(E[a]=a.replace(/\S+/g,"cm-$&"))}function si(a,y){var E=ot("span",null,null,Ee?"padding-right: .1px":null),x={pre:ot("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 oe=z?y.rest[z-1]:y.line,se=void 0;x.pos=0,x.addToken=Ii,Fn(a.display.measure)&&(se=Oe(oe,a.doc.direction))&&(x.addToken=Ci(x.addToken,se)),x.map=[];var pe=y!=a.display.externalMeasured&&ct(oe);Xr(oe,x,tr(a,oe,pe)),oe.styleClasses&&(oe.styleClasses.bgClass&&(x.bgClass=Dt(oe.styleClasses.bgClass,x.bgClass||"")),oe.styleClasses.textClass&&(x.textClass=Dt(oe.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(Pn(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(Ee){var be=x.content.lastChild;(/\bcm-tab\b/.test(be.className)||be.querySelector&&be.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return en(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=Dt(x.pre.className,x.textClass||"")),x}function xi(a){var y=et("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Ii(a,y,E,x,z,oe,se){if(y){var pe=a.splitSpaces?Ti(y,a.trailingSpace):y,be=a.cm.state.specialChars,ke=!1,Lt;if(!be.test(y))a.col+=y.length,Lt=document.createTextNode(pe),a.map.push(a.pos,a.pos+y.length,Lt),Se&&ge<9&&(ke=!0),a.pos+=y.length;else{Lt=document.createDocumentFragment();for(var Gt=0;;){be.lastIndex=Gt;var xn=be.exec(y),pn=xn?xn.index-Gt:y.length-Gt;if(pn){var Un=document.createTextNode(pe.slice(Gt,Gt+pn));Se&&ge<9?Lt.appendChild(et("span",[Un])):Lt.appendChild(Un),a.map.push(a.pos,a.pos+pn,Un),a.col+=pn,a.pos+=pn}if(!xn)break;Gt+=pn+1;var nr=void 0;if(xn[0]==" "){var br=a.cm.options.tabSize,Tr=br-a.col%br;nr=Lt.appendChild(et("span",At(Tr),"cm-tab")),nr.setAttribute("role","presentation"),nr.setAttribute("cm-text"," "),a.col+=Tr}else xn[0]=="\r"||xn[0]==`
`?(nr=Lt.appendChild(et("span",xn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),nr.setAttribute("cm-text",xn[0]),a.col+=1):(nr=a.cm.options.specialCharPlaceholder(xn[0]),nr.setAttribute("cm-text",xn[0]),Se&&ge<9?Lt.appendChild(et("span",[nr])):Lt.appendChild(nr),a.col+=1);a.map.push(a.pos,a.pos+1,nr),a.pos++}}if(a.trailingSpace=pe.charCodeAt(y.length-1)==32,E||x||z||ke||oe||se){var jr=E||"";x&&(jr+=x),z&&(jr+=z);var Nr=et("span",[Lt],jr,oe);if(se)for(var Yr in se)se.hasOwnProperty(Yr)&&Yr!="style"&&Yr!="class"&&Nr.setAttribute(Yr,se[Yr]);return a.content.appendChild(Nr)}a.content.appendChild(Lt)}}function Ti(a,y){if(a.length>1&&!/ /.test(a))return a;for(var E=y,x="",z=0;z<a.length;z++){var oe=a.charAt(z);oe==" "&&E&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(oe="\xA0"),x+=oe,E=oe==" "}return x}function Ci(a,y){return function(E,x,z,oe,se,pe,be){z=z?z+" cm-force-border":"cm-force-border";for(var ke=E.pos,Lt=ke+x.length;;){for(var Gt=void 0,xn=0;xn<y.length&&(Gt=y[xn],!(Gt.to>ke&&Gt.from<=ke));xn++);if(Gt.to>=Lt)return a(E,x,z,oe,se,pe,be);a(E,x.slice(0,Gt.to-ke),z,oe,null,pe,be),oe=null,x=x.slice(Gt.to-ke),ke=Gt.to}}}function oo(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 Xr(a,y,E){var x=a.markedSpans,z=a.text,oe=0;if(!x){for(var se=1;se<E.length;se+=2)y.addToken(y,z.slice(oe,oe=E[se]),Ro(E[se+1],y.cm.options));return}for(var pe=z.length,be=0,ke=1,Lt="",Gt,xn,pn=0,Un,nr,br,Tr,jr;;){if(pn==be){Un=nr=br=xn="",jr=null,Tr=null,pn=1/0;for(var Nr=[],Yr=void 0,yo=0;yo<x.length;++yo){var fo=x[yo],zo=fo.marker;if(zo.type=="bookmark"&&fo.from==be&&zo.widgetNode)Nr.push(zo);else if(fo.from<=be&&(fo.to==null||fo.to>be||zo.collapsed&&fo.to==be&&fo.from==be)){if(fo.to!=null&&fo.to!=be&&pn>fo.to&&(pn=fo.to,nr=""),zo.className&&(Un+=" "+zo.className),zo.css&&(xn=(xn?xn+";":"")+zo.css),zo.startStyle&&fo.from==be&&(br+=" "+zo.startStyle),zo.endStyle&&fo.to==pn&&(Yr||(Yr=[])).push(zo.endStyle,fo.to),zo.title&&((jr||(jr={})).title=zo.title),zo.attributes)for(var gi in zo.attributes)(jr||(jr={}))[gi]=zo.attributes[gi];zo.collapsed&&(!Tr||Dr(Tr.marker,zo)<0)&&(Tr=fo)}else fo.from>be&&pn>fo.from&&(pn=fo.from)}if(Yr)for(var ra=0;ra<Yr.length;ra+=2)Yr[ra+1]==pn&&(nr+=" "+Yr[ra]);if(!Tr||Tr.from==be)for(var Ri=0;Ri<Nr.length;++Ri)oo(y,0,Nr[Ri]);if(Tr&&(Tr.from||0)==be){if(oo(y,(Tr.to==null?pe+1:Tr.to)-be,Tr.marker,Tr.from==null),Tr.to==null)return;Tr.to==be&&(Tr=!1)}}if(be>=pe)break;for(var La=Math.min(pe,pn);;){if(Lt){var Oa=be+Lt.length;if(!Tr){var Ui=Oa>La?Lt.slice(0,La-be):Lt;y.addToken(y,Ui,Gt?Gt+Un:Un,br,be+Ui.length==pn?nr:"",xn,jr)}if(Oa>=La){Lt=Lt.slice(La-be),be=La;break}be=Oa,br=""}Lt=z.slice(oe,oe=E[ke++]),Gt=Ro(E[ke++],y.cm.options)}}}function qo(a,y,E){this.line=y,this.rest=Er(y),this.size=this.rest?ct(_e(this.rest))-E+1:1,this.node=this.text=null,this.hidden=_n(a,y)}function ei(a,y,E){for(var x=[],z,oe=y;oe<E;oe=z){var se=new qo(a.doc,sn(a.doc,oe),oe);z=oe+se.size,x.push(se)}return x}var co=null;function Ko(a){co?co.ops.push(a):a.ownsGroup=co={ops:[a],delayedCallbacks:[]}}function Jo(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 Co(a,y){var E=a.ownsGroup;if(E)try{Jo(E)}finally{co=null,y(E)}}var Ho=null;function Bo(a,y){var E=Zt(a,y);if(E.length){var x=Array.prototype.slice.call(arguments,2),z;co?z=co.delayedCallbacks:Ho?z=Ho:(z=Ho=[],setTimeout(Zi,0));for(var oe=function(pe){z.push(function(){return E[pe].apply(null,x)})},se=0;se<E.length;++se)oe(se)}}function Zi(){var a=Ho;Ho=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 oe=y.changes[z];oe=="text"?el(a,y):oe=="gutter"?wo(a,y,E,x):oe=="class"?po(a,y):oe=="widget"&&lo(a,y,x)}y.changes=null}function Wi(a){return a.node==a.text&&(a.node=et("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Se&&ge<8&&(a.node.style.zIndex=2)),a.node}function Ni(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=Wi(y);y.background=x.insertBefore(et("div",null,E),x.firstChild),a.display.input.setUneditable(y.background)}}function cl(a,y){var E=a.display.externalMeasured;return E&&E.line==y.line?(a.display.externalMeasured=null,y.measure=E.measure,E.built):si(a,y)}function el(a,y){var E=y.text.className,x=cl(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,po(a,y)):E&&(y.text.className=E)}function po(a,y){Ni(a,y),y.line.wrapClass?Wi(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 wo(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=Wi(y);y.gutterBackground=et("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 oe=y.line.gutterMarkers;if(a.options.lineNumbers||oe){var se=Wi(y),pe=y.gutter=et("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(pe),se.insertBefore(pe,y.text),y.line.gutterClass&&(pe.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!oe||!oe["CodeMirror-linenumbers"])&&(y.lineNumber=pe.appendChild(et("div",vt(a.options,E),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),oe)for(var be=0;be<a.display.gutterSpecs.length;++be){var ke=a.display.gutterSpecs[be].className,Lt=oe.hasOwnProperty(ke)&&oe[ke];Lt&&pe.appendChild(et("div",[Lt],"CodeMirror-gutter-elt","left: "+x.gutterLeft[ke]+"px; width: "+x.gutterWidth[ke]+"px"))}}}function lo(a,y,E){y.alignable&&(y.alignable=null);for(var x=He("CodeMirror-linewidget"),z=y.node.firstChild,oe=void 0;z;z=oe)oe=z.nextSibling,x.test(z.className)&&y.node.removeChild(z);Xo(a,y,E)}function mo(a,y,E,x){var z=cl(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),po(a,y),wo(a,y,E,x),Xo(a,y,x),y.node}function Xo(a,y,E){if(ui(a,y.line,y,E,!0),y.rest)for(var x=0;x<y.rest.length;x++)ui(a,y.rest[x],y,E,!1)}function ui(a,y,E,x,z){if(y.widgets)for(var oe=Wi(E),se=0,pe=y.widgets;se<pe.length;++se){var be=pe[se],ke=et("div",[be.node],"CodeMirror-linewidget"+(be.className?" "+be.className:""));be.handleMouseEvents||ke.setAttribute("cm-ignore-events","true"),Ra(be,ke,E,x),a.display.input.setUneditable(ke),z&&be.above?oe.insertBefore(ke,E.gutter||E.text):oe.appendChild(ke),Bo(be,"redraw")}}function Ra(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 ia(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!at(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;"),ut(y.display.measure,et("div",[a.node],null,E))}return a.height=a.node.parentNode.offsetHeight}function _i(a,y){for(var E=pt(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 Mi(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=ut(a.measure,et("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 Jt-a.display.nativeBarWidth}function Ha(a){return a.display.scroller.clientWidth-pa(a)-a.display.barWidth}function _a(a){return a.display.scroller.clientHeight-pa(a)-a.display.barHeight}function Na(a,y,E){var x=a.options.lineWrapping,z=x&&Ha(a);if(!y.measure.heights||x&&y.measure.width!=z){var oe=y.measure.heights=[];if(x){y.measure.width=z;for(var se=y.text.firstChild.getClientRects(),pe=0;pe<se.length-1;pe++){var be=se[pe],ke=se[pe+1];Math.abs(be.bottom-ke.bottom)>2&&oe.push((be.bottom+ke.top)/2-E.top)}}oe.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 qo(a.doc,y,E);x.lineN=E;var z=x.built=si(a,x);return x.text=z.pre,ut(a.display.lineMeasure,z.pre),x}function Jl(a,y,E,x){return Ma(a,tl(a,y),E,x)}function ja(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=ja(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 Ma(a,y,E,x,z){y.before&&(E=-1);var oe=E+(x||""),se;return y.cache.hasOwnProperty(oe)?se=y.cache[oe]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Na(a,y.view,y.rect),y.hasHeights=!0),se=ql(a,y,E,x),se.bogus||(y.cache[oe]=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 kl(a,y,E){for(var x,z,oe,se,pe,be,ke=0;ke<a.length;ke+=3)if(pe=a[ke],be=a[ke+1],y<pe?(z=0,oe=1,se="left"):y<be?(z=y-pe,oe=z+1):(ke==a.length-3||y==be&&a[ke+3]>y)&&(oe=be-pe,z=oe-1,y>=be&&(se="right")),z!=null){if(x=a[ke+2],pe==be&&E==(x.insertLeft?"left":"right")&&(se=E),E=="left"&&z==0)for(;ke&&a[ke-2]==a[ke-3]&&a[ke-1].insertLeft;)x=a[(ke-=3)+2],se="left";if(E=="right"&&z==be-pe)for(;ke<a.length-3&&a[ke+3]==a[ke+4]&&!a[ke+5].insertLeft;)x=a[(ke+=3)+2],se="right";break}return{node:x,start:z,end:oe,collapse:se,coverStart:pe,coverEnd:be}}function Ql(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=kl(y.map,E,x),oe=z.node,se=z.start,pe=z.end,be=z.collapse,ke;if(oe.nodeType==3){for(var Lt=0;Lt<4;Lt++){for(;se&&xe(y.line.text.charAt(z.coverStart+se));)--se;for(;z.coverStart+pe<z.coverEnd&&xe(y.line.text.charAt(z.coverStart+pe));)++pe;if(Se&&ge<9&&se==0&&pe==z.coverEnd-z.coverStart?ke=oe.parentNode.getBoundingClientRect():ke=Ql(Ce(oe,se,pe).getClientRects(),x),ke.left||ke.right||se==0)break;pe=se,se=se-1,be="right"}Se&&ge<11&&(ke=Hs(a.display.measure,ke))}else{se>0&&(be=x="right");var Gt;a.options.lineWrapping&&(Gt=oe.getClientRects()).length>1?ke=Gt[x=="right"?Gt.length-1:0]:ke=oe.getBoundingClientRect()}if(Se&&ge<9&&!se&&(!ke||!ke.left&&!ke.right)){var xn=oe.parentNode.getClientRects()[0];xn?ke={left:xn.left,right:xn.left+Fa(a.display),top:xn.top,bottom:xn.bottom}:ke=vs}for(var pn=ke.top-y.rect.top,Un=ke.bottom-y.rect.top,nr=(pn+Un)/2,br=y.view.measure.heights,Tr=0;Tr<br.length-1&&!(nr<br[Tr]);Tr++);var jr=Tr?br[Tr-1]:0,Nr=br[Tr],Yr={left:(be=="right"?ke.right:ke.left)-y.rect.left,right:(be=="left"?ke.left:ke.right)-y.rect.left,top:jr,bottom:Nr};return!ke.left&&!ke.right&&(Yr.bogus=!0),a.options.singleCursorHeightPerLine||(Yr.rtop=pn,Yr.rbottom=Un),Yr}function Hs(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!tn(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 Ll(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 $a(a){a.display.externalMeasure=null,Et(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Ll(a.display.view[y])}function fl(a){$a(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 Pe&&je?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Rl(){return Pe&&je?-(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+=ia(a.widgets[E]));return y}function Al(a,y,E,x,z){if(!z){var oe=hl(y);E.top+=oe,E.bottom+=oe}if(x=="line")return E;x||(x="local");var se=eo(y);if(x=="local"?se+=Mi(a.display):se-=a.display.viewOffset,x=="page"||x=="window"){var pe=a.display.lineSpace.getBoundingClientRect();se+=pe.top+(x=="window"?0:Rl());var be=pe.left+(x=="window"?0:xl());E.left+=be,E.right+=be}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-=Rl();else if(E=="local"||!E){var oe=a.display.sizer.getBoundingClientRect();x+=oe.left,z+=oe.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=sn(a.doc,y.line)),Al(a,x,Jl(a,x,y.ch,z),E)}function aa(a,y,E,x,z,oe){x=x||sn(a.doc,y.line),z||(z=tl(a,x));function se(Un,nr){var br=Ma(a,z,Un,nr?"right":"left",oe);return nr?br.left=br.right:br.right=br.left,Al(a,x,br,E)}var pe=Oe(x,a.doc.direction),be=y.ch,ke=y.sticky;if(be>=x.text.length?(be=x.text.length,ke="before"):be<=0&&(be=0,ke="after"),!pe)return se(ke=="before"?be-1:be,ke=="before");function Lt(Un,nr,br){var Tr=pe[nr],jr=Tr.level==1;return se(br?Un-1:Un,jr!=br)}var Gt=nt(pe,be,ke),xn=Qe,pn=Lt(be,Gt,ke=="before");return xn!=null&&(pn.other=Lt(be,xn,ke!="before")),pn}function Vo(a,y){var E=0;y=ht(a.doc,y),a.options.lineWrapping||(E=Fa(a.display)*y.ch);var x=sn(a.doc,y.line),z=eo(x)+Mi(a.display);return{left:E,right:E,top:z,bottom:z+x.height}}function Eo(a,y,E,x,z){var oe=$e(a,y,E);return oe.xRel=z,x&&(oe.outside=x),oe}function Ki(a,y,E){var x=a.doc;if(E+=a.display.viewOffset,E<0)return Eo(x.first,0,null,-1,-1);var z=It(x,E),oe=x.first+x.size-1;if(z>oe)return Eo(x.first+x.size-1,sn(x,oe).text.length,null,1,1);y<0&&(y=0);for(var se=sn(x,z);;){var pe=Aa(a,se,z,y,E),be=jn(se,pe.ch+(pe.xRel>0||pe.outside>0?1:0));if(!be)return pe;var ke=be.find(1);if(ke.line==z)return ke;se=sn(x,z=ke.line)}}function la(a,y,E,x){x-=hl(y);var z=y.text.length,oe=Ae(function(se){return Ma(a,E,se-1).bottom<=x},z,0);return z=Ae(function(se){return Ma(a,E,se).top>x},oe,z),{begin:oe,end:z}}function Bi(a,y,E,x){E||(E=tl(a,y));var z=Al(a,y,Ma(a,E,x),"line").top;return la(a,y,E,z)}function Vi(a,y,E,x){return a.bottom<=E?!1:a.top>E?!0:(x?a.left:a.right)>y}function Aa(a,y,E,x,z){z-=eo(y);var oe=tl(a,y),se=hl(y),pe=0,be=y.text.length,ke=!0,Lt=Oe(y,a.doc.direction);if(Lt){var Gt=(a.options.lineWrapping?Wa:Ba)(a,y,E,oe,Lt,x,z);ke=Gt.level!=1,pe=ke?Gt.from:Gt.to-1,be=ke?Gt.to:Gt.from-1}var xn=null,pn=null,Un=Ae(function(yo){var fo=Ma(a,oe,yo);return fo.top+=se,fo.bottom+=se,Vi(fo,x,z,!1)?(fo.top<=z&&fo.left<=x&&(xn=yo,pn=fo),!0):!1},pe,be),nr,br,Tr=!1;if(pn){var jr=x-pn.left<pn.right-x,Nr=jr==ke;Un=xn+(Nr?0:1),br=Nr?"after":"before",nr=jr?pn.left:pn.right}else{!ke&&(Un==be||Un==pe)&&Un++,br=Un==0?"after":Un==y.text.length?"before":Ma(a,oe,Un-(ke?1:0)).bottom+se<=z==ke?"after":"before";var Yr=aa(a,$e(E,Un,br),"line",y,oe);nr=Yr.left,Tr=z<Yr.top?-1:z>=Yr.bottom?1:0}return Un=ft(y.text,Un,1),Eo(E,Un,br,Tr,x-nr)}function Ba(a,y,E,x,z,oe,se){var pe=Ae(function(Gt){var xn=z[Gt],pn=xn.level!=1;return Vi(aa(a,$e(E,pn?xn.to:xn.from,pn?"before":"after"),"line",y,x),oe,se,!0)},0,z.length-1),be=z[pe];if(pe>0){var ke=be.level!=1,Lt=aa(a,$e(E,ke?be.from:be.to,ke?"after":"before"),"line",y,x);Vi(Lt,oe,se,!0)&&Lt.top>se&&(be=z[pe-1])}return be}function Wa(a,y,E,x,z,oe,se){var pe=la(a,y,x,se),be=pe.begin,ke=pe.end;/\s/.test(y.text.charAt(ke-1))&&ke--;for(var Lt=null,Gt=null,xn=0;xn<z.length;xn++){var pn=z[xn];if(!(pn.from>=ke||pn.to<=be)){var Un=pn.level!=1,nr=Ma(a,x,Un?Math.min(ke,pn.to)-1:Math.max(be,pn.from)).right,br=nr<oe?oe-nr+1e9:nr-oe;(!Lt||Gt>br)&&(Lt=pn,Gt=br)}}return Lt||(Lt=z[z.length-1]),Lt.from<be&&(Lt={from:be,to:Lt.to,level:Lt.level}),Lt.to>ke&&(Lt={from:Lt.from,to:ke,level:Lt.level}),Lt}var xa;function Ca(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(xa==null){xa=et("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)xa.appendChild(document.createTextNode("x")),xa.appendChild(et("br"));xa.appendChild(document.createTextNode("x"))}ut(a.measure,xa);var E=xa.offsetHeight/50;return E>3&&(a.cachedTextHeight=E),Et(a.measure),E||1}function Fa(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=et("span","xxxxxxxxxx"),E=et("pre",[y],"CodeMirror-line-like");ut(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,oe=y.gutters.firstChild,se=0;oe;oe=oe.nextSibling,++se){var pe=a.display.gutterSpecs[se].className;E[pe]=oe.offsetLeft+oe.clientLeft+z,x[pe]=oe.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(_n(a.doc,z))return 0;var oe=0;if(z.widgets)for(var se=0;se<z.widgets.length;se++)z.widgets[se].height&&(oe+=z.widgets[se].height);return E?oe+(Math.ceil(z.text.length/x)||1)*y:oe+y}}function Cl(a){var y=a.doc,E=ys(a);y.iter(function(x){var z=E(x);z!=x.height&&An(x,z)})}function Ja(a,y,E,x){var z=a.display;if(!E&&pt(y).getAttribute("cm-not-content")=="true")return null;var oe,se,pe=z.lineSpace.getBoundingClientRect();try{oe=y.clientX-pe.left,se=y.clientY-pe.top}catch(Gt){return null}var be=Ki(a,oe,se),ke;if(x&&be.xRel>0&&(ke=sn(a.doc,be.line).text).length==be.ch){var Lt=Te(ke,ke.length,a.options.tabSize)-ke.length;be=$e(be.line,Math.max(0,Math.round((oe-Za(a.display).left)/Fa(a.display))-Lt))}return be}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)vr&&$n(a.doc,y)<z.viewTo&&Va(a);else if(E<=z.viewFrom)vr&&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 oe=Fl(a,E,E+x,1);oe?(z.view=z.view.slice(oe.index),z.viewFrom=oe.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 pe=Fl(a,y,y,-1),be=Fl(a,E,E+x,1);pe&&be?(z.view=z.view.slice(0,pe.index).concat(ei(a,pe.lineN,be.lineN)).concat(z.view.slice(be.index)),z.viewTo+=x):Va(a)}var ke=z.externalMeasured;ke&&(E<ke.lineN?ke.lineN+=x:y<ke.lineN+ke.size&&(z.externalMeasured=null))}function ol(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 oe=x.view[Ka(a,y)];if(oe.node!=null){var se=oe.changes||(oe.changes=[]);Nt(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),oe,se=a.display.view;if(!vr||E==a.doc.first+a.doc.size)return{index:z,lineN:E};for(var pe=a.display.viewFrom,be=0;be<z;be++)pe+=se[be].size;if(pe!=y){if(x>0){if(z==se.length-1)return null;oe=pe+se[z].size-y,z++}else oe=pe-y;y+=oe,E+=oe}for(;$n(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 js(a,y,E){var x=a.display,z=x.view;z.length==0||y>=x.viewTo||E<=x.viewFrom?(x.view=ei(a,y,E),x.viewFrom=y):(x.viewFrom>y?x.view=ei(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(ei(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 ru(a,y){y===void 0&&(y=!0);for(var E=a.doc,x={},z=x.cursors=document.createDocumentFragment(),oe=x.selection=document.createDocumentFragment(),se=0;se<E.sel.ranges.length;se++)if(!(!y&&se==E.sel.primIndex)){var pe=E.sel.ranges[se];if(!(pe.from().line>=a.display.viewTo||pe.to().line<a.display.viewFrom)){var be=pe.empty();(be||a.options.showCursorWhenSelecting)&&$s(a,pe.head,z),be||Ou(a,pe,oe)}}return x}function $s(a,y,E){var x=aa(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=E.appendChild(et("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 oe=E.appendChild(et("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));oe.style.display="",oe.style.left=x.other.left+"px",oe.style.top=x.other.top+"px",oe.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function zl(a,y){return a.top-y.top||a.left-y.left}function Ou(a,y,E){var x=a.display,z=a.doc,oe=document.createDocumentFragment(),se=Za(a.display),pe=se.left,be=Math.max(x.sizerWidth,Ha(a)-x.sizer.offsetLeft)-se.right,ke=z.direction=="ltr";function Lt(Nr,Yr,yo,fo){Yr<0&&(Yr=0),Yr=Math.round(Yr),fo=Math.round(fo),oe.appendChild(et("div",null,"CodeMirror-selected","position: absolute; left: "+Nr+`px;
top: `+Yr+"px; width: "+(yo==null?be-Nr:yo)+`px;
height: `+(fo-Yr)+"px"))}function Gt(Nr,Yr,yo){var fo=sn(z,Nr),zo=fo.text.length,gi,ra;function Ri(Ui,Da){return nl(a,$e(Nr,Ui),"div",fo,Da)}function La(Ui,Da,fa){var qi=Bi(a,fo,null,Ui),Yi=Da=="ltr"==(fa=="after")?"left":"right",zi=fa=="after"?qi.begin:qi.end-(/\s/.test(fo.text.charAt(qi.end-1))?2:1);return Ri(zi,Yi)[Yi]}var Oa=Oe(fo,z.direction);return Le(Oa,Yr||0,yo==null?zo:yo,function(Ui,Da,fa,qi){var Yi=fa=="ltr",zi=Ri(Ui,Yi?"left":"right"),Ia=Ri(Da-1,Yi?"right":"left"),hs=Yr==null&&Ui==0,Bl=yo==null&&Da==zo,ba=qi==0,ul=!Oa||qi==Oa.length-1;if(Ia.top-zi.top<=3){var oa=(ke?hs:Bl)&&ba,Eu=(ke?Bl:hs)&&ul,bl=oa?pe:(Yi?zi:Ia).left,Yl=Eu?be:(Yi?Ia:zi).right;Lt(bl,zi.top,Yl-bl,zi.bottom)}else{var _l,Sa,ps,Pu;Yi?(_l=ke&&hs&&ba?pe:zi.left,Sa=ke?be:La(Ui,fa,"before"),ps=ke?pe:La(Da,fa,"after"),Pu=ke&&Bl&&ul?be:Ia.right):(_l=ke?La(Ui,fa,"before"):pe,Sa=!ke&&hs&&ba?be:zi.right,ps=!ke&&Bl&&ul?pe:Ia.left,Pu=ke?La(Da,fa,"after"):be),Lt(_l,zi.top,Sa-_l,zi.bottom),zi.bottom<Ia.top&&Lt(pe,zi.bottom,null,Ia.top),Lt(ps,Ia.top,Pu-ps,Ia.bottom)}(!gi||zl(zi,gi)<0)&&(gi=zi),zl(Ia,gi)<0&&(gi=Ia),(!ra||zl(zi,ra)<0)&&(ra=zi),zl(Ia,ra)<0&&(ra=Ia)}),{start:gi,end:ra}}var xn=y.from(),pn=y.to();if(xn.line==pn.line)Gt(xn.line,xn.ch,pn.ch);else{var Un=sn(z,xn.line),nr=sn(z,pn.line),br=kn(Un)==kn(nr),Tr=Gt(xn.line,xn.ch,br?Un.text.length+1:null).end,jr=Gt(pn.line,br?0:null,pn.ch).start;br&&(Tr.top<jr.top-2?(Lt(Tr.right,Tr.top,null,Tr.bottom),Lt(pe,jr.top,jr.left,jr.bottom)):Lt(Tr.right,Tr.top,jr.left-Tr.right,Tr.bottom)),Tr.bottom<jr.top&&Lt(pe,Tr.bottom,null,jr.top)}E.appendChild(oe)}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 ou(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||(en(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(),Ee&&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&&(en(a,"blur",a,y),a.state.focused=!1,Ge(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function so(a){for(var y=a.display,E=y.lineDiv.offsetTop,x=0;x<y.view.length;x++){var z=y.view[x],oe=a.options.lineWrapping,se=void 0,pe=0;if(!z.hidden){if(Se&&ge<8){var be=z.node.offsetTop+z.node.offsetHeight;se=be-E,E=be}else{var ke=z.node.getBoundingClientRect();se=ke.bottom-ke.top,!oe&&z.text.firstChild&&(pe=z.text.firstChild.getBoundingClientRect().right-ke.left-1)}var Lt=z.line.height-se;if((Lt>.005||Lt<-.005)&&(An(z.line,se),wl(z.line),z.rest))for(var Gt=0;Gt<z.rest.length;Gt++)wl(z.rest[Gt]);if(pe>a.display.sizerWidth){var xn=Math.ceil(pe/Fa(a.display));xn>a.display.maxLineLength&&(a.display.maxLineLength=xn,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 il(a,y,E){var x=E&&E.top!=null?Math.max(0,E.top):a.scroller.scrollTop;x=Math.floor(x-Mi(a));var z=E&&E.bottom!=null?E.bottom:x+a.wrapper.clientHeight,oe=It(y,x),se=It(y,z);if(E&&E.ensure){var pe=E.ensure.from.line,be=E.ensure.to.line;pe<oe?(oe=pe,se=It(y,eo(sn(y,pe))+a.wrapper.clientHeight)):Math.min(be,y.lastLine())>=se&&(oe=It(y,eo(sn(y,be))-a.wrapper.clientHeight),se=be)}return{from:oe,to:Math.max(se,oe+1)}}function iu(a,y){if(!Tt(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&&!St){var oe=et("div","\u200B",null,`position: absolute;
top: `+(y.top-E.viewOffset-Mi(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(oe),oe.scrollIntoView(z),a.display.lineSpace.removeChild(oe)}}}function au(a,y,E,x){x==null&&(x=0);var z;!a.options.lineWrapping&&y==E&&(y=y.ch?$e(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,E=y.sticky=="before"?$e(y.line,y.ch+1,"before"):y);for(var oe=0;oe<5;oe++){var se=!1,pe=aa(a,y),be=!E||E==y?pe:aa(a,E);z={left:Math.min(pe.left,be.left),top:Math.min(pe.top,be.top)-x,right:Math.max(pe.left,be.left),bottom:Math.max(pe.bottom,be.bottom)+x};var ke=Cs(a,z),Lt=a.doc.scrollTop,Gt=a.doc.scrollLeft;if(ke.scrollTop!=null&&(ns(a,ke.scrollTop),Math.abs(a.doc.scrollTop-Lt)>1&&(se=!0)),ke.scrollLeft!=null&&(Pl(a,ke.scrollLeft),Math.abs(a.doc.scrollLeft-Gt)>1&&(se=!0)),!se)break}return z}function Du(a,y){var E=Cs(a,y);E.scrollTop!=null&&ns(a,E.scrollTop),E.scrollLeft!=null&&Pl(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,oe=_a(a),se={};y.bottom-y.top>oe&&(y.bottom=y.top+oe);var pe=a.doc.height+Ta(E),be=y.top<x,ke=y.bottom>pe-x;if(y.top<z)se.scrollTop=be?0:y.top;else if(y.bottom>z+oe){var Lt=Math.min(y.top,(ke?pe:y.bottom)-oe);Lt!=z&&(se.scrollTop=Lt)}var Gt=a.options.fixedGutter?0:E.gutters.offsetWidth,xn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:E.scroller.scrollLeft-Gt,pn=Ha(a)-E.gutters.offsetWidth,Un=y.right-y.left>pn;return Un&&(y.right=y.left+pn),y.left<10?se.scrollLeft=0:y.left<xn?se.scrollLeft=Math.max(0,y.left+Gt-(Un?0:10)):y.right>pn+xn-3&&(se.scrollLeft=y.right+(Un?0:10)-pn),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 lu(a,y){Ss(a),a.curOp.scrollToPos=y}function Ss(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var E=Vo(a,y.from),x=Vo(a,y.to);Xs(a,E,x,y.margin)}}function Xs(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),$l(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 Pl(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,Je(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 Ol=function(a,y,E){this.cm=E;var x=this.vert=et("div",[et("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=et("div",[et("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,Se&&ge<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ol.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 oe=a.viewWidth-a.barLeft-(E?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+oe)+"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}},Ol.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ol.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ol.prototype.zeroWidthHack=function(){var a=Ne&&!we?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new he,this.disableVert=new he},Ol.prototype.enableZeroWidthBar=function(a,y,E){a.style.pointerEvents="auto";function x(){var z=a.getBoundingClientRect(),oe=E=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);oe!=a?a.style.pointerEvents="none":y.set(1e3,x)}y.set(1e3,x)},Ol.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Hl=function(){};Hl.prototype.update=function(){return{bottom:0,right:0}},Hl.prototype.setScrollLeft=function(){},Hl.prototype.setScrollTop=function(){},Hl.prototype.clear=function(){};function jl(a,y){y||(y=Zl(a));var E=a.display.barWidth,x=a.display.barHeight;Us(a,y);for(var z=0;z<4&&E!=a.display.barWidth||x!=a.display.barHeight;z++)E!=a.display.barWidth&&a.options.lineWrapping&&so(a),Us(a,Zl(a)),E=a.display.barWidth,x=a.display.barHeight}function Us(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 su={native:Ol,null:Hl};function Ys(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ge(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new su[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"?Pl(a,y):ns(a,y)},a),a.display.scrollbars.addClass&&de(a.display.wrapper,a.display.scrollbars.addClass)}var Iu=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:++Iu},Ko(a.curOp)}function Dl(a){var y=a.curOp;y&&Co(y,function(E){for(var x=0;x<E.ops.length;x++)E.ops[x].cm.curOp=null;uu(E)})}function uu(a){for(var y=a.ops,E=0;E<y.length;E++)Tu(y[E]);for(var x=0;x<y.length;x++)cu(y[x]);for(var z=0;z<y.length;z++)Nu(y[z]);for(var oe=0;oe<y.length;oe++)du(y[oe]);for(var se=0;se<y.length;se++)Mu(y[se])}function Tu(a){var y=a.cm,E=y.display;fu(y),a.updateMaxLine&&bo(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 cu(a){a.updatedDisplay=a.mustUpdate&&ws(a.cm,a.update)}function Nu(a){var y=a.cm,E=y.display;a.updatedDisplay&&so(y),a.barMeasure=Zl(y),E.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=Jl(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-Ha(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=E.input.prepareSelection())}function du(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Pl(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var E=a.focus&&a.focus==Ve();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,E),(a.updatedDisplay||a.startHeight!=y.doc.height)&&jl(y,a.barMeasure),a.updatedDisplay&&me(y,a.barMeasure),a.selectionChanged&&xs(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),E&&ou(a.cm)}function Mu(a){var y=a.cm,E=y.display,x=y.doc;if(a.updatedDisplay&&Xa(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&&Pl(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=au(y,ht(x,a.scrollToPos.from),ht(x,a.scrollToPos.to),a.scrollToPos.margin);iu(y,z)}var oe=a.maybeHiddenMarkers,se=a.maybeUnhiddenMarkers;if(oe)for(var pe=0;pe<oe.length;++pe)oe[pe].lines.length||en(oe[pe],"hide");if(se)for(var be=0;be<se.length;++be)se[be].lines.length&&en(se[be],"unhide");E.wrapper.offsetHeight&&(x.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&en(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{Dl(a)}}function Ji(a,y){return function(){if(a.curOp)return y.apply(a,arguments);ml(a);try{return y.apply(a,arguments)}finally{Dl(a)}}}function ua(a){return function(){if(this.curOp)return a.apply(this,arguments);ml(this);try{return a.apply(this,arguments)}finally{Dl(this)}}}function Xi(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{Dl(y)}}}function $l(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,st(_s,a))}function _s(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var E=+new Date+a.options.workTime,x=dr(a,y.highlightFrontier),z=[];y.iter(x.line,Math.min(y.first+y.size,a.display.viewTo+500),function(oe){if(x.line>=a.display.viewFrom){var se=oe.styles,pe=oe.text.length>a.options.maxHighlightLength?Jn(y.mode,x.state):null,be=Nn(a,oe,x,!0);pe&&(x.state=pe),oe.styles=be.styles;var ke=oe.styleClasses,Lt=be.classes;Lt?oe.styleClasses=Lt:ke&&(oe.styleClasses=null);for(var Gt=!se||se.length!=oe.styles.length||ke!=Lt&&(!ke||!Lt||ke.bgClass!=Lt.bgClass||ke.textClass!=Lt.textClass),xn=0;!Gt&&xn<se.length;++xn)Gt=se[xn]!=oe.styles[xn];Gt&&z.push(x.line),oe.stateAfter=x.save(),x.nextLine()}else oe.text.length<=a.options.maxHighlightLength&&mr(a,oe.text,x),oe.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>E)return $l(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),z.length&&ma(a,function(){for(var oe=0;oe<z.length;oe++)ol(a,z[oe],"text")})}}var rs=function(a,y,E){var x=a.display;this.viewport=y,this.visible=il(x,a.doc,y),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=Ha(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++)en.apply(null,this.events[a])};function fu(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 hu(a){if(a.hasFocus())return null;var y=Ve();if(!y||!at(a.display.lineDiv,y))return null;var E={activeElt:y};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&at(a.display.lineDiv,x.anchorNode)&&(E.anchorNode=x.anchorNode,E.anchorOffset=x.anchorOffset,E.focusNode=x.focusNode,E.focusOffset=x.focusOffset)}return E}function pu(a){if(!(!a||!a.activeElt||a.activeElt==Ve())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&at(document.body,a.anchorNode)&&at(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;dt(a)&&(Va(a),y.dims=rl(a));var z=x.first+x.size,oe=Math.max(y.visible.from-a.options.viewportMargin,x.first),se=Math.min(z,y.visible.to+a.options.viewportMargin);E.viewFrom<oe&&oe-E.viewFrom<20&&(oe=Math.max(x.first,E.viewFrom)),E.viewTo>se&&E.viewTo-se<20&&(se=Math.min(z,E.viewTo)),vr&&(oe=$n(a.doc,oe),se=Bn(a.doc,se));var pe=oe!=E.viewFrom||se!=E.viewTo||E.lastWrapHeight!=y.wrapperHeight||E.lastWrapWidth!=y.wrapperWidth;js(a,oe,se),E.viewOffset=eo(sn(a.doc,E.viewFrom)),a.display.mover.style.top=E.viewOffset+"px";var be=bs(a);if(!pe&&be==0&&!y.force&&E.renderedView==E.view&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo))return!1;var ke=hu(a);return be>4&&(E.lineDiv.style.display="none"),mu(a,E.updateLineNumbers,y.dims),be>4&&(E.lineDiv.style.display=""),E.renderedView=E.view,pu(ke),Et(E.cursorDiv),Et(E.selectionDiv),E.gutters.style.height=E.sizer.style.minHeight=0,pe&&(E.lastWrapHeight=y.wrapperHeight,E.lastWrapWidth=y.wrapperWidth,$l(a,400)),E.updateLineNumbers=null,!0}function Xa(a,y){for(var E=y.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||y.oldDisplayWidth==Ha(a)){if(E&&E.top!=null&&(E={top:Math.min(a.doc.height+Ta(a.display)-_a(a),E.top)}),y.visible=il(a.display,a.doc,E),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else x&&(y.visible=il(a.display,a.doc,E));if(!ws(a,y))break;so(a);var z=Zl(a);pl(a),jl(a,z),me(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)){so(a),Xa(a,E);var x=Zl(a);pl(a),jl(a,x),me(a,x),E.finish()}}function mu(a,y,E){var x=a.display,z=a.options.lineNumbers,oe=x.lineDiv,se=oe.firstChild;function pe(Un){var nr=Un.nextSibling;return Ee&&Ne&&a.display.currentWheelTarget==Un?Un.style.display="none":Un.parentNode.removeChild(Un),nr}for(var be=x.view,ke=x.viewFrom,Lt=0;Lt<be.length;Lt++){var Gt=be[Lt];if(!Gt.hidden)if(!Gt.node||Gt.node.parentNode!=oe){var xn=mo(a,Gt,ke,E);oe.insertBefore(xn,se)}else{for(;se!=Gt.node;)se=pe(se);var pn=z&&y!=null&&y<=ke&&Gt.lineNumber;Gt.changes&&(Nt(Gt.changes,"gutter")>-1&&(pn=!1),ha(a,Gt,ke,E)),pn&&(Et(Gt.lineNumber),Gt.lineNumber.appendChild(document.createTextNode(vt(a.options,ke)))),se=Gt.node.nextSibling}ke+=Gt.size}for(;se;)se=pe(se)}function ve(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function me(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 Je(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,oe=x+"px",se=0;se<E.length;se++)if(!E[se].hidden){a.options.fixedGutter&&(E[se].gutter&&(E[se].gutter.style.left=oe),E[se].gutterBackground&&(E[se].gutterBackground.style.left=oe));var pe=E[se].alignable;if(pe)for(var be=0;be<pe.length;be++)pe[be].style.left=oe}a.options.fixedGutter&&(y.gutters.style.left=x+z+"px")}}function dt(a){if(!a.options.lineNumbers)return!1;var y=a.doc,E=vt(a.options,y.first+y.size-1),x=a.display;if(E.length!=x.lineNumChars){var z=x.measure.appendChild(et("div",[et("div",E)],"CodeMirror-linenumber CodeMirror-gutter-elt")),oe=z.firstChild.offsetWidth,se=z.offsetWidth-oe;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(oe,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 Bt(a,y){for(var E=[],x=!1,z=0;z<a.length;z++){var oe=a[z],se=null;if(typeof oe!="string"&&(se=oe.style,oe=oe.className),oe=="CodeMirror-linenumbers")if(y)x=!0;else continue;E.push({className:oe,style:se})}return y&&!x&&E.push({className:"CodeMirror-linenumbers",style:null}),E}function Ht(a){var y=a.gutters,E=a.gutterSpecs;Et(y),a.lineGutter=null;for(var x=0;x<E.length;++x){var z=E[x],oe=z.className,se=z.style,pe=y.appendChild(et("div",null,"CodeMirror-gutter "+oe));se&&(pe.style.cssText=se),oe=="CodeMirror-linenumbers"&&(a.lineGutter=pe,pe.style.width=(a.lineNumWidth||1)+"px")}y.style.display=E.length?"":"none",ve(a)}function ln(a){Ht(a.display),sa(a),Je(a)}function rn(a,y,E,x){var z=this;this.input=E,z.scrollbarFiller=et("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=et("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=ot("div",null,"CodeMirror-code"),z.selectionDiv=et("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=et("div",null,"CodeMirror-cursors"),z.measure=et("div",null,"CodeMirror-measure"),z.lineMeasure=et("div",null,"CodeMirror-measure"),z.lineSpace=ot("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var oe=ot("div",[z.lineSpace],"CodeMirror-lines");z.mover=et("div",[oe],null,"position: relative"),z.sizer=et("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=et("div",null,null,"position: absolute; height: "+Jt+"px; width: 1px;"),z.gutters=et("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=et("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=et("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Se&&ge<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!Ee&&!(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=Bt(x.gutters,x.lineNumbers),Ht(z),E.init(z)}var fn=0,un=null;Se?un=-.53:b?un=15:Pe?un=-.7:Xe&&(un=-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 Tn(a){var y=Ln(a);return y.x*=un,y.y*=un,y}function Dn(a,y){var E=Ln(y),x=E.x,z=E.y,oe=a.display,se=oe.scroller,pe=se.scrollWidth>se.clientWidth,be=se.scrollHeight>se.clientHeight;if(x&&pe||z&&be){if(z&&Ne&&Ee){e:for(var ke=y.target,Lt=oe.view;ke!=se;ke=ke.parentNode)for(var Gt=0;Gt<Lt.length;Gt++)if(Lt[Gt].node==ke){a.display.currentWheelTarget=ke;break e}}if(x&&!b&&!ce&&un!=null){z&&be&&ns(a,Math.max(0,se.scrollTop+z*un)),Pl(a,Math.max(0,se.scrollLeft+x*un)),(!z||z&&be)&&mt(y),oe.wheelStartX=null;return}if(z&&un!=null){var xn=z*un,pn=a.doc.scrollTop,Un=pn+oe.wrapper.clientHeight;xn<0?pn=Math.max(0,pn+xn-50):Un=Math.min(a.doc.height,Un+xn+50),Es(a,{top:pn,bottom:Un})}fn<20&&(oe.wheelStartX==null?(oe.wheelStartX=se.scrollLeft,oe.wheelStartY=se.scrollTop,oe.wheelDX=x,oe.wheelDY=z,setTimeout(function(){if(oe.wheelStartX!=null){var nr=se.scrollLeft-oe.wheelStartX,br=se.scrollTop-oe.wheelStartY,Tr=br&&oe.wheelDY&&br/oe.wheelDY||nr&&oe.wheelDX&&nr/oe.wheelDX;oe.wheelStartX=oe.wheelStartY=null,Tr&&(un=(un*fn+Tr)/(fn+1),++fn)}},200)):(oe.wheelDX+=x,oe.wheelDY+=z))}}var bn=function(a,y){this.ranges=a,this.primIndex=y};bn.prototype.primary=function(){return this.ranges[this.primIndex]},bn.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(!De(E.anchor,x.anchor)||!De(E.head,x.head))return!1}return!0},bn.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new gn(Pt(this.ranges[y].anchor),Pt(this.ranges[y].head));return new bn(a,this.primIndex)},bn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},bn.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 gn=function(a,y){this.anchor=a,this.head=y};gn.prototype.from=function(){return jt(this.anchor,this.head)},gn.prototype.to=function(){return kt(this.anchor,this.head)},gn.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(xn,pn){return xt(xn.from(),pn.from())}),E=Nt(y,z);for(var oe=1;oe<y.length;oe++){var se=y[oe],pe=y[oe-1],be=xt(pe.to(),se.from());if(x&&!se.empty()?be>0:be>=0){var ke=jt(pe.from(),se.from()),Lt=kt(pe.to(),se.to()),Gt=pe.empty()?se.from()==se.head:pe.from()==pe.head;oe<=E&&--E,y.splice(--oe,2,new gn(Gt?Lt:ke,Gt?ke:Lt))}}return new bn(y,E)}function Xn(a,y){return new bn([new gn(a,y||a)],0)}function sr(a){return a.text?$e(a.from.line+a.text.length-1,_e(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function gr(a,y){if(xt(a,y.from)<0)return a;if(xt(a,y.to)<=0)return sr(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+=sr(y).ch-y.to.ch),$e(E,x)}function ur(a,y){for(var E=[],x=0;x<a.sel.ranges.length;x++){var z=a.sel.ranges[x];E.push(new gn(gr(z.anchor,y),gr(z.head,y)))}return ir(a.cm,E,a.sel.primIndex)}function xr(a,y,E){return a.line==y.line?$e(E.line,a.ch-y.ch+E.ch):$e(E.line+(a.line-y.line),a.ch)}function Or(a,y,E){for(var x=[],z=$e(a.first,0),oe=z,se=0;se<y.length;se++){var pe=y[se],be=xr(pe.from,z,oe),ke=xr(sr(pe),z,oe);if(z=pe.to,oe=ke,E=="around"){var Lt=a.sel.ranges[se],Gt=xt(Lt.head,Lt.anchor)<0;x[se]=new gn(Gt?ke:be,Gt?be:ke)}else x[se]=new gn(be,be)}return new bn(x,a.sel.primIndex)}function Rr(a){a.doc.mode=zn(a.options,a.doc.modeOption),Mr(a)}function Mr(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,$l(a,100),a.state.modeGen++,a.curOp&&sa(a)}function xo(a,y){return y.from.ch==0&&y.to.ch==0&&_e(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Qr(a,y,E,x){function z(jr){return E?E[jr]:null}function oe(jr,Nr,Yr){Do(jr,Nr,Yr,x),Bo(jr,"change",jr,y)}function se(jr,Nr){for(var Yr=[],yo=jr;yo<Nr;++yo)Yr.push(new ko(ke[yo],z(yo),x));return Yr}var pe=y.from,be=y.to,ke=y.text,Lt=sn(a,pe.line),Gt=sn(a,be.line),xn=_e(ke),pn=z(ke.length-1),Un=be.line-pe.line;if(y.full)a.insert(0,se(0,ke.length)),a.remove(ke.length,a.size-ke.length);else if(xo(a,y)){var nr=se(0,ke.length-1);oe(Gt,Gt.text,pn),Un&&a.remove(pe.line,Un),nr.length&&a.insert(pe.line,nr)}else if(Lt==Gt)if(ke.length==1)oe(Lt,Lt.text.slice(0,pe.ch)+xn+Lt.text.slice(be.ch),pn);else{var br=se(1,ke.length-1);br.push(new ko(xn+Lt.text.slice(be.ch),pn,x)),oe(Lt,Lt.text.slice(0,pe.ch)+ke[0],z(0)),a.insert(pe.line+1,br)}else if(ke.length==1)oe(Lt,Lt.text.slice(0,pe.ch)+ke[0]+Gt.text.slice(be.ch),z(0)),a.remove(pe.line+1,Un);else{oe(Lt,Lt.text.slice(0,pe.ch)+ke[0],z(0)),oe(Gt,xn+Gt.text.slice(be.ch),pn);var Tr=se(1,ke.length-1);Un>1&&a.remove(pe.line+1,Un-1),a.insert(pe.line+1,Tr)}Bo(a,"change",a,y)}function Vr(a,y,E){function x(z,oe,se){if(z.linked)for(var pe=0;pe<z.linked.length;++pe){var be=z.linked[pe];if(be.doc!=oe){var ke=se&&be.sharedHist;E&&!ke||(y(be.doc,ke),x(be.doc,z,ke))}}}x(a,null,!0)}function uo(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Cl(a),Rr(a),Ar(a),a.options.lineWrapping||bo(a),a.options.mode=y.modeOption,sa(a)}function Ar(a){(a.doc.direction=="rtl"?de:Ge)(a.display.lineDiv,"CodeMirror-rtl")}function Fr(a){ma(a,function(){Ar(a),sa(a)})}function Sr(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 yr(a,y){var E={from:Pt(y.from),to:sr(y),text:yn(a,y.from,y.to)};return yi(a,E,y.from.line,y.to.line+1),Vr(a,function(x){return yi(x,E,y.from.line,y.to.line+1)},!0),E}function Lr(a){for(;a.length;){var y=_e(a);if(y.ranges)a.pop();else break}}function Zr(a,y){if(y)return Lr(a.done),_e(a.done);if(a.done.length&&!_e(a.done).ranges)return _e(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),_e(a.done)}function qr(a,y,E,x){var z=a.history;z.undone.length=0;var oe=+new Date,se,pe;if((z.lastOp==x||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>oe-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(se=Zr(z,z.lastOp==x)))pe=_e(se.changes),xt(y.from,y.to)==0&&xt(y.from,pe.to)==0?pe.to=sr(y):se.changes.push(yr(a,y));else{var be=_e(z.done);for((!be||!be.ranges)&&To(a.sel,z.done),se={changes:[yr(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=oe,z.lastOp=z.lastSelOp=x,z.lastOrigin=z.lastSelOrigin=y.origin,pe||en(a,"historyAdded")}function Pr(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 Po(a,y,E,x){var z=a.history,oe=x&&x.origin;E==z.lastSelOp||oe&&z.lastSelOrigin==oe&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==oe||Pr(a,oe,_e(z.done),y))?z.done[z.done.length-1]=y:To(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=oe,z.lastSelOp=E,x&&x.clearRedo!==!1&&Lr(z.undone)}function To(a,y){var E=_e(y);E&&E.ranges&&E.equals(a)||y.push(a)}function yi(a,y,E,x){var z=y["spans_"+a.id],oe=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]={}))[oe]=se.markedSpans),++oe})}function fi(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 oi(a,y){var E=y["spans_"+a.id];if(!E)return null;for(var x=[],z=0;z<y.text.length;++z)x.push(fi(E[z]));return x}function hi(a,y){var E=oi(a,y),x=ro(a,y);if(!E)return x;if(!x)return E;for(var z=0;z<E.length;++z){var oe=E[z],se=x[z];if(oe&&se)e:for(var pe=0;pe<se.length;++pe){for(var be=se[pe],ke=0;ke<oe.length;++ke)if(oe[ke].marker==be.marker)continue e;oe.push(be)}else se&&(E[z]=se)}return E}function Si(a,y,E){for(var x=[],z=0;z<a.length;++z){var oe=a[z];if(oe.ranges){x.push(E?bn.prototype.deepCopy.call(oe):oe);continue}var se=oe.changes,pe=[];x.push({changes:pe});for(var be=0;be<se.length;++be){var ke=se[be],Lt=void 0;if(pe.push({from:ke.from,to:ke.to,text:ke.text}),y)for(var Gt in ke)(Lt=Gt.match(/^spans_(\d+)$/))&&Nt(y,Number(Lt[1]))>-1&&(_e(pe)[Gt]=ke[Gt],delete ke[Gt])}}return x}function No(a,y,E,x){if(x){var z=a.anchor;if(E){var oe=xt(y,z)<0;oe!=xt(E,z)<0?(z=y,y=E):oe!=xt(y,E)<0&&(y=E)}return new gn(z,y)}else return new gn(E||y,y)}function Mo(a,y,E,x,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),Br(a,new bn([No(a.sel.primary(),y,E,z)],0),x)}function wi(a,y,E){for(var x=[],z=a.cm&&(a.cm.display.shift||a.extend),oe=0;oe<a.sel.ranges.length;oe++)x[oe]=No(a.sel.ranges[oe],y[oe],null,z);var se=ir(a.cm,x,a.sel.primIndex);Br(a,se,E)}function ki(a,y,E,x){var z=a.sel.ranges.slice(0);z[y]=E,Br(a,ir(a.cm,z,a.sel.primIndex),x)}function Gr(a,y,E,x){Br(a,Xn(y,E),x)}function go(a,y,E){var x={ranges:y.ranges,update:function(z){this.ranges=[];for(var oe=0;oe<z.length;oe++)this.ranges[oe]=new gn(ht(a,z[oe].anchor),ht(a,z[oe].head))},origin:E&&E.origin};return en(a,"beforeSelectionChange",a,x),a.cm&&en(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=_e(x);z&&z.ranges?(x[x.length-1]=y,Fo(a,y,E)):Br(a,y,E)}function Br(a,y,E){Fo(a,y,E),Po(a,a.sel,a.cm?a.cm.curOp.id:NaN,E)}function Fo(a,y,E){(Wt(a,"beforeSelectionChange")||a.cm&&Wt(a.cm,"beforeSelectionChange"))&&(y=go(a,y,E));var x=E&&E.bias||(xt(y.primary().head,a.sel.primary().head)<0?-1:1);Go(a,ni(a,y,x,!0)),!(E&&E.scroll===!1)&&a.cm&&El(a.cm)}function Go(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,an(a.cm)),Bo(a,"cursorActivity",a))}function ci(a){Go(a,ni(a,a.sel,null,!1))}function ni(a,y,E,x){for(var z,oe=0;oe<y.ranges.length;oe++){var se=y.ranges[oe],pe=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[oe],be=Ai(a,se.anchor,pe&&pe.anchor,E,x),ke=Ai(a,se.head,pe&&pe.head,E,x);(z||be!=se.anchor||ke!=se.head)&&(z||(z=y.ranges.slice(0,oe)),z[oe]=new gn(be,ke))}return z?ir(a.cm,z,y.primIndex):y}function Ei(a,y,E,x,z){var oe=sn(a,y.line);if(oe.markedSpans)for(var se=0;se<oe.markedSpans.length;++se){var pe=oe.markedSpans[se],be=pe.marker,ke="selectLeft"in be?!be.selectLeft:be.inclusiveLeft,Lt="selectRight"in be?!be.selectRight:be.inclusiveRight;if((pe.from==null||(ke?pe.from<=y.ch:pe.from<y.ch))&&(pe.to==null||(Lt?pe.to>=y.ch:pe.to>y.ch))){if(z&&(en(be,"beforeCursorEnter"),be.explicitlyCleared))if(oe.markedSpans){--se;continue}else break;if(!be.atomic)continue;if(E){var Gt=be.find(x<0?1:-1),xn=void 0;if((x<0?Lt:ke)&&(Gt=Jr(a,Gt,-x,Gt&&Gt.line==y.line?oe:null)),Gt&&Gt.line==y.line&&(xn=xt(Gt,E))&&(x<0?xn<0:xn>0))return Ei(a,Gt,y,x,z)}var pn=be.find(x<0?-1:1);return(x<0?ke:Lt)&&(pn=Jr(a,pn,x,pn.line==y.line?oe:null)),pn?Ei(a,pn,y,x,z):null}}return y}function Ai(a,y,E,x,z){var oe=x||1,se=Ei(a,y,E,oe,z)||!z&&Ei(a,y,E,oe,!0)||Ei(a,y,E,-oe,z)||!z&&Ei(a,y,E,-oe,!0);return se||(a.cantEdit=!0,$e(a.first,0))}function Jr(a,y,E,x){return E<0&&y.ch==0?y.line>a.first?ht(a,$e(y.line-1)):null:E>0&&y.ch==(x||sn(a,y.line)).text.length?y.line<a.first+a.size-1?$e(y.line+1,0):null:new $e(y.line,y.ch+E)}function io(a){a.setSelection($e(a.firstLine(),0),$e(a.lastLine()),ye)}function Yo(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,oe,se,pe){z&&(x.from=ht(a,z)),oe&&(x.to=ht(a,oe)),se&&(x.text=se),pe!==void 0&&(x.origin=pe)}),en(a,"beforeChange",a,x),a.cm&&en(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 ti(a,y,E){if(a.cm){if(!a.cm.curOp)return Ji(a.cm,ti)(a,y,E);if(a.cm.state.suppressEdits)return}if(!((Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"))&&(y=Yo(a,y,!0),!y))){var x=pr&&!E&&En(a,y.from,y.to);if(x)for(var z=x.length-1;z>=0;--z)Qo(a,{from:x[z].from,to:x[z].to,text:z?[""]:y.text,origin:y.origin});else Qo(a,y)}}function Qo(a,y){if(!(y.text.length==1&&y.text[0]==""&&xt(y.from,y.to)==0)){var E=ur(a,y);qr(a,y,E,a.cm?a.cm.curOp.id:NaN),va(a,y,E,ro(a,y));var x=[];Vr(a,function(z,oe){!oe&&Nt(x,z.history)==-1&&(Fi(z.history,y),x.push(z.history)),va(z,y,null,ro(z,y))})}}function Hi(a,y,E){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!E)){for(var z=a.history,oe,se=a.sel,pe=y=="undo"?z.done:z.undone,be=y=="undo"?z.undone:z.done,ke=0;ke<pe.length&&(oe=pe[ke],!(E?oe.ranges&&!oe.equals(a.sel):!oe.ranges));ke++);if(ke!=pe.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(oe=pe.pop(),oe.ranges){if(To(oe,be),E&&!oe.equals(a.sel)){Br(a,oe,{clearRedo:!1});return}se=oe}else if(x){pe.push(oe);return}else break;var Lt=[];To(se,be),be.push({changes:Lt,generation:z.generation}),z.generation=oe.generation||++z.maxGeneration;for(var Gt=Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"),xn=function(nr){var br=oe.changes[nr];if(br.origin=y,Gt&&!Yo(a,br,!1))return pe.length=0,{};Lt.push(yr(a,br));var Tr=nr?ur(a,br):_e(pe);va(a,br,Tr,hi(a,br)),!nr&&a.cm&&a.cm.scrollIntoView({from:br.from,to:sr(br)});var jr=[];Vr(a,function(Nr,Yr){!Yr&&Nt(jr,Nr.history)==-1&&(Fi(Nr.history,br),jr.push(Nr.history)),va(Nr,br,null,hi(Nr,br))})},pn=oe.changes.length-1;pn>=0;--pn){var Un=xn(pn);if(Un)return Un.v}}}}function Pi(a,y){if(y!=0&&(a.first+=y,a.sel=new bn(Yt(a.sel.ranges,function(z){return new gn($e(z.anchor.line+y,z.anchor.ch),$e(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++)ol(a.cm,x,"gutter")}}function va(a,y,E,x){if(a.cm&&!a.cm.curOp)return Ji(a.cm,va)(a,y,E,x);if(y.to.line<a.first){Pi(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);Pi(a,z),y={from:$e(a.first,0),to:$e(y.to.line+z,y.to.ch),text:[_e(y.text)],origin:y.origin}}var oe=a.lastLine();y.to.line>oe&&(y={from:y.from,to:$e(oe,sn(a,oe).text.length),text:[y.text[0]],origin:y.origin}),y.removed=yn(a,y.from,y.to),E||(E=ur(a,y)),a.cm?pi(a.cm,y,x):Qr(a,y,x),Fo(a,E,ye),a.cantEdit&&Ai(a,$e(a.firstLine(),0))&&(a.cantEdit=!1)}}function pi(a,y,E){var x=a.doc,z=a.display,oe=y.from,se=y.to,pe=!1,be=oe.line;a.options.lineWrapping||(be=ct(kn(sn(x,oe.line))),x.iter(be,se.line+1,function(pn){if(pn==z.maxLine)return pe=!0,!0})),x.sel.contains(y.from,y.to)>-1&&an(a),Qr(x,y,E,ys(a)),a.options.lineWrapping||(x.iter(be,oe.line+y.text.length,function(pn){var Un=Oo(pn);Un>z.maxLineLength&&(z.maxLine=pn,z.maxLineLength=Un,z.maxLineChanged=!0,pe=!1)}),pe&&(a.curOp.updateMaxLine=!0)),qn(x,oe.line),$l(a,400);var ke=y.text.length-(se.line-oe.line)-1;y.full?sa(a):oe.line==se.line&&y.text.length==1&&!xo(a.doc,y)?ol(a,oe.line,"text"):sa(a,oe.line,se.line+1,ke);var Lt=Wt(a,"changes"),Gt=Wt(a,"change");if(Gt||Lt){var xn={from:oe,to:se,text:y.text,removed:y.removed,origin:y.origin};Gt&&Bo(a,"change",a,xn),Lt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(xn)}a.display.selForContextMenu=null}function jo(a,y,E,x,z){var oe;x||(x=E),xt(x,E)<0&&(oe=[x,E],E=oe[0],x=oe[1]),typeof y=="string"&&(y=a.splitLines(y)),ti(a,{from:E,to:x,text:y,origin:z})}function ri(a,y,E,x){E<a.line?a.line+=x:y<a.line&&(a.line=y,a.ch=0)}function ii(a,y,E,x){for(var z=0;z<a.length;++z){var oe=a[z],se=!0;if(oe.ranges){oe.copied||(oe=a[z]=oe.deepCopy(),oe.copied=!0);for(var pe=0;pe<oe.ranges.length;pe++)ri(oe.ranges[pe].anchor,y,E,x),ri(oe.ranges[pe].head,y,E,x);continue}for(var be=0;be<oe.changes.length;++be){var ke=oe.changes[be];if(E<ke.from.line)ke.from=$e(ke.from.line+x,ke.from.ch),ke.to=$e(ke.to.line+x,ke.to.ch);else if(y<=ke.to.line){se=!1;break}}se||(a.splice(0,z+1),z=0)}}function Fi(a,y){var E=y.from.line,x=y.to.line,z=y.text.length-(x-E)-1;ii(a.done,E,x,z),ii(a.undone,E,x,z)}function bi(a,y,E,x){var z=y,oe=y;return typeof y=="number"?oe=sn(a,gt(a,y)):z=ct(y),z==null?null:(x(oe,z)&&a.cm&&ol(a.cm,z,E),oe)}function $o(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}$o.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,Io(z),Bo(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 mi(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}mi.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 oe=Math.min(y,z-a),se=x.height;if(x.removeInner(a,oe),this.height-=se-x.height,z==oe&&(this.children.splice(E--,1),x.parent=null),(y-=oe)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof $o))){var pe=[];this.collapse(pe),this.children=[new $o(pe)],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],oe=z.chunkSize();if(a<=oe){if(z.insertInner(a,y,E),z.lines&&z.lines.length>50){for(var se=z.lines.length%25+25,pe=se;pe<z.lines.length;){var be=new $o(z.lines.slice(pe,pe+=25));z.height-=be.height,this.children.splice(++x,0,be),be.parent=this}z.lines=z.lines.slice(0,se),this.maybeSpill()}break}a-=oe}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),E=new mi(y);if(a.parent){a.size-=E.size,a.height-=E.height;var z=Nt(a.parent.children,a);a.parent.children.splice(z+1,0,E)}else{var x=new mi(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],oe=z.chunkSize();if(a<oe){var se=Math.min(y,oe-a);if(z.iterN(a,se,E))return!0;if((y-=se)==0)break;a=0}else a-=oe}}};var _o=function(a,y,E){if(E)for(var x in E)E.hasOwnProperty(x)&&(this[x]=E[x]);this.doc=a,this.node=y};_o.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 oe=ia(this);An(E,Math.max(0,E.height-oe)),a&&(ma(a,function(){Qi(a,E,-oe),ol(a,x,"widget")}),Bo(a,"lineWidgetCleared",a,this,x))}},_o.prototype.changed=function(){var a=this,y=this.height,E=this.doc.cm,x=this.line;this.height=null;var z=ia(this)-y;z&&(_n(this.doc,x)||An(x,x.height+z),E&&ma(E,function(){E.curOp.forceUpdate=!0,Qi(E,x,z),Bo(E,"lineWidgetChanged",E,a,ct(x))}))},Ke(_o);function Qi(a,y,E){eo(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Vs(a,E)}function Li(a,y,E,x){var z=new _o(a,E,x),oe=a.cm;return oe&&z.noHScroll&&(oe.display.alignWidgets=!0),bi(a,y,"widget",function(se){var pe=se.widgets||(se.widgets=[]);if(z.insertAt==null?pe.push(z):pe.splice(Math.min(pe.length-1,Math.max(0,z.insertAt)),0,z),z.line=se,oe&&!_n(a,se)){var be=eo(se)<a.scrollTop;An(se,se.height+ia(z)),be&&Vs(oe,z.height),oe.curOp.forceUpdate=!0}return!0}),oe&&Bo(oe,"lineWidgetAdded",oe,z,typeof y=="number"?y:ct(y)),z}var ca=0,ga=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++ca};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&&Bo(this,"clear",E.from,E.to)}for(var x=null,z=null,oe=0;oe<this.lines.length;++oe){var se=this.lines[oe],pe=Ur(se.markedSpans,this);a&&!this.collapsed?ol(a,ct(se),"text"):a&&(pe.to!=null&&(z=ct(se)),pe.from!=null&&(x=ct(se))),se.markedSpans=ao(se.markedSpans,pe),pe.from==null&&this.collapsed&&!_n(this.doc,se)&&a&&An(se,Ca(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var be=0;be<this.lines.length;++be){var ke=kn(this.lines[be]),Lt=Oo(ke);Lt>a.display.maxLineLength&&(a.display.maxLine=ke,a.display.maxLineLength=Lt,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&&ci(a.doc)),a&&Bo(a,"markerCleared",a,this,x,z),y&&Dl(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 oe=this.lines[z],se=Ur(oe.markedSpans,this);if(se.from!=null&&(E=$e(y?oe:ct(oe),se.from),a==-1))return E;if(se.to!=null&&(x=$e(y?oe:ct(oe),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,oe=ct(y.line),se=ja(x,oe);if(se&&(Ll(se),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!_n(E.doc,z)&&E.height!=null){var pe=E.height;E.height=null;var be=ia(E)-pe;be&&An(z,z.height+be)}Bo(x,"markerChanged",x,a)})},ga.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Nt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ga.prototype.detachLine=function(a){if(this.lines.splice(Nt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Ke(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 Ji(a.cm,Ga)(a,y,E,x,z);var oe=new ga(a,z),se=xt(y,E);if(x&&Ut(x,oe,!1),se>0||se==0&&oe.clearWhenEmpty!==!1)return oe;if(oe.replacedWith&&(oe.collapsed=!0,oe.widgetNode=ot("span",[oe.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||oe.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(oe.widgetNode.insertLeft=!0)),oe.collapsed){if(Kn(a,y.line,y,E,oe)||y.line!=E.line&&Kn(a,E.line,y,E,oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");_r()}oe.addToHistory&&qr(a,{from:y,to:E,origin:"markText"},a.sel,NaN);var pe=y.line,be=a.cm,ke;if(a.iter(pe,E.line+1,function(Gt){be&&oe.collapsed&&!be.options.lineWrapping&&kn(Gt)==be.display.maxLine&&(ke=!0),oe.collapsed&&pe!=y.line&&An(Gt,0),Hr(Gt,new Wr(oe,pe==y.line?y.ch:null,pe==E.line?E.ch:null)),++pe}),oe.collapsed&&a.iter(y.line,E.line+1,function(Gt){_n(a,Gt)&&An(Gt,0)}),oe.clearOnEnter&&zt(oe,"beforeCursorEnter",function(){return oe.clear()}),oe.readOnly&&(Kr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),oe.collapsed&&(oe.id=++ca,oe.atomic=!0),be){if(ke&&(be.curOp.updateMaxLine=!0),oe.collapsed)sa(be,y.line,E.line+1);else if(oe.className||oe.startStyle||oe.endStyle||oe.css||oe.attributes||oe.title)for(var Lt=y.line;Lt<=E.line;Lt++)ol(be,Lt,"text");oe.atomic&&ci(be.doc),Bo(be,"markerAdded",be,oe)}return oe}var ai=function(a,y){this.markers=a,this.primary=y;for(var E=0;E<a.length;++E)a[E].parent=this};ai.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Bo(this,"clear")}},ai.prototype.find=function(a,y){return this.primary.find(a,y)},Ke(ai);function Wl(a,y,E,x,z){x=Ut(x),x.shared=!1;var oe=[Ga(a,y,E,x,z)],se=oe[0],pe=x.widgetNode;return Vr(a,function(be){pe&&(x.widgetNode=pe.cloneNode(!0)),oe.push(Ga(be,ht(be,y),ht(be,E),x,z));for(var ke=0;ke<be.linked.length;++ke)if(be.linked[ke].isParent)return;se=_e(oe)}),new ai(oe,se)}function da(a){return a.findMarks($e(a.first,0),a.clipPos($e(a.lastLine())),function(y){return y.parent})}function ka(a,y){for(var E=0;E<y.length;E++){var x=y[E],z=x.find(),oe=a.clipPos(z.from),se=a.clipPos(z.to);if(xt(oe,se)){var pe=Ga(a,oe,se,x.primary,x.primary.type);x.markers.push(pe),pe.parent=x}}}function wa(a){for(var y=function(x){var z=a[x],oe=[z.primary.doc];Vr(z.primary.doc,function(be){return oe.push(be)});for(var se=0;se<z.markers.length;se++){var pe=z.markers[se];Nt(oe,pe.doc)==-1&&(pe.parent=null,z.markers.splice(se--,1))}},E=0;E<a.length;E++)y(E)}var ya=0,li=function(a,y,E,x,z){if(!(this instanceof li))return new li(a,y,E,x,z);E==null&&(E=0),mi.call(this,[new $o([new ko("",null)])]),this.first=E,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=E;var oe=$e(E,0);this.sel=Xn(oe),this.history=new Sr(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)),Qr(this,{from:oe,to:oe,text:a}),Br(this,Xn(oe),ye)};li.prototype=ne(mi.prototype,{constructor:li,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=Hn(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:Xi(function(a){var y=$e(this.first,0),E=this.first+this.size-1;ti(this,{from:y,to:$e(E,sn(this,E).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&ts(this.cm,0,0),Br(this,Xn(y),ye)}),replaceRange:function(a,y,E,x){y=ht(this,y),E=E?ht(this,E):y,jo(this,a,y,E,x)},getRange:function(a,y,E){var x=yn(this,ht(this,a),ht(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(ze(this,a))return sn(this,a)},getLineNumber:function(a){return ct(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=sn(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 ht(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:Xi(function(a,y,E){Gr(this,ht(this,typeof a=="number"?$e(a,y||0):a),null,E)}),setSelection:Xi(function(a,y,E){Gr(this,ht(this,a),ht(this,y||a),E)}),extendSelection:Xi(function(a,y,E){Mo(this,ht(this,a),y&&ht(this,y),E)}),extendSelections:Xi(function(a,y){wi(this,Rt(this,a),y)}),extendSelectionsBy:Xi(function(a,y){var E=Yt(this.sel.ranges,a);wi(this,Rt(this,E),y)}),setSelections:Xi(function(a,y,E){if(a.length){for(var x=[],z=0;z<a.length;z++)x[z]=new gn(ht(this,a[z].anchor),ht(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Br(this,ir(this.cm,x,y),E)}}),addSelection:Xi(function(a,y,E){var x=this.sel.ranges.slice(0);x.push(new gn(ht(this,a),ht(this,y||a))),Br(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=yn(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=yn(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:Xi(function(a,y,E){for(var x=[],z=this.sel,oe=0;oe<z.ranges.length;oe++){var se=z.ranges[oe];x[oe]={from:se.from(),to:se.to(),text:this.splitLines(a[oe]),origin:E}}for(var pe=y&&y!="end"&&Or(this,x,y),be=x.length-1;be>=0;be--)ti(this,x[be]);pe?$r(this,pe):this.cm&&El(this.cm)}),undo:Xi(function(){Hi(this,"undo")}),redo:Xi(function(){Hi(this,"redo")}),undoSelection:Xi(function(){Hi(this,"undo",!0)}),redoSelection:Xi(function(){Hi(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 Sr(this.history.maxGeneration),Vr(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:Si(this.history.done),undone:Si(this.history.undone)}},setHistory:function(a){var y=this.history=new Sr(this.history.maxGeneration);y.done=Si(a.done.slice(0),null,!0),y.undone=Si(a.undone.slice(0),null,!0)},setGutterMarker:Xi(function(a,y,E){return bi(this,a,"gutter",function(x){var z=x.gutterMarkers||(x.gutterMarkers={});return z[y]=E,!E&&re(z)&&(x.gutterMarkers=null),!0})}),clearGutter:Xi(function(a){var y=this;this.iter(function(E){E.gutterMarkers&&E.gutterMarkers[a]&&bi(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(!ze(this,a)||(y=a,a=sn(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:Xi(function(a,y,E){return bi(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(He(E).test(x[z]))return!1;x[z]+=" "+E}return!0})}),removeLineClass:Xi(function(a,y,E){return bi(this,a,y=="gutter"?"gutter":"class",function(x){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",oe=x[z];if(oe)if(E==null)x[z]=null;else{var se=oe.match(He(E));if(!se)return!1;var pe=se.index+se[0].length;x[z]=oe.slice(0,se.index)+(!se.index||pe==oe.length?"":" ")+oe.slice(pe)||null}else return!1;return!0})}),addLineWidget:Xi(function(a,y,E){return Li(this,a,y,E)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,E){return Ga(this,ht(this,a),ht(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=ht(this,a),Ga(this,a,a,E,"bookmark")},findMarksAt:function(a){a=ht(this,a);var y=[],E=sn(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=ht(this,a),y=ht(this,y);var x=[],z=a.line;return this.iter(a.line,y.line+1,function(oe){var se=oe.markedSpans;if(se)for(var pe=0;pe<se.length;pe++){var be=se[pe];!(be.to!=null&&z==a.line&&a.ch>=be.to||be.from==null&&z!=a.line||be.from!=null&&z==y.line&&be.from>=y.ch)&&(!E||E(be.marker))&&x.push(be.marker.parent||be.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 oe=z.text.length+x;if(oe>a)return y=a,!0;a-=oe,++E}),ht(this,$e(E,y))},indexFromPos:function(a){a=ht(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 li(Hn(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 li(Hn(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}],ka(x,da(this)),x},unlinkDoc:function(a){if(a instanceof Di&&(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];Vr(a,function(z){return x.push(z.id)},!0),a.history=new Sr(null),a.history.done=Si(this.history.done,x),a.history.undone=Si(this.history.undone,x)}},iterLinkedDocs:function(a){Vr(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):vn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Xi(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&Fr(this.cm))})}),li.prototype.eachLine=li.prototype.iter;var Ea=0;function al(a){var y=this;if(os(y),!(Tt(y,a)||_i(y.display,a))){mt(a),Se&&(Ea=+new Date);var E=Ja(y,a,!0),x=a.dataTransfer.files;if(!(!E||y.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var z=x.length,oe=Array(z),se=0,pe=function(){++se==z&&Ji(y,function(){E=ht(y.doc,E);var pn={from:E,to:E,text:y.doc.splitLines(oe.filter(function(Un){return Un!=null}).join(y.doc.lineSeparator())),origin:"paste"};ti(y.doc,pn),$r(y.doc,Xn(ht(y.doc,E),ht(y.doc,sr(pn))))})()},be=function(pn,Un){if(y.options.allowDropFileTypes&&Nt(y.options.allowDropFileTypes,pn.type)==-1){pe();return}var nr=new FileReader;nr.onerror=function(){return pe()},nr.onload=function(){var br=nr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(br)){pe();return}oe[Un]=br,pe()},nr.readAsText(pn)},ke=0;ke<x.length;ke++)be(x[ke],ke);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 Lt=a.dataTransfer.getData("Text");if(Lt){var Gt;if(y.state.draggingText&&!y.state.draggingText.copy&&(Gt=y.listSelections()),Fo(y.doc,Xn(E,E)),Gt)for(var xn=0;xn<Gt.length;++xn)jo(y.doc,"",Gt[xn].anchor,Gt[xn].head,"drag");y.replaceSelection(Lt,"around","paste"),y.display.input.focus()}}catch(pn){}}}}function Ua(a,y){if(Se&&(!a.state.draggingText||+new Date-Ea<100)){Re(y);return}if(!(Tt(a,y)||_i(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Xe)){var E=et("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ce&&(E.width=E.height=1,a.display.wrapper.appendChild(E),E._top=E.offsetTop),y.dataTransfer.setDragImage(E,0,0),ce&&E.parentNode.removeChild(E)}}function Ya(a,y){var E=Ja(a,y);if(E){var x=document.createDocumentFragment();$s(a,E,x),a.display.dragCursor||(a.display.dragCursor=et("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ut(a.display.dragCursor,x)}}function os(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function is(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 oe=0;oe<E.length;oe++)a(E[oe])})}}var as=!1;function ls(){as||(Ps(),as=!0)}function Ps(){var a;zt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,is(So)},100))}),zt(window,"blur",function(){return is(Sl)})}function So(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var Ao={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"},vi=0;vi<10;vi++)Ao[vi+48]=Ao[vi+96]=String(vi);for(var Oi=65;Oi<=90;Oi++)Ao[Oi]=String.fromCharCode(Oi);for(var Gi=1;Gi<=12;Gi++)Ao[Gi+111]=Ao[Gi+63235]="F"+Gi;var ji={};ji.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"},ji.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"},ji.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"},ji.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"]},ji.default=Ne?ji.macDefault:ji.pcDefault;function za(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var E,x,z,oe,se=0;se<y.length-1;se++){var pe=y[se];if(/^(cmd|meta|m)$/i.test(pe))oe=!0;else if(/^a(lt)?$/i.test(pe))E=!0;else if(/^(c|ctrl|control)$/i.test(pe))x=!0;else if(/^s(hift)?$/i.test(pe))z=!0;else throw new Error("Unrecognized modifier name: "+pe)}return E&&(a="Alt-"+a),x&&(a="Ctrl-"+a),oe&&(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=Yt(E.split(" "),za),oe=0;oe<z.length;oe++){var se=void 0,pe=void 0;oe==z.length-1?(pe=z.join(" "),se=x):(pe=z.slice(0,oe+1).join(" "),se="...");var be=y[pe];if(!be)y[pe]=se;else if(be!=se)throw new Error("Inconsistent bindings for "+pe)}delete a[E]}for(var ke in y)a[ke]=y[ke];return a}function Il(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 Il(a,y.fallthrough,E,x);for(var oe=0;oe<y.fallthrough.length;oe++){var se=Il(a,y.fallthrough[oe],E,x);if(se)return se}}}function Os(a){var y=typeof a=="string"?a:Ao[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),(We?y.metaKey:y.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(We?y.ctrlKey:y.metaKey)&&x!="Mod"&&(a="Cmd-"+a),!E&&y.shiftKey&&x!="Shift"&&(a="Shift-"+a),a}function vl(a,y){if(ce&&a.keyCode==34&&a.char)return!1;var E=Ao[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"?ji[a]:a}function gl(a,y){for(var E=a.doc.sel.ranges,x=[],z=0;z<E.length;z++){for(var oe=y(E[z]);x.length&&xt(oe.from,_e(x).to)<=0;){var se=x.pop();if(xt(se.from,oe.from)<0){oe.from=se.from;break}}x.push(oe)}ma(a,function(){for(var pe=x.length-1;pe>=0;pe--)jo(a.doc,"",x[pe].from,x[pe].to,"+delete");El(a)})}function Ds(a,y,E){var x=ft(a.text,y+E,E);return x<0||x>a.text.length?null:x}function us(a,y,E){var x=Ds(a,y.ch,E);return x==null?null:new $e(y.line,x,E<0?"after":"before")}function Is(a,y,E,x,z){if(a){y.doc.direction=="rtl"&&(z=-z);var oe=Oe(E,y.doc.direction);if(oe){var se=z<0?_e(oe):oe[0],pe=z<0==(se.level==1),be=pe?"after":"before",ke;if(se.level>0||y.doc.direction=="rtl"){var Lt=tl(y,E);ke=z<0?E.text.length-1:0;var Gt=Ma(y,Lt,ke).top;ke=Ae(function(xn){return Ma(y,Lt,xn).top==Gt},z<0==(se.level==1)?se.from:se.to-1,ke),be=="before"&&(ke=Ds(E,ke,1))}else ke=z<0?se.to:se.from;return new $e(x,ke,be)}}return new $e(x,z<0?E.text.length:0,z<0?"before":"after")}function Js(a,y,E,x){var z=Oe(y,a.doc.direction);if(!z)return us(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 oe=nt(z,E.ch,E.sticky),se=z[oe];if(a.doc.direction=="ltr"&&se.level%2==0&&(x>0?se.to>E.ch:se.from<E.ch))return us(y,E,x);var pe=function(Tr,jr){return Ds(y,Tr instanceof $e?Tr.ch:Tr,jr)},be,ke=function(Tr){return a.options.lineWrapping?(be=be||tl(a,y),Bi(a,y,be,Tr)):{begin:0,end:y.text.length}},Lt=ke(E.sticky=="before"?pe(E,-1):E.ch);if(a.doc.direction=="rtl"||se.level==1){var Gt=se.level==1==x<0,xn=pe(E,Gt?1:-1);if(xn!=null&&(Gt?xn<=se.to&&xn<=Lt.end:xn>=se.from&&xn>=Lt.begin)){var pn=Gt?"before":"after";return new $e(E.line,xn,pn)}}var Un=function(Tr,jr,Nr){for(var Yr=function(gi,ra){return ra?new $e(E.line,pe(gi,1),"before"):new $e(E.line,gi,"after")};Tr>=0&&Tr<z.length;Tr+=jr){var yo=z[Tr],fo=jr>0==(yo.level!=1),zo=fo?Nr.begin:pe(Nr.end,-1);if(yo.from<=zo&&zo<yo.to||(zo=fo?yo.from:pe(yo.to,-1),Nr.begin<=zo&&zo<Nr.end))return Yr(zo,fo)}},nr=Un(oe+x,x,Lt);if(nr)return nr;var br=x>0?Lt.end:pe(Lt.begin,-1);return br!=null&&!(x>0&&br==y.text.length)&&(nr=Un(x>0?0:z.length-1,x,ke(br)),nr)?nr:null}var ll={selectAll:io,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),ye)},killLine:function(a){return gl(a,function(y){if(y.empty()){var E=sn(a.doc,y.head.line).text.length;return y.head.ch==E&&y.head.line<a.lastLine()?{from:y.head,to:$e(y.head.line+1,0)}:{from:y.head,to:$e(y.head.line,E)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return gl(a,function(y){return{from:$e(y.from().line,0),to:ht(a.doc,$e(y.to().line+1,0))}})},delLineLeft:function(a){return gl(a,function(y){return{from:$e(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($e(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection($e(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 Ns(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return vu(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")},lt)},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")},lt)},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/)?Ns(a,y.head):x},lt)},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 oe=E[z].from(),se=Te(a.getLine(oe.line),oe.ch,x);y.push(At(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,oe=sn(a.doc,z.line).text;if(oe){if(z.ch==oe.length&&(z=new $e(z.line,z.ch-1)),z.ch>0)z=new $e(z.line,z.ch+1),a.replaceRange(oe.charAt(z.ch-1)+oe.charAt(z.ch-2),$e(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var se=sn(a.doc,z.line-1).text;se&&(z=new $e(z.line,1),a.replaceRange(oe.charAt(0)+a.doc.lineSeparator()+se.charAt(se.length-1),$e(z.line-1,se.length-1),z,"+transpose"))}}E.push(new gn(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=sn(a.doc,y),x=kn(E);return x!=E&&(y=ct(x)),Is(!0,a,x,y,1)}function vu(a,y){var E=sn(a.doc,y),x=fr(E);return x!=E&&(y=ct(x)),Is(!0,a,E,y,-1)}function Ns(a,y){var E=Ts(a,y.line),x=sn(a.doc,E.line),z=Oe(x,a.doc.direction);if(!z||z[0].level==0){var oe=Math.max(E.ch,x.text.search(/\S/)),se=y.line==E.line&&y.ch<=oe&&y.ch;return $e(E.line,se?0:oe,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)!=Ft}finally{a.display.shift=x,a.state.suppressEdits=!1}return z}function gu(a,y,E){for(var x=0;x<a.state.keyMaps.length;x++){var z=Il(y,a.state.keyMaps[x],E,a);if(z)return z}return a.options.extraKeys&&Il(y,a.options.extraKeys,E,a)||Il(y,a.options.keyMap,E,a)}var yu=new he;function Xl(a,y,E,x){var z=a.state.keySeq;if(z){if(Os(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:yu.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),Ms(a,z+" "+y,E,x))return!0}return Ms(a,y,E,x)}function Ms(a,y,E,x){var z=gu(a,y,x);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&Bo(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?Xl(a,"Shift-"+E,y,function(x){return Vl(a,x,!0)})||Xl(a,E,y,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return Vl(a,x)}):Xl(a,E,y,function(x){return Vl(a,x)}):!1}function Bs(a,y,E){return Xl(a,"'"+E+"'",y,function(x){return Vl(a,x,!0)})}var Ul=null;function ks(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Ve(),!Tt(y,a))){Se&&ge<11&&a.keyCode==27&&(a.returnValue=!1);var E=a.keyCode;y.display.shift=E==16||a.shiftKey;var x=Gl(y,a);ce&&(Ul=x?E:null,!x&&E==88&&!dn&&(Ne?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),b&&!Ne&&!x&&E==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Qs(y)}}function Qs(a){var y=a.display.lineDiv;de(y,"CodeMirror-crosshair");function E(x){(x.keyCode==18||!x.altKey)&&(Ge(y,"CodeMirror-crosshair"),qt(document,"keyup",E),qt(document,"mouseover",E))}zt(document,"keyup",E),zt(document,"mouseover",E)}function Ls(a){a.keyCode==16&&(this.doc.sel.shift=!1),Tt(this,a)}function Rs(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(_i(y.display,a)||Tt(y,a)||a.ctrlKey&&!a.altKey||Ne&&a.metaKey)){var E=a.keyCode,x=a.charCode;if(ce&&E==Ul){Ul=null,mt(a);return}if(!(ce&&(!a.which||a.which<10)&&Gl(y,a))){var z=String.fromCharCode(x==null?E:x);z!="\b"&&(Bs(y,a,z)||y.display.input.onKeyPress(a))}}}var bu=400,cs=function(a,y,E){this.time=a,this.pos=y,this.button=E};cs.prototype.compare=function(a,y,E){return this.time+bu>a&&xt(y,this.pos)==0&&E==this.button};var yl,Tl;function As(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 cs(E,a,y),yl=null,"double"):(yl=new cs(E,a,y),Tl=null,"single")}function Fs(a){var y=this,E=y.display;if(!(Tt(y,a)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=a.shiftKey,_i(E,a)){Ee||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!Qa(y,a)){var x=Ja(y,a),z=Mt(a),oe=x?As(x,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(x&&xu(y,z,x,oe,a))&&(z==1?x?Uo(y,x,oe,a):pt(a)==E.scroller&&mt(a):z==2?(x&&Mo(y.doc,x),setTimeout(function(){return E.input.focus()},20)):z==3&&(Ie?y.display.input.onContextMenu(a):Ws(y)))}}}function xu(a,y,E,x,z){var oe="Click";return x=="double"?oe="Double"+oe:x=="triple"&&(oe="Triple"+oe),oe=(y==1?"Left":y==2?"Middle":"Right")+oe,Xl(a,Kl(oe,z),z,function(se){if(typeof se=="string"&&(se=ll[se]),!se)return!1;var pe=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),pe=se(a,E)!=Ft}finally{a.state.suppressEdits=!1}return pe})}function Wo(a,y,E){var x=a.getOption("configureMouse"),z=x?x(a,y,E):{};if(z.unit==null){var oe=it?E.shiftKey&&E.metaKey:E.altKey;z.unit=oe?"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=Ne?E.metaKey:E.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(Ne?E.altKey:E.ctrlKey)),z}function Uo(a,y,E,x){Se?setTimeout(st(ou,a),0):a.curOp.focus=Ve();var z=Wo(a,E,x),oe=a.doc.sel,se;a.options.dragDrop&&Kt&&!a.isReadOnly()&&E=="single"&&(se=oe.contains(y))>-1&&(xt((se=oe.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,oe=!1,se=Ji(a,function(ke){Ee&&(z.scroller.draggable=!1),a.state.draggingText=!1,qt(z.wrapper.ownerDocument,"mouseup",se),qt(z.wrapper.ownerDocument,"mousemove",pe),qt(z.scroller,"dragstart",be),qt(z.scroller,"drop",se),oe||(mt(ke),x.addNew||Mo(a.doc,E,null,null,x.extend),Ee&&!Xe||Se&&ge==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),pe=function(ke){oe=oe||Math.abs(y.clientX-ke.clientX)+Math.abs(y.clientY-ke.clientY)>=10},be=function(){return oe=!0};Ee&&(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",pe),zt(z.scroller,"dragstart",be),zt(z.scroller,"drop",se),Ws(a),setTimeout(function(){return z.input.focus()},20)}function Pa(a,y,E){if(E=="char")return new gn(y,y);if(E=="word")return a.findWordAt(y);if(E=="line")return new gn($e(y.line,0),ht(a.doc,$e(y.line+1,0)));var x=E(a,y);return new gn(x.from,x.to)}function na(a,y,E,x){var z=a.display,oe=a.doc;mt(y);var se,pe,be=oe.sel,ke=be.ranges;if(x.addNew&&!x.extend?(pe=oe.sel.contains(E),pe>-1?se=ke[pe]:se=new gn(E,E)):(se=oe.sel.primary(),pe=oe.sel.primIndex),x.unit=="rectangle")x.addNew||(se=new gn(E,E)),E=Ja(a,y,!0,!0),pe=-1;else{var Lt=Pa(a,E,x.unit);x.extend?se=No(se,Lt.anchor,Lt.head,x.extend):se=Lt}x.addNew?pe==-1?(pe=ke.length,Br(oe,ir(a,ke.concat([se]),pe),{scroll:!1,origin:"*mouse"})):ke.length>1&&ke[pe].empty()&&x.unit=="char"&&!x.extend?(Br(oe,ir(a,ke.slice(0,pe).concat(ke.slice(pe+1)),0),{scroll:!1,origin:"*mouse"}),be=oe.sel):ki(oe,pe,se,Ye):(pe=0,Br(oe,new bn([se],0),Ye),be=oe.sel);var Gt=E;function xn(Nr){if(xt(Gt,Nr)!=0)if(Gt=Nr,x.unit=="rectangle"){for(var Yr=[],yo=a.options.tabSize,fo=Te(sn(oe,E.line).text,E.ch,yo),zo=Te(sn(oe,Nr.line).text,Nr.ch,yo),gi=Math.min(fo,zo),ra=Math.max(fo,zo),Ri=Math.min(E.line,Nr.line),La=Math.min(a.lastLine(),Math.max(E.line,Nr.line));Ri<=La;Ri++){var Oa=sn(oe,Ri).text,Ui=Xt(Oa,gi,yo);gi==ra?Yr.push(new gn($e(Ri,Ui),$e(Ri,Ui))):Oa.length>Ui&&Yr.push(new gn($e(Ri,Ui),$e(Ri,Xt(Oa,ra,yo))))}Yr.length||Yr.push(new gn(E,E)),Br(oe,ir(a,be.ranges.slice(0,pe).concat(Yr),pe),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Nr)}else{var Da=se,fa=Pa(a,Nr,x.unit),qi=Da.anchor,Yi;xt(fa.anchor,qi)>0?(Yi=fa.head,qi=jt(Da.from(),fa.anchor)):(Yi=fa.anchor,qi=kt(Da.to(),fa.head));var zi=be.ranges.slice(0);zi[pe]=Nl(a,new gn(ht(oe,qi),Yi)),Br(oe,ir(a,zi,pe),Ye)}}var pn=z.wrapper.getBoundingClientRect(),Un=0;function nr(Nr){var Yr=++Un,yo=Ja(a,Nr,!0,x.unit=="rectangle");if(yo)if(xt(yo,Gt)!=0){a.curOp.focus=Ve(),xn(yo);var fo=il(z,oe);(yo.line>=fo.to||yo.line<fo.from)&&setTimeout(Ji(a,function(){Un==Yr&&nr(Nr)}),150)}else{var zo=Nr.clientY<pn.top?-20:Nr.clientY>pn.bottom?20:0;zo&&setTimeout(Ji(a,function(){Un==Yr&&(z.scroller.scrollTop+=zo,nr(Nr))}),50)}}function br(Nr){a.state.selectingText=!1,Un=1/0,Nr&&(mt(Nr),z.input.focus()),qt(z.wrapper.ownerDocument,"mousemove",Tr),qt(z.wrapper.ownerDocument,"mouseup",jr),oe.history.lastSelOrigin=null}var Tr=Ji(a,function(Nr){Nr.buttons===0||!Mt(Nr)?br(Nr):nr(Nr)}),jr=Ji(a,br);a.state.selectingText=jr,zt(z.wrapper.ownerDocument,"mousemove",Tr),zt(z.wrapper.ownerDocument,"mouseup",jr)}function Nl(a,y){var E=y.anchor,x=y.head,z=sn(a.doc,E.line);if(xt(E,x)==0&&E.sticky==x.sticky)return y;var oe=Oe(z);if(!oe)return y;var se=nt(oe,E.ch,E.sticky),pe=oe[se];if(pe.from!=E.ch&&pe.to!=E.ch)return y;var be=se+(pe.from==E.ch==(pe.level!=1)?0:1);if(be==0||be==oe.length)return y;var ke;if(x.line!=E.line)ke=(x.line-E.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Lt=nt(oe,x.ch,x.sticky),Gt=Lt-se||(x.ch-E.ch)*(pe.level==1?-1:1);Lt==be-1||Lt==be?ke=Gt<0:ke=Gt>0}var xn=oe[be+(ke?-1:0)],pn=ke==(xn.level==1),Un=pn?xn.from:xn.to,nr=pn?"after":"before";return E.ch==Un&&E.sticky==nr?y:new gn(new $e(E.line,Un,nr),x)}function sl(a,y,E,x){var z,oe;if(y.touches)z=y.touches[0].clientX,oe=y.touches[0].clientY;else try{z=y.clientX,oe=y.clientY}catch(xn){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&mt(y);var se=a.display,pe=se.lineDiv.getBoundingClientRect();if(oe>pe.bottom||!Wt(a,E))return nn(y);oe-=pe.top-se.viewOffset;for(var be=0;be<a.display.gutterSpecs.length;++be){var ke=se.gutters.childNodes[be];if(ke&&ke.getBoundingClientRect().right>=z){var Lt=It(a.doc,oe),Gt=a.display.gutterSpecs[be];return en(a,E,a,Lt,Gt.className,y),nn(y)}}}function Qa(a,y){return sl(a,y,"gutterClick",!0)}function Ml(a,y){_i(a.display,y)||zs(a,y)||Tt(a,y,"contextmenu")||Ie||a.display.input.onContextMenu(y)}function zs(a,y){return Wt(a,"gutterContextMenu")?sl(a,y,"gutterContextMenu",!1):!1}function Bu(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"}},ku={},qs={};function $u(a){var y=a.optionHandlers;function E(x,z,oe,se){a.defaults[x]=z,oe&&(y[x]=se?function(pe,be,ke){ke!=ds&&oe(pe,be,ke)}:oe)}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,Rr(x)},!0),E("indentUnit",2,Rr,!0),E("indentWithTabs",!1),E("smartIndent",!0),E("tabSize",4,function(x){Mr(x),fl(x),sa(x)},!0),E("lineSeparator",null,function(x,z){if(x.doc.lineSep=z,!!z){var oe=[],se=x.doc.first;x.doc.iter(function(be){for(var ke=0;;){var Lt=be.text.indexOf(z,ke);if(Lt==-1)break;ke=Lt+z.length,oe.push($e(se,Lt))}se++});for(var pe=oe.length-1;pe>=0;pe--)jo(x.doc,z,oe[pe],$e(oe[pe].line,oe[pe].ch+z.length))}}),E("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,z,oe){x.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),oe!=ds&&x.refresh()}),E("specialCharPlaceholder",xi,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",!yt),E("wholeLineUpdateBefore",!0),E("theme","default",function(x){Bu(x),ln(x)},!0),E("keyMap","default",function(x,z,oe){var se=ss(z),pe=oe!=ds&&ss(oe);pe&&pe.detach&&pe.detach(x,se),se.attach&&se.attach(x,pe||null)}),E("extraKeys",null),E("configureMouse",null),E("lineWrapping",!1,Ku,!0),E("gutters",[],function(x,z){x.display.gutterSpecs=Bt(z,x.options.lineNumbers),ln(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 jl(x)},!0),E("scrollbarStyle","native",function(x){Ys(x),jl(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=Bt(x.options.gutters,z),ln(x)},!0),E("firstLineNumber",1,ln,!0),E("lineNumberFormatter",function(x){return x},ln,!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,Wu),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,Mr,!0),E("addModeClass",!1,Mr,!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,Mr,!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 Wu(a,y,E){var x=E&&E!=ds;if(!y!=!x){var z=a.display.dragFunctions,oe=y?zt:qt;oe(a.display.scroller,"dragstart",z.start),oe(a.display.scroller,"dragenter",z.enter),oe(a.display.scroller,"dragover",z.over),oe(a.display.scroller,"dragleave",z.leave),oe(a.display.scroller,"drop",z.drop)}}function Ku(a){a.options.lineWrapping?(de(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ge(a.display.wrapper,"CodeMirror-wrap"),bo(a)),Cl(a),sa(a),fl(a),setTimeout(function(){return jl(a)},100)}function Di(a,y){var E=this;if(!(this instanceof Di))return new Di(a,y);this.options=y=y?Ut(y):{},Ut(ku,y,!1);var x=y.value;typeof x=="string"?x=new li(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var z=new Di.inputStyles[y.inputStyle](this),oe=this.display=new rn(a,x,z,y);oe.wrapper.CodeMirror=this,Bu(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ys(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 he,keySeq:null,specialChars:null},y.autofocus&&!Me&&oe.input.focus(),Se&&ge<11&&setTimeout(function(){return E.display.input.reset(!0)},20),Vu(this),ls(),ml(this),this.curOp.forceUpdate=!0,uo(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);dt(this),y.finishInit&&y.finishInit(this);for(var pe=0;pe<Cu.length;++pe)Cu[pe](this);Dl(this),Ee&&y.lineWrapping&&getComputedStyle(oe.lineDiv).textRendering=="optimizelegibility"&&(oe.lineDiv.style.textRendering="auto")}Di.defaults=ku,Di.optionHandlers=qs;function Vu(a){var y=a.display;zt(y.scroller,"mousedown",Ji(a,Fs)),Se&&ge<11?zt(y.scroller,"dblclick",Ji(a,function(be){if(!Tt(a,be)){var ke=Ja(a,be);if(!(!ke||Qa(a,be)||_i(a.display,be))){mt(be);var Lt=a.findWordAt(ke);Mo(a.doc,Lt.anchor,Lt.head)}}})):zt(y.scroller,"dblclick",function(be){return Tt(a,be)||mt(be)}),zt(y.scroller,"contextmenu",function(be){return Ml(a,be)}),zt(y.input.getField(),"contextmenu",function(be){y.scroller.contains(be.target)||Ml(a,be)});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 oe(be){if(be.touches.length!=1)return!1;var ke=be.touches[0];return ke.radiusX<=1&&ke.radiusY<=1}function se(be,ke){if(ke.left==null)return!0;var Lt=ke.left-be.left,Gt=ke.top-be.top;return Lt*Lt+Gt*Gt>20*20}zt(y.scroller,"touchstart",function(be){if(!Tt(a,be)&&!oe(be)&&!Qa(a,be)){y.input.ensurePolled(),clearTimeout(E);var ke=+new Date;y.activeTouch={start:ke,moved:!1,prev:ke-x.end<=300?x:null},be.touches.length==1&&(y.activeTouch.left=be.touches[0].pageX,y.activeTouch.top=be.touches[0].pageY)}}),zt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),zt(y.scroller,"touchend",function(be){var ke=y.activeTouch;if(ke&&!_i(y,be)&&ke.left!=null&&!ke.moved&&new Date-ke.start<300){var Lt=a.coordsChar(y.activeTouch,"page"),Gt;!ke.prev||se(ke,ke.prev)?Gt=new gn(Lt,Lt):!ke.prev.prev||se(ke,ke.prev.prev)?Gt=a.findWordAt(Lt):Gt=new gn($e(Lt.line,0),ht(a.doc,$e(Lt.line+1,0))),a.setSelection(Gt.anchor,Gt.head),a.focus(),mt(be)}z()}),zt(y.scroller,"touchcancel",z),zt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(ns(a,y.scroller.scrollTop),Pl(a,y.scroller.scrollLeft,!0),en(a,"scroll",a))}),zt(y.scroller,"mousewheel",function(be){return Dn(a,be)}),zt(y.scroller,"DOMMouseScroll",function(be){return Dn(a,be)}),zt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(be){Tt(a,be)||Re(be)},over:function(be){Tt(a,be)||(Ya(a,be),Re(be))},start:function(be){return Ua(a,be)},drop:Ji(a,al),leave:function(be){Tt(a,be)||os(a)}};var pe=y.input.getField();zt(pe,"keyup",function(be){return Ls.call(a,be)}),zt(pe,"keydown",Ji(a,ks)),zt(pe,"keypress",Ji(a,Rs)),zt(pe,"focus",function(be){return Ks(a,be)}),zt(pe,"blur",function(be){return Sl(a,be)})}var Cu=[];Di.defineInitHook=function(a){return Cu.push(a)};function Zs(a,y,E,x){var z=a.doc,oe;E==null&&(E="add"),E=="smart"&&(z.mode.indent?oe=dr(a,y).state:E="prev");var se=a.options.tabSize,pe=sn(z,y),be=Te(pe.text,null,se);pe.stateAfter&&(pe.stateAfter=null);var ke=pe.text.match(/^\s*/)[0],Lt;if(!x&&!/\S/.test(pe.text))Lt=0,E="not";else if(E=="smart"&&(Lt=z.mode.indent(oe,pe.text.slice(ke.length),pe.text),Lt==Ft||Lt>150)){if(!x)return;E="prev"}E=="prev"?y>z.first?Lt=Te(sn(z,y-1).text,null,se):Lt=0:E=="add"?Lt=be+a.options.indentUnit:E=="subtract"?Lt=be-a.options.indentUnit:typeof E=="number"&&(Lt=be+E),Lt=Math.max(0,Lt);var Gt="",xn=0;if(a.options.indentWithTabs)for(var pn=Math.floor(Lt/se);pn;--pn)xn+=se,Gt+=" ";if(xn<Lt&&(Gt+=At(Lt-xn)),Gt!=ke)return jo(z,Gt,$e(y,0),$e(y,ke.length),"+input"),pe.stateAfter=null,!0;for(var Un=0;Un<z.sel.ranges.length;Un++){var nr=z.sel.ranges[Un];if(nr.head.line==y&&nr.head.ch<ke.length){var br=$e(y,ke.length);ki(z,Un,new gn(br,br));break}}}var qa=null;function eu(a){qa=a}function Su(a,y,E,x,z){var oe=a.doc;a.display.shift=!1,x||(x=oe.sel);var se=+new Date-200,pe=z=="paste"||a.state.pasteIncoming>se,be=vn(y),ke=null;if(pe&&x.ranges.length>1)if(qa&&qa.text.join(`
`)==y){if(x.ranges.length%qa.text.length==0){ke=[];for(var Lt=0;Lt<qa.text.length;Lt++)ke.push(oe.splitLines(qa.text[Lt]))}}else be.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(ke=Yt(be,function(Tr){return[Tr]}));for(var Gt=a.curOp.updateInput,xn=x.ranges.length-1;xn>=0;xn--){var pn=x.ranges[xn],Un=pn.from(),nr=pn.to();pn.empty()&&(E&&E>0?Un=$e(Un.line,Un.ch-E):a.state.overwrite&&!pe?nr=$e(nr.line,Math.min(sn(oe,nr.line).text.length,nr.ch+_e(be).length)):pe&&qa&&qa.lineWise&&qa.text.join(`
`)==be.join(`
`)&&(Un=nr=$e(Un.line,0)));var br={from:Un,to:nr,text:ke?ke[xn%ke.length]:be,origin:z||(pe?"paste":a.state.cutIncoming>se?"cut":"+input")};ti(a.doc,br),Bo(a,"inputRead",a,br)}y&&!pe&&Ru(a,y),El(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Gt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Lu(a,y){var E=a.clipboardData&&a.clipboardData.getData("Text");if(E)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&ma(y,function(){return Su(y,E,0,null,"paste")}),!0}function Ru(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 oe=a.getModeAt(z.head),se=!1;if(oe.electricChars){for(var pe=0;pe<oe.electricChars.length;pe++)if(y.indexOf(oe.electricChars.charAt(pe))>-1){se=Zs(a,z.head.line,"smart");break}}else oe.electricInput&&oe.electricInput.test(sn(a.doc,z.head.line).text.slice(0,z.head.ch))&&(se=Zs(a,z.head.line,"smart"));se&&Bo(a,"electricInput",a,z.head.line)}}}function Au(a){for(var y=[],E=[],x=0;x<a.doc.sel.ranges.length;x++){var z=a.doc.sel.ranges[x].head.line,oe={anchor:$e(z,0),head:$e(z+1,0)};E.push(oe),y.push(a.getRange(oe.anchor,oe.head))}return{text:y,ranges:E}}function Fu(a,y,E,x){a.setAttribute("autocorrect",E?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!y)}function zu(){var a=et("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=et("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ee?a.style.width="1000px":a.setAttribute("wrap","off"),tt&&(a.style.border="1px solid black"),Fu(a),y}function Xu(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 oe=this.options,se=oe[x];oe[x]==z&&x!="mode"||(oe[x]=z,y.hasOwnProperty(x)&&Ji(this,y[x])(this,z,se),en(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,oe=0;oe<z.length;++oe)if(z[oe]==x||z[oe].name==x)return z.splice(oe,1),!0},addOverlay:ua(function(x,z){var oe=x.token?x:a.getMode(this.options,x);if(oe.startState)throw new Error("Overlays may not be stateful.");Ct(this.state.overlays,{mode:oe,modeSpec:x,opaque:z&&z.opaque,priority:z&&z.priority||0},function(se){return se.priority}),this.state.modeGen++,sa(this)}),removeOverlay:ua(function(x){for(var z=this.state.overlays,oe=0;oe<z.length;++oe){var se=z[oe].modeSpec;if(se==x||typeof x=="string"&&se.name==x){z.splice(oe,1),this.state.modeGen++,sa(this);return}}}),indentLine:ua(function(x,z,oe){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),ze(this.doc,x)&&Zs(this,x,z,oe)}),indentSelection:ua(function(x){for(var z=this.doc.sel.ranges,oe=-1,se=0;se<z.length;se++){var pe=z[se];if(pe.empty())pe.head.line>oe&&(Zs(this,pe.head.line,x,!0),oe=pe.head.line,se==this.doc.sel.primIndex&&El(this));else{var be=pe.from(),ke=pe.to(),Lt=Math.max(oe,be.line);oe=Math.min(this.lastLine(),ke.line-(ke.ch?0:1))+1;for(var Gt=Lt;Gt<oe;++Gt)Zs(this,Gt,x);var xn=this.doc.sel.ranges;be.ch==0&&z.length==xn.length&&xn[se].from().ch>0&&ki(this.doc,se,new gn(be,xn[se].to()),ye)}}}),getTokenAt:function(x,z){return rr(this,x,z)},getLineTokens:function(x,z){return rr(this,$e(x),z,!0)},getTokenTypeAt:function(x){x=ht(this.doc,x);var z=tr(this,sn(this.doc,x.line)),oe=0,se=(z.length-1)/2,pe=x.ch,be;if(pe==0)be=z[2];else for(;;){var ke=oe+se>>1;if((ke?z[ke*2-1]:0)>=pe)se=ke;else if(z[ke*2+1]<pe)oe=ke+1;else{be=z[ke*2+2];break}}var Lt=be?be.indexOf("overlay "):-1;return Lt<0?be:Lt==0?null:be.slice(0,Lt-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 oe=[];if(!E.hasOwnProperty(z))return oe;var se=E[z],pe=this.getModeAt(x);if(typeof pe[z]=="string")se[pe[z]]&&oe.push(se[pe[z]]);else if(pe[z])for(var be=0;be<pe[z].length;be++){var ke=se[pe[z][be]];ke&&oe.push(ke)}else pe.helperType&&se[pe.helperType]?oe.push(se[pe.helperType]):se[pe.name]&&oe.push(se[pe.name]);for(var Lt=0;Lt<se._global.length;Lt++){var Gt=se._global[Lt];Gt.pred(pe,this)&&Nt(oe,Gt.val)==-1&&oe.push(Gt.val)}return oe},getStateAfter:function(x,z){var oe=this.doc;return x=gt(oe,x==null?oe.first+oe.size-1:x),dr(this,x+1,z).state},cursorCoords:function(x,z){var oe,se=this.doc.sel.primary();return x==null?oe=se.head:typeof x=="object"?oe=ht(this.doc,x):oe=x?se.from():se.to(),aa(this,oe,z||"page")},charCoords:function(x,z){return nl(this,ht(this.doc,x),z||"page")},coordsChar:function(x,z){return x=es(this,x,z||"page"),Ki(this,x.left,x.top)},lineAtHeight:function(x,z){return x=es(this,{top:x,left:0},z||"page").top,It(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,z,oe){var se=!1,pe;if(typeof x=="number"){var be=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>be&&(x=be,se=!0),pe=sn(this.doc,x)}else pe=x;return Al(this,pe,{top:0,left:0},z||"page",oe||se).top+(se?this.doc.height-eo(pe):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,oe,se,pe){var be=this.display;x=aa(this,ht(this.doc,x));var ke=x.bottom,Lt=x.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),be.sizer.appendChild(z),se=="over")ke=x.top;else if(se=="above"||se=="near"){var Gt=Math.max(be.wrapper.clientHeight,this.doc.height),xn=Math.max(be.sizer.clientWidth,be.lineSpace.clientWidth);(se=="above"||x.bottom+z.offsetHeight>Gt)&&x.top>z.offsetHeight?ke=x.top-z.offsetHeight:x.bottom+z.offsetHeight<=Gt&&(ke=x.bottom),Lt+z.offsetWidth>xn&&(Lt=xn-z.offsetWidth)}z.style.top=ke+"px",z.style.left=z.style.right="",pe=="right"?(Lt=be.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(pe=="left"?Lt=0:pe=="middle"&&(Lt=(be.sizer.clientWidth-z.offsetWidth)/2),z.style.left=Lt+"px"),oe&&Du(this,{left:Lt,top:ke,right:Lt+z.offsetWidth,bottom:ke+z.offsetHeight})},triggerOnKeyDown:ua(ks),triggerOnKeyPress:ua(Rs),triggerOnKeyUp:Ls,triggerOnMouseDown:ua(Fs),execCommand:function(x){if(ll.hasOwnProperty(x))return ll[x].call(null,this)},triggerElectric:ua(function(x){Ru(this,x)}),findPosH:function(x,z,oe,se){var pe=1;z<0&&(pe=-1,z=-z);for(var be=ht(this.doc,x),ke=0;ke<z&&(be=wu(this.doc,be,pe,oe,se),!be.hitSide);++ke);return be},moveH:ua(function(x,z){var oe=this;this.extendSelectionsBy(function(se){return oe.display.shift||oe.doc.extend||se.empty()?wu(oe.doc,se.head,x,z,oe.options.rtlMoveVisually):x<0?se.from():se.to()},lt)}),deleteH:ua(function(x,z){var oe=this.doc.sel,se=this.doc;oe.somethingSelected()?se.replaceSelection("",null,"+delete"):gl(this,function(pe){var be=wu(se,pe.head,x,z,!1);return x<0?{from:be,to:pe.head}:{from:pe.head,to:be}})}),findPosV:function(x,z,oe,se){var pe=1,be=se;z<0&&(pe=-1,z=-z);for(var ke=ht(this.doc,x),Lt=0;Lt<z;++Lt){var Gt=aa(this,ke,"div");if(be==null?be=Gt.left:Gt.left=be,ke=Zu(this,Gt,pe,oe),ke.hitSide)break}return ke},moveV:ua(function(x,z){var oe=this,se=this.doc,pe=[],be=!this.display.shift&&!se.extend&&se.sel.somethingSelected();if(se.extendSelectionsBy(function(Lt){if(be)return x<0?Lt.from():Lt.to();var Gt=aa(oe,Lt.head,"div");Lt.goalColumn!=null&&(Gt.left=Lt.goalColumn),pe.push(Gt.left);var xn=Zu(oe,Gt,x,z);return z=="page"&&Lt==se.sel.primary()&&Vs(oe,nl(oe,xn,"div").top-Gt.top),xn},lt),pe.length)for(var ke=0;ke<se.sel.ranges.length;ke++)se.sel.ranges[ke].goalColumn=pe[ke]}),findWordAt:function(x){var z=this.doc,oe=sn(z,x.line).text,se=x.ch,pe=x.ch;if(oe){var be=this.getHelper(x,"wordChars");(x.sticky=="before"||pe==oe.length)&&se?--se:++pe;for(var ke=oe.charAt(se),Lt=ue(ke,be)?function(Gt){return ue(Gt,be)}:/\s/.test(ke)?function(Gt){return/\s/.test(Gt)}:function(Gt){return!/\s/.test(Gt)&&!ue(Gt)};se>0&&Lt(oe.charAt(se-1));)--se;for(;pe<oe.length&&Lt(oe.charAt(pe));)++pe}return new gn($e(x.line,se),$e(x.line,pe))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?de(this.display.cursorDiv,"CodeMirror-overwrite"):Ge(this.display.cursorDiv,"CodeMirror-overwrite"),en(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ve()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ua(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:_a(this),clientWidth:Ha(this)}},scrollIntoView:ua(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:$e(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?lu(this,x):Xs(this,x.from,x.to,x.margin)}),setSize:ua(function(x,z){var oe=this,se=function(be){return typeof be=="number"||/^\d+$/.test(String(be))?be+"px":be};x!=null&&(this.display.wrapper.style.width=se(x)),z!=null&&(this.display.wrapper.style.height=se(z)),this.options.lineWrapping&&$a(this);var pe=this.display.viewFrom;this.doc.iter(pe,this.display.viewTo,function(be){if(be.widgets){for(var ke=0;ke<be.widgets.length;ke++)if(be.widgets[ke].noHScroll){ol(oe,pe,"widget");break}}++pe}),this.curOp.forceUpdate=!0,en(this,"refresh",this)}),operation:function(x){return ma(this,x)},startOperation:function(){return ml(this)},endOperation:function(){return Dl(this)},refresh:ua(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),en(this,"refresh",this)}),swapDoc:ua(function(x){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),uo(this,x),fl(this),this.display.input.reset(),ts(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,Bo(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}},Ke(a),a.registerHelper=function(x,z,oe){E.hasOwnProperty(x)||(E[x]=a[x]={_global:[]}),E[x][z]=oe},a.registerGlobalHelper=function(x,z,oe,se){a.registerHelper(x,z,se),E[x]._global.push({pred:oe,val:se})}}function wu(a,y,E,x,z){var oe=y,se=E,pe=sn(a,y.line),be=z&&a.direction=="rtl"?-E:E;function ke(){var jr=y.line+be;return jr<a.first||jr>=a.first+a.size?!1:(y=new $e(jr,y.ch,y.sticky),pe=sn(a,jr))}function Lt(jr){var Nr;if(x=="codepoint"){var Yr=pe.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(Yr)?Nr=null:Nr=new $e(y.line,Math.max(0,Math.min(pe.text.length,y.ch+E*(Yr>=55296&&Yr<56320?2:1))),-E)}else z?Nr=Js(a.cm,pe,y,E):Nr=us(pe,y,E);if(Nr==null)if(!jr&&ke())y=Is(z,a.cm,pe,y.line,be);else return!1;else y=Nr;return!0}if(x=="char"||x=="codepoint")Lt();else if(x=="column")Lt(!0);else if(x=="word"||x=="group")for(var Gt=null,xn=x=="group",pn=a.cm&&a.cm.getHelper(y,"wordChars"),Un=!0;!(E<0&&!Lt(!Un));Un=!1){var nr=pe.text.charAt(y.ch)||`
`,br=ue(nr,pn)?"w":xn&&nr==`
`?"n":!xn||/\s/.test(nr)?null:"p";if(xn&&!Un&&!br&&(br="s"),Gt&&Gt!=br){E<0&&(E=1,Lt(),y.sticky="after");break}if(br&&(Gt=br),E>0&&!Lt(!Un))break}var Tr=Ai(a,y,oe,se,!0);return De(oe,Tr)&&(Tr.hitSide=!0),Tr}function Zu(a,y,E,x){var z=a.doc,oe=y.left,se;if(x=="page"){var pe=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),be=Math.max(pe-.5*Ca(a.display),3);se=(E>0?y.bottom:y.top)+E*be}else x=="line"&&(se=E>0?y.bottom+3:y.top-3);for(var ke;ke=Ki(a,oe,se),!!ke.outside;){if(E<0?se<=0:se>=z.height){ke.hitSide=!0;break}se+=E*5}return ke}var di=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new he,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};di.prototype.init=function(a){var y=this,E=this,x=E.cm,z=E.div=a.lineDiv;Fu(z,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function oe(pe){for(var be=pe.target;be;be=be.parentNode){if(be==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(be.className))break}return!1}zt(z,"paste",function(pe){!oe(pe)||Tt(x,pe)||Lu(pe,x)||ge<=11&&setTimeout(Ji(x,function(){return y.updateFromDOM()}),20)}),zt(z,"compositionstart",function(pe){y.composing={data:pe.data,done:!1}}),zt(z,"compositionupdate",function(pe){y.composing||(y.composing={data:pe.data,done:!1})}),zt(z,"compositionend",function(pe){y.composing&&(pe.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(pe){if(!(!oe(pe)||Tt(x,pe))){if(x.somethingSelected())eu({lineWise:!1,text:x.getSelections()}),pe.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var be=Au(x);eu({lineWise:!0,text:be.text}),pe.type=="cut"&&x.operation(function(){x.setSelections(be.ranges,0,ye),x.replaceSelection("",null,"cut")})}else return;if(pe.clipboardData){pe.clipboardData.clearData();var ke=qa.text.join(`
`);if(pe.clipboardData.setData("Text",ke),pe.clipboardData.getData("Text")==ke){pe.preventDefault();return}}var Lt=zu(),Gt=Lt.firstChild;x.display.lineSpace.insertBefore(Lt,x.display.lineSpace.firstChild),Gt.value=qa.text.join(`
`);var xn=document.activeElement;Ue(Gt),setTimeout(function(){x.display.lineSpace.removeChild(Lt),xn.focus(),xn==z&&E.showPrimarySelection()},50)}}zt(z,"copy",se),zt(z,"cut",se)},di.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},di.prototype.prepareSelection=function(){var a=ru(this.cm,!1);return a.focus=document.activeElement==this.div,a},di.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},di.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},di.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 oe=tu(y,a.anchorNode,a.anchorOffset),se=tu(y,a.focusNode,a.focusOffset);if(!(oe&&!oe.bad&&se&&!se.bad&&xt(jt(oe,se),x)==0&&xt(kt(oe,se),z)==0)){var pe=y.display.view,be=x.line>=y.display.viewFrom&&Hu(y,x)||{node:pe[0].measure.map[2],offset:0},ke=z.line<y.display.viewTo&&Hu(y,z);if(!ke){var Lt=pe[pe.length-1].measure,Gt=Lt.maps?Lt.maps[Lt.maps.length-1]:Lt.map;ke={node:Gt[Gt.length-1],offset:Gt[Gt.length-2]-Gt[Gt.length-3]}}if(!be||!ke){a.removeAllRanges();return}var xn=a.rangeCount&&a.getRangeAt(0),pn;try{pn=Ce(be.node,be.offset,ke.offset,ke.node)}catch(Un){}pn&&(!b&&y.state.focused?(a.collapse(be.node,be.offset),pn.collapsed||(a.removeAllRanges(),a.addRange(pn))):(a.removeAllRanges(),a.addRange(pn)),xn&&a.anchorNode==null?a.addRange(xn):b&&this.startGracePeriod()),this.rememberSelection()}},di.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)},di.prototype.showMultipleSelections=function(a){ut(this.cm.display.cursorDiv,a.cursors),ut(this.cm.display.selectionDiv,a.selection)},di.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},di.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return at(this.div,y)},di.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},di.prototype.blur=function(){this.div.blur()},di.prototype.getField=function(){return this.div},di.prototype.supportsTouch=function(){return!0},di.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)},di.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},di.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(je&&Pe&&this.cm.display.gutterSpecs.length&&Gu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=tu(y,a.anchorNode,a.anchorOffset),x=tu(y,a.focusNode,a.focusOffset);E&&x&&ma(y,function(){Br(y.doc,Xn(E,x),ye),(E.bad||x.bad)&&(y.curOp.selectionChanged=!0)})}}},di.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=$e(x.line-1,sn(a.doc,x.line-1).length)),z.ch==sn(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=$e(z.line+1,0)),x.line<y.viewFrom||z.line>y.viewTo-1)return!1;var oe,se,pe;x.line==y.viewFrom||(oe=Ka(a,x.line))==0?(se=ct(y.view[0].line),pe=y.view[0].node):(se=ct(y.view[oe].line),pe=y.view[oe-1].node.nextSibling);var be=Ka(a,z.line),ke,Lt;if(be==y.view.length-1?(ke=y.viewTo-1,Lt=y.lineDiv.lastChild):(ke=ct(y.view[be+1].line)-1,Lt=y.view[be+1].node.previousSibling),!pe)return!1;for(var Gt=a.doc.splitLines(Uu(a,pe,Lt,se,ke)),xn=yn(a.doc,$e(se,0),$e(ke,sn(a.doc,ke).text.length));Gt.length>1&&xn.length>1;)if(_e(Gt)==_e(xn))Gt.pop(),xn.pop(),ke--;else if(Gt[0]==xn[0])Gt.shift(),xn.shift(),se++;else break;for(var pn=0,Un=0,nr=Gt[0],br=xn[0],Tr=Math.min(nr.length,br.length);pn<Tr&&nr.charCodeAt(pn)==br.charCodeAt(pn);)++pn;for(var jr=_e(Gt),Nr=_e(xn),Yr=Math.min(jr.length-(Gt.length==1?pn:0),Nr.length-(xn.length==1?pn:0));Un<Yr&&jr.charCodeAt(jr.length-Un-1)==Nr.charCodeAt(Nr.length-Un-1);)++Un;if(Gt.length==1&&xn.length==1&&se==x.line)for(;pn&&pn>x.ch&&jr.charCodeAt(jr.length-Un-1)==Nr.charCodeAt(Nr.length-Un-1);)pn--,Un++;Gt[Gt.length-1]=jr.slice(0,jr.length-Un).replace(/^\u200b+/,""),Gt[0]=Gt[0].slice(pn).replace(/\u200b+$/,"");var yo=$e(se,pn),fo=$e(ke,xn.length?_e(xn).length-Un:0);if(Gt.length>1||Gt[0]||xt(yo,fo))return jo(a.doc,Gt,yo,fo,"+input"),!0},di.prototype.ensurePolled=function(){this.forceCompositionEnd()},di.prototype.reset=function(){this.forceCompositionEnd()},di.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},di.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))},di.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ma(this.cm,function(){return sa(a.cm)})},di.prototype.setUneditable=function(a){a.contentEditable="false"},di.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ji(this.cm,Su)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},di.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},di.prototype.onContextMenu=function(){},di.prototype.resetPosition=function(){},di.prototype.needsContentAttribute=!0;function Hu(a,y){var E=ja(a,y.line);if(!E||E.hidden)return null;var x=sn(a.doc,y.line),z=dl(E,x,y.line),oe=Oe(x,a.doc.direction),se="left";if(oe){var pe=nt(oe,y.ch);se=pe%2?"right":"left"}var be=kl(z.map,y.ch,se);return be.offset=be.collapse=="right"?be.end:be.start,be}function Gu(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 Uu(a,y,E,x,z){var oe="",se=!1,pe=a.doc.lineSeparator(),be=!1;function ke(pn){return function(Un){return Un.id==pn}}function Lt(){se&&(oe+=pe,be&&(oe+=pe),se=be=!1)}function Gt(pn){pn&&(Lt(),oe+=pn)}function xn(pn){if(pn.nodeType==1){var Un=pn.getAttribute("cm-text");if(Un){Gt(Un);return}var nr=pn.getAttribute("cm-marker"),br;if(nr){var Tr=a.findMarks($e(x,0),$e(z+1,0),ke(+nr));Tr.length&&(br=Tr[0].find(0))&&Gt(yn(a.doc,br.from,br.to).join(pe));return}if(pn.getAttribute("contenteditable")=="false")return;var jr=/^(pre|div|p|li|table|br)$/i.test(pn.nodeName);if(!/^br$/i.test(pn.nodeName)&&pn.textContent.length==0)return;jr&&Lt();for(var Nr=0;Nr<pn.childNodes.length;Nr++)xn(pn.childNodes[Nr]);/^(pre|p)$/i.test(pn.nodeName)&&(be=!0),jr&&(se=!0)}else pn.nodeType==3&&Gt(pn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;xn(y),y!=E;)y=y.nextSibling,be=!1;return oe}function tu(a,y,E){var x;if(y==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[E],!x)return fs(a.clipPos($e(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 oe=a.display.view[z];if(oe.node==x)return Yu(oe,y,E)}}function Yu(a,y,E){var x=a.text.firstChild,z=!1;if(!y||!at(x,y))return fs($e(ct(a.line),0),!0);if(y==x&&(z=!0,y=x.childNodes[E],E=0,!y)){var oe=a.rest?_e(a.rest):a.line;return fs($e(ct(oe),oe.text.length),z)}var se=y.nodeType==3?y:null,pe=y;for(!se&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(se=y.firstChild,E&&(E=se.nodeValue.length));pe.parentNode!=x;)pe=pe.parentNode;var be=a.measure,ke=be.maps;function Lt(br,Tr,jr){for(var Nr=-1;Nr<(ke?ke.length:0);Nr++)for(var Yr=Nr<0?be.map:ke[Nr],yo=0;yo<Yr.length;yo+=3){var fo=Yr[yo+2];if(fo==br||fo==Tr){var zo=ct(Nr<0?a.line:a.rest[Nr]),gi=Yr[yo]+jr;return(jr<0||fo!=br)&&(gi=Yr[yo+(jr?1:0)]),$e(zo,gi)}}}var Gt=Lt(se,pe,E);if(Gt)return fs(Gt,z);for(var xn=pe.nextSibling,pn=se?se.nodeValue.length-E:0;xn;xn=xn.nextSibling){if(Gt=Lt(xn,xn.firstChild,0),Gt)return fs($e(Gt.line,Gt.ch-pn),z);pn+=xn.textContent.length}for(var Un=pe.previousSibling,nr=E;Un;Un=Un.previousSibling){if(Gt=Lt(Un,Un.firstChild,-1),Gt)return fs($e(Gt.line,Gt.ch+nr),z);nr+=Un.textContent.length}}var $i=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new he,this.hasSelection=!1,this.composing=null};$i.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),tt&&(z.style.width="0px"),zt(z,"input",function(){Se&&ge>=9&&y.hasSelection&&(y.hasSelection=null),E.poll()}),zt(z,"paste",function(se){Tt(x,se)||Lu(se,x)||(x.state.pasteIncoming=+new Date,E.fastPoll())});function oe(se){if(!Tt(x,se)){if(x.somethingSelected())eu({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var pe=Au(x);eu({lineWise:!0,text:pe.text}),se.type=="cut"?x.setSelections(pe.ranges,null,ye):(E.prevInput="",z.value=pe.text.join(`
`),Ue(z))}else return;se.type=="cut"&&(x.state.cutIncoming=+new Date)}}zt(z,"cut",oe),zt(z,"copy",oe),zt(a.scroller,"paste",function(se){if(!(_i(a,se)||Tt(x,se))){if(!z.dispatchEvent){x.state.pasteIncoming=+new Date,E.focus();return}var pe=new Event("paste");pe.clipboardData=se.clipboardData,z.dispatchEvent(pe)}}),zt(a.lineSpace,"selectstart",function(se){_i(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)})},$i.prototype.createField=function(a){this.wrapper=zu(),this.textarea=this.wrapper.firstChild},$i.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},$i.prototype.prepareSelection=function(){var a=this.cm,y=a.display,E=a.doc,x=ru(a);if(a.options.moveInputWithCursor){var z=aa(a,E.sel.primary().head,"div"),oe=y.wrapper.getBoundingClientRect(),se=y.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+se.top-oe.top)),x.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+se.left-oe.left))}return x},$i.prototype.showSelection=function(a){var y=this.cm,E=y.display;ut(E.cursorDiv,a.cursors),ut(E.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},$i.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&&Ue(this.textarea),Se&&ge>=9&&(this.hasSelection=E)}else a||(this.prevInput=this.textarea.value="",Se&&ge>=9&&(this.hasSelection=null))}},$i.prototype.getField=function(){return this.textarea},$i.prototype.supportsTouch=function(){return!1},$i.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Me||Ve()!=this.textarea))try{this.textarea.focus()}catch(a){}},$i.prototype.blur=function(){this.textarea.blur()},$i.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$i.prototype.receivedFocus=function(){this.slowPoll()},$i.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},$i.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)},$i.prototype.poll=function(){var a=this,y=this.cm,E=this.textarea,x=this.prevInput;if(this.contextMenuPending||!y.state.focused||Mn(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(Se&&ge>=9&&this.hasSelection===z||Ne&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var oe=z.charCodeAt(0);if(oe==8203&&!x&&(x="\u200B"),oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var se=0,pe=Math.min(x.length,z.length);se<pe&&x.charCodeAt(se)==z.charCodeAt(se);)++se;return ma(y,function(){Su(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},$i.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$i.prototype.onKeyPress=function(){Se&&ge>=9&&(this.hasSelection=null),this.fastPoll()},$i.prototype.onContextMenu=function(a){var y=this,E=y.cm,x=E.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var oe=Ja(E,a),se=x.scroller.scrollTop;if(!oe||ce)return;var pe=E.options.resetSelectionOnContextMenu;pe&&E.doc.sel.contains(oe)==-1&&Ji(E,Br)(E.doc,Xn(oe),ye);var be=z.style.cssText,ke=y.wrapper.style.cssText,Lt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Lt.top-5)+"px; left: "+(a.clientX-Lt.left-5)+`px;
z-index: 1000; background: `+(Se?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Gt;Ee&&(Gt=window.scrollY),x.input.focus(),Ee&&window.scrollTo(null,Gt),x.input.reset(),E.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=pn,x.selForContextMenu=E.doc.sel,clearTimeout(x.detectingSelectAll);function xn(){if(z.selectionStart!=null){var nr=E.somethingSelected(),br="\u200B"+(nr?z.value:"");z.value="\u21DA",z.value=br,y.prevInput=nr?"":"\u200B",z.selectionStart=1,z.selectionEnd=br.length,x.selForContextMenu=E.doc.sel}}function pn(){if(y.contextMenuPending==pn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=ke,z.style.cssText=be,Se&&ge<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=se),z.selectionStart!=null)){(!Se||Se&&ge<9)&&xn();var nr=0,br=function(){x.selForContextMenu==E.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?Ji(E,io)(E):nr++<10?x.detectingSelectAll=setTimeout(br,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(br,200)}}if(Se&&ge>=9&&xn(),Ie){Re(a);var Un=function(){qt(window,"mouseup",Un),setTimeout(pn,20)};zt(window,"mouseup",Un)}else setTimeout(pn,50)},$i.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},$i.prototype.setUneditable=function(){},$i.prototype.needsContentAttribute=!1;function _u(a,y){if(y=y?Ut(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=Ve();y.autofocus=E==a||a.getAttribute("autofocus")!=null&&E==document.body}function x(){a.value=pe.getValue()}var z;if(a.form&&(zt(a.form,"submit",x),!y.leaveSubmitMethodAlone)){var oe=a.form;z=oe.submit;try{var se=oe.submit=function(){x(),oe.submit=z,oe.submit(),oe.submit=se}}catch(be){}}y.finishInit=function(be){be.save=x,be.getTextArea=function(){return a},be.toTextArea=function(){be.toTextArea=isNaN,x(),a.parentNode.removeChild(be.getWrapperElement()),a.style.display="",a.form&&(qt(a.form,"submit",x),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var pe=Di(function(be){return a.parentNode.insertBefore(be,a.nextSibling)},y);return pe}function Ju(a){a.off=qt,a.on=zt,a.wheelEventPixels=Tn,a.Doc=li,a.splitLines=vn,a.countColumn=Te,a.findColumn=Xt,a.isWordChar=ie,a.Pass=Ft,a.signal=en,a.Line=ko,a.changeEnd=sr,a.scrollbarModel=su,a.Pos=$e,a.cmpPos=xt,a.modes=on,a.mimeModes=_t,a.resolveMode=Sn,a.getMode=zn,a.modeExtensions=Wn,a.extendMode=Zn,a.copyState=Jn,a.startState=hr,a.innerMode=Gn,a.commands=ll,a.keyMap=ji,a.keyName=vl,a.isModifierKey=Os,a.lookupKey=Il,a.normalizeKeyMap=ea,a.StringStream=cr,a.SharedTextMarker=ai,a.TextMarker=ga,a.LineWidget=_o,a.e_preventDefault=mt,a.e_stopPropagation=$t,a.e_stop=Re,a.addClass=de,a.contains=at,a.rmClass=Ge,a.keyNames=Ao}$u(Di),Xu(Di);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var nu in li.prototype)li.prototype.hasOwnProperty(nu)&&Nt(Qu,nu)<0&&(Di.prototype[nu]=function(a){return function(){return a.apply(this.doc,arguments)}}(li.prototype[nu]));return Ke(li),Di.inputStyles={textarea:$i,contenteditable:di},Di.defineMode=function(a){!Di.defaults.mode&&a!="null"&&(Di.defaults.mode=a),hn.apply(this,arguments)},Di.defineMIME=mn,Di.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Di.defineMIME("text/plain","null"),Di.defineExtension=function(a,y){Di.prototype[a]=y},Di.defineDocExtension=function(a,y){li.prototype[a]=y},Di.fromTextArea=_u,Ju(Di),Di.version="5.58.2",Di})},25419:function(Cn,Qt,ee){(function(b){b(ee(89780),ee(15525),ee(98101))})(function(b){"use strict";b.defineMode("markdown",function(Fe,fe){var qe=b.getMode(Fe,"text/html"),Se=qe.name=="null";function ge(Te){if(b.findModeByName){var he=b.findModeByName(Te);he&&(Te=he.mime||he.mimes[0])}var Nt=b.getMode(Fe,Te);return Nt.name=="null"?null:Nt}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 Ee={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 Ee)Ee.hasOwnProperty(Ze)&&fe.tokenTypeOverrides[Ze]&&(Ee[Ze]=fe.tokenTypeOverrides[Ze]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,ce=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Xe=/^\[(x| )\](?=\s)/i,we=fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,St=/^ {0,3}(?:\={1,}|-{2,})\s*$/,tt=/^[^#!\[\]*_\\<>` "'(~:]+/,je=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Me=/^\s*\[[^\]]+?\]:.*$/,Ne=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,it=" ";function yt(Te,he,Nt){return he.f=he.inline=Nt,Nt(Te,he)}function Ot(Te,he,Nt){return he.f=he.block=Nt,Nt(Te,he)}function We(Te){return!Te||!/\S/.test(Te.string)}function Ie(Te){if(Te.linkTitle=!1,Te.linkHref=!1,Te.linkText=!1,Te.em=!1,Te.strong=!1,Te.strikethrough=!1,Te.quote=0,Te.indentedCode=!1,Te.f==Ge){var he=Se;if(!he){var Nt=b.innerMode(qe,Te.htmlState);he=Nt.mode.name=="xml"&&Nt.state.tagStart===null&&!Nt.state.context&&Nt.state.tokenize.isInText}he&&(Te.f=ot,Te.block=He,Te.htmlState=null)}return Te.trailingSpace=0,Te.trailingSpaceNewLine=!1,Te.prevLine=Te.thisLine,Te.thisLine={stream:null},null}function He(Te,he){var Nt=Te.column()===he.indentation,Jt=We(he.prevLine.stream),Ft=he.indentedCode,ye=he.prevLine.hr,Ye=he.list!==!1,lt=(he.listStack[he.listStack.length-1]||0)+3;he.indentedCode=!1;var Xt=he.indentation;if(he.indentationDiff===null&&(he.indentationDiff=he.indentation,Ye)){for(he.list=null;Xt<he.listStack[he.listStack.length-1];)he.listStack.pop(),he.listStack.length?he.indentation=he.listStack[he.listStack.length-1]:he.list=!1;he.list!==!1&&(he.indentationDiff=Xt-he.listStack[he.listStack.length-1])}var rt=!Jt&&!ye&&!he.prevLine.header&&(!Ye||!Ft)&&!he.prevLine.fencedCodeEnd,At=(he.list===!1||ye||Jt)&&he.indentation<=lt&&Te.match(Pe),_e=null;if(he.indentationDiff>=4&&(Ft||he.prevLine.fencedCodeEnd||he.prevLine.header||Jt))return Te.skipToEnd(),he.indentedCode=!0,Ee.code;if(Te.eatSpace())return null;if(Nt&&he.indentation<=lt&&(_e=Te.match(we))&&_e[1].length<=6)return he.quote=0,he.header=_e[1].length,he.thisLine.header=!0,fe.highlightFormatting&&(he.formatting="header"),he.f=he.inline,ut(he);if(he.indentation<=lt&&Te.eat(">"))return he.quote=Nt?1:he.quote+1,fe.highlightFormatting&&(he.formatting="quote"),Te.eatSpace(),ut(he);if(!At&&!he.setext&&Nt&&he.indentation<=lt&&(_e=Te.match(ce))){var Yt=_e[1]?"ol":"ul";return he.indentation=Xt+Te.current().length,he.list=!0,he.quote=0,he.listStack.push(he.indentation),he.em=!1,he.strong=!1,he.code=!1,he.strikethrough=!1,fe.taskLists&&Te.match(Xe,!1)&&(he.taskList=!0),he.f=he.inline,fe.highlightFormatting&&(he.formatting=["list","list-"+Yt]),ut(he)}else{if(Nt&&he.indentation<=lt&&(_e=Te.match(je,!0)))return he.quote=0,he.fencedEndRE=new RegExp(_e[1]+"+ *$"),he.localMode=fe.fencedCodeBlockHighlighting&&ge(_e[2]||fe.fencedCodeBlockDefaultMode),he.localMode&&(he.localState=b.startState(he.localMode)),he.f=he.block=Et,fe.highlightFormatting&&(he.formatting="code-block"),he.code=-1,ut(he);if(he.setext||(!rt||!Ye)&&!he.quote&&he.list===!1&&!he.code&&!At&&!Me.test(Te.string)&&(_e=Te.lookAhead(1))&&(_e=_e.match(St)))return he.setext?(he.header=he.setext,he.setext=0,Te.skipToEnd(),fe.highlightFormatting&&(he.formatting="header")):(he.header=_e[0].charAt(0)=="="?1:2,he.setext=he.header),he.thisLine.header=!0,he.f=he.inline,ut(he);if(At)return Te.skipToEnd(),he.hr=!0,he.thisLine.hr=!0,Ee.hr;if(Te.peek()==="[")return yt(Te,he,Dt)}return yt(Te,he,he.inline)}function Ge(Te,he){var Nt=qe.token(Te,he.htmlState);if(!Se){var Jt=b.innerMode(qe,he.htmlState);(Jt.mode.name=="xml"&&Jt.state.tagStart===null&&!Jt.state.context&&Jt.state.tokenize.isInText||he.md_inside&&Te.current().indexOf(">")>-1)&&(he.f=ot,he.block=He,he.htmlState=null)}return Nt}function Et(Te,he){var Nt=he.listStack[he.listStack.length-1]||0,Jt=he.indentation<Nt,Ft=Nt+3;if(he.fencedEndRE&&he.indentation<=Ft&&(Jt||Te.match(he.fencedEndRE))){fe.highlightFormatting&&(he.formatting="code-block");var ye;return Jt||(ye=ut(he)),he.localMode=he.localState=null,he.block=He,he.f=ot,he.fencedEndRE=null,he.code=0,he.thisLine.fencedCodeEnd=!0,Jt?Ot(Te,he,he.block):ye}else return he.localMode?he.localMode.token(Te,he.localState):(Te.skipToEnd(),Ee.code)}function ut(Te){var he=[];if(Te.formatting){he.push(Ee.formatting),typeof Te.formatting=="string"&&(Te.formatting=[Te.formatting]);for(var Nt=0;Nt<Te.formatting.length;Nt++)he.push(Ee.formatting+"-"+Te.formatting[Nt]),Te.formatting[Nt]==="header"&&he.push(Ee.formatting+"-"+Te.formatting[Nt]+"-"+Te.header),Te.formatting[Nt]==="quote"&&(!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Te.quote?he.push(Ee.formatting+"-"+Te.formatting[Nt]+"-"+Te.quote):he.push("error"))}if(Te.taskOpen)return he.push("meta"),he.length?he.join(" "):null;if(Te.taskClosed)return he.push("property"),he.length?he.join(" "):null;if(Te.linkHref?he.push(Ee.linkHref,"url"):(Te.strong&&he.push(Ee.strong),Te.em&&he.push(Ee.em),Te.strikethrough&&he.push(Ee.strikethrough),Te.emoji&&he.push(Ee.emoji),Te.linkText&&he.push(Ee.linkText),Te.code&&he.push(Ee.code),Te.image&&he.push(Ee.image),Te.imageAltText&&he.push(Ee.imageAltText,"link"),Te.imageMarker&&he.push(Ee.imageMarker)),Te.header&&he.push(Ee.header,Ee.header+"-"+Te.header),Te.quote&&(he.push(Ee.quote),!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Te.quote?he.push(Ee.quote+"-"+Te.quote):he.push(Ee.quote+"-"+fe.maxBlockquoteDepth)),Te.list!==!1){var Jt=(Te.listStack.length-1)%3;Jt?Jt===1?he.push(Ee.list2):he.push(Ee.list3):he.push(Ee.list1)}return Te.trailingSpaceNewLine?he.push("trailing-space-new-line"):Te.trailingSpace&&he.push("trailing-space-"+(Te.trailingSpace%2?"a":"b")),he.length?he.join(" "):null}function et(Te,he){if(Te.match(tt,!0))return ut(he)}function ot(Te,he){var Nt=he.text(Te,he);if(typeof Nt!="undefined")return Nt;if(he.list)return he.list=null,ut(he);if(he.taskList){var Jt=Te.match(Xe,!0)[1]===" ";return Jt?he.taskOpen=!0:he.taskClosed=!0,fe.highlightFormatting&&(he.formatting="task"),he.taskList=!1,ut(he)}if(he.taskOpen=!1,he.taskClosed=!1,he.header&&Te.match(/^#+$/,!0))return fe.highlightFormatting&&(he.formatting="header"),ut(he);var Ft=Te.next();if(he.linkTitle){he.linkTitle=!1;var ye=Ft;Ft==="("&&(ye=")"),ye=(ye+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ye="^\\s*(?:[^"+ye+"\\\\]+|\\\\\\\\|\\\\.)"+ye;if(Te.match(new RegExp(Ye),!0))return Ee.linkHref}if(Ft==="`"){var lt=he.formatting;fe.highlightFormatting&&(he.formatting="code"),Te.eatWhile("`");var Xt=Te.current().length;if(he.code==0&&(!he.quote||Xt==1))return he.code=Xt,ut(he);if(Xt==he.code){var rt=ut(he);return he.code=0,rt}else return he.formatting=lt,ut(he)}else if(he.code)return ut(he);if(Ft==="\\"&&(Te.next(),fe.highlightFormatting)){var At=ut(he),_e=Ee.formatting+"-escape";return At?At+" "+_e:_e}if(Ft==="!"&&Te.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return he.imageMarker=!0,he.image=!0,fe.highlightFormatting&&(he.formatting="image"),ut(he);if(Ft==="["&&he.imageMarker&&Te.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return he.imageMarker=!1,he.imageAltText=!0,fe.highlightFormatting&&(he.formatting="image"),ut(he);if(Ft==="]"&&he.imageAltText){fe.highlightFormatting&&(he.formatting="image");var At=ut(he);return he.imageAltText=!1,he.image=!1,he.inline=he.f=at,At}if(Ft==="["&&!he.image)return he.linkText&&Te.match(/^.*?\]/)||(he.linkText=!0,fe.highlightFormatting&&(he.formatting="link")),ut(he);if(Ft==="]"&&he.linkText){fe.highlightFormatting&&(he.formatting="link");var At=ut(he);return he.linkText=!1,he.inline=he.f=Te.match(/\(.*?\)| ?\[.*?\]/,!1)?at:ot,At}if(Ft==="<"&&Te.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){he.f=he.inline=Ce,fe.highlightFormatting&&(he.formatting="link");var At=ut(he);return At?At+=" ":At="",At+Ee.linkInline}if(Ft==="<"&&Te.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){he.f=he.inline=Ce,fe.highlightFormatting&&(he.formatting="link");var At=ut(he);return At?At+=" ":At="",At+Ee.linkEmail}if(fe.xml&&Ft==="<"&&Te.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Yt=Te.string.indexOf(">",Te.pos);if(Yt!=-1){var Ct=Te.string.substring(Te.start,Yt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ct)&&(he.md_inside=!0)}return Te.backUp(1),he.htmlState=b.startState(qe),Ot(Te,he,Ge)}if(fe.xml&&Ft==="<"&&Te.match(/^\/\w*?>/))return he.md_inside=!1,"tag";if(Ft==="*"||Ft==="_"){for(var ae=1,ne=Te.pos==1?" ":Te.string.charAt(Te.pos-2);ae<3&&Te.eat(Ft);)ae++;var te=Te.peek()||" ",ie=!/\s/.test(te)&&(!Ne.test(te)||/\s/.test(ne)||Ne.test(ne)),ue=!/\s/.test(ne)&&(!Ne.test(ne)||/\s/.test(te)||Ne.test(te)),re=null,le=null;if(ae%2&&(!he.em&&ie&&(Ft==="*"||!ue||Ne.test(ne))?re=!0:he.em==Ft&&ue&&(Ft==="*"||!ie||Ne.test(te))&&(re=!1)),ae>1&&(!he.strong&&ie&&(Ft==="*"||!ue||Ne.test(ne))?le=!0:he.strong==Ft&&ue&&(Ft==="*"||!ie||Ne.test(te))&&(le=!1)),le!=null||re!=null){fe.highlightFormatting&&(he.formatting=re==null?"strong":le==null?"em":"strong em"),re===!0&&(he.em=Ft),le===!0&&(he.strong=Ft);var rt=ut(he);return re===!1&&(he.em=!1),le===!1&&(he.strong=!1),rt}}else if(Ft===" "&&(Te.eat("*")||Te.eat("_"))){if(Te.peek()===" ")return ut(he);Te.backUp(1)}if(fe.strikethrough){if(Ft==="~"&&Te.eatWhile(Ft)){if(he.strikethrough){fe.highlightFormatting&&(he.formatting="strikethrough");var rt=ut(he);return he.strikethrough=!1,rt}else if(Te.match(/^[^\s]/,!1))return he.strikethrough=!0,fe.highlightFormatting&&(he.formatting="strikethrough"),ut(he)}else if(Ft===" "&&Te.match(/^~~/,!0)){if(Te.peek()===" ")return ut(he);Te.backUp(2)}}if(fe.emoji&&Ft===":"&&Te.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){he.emoji=!0,fe.highlightFormatting&&(he.formatting="emoji");var xe=ut(he);return he.emoji=!1,xe}return Ft===" "&&(Te.match(/^ +$/,!1)?he.trailingSpace++:he.trailingSpace&&(he.trailingSpaceNewLine=!0)),ut(he)}function Ce(Te,he){var Nt=Te.next();if(Nt===">"){he.f=he.inline=ot,fe.highlightFormatting&&(he.formatting="link");var Jt=ut(he);return Jt?Jt+=" ":Jt="",Jt+Ee.linkInline}return Te.match(/^[^>]+/,!0),Ee.linkInline}function at(Te,he){if(Te.eatSpace())return null;var Nt=Te.next();return Nt==="("||Nt==="["?(he.f=he.inline=de(Nt==="("?")":"]"),fe.highlightFormatting&&(he.formatting="link-string"),he.linkHref=!0,ut(he)):"error"}var Ve={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function de(Te){return function(he,Nt){var Jt=he.next();if(Jt===Te){Nt.f=Nt.inline=ot,fe.highlightFormatting&&(Nt.formatting="link-string");var Ft=ut(Nt);return Nt.linkHref=!1,Ft}return he.match(Ve[Te]),Nt.linkHref=!0,ut(Nt)}}function Dt(Te,he){return Te.match(/^([^\]\\]|\\.)*\]:/,!1)?(he.f=Ue,Te.next(),fe.highlightFormatting&&(he.formatting="link"),he.linkText=!0,ut(he)):yt(Te,he,ot)}function Ue(Te,he){if(Te.match(/^\]:/,!0)){he.f=he.inline=st,fe.highlightFormatting&&(he.formatting="link");var Nt=ut(he);return he.linkText=!1,Nt}return Te.match(/^([^\]\\]|\\.)+/,!0),Ee.linkText}function st(Te,he){return Te.eatSpace()?null:(Te.match(/^[^\s]+/,!0),Te.peek()===void 0?he.linkTitle=!0:Te.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),he.f=he.inline=ot,Ee.linkHref+" url")}var Ut={startState:function(){return{f:He,prevLine:{stream:null},thisLine:{stream:null},block:He,htmlState:null,indentation:0,inline:ot,text:et,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(Te){return{f:Te.f,prevLine:Te.prevLine,thisLine:Te.thisLine,block:Te.block,htmlState:Te.htmlState&&b.copyState(qe,Te.htmlState),indentation:Te.indentation,localMode:Te.localMode,localState:Te.localMode?b.copyState(Te.localMode,Te.localState):null,inline:Te.inline,text:Te.text,formatting:!1,linkText:Te.linkText,linkTitle:Te.linkTitle,linkHref:Te.linkHref,code:Te.code,em:Te.em,strong:Te.strong,strikethrough:Te.strikethrough,emoji:Te.emoji,header:Te.header,setext:Te.setext,hr:Te.hr,taskList:Te.taskList,list:Te.list,listStack:Te.listStack.slice(0),quote:Te.quote,indentedCode:Te.indentedCode,trailingSpace:Te.trailingSpace,trailingSpaceNewLine:Te.trailingSpaceNewLine,md_inside:Te.md_inside,fencedEndRE:Te.fencedEndRE}},token:function(Te,he){if(he.formatting=!1,Te!=he.thisLine.stream){if(he.header=0,he.hr=!1,Te.match(/^\s*$/,!0))return Ie(he),null;if(he.prevLine=he.thisLine,he.thisLine={stream:Te},he.taskList=!1,he.trailingSpace=0,he.trailingSpaceNewLine=!1,!he.localState&&(he.f=he.block,he.f!=Ge)){var Nt=Te.match(/^\s*/,!0)[0].replace(/\t/g,it).length;if(he.indentation=Nt,he.indentationDiff=null,Nt>0)return null}}return he.f(Te,he)},innerMode:function(Te){return Te.block==Ge?{state:Te.htmlState,mode:qe}:Te.localState?{state:Te.localState,mode:Te.localMode}:{state:Te,mode:Ut}},indent:function(Te,he,Nt){return Te.block==Ge&&qe.indent?qe.indent(Te.htmlState,he,Nt):Te.localState&&Te.localMode.indent?Te.localMode.indent(Te.localState,he,Nt):b.Pass},blankLine:Ie,getType:ut,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ut},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})},98101:function(Cn,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 Fe=0;Fe<b.modeInfo.length;Fe++){var fe=b.modeInfo[Fe];fe.mimes&&(fe.mime=fe.mimes[0])}b.findModeByMIME=function(qe){qe=qe.toLowerCase();for(var Se=0;Se<b.modeInfo.length;Se++){var ge=b.modeInfo[Se];if(ge.mime==qe)return ge;if(ge.mimes){for(var Ee=0;Ee<ge.mimes.length;Ee++)if(ge.mimes[Ee]==qe)return ge}}if(/\+xml$/.test(qe))return b.findModeByMIME("application/xml");if(/\+json$/.test(qe))return b.findModeByMIME("application/json")},b.findModeByExtension=function(qe){qe=qe.toLowerCase();for(var Se=0;Se<b.modeInfo.length;Se++){var ge=b.modeInfo[Se];if(ge.ext){for(var Ee=0;Ee<ge.ext.length;Ee++)if(ge.ext[Ee]==qe)return ge}}},b.findModeByFileName=function(qe){for(var Se=0;Se<b.modeInfo.length;Se++){var ge=b.modeInfo[Se];if(ge.file&&ge.file.test(qe))return ge}var Ee=qe.lastIndexOf("."),Ze=Ee>-1&&qe.substring(Ee+1,qe.length);if(Ze)return b.findModeByExtension(Ze)},b.findModeByName=function(qe){qe=qe.toLowerCase();for(var Se=0;Se<b.modeInfo.length;Se++){var ge=b.modeInfo[Se];if(ge.name.toLowerCase()==qe)return ge;if(ge.alias){for(var Ee=0;Ee<ge.alias.length;Ee++)if(ge.alias[Ee].toLowerCase()==qe)return ge}}}})},67549:function(Cn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";b.defineMode("stex",function(Fe,fe){"use strict";function qe(tt,je){tt.cmdState.push(je)}function Se(tt){return tt.cmdState.length>0?tt.cmdState[tt.cmdState.length-1]:null}function ge(tt){var je=tt.cmdState.pop();je&&je.closeBracket()}function Ee(tt){for(var je=tt.cmdState,Me=je.length-1;Me>=0;Me--){var Ne=je[Me];if(Ne.name!="DEFAULT")return Ne}return{styleIdentifier:function(){return null}}}function Ze(tt,je,Me){return function(){this.name=tt,this.bracketNo=0,this.style=je,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 Pe={};Pe.importmodule=Ze("importmodule","tag",["string","builtin"]),Pe.documentclass=Ze("documentclass","tag",["","atom"]),Pe.usepackage=Ze("usepackage","tag",["atom"]),Pe.begin=Ze("begin","tag",["atom"]),Pe.end=Ze("end","tag",["atom"]),Pe.label=Ze("label","tag",["atom"]),Pe.ref=Ze("ref","tag",["atom"]),Pe.eqref=Ze("eqref","tag",["atom"]),Pe.cite=Ze("cite","tag",["atom"]),Pe.bibitem=Ze("bibitem","tag",["atom"]),Pe.Bibitem=Ze("Bibitem","tag",["atom"]),Pe.RBibitem=Ze("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ce(tt,je){tt.f=je}function Xe(tt,je){var Me;if(tt.match(/^\\[a-zA-Z@]+/)){var Ne=tt.current().slice(1);return Me=Pe.hasOwnProperty(Ne)?Pe[Ne]:Pe.DEFAULT,Me=new Me,qe(je,Me),ce(je,St),Me.style}if(tt.match(/^\\[$&%#{}_]/)||tt.match(/^\\[,;!\/\\]/))return"tag";if(tt.match("\\["))return ce(je,function(yt,Ot){return we(yt,Ot,"\\]")}),"keyword";if(tt.match("\\("))return ce(je,function(yt,Ot){return we(yt,Ot,"\\)")}),"keyword";if(tt.match("$$"))return ce(je,function(yt,Ot){return we(yt,Ot,"$$")}),"keyword";if(tt.match("$"))return ce(je,function(yt,Ot){return we(yt,Ot,"$")}),"keyword";var it=tt.next();if(it=="%")return tt.skipToEnd(),"comment";if(it=="}"||it=="]"){if(Me=Se(je),Me)Me.closeBracket(it),ce(je,St);else return"error";return"bracket"}else return it=="{"||it=="["?(Me=Pe.DEFAULT,Me=new Me,qe(je,Me),"bracket"):/\d/.test(it)?(tt.eatWhile(/[\w.%]/),"atom"):(tt.eatWhile(/[\w\-_]/),Me=Ee(je),Me.name=="begin"&&(Me.argument=tt.current()),Me.styleIdentifier())}function we(tt,je,Me){if(tt.eatSpace())return null;if(Me&&tt.match(Me))return ce(je,Xe),"keyword";if(tt.match(/^\\[a-zA-Z@]+/))return"tag";if(tt.match(/^[a-zA-Z]+/))return"variable-2";if(tt.match(/^\\[$&%#{}_]/)||tt.match(/^\\[,;!\/]/)||tt.match(/^[\^_&]/))return"tag";if(tt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(tt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ne=tt.next();return Ne=="{"||Ne=="}"||Ne=="["||Ne=="]"||Ne=="("||Ne==")"?"bracket":Ne=="%"?(tt.skipToEnd(),"comment"):"error"}function St(tt,je){var Me=tt.peek(),Ne;return Me=="{"||Me=="["?(Ne=Se(je),Ne.openBracket(Me),tt.eat(Me),ce(je,Xe),"bracket"):/[ \t\r]/.test(Me)?(tt.eat(Me),null):(ce(je,Xe),ge(je),Xe(tt,je))}return{startState:function(){var tt=fe.inMathMode?function(je,Me){return we(je,Me)}:Xe;return{cmdState:[],f:tt}},copyState:function(tt){return{cmdState:tt.cmdState.slice(),f:tt.f}},token:function(tt,je){return je.f(tt,je)},blankLine:function(tt){tt.f=Xe,tt.cmdState.length=0},lineComment:"%"}}),b.defineMIME("text/x-stex","stex"),b.defineMIME("text/x-latex","stex")})},15525:function(Cn,Qt,ee){(function(b){b(ee(89780))})(function(b){"use strict";var Fe={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(qe,Se){var ge=qe.indentUnit,Ee={},Ze=Se.htmlMode?Fe:fe;for(var Pe in Ze)Ee[Pe]=Ze[Pe];for(var Pe in Se)Ee[Pe]=Se[Pe];var ce,Xe;function we(Ce,at){function Ve(Ue){return at.tokenize=Ue,Ue(Ce,at)}var de=Ce.next();if(de=="<")return Ce.eat("!")?Ce.eat("[")?Ce.match("CDATA[")?Ve(je("atom","]]>")):null:Ce.match("--")?Ve(je("comment","-->")):Ce.match("DOCTYPE",!0,!0)?(Ce.eatWhile(/[\w\._\-]/),Ve(Me(1))):null:Ce.eat("?")?(Ce.eatWhile(/[\w\._\-]/),at.tokenize=je("meta","?>"),"meta"):(ce=Ce.eat("/")?"closeTag":"openTag",at.tokenize=St,"tag bracket");if(de=="&"){var Dt;return Ce.eat("#")?Ce.eat("x")?Dt=Ce.eatWhile(/[a-fA-F\d]/)&&Ce.eat(";"):Dt=Ce.eatWhile(/[\d]/)&&Ce.eat(";"):Dt=Ce.eatWhile(/[\w\.\-:]/)&&Ce.eat(";"),Dt?"atom":"error"}else return Ce.eatWhile(/[^&<]/),null}we.isInText=!0;function St(Ce,at){var Ve=Ce.next();if(Ve==">"||Ve=="/"&&Ce.eat(">"))return at.tokenize=we,ce=Ve==">"?"endTag":"selfcloseTag","tag bracket";if(Ve=="=")return ce="equals",null;if(Ve=="<"){at.tokenize=we,at.state=Ot,at.tagName=at.tagStart=null;var de=at.tokenize(Ce,at);return de?de+" tag error":"tag error"}else return/[\'\"]/.test(Ve)?(at.tokenize=tt(Ve),at.stringStartCol=Ce.column(),at.tokenize(Ce,at)):(Ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function tt(Ce){var at=function(Ve,de){for(;!Ve.eol();)if(Ve.next()==Ce){de.tokenize=St;break}return"string"};return at.isInAttribute=!0,at}function je(Ce,at){return function(Ve,de){for(;!Ve.eol();){if(Ve.match(at)){de.tokenize=we;break}Ve.next()}return Ce}}function Me(Ce){return function(at,Ve){for(var de;(de=at.next())!=null;){if(de=="<")return Ve.tokenize=Me(Ce+1),Ve.tokenize(at,Ve);if(de==">")if(Ce==1){Ve.tokenize=we;break}else return Ve.tokenize=Me(Ce-1),Ve.tokenize(at,Ve)}return"meta"}}function Ne(Ce,at,Ve){this.prev=Ce.context,this.tagName=at,this.indent=Ce.indented,this.startOfLine=Ve,(Ee.doNotIndent.hasOwnProperty(at)||Ce.context&&Ce.context.noIndent)&&(this.noIndent=!0)}function it(Ce){Ce.context&&(Ce.context=Ce.context.prev)}function yt(Ce,at){for(var Ve;;){if(!Ce.context||(Ve=Ce.context.tagName,!Ee.contextGrabbers.hasOwnProperty(Ve)||!Ee.contextGrabbers[Ve].hasOwnProperty(at)))return;it(Ce)}}function Ot(Ce,at,Ve){return Ce=="openTag"?(Ve.tagStart=at.column(),We):Ce=="closeTag"?Ie:Ot}function We(Ce,at,Ve){return Ce=="word"?(Ve.tagName=at.current(),Xe="tag",Et):Ee.allowMissingTagName&&Ce=="endTag"?(Xe="tag bracket",Et(Ce,at,Ve)):(Xe="error",We)}function Ie(Ce,at,Ve){if(Ce=="word"){var de=at.current();return Ve.context&&Ve.context.tagName!=de&&Ee.implicitlyClosed.hasOwnProperty(Ve.context.tagName)&&it(Ve),Ve.context&&Ve.context.tagName==de||Ee.matchClosing===!1?(Xe="tag",He):(Xe="tag error",Ge)}else return Ee.allowMissingTagName&&Ce=="endTag"?(Xe="tag bracket",He(Ce,at,Ve)):(Xe="error",Ge)}function He(Ce,at,Ve){return Ce!="endTag"?(Xe="error",He):(it(Ve),Ot)}function Ge(Ce,at,Ve){return Xe="error",He(Ce,at,Ve)}function Et(Ce,at,Ve){if(Ce=="word")return Xe="attribute",ut;if(Ce=="endTag"||Ce=="selfcloseTag"){var de=Ve.tagName,Dt=Ve.tagStart;return Ve.tagName=Ve.tagStart=null,Ce=="selfcloseTag"||Ee.autoSelfClosers.hasOwnProperty(de)?yt(Ve,de):(yt(Ve,de),Ve.context=new Ne(Ve,de,Dt==Ve.indented)),Ot}return Xe="error",Et}function ut(Ce,at,Ve){return Ce=="equals"?et:(Ee.allowMissing||(Xe="error"),Et(Ce,at,Ve))}function et(Ce,at,Ve){return Ce=="string"?ot:Ce=="word"&&Ee.allowUnquoted?(Xe="string",Et):(Xe="error",Et(Ce,at,Ve))}function ot(Ce,at,Ve){return Ce=="string"?ot:Et(Ce,at,Ve)}return{startState:function(Ce){var at={tokenize:we,state:Ot,indented:Ce||0,tagName:null,tagStart:null,context:null};return Ce!=null&&(at.baseIndent=Ce),at},token:function(Ce,at){if(!at.tagName&&Ce.sol()&&(at.indented=Ce.indentation()),Ce.eatSpace())return null;ce=null;var Ve=at.tokenize(Ce,at);return(Ve||ce)&&Ve!="comment"&&(Xe=null,at.state=at.state(ce||Ve,Ce,at),Xe&&(Ve=Xe=="error"?Ve+" error":Xe)),Ve},indent:function(Ce,at,Ve){var de=Ce.context;if(Ce.tokenize.isInAttribute)return Ce.tagStart==Ce.indented?Ce.stringStartCol+1:Ce.indented+ge;if(de&&de.noIndent)return b.Pass;if(Ce.tokenize!=St&&Ce.tokenize!=we)return Ve?Ve.match(/^(\s*)/)[0].length:0;if(Ce.tagName)return Ee.multilineTagIndentPastTag!==!1?Ce.tagStart+Ce.tagName.length+2:Ce.tagStart+ge*(Ee.multilineTagIndentFactor||1);if(Ee.alignCDATA&&/<!\[CDATA\[/.test(at))return 0;var Dt=at&&/^<(\/)?([\w_:\.-]*)/.exec(at);if(Dt&&Dt[1])for(;de;)if(de.tagName==Dt[2]){de=de.prev;break}else if(Ee.implicitlyClosed.hasOwnProperty(de.tagName))de=de.prev;else break;else if(Dt)for(;de;){var Ue=Ee.contextGrabbers[de.tagName];if(Ue&&Ue.hasOwnProperty(Dt[2]))de=de.prev;else break}for(;de&&de.prev&&!de.startOfLine;)de=de.prev;return de?de.indent+ge:Ce.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ee.htmlMode?"html":"xml",helperType:Ee.htmlMode?"html":"xml",skipAttribute:function(Ce){Ce.state==et&&(Ce.state=Et)},xmlCurrentTag:function(Ce){return Ce.tagName?{name:Ce.tagName,close:Ce.type=="closeTag"}:null},xmlCurrentContext:function(Ce){for(var at=[],Ve=Ce.context;Ve;Ve=Ve.prev)Ve.tagName&&at.push(Ve.tagName);return at.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(Cn,Qt,ee){"use strict";ee.d(Qt,{hP:function(){return Ct}});var b=function(ae,ne){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ie){te.__proto__=ie}||function(te,ie){for(var ue in ie)Object.prototype.hasOwnProperty.call(ie,ue)&&(te[ue]=ie[ue])})(ae,ne)};function Fe(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,ie){return new(te||(te=Promise))(function(ue,re){function le(Ae){try{ft(ie.next(Ae))}catch(Le){re(Le)}}function xe(Ae){try{ft(ie.throw(Ae))}catch(Le){re(Le)}}function ft(Ae){var Le;Ae.done?ue(Ae.value):(Le=Ae.value,Le instanceof te?Le:new te(function(Qe){Qe(Le)})).then(le,xe)}ft((ie=ie.apply(ae,ne||[])).next())})}function qe(ae,ne){var te,ie,ue,re,le={label:0,sent:function(){if(1&ue[0])throw ue[1];return ue[1]},trys:[],ops:[]};return re={next:xe(0),throw:xe(1),return:xe(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function xe(ft){return function(Ae){return function(Le){if(te)throw new TypeError("Generator is already executing.");for(;le;)try{if(te=1,ie&&(ue=2&Le[0]?ie.return:Le[0]?ie.throw||((ue=ie.return)&&ue.call(ie),0):ie.next)&&!(ue=ue.call(ie,Le[1])).done)return ue;switch(ie=0,ue&&(Le=[2&Le[0],ue.value]),Le[0]){case 0:case 1:ue=Le;break;case 4:return le.label++,{value:Le[1],done:!1};case 5:le.label++,ie=Le[1],Le=[0];continue;case 7:Le=le.ops.pop(),le.trys.pop();continue;default:if(ue=le.trys,!((ue=ue.length>0&&ue[ue.length-1])||Le[0]!==6&&Le[0]!==2)){le=0;continue}if(Le[0]===3&&(!ue||Le[1]>ue[0]&&Le[1]<ue[3])){le.label=Le[1];break}if(Le[0]===6&&le.label<ue[1]){le.label=ue[1],ue=Le;break}if(ue&&le.label<ue[2]){le.label=ue[2],le.ops.push(Le);break}ue[2]&&le.ops.pop(),le.trys.pop();continue}Le=ne.call(ae,le)}catch(Qe){Le=[6,Qe],ie=0}finally{te=ue=0}if(5&Le[0])throw Le[1];return{value:Le[0]?Le[1]:void 0,done:!0}}([ft,Ae])}}}function Se(){for(var ae=0,ne=0,te=arguments.length;ne<te;ne++)ae+=arguments[ne].length;var ie=Array(ae),ue=0;for(ne=0;ne<te;ne++)for(var re=arguments[ne],le=0,xe=re.length;le<xe;le++,ue++)ie[ue]=re[le];return ie}var ge=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(ne,te){for(var ie=0,ue=te;ie<ue.length;ie++){var re=ue[ie],le=re[0],xe=re[1];ne.setAttribute(le,xe)}},ae.createRect=function(ne,te,ie){var ue=document.createElementNS("http://www.w3.org/2000/svg","rect");return ue.setAttribute("width",ne.toString()),ue.setAttribute("height",te.toString()),ie&&ae.setAttributes(ue,ie),ue},ae.createLine=function(ne,te,ie,ue,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",ie.toString()),le.setAttribute("y2",ue.toString()),re&&ae.setAttributes(le,re),le},ae.createPolygon=function(ne,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ie.setAttribute("points",ne),te&&ae.setAttributes(ie,te),ie},ae.createCircle=function(ne,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return ie.setAttribute("cx",(ne/2).toString()),ie.setAttribute("cy",(ne/2).toString()),ie.setAttribute("r",ne.toString()),te&&ae.setAttributes(ie,te),ie},ae.createEllipse=function(ne,te,ie){var ue=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ue.setAttribute("cx",(ne/2).toString()),ue.setAttribute("cy",(te/2).toString()),ue.setAttribute("rx",(ne/2).toString()),ue.setAttribute("ry",(te/2).toString()),ie&&ae.setAttributes(ue,ie),ue},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,ie,ue,re,le,xe){var ft=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ft,[["id",ne],["orient",te],["markerWidth",ie.toString()],["markerHeight",ue.toString()],["refX",re.toString()],["refY",le.toString()]]),ft.appendChild(xe),ft},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 ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ie.textContent=ne,te&&ae.setAttributes(ie,te),ie},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 ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ie.x=ne,ie.y=te,ie},ae.createPath=function(ne,te){var ie=document.createElementNS("http://www.w3.org/2000/svg","path");return ie.setAttribute("d",ne),te&&ae.setAttributes(ie,te),ie},ae}(),Ee=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,ie){var ue=this;return new Promise(function(re){var le=ie!==void 0?ie:document.createElement("canvas");ne===null&&(ue.markersOnly=!0,ue.naturalSize=!1);var xe=document.createElementNS("http://www.w3.org/2000/svg","svg");xe.setAttribute("xmlns","http://www.w3.org/2000/svg"),xe.setAttribute("width",te.width.baseVal.valueAsString),xe.setAttribute("height",te.height.baseVal.valueAsString),xe.setAttribute("viewBox","0 0 "+te.viewBox.baseVal.width.toString()+" "+te.viewBox.baseVal.height.toString()),xe.innerHTML=te.innerHTML,ue.naturalSize===!0?(xe.width.baseVal.value=ne.naturalWidth,xe.height.baseVal.value=ne.naturalHeight):ue.width!==void 0&&ue.height!==void 0&&(xe.width.baseVal.value=ue.width,xe.height.baseVal.value=ue.height),le.width=xe.width.baseVal.value,le.height=xe.height.baseVal.value;var ft=xe.outerHTML,Ae=le.getContext("2d");ue.markersOnly!==!0&&Ae.drawImage(ne,0,0,le.width,le.height);var Le=window.URL,Qe=new Image(le.width,le.height);Qe.setAttribute("crossOrigin","anonymous");var nt=new Blob([ft],{type:"image/svg+xml"}),bt=Le.createObjectURL(nt);Qe.onload=function(){Ae.drawImage(Qe,0,0),Le.revokeObjectURL(bt);var Oe=le.toDataURL(ue.imageType,ue.imageQuality);re(Oe)},Qe.src=bt})},ae}(),Pe=function(){},ce=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 Xe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new we("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new we("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}(),Xe=function(ae,ne){this.selector=ae,this.style=ne},we=function(ae,ne){this.localName=ae,this.style=ne},St=function(){function ae(ne,te,ie,ue,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=te,this.markerItems=ie,this.uiStyleSettings=ue,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 ie=document.createElement("div");ie.className=this.toolbarBlockStyleClass.name,ie.style.whiteSpace="nowrap",this.uiContainer.appendChild(ie),this.addActionButton(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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 ue=document.createElement("div");ue.className=this.toolbarBlockStyleClass.name,ue.style.whiteSpace="nowrap",ue.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ue),this.addActionButton(ue,'<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(ue,'<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,ie){var ue=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=te,re.setAttribute("data-action",ie),re.addEventListener("click",function(){ue.actionToolbarButtonClicked(re,ie)}),ie){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 we("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 we("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new we("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new we("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 we("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new we("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 we("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new we("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Xe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Xe("."+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(ie){return ie("marker",te)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ne,te){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("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(ie){return ie.getAttribute("data-type-name")===ne});te&&this.setActiveButton(te)},ae.prototype.setCurrentMarker=function(ne){var te=this;this.currentMarker=ne,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){te.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ae}(),tt=function(){function ae(ne,te,ie,ue){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=te,this.uiStyleSettings=ie,this.styles=ue,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new we("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 we("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new we("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new we("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new we("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 we("toolbox-panel-row_colors",`
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new we("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 we("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new we("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Xe("."+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,ie,ue=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+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var le;re.uiStyleSettings=ue.uiStyleSettings;var xe=document.createElement("div");xe.className=ue.toolboxButtonStyleClass.name+" "+((le=ue.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&le!==void 0?le:ue.toolboxButtonStyleColorsClass.name),xe.innerHTML=re.icon,xe.title=re.title,xe.addEventListener("click",function(){ue.panelButtonClick(re)}),ue.panelButtons.push(xe),ue.buttonRow.appendChild(xe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ne){var te=this,ie=-1;if(ne!==this.activePanel){ie=this.panels.indexOf(ne),this.panelRow.innerHTML="";var ue=ne.getUi();ue.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ue),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 xe,ft;re.className=te.toolboxButtonStyleClass.name+" "+(le===ie?""+((xe=te.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&xe!==void 0?xe:te.toolboxActiveButtonStyleColorsClass.name):""+((ft=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ft!==void 0?ft:te.toolboxButtonStyleColorsClass.name))})},ae}(),je=function(ae,ne){this.title=ae,this.icon=ne},Me=function(ae){function ne(te,ie,ue,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=ie,le.currentColor=ue,le.setCurrentColor=le.setCurrentColor.bind(le),le.getColorBox=le.getColorBox.bind(le),le}return Fe(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(ue){var re=te.getColorBox(ue);ie.appendChild(re),te.colorBoxes.push(re)}),ie},ne.prototype.getColorBox=function(te){var ie=this,ue=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-ue,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(){ie.setCurrentColor(te,le)});var xe=document.createElement("div");return xe.style.display="inline-block",xe.style.width=re-2+"px",xe.style.height=re-2+"px",xe.style.backgroundColor=te,xe.style.borderRadius=re/2+"px",te==="transparent"&&(xe.style.fill=this.uiStyleSettings.toolboxAccentColor,xe.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(xe),le},ne.prototype.setCurrentColor=function(te,ie){var ue=this;this.currentColor=te,this.colorBoxes.forEach(function(re){re.style.borderColor=re===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(te)},ne}(je),Ne=function(){function ae(ne,te,ie){this._state="new",this._isSelected=!1,this._container=ne,this._overlayContainer=te,this.globalSettings=ie,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}(),it=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}(),yt=function(){function ae(){this.GRIP_SIZE=10,this.visual=ge.createGroup(),this.visual.appendChild(ge.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ge.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}(),Ot=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}(),We=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||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(ge.createTransform()),re.setupControlBox(),re}return Fe(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 ie=ge.createTransform();this._visual.transform.baseVal.appendItem(ie)},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,ie){ae.prototype.pointerDown.call(this,te,ie),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 ue=this.unrotatePoint(te);if(this.manipulationStartX=ue.x,this.manipulationStartY=ue.y,this.offsetX=ue.x-this.left,this.offsetY=ue.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){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 ie=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",ie==="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 ie=this.unrotatePoint(te);this.state==="creating"?this.resize(te):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate(te)},ne.prototype.resize=function(te){var ie=this.manipulationStartLeft,ue=this.manipulationStartWidth,re=this.manipulationStartTop,le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+te.x-this.manipulationStartX,ue=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ue=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}ue>=0?(this.left=ie,this.width=ue):(this.left=ie+ue,this.width=-ue),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 ie=Math.sign(te.x-this.centerX);this.rotationAngle=180*Math.atan((te.y-this.centerY)/(te.x-this.centerX))/Math.PI+90*ie,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 ie=this.container.getCTM(),ue=ge.createPoint(te.x,te.y);return{x:(ue=ue.matrixTransform(ie)).x,y:ue.y}},ne.prototype.unrotatePoint=function(te){if(this.rotationAngle===0)return te;var ie=this.container.getCTM();ie=ie.inverse();var ue=ge.createPoint(te.x,te.y);return{x:(ue=ue.matrixTransform(ie)).x,y:ue.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=ge.createGroup();var te=ge.createTransform();te.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(te),this.container.appendChild(this.controlBox),this.controlRect=ge.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=ge.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 it,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 yt;return te.visual.transform.baseVal.appendItem(ge.createTransform()),this.controlBox.appendChild(te.visual),te},ne.prototype.positionGrips=function(){var te=this.controlGrips.topLeft.GRIP_SIZE,ie=-te/2,ue=ie,re=(this.width+this.CB_DISTANCE)/2-te/2,le=(this.height+this.CB_DISTANCE)/2-te/2,xe=this.height+this.CB_DISTANCE-te/2,ft=this.width+this.CB_DISTANCE-te/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,ue),this.positionGrip(this.controlGrips.topCenter.visual,re,ue),this.positionGrip(this.controlGrips.topRight.visual,ft,ue),this.positionGrip(this.controlGrips.centerLeft.visual,ie,le),this.positionGrip(this.controlGrips.centerRight.visual,ft,le),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,xe),this.positionGrip(this.controlGrips.bottomCenter.visual,re,xe),this.positionGrip(this.controlGrips.bottomRight.visual,ft,xe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,ue-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(te,ie,ue){var re=te.transform.baseVal.getItem(0);re.setTranslate(ie,ue),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:Ot.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ot.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 ie=te;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ot.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ot.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie);var ue=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:ue.x*te,y:ue.y*ie});this.left=re.x,this.top=re.y,this.width=this.width*te,this.height=this.height*ie,this.adjustControlBox()},ne}(Ne),Ie=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||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 Fe(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=ge.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,ie){ae.prototype.pointerDown.call(this,te,ie),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),ge.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&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&ge.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 ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.setSize()},ne.title="Rectangle marker",ne}(We),He=function(ae){function ne(te,ie,ue,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=ie,le.currentWidth=ue,le.setCurrentWidth=le.setCurrentWidth.bind(le),le}return Fe(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.widths.forEach(function(ue){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=ue===te.currentWidth?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentWidth(ue,re)}),ie.appendChild(re);var le=document.createElement("div");le.innerText=ue.toString(),le.style.marginRight="5px",re.appendChild(le);var xe=document.createElement("div");xe.style.minHeight="20px",xe.style.flexGrow="2",xe.style.display="flex",xe.style.alignItems="center";var ft=document.createElement("hr");ft.style.minWidth="20px",ft.style.border="0px",ft.style.borderTop=ue+"px solid "+te.uiStyleSettings.toolboxColor,ft.style.flexGrow="2",xe.appendChild(ft),re.appendChild(xe),te.widthBoxes.push(re)}),ie},ne.prototype.setCurrentWidth=function(te,ie){var ue=this;this.currentWidth=te,this.widthBoxes.forEach(function(re){re.style.borderColor=re===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(je),Ge=function(ae){function ne(te,ie,ue,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=ie,le.currentStyle=ue,le.setCurrentStyle=le.setCurrentStyle.bind(le),le}return Fe(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.styles.forEach(function(ue){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=ue===te.currentStyle?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentStyle(ue,re)}),ie.appendChild(re);var le=document.createElement("div");le.style.minHeight="20px",le.style.flexGrow="2",le.style.overflow="hidden";var xe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+te.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ue!==""?'stroke-dasharray="'+ue+'"':"")+` />
</svg>`;le.innerHTML=xe,re.appendChild(le),te.styleBoxes.push(re)}),ie},ne.prototype.setCurrentStyle=function(te,ie){var ue=this;this.currentStyle=te,this.styleBoxes.forEach(function(re){re.style.borderColor=re===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(je),Et=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||this;return re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new Me("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new He("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ge("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Fe(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}(Ie),ut=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"},et=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||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 Fe(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,ie){ae.prototype.pointerDown.call(this,te,ie),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(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ne.prototype.pointerUp=function(te){var ie=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",ie==="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=ge.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 yt;return te.visual.transform.baseVal.appendItem(ge.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,ie,ue){var re=te.transform.baseVal.getItem(0);re.setTranslate(ie,ue),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 ie=te;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.x1=this.x1*te,this.y1=this.y1*ie,this.x2=this.x2*te,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},ne}(Ne),ot=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||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=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new Me("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new He("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ge("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Fe(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=ge.createGroup(),this.selectorLine=ge.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ge.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,ie){ae.prototype.pointerDown.call(this,te,ie),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()),ge.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ge.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 ie=te;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.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}(et),Ce=function(ae){function ne(te,ie,ue,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=ie,le.currentFont=ue,le.setCurrentFont=le.setCurrentFont.bind(le),le}return Fe(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.flexGrow="2",this.fonts.forEach(function(ue){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=ue===te.currentFont?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentFont(ue,re)}),ie.appendChild(re);var le=document.createElement("div");le.style.display="flex",le.style.minHeight="20px",le.style.flexGrow="2",le.style.fontFamily=ue,le.style.overflow="hidden";var xe=document.createElement("div");xe.style.whiteSpace="nowrap",xe.style.overflow="hidden",xe.style.textOverflow="ellipsis",xe.innerHTML="The quick brown fox jumps over the lazy dog",le.appendChild(xe),re.appendChild(le),te.fontBoxes.push(re)}),ie},ne.prototype.setCurrentFont=function(te,ie){var ue=this;this.currentFont=te,this.fontBoxes.forEach(function(re){re.style.borderColor=re===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(je),at=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||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=ue.defaultColor,re.fontFamily=ue.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",ue.defaultColorSet,ue.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new Ce("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return Fe(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 ie=!1;return this.textElement.childNodes.forEach(function(ue){ue===te&&(ie=!0)}),ie},ne.prototype.createVisual=function(){this.visual=ge.createGroup(),this.bgRectangle=ge.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ge.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.textElement.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),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(ie){te.textElement.appendChild(ge.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ne.prototype.getTextScale=function(){var te=this.textElement.getBBox(),ie=1;if(te.width>0&&te.height>0){var ue=(1*this.width-this.width*this.padding*2/100)/te.width,re=(1*this.height-this.height*this.padding*2/100)/te.height;ie=Math.min(ue,re)}return ie},ne.prototype.getTextPosition=function(te){var ie=this.textElement.getBBox(),ue=0,re=0;return ie.width>0&&ie.height>0&&(ue=(this.width-ie.width*te)/2,re=this.height/2-ie.height*te/2),{x:ue,y:re}},ne.prototype.sizeText=function(){var te=this.textElement.getBBox(),ie=this.getTextScale(),ue=this.getTextPosition(ie);ue.y-=te.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ue.x+"px, "+ue.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ue.x,ue.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},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&&(ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.prototype.pointerUp=function(te){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,te),this.setSize(),(ie==="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(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat(te.textEditor.style.fontSize);te.textEditor.clientWidth>=Number.parseInt(te.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,te.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var ue=ie.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(ue)),ie.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(),ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ue=this.textElement.getBBox(),re={x:ue.width*te,y:ue.height*te};ie.x-=re.x/2,ie.y-=re.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.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,ie){ae.prototype.dblClick.call(this,te,ie),this.showTextEditor()},ne.prototype.setColor=function(te){this.textElement&&ge.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&&ge.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 ie=te;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),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}(We),Ve=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=ue.defaultColor,re.lineWidth=ue.defaultStrokeWidth,re.pixelRatio=ue.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",ue.defaultColorSet,ue.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new He("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return Fe(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=ge.createGroup(),this.drawingImage=ge.createImage(),this.visual.appendChild(this.drawingImage);var te=ge.createTransform();this.visual.transform.baseVal.appendItem(te),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(te,ie){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,ie)},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),ge.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ge.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),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ue=ie[0],re=ie[1],le=ie[2],xe=ie[3],ft=!1,Ae=0;Ae<this.canvasElement.height;Ae++)for(var Le=0;Le<this.canvasElement.width;Le++)te.data[Ae*this.canvasElement.width*4+4*Le+3]>0&&(ft=!0,Ae<re&&(re=Ae),Le<ue&&(ue=Le),Ae>xe&&(xe=Ae),Le>le&&(le=Le));if(ft){this.left=ue/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(le-ue)/this.pixelRatio,this.height=(xe-re)/this.pixelRatio;var Qe=document.createElement("canvas");Qe.width=le-ue,Qe.height=xe-re,Qe.getContext("2d").putImageData(this.canvasContext.getImageData(ue,re,le-ue,xe-re),0,0),this.drawingImgUrl=Qe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){ge.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ge.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,ie){ae.prototype.scale.call(this,te,ie),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}(We),de=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ue||'<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=ie,re.setCurrentType=re.setCurrentType.bind(re),re}return Fe(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var ue=function(xe){var ft="both";switch(xe){case 0:ft="both";break;case 1:ft="start";break;case 2:ft="end";break;case 3:ft="none"}var Ae=document.createElement("div");if(Ae.style.display="flex",Ae.style.flexGrow="2",Ae.style.alignItems="center",Ae.style.justifyContent="space-between",Ae.style.padding="5px",Ae.style.borderWidth="2px",Ae.style.borderStyle="solid",Ae.style.borderColor=ft===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Ae.addEventListener("click",function(){te.setCurrentType(ft,Ae)}),ie.appendChild(Ae),ft==="both"||ft==="start"){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.minHeight="20px",Le.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>`,Le.style.marginLeft="5px",Ae.appendChild(Le)}var Qe=document.createElement("div");Qe.style.display="flex",Qe.style.alignItems="center",Qe.style.minHeight="20px",Qe.style.flexGrow="2";var nt=document.createElement("hr");if(nt.style.minWidth="20px",nt.style.border="0px",nt.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),nt.style.flexGrow="2",Qe.appendChild(nt),Ae.appendChild(Qe),ft==="both"||ft==="end"){var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.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>`,bt.style.marginRight="5px",Ae.appendChild(bt)}re.typeBoxes.push(Ae)},re=this,le=0;le<4;le++)ue(le);return ie},ne.prototype.setCurrentType=function(te,ie){var ue=this;this.currentType=te,this.typeBoxes.forEach(function(re){re.style.borderColor=re===ie?ue.uiStyleSettings!==void 0?ue.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(je),Dt=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||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 Fe(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,ie){var ue=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return te-ue/2+","+(ie+re/2)+" "+te+","+(ie-re/2)+" "+(te+ue/2)+","+(ie+re/2)},ne.prototype.createTips=function(){this.arrow1=ge.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ge.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ge.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),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",ge.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ge.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 ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate(te,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var ue=this.arrow2.transform.baseVal.getItem(0);ue.setRotate(te+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ue,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 ie=te;this.arrowType=ie.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}(ot),Ue=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||this;return re.fillColor=ue.defaultFillColor,re.strokeWidth=0,re.fillPanel=new Me("Color",ue.defaultColorSet,ue.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return Fe(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}(Ie),st=function(ae){function ne(te,ie,ue,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=ie,le.currentOpacity=ue,le.setCurrentOpacity=le.setCurrentOpacity.bind(le),le}return Fe(ne,ae),ne.prototype.getUi=function(){var te=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(ue){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=ue===te.currentOpacity?te.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){te.setCurrentOpacity(ue,re)}),ie.appendChild(re);var le=document.createElement("div");le.innerText=100*ue+"%",re.appendChild(le),te.opacityBoxes.push(re)}),ie},ne.prototype.setCurrentOpacity=function(te,ie){var ue=this;this.currentOpacity=te,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===ie?ue.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(je),Ut=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=ue.defaultHighlightColor,re.strokeWidth=0,re.opacity=ue.defaultHighlightOpacity,re.fillPanel=new Me("Color",ue.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new st("Opacity",ue.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Fe(ne,ae),ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&ge.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}(Ue),Te='<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>',he='<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>',Nt=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||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=ue.defaultStrokeColor,re.bgColor=ue.defaultFillColor,re.fontFamily=ue.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",ue.defaultColorSet,re.color,Te),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new Me("Fill color",ue.defaultColorSet,re.bgColor,he),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new Ce("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new yt,re.tipGrip.visual.transform.baseVal.appendItem(ge.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return Fe(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(){ge.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ge.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.prototype.pointerDown=function(te,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,te,ie)},ne.prototype.pointerUp=function(te){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,te);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,te),this.setTipPoints(ie),this.positionTip()}},ne.prototype.manipulate=function(te){if(this.tipMoving){var ie=this.unrotatePoint(te);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,te)},ne.prototype.setBgColor=function(te){this.bgRectangle&&this.tip&&(ge.setAttributes(this.bgRectangle,[["fill",te]]),ge.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 ie=Math.min(this.height/2,15),ue=this.height/5;te&&(this.tipPosition={x:ie+ue/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))?(ue=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:0},this.tipBase2Position={x:ie+ue,y:0}):(this.tipBase1Position={x:0,y:ie},this.tipBase2Position={x:0,y:ie+ue}):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))?(ue=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-ue,y:0},this.tipBase2Position={x:this.width-ie,y:0}):(this.tipBase1Position={x:this.width,y:ie},this.tipBase2Position={x:this.width,y:ie+ue}):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))?(ue=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-ue,y:this.height},this.tipBase2Position={x:this.width-ie,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ie-ue},this.tipBase2Position={x:this.width,y:this.height-ie}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ue=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:this.height},this.tipBase2Position={x:ie+ue,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ie},this.tipBase2Position={x:0,y:this.height-ie-ue})},ne.prototype.resize=function(te){ae.prototype.resize.call(this,te),this.positionTip()},ne.prototype.positionTip=function(){ge.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 ie=te;this.bgColor=ie.bgColor,this.tipPosition=ie.tipPosition,ae.prototype.restoreState.call(this,te),this.createTip(),this.setTipPoints()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),this.tipPosition={x:this.tipPosition.x*te,y:this.tipPosition.y*ie},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}(at),Jt=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.fillColor=ue.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",Se(ue.defaultColorSet,["transparent"]),ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Me("Fill color",Se(ue.defaultColorSet,["transparent"]),re.fillColor,he),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new He("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ge("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new st("Opacity",ue.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Fe(ne,ae),ne.prototype.ownsTarget=function(te){return!(!ae.prototype.ownsTarget.call(this,te)&&te!==this.visual)},ne.prototype.createVisual=function(){this.visual=ge.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,ie){ae.prototype.pointerDown.call(this,te,ie),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),ge.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&&ge.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.visual&&ge.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.visual&&ge.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.visual&&ge.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.setOpacity=function(te){this.opacity=te,this.visual&&ge.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 ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),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}(We),Ft=function(ae){function ne(te,ie,ue){return ae.call(this,te,ie,ue)||this}return Fe(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=ge.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(ge.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ge.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(ge.createTransform()),this.visual.appendChild(this.tip2)},ne.prototype.pointerDown=function(te,ie){ae.prototype.pointerDown.call(this,te,ie),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ge.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()]]),ge.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),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate(te,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var ue=this.tip2.transform.baseVal.getItem(0);ue.setRotate(te+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ue,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}(ot),ye=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||this;return re.strokePanel.colors=ue.defaultColorSet,re.fillColor="transparent",re}return Fe(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}(Jt),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}(),lt=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||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=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.strokePanel=new Me("Line color",ue.defaultColorSet,ue.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new He("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ge("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Fe(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=ge.createGroup(),this.selectorCurve=ge.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ge.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,ie){ae.prototype.pointerDown.call(this,te,ie),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(ie)&&(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()),ge.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ge.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ge.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=ge.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ge.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,ie){this.curveX=this.curveX*te,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,te,ie)},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 ie=te;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.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}(et),Xt=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,ie,ue)||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=ue.defaultColor,re.strokeWidth=ue.defaultStrokeWidth,re.strokeDasharray=ue.defaultStrokeDasharray,re.fillColor=ue.defaultFillColor,re.textColor=ue.defaultStrokeColor,re.fontFamily=ue.defaultFontFamily,re.fontSize=ue.defaultCaptionFontSize,re.captionText=ue.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",Se(ue.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new Me("Fill color",Se(ue.defaultColorSet,["transparent"]),re.fillColor,he),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new He("Line width",ue.defaultStrokeWidths,ue.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new Ge("Line style",ue.defaultStrokeDasharrays,ue.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new Ce("Font",ue.defaultFontFamilies,ue.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new Me("Text color",ue.defaultColorSet,re.textColor,Te),re.textColorPanel.onColorChanged=re.setTextColor,re}return Fe(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=ge.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ge.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ge.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=ge.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,ie){ae.prototype.pointerDown.call(this,te,ie),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),ge.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')"]]),ge.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(ie){ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ie){ie.key==="Enter"&&te.finishTextEditing(te.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ie){ie.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&&ge.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&&ge.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),ge.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,ie){ae.prototype.dblClick.call(this,te,ie),this.showTextEditor()},ne.prototype.setStrokeColor=function(te){this.strokeColor=te,this.frame&&ge.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(te),this.stateChanged()},ne.prototype.setFillColor=function(te){this.fillColor=te,this.captionBg&&ge.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(te),this.stateChanged()},ne.prototype.setStrokeWidth=function(te){this.strokeWidth=te,this.frame&&ge.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(te){this.strokeDasharray=te,this.frame&&ge.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 ie=te;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.textColor=ie.textColor,this.fontFamily=ie.fontFamily,this.captionText=ie.captionText,this.fontSize=ie.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,te),this.setSize()},ne.prototype.scale=function(te,ie){ae.prototype.scale.call(this,te,ie),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}(We),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}(),At=function(ae){function ne(te,ie,ue){var re=ae.call(this,te,!1)||this;return re.dataUrl=ie,re.state=ue,re}return Fe(ne,ae),ne}(rt),_e=function(ae){function ne(te,ie,ue){ue===void 0&&(ue=!1);var re=ae.call(this,te,ue)||this;return re.marker=ie,re}return Fe(ne,ae),ne}(rt),Yt=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 ie=this[ne].indexOf(te);ie>-1&&this[ne].splice(ie,1)},ae}(),Ct=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 ut,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 Yt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new ce(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[Et,Ve,Dt,at,ye,Jt,Ut,Nt,Ft,Ue,ot,lt,Xt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Et,Ve,Dt,at,Jt,Ut,Nt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Et,Ve,Dt,at,Ut]},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(ie){if(typeof ie=="string"){var ue=te.ALL_MARKER_TYPES.find(function(re){return re.typeName===ie});ue!==void 0&&te._availableMarkerTypes.push(ue)}else te._availableMarkerTypes.push(ie)})},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(),Ee.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&Pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Pe.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 qe(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 ie=!1;ne||this.eventListeners.beforeclose.forEach(function(ue){var re=new rt(te,!0);ue(re),re.defaultPrevented&&(ie=!0)}),ie||(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(ue){return ue(new rt(te))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ne,te=[],ie=0;ie<arguments.length;ie++)te[ie]=arguments[ie];(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,ie=te<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ne;this.resize(te,ie)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(ne,te){this._isResizing=!0;var ie=ne/this.imageWidth,ue=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(ie,ue),this._isResizing=!1},ae.prototype.scaleMarkers=function(ne,te){var ie,ue=this;this._currentMarker&&this._currentMarker instanceof at?this._currentMarker.scale(ne,te):(ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==ue._currentMarker&&re.scale(ne,te)}),ie!==void 0&&this.setCurrentMarker(ie)},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=[],ie=0;ie<arguments.length;ie++)te[ie]=arguments[ie];this.defs=ge.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 St(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 tt(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(ue){var re=new _e(ne,ne._currentMarker,!0);ue(re),re.defaultPrevented&&(te=!0)}),!te){var ie=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(ue){return ue(new _e(ne,ie))})}}},ae.prototype.clear=function(){var ne=this,te=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(le){var xe=new _e(ne,void 0,!0);le(xe),xe.defaultPrevented&&(te=!0)}),!te)){this.setCurrentMarker();for(var ie=function(le){var xe=ue.markers[le];ue.setCurrentMarker(ue.markers[le]),ue._currentMarker.dispose(),ue.markerImage.removeChild(ue._currentMarker.container),ue.markers.splice(ue.markers.indexOf(ue._currentMarker),1),ue.eventListeners.markerdelete.forEach(function(ft){return ft(new _e(ne,xe))})},ue=this,re=this.markers.length-1;re>=0;re--)ie(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(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===te.width&&ie.height===te.height){var ue=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(te),ue<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(ie){return ie(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(ie){return ie(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,ie=this;return qe(this,function(ue){switch(ue.label){case 0:return[4,this.render()];case 1:return ne=ue.sent(),te=this.getState(),this.eventListeners.render.forEach(function(re){return re(new At(ie,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(ie){return te.markers.push(ie.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(ie){var ue=te._availableMarkerTypes.find(function(le){return le.typeName===ie.typeName});if(ue!==void 0){var re=te.addNewMarker(ue);re.restoreState(ie),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(ie){return ie(new rt(te))})},ae.prototype.addNewMarker=function(ne){var te=ge.createGroup();return this.markerImage.appendChild(te),new ne(te,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(ne){var te,ie=this;(te=typeof ne=="string"?this._availableMarkerTypes.find(function(ue){return ue.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(ue){return ue(new _e(ie,ie._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 Ve&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ve):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ie){return ie(new _e(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(ie){return ie(new _e(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(ie){return ie(new _e(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(ie){return ie(new _e(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(ie){return ie.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(ie){return ie.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 ie=this.markerImage.getBoundingClientRect();return{x:(ne-ie.left)/this.zoomLevel,y:(te-ie.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){Ee.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(Cn,Qt,ee){"use strict";ee.d(Qt,{ZP:function(){return Ee}});var b=ee(72190),Fe=ee(59301),fe=ee(47273),qe=0,Se=(0,fe.Z)();function ge(){var Ze;return Se?(Ze=qe,qe+=1):Ze="TEST_OR_SSR",Ze}function Ee(Ze){var Pe=Fe.useState(),ce=(0,b.Z)(Pe,2),Xe=ce[0],we=ce[1];return Fe.useEffect(function(){we("rc_select_".concat(ge()))},[]),Ze||Xe}},37463:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Ac:function(){return Tt},Xo:function(){return Wt},Wx:function(){return mt},ZP:function(){return An},lk:function(){return Ot}});var b=ee(60499),Fe=ee(77654),fe=ee(18642),qe=ee(85899),Se=ee(72190),ge=ee(42244),Ee=ee(43749),Ze=ee(18929),Pe=ee(48736),ce=ee(59301),Xe=ee(92310),we=ee.n(Xe),St=ee(34280),tt=ee(49658),je=ee(8654),Me=function(It){var ze=It.className,vt=It.customizeIcon,$e=It.customizeIconProps,xt=It.children,De=It.onMouseDown,Pt=It.onClick,kt=typeof vt=="function"?vt($e):vt;return ce.createElement("span",{className:ze,onMouseDown:function(gt){gt.preventDefault(),De==null||De(gt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Pt,"aria-hidden":!0},kt!==void 0?kt:ce.createElement("span",{className:we()(ze.split(/\s+/).map(function(jt){return"".concat(jt,"-icon")}))},xt))},Ne=Me,it=function(It,ze,vt,$e,xt){var De=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Pt=arguments.length>6?arguments[6]:void 0,kt=arguments.length>7?arguments[7]:void 0,jt=ce.useMemo(function(){if((0,Ee.Z)($e)==="object")return $e.clearIcon;if(xt)return xt},[$e,xt]),gt=ce.useMemo(function(){return!!(!De&&$e&&(vt.length||Pt)&&!(kt==="combobox"&&Pt===""))},[$e,De,vt.length,Pt,kt]);return{allowClear:gt,clearIcon:ce.createElement(Ne,{className:"".concat(It,"-clear"),onMouseDown:ze,customizeIcon:jt},"\xD7")}},yt=ce.createContext(null);function Ot(){return ce.useContext(yt)}function We(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,It=ce.useState(!1),ze=(0,Se.Z)(It,2),vt=ze[0],$e=ze[1],xt=ce.useRef(null),De=function(){window.clearTimeout(xt.current)};ce.useEffect(function(){return De},[]);var Pt=function(jt,gt){De(),xt.current=window.setTimeout(function(){$e(jt),gt&&gt()},ct)};return[vt,Pt,De]}function Ie(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,It=ce.useRef(null),ze=ce.useRef(null);ce.useEffect(function(){return function(){window.clearTimeout(ze.current)}},[]);function vt($e){($e||It.current===null)&&(It.current=$e),window.clearTimeout(ze.current),ze.current=window.setTimeout(function(){It.current=null},ct)}return[function(){return It.current},vt]}function He(ct,It,ze,vt){var $e=ce.useRef(null);$e.current={open:It,triggerOpen:ze,customizedTrigger:vt},ce.useEffect(function(){function xt(De){var Pt;if(!((Pt=$e.current)!==null&&Pt!==void 0&&Pt.customizedTrigger)){var kt=De.target;kt.shadowRoot&&De.composed&&(kt=De.composedPath()[0]||kt),$e.current.open&&ct().filter(function(jt){return jt}).every(function(jt){return!jt.contains(kt)&&jt!==kt})&&$e.current.triggerOpen(!1)}}return window.addEventListener("mousedown",xt),function(){return window.removeEventListener("mousedown",xt)}},[])}var Ge=ee(10228);function Et(ct){return ct&&![Ge.Z.ESC,Ge.Z.SHIFT,Ge.Z.BACKSPACE,Ge.Z.TAB,Ge.Z.WIN_KEY,Ge.Z.ALT,Ge.Z.META,Ge.Z.WIN_KEY_RIGHT,Ge.Z.CTRL,Ge.Z.SEMICOLON,Ge.Z.EQUALS,Ge.Z.CAPS_LOCK,Ge.Z.CONTEXT_MENU,Ge.Z.F1,Ge.Z.F2,Ge.Z.F3,Ge.Z.F4,Ge.Z.F5,Ge.Z.F6,Ge.Z.F7,Ge.Z.F8,Ge.Z.F9,Ge.Z.F10,Ge.Z.F11,Ge.Z.F12].includes(ct)}var ut=ee(26112),et=ee(83836);function ot(ct,It,ze){var vt=(0,qe.Z)((0,qe.Z)({},ct),ze?It:{});return Object.keys(It).forEach(function($e){var xt=It[$e];typeof xt=="function"&&(vt[$e]=function(){for(var De,Pt=arguments.length,kt=new Array(Pt),jt=0;jt<Pt;jt++)kt[jt]=arguments[jt];return xt.apply(void 0,kt),(De=ct[$e])===null||De===void 0?void 0:De.call.apply(De,[ct].concat(kt))})}),vt}var Ce=ot,at=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ve=function(It,ze){var vt=It.prefixCls,$e=It.id,xt=It.inputElement,De=It.autoFocus,Pt=It.autoComplete,kt=It.editable,jt=It.activeDescendantId,gt=It.value,ht=It.open,wt=It.attrs,Rt=(0,ge.Z)(It,at),In=xt||ce.createElement("input",null),On=In,Nn=On.ref,tr=On.props;return(0,Pe.Kp)(!("maxLength"in In.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),In=ce.cloneElement(In,(0,qe.Z)((0,qe.Z)((0,qe.Z)({type:"search"},Ce(Rt,tr,!0)),{},{id:$e,ref:(0,je.sQ)(ze,Nn),autoComplete:Pt||"off",autoFocus:De,className:we()("".concat(vt,"-selection-search-input"),tr==null?void 0:tr.className),role:"combobox","aria-expanded":ht||!1,"aria-haspopup":"listbox","aria-owns":"".concat($e,"_list"),"aria-autocomplete":"list","aria-controls":"".concat($e,"_list"),"aria-activedescendant":ht?jt:void 0},wt),{},{value:kt?gt:"",readOnly:!kt,unselectable:kt?null:"on",style:(0,qe.Z)((0,qe.Z)({},tr.style),{},{opacity:kt?null:0})})),In},de=ce.forwardRef(Ve),Dt=de;function Ue(ct){return Array.isArray(ct)?ct:ct!==void 0?[ct]:[]}var st=typeof window!="undefined"&&window.document&&window.document.documentElement,Ut=st;function Te(ct){return ct!=null}function he(ct){return!ct&&ct!==0}function Nt(ct){return["string","number"].includes((0,Ee.Z)(ct))}function Jt(ct){var It=void 0;return ct&&(Nt(ct.title)?It=ct.title.toString():Nt(ct.label)&&(It=ct.label.toString())),It}function Ft(ct,It){Ut?ce.useLayoutEffect(ct,It):ce.useEffect(ct,It)}function ye(ct){var It;return(It=ct.key)!==null&&It!==void 0?It:ct.value}var Ye=function(It){It.preventDefault(),It.stopPropagation()},lt=function(It){var ze=It.id,vt=It.prefixCls,$e=It.values,xt=It.open,De=It.searchValue,Pt=It.autoClearSearchValue,kt=It.inputRef,jt=It.placeholder,gt=It.disabled,ht=It.mode,wt=It.showSearch,Rt=It.autoFocus,In=It.autoComplete,On=It.activeDescendantId,Nn=It.tabIndex,tr=It.removeIcon,dr=It.maxTagCount,mr=It.maxTagTextLength,er=It.maxTagPlaceholder,Yn=er===void 0?function(Kn){return"+ ".concat(Kn.length," ...")}:er,Qn=It.tagRender,rr=It.onToggleOpen,wr=It.onRemove,ar=It.onInputChange,Cr=It.onInputPaste,qn=It.onInputKeyDown,pr=It.onInputMouseDown,vr=It.onInputCompositionStart,Kr=It.onInputCompositionEnd,_r=It.onInputBlur,Wr=ce.useRef(null),Ur=(0,ce.useState)(0),ao=(0,Se.Z)(Ur,2),Hr=ao[0],to=ao[1],Ir=(0,ce.useState)(!1),ro=(0,Se.Z)(Ir,2),ho=ro[0],En=ro[1],Vn="".concat(vt,"-selection"),zr=xt||ht==="multiple"&&Pt===!1||ht==="tags"?De:"",no=ht==="tags"||ht==="multiple"&&Pt===!1||wt&&(xt||ho);Ft(function(){to(Wr.current.scrollWidth)},[zr]);var vo=function(kn,fr,Er,$n,Bn){return ce.createElement("span",{title:Jt(kn),className:we()("".concat(Vn,"-item"),(0,fe.Z)({},"".concat(Vn,"-item-disabled"),Er))},ce.createElement("span",{className:"".concat(Vn,"-item-content")},fr),$n&&ce.createElement(Ne,{className:"".concat(Vn,"-item-remove"),onMouseDown:Ye,onClick:Bn,customizeIcon:tr},"\xD7"))},Dr=function(kn,fr,Er,$n,Bn,_n){var or=function(Oo){Ye(Oo),rr(!xt)};return ce.createElement("span",{onMouseDown:or},Qn({label:fr,value:kn,disabled:Er,closable:$n,onClose:Bn,isMaxTag:!!_n}))},kr=function(kn){var fr=kn.disabled,Er=kn.label,$n=kn.value,Bn=!gt&&!fr,_n=Er;if(typeof mr=="number"&&(typeof Er=="string"||typeof Er=="number")){var or=String(_n);or.length>mr&&(_n="".concat(or.slice(0,mr),"..."))}var eo=function(bo){bo&&bo.stopPropagation(),wr(kn)};return typeof Qn=="function"?Dr($n,_n,fr,Bn,eo):vo(kn,_n,fr,Bn,eo)},lr=function(kn){if(!$e.length)return null;var fr=typeof Yn=="function"?Yn(kn):Yn;return typeof Qn=="function"?Dr(void 0,fr,!1,!1,void 0,!0):vo({title:fr},fr,!1)},wn=ce.createElement("div",{className:"".concat(Vn,"-search"),style:{width:Hr},onFocus:function(){En(!0)},onBlur:function(){En(!1)}},ce.createElement(Dt,{ref:kt,open:xt,prefixCls:vt,id:ze,inputElement:null,disabled:gt,autoFocus:Rt,autoComplete:In,editable:no,activeDescendantId:On,value:zr,onKeyDown:qn,onMouseDown:pr,onChange:ar,onPaste:Cr,onCompositionStart:vr,onCompositionEnd:Kr,onBlur:_r,tabIndex:Nn,attrs:(0,ut.Z)(It,!0)}),ce.createElement("span",{ref:Wr,className:"".concat(Vn,"-search-mirror"),"aria-hidden":!0},zr,"\xA0")),jn=ce.createElement(et.Z,{prefixCls:"".concat(Vn,"-overflow"),data:$e,renderItem:kr,renderRest:lr,suffix:wn,itemKey:ye,maxCount:dr});return ce.createElement("span",{className:"".concat(Vn,"-wrap")},jn,!$e.length&&!zr&&ce.createElement("span",{className:"".concat(Vn,"-placeholder")},jt))},Xt=lt,rt=function(It){var ze=It.inputElement,vt=It.prefixCls,$e=It.id,xt=It.inputRef,De=It.disabled,Pt=It.autoFocus,kt=It.autoComplete,jt=It.activeDescendantId,gt=It.mode,ht=It.open,wt=It.values,Rt=It.placeholder,In=It.tabIndex,On=It.showSearch,Nn=It.searchValue,tr=It.activeValue,dr=It.maxLength,mr=It.onInputKeyDown,er=It.onInputMouseDown,Yn=It.onInputChange,Qn=It.onInputPaste,rr=It.onInputCompositionStart,wr=It.onInputCompositionEnd,ar=It.onInputBlur,Cr=It.title,qn=ce.useState(!1),pr=(0,Se.Z)(qn,2),vr=pr[0],Kr=pr[1],_r=gt==="combobox",Wr=_r||On,Ur=wt[0],ao=Nn||"";_r&&tr&&!vr&&(ao=tr),ce.useEffect(function(){_r&&Kr(!1)},[_r,tr]);var Hr=gt!=="combobox"&&!ht&&!On?!1:!!ao,to=Cr===void 0?Jt(Ur):Cr,Ir=ce.useMemo(function(){return Ur?null:ce.createElement("span",{className:"".concat(vt,"-selection-placeholder"),style:Hr?{visibility:"hidden"}:void 0},Rt)},[Ur,Hr,Rt,vt]);return ce.createElement("span",{className:"".concat(vt,"-selection-wrap")},ce.createElement("span",{className:"".concat(vt,"-selection-search")},ce.createElement(Dt,{ref:xt,prefixCls:vt,id:$e,open:ht,inputElement:ze,disabled:De,autoFocus:Pt,autoComplete:kt,editable:Wr,activeDescendantId:jt,value:ao,onKeyDown:mr,onMouseDown:er,onChange:function(ho){Kr(!0),Yn(ho)},onPaste:Qn,onCompositionStart:rr,onCompositionEnd:wr,onBlur:ar,tabIndex:In,attrs:(0,ut.Z)(It,!0),maxLength:_r?dr:void 0})),!_r&&Ur?ce.createElement("span",{className:"".concat(vt,"-selection-item"),title:to,style:Hr?{visibility:"hidden"}:void 0},Ur.label):null,Ir)},At=rt,_e=function(It,ze){var vt=(0,ce.useRef)(null),$e=(0,ce.useRef)(!1),xt=It.prefixCls,De=It.open,Pt=It.mode,kt=It.showSearch,jt=It.tokenWithEnter,gt=It.disabled,ht=It.prefix,wt=It.autoClearSearchValue,Rt=It.onSearch,In=It.onSearchSubmit,On=It.onToggleOpen,Nn=It.onInputKeyDown,tr=It.onInputBlur,dr=It.domRef;ce.useImperativeHandle(ze,function(){return{focus:function(to){vt.current.focus(to)},blur:function(){vt.current.blur()}}});var mr=Ie(0),er=(0,Se.Z)(mr,2),Yn=er[0],Qn=er[1],rr=function(to){var Ir=to.which,ro=vt.current instanceof HTMLTextAreaElement;!ro&&De&&(Ir===Ge.Z.UP||Ir===Ge.Z.DOWN)&&to.preventDefault(),Nn&&Nn(to),Ir===Ge.Z.ENTER&&Pt==="tags"&&!$e.current&&!De&&(In==null||In(to.target.value)),!(ro&&!De&&~[Ge.Z.UP,Ge.Z.DOWN,Ge.Z.LEFT,Ge.Z.RIGHT].indexOf(Ir))&&Et(Ir)&&On(!0)},wr=function(){Qn(!0)},ar=(0,ce.useRef)(null),Cr=function(to){Rt(to,!0,$e.current)!==!1&&On(!0)},qn=function(){$e.current=!0},pr=function(to){$e.current=!1,Pt!=="combobox"&&Cr(to.target.value)},vr=function(to){var Ir=to.target.value;if(jt&&ar.current&&/[\r\n]/.test(ar.current)){var ro=ar.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ir=Ir.replace(ro,ar.current)}ar.current=null,Cr(Ir)},Kr=function(to){var Ir=to.clipboardData,ro=Ir==null?void 0:Ir.getData("text");ar.current=ro||""},_r=function(to){var Ir=to.target;if(Ir!==vt.current){var ro=document.body.style.msTouchAction!==void 0;ro?setTimeout(function(){vt.current.focus()}):vt.current.focus()}},Wr=function(to){var Ir=Yn();to.target!==vt.current&&!Ir&&!(Pt==="combobox"&&gt)&&to.preventDefault(),(Pt!=="combobox"&&(!kt||!Ir)||!De)&&(De&&wt!==!1&&Rt("",!0,!1),On())},Ur={inputRef:vt,onInputKeyDown:rr,onInputMouseDown:wr,onInputChange:vr,onInputPaste:Kr,onInputCompositionStart:qn,onInputCompositionEnd:pr,onInputBlur:tr},ao=Pt==="multiple"||Pt==="tags"?ce.createElement(Xt,(0,b.Z)({},It,Ur)):ce.createElement(At,(0,b.Z)({},It,Ur));return ce.createElement("div",{ref:dr,className:"".concat(xt,"-selector"),onClick:_r,onMouseDown:Wr},ht&&ce.createElement("div",{className:"".concat(xt,"-prefix")},ht),ao)},Yt=ce.forwardRef(_e),Ct=Yt,ae=ee(68196),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],te=function(It){var ze=It===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ze,adjustY:1},htmlRegion:"scroll"}}},ie=function(It,ze){var vt=It.prefixCls,$e=It.disabled,xt=It.visible,De=It.children,Pt=It.popupElement,kt=It.animation,jt=It.transitionName,gt=It.dropdownStyle,ht=It.dropdownClassName,wt=It.direction,Rt=wt===void 0?"ltr":wt,In=It.placement,On=It.builtinPlacements,Nn=It.dropdownMatchSelectWidth,tr=It.dropdownRender,dr=It.dropdownAlign,mr=It.getPopupContainer,er=It.empty,Yn=It.getTriggerDOMNode,Qn=It.onPopupVisibleChange,rr=It.onPopupMouseEnter,wr=(0,ge.Z)(It,ne),ar="".concat(vt,"-dropdown"),Cr=Pt;tr&&(Cr=tr(Pt));var qn=ce.useMemo(function(){return On||te(Nn)},[On,Nn]),pr=kt?"".concat(ar,"-").concat(kt):jt,vr=typeof Nn=="number",Kr=ce.useMemo(function(){return vr?null:Nn===!1?"minWidth":"width"},[Nn,vr]),_r=gt;vr&&(_r=(0,qe.Z)((0,qe.Z)({},_r),{},{width:Nn}));var Wr=ce.useRef(null);return ce.useImperativeHandle(ze,function(){return{getPopupElement:function(){var ao;return(ao=Wr.current)===null||ao===void 0?void 0:ao.popupElement}}}),ce.createElement(ae.Z,(0,b.Z)({},wr,{showAction:Qn?["click"]:[],hideAction:Qn?["click"]:[],popupPlacement:In||(Rt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:qn,prefixCls:ar,popupTransitionName:pr,popup:ce.createElement("div",{onMouseEnter:rr},Cr),ref:Wr,stretch:Kr,popupAlign:dr,popupVisible:xt,getPopupContainer:mr,popupClassName:we()(ht,(0,fe.Z)({},"".concat(ar,"-empty"),er)),popupStyle:_r,getTriggerDOMNode:Yn,onPopupVisibleChange:Qn}),De)},ue=ce.forwardRef(ie),re=ue,le=ee(48745);function xe(ct,It){var ze=ct.key,vt;return"value"in ct&&(vt=ct.value),ze!=null?ze:vt!==void 0?vt:"rc-index-key-".concat(It)}function ft(ct){return typeof ct!="undefined"&&!Number.isNaN(ct)}function Ae(ct,It){var ze=ct||{},vt=ze.label,$e=ze.value,xt=ze.options,De=ze.groupLabel,Pt=vt||(It?"children":"label");return{label:Pt,value:$e||"value",options:xt||"options",groupLabel:De||Pt}}function Le(ct){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ze=It.fieldNames,vt=It.childrenAsData,$e=[],xt=Ae(ze,!1),De=xt.label,Pt=xt.value,kt=xt.options,jt=xt.groupLabel;function gt(ht,wt){Array.isArray(ht)&&ht.forEach(function(Rt){if(wt||!(kt in Rt)){var In=Rt[Pt];$e.push({key:xe(Rt,$e.length),groupOption:wt,data:Rt,label:Rt[De],value:In})}else{var On=Rt[jt];On===void 0&&vt&&(On=Rt.label),$e.push({key:xe(Rt,$e.length),group:!0,data:Rt,label:On}),gt(Rt[kt],!0)}})}return gt(ct,!1),$e}function Qe(ct){var It=(0,qe.Z)({},ct);return"props"in It||Object.defineProperty(It,"props",{get:function(){return(0,Pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),It}}),It}var nt=function(It,ze,vt){if(!ze||!ze.length)return null;var $e=!1,xt=function Pt(kt,jt){var gt=(0,le.Z)(jt),ht=gt[0],wt=gt.slice(1);if(!ht)return[kt];var Rt=kt.split(ht);return $e=$e||Rt.length>1,Rt.reduce(function(In,On){return[].concat((0,Fe.Z)(In),(0,Fe.Z)(Pt(On,wt)))},[]).filter(Boolean)},De=xt(It,ze);return $e?typeof vt!="undefined"?De.slice(0,vt):De:null},bt=ce.createContext(null),Oe=bt;function Be(ct){var It=ct.visible,ze=ct.values;if(!It)return null;var vt=50;return ce.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ze.slice(0,vt).map(function($e){var xt=$e.label,De=$e.value;return["number","string"].includes((0,Ee.Z)(xt))?xt:De}).join(", ")),ze.length>vt?", ...":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"],Zt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],qt=function(It){return It==="tags"||It==="multiple"},en=ce.forwardRef(function(ct,It){var ze,vt=ct.id,$e=ct.prefixCls,xt=ct.className,De=ct.showSearch,Pt=ct.tagRender,kt=ct.direction,jt=ct.omitDomProps,gt=ct.displayValues,ht=ct.onDisplayValuesChange,wt=ct.emptyOptions,Rt=ct.notFoundContent,In=Rt===void 0?"Not Found":Rt,On=ct.onClear,Nn=ct.mode,tr=ct.disabled,dr=ct.loading,mr=ct.getInputElement,er=ct.getRawInputElement,Yn=ct.open,Qn=ct.defaultOpen,rr=ct.onDropdownVisibleChange,wr=ct.activeValue,ar=ct.onActiveValueChange,Cr=ct.activeDescendantId,qn=ct.searchValue,pr=ct.autoClearSearchValue,vr=ct.onSearch,Kr=ct.onSearchSplit,_r=ct.tokenSeparators,Wr=ct.allowClear,Ur=ct.prefix,ao=ct.suffixIcon,Hr=ct.clearIcon,to=ct.OptionList,Ir=ct.animation,ro=ct.transitionName,ho=ct.dropdownStyle,En=ct.dropdownClassName,Vn=ct.dropdownMatchSelectWidth,zr=ct.dropdownRender,no=ct.dropdownAlign,vo=ct.placement,Dr=ct.builtinPlacements,kr=ct.getPopupContainer,lr=ct.showAction,wn=lr===void 0?[]:lr,jn=ct.onFocus,Kn=ct.onBlur,kn=ct.onKeyUp,fr=ct.onKeyDown,Er=ct.onMouseDown,$n=(0,ge.Z)(ct,zt),Bn=qt(Nn),_n=(De!==void 0?De:Bn)||Nn==="combobox",or=(0,qe.Z)({},$n);Zt.forEach(function(Vo){delete or[Vo]}),jt==null||jt.forEach(function(Vo){delete or[Vo]});var eo=ce.useState(!1),Oo=(0,Se.Z)(eo,2),bo=Oo[0],ko=Oo[1];ce.useEffect(function(){ko((0,tt.Z)())},[]);var Do=ce.useRef(null),Io=ce.useRef(null),Zo=ce.useRef(null),Lo=ce.useRef(null),Ro=ce.useRef(null),si=ce.useRef(!1),xi=We(),Ii=(0,Se.Z)(xi,3),Ti=Ii[0],Ci=Ii[1],oo=Ii[2];ce.useImperativeHandle(It,function(){var Vo,Eo;return{focus:(Vo=Lo.current)===null||Vo===void 0?void 0:Vo.focus,blur:(Eo=Lo.current)===null||Eo===void 0?void 0:Eo.blur,scrollTo:function(la){var Bi;return(Bi=Ro.current)===null||Bi===void 0?void 0:Bi.scrollTo(la)},nativeElement:Do.current||Io.current}});var Xr=ce.useMemo(function(){var Vo;if(Nn!=="combobox")return qn;var Eo=(Vo=gt[0])===null||Vo===void 0?void 0:Vo.value;return typeof Eo=="string"||typeof Eo=="number"?String(Eo):""},[qn,Nn,gt]),qo=Nn==="combobox"&&typeof mr=="function"&&mr()||null,ei=typeof er=="function"&&er(),co=(0,je.x1)(Io,ei==null||(ze=ei.props)===null||ze===void 0?void 0:ze.ref),Ko=ce.useState(!1),Jo=(0,Se.Z)(Ko,2),Co=Jo[0],Ho=Jo[1];(0,St.Z)(function(){Ho(!0)},[]);var Bo=(0,Ze.Z)(!1,{defaultValue:Qn,value:Yn}),Zi=(0,Se.Z)(Bo,2),ha=Zi[0],Wi=Zi[1],Ni=Co?ha:!1,cl=!In&&wt;(tr||cl&&Ni&&Nn==="combobox")&&(Ni=!1);var el=cl?!1:Ni,po=ce.useCallback(function(Vo){var Eo=Vo!==void 0?Vo:!Ni;tr||(Wi(Eo),Ni!==Eo&&(rr==null||rr(Eo)))},[tr,Ni,Wi,rr]),wo=ce.useMemo(function(){return(_r||[]).some(function(Vo){return[`
`,`\r
`].includes(Vo)})},[_r]),lo=ce.useContext(Oe)||{},mo=lo.maxCount,Xo=lo.rawValues,ui=function(Eo,Ki,la){if(!(Bn&&ft(mo)&&(Xo==null?void 0:Xo.size)>=mo)){var Bi=!0,Vi=Eo;ar==null||ar(null);var Aa=nt(Eo,_r,ft(mo)?mo-Xo.size:void 0),Ba=la?null:Aa;return Nn!=="combobox"&&Ba&&(Vi="",Kr==null||Kr(Ba),po(!1),Bi=!1),vr&&Xr!==Vi&&vr(Vi,{source:Ki?"typing":"effect"}),Bi}},Ra=function(Eo){!Eo||!Eo.trim()||vr(Eo,{source:"submit"})};ce.useEffect(function(){!Ni&&!Bn&&Nn!=="combobox"&&ui("",!1,!1)},[Ni]),ce.useEffect(function(){ha&&tr&&Wi(!1),tr&&!si.current&&Ci(!1)},[tr]);var ia=Ie(),_i=(0,Se.Z)(ia,2),Mi=_i[0],Ta=_i[1],Za=ce.useRef(!1),pa=function(Eo){var Ki=Mi(),la=Eo.key,Bi=la==="Enter";if(Bi&&(Nn!=="combobox"&&Eo.preventDefault(),Ni||po(!0)),Ta(!!Xr),la==="Backspace"&&!Ki&&Bn&&!Xr&&gt.length){for(var Vi=(0,Fe.Z)(gt),Aa=null,Ba=Vi.length-1;Ba>=0;Ba-=1){var Wa=Vi[Ba];if(!Wa.disabled){Vi.splice(Ba,1),Aa=Wa;break}}Aa&&ht(Vi,{type:"remove",values:[Aa]})}for(var xa=arguments.length,Ca=new Array(xa>1?xa-1:0),Fa=1;Fa<xa;Fa++)Ca[Fa-1]=arguments[Fa];if(Ni&&(!Bi||!Za.current)){var rl;Bi&&(Za.current=!0),(rl=Ro.current)===null||rl===void 0||rl.onKeyDown.apply(rl,[Eo].concat(Ca))}fr==null||fr.apply(void 0,[Eo].concat(Ca))},Ha=function(Eo){for(var Ki=arguments.length,la=new Array(Ki>1?Ki-1:0),Bi=1;Bi<Ki;Bi++)la[Bi-1]=arguments[Bi];if(Ni){var Vi;(Vi=Ro.current)===null||Vi===void 0||Vi.onKeyUp.apply(Vi,[Eo].concat(la))}Eo.key==="Enter"&&(Za.current=!1),kn==null||kn.apply(void 0,[Eo].concat(la))},_a=function(Eo){var Ki=gt.filter(function(la){return la!==Eo});ht(Ki,{type:"remove",values:[Eo]})},Na=function(){Za.current=!1},dl=ce.useRef(!1),ms=function(){Ci(!0),tr||(jn&&!dl.current&&jn.apply(void 0,arguments),wn.includes("focus")&&po(!0)),dl.current=!0},Jl=function(){si.current=!0,Ci(!1,function(){dl.current=!1,si.current=!1,po(!1)}),!tr&&(Xr&&(Nn==="tags"?vr(Xr,{source:"submit"}):Nn==="multiple"&&vr("",{source:"blur"})),Kn&&Kn.apply(void 0,arguments))},ja=[];ce.useEffect(function(){return function(){ja.forEach(function(Vo){return clearTimeout(Vo)}),ja.splice(0,ja.length)}},[]);var tl=function(Eo){var Ki,la=Eo.target,Bi=(Ki=Zo.current)===null||Ki===void 0?void 0:Ki.getPopupElement();if(Bi&&Bi.contains(la)){var Vi=setTimeout(function(){var xa=ja.indexOf(Vi);if(xa!==-1&&ja.splice(xa,1),oo(),!bo&&!Bi.contains(document.activeElement)){var Ca;(Ca=Lo.current)===null||Ca===void 0||Ca.focus()}});ja.push(Vi)}for(var Aa=arguments.length,Ba=new Array(Aa>1?Aa-1:0),Wa=1;Wa<Aa;Wa++)Ba[Wa-1]=arguments[Wa];Er==null||Er.apply(void 0,[Eo].concat(Ba))},Ma=ce.useState({}),vs=(0,Se.Z)(Ma,2),kl=vs[1];function Ql(){kl({})}var ql;ei&&(ql=function(Eo){po(Eo)}),He(function(){var Vo;return[Do.current,(Vo=Zo.current)===null||Vo===void 0?void 0:Vo.getPopupElement()]},el,po,!!ei);var Hs=ce.useMemo(function(){return(0,qe.Z)((0,qe.Z)({},ct),{},{notFoundContent:In,open:Ni,triggerOpen:el,id:vt,showSearch:_n,multiple:Bn,toggleOpen:po})},[ct,In,el,Ni,vt,_n,Bn,po]),Ll=!!ao||dr,$a;Ll&&($a=ce.createElement(Ne,{className:we()("".concat($e,"-arrow"),(0,fe.Z)({},"".concat($e,"-arrow-loading"),dr)),customizeIcon:ao,customizeIconProps:{loading:dr,searchValue:Xr,open:Ni,focused:Ti,showSearch:_n}}));var fl=function(){var Eo;On==null||On(),(Eo=Lo.current)===null||Eo===void 0||Eo.focus(),ht([],{type:"clear",values:gt}),ui("",!1,!1)},xl=it($e,fl,gt,Wr,Hr,tr,Xr,Nn),Rl=xl.allowClear,hl=xl.clearIcon,Al=ce.createElement(to,{ref:Ro}),es=we()($e,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($e,"-focused"),Ti),"".concat($e,"-multiple"),Bn),"".concat($e,"-single"),!Bn),"".concat($e,"-allow-clear"),Wr),"".concat($e,"-show-arrow"),Ll),"".concat($e,"-disabled"),tr),"".concat($e,"-loading"),dr),"".concat($e,"-open"),Ni),"".concat($e,"-customize-input"),qo),"".concat($e,"-show-search"),_n)),nl=ce.createElement(re,{ref:Zo,disabled:tr,prefixCls:$e,visible:el,popupElement:Al,animation:Ir,transitionName:ro,dropdownStyle:ho,dropdownClassName:En,direction:kt,dropdownMatchSelectWidth:Vn,dropdownRender:zr,dropdownAlign:no,placement:vo,builtinPlacements:Dr,getPopupContainer:kr,empty:wt,getTriggerDOMNode:function(Eo){return Io.current||Eo},onPopupVisibleChange:ql,onPopupMouseEnter:Ql},ei?ce.cloneElement(ei,{ref:co}):ce.createElement(Ct,(0,b.Z)({},ct,{domRef:Io,prefixCls:$e,inputElement:qo,ref:Lo,id:vt,prefix:Ur,showSearch:_n,autoClearSearchValue:pr,mode:Nn,activeDescendantId:Cr,tagRender:Pt,values:gt,open:Ni,onToggleOpen:po,activeValue:wr,searchValue:Xr,onSearch:ui,onSearchSubmit:Ra,onRemove:_a,tokenWithEnter:wo,onInputBlur:Na}))),aa;return ei?aa=nl:aa=ce.createElement("div",(0,b.Z)({className:es},or,{ref:Do,onMouseDown:tl,onKeyDown:pa,onKeyUp:Ha,onFocus:ms,onBlur:Jl}),ce.createElement(Be,{visible:Ti&&!Ni,values:gt}),nl,$a,Rl&&hl),ce.createElement(yt.Provider,{value:Hs},aa)}),Tt=en,an=function(){return null};an.isSelectOptGroup=!0;var Wt=an,Ke=function(){return null};Ke.isSelectOption=!0;var mt=Ke,$t=ee(80547),nn=ee(2738),Re=ee(48911);function pt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Mt=["disabled","title","children","style","className"];function Kt(ct){return typeof ct=="string"||typeof ct=="number"}var cn=function(It,ze){var vt=Ot(),$e=vt.prefixCls,xt=vt.id,De=vt.open,Pt=vt.multiple,kt=vt.mode,jt=vt.searchValue,gt=vt.toggleOpen,ht=vt.notFoundContent,wt=vt.onPopupScroll,Rt=ce.useContext(Oe),In=Rt.maxCount,On=Rt.flattenOptions,Nn=Rt.onActiveValue,tr=Rt.defaultActiveFirstOption,dr=Rt.onSelect,mr=Rt.menuItemSelectedIcon,er=Rt.rawValues,Yn=Rt.fieldNames,Qn=Rt.virtual,rr=Rt.direction,wr=Rt.listHeight,ar=Rt.listItemHeight,Cr=Rt.optionRender,qn="".concat($e,"-item"),pr=(0,$t.Z)(function(){return On},[De,On],function(lr,wn){return wn[0]&&lr[1]!==wn[1]}),vr=ce.useRef(null),Kr=ce.useMemo(function(){return Pt&&ft(In)&&(er==null?void 0:er.size)>=In},[Pt,In,er==null?void 0:er.size]),_r=function(wn){wn.preventDefault()},Wr=function(wn){var jn;(jn=vr.current)===null||jn===void 0||jn.scrollTo(typeof wn=="number"?{index:wn}:wn)},Ur=ce.useCallback(function(lr){return kt==="combobox"?!1:er.has(lr)},[kt,(0,Fe.Z)(er).toString(),er.size]),ao=function(wn){for(var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Kn=pr.length,kn=0;kn<Kn;kn+=1){var fr=(wn+kn*jn+Kn)%Kn,Er=pr[fr]||{},$n=Er.group,Bn=Er.data;if(!$n&&!(Bn!=null&&Bn.disabled)&&(Ur(Bn.value)||!Kr))return fr}return-1},Hr=ce.useState(function(){return ao(0)}),to=(0,Se.Z)(Hr,2),Ir=to[0],ro=to[1],ho=function(wn){var jn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ro(wn);var Kn={source:jn?"keyboard":"mouse"},kn=pr[wn];if(!kn){Nn(null,-1,Kn);return}Nn(kn.value,wn,Kn)};(0,ce.useEffect)(function(){ho(tr!==!1?ao(0):-1)},[pr.length,jt]);var En=ce.useCallback(function(lr){return kt==="combobox"?String(lr).toLowerCase()===jt.toLowerCase():er.has(lr)},[kt,jt,(0,Fe.Z)(er).toString(),er.size]);(0,ce.useEffect)(function(){var lr=setTimeout(function(){if(!Pt&&De&&er.size===1){var jn=Array.from(er)[0],Kn=pr.findIndex(function(kn){var fr=kn.data;return jt?String(fr.value).startsWith(jt):fr.value===jn});Kn!==-1&&(ho(Kn),Wr(Kn))}});if(De){var wn;(wn=vr.current)===null||wn===void 0||wn.scrollTo(void 0)}return function(){return clearTimeout(lr)}},[De,jt]);var Vn=function(wn){wn!==void 0&&dr(wn,{selected:!er.has(wn)}),Pt||gt(!1)};if(ce.useImperativeHandle(ze,function(){return{onKeyDown:function(wn){var jn=wn.which,Kn=wn.ctrlKey;switch(jn){case Ge.Z.N:case Ge.Z.P:case Ge.Z.UP:case Ge.Z.DOWN:{var kn=0;if(jn===Ge.Z.UP?kn=-1:jn===Ge.Z.DOWN?kn=1:pt()&&Kn&&(jn===Ge.Z.N?kn=1:jn===Ge.Z.P&&(kn=-1)),kn!==0){var fr=ao(Ir+kn,kn);Wr(fr),ho(fr,!0)}break}case Ge.Z.TAB:case Ge.Z.ENTER:{var Er,$n=pr[Ir];$n&&!($n!=null&&(Er=$n.data)!==null&&Er!==void 0&&Er.disabled)&&!Kr?Vn($n.value):Vn(void 0),De&&wn.preventDefault();break}case Ge.Z.ESC:gt(!1),De&&wn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(wn){Wr(wn)}}}),pr.length===0)return ce.createElement("div",{role:"listbox",id:"".concat(xt,"_list"),className:"".concat(qn,"-empty"),onMouseDown:_r},ht);var zr=Object.keys(Yn).map(function(lr){return Yn[lr]}),no=function(wn){return wn.label};function vo(lr,wn){var jn=lr.group;return{role:jn?"presentation":"option",id:"".concat(xt,"_list_").concat(wn)}}var Dr=function(wn){var jn=pr[wn];if(!jn)return null;var Kn=jn.data||{},kn=Kn.value,fr=jn.group,Er=(0,ut.Z)(Kn,!0),$n=no(jn);return jn?ce.createElement("div",(0,b.Z)({"aria-label":typeof $n=="string"&&!fr?$n:null},Er,{key:wn},vo(jn,wn),{"aria-selected":En(kn)}),kn):null},kr={role:"listbox",id:"".concat(xt,"_list")};return ce.createElement(ce.Fragment,null,Qn&&ce.createElement("div",(0,b.Z)({},kr,{style:{height:0,width:0,overflow:"hidden"}}),Dr(Ir-1),Dr(Ir),Dr(Ir+1)),ce.createElement(Re.Z,{itemKey:"key",ref:vr,data:pr,height:wr,itemHeight:ar,fullHeight:!1,onMouseDown:_r,onScroll:wt,virtual:Qn,direction:rr,innerProps:Qn?null:kr},function(lr,wn){var jn=lr.group,Kn=lr.groupOption,kn=lr.data,fr=lr.label,Er=lr.value,$n=kn.key;if(jn){var Bn,_n=(Bn=kn.title)!==null&&Bn!==void 0?Bn:Kt(fr)?fr.toString():void 0;return ce.createElement("div",{className:we()(qn,"".concat(qn,"-group"),kn.className),title:_n},fr!==void 0?fr:$n)}var or=kn.disabled,eo=kn.title,Oo=kn.children,bo=kn.style,ko=kn.className,Do=(0,ge.Z)(kn,Mt),Io=(0,nn.Z)(Do,zr),Zo=Ur(Er),Lo=or||!Zo&&Kr,Ro="".concat(qn,"-option"),si=we()(qn,Ro,ko,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Ro,"-grouped"),Kn),"".concat(Ro,"-active"),Ir===wn&&!Lo),"".concat(Ro,"-disabled"),Lo),"".concat(Ro,"-selected"),Zo)),xi=no(lr),Ii=!mr||typeof mr=="function"||Zo,Ti=typeof xi=="number"?xi:xi||Er,Ci=Kt(Ti)?Ti.toString():void 0;return eo!==void 0&&(Ci=eo),ce.createElement("div",(0,b.Z)({},(0,ut.Z)(Io),Qn?{}:vo(lr,wn),{"aria-selected":En(Er),className:si,title:Ci,onMouseMove:function(){Ir===wn||Lo||ho(wn)},onClick:function(){Lo||Vn(Er)},style:bo}),ce.createElement("div",{className:"".concat(Ro,"-content")},typeof Cr=="function"?Cr(lr,{index:wn}):Ti),ce.isValidElement(mr)||Zo,Ii&&ce.createElement(Ne,{className:"".concat(qn,"-option-state"),customizeIcon:mr,customizeIconProps:{value:Er,disabled:Lo,isSelected:Zo}},Zo?"\u2713":null))}))},Pn=ce.forwardRef(cn),Rn=Pn,Fn=function(ct,It){var ze=ce.useRef({values:new Map,options:new Map}),vt=ce.useMemo(function(){var xt=ze.current,De=xt.values,Pt=xt.options,kt=ct.map(function(ht){if(ht.label===void 0){var wt;return(0,qe.Z)((0,qe.Z)({},ht),{},{label:(wt=De.get(ht.value))===null||wt===void 0?void 0:wt.label})}return ht}),jt=new Map,gt=new Map;return kt.forEach(function(ht){jt.set(ht.value,ht),gt.set(ht.value,It.get(ht.value)||Pt.get(ht.value))}),ze.current.values=jt,ze.current.options=gt,kt},[ct,It]),$e=ce.useCallback(function(xt){return It.get(xt)||ze.current.options.get(xt)},[It]);return[vt,$e]};function vn(ct,It){return Ue(ct).join("").toUpperCase().includes(It)}var Mn=function(ct,It,ze,vt,$e){return ce.useMemo(function(){if(!ze||vt===!1)return ct;var xt=It.options,De=It.label,Pt=It.value,kt=[],jt=typeof vt=="function",gt=ze.toUpperCase(),ht=jt?vt:function(Rt,In){return $e?vn(In[$e],gt):In[xt]?vn(In[De!=="children"?De:"label"],gt):vn(In[Pt],gt)},wt=jt?function(Rt){return Qe(Rt)}:function(Rt){return Rt};return ct.forEach(function(Rt){if(Rt[xt]){var In=ht(ze,wt(Rt));if(In)kt.push(Rt);else{var On=Rt[xt].filter(function(Nn){return ht(ze,wt(Nn))});On.length&&kt.push((0,qe.Z)((0,qe.Z)({},Rt),{},(0,fe.Z)({},xt,On)))}return}ht(ze,wt(Rt))&&kt.push(Rt)}),kt},[ct,vt,$e,ze,It])},dn=ee(6551),Vt=ee(11592),tn=["children","value"],on=["children"];function _t(ct){var It=ct,ze=It.key,vt=It.props,$e=vt.children,xt=vt.value,De=(0,ge.Z)(vt,tn);return(0,qe.Z)({key:ze,value:xt!==void 0?xt:ze,children:$e},De)}function hn(ct){var It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Vt.Z)(ct).map(function(ze,vt){if(!ce.isValidElement(ze)||!ze.type)return null;var $e=ze,xt=$e.type.isSelectOptGroup,De=$e.key,Pt=$e.props,kt=Pt.children,jt=(0,ge.Z)(Pt,on);return It||!xt?_t(ze):(0,qe.Z)((0,qe.Z)({key:"__RC_SELECT_GRP__".concat(De===null?vt:De,"__"),label:De},jt),{},{options:hn(kt)})}).filter(function(ze){return ze})}var mn=function(It,ze,vt,$e,xt){return ce.useMemo(function(){var De=It,Pt=!It;Pt&&(De=hn(ze));var kt=new Map,jt=new Map,gt=function(Rt,In,On){On&&typeof On=="string"&&Rt.set(In[On],In)},ht=function wt(Rt){for(var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,On=0;On<Rt.length;On+=1){var Nn=Rt[On];!Nn[vt.options]||In?(kt.set(Nn[vt.value],Nn),gt(jt,Nn,vt.label),gt(jt,Nn,$e),gt(jt,Nn,xt)):wt(Nn[vt.options],!0)}};return ht(De),{options:De,valueOptions:kt,labelOptions:jt}},[It,ze,vt,$e,xt])},Sn=mn;function zn(ct){var It=ce.useRef();It.current=ct;var ze=ce.useCallback(function(){return It.current.apply(It,arguments)},[]);return ze}function Wn(ct){var It=ct.mode,ze=ct.options,vt=ct.children,$e=ct.backfill,xt=ct.allowClear,De=ct.placeholder,Pt=ct.getInputElement,kt=ct.showSearch,jt=ct.onSearch,gt=ct.defaultOpen,ht=ct.autoFocus,wt=ct.labelInValue,Rt=ct.value,In=ct.inputValue,On=ct.optionLabelProp,Nn=isMultiple(It),tr=kt!==void 0?kt:Nn||It==="combobox",dr=ze||convertChildrenToData(vt);if(warning(It!=="tags"||dr.every(function(Qn){return!Qn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),It==="tags"||It==="combobox"){var mr=dr.some(function(Qn){return Qn.options?Qn.options.some(function(rr){return typeof("value"in rr?rr.value:rr.key)=="number"}):typeof("value"in Qn?Qn.value:Qn.key)=="number"});warning(!mr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(It!=="combobox"||!On,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(It==="combobox"||!$e,"`backfill` only works with `combobox` mode."),warning(It==="combobox"||!Pt,"`getInputElement` only work with `combobox` mode."),noteOnce(It!=="combobox"||!Pt||!xt||!De,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),jt&&!tr&&It!=="combobox"&&It!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!gt||ht,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Rt!=null){var er=toArray(Rt);warning(!wt||er.every(function(Qn){return _typeof(Qn)==="object"&&("key"in Qn||"value"in Qn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Nn||Array.isArray(Rt),"`value` should be array when `mode` is `multiple` or `tags`")}if(vt){var Yn=null;toNodeArray(vt).some(function(Qn){if(!React.isValidElement(Qn)||!Qn.type)return!1;var rr=Qn,wr=rr.type;if(wr.isSelectOption)return!1;if(wr.isSelectOptGroup){var ar=toNodeArray(Qn.props.children).every(function(Cr){return!React.isValidElement(Cr)||!Qn.type||Cr.type.isSelectOption?!0:(Yn=Cr.type,!1)});return!ar}return Yn=wr,!0}),Yn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Yn.displayName||Yn.name||Yn,"`.")),warning(In===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Zn(ct,It){if(ct){var ze=function vt($e){for(var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=0;De<$e.length;De++){var Pt=$e[De];if(Pt[It==null?void 0:It.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!xt&&Array.isArray(Pt[It==null?void 0:It.options])&&vt(Pt[It==null?void 0:It.options],!0))break}};ze(ct)}}var Jn=null,Gn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],hr=["inputValue"];function cr(ct){return!ct||(0,Ee.Z)(ct)!=="object"}var sn=ce.forwardRef(function(ct,It){var ze=ct.id,vt=ct.mode,$e=ct.prefixCls,xt=$e===void 0?"rc-select":$e,De=ct.backfill,Pt=ct.fieldNames,kt=ct.inputValue,jt=ct.searchValue,gt=ct.onSearch,ht=ct.autoClearSearchValue,wt=ht===void 0?!0:ht,Rt=ct.onSelect,In=ct.onDeselect,On=ct.dropdownMatchSelectWidth,Nn=On===void 0?!0:On,tr=ct.filterOption,dr=ct.filterSort,mr=ct.optionFilterProp,er=ct.optionLabelProp,Yn=ct.options,Qn=ct.optionRender,rr=ct.children,wr=ct.defaultActiveFirstOption,ar=ct.menuItemSelectedIcon,Cr=ct.virtual,qn=ct.direction,pr=ct.listHeight,vr=pr===void 0?200:pr,Kr=ct.listItemHeight,_r=Kr===void 0?20:Kr,Wr=ct.labelRender,Ur=ct.value,ao=ct.defaultValue,Hr=ct.labelInValue,to=ct.onChange,Ir=ct.maxCount,ro=(0,ge.Z)(ct,Gn),ho=(0,dn.ZP)(ze),En=qt(vt),Vn=!!(!Yn&&rr),zr=ce.useMemo(function(){return tr===void 0&&vt==="combobox"?!1:tr},[tr,vt]),no=ce.useMemo(function(){return Ae(Pt,Vn)},[JSON.stringify(Pt),Vn]),vo=(0,Ze.Z)("",{value:jt!==void 0?jt:kt,postState:function(wo){return wo||""}}),Dr=(0,Se.Z)(vo,2),kr=Dr[0],lr=Dr[1],wn=Sn(Yn,rr,no,mr,er),jn=wn.valueOptions,Kn=wn.labelOptions,kn=wn.options,fr=ce.useCallback(function(po){var wo=Ue(po);return wo.map(function(lo){var mo,Xo,ui,Ra,ia;if(cr(lo))mo=lo;else{var _i;ui=lo.key,Xo=lo.label,mo=(_i=lo.value)!==null&&_i!==void 0?_i:ui}var Mi=jn.get(mo);if(Mi){var Ta;if(Xo===void 0&&(Xo=Mi==null?void 0:Mi[er||no.label]),ui===void 0&&(ui=(Ta=Mi==null?void 0:Mi.key)!==null&&Ta!==void 0?Ta:mo),Ra=Mi==null?void 0:Mi.disabled,ia=Mi==null?void 0:Mi.title,0)var Za}return{label:Xo,value:mo,key:ui,disabled:Ra,title:ia}})},[no,er,jn]),Er=(0,Ze.Z)(ao,{value:Ur}),$n=(0,Se.Z)(Er,2),Bn=$n[0],_n=$n[1],or=ce.useMemo(function(){var po,wo=En&&Bn===null?[]:Bn,lo=fr(wo);return vt==="combobox"&&he((po=lo[0])===null||po===void 0?void 0:po.value)?[]:lo},[Bn,fr,vt,En]),eo=Fn(or,jn),Oo=(0,Se.Z)(eo,2),bo=Oo[0],ko=Oo[1],Do=ce.useMemo(function(){if(!vt&&bo.length===1){var po=bo[0];if(po.value===null&&(po.label===null||po.label===void 0))return[]}return bo.map(function(wo){var lo;return(0,qe.Z)((0,qe.Z)({},wo),{},{label:(lo=typeof Wr=="function"?Wr(wo):wo.label)!==null&&lo!==void 0?lo:wo.value})})},[vt,bo,Wr]),Io=ce.useMemo(function(){return new Set(bo.map(function(po){return po.value}))},[bo]);ce.useEffect(function(){if(vt==="combobox"){var po,wo=(po=bo[0])===null||po===void 0?void 0:po.value;lr(Te(wo)?String(wo):"")}},[bo]);var Zo=zn(function(po,wo){var lo=wo!=null?wo:po;return(0,fe.Z)((0,fe.Z)({},no.value,po),no.label,lo)}),Lo=ce.useMemo(function(){if(vt!=="tags")return kn;var po=(0,Fe.Z)(kn),wo=function(mo){return jn.has(mo)};return(0,Fe.Z)(bo).sort(function(lo,mo){return lo.value<mo.value?-1:1}).forEach(function(lo){var mo=lo.value;wo(mo)||po.push(Zo(mo,lo.label))}),po},[Zo,kn,jn,bo,vt]),Ro=Mn(Lo,no,kr,zr,mr),si=ce.useMemo(function(){return vt!=="tags"||!kr||Ro.some(function(po){return po[mr||"value"]===kr})||Ro.some(function(po){return po[no.value]===kr})?Ro:[Zo(kr)].concat((0,Fe.Z)(Ro))},[Zo,mr,vt,Ro,kr,no]),xi=function po(wo){var lo=(0,Fe.Z)(wo).sort(function(mo,Xo){return dr(mo,Xo,{searchValue:kr})});return lo.map(function(mo){return Array.isArray(mo.options)?(0,qe.Z)((0,qe.Z)({},mo),{},{options:mo.options.length>0?po(mo.options):mo.options}):mo})},Ii=ce.useMemo(function(){return dr?xi(si):si},[si,dr,kr]),Ti=ce.useMemo(function(){return Le(Ii,{fieldNames:no,childrenAsData:Vn})},[Ii,no,Vn]),Ci=function(wo){var lo=fr(wo);if(_n(lo),to&&(lo.length!==bo.length||lo.some(function(ui,Ra){var ia;return((ia=bo[Ra])===null||ia===void 0?void 0:ia.value)!==(ui==null?void 0:ui.value)}))){var mo=Hr?lo:lo.map(function(ui){return ui.value}),Xo=lo.map(function(ui){return Qe(ko(ui.value))});to(En?mo:mo[0],En?Xo:Xo[0])}},oo=ce.useState(null),Xr=(0,Se.Z)(oo,2),qo=Xr[0],ei=Xr[1],co=ce.useState(0),Ko=(0,Se.Z)(co,2),Jo=Ko[0],Co=Ko[1],Ho=wr!==void 0?wr:vt!=="combobox",Bo=ce.useCallback(function(po,wo){var lo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mo=lo.source,Xo=mo===void 0?"keyboard":mo;Co(wo),De&&vt==="combobox"&&po!==null&&Xo==="keyboard"&&ei(String(po))},[De,vt]),Zi=function(wo,lo,mo){var Xo=function(){var _a,Na=ko(wo);return[Hr?{label:Na==null?void 0:Na[no.label],value:wo,key:(_a=Na==null?void 0:Na.key)!==null&&_a!==void 0?_a:wo}:wo,Qe(Na)]};if(lo&&Rt){var ui=Xo(),Ra=(0,Se.Z)(ui,2),ia=Ra[0],_i=Ra[1];Rt(ia,_i)}else if(!lo&&In&&mo!=="clear"){var Mi=Xo(),Ta=(0,Se.Z)(Mi,2),Za=Ta[0],pa=Ta[1];In(Za,pa)}},ha=zn(function(po,wo){var lo,mo=En?wo.selected:!0;mo?lo=En?[].concat((0,Fe.Z)(bo),[po]):[po]:lo=bo.filter(function(Xo){return Xo.value!==po}),Ci(lo),Zi(po,mo),vt==="combobox"?ei(""):(!qt||wt)&&(lr(""),ei(""))}),Wi=function(wo,lo){Ci(wo);var mo=lo.type,Xo=lo.values;(mo==="remove"||mo==="clear")&&Xo.forEach(function(ui){Zi(ui.value,!1,mo)})},Ni=function(wo,lo){if(lr(wo),ei(null),lo.source==="submit"){var mo=(wo||"").trim();if(mo){var Xo=Array.from(new Set([].concat((0,Fe.Z)(Io),[mo])));Ci(Xo),Zi(mo,!0),lr("")}return}lo.source!=="blur"&&(vt==="combobox"&&Ci(wo),gt==null||gt(wo))},cl=function(wo){var lo=wo;vt!=="tags"&&(lo=wo.map(function(Xo){var ui=Kn.get(Xo);return ui==null?void 0:ui.value}).filter(function(Xo){return Xo!==void 0}));var mo=Array.from(new Set([].concat((0,Fe.Z)(Io),(0,Fe.Z)(lo))));Ci(mo),mo.forEach(function(Xo){Zi(Xo,!0)})},el=ce.useMemo(function(){var po=Cr!==!1&&Nn!==!1;return(0,qe.Z)((0,qe.Z)({},wn),{},{flattenOptions:Ti,onActiveValue:Bo,defaultActiveFirstOption:Ho,onSelect:ha,menuItemSelectedIcon:ar,rawValues:Io,fieldNames:no,virtual:po,direction:qn,listHeight:vr,listItemHeight:_r,childrenAsData:Vn,maxCount:Ir,optionRender:Qn})},[Ir,wn,Ti,Bo,Ho,ha,ar,Io,no,Cr,Nn,qn,vr,_r,Vn,Qn]);return ce.createElement(Oe.Provider,{value:el},ce.createElement(Tt,(0,b.Z)({},ro,{id:ho,prefixCls:xt,ref:It,omitDomProps:hr,mode:vt,displayValues:Do,onDisplayValuesChange:Wi,direction:qn,searchValue:kr,onSearch:Ni,autoClearSearchValue:wt,onSearchSplit:cl,dropdownMatchSelectWidth:Nn,OptionList:Rn,emptyOptions:!Ti.length,activeValue:qo,activeDescendantId:"".concat(ho,"_list_").concat(Jo)})))}),yn=sn;yn.Option=mt,yn.OptGroup=Wt;var Hn=yn,An=Hn},22711:function(Cn,Qt,ee){"use strict";ee.r(Qt),ee.d(Qt,{ResizableTextArea:function(){return Ce},default:function(){return Dt}});var b=ee(60499),Fe=ee(18642),fe=ee(85899),qe=ee(77654),Se=ee(72190),ge=ee(42244),Ee=ee(92310),Ze=ee.n(Ee),Pe=ee(36901),ce=ee(66003),Xe=ee(30292),we=ee(18929),St=ee(59301),tt=ee(43749),je=ee(29301),Me=ee(34280),Ne=ee(16089),it=`
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;
`,yt=["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"],Ot={},We;function Ie(Ue){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ut=Ue.getAttribute("id")||Ue.getAttribute("data-reactid")||Ue.getAttribute("name");if(st&&Ot[Ut])return Ot[Ut];var Te=window.getComputedStyle(Ue),he=Te.getPropertyValue("box-sizing")||Te.getPropertyValue("-moz-box-sizing")||Te.getPropertyValue("-webkit-box-sizing"),Nt=parseFloat(Te.getPropertyValue("padding-bottom"))+parseFloat(Te.getPropertyValue("padding-top")),Jt=parseFloat(Te.getPropertyValue("border-bottom-width"))+parseFloat(Te.getPropertyValue("border-top-width")),Ft=yt.map(function(Ye){return"".concat(Ye,":").concat(Te.getPropertyValue(Ye))}).join(";"),ye={sizingStyle:Ft,paddingSize:Nt,borderSize:Jt,boxSizing:he};return st&&Ut&&(Ot[Ut]=ye),ye}function He(Ue){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;We||(We=document.createElement("textarea"),We.setAttribute("tab-index","-1"),We.setAttribute("aria-hidden","true"),We.setAttribute("name","hiddenTextarea"),document.body.appendChild(We)),Ue.getAttribute("wrap")?We.setAttribute("wrap",Ue.getAttribute("wrap")):We.removeAttribute("wrap");var he=Ie(Ue,st),Nt=he.paddingSize,Jt=he.borderSize,Ft=he.boxSizing,ye=he.sizingStyle;We.setAttribute("style","".concat(ye,";").concat(it)),We.value=Ue.value||Ue.placeholder||"";var Ye=void 0,lt=void 0,Xt,rt=We.scrollHeight;if(Ft==="border-box"?rt+=Jt:Ft==="content-box"&&(rt-=Nt),Ut!==null||Te!==null){We.value=" ";var At=We.scrollHeight-Nt;Ut!==null&&(Ye=At*Ut,Ft==="border-box"&&(Ye=Ye+Nt+Jt),rt=Math.max(Ye,rt)),Te!==null&&(lt=At*Te,Ft==="border-box"&&(lt=lt+Nt+Jt),Xt=rt>lt?"":"hidden",rt=Math.min(lt,rt))}var _e={height:rt,overflowY:Xt,resize:"none"};return Ye&&(_e.minHeight=Ye),lt&&(_e.maxHeight=lt),_e}var Ge=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Et=0,ut=1,et=2,ot=St.forwardRef(function(Ue,st){var Ut=Ue,Te=Ut.prefixCls,he=Ut.defaultValue,Nt=Ut.value,Jt=Ut.autoSize,Ft=Ut.onResize,ye=Ut.className,Ye=Ut.style,lt=Ut.disabled,Xt=Ut.onChange,rt=Ut.onInternalAutoSize,At=(0,ge.Z)(Ut,Ge),_e=(0,we.Z)(he,{value:Nt,postState:function(mt){return mt!=null?mt:""}}),Yt=(0,Se.Z)(_e,2),Ct=Yt[0],ae=Yt[1],ne=function(mt){ae(mt.target.value),Xt==null||Xt(mt)},te=St.useRef();St.useImperativeHandle(st,function(){return{textArea:te.current}});var ie=St.useMemo(function(){return Jt&&(0,tt.Z)(Jt)==="object"?[Jt.minRows,Jt.maxRows]:[]},[Jt]),ue=(0,Se.Z)(ie,2),re=ue[0],le=ue[1],xe=!!Jt,ft=function(){try{if(document.activeElement===te.current){var mt=te.current,$t=mt.selectionStart,nn=mt.selectionEnd,Re=mt.scrollTop;te.current.setSelectionRange($t,nn),te.current.scrollTop=Re}}catch(pt){}},Ae=St.useState(et),Le=(0,Se.Z)(Ae,2),Qe=Le[0],nt=Le[1],bt=St.useState(),Oe=(0,Se.Z)(bt,2),Be=Oe[0],zt=Oe[1],Zt=function(){nt(Et)};(0,Me.Z)(function(){xe&&Zt()},[Nt,re,le,xe]),(0,Me.Z)(function(){if(Qe===Et)nt(ut);else if(Qe===ut){var Ke=He(te.current,!1,re,le);nt(et),zt(Ke)}else ft()},[Qe]);var qt=St.useRef(),en=function(){Ne.Z.cancel(qt.current)},Tt=function(mt){Qe===et&&(Ft==null||Ft(mt),Jt&&(en(),qt.current=(0,Ne.Z)(function(){Zt()})))};St.useEffect(function(){return en},[]);var an=xe?Be:null,Wt=(0,fe.Z)((0,fe.Z)({},Ye),an);return(Qe===Et||Qe===ut)&&(Wt.overflowY="hidden",Wt.overflowX="hidden"),St.createElement(je.Z,{onResize:Tt,disabled:!(Jt||Ft)},St.createElement("textarea",(0,b.Z)({},At,{ref:te,style:Wt,className:Ze()(Te,ye,(0,Fe.Z)({},"".concat(Te,"-disabled"),lt)),disabled:lt,value:Ct,onChange:ne})))}),Ce=ot,at=["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"],Ve=St.forwardRef(function(Ue,st){var Ut,Te=Ue.defaultValue,he=Ue.value,Nt=Ue.onFocus,Jt=Ue.onBlur,Ft=Ue.onChange,ye=Ue.allowClear,Ye=Ue.maxLength,lt=Ue.onCompositionStart,Xt=Ue.onCompositionEnd,rt=Ue.suffix,At=Ue.prefixCls,_e=At===void 0?"rc-textarea":At,Yt=Ue.showCount,Ct=Ue.count,ae=Ue.className,ne=Ue.style,te=Ue.disabled,ie=Ue.hidden,ue=Ue.classNames,re=Ue.styles,le=Ue.onResize,xe=Ue.onClear,ft=Ue.onPressEnter,Ae=Ue.readOnly,Le=Ue.autoSize,Qe=Ue.onKeyDown,nt=(0,ge.Z)(Ue,at),bt=(0,we.Z)(Te,{value:he,defaultValue:Te}),Oe=(0,Se.Z)(bt,2),Be=Oe[0],zt=Oe[1],Zt=Be==null?"":String(Be),qt=St.useState(!1),en=(0,Se.Z)(qt,2),Tt=en[0],an=en[1],Wt=St.useRef(!1),Ke=St.useState(null),mt=(0,Se.Z)(Ke,2),$t=mt[0],nn=mt[1],Re=(0,St.useRef)(null),pt=(0,St.useRef)(null),Mt=function(){var yn;return(yn=pt.current)===null||yn===void 0?void 0:yn.textArea},Kt=function(){Mt().focus()};(0,St.useImperativeHandle)(st,function(){var sn;return{resizableTextArea:pt.current,focus:Kt,blur:function(){Mt().blur()},nativeElement:((sn=Re.current)===null||sn===void 0?void 0:sn.nativeElement)||Mt()}}),(0,St.useEffect)(function(){an(function(sn){return!te&&sn})},[te]);var cn=St.useState(null),Pn=(0,Se.Z)(cn,2),Rn=Pn[0],Fn=Pn[1];St.useEffect(function(){if(Rn){var sn;(sn=Mt()).setSelectionRange.apply(sn,(0,qe.Z)(Rn))}},[Rn]);var vn=(0,ce.Z)(Ct,Yt),Mn=(Ut=vn.max)!==null&&Ut!==void 0?Ut:Ye,dn=Number(Mn)>0,Vt=vn.strategy(Zt),tn=!!Mn&&Vt>Mn,on=function(yn,Hn){var An=Hn;!Wt.current&&vn.exceedFormatter&&vn.max&&vn.strategy(Hn)>vn.max&&(An=vn.exceedFormatter(Hn,{max:vn.max}),Hn!==An&&Fn([Mt().selectionStart||0,Mt().selectionEnd||0])),zt(An),(0,Xe.rJ)(yn.currentTarget,yn,Ft,An)},_t=function(yn){Wt.current=!0,lt==null||lt(yn)},hn=function(yn){Wt.current=!1,on(yn,yn.currentTarget.value),Xt==null||Xt(yn)},mn=function(yn){on(yn,yn.target.value)},Sn=function(yn){yn.key==="Enter"&&ft&&ft(yn),Qe==null||Qe(yn)},zn=function(yn){an(!0),Nt==null||Nt(yn)},Wn=function(yn){an(!1),Jt==null||Jt(yn)},Zn=function(yn){zt(""),Kt(),(0,Xe.rJ)(Mt(),yn,Ft)},Jn=rt,Gn;vn.show&&(vn.showFormatter?Gn=vn.showFormatter({value:Zt,count:Vt,maxLength:Mn}):Gn="".concat(Vt).concat(dn?" / ".concat(Mn):""),Jn=St.createElement(St.Fragment,null,Jn,St.createElement("span",{className:Ze()("".concat(_e,"-data-count"),ue==null?void 0:ue.count),style:re==null?void 0:re.count},Gn)));var hr=function(yn){var Hn;le==null||le(yn),(Hn=Mt())!==null&&Hn!==void 0&&Hn.style.height&&nn(!0)},cr=!Le&&!Yt&&!ye;return St.createElement(Pe.BaseInput,{ref:Re,value:Zt,allowClear:ye,handleReset:Zn,suffix:Jn,prefixCls:_e,classNames:(0,fe.Z)((0,fe.Z)({},ue),{},{affixWrapper:Ze()(ue==null?void 0:ue.affixWrapper,(0,Fe.Z)((0,Fe.Z)({},"".concat(_e,"-show-count"),Yt),"".concat(_e,"-textarea-allow-clear"),ye))}),disabled:te,focused:Tt,className:Ze()(ae,tn&&"".concat(_e,"-out-of-range")),style:(0,fe.Z)((0,fe.Z)({},ne),$t&&!cr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Gn=="string"?Gn:void 0}},hidden:ie,readOnly:Ae,onClear:xe},St.createElement(Ce,(0,b.Z)({},nt,{autoSize:Le,maxLength:Ye,onKeyDown:Sn,onChange:mn,onFocus:zn,onBlur:Wn,onCompositionStart:_t,onCompositionEnd:hn,className:Ze()(ue==null?void 0:ue.textarea),style:(0,fe.Z)((0,fe.Z)({},re==null?void 0:re.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:te,prefixCls:_e,onResize:hr,ref:pt,readOnly:Ae})))}),de=Ve,Dt=de},639:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ot}});var b=ee(60499),Fe=ee(18642),fe=ee(85899),qe=ee(72190),Se=ee(42244),ge=ee(59301),Ee=ee(92310),Ze=ee.n(Ee),Pe=ee(26112),ce=ee(30699),Xe=function(Ie){for(var He=Ie.prefixCls,Ge=Ie.level,Et=Ie.isStart,ut=Ie.isEnd,et="".concat(He,"-indent-unit"),ot=[],Ce=0;Ce<Ge;Ce+=1)ot.push(ge.createElement("span",{key:Ce,className:Ze()(et,(0,Fe.Z)((0,Fe.Z)({},"".concat(et,"-start"),Et[Ce]),"".concat(et,"-end"),ut[Ce]))}));return ge.createElement("span",{"aria-hidden":"true",className:"".concat(He,"-indent")},ot)},we=ge.memo(Xe),St=ee(65065),tt=ee(34061),je=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],Me="open",Ne="close",it="---",yt=function(Ie){var He,Ge,Et,ut=Ie.eventKey,et=Ie.className,ot=Ie.style,Ce=Ie.dragOver,at=Ie.dragOverGapTop,Ve=Ie.dragOverGapBottom,de=Ie.isLeaf,Dt=Ie.isStart,Ue=Ie.isEnd,st=Ie.expanded,Ut=Ie.selected,Te=Ie.checked,he=Ie.halfChecked,Nt=Ie.loading,Jt=Ie.domRef,Ft=Ie.active,ye=Ie.data,Ye=Ie.onMouseMove,lt=Ie.selectable,Xt=(0,Se.Z)(Ie,je),rt=ge.useContext(ce.k),At=ge.useContext(ce.y),_e=ge.useRef(null),Yt=ge.useState(!1),Ct=(0,qe.Z)(Yt,2),ae=Ct[0],ne=Ct[1],te=!!(rt.disabled||Ie.disabled||(He=At.nodeDisabled)!==null&&He!==void 0&&He.call(At,ye)),ie=ge.useMemo(function(){return!rt.checkable||Ie.checkable===!1?!1:rt.checkable},[rt.checkable,Ie.checkable]),ue=function(Vt){te||rt.onNodeSelect(Vt,(0,tt.F)(Ie))},re=function(Vt){te||!ie||Ie.disableCheckbox||rt.onNodeCheck(Vt,(0,tt.F)(Ie),!Te)},le=ge.useMemo(function(){return typeof lt=="boolean"?lt:rt.selectable},[lt,rt.selectable]),xe=function(Vt){rt.onNodeClick(Vt,(0,tt.F)(Ie)),le?ue(Vt):re(Vt)},ft=function(Vt){rt.onNodeDoubleClick(Vt,(0,tt.F)(Ie))},Ae=function(Vt){rt.onNodeMouseEnter(Vt,(0,tt.F)(Ie))},Le=function(Vt){rt.onNodeMouseLeave(Vt,(0,tt.F)(Ie))},Qe=function(Vt){rt.onNodeContextMenu(Vt,(0,tt.F)(Ie))},nt=ge.useMemo(function(){return!!(rt.draggable&&(!rt.draggable.nodeDraggable||rt.draggable.nodeDraggable(ye)))},[rt.draggable,ye]),bt=function(Vt){Vt.stopPropagation(),ne(!0),rt.onNodeDragStart(Vt,Ie);try{Vt.dataTransfer.setData("text/plain","")}catch(tn){}},Oe=function(Vt){Vt.preventDefault(),Vt.stopPropagation(),rt.onNodeDragEnter(Vt,Ie)},Be=function(Vt){Vt.preventDefault(),Vt.stopPropagation(),rt.onNodeDragOver(Vt,Ie)},zt=function(Vt){Vt.stopPropagation(),rt.onNodeDragLeave(Vt,Ie)},Zt=function(Vt){Vt.stopPropagation(),ne(!1),rt.onNodeDragEnd(Vt,Ie)},qt=function(Vt){Vt.preventDefault(),Vt.stopPropagation(),ne(!1),rt.onNodeDrop(Vt,Ie)},en=function(Vt){Nt||rt.onNodeExpand(Vt,(0,tt.F)(Ie))},Tt=ge.useMemo(function(){var dn=(0,St.Z)(rt.keyEntities,ut)||{},Vt=dn.children;return!!(Vt||[]).length},[rt.keyEntities,ut]),an=ge.useMemo(function(){return de===!1?!1:de||!rt.loadData&&!Tt||rt.loadData&&Ie.loaded&&!Tt},[de,rt.loadData,Tt,Ie.loaded]);ge.useEffect(function(){Nt||typeof rt.loadData=="function"&&st&&!an&&!Ie.loaded&&rt.onNodeLoad((0,tt.F)(Ie))},[Nt,rt.loadData,rt.onNodeLoad,st,an,Ie]);var Wt=ge.useMemo(function(){var dn;return(dn=rt.draggable)!==null&&dn!==void 0&&dn.icon?ge.createElement("span",{className:"".concat(rt.prefixCls,"-draggable-icon")},rt.draggable.icon):null},[rt.draggable]),Ke=function(Vt){var tn=Ie.switcherIcon||rt.switcherIcon;return typeof tn=="function"?tn((0,fe.Z)((0,fe.Z)({},Ie),{},{isLeaf:Vt})):tn},mt=function(){if(an){var Vt=Ke(!0);return Vt!==!1?ge.createElement("span",{className:Ze()("".concat(rt.prefixCls,"-switcher"),"".concat(rt.prefixCls,"-switcher-noop"))},Vt):null}var tn=Ke(!1);return tn!==!1?ge.createElement("span",{onClick:en,className:Ze()("".concat(rt.prefixCls,"-switcher"),"".concat(rt.prefixCls,"-switcher_").concat(st?Me:Ne))},tn):null},$t=ge.useMemo(function(){if(!ie)return null;var dn=typeof ie!="boolean"?ie:null;return ge.createElement("span",{className:Ze()("".concat(rt.prefixCls,"-checkbox"),(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},"".concat(rt.prefixCls,"-checkbox-checked"),Te),"".concat(rt.prefixCls,"-checkbox-indeterminate"),!Te&&he),"".concat(rt.prefixCls,"-checkbox-disabled"),te||Ie.disableCheckbox)),onClick:re,role:"checkbox","aria-checked":he?"mixed":Te,"aria-disabled":te||Ie.disableCheckbox,"aria-label":"Select ".concat(typeof Ie.title=="string"?Ie.title:"tree node")},dn)},[ie,Te,he,te,Ie.disableCheckbox,Ie.title]),nn=ge.useMemo(function(){return an?null:st?Me:Ne},[an,st]),Re=ge.useMemo(function(){return ge.createElement("span",{className:Ze()("".concat(rt.prefixCls,"-iconEle"),"".concat(rt.prefixCls,"-icon__").concat(nn||"docu"),(0,Fe.Z)({},"".concat(rt.prefixCls,"-icon_loading"),Nt))})},[rt.prefixCls,nn,Nt]),pt=ge.useMemo(function(){var dn=!!rt.draggable,Vt=!Ie.disabled&&dn&&rt.dragOverNodeKey===ut;return Vt?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]),Mt=ge.useMemo(function(){var dn=Ie.title,Vt=dn===void 0?it:dn,tn="".concat(rt.prefixCls,"-node-content-wrapper"),on;if(rt.showIcon){var _t=Ie.icon||rt.icon;on=_t?ge.createElement("span",{className:Ze()("".concat(rt.prefixCls,"-iconEle"),"".concat(rt.prefixCls,"-icon__customize"))},typeof _t=="function"?_t(Ie):_t):Re}else rt.loadData&&Nt&&(on=Re);var hn;return typeof Vt=="function"?hn=Vt(ye):rt.titleRender?hn=rt.titleRender(ye):hn=Vt,ge.createElement("span",{ref:_e,title:typeof Vt=="string"?Vt:"",className:Ze()(tn,"".concat(tn,"-").concat(nn||"normal"),(0,Fe.Z)({},"".concat(rt.prefixCls,"-node-selected"),!te&&(Ut||ae))),onMouseEnter:Ae,onMouseLeave:Le,onContextMenu:Qe,onClick:xe,onDoubleClick:ft},on,ge.createElement("span",{className:"".concat(rt.prefixCls,"-title")},hn),pt)},[rt.prefixCls,rt.showIcon,Ie,rt.icon,Re,rt.titleRender,ye,nn,Ae,Le,Qe,xe,ft]),Kt=(0,Pe.Z)(Xt,{aria:!0,data:!0}),cn=(0,St.Z)(rt.keyEntities,ut)||{},Pn=cn.level,Rn=Ue[Ue.length-1],Fn=!te&&nt,vn=rt.draggingNodeKey===ut,Mn=lt!==void 0?{"aria-selected":!!lt}:void 0;return ge.createElement("div",(0,b.Z)({ref:Jt,role:"treeitem","aria-expanded":de?void 0:st,className:Ze()(et,"".concat(rt.prefixCls,"-treenode"),(Et={},(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)(Et,"".concat(rt.prefixCls,"-treenode-disabled"),te),"".concat(rt.prefixCls,"-treenode-switcher-").concat(st?"open":"close"),!de),"".concat(rt.prefixCls,"-treenode-checkbox-checked"),Te),"".concat(rt.prefixCls,"-treenode-checkbox-indeterminate"),he),"".concat(rt.prefixCls,"-treenode-selected"),Ut),"".concat(rt.prefixCls,"-treenode-loading"),Nt),"".concat(rt.prefixCls,"-treenode-active"),Ft),"".concat(rt.prefixCls,"-treenode-leaf-last"),Rn),"".concat(rt.prefixCls,"-treenode-draggable"),nt),"dragging",vn),(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)(Et,"drop-target",rt.dropTargetKey===ut),"drop-container",rt.dropContainerKey===ut),"drag-over",!te&&Ce),"drag-over-gap-top",!te&&at),"drag-over-gap-bottom",!te&&Ve),"filter-node",(Ge=rt.filterTreeNode)===null||Ge===void 0?void 0:Ge.call(rt,(0,tt.F)(Ie))),"".concat(rt.prefixCls,"-treenode-leaf"),an))),style:ot,draggable:Fn,onDragStart:Fn?bt:void 0,onDragEnter:nt?Oe:void 0,onDragOver:nt?Be:void 0,onDragLeave:nt?zt:void 0,onDrop:nt?qt:void 0,onDragEnd:nt?Zt:void 0,onMouseMove:Ye},Mn,Kt),ge.createElement(we,{prefixCls:rt.prefixCls,level:Pn,isStart:Dt,isEnd:Ue}),Wt,mt(),$t,Mt)};yt.isTreeNode=1;var Ot=yt},30699:function(Cn,Qt,ee){"use strict";ee.d(Qt,{k:function(){return Fe},y:function(){return fe}});var b=ee(59301),Fe=b.createContext(null),fe=b.createContext({})},87632:function(Cn,Qt,ee){"use strict";ee.d(Qt,{OF:function(){return ut.Z},y6:function(){return Ne.y},ZP:function(){return te}});var b=ee(60499),Fe=ee(43749),fe=ee(85899),qe=ee(77654),Se=ee(38705),ge=ee(17212),Ee=ee(15793),Ze=ee(39153),Pe=ee(55401),ce=ee(18642),Xe=ee(92310),we=ee.n(Xe),St=ee(10228),tt=ee(26112),je=ee(48736),Me=ee(59301),Ne=ee(30699),it=function(ue){var re=ue.dropPosition,le=ue.dropLevelOffset,xe=ue.indent,ft={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(re){case-1:ft.top=0,ft.left=-le*xe;break;case 1:ft.bottom=0,ft.left=-le*xe;break;case 0:ft.bottom=0,ft.left=xe;break}return Me.createElement("div",{style:ft})},yt=it;function Ot(ie){if(ie==null)throw new TypeError("Cannot destructure "+ie)}var We=ee(72190),Ie=ee(42244),He=ee(34280),Ge=ee(48911),Et=ee(77900),ut=ee(639);function et(ie,ue){var re=Me.useState(!1),le=(0,We.Z)(re,2),xe=le[0],ft=le[1];(0,He.Z)(function(){if(xe)return ie(),function(){ue()}},[xe]),(0,He.Z)(function(){return ft(!0),function(){ft(!1)}},[])}var ot=et,Ce=ee(34061),at=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ve=Me.forwardRef(function(ie,ue){var re=ie.className,le=ie.style,xe=ie.motion,ft=ie.motionNodes,Ae=ie.motionType,Le=ie.onMotionStart,Qe=ie.onMotionEnd,nt=ie.active,bt=ie.treeNodeRequiredProps,Oe=(0,Ie.Z)(ie,at),Be=Me.useState(!0),zt=(0,We.Z)(Be,2),Zt=zt[0],qt=zt[1],en=Me.useContext(Ne.k),Tt=en.prefixCls,an=ft&&Ae!=="hide";(0,He.Z)(function(){ft&&an!==Zt&&qt(an)},[ft]);var Wt=function(){ft&&Le()},Ke=Me.useRef(!1),mt=function(){ft&&!Ke.current&&(Ke.current=!0,Qe())};ot(Wt,mt);var $t=function(Re){an===Re&&mt()};return ft?Me.createElement(Et.default,(0,b.Z)({ref:ue,visible:Zt},xe,{motionAppear:Ae==="show",onVisibleChanged:$t}),function(nn,Re){var pt=nn.className,Mt=nn.style;return Me.createElement("div",{ref:Re,className:we()("".concat(Tt,"-treenode-motion"),pt),style:Mt},ft.map(function(Kt){var cn=Object.assign({},(Ot(Kt.data),Kt.data)),Pn=Kt.title,Rn=Kt.key,Fn=Kt.isStart,vn=Kt.isEnd;delete cn.children;var Mn=(0,Ce.H8)(Rn,bt);return Me.createElement(ut.Z,(0,b.Z)({},cn,Mn,{title:Pn,active:nt,data:Kt.data,key:Rn,isStart:Fn,isEnd:vn}))}))}):Me.createElement(ut.Z,(0,b.Z)({domRef:ue,className:re,style:le},Oe,{active:nt}))}),de=Ve;function Dt(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],re=ie.length,le=ue.length;if(Math.abs(re-le)!==1)return{add:!1,key:null};function xe(ft,Ae){var Le=new Map;ft.forEach(function(nt){Le.set(nt,!0)});var Qe=Ae.filter(function(nt){return!Le.has(nt)});return Qe.length===1?Qe[0]:null}return re<le?{add:!0,key:xe(ie,ue)}:{add:!1,key:xe(ue,ie)}}function Ue(ie,ue,re){var le=ie.findIndex(function(Le){return Le.key===re}),xe=ie[le+1],ft=ue.findIndex(function(Le){return Le.key===re});if(xe){var Ae=ue.findIndex(function(Le){return Le.key===xe.key});return ue.slice(ft+1,Ae)}return ue.slice(ft+1)}var st=["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"],Ut={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Te=function(){},he="RC_TREE_MOTION_".concat(Math.random()),Nt={key:he},Jt={key:he,level:0,index:0,pos:"0",node:Nt,nodes:[Nt]},Ft={parent:null,children:[],pos:Jt.pos,data:Nt,title:null,key:he,isStart:[],isEnd:[]};function ye(ie,ue,re,le){return ue===!1||!re?ie:ie.slice(0,Math.ceil(re/le)+1)}function Ye(ie){var ue=ie.key,re=ie.pos;return(0,Ce.km)(ue,re)}function lt(ie){for(var ue=String(ie.data.key),re=ie;re.parent;)re=re.parent,ue="".concat(re.data.key," > ").concat(ue);return ue}var Xt=Me.forwardRef(function(ie,ue){var re=ie.prefixCls,le=ie.data,xe=ie.selectable,ft=ie.checkable,Ae=ie.expandedKeys,Le=ie.selectedKeys,Qe=ie.checkedKeys,nt=ie.loadedKeys,bt=ie.loadingKeys,Oe=ie.halfCheckedKeys,Be=ie.keyEntities,zt=ie.disabled,Zt=ie.dragging,qt=ie.dragOverNodeKey,en=ie.dropPosition,Tt=ie.motion,an=ie.height,Wt=ie.itemHeight,Ke=ie.virtual,mt=ie.scrollWidth,$t=ie.focusable,nn=ie.activeItem,Re=ie.focused,pt=ie.tabIndex,Mt=ie.onKeyDown,Kt=ie.onFocus,cn=ie.onBlur,Pn=ie.onActiveChange,Rn=ie.onListChangeStart,Fn=ie.onListChangeEnd,vn=(0,Ie.Z)(ie,st),Mn=Me.useRef(null),dn=Me.useRef(null);Me.useImperativeHandle(ue,function(){return{scrollTo:function(Pt){Mn.current.scrollTo(Pt)},getIndentWidth:function(){return dn.current.offsetWidth}}});var Vt=Me.useState(Ae),tn=(0,We.Z)(Vt,2),on=tn[0],_t=tn[1],hn=Me.useState(le),mn=(0,We.Z)(hn,2),Sn=mn[0],zn=mn[1],Wn=Me.useState(le),Zn=(0,We.Z)(Wn,2),Jn=Zn[0],Gn=Zn[1],hr=Me.useState([]),cr=(0,We.Z)(hr,2),sn=cr[0],yn=cr[1],Hn=Me.useState(null),An=(0,We.Z)(Hn,2),ct=An[0],It=An[1],ze=Me.useRef(le);ze.current=le;function vt(){var De=ze.current;zn(De),Gn(De),yn([]),It(null),Fn()}(0,He.Z)(function(){_t(Ae);var De=Dt(on,Ae);if(De.key!==null)if(De.add){var Pt=Sn.findIndex(function(Rt){var In=Rt.key;return In===De.key}),kt=ye(Ue(Sn,le,De.key),Ke,an,Wt),jt=Sn.slice();jt.splice(Pt+1,0,Ft),Gn(jt),yn(kt),It("show")}else{var gt=le.findIndex(function(Rt){var In=Rt.key;return In===De.key}),ht=ye(Ue(le,Sn,De.key),Ke,an,Wt),wt=le.slice();wt.splice(gt+1,0,Ft),Gn(wt),yn(ht),It("hide")}else Sn!==le&&(zn(le),Gn(le))},[Ae,le]),Me.useEffect(function(){Zt||vt()},[Zt]);var $e=Tt?Jn:le,xt={expandedKeys:Ae,selectedKeys:Le,loadedKeys:nt,loadingKeys:bt,checkedKeys:Qe,halfCheckedKeys:Oe,dragOverNodeKey:qt,dropPosition:en,keyEntities:Be};return Me.createElement(Me.Fragment,null,Re&&nn&&Me.createElement("span",{style:Ut,"aria-live":"assertive"},lt(nn)),Me.createElement("div",null,Me.createElement("input",{style:Ut,disabled:$t===!1||zt,tabIndex:$t!==!1?pt:null,onKeyDown:Mt,onFocus:Kt,onBlur:cn,value:"",onChange:Te,"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:dn,className:"".concat(re,"-indent-unit")}))),Me.createElement(Ge.Z,(0,b.Z)({},vn,{data:$e,itemKey:Ye,height:an,fullHeight:!1,virtual:Ke,itemHeight:Wt,scrollWidth:mt,prefixCls:"".concat(re,"-list"),ref:Mn,role:"tree",onVisibleChange:function(Pt){Pt.every(function(kt){return Ye(kt)!==he})&&vt()}}),function(De){var Pt=De.pos,kt=Object.assign({},(Ot(De.data),De.data)),jt=De.title,gt=De.key,ht=De.isStart,wt=De.isEnd,Rt=(0,Ce.km)(gt,Pt);delete kt.key,delete kt.children;var In=(0,Ce.H8)(Rt,xt);return Me.createElement(de,(0,b.Z)({},kt,In,{title:jt,active:!!nn&&gt===nn.key,pos:Pt,data:De.data,isStart:ht,isEnd:wt,motion:Tt,motionNodes:gt===he?sn:null,motionType:ct,onMotionStart:Rn,onMotionEnd:vt,treeNodeRequiredProps:xt,onMouseMove:function(){Pn(null)}}))}))}),rt=Xt,At=ee(82661),_e=ee(34643),Yt=ee(65065),Ct=10,ae=function(ie){(0,Ze.Z)(re,ie);var ue=(0,Pe.Z)(re);function re(){var le;(0,Se.Z)(this,re);for(var xe=arguments.length,ft=new Array(xe),Ae=0;Ae<xe;Ae++)ft[Ae]=arguments[Ae];return le=ue.call.apply(ue,[this].concat(ft)),(0,ce.Z)((0,Ee.Z)(le),"destroyed",!1),(0,ce.Z)((0,Ee.Z)(le),"delayedDragEnterLogic",void 0),(0,ce.Z)((0,Ee.Z)(le),"loadingRetryTimes",{}),(0,ce.Z)((0,Ee.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,Ce.w$)()}),(0,ce.Z)((0,Ee.Z)(le),"dragStartMousePosition",null),(0,ce.Z)((0,Ee.Z)(le),"dragNodeProps",null),(0,ce.Z)((0,Ee.Z)(le),"currentMouseOverDroppableNodeKey",null),(0,ce.Z)((0,Ee.Z)(le),"listRef",Me.createRef()),(0,ce.Z)((0,Ee.Z)(le),"onNodeDragStart",function(Le,Qe){var nt=le.state,bt=nt.expandedKeys,Oe=nt.keyEntities,Be=le.props.onDragStart,zt=Qe.eventKey;le.dragNodeProps=Qe,le.dragStartMousePosition={x:Le.clientX,y:Le.clientY};var Zt=(0,At._5)(bt,zt);le.setState({draggingNodeKey:zt,dragChildrenKeys:(0,At.wA)(zt,Oe),indent:le.listRef.current.getIndentWidth()}),le.setExpandedKeys(Zt),window.addEventListener("dragend",le.onWindowDragEnd),Be==null||Be({event:Le,node:(0,Ce.F)(Qe)})}),(0,ce.Z)((0,Ee.Z)(le),"onNodeDragEnter",function(Le,Qe){var nt=le.state,bt=nt.expandedKeys,Oe=nt.keyEntities,Be=nt.dragChildrenKeys,zt=nt.flattenNodes,Zt=nt.indent,qt=le.props,en=qt.onDragEnter,Tt=qt.onExpand,an=qt.allowDrop,Wt=qt.direction,Ke=Qe.pos,mt=Qe.eventKey;if(le.currentMouseOverDroppableNodeKey!==mt&&(le.currentMouseOverDroppableNodeKey=mt),!le.dragNodeProps){le.resetDragState();return}var $t=(0,At.OM)(Le,le.dragNodeProps,Qe,Zt,le.dragStartMousePosition,an,zt,Oe,bt,Wt),nn=$t.dropPosition,Re=$t.dropLevelOffset,pt=$t.dropTargetKey,Mt=$t.dropContainerKey,Kt=$t.dropTargetPos,cn=$t.dropAllowed,Pn=$t.dragOverNodeKey;if(Be.includes(pt)||!cn){le.resetDragState();return}if(le.delayedDragEnterLogic||(le.delayedDragEnterLogic={}),Object.keys(le.delayedDragEnterLogic).forEach(function(Rn){clearTimeout(le.delayedDragEnterLogic[Rn])}),le.dragNodeProps.eventKey!==Qe.eventKey&&(Le.persist(),le.delayedDragEnterLogic[Ke]=window.setTimeout(function(){if(le.state.draggingNodeKey!==null){var Rn=(0,qe.Z)(bt),Fn=(0,Yt.Z)(Oe,Qe.eventKey);Fn&&(Fn.children||[]).length&&(Rn=(0,At.L0)(bt,Qe.eventKey)),le.props.hasOwnProperty("expandedKeys")||le.setExpandedKeys(Rn),Tt==null||Tt(Rn,{node:(0,Ce.F)(Qe),expanded:!0,nativeEvent:Le.nativeEvent})}},800)),le.dragNodeProps.eventKey===pt&&Re===0){le.resetDragState();return}le.setState({dragOverNodeKey:Pn,dropPosition:nn,dropLevelOffset:Re,dropTargetKey:pt,dropContainerKey:Mt,dropTargetPos:Kt,dropAllowed:cn}),en==null||en({event:Le,node:(0,Ce.F)(Qe),expandedKeys:bt})}),(0,ce.Z)((0,Ee.Z)(le),"onNodeDragOver",function(Le,Qe){var nt=le.state,bt=nt.dragChildrenKeys,Oe=nt.flattenNodes,Be=nt.keyEntities,zt=nt.expandedKeys,Zt=nt.indent,qt=le.props,en=qt.onDragOver,Tt=qt.allowDrop,an=qt.direction;if(le.dragNodeProps){var Wt=(0,At.OM)(Le,le.dragNodeProps,Qe,Zt,le.dragStartMousePosition,Tt,Oe,Be,zt,an),Ke=Wt.dropPosition,mt=Wt.dropLevelOffset,$t=Wt.dropTargetKey,nn=Wt.dropContainerKey,Re=Wt.dropTargetPos,pt=Wt.dropAllowed,Mt=Wt.dragOverNodeKey;bt.includes($t)||!pt||(le.dragNodeProps.eventKey===$t&&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():Ke===le.state.dropPosition&&mt===le.state.dropLevelOffset&&$t===le.state.dropTargetKey&&nn===le.state.dropContainerKey&&Re===le.state.dropTargetPos&&pt===le.state.dropAllowed&&Mt===le.state.dragOverNodeKey||le.setState({dropPosition:Ke,dropLevelOffset:mt,dropTargetKey:$t,dropContainerKey:nn,dropTargetPos:Re,dropAllowed:pt,dragOverNodeKey:Mt}),en==null||en({event:Le,node:(0,Ce.F)(Qe)}))}}),(0,ce.Z)((0,Ee.Z)(le),"onNodeDragLeave",function(Le,Qe){le.currentMouseOverDroppableNodeKey===Qe.eventKey&&!Le.currentTarget.contains(Le.relatedTarget)&&(le.resetDragState(),le.currentMouseOverDroppableNodeKey=null);var nt=le.props.onDragLeave;nt==null||nt({event:Le,node:(0,Ce.F)(Qe)})}),(0,ce.Z)((0,Ee.Z)(le),"onWindowDragEnd",function(Le){le.onNodeDragEnd(Le,null,!0),window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ce.Z)((0,Ee.Z)(le),"onNodeDragEnd",function(Le,Qe){var nt=le.props.onDragEnd;le.setState({dragOverNodeKey:null}),le.cleanDragState(),nt==null||nt({event:Le,node:(0,Ce.F)(Qe)}),le.dragNodeProps=null,window.removeEventListener("dragend",le.onWindowDragEnd)}),(0,ce.Z)((0,Ee.Z)(le),"onNodeDrop",function(Le,Qe){var nt,bt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Oe=le.state,Be=Oe.dragChildrenKeys,zt=Oe.dropPosition,Zt=Oe.dropTargetKey,qt=Oe.dropTargetPos,en=Oe.dropAllowed;if(en){var Tt=le.props.onDrop;if(le.setState({dragOverNodeKey:null}),le.cleanDragState(),Zt!==null){var an=(0,fe.Z)((0,fe.Z)({},(0,Ce.H8)(Zt,le.getTreeNodeRequiredProps())),{},{active:((nt=le.getActiveItem())===null||nt===void 0?void 0:nt.key)===Zt,data:(0,Yt.Z)(le.state.keyEntities,Zt).node}),Wt=Be.includes(Zt);(0,je.ZP)(!Wt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ke=(0,At.yx)(qt),mt={event:Le,node:(0,Ce.F)(an),dragNode:le.dragNodeProps?(0,Ce.F)(le.dragNodeProps):null,dragNodesKeys:[le.dragNodeProps.eventKey].concat(Be),dropToGap:zt!==0,dropPosition:zt+Number(Ke[Ke.length-1])};bt||Tt==null||Tt(mt),le.dragNodeProps=null}}}),(0,ce.Z)((0,Ee.Z)(le),"cleanDragState",function(){var Le=le.state.draggingNodeKey;Le!==null&&le.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),le.dragStartMousePosition=null,le.currentMouseOverDroppableNodeKey=null}),(0,ce.Z)((0,Ee.Z)(le),"triggerExpandActionExpand",function(Le,Qe){var nt=le.state,bt=nt.expandedKeys,Oe=nt.flattenNodes,Be=Qe.expanded,zt=Qe.key,Zt=Qe.isLeaf;if(!(Zt||Le.shiftKey||Le.metaKey||Le.ctrlKey)){var qt=Oe.filter(function(Tt){return Tt.key===zt})[0],en=(0,Ce.F)((0,fe.Z)((0,fe.Z)({},(0,Ce.H8)(zt,le.getTreeNodeRequiredProps())),{},{data:qt.data}));le.setExpandedKeys(Be?(0,At._5)(bt,zt):(0,At.L0)(bt,zt)),le.onNodeExpand(Le,en)}}),(0,ce.Z)((0,Ee.Z)(le),"onNodeClick",function(Le,Qe){var nt=le.props,bt=nt.onClick,Oe=nt.expandAction;Oe==="click"&&le.triggerExpandActionExpand(Le,Qe),bt==null||bt(Le,Qe)}),(0,ce.Z)((0,Ee.Z)(le),"onNodeDoubleClick",function(Le,Qe){var nt=le.props,bt=nt.onDoubleClick,Oe=nt.expandAction;Oe==="doubleClick"&&le.triggerExpandActionExpand(Le,Qe),bt==null||bt(Le,Qe)}),(0,ce.Z)((0,Ee.Z)(le),"onNodeSelect",function(Le,Qe){var nt=le.state.selectedKeys,bt=le.state,Oe=bt.keyEntities,Be=bt.fieldNames,zt=le.props,Zt=zt.onSelect,qt=zt.multiple,en=Qe.selected,Tt=Qe[Be.key],an=!en;an?qt?nt=(0,At.L0)(nt,Tt):nt=[Tt]:nt=(0,At._5)(nt,Tt);var Wt=nt.map(function(Ke){var mt=(0,Yt.Z)(Oe,Ke);return mt?mt.node:null}).filter(Boolean);le.setUncontrolledState({selectedKeys:nt}),Zt==null||Zt(nt,{event:"select",selected:an,node:Qe,selectedNodes:Wt,nativeEvent:Le.nativeEvent})}),(0,ce.Z)((0,Ee.Z)(le),"onNodeCheck",function(Le,Qe,nt){var bt=le.state,Oe=bt.keyEntities,Be=bt.checkedKeys,zt=bt.halfCheckedKeys,Zt=le.props,qt=Zt.checkStrictly,en=Zt.onCheck,Tt=Qe.key,an,Wt={event:"check",node:Qe,checked:nt,nativeEvent:Le.nativeEvent};if(qt){var Ke=nt?(0,At.L0)(Be,Tt):(0,At._5)(Be,Tt),mt=(0,At._5)(zt,Tt);an={checked:Ke,halfChecked:mt},Wt.checkedNodes=Ke.map(function(Kt){return(0,Yt.Z)(Oe,Kt)}).filter(Boolean).map(function(Kt){return Kt.node}),le.setUncontrolledState({checkedKeys:Ke})}else{var $t=(0,_e.S)([].concat((0,qe.Z)(Be),[Tt]),!0,Oe),nn=$t.checkedKeys,Re=$t.halfCheckedKeys;if(!nt){var pt=new Set(nn);pt.delete(Tt);var Mt=(0,_e.S)(Array.from(pt),{checked:!1,halfCheckedKeys:Re},Oe);nn=Mt.checkedKeys,Re=Mt.halfCheckedKeys}an=nn,Wt.checkedNodes=[],Wt.checkedNodesPositions=[],Wt.halfCheckedKeys=Re,nn.forEach(function(Kt){var cn=(0,Yt.Z)(Oe,Kt);if(cn){var Pn=cn.node,Rn=cn.pos;Wt.checkedNodes.push(Pn),Wt.checkedNodesPositions.push({node:Pn,pos:Rn})}}),le.setUncontrolledState({checkedKeys:nn},!1,{halfCheckedKeys:Re})}en==null||en(an,Wt)}),(0,ce.Z)((0,Ee.Z)(le),"onNodeLoad",function(Le){var Qe,nt=Le.key,bt=le.state.keyEntities,Oe=(0,Yt.Z)(bt,nt);if(!(Oe!=null&&(Qe=Oe.children)!==null&&Qe!==void 0&&Qe.length)){var Be=new Promise(function(zt,Zt){le.setState(function(qt){var en=qt.loadedKeys,Tt=en===void 0?[]:en,an=qt.loadingKeys,Wt=an===void 0?[]:an,Ke=le.props,mt=Ke.loadData,$t=Ke.onLoad;if(!mt||Tt.includes(nt)||Wt.includes(nt))return null;var nn=mt(Le);return nn.then(function(){var Re=le.state.loadedKeys,pt=(0,At.L0)(Re,nt);$t==null||$t(pt,{event:"load",node:Le}),le.setUncontrolledState({loadedKeys:pt}),le.setState(function(Mt){return{loadingKeys:(0,At._5)(Mt.loadingKeys,nt)}}),zt()}).catch(function(Re){if(le.setState(function(Mt){return{loadingKeys:(0,At._5)(Mt.loadingKeys,nt)}}),le.loadingRetryTimes[nt]=(le.loadingRetryTimes[nt]||0)+1,le.loadingRetryTimes[nt]>=Ct){var pt=le.state.loadedKeys;(0,je.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),le.setUncontrolledState({loadedKeys:(0,At.L0)(pt,nt)}),zt()}Zt(Re)}),{loadingKeys:(0,At.L0)(Wt,nt)}})});return Be.catch(function(){}),Be}}),(0,ce.Z)((0,Ee.Z)(le),"onNodeMouseEnter",function(Le,Qe){var nt=le.props.onMouseEnter;nt==null||nt({event:Le,node:Qe})}),(0,ce.Z)((0,Ee.Z)(le),"onNodeMouseLeave",function(Le,Qe){var nt=le.props.onMouseLeave;nt==null||nt({event:Le,node:Qe})}),(0,ce.Z)((0,Ee.Z)(le),"onNodeContextMenu",function(Le,Qe){var nt=le.props.onRightClick;nt&&(Le.preventDefault(),nt({event:Le,node:Qe}))}),(0,ce.Z)((0,Ee.Z)(le),"onFocus",function(){var Le=le.props.onFocus;le.setState({focused:!0});for(var Qe=arguments.length,nt=new Array(Qe),bt=0;bt<Qe;bt++)nt[bt]=arguments[bt];Le==null||Le.apply(void 0,nt)}),(0,ce.Z)((0,Ee.Z)(le),"onBlur",function(){var Le=le.props.onBlur;le.setState({focused:!1}),le.onActiveChange(null);for(var Qe=arguments.length,nt=new Array(Qe),bt=0;bt<Qe;bt++)nt[bt]=arguments[bt];Le==null||Le.apply(void 0,nt)}),(0,ce.Z)((0,Ee.Z)(le),"getTreeNodeRequiredProps",function(){var Le=le.state,Qe=Le.expandedKeys,nt=Le.selectedKeys,bt=Le.loadedKeys,Oe=Le.loadingKeys,Be=Le.checkedKeys,zt=Le.halfCheckedKeys,Zt=Le.dragOverNodeKey,qt=Le.dropPosition,en=Le.keyEntities;return{expandedKeys:Qe||[],selectedKeys:nt||[],loadedKeys:bt||[],loadingKeys:Oe||[],checkedKeys:Be||[],halfCheckedKeys:zt||[],dragOverNodeKey:Zt,dropPosition:qt,keyEntities:en}}),(0,ce.Z)((0,Ee.Z)(le),"setExpandedKeys",function(Le){var Qe=le.state,nt=Qe.treeData,bt=Qe.fieldNames,Oe=(0,Ce.oH)(nt,Le,bt);le.setUncontrolledState({expandedKeys:Le,flattenNodes:Oe},!0)}),(0,ce.Z)((0,Ee.Z)(le),"onNodeExpand",function(Le,Qe){var nt=le.state.expandedKeys,bt=le.state,Oe=bt.listChanging,Be=bt.fieldNames,zt=le.props,Zt=zt.onExpand,qt=zt.loadData,en=Qe.expanded,Tt=Qe[Be.key];if(!Oe){var an=nt.includes(Tt),Wt=!en;if((0,je.ZP)(en&&an||!en&&!an,"Expand state not sync with index check"),nt=Wt?(0,At.L0)(nt,Tt):(0,At._5)(nt,Tt),le.setExpandedKeys(nt),Zt==null||Zt(nt,{node:Qe,expanded:Wt,nativeEvent:Le.nativeEvent}),Wt&&qt){var Ke=le.onNodeLoad(Qe);Ke&&Ke.then(function(){var mt=(0,Ce.oH)(le.state.treeData,nt,Be);le.setUncontrolledState({flattenNodes:mt})}).catch(function(){var mt=le.state.expandedKeys,$t=(0,At._5)(mt,Tt);le.setExpandedKeys($t)})}}}),(0,ce.Z)((0,Ee.Z)(le),"onListChangeStart",function(){le.setUncontrolledState({listChanging:!0})}),(0,ce.Z)((0,Ee.Z)(le),"onListChangeEnd",function(){setTimeout(function(){le.setUncontrolledState({listChanging:!1})})}),(0,ce.Z)((0,Ee.Z)(le),"onActiveChange",function(Le){var Qe=le.state.activeKey,nt=le.props,bt=nt.onActiveChange,Oe=nt.itemScrollOffset,Be=Oe===void 0?0:Oe;Qe!==Le&&(le.setState({activeKey:Le}),Le!==null&&le.scrollTo({key:Le,offset:Be}),bt==null||bt(Le))}),(0,ce.Z)((0,Ee.Z)(le),"getActiveItem",function(){var Le=le.state,Qe=Le.activeKey,nt=Le.flattenNodes;return Qe===null?null:nt.find(function(bt){var Oe=bt.key;return Oe===Qe})||null}),(0,ce.Z)((0,Ee.Z)(le),"offsetActiveKey",function(Le){var Qe=le.state,nt=Qe.flattenNodes,bt=Qe.activeKey,Oe=nt.findIndex(function(Zt){var qt=Zt.key;return qt===bt});Oe===-1&&Le<0&&(Oe=nt.length),Oe=(Oe+Le+nt.length)%nt.length;var Be=nt[Oe];if(Be){var zt=Be.key;le.onActiveChange(zt)}else le.onActiveChange(null)}),(0,ce.Z)((0,Ee.Z)(le),"onKeyDown",function(Le){var Qe=le.state,nt=Qe.activeKey,bt=Qe.expandedKeys,Oe=Qe.checkedKeys,Be=Qe.fieldNames,zt=le.props,Zt=zt.onKeyDown,qt=zt.checkable,en=zt.selectable;switch(Le.which){case St.Z.UP:{le.offsetActiveKey(-1),Le.preventDefault();break}case St.Z.DOWN:{le.offsetActiveKey(1),Le.preventDefault();break}}var Tt=le.getActiveItem();if(Tt&&Tt.data){var an=le.getTreeNodeRequiredProps(),Wt=Tt.data.isLeaf===!1||!!(Tt.data[Be.children]||[]).length,Ke=(0,Ce.F)((0,fe.Z)((0,fe.Z)({},(0,Ce.H8)(nt,an)),{},{data:Tt.data,active:!0}));switch(Le.which){case St.Z.LEFT:{Wt&&bt.includes(nt)?le.onNodeExpand({},Ke):Tt.parent&&le.onActiveChange(Tt.parent.key),Le.preventDefault();break}case St.Z.RIGHT:{Wt&&!bt.includes(nt)?le.onNodeExpand({},Ke):Tt.children&&Tt.children.length&&le.onActiveChange(Tt.children[0].key),Le.preventDefault();break}case St.Z.ENTER:case St.Z.SPACE:{qt&&!Ke.disabled&&Ke.checkable!==!1&&!Ke.disableCheckbox?le.onNodeCheck({},Ke,!Oe.includes(nt)):!qt&&en&&!Ke.disabled&&Ke.selectable!==!1&&le.onNodeSelect({},Ke);break}}}Zt==null||Zt(Le)}),(0,ce.Z)((0,Ee.Z)(le),"setUncontrolledState",function(Le){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!le.destroyed){var bt=!1,Oe=!0,Be={};Object.keys(Le).forEach(function(zt){if(le.props.hasOwnProperty(zt)){Oe=!1;return}bt=!0,Be[zt]=Le[zt]}),bt&&(!Qe||Oe)&&le.setState((0,fe.Z)((0,fe.Z)({},Be),nt))}}),(0,ce.Z)((0,Ee.Z)(le),"scrollTo",function(Le){le.listRef.current.scrollTo(Le)}),le}return(0,ge.Z)(re,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var xe=this.props,ft=xe.activeKey,Ae=xe.itemScrollOffset,Le=Ae===void 0?0:Ae;ft!==void 0&&ft!==this.state.activeKey&&(this.setState({activeKey:ft}),ft!==null&&this.scrollTo({key:ft,offset:Le}))}},{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 xe=this.state,ft=xe.focused,Ae=xe.flattenNodes,Le=xe.keyEntities,Qe=xe.draggingNodeKey,nt=xe.activeKey,bt=xe.dropLevelOffset,Oe=xe.dropContainerKey,Be=xe.dropTargetKey,zt=xe.dropPosition,Zt=xe.dragOverNodeKey,qt=xe.indent,en=this.props,Tt=en.prefixCls,an=en.className,Wt=en.style,Ke=en.showLine,mt=en.focusable,$t=en.tabIndex,nn=$t===void 0?0:$t,Re=en.selectable,pt=en.showIcon,Mt=en.icon,Kt=en.switcherIcon,cn=en.draggable,Pn=en.checkable,Rn=en.checkStrictly,Fn=en.disabled,vn=en.motion,Mn=en.loadData,dn=en.filterTreeNode,Vt=en.height,tn=en.itemHeight,on=en.scrollWidth,_t=en.virtual,hn=en.titleRender,mn=en.dropIndicatorRender,Sn=en.onContextMenu,zn=en.onScroll,Wn=en.direction,Zn=en.rootClassName,Jn=en.rootStyle,Gn=(0,tt.Z)(this.props,{aria:!0,data:!0}),hr;cn&&((0,Fe.Z)(cn)==="object"?hr=cn:typeof cn=="function"?hr={nodeDraggable:cn}:hr={});var cr={prefixCls:Tt,selectable:Re,showIcon:pt,icon:Mt,switcherIcon:Kt,draggable:hr,draggingNodeKey:Qe,checkable:Pn,checkStrictly:Rn,disabled:Fn,keyEntities:Le,dropLevelOffset:bt,dropContainerKey:Oe,dropTargetKey:Be,dropPosition:zt,dragOverNodeKey:Zt,indent:qt,direction:Wn,dropIndicatorRender:mn,loadData:Mn,filterTreeNode:dn,titleRender:hn,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(Ne.k.Provider,{value:cr},Me.createElement("div",{className:we()(Tt,an,Zn,(0,ce.Z)((0,ce.Z)((0,ce.Z)({},"".concat(Tt,"-show-line"),Ke),"".concat(Tt,"-focused"),ft),"".concat(Tt,"-active-focused"),nt!==null)),style:Jn},Me.createElement(rt,(0,b.Z)({ref:this.listRef,prefixCls:Tt,style:Wt,data:Ae,disabled:Fn,selectable:Re,checkable:!!Pn,motion:vn,dragging:Qe!==null,height:Vt,itemHeight:tn,virtual:_t,focusable:mt,focused:ft,tabIndex:nn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Sn,onScroll:zn,scrollWidth:on},this.getTreeNodeRequiredProps(),Gn))))}}],[{key:"getDerivedStateFromProps",value:function(xe,ft){var Ae=ft.prevProps,Le={prevProps:xe};function Qe(nn){return!Ae&&xe.hasOwnProperty(nn)||Ae&&Ae[nn]!==xe[nn]}var nt,bt=ft.fieldNames;if(Qe("fieldNames")&&(bt=(0,Ce.w$)(xe.fieldNames),Le.fieldNames=bt),Qe("treeData")?nt=xe.treeData:Qe("children")&&((0,je.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),nt=(0,Ce.zn)(xe.children)),nt){Le.treeData=nt;var Oe=(0,Ce.I8)(nt,{fieldNames:bt});Le.keyEntities=(0,fe.Z)((0,ce.Z)({},he,Jt),Oe.keyEntities)}var Be=Le.keyEntities||ft.keyEntities;if(Qe("expandedKeys")||Ae&&Qe("autoExpandParent"))Le.expandedKeys=xe.autoExpandParent||!Ae&&xe.defaultExpandParent?(0,At.r7)(xe.expandedKeys,Be):xe.expandedKeys;else if(!Ae&&xe.defaultExpandAll){var zt=(0,fe.Z)({},Be);delete zt[he];var Zt=[];Object.keys(zt).forEach(function(nn){var Re=zt[nn];Re.children&&Re.children.length&&Zt.push(Re.key)}),Le.expandedKeys=Zt}else!Ae&&xe.defaultExpandedKeys&&(Le.expandedKeys=xe.autoExpandParent||xe.defaultExpandParent?(0,At.r7)(xe.defaultExpandedKeys,Be):xe.defaultExpandedKeys);if(Le.expandedKeys||delete Le.expandedKeys,nt||Le.expandedKeys){var qt=(0,Ce.oH)(nt||ft.treeData,Le.expandedKeys||ft.expandedKeys,bt);Le.flattenNodes=qt}if(xe.selectable&&(Qe("selectedKeys")?Le.selectedKeys=(0,At.BT)(xe.selectedKeys,xe):!Ae&&xe.defaultSelectedKeys&&(Le.selectedKeys=(0,At.BT)(xe.defaultSelectedKeys,xe))),xe.checkable){var en;if(Qe("checkedKeys")?en=(0,At.E6)(xe.checkedKeys)||{}:!Ae&&xe.defaultCheckedKeys?en=(0,At.E6)(xe.defaultCheckedKeys)||{}:nt&&(en=(0,At.E6)(xe.checkedKeys)||{checkedKeys:ft.checkedKeys,halfCheckedKeys:ft.halfCheckedKeys}),en){var Tt=en,an=Tt.checkedKeys,Wt=an===void 0?[]:an,Ke=Tt.halfCheckedKeys,mt=Ke===void 0?[]:Ke;if(!xe.checkStrictly){var $t=(0,_e.S)(Wt,!0,Be);Wt=$t.checkedKeys,mt=$t.halfCheckedKeys}Le.checkedKeys=Wt,Le.halfCheckedKeys=mt}}return Qe("loadedKeys")&&(Le.loadedKeys=xe.loadedKeys),Le}}]),re}(Me.Component);(0,ce.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:yt,allowDrop:function(){return!0},expandAction:!1}),(0,ce.Z)(ae,"TreeNode",ut.Z);var ne=ae,te=ne},82661:function(Cn,Qt,ee){"use strict";ee.d(Qt,{BT:function(){return Me},E6:function(){return yt},L0:function(){return ce},OM:function(){return je},_5:function(){return Pe},r7:function(){return Ot},wA:function(){return we},yx:function(){return Xe}});var b=ee(77654),Fe=ee(43749),fe=ee(48736),qe=ee(59301),Se=ee(639),ge=ee(65065),Ee=ee(34061),Ze=null;function Pe(We,Ie){if(!We)return[];var He=We.slice(),Ge=He.indexOf(Ie);return Ge>=0&&He.splice(Ge,1),He}function ce(We,Ie){var He=(We||[]).slice();return He.indexOf(Ie)===-1&&He.push(Ie),He}function Xe(We){return We.split("-")}function we(We,Ie){var He=[],Ge=(0,ge.Z)(Ie,We);function Et(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ut.forEach(function(et){var ot=et.key,Ce=et.children;He.push(ot),Et(Ce)})}return Et(Ge.children),He}function St(We){if(We.parent){var Ie=Xe(We.pos);return Number(Ie[Ie.length-1])===We.parent.children.length-1}return!1}function tt(We){var Ie=Xe(We.pos);return Number(Ie[Ie.length-1])===0}function je(We,Ie,He,Ge,Et,ut,et,ot,Ce,at){var Ve,de=We.clientX,Dt=We.clientY,Ue=We.target.getBoundingClientRect(),st=Ue.top,Ut=Ue.height,Te=(at==="rtl"?-1:1)*(((Et==null?void 0:Et.x)||0)-de),he=(Te-12)/Ge,Nt=Ce.filter(function(te){var ie;return(ie=ot[te])===null||ie===void 0||(ie=ie.children)===null||ie===void 0?void 0:ie.length}),Jt=(0,ge.Z)(ot,He.eventKey);if(Dt<st+Ut/2){var Ft=et.findIndex(function(te){return te.key===Jt.key}),ye=Ft<=0?0:Ft-1,Ye=et[ye].key;Jt=(0,ge.Z)(ot,Ye)}var lt=Jt.key,Xt=Jt,rt=Jt.key,At=0,_e=0;if(!Nt.includes(lt))for(var Yt=0;Yt<he&&St(Jt);Yt+=1)Jt=Jt.parent,_e+=1;var Ct=Ie.data,ae=Jt.node,ne=!0;return tt(Jt)&&Jt.level===0&&Dt<st+Ut/2&&ut({dragNode:Ct,dropNode:ae,dropPosition:-1})&&Jt.key===He.eventKey?At=-1:(Xt.children||[]).length&&Nt.includes(rt)?ut({dragNode:Ct,dropNode:ae,dropPosition:0})?At=0:ne=!1:_e===0?he>-1.5?ut({dragNode:Ct,dropNode:ae,dropPosition:1})?At=1:ne=!1:ut({dragNode:Ct,dropNode:ae,dropPosition:0})?At=0:ut({dragNode:Ct,dropNode:ae,dropPosition:1})?At=1:ne=!1:ut({dragNode:Ct,dropNode:ae,dropPosition:1})?At=1:ne=!1,{dropPosition:At,dropLevelOffset:_e,dropTargetKey:Jt.key,dropTargetPos:Jt.pos,dragOverNodeKey:rt,dropContainerKey:At===0?null:((Ve=Jt.parent)===null||Ve===void 0?void 0:Ve.key)||null,dropAllowed:ne}}function Me(We,Ie){if(We){var He=Ie.multiple;return He?We.slice():We.length?[We[0]]:We}}var Ne=function(Ie){return Ie};function it(We,Ie){if(!We)return[];var He=Ie||{},Ge=He.processProps,Et=Ge===void 0?Ne:Ge,ut=Array.isArray(We)?We:[We];return ut.map(function(et){var ot=et.children,Ce=_objectWithoutProperties(et,Ze),at=it(ot,Ie);return React.createElement(TreeNode,_extends({key:Ce.key},Et(Ce)),at)})}function yt(We){if(!We)return null;var Ie;if(Array.isArray(We))Ie={checkedKeys:We,halfCheckedKeys:void 0};else if((0,Fe.Z)(We)==="object")Ie={checkedKeys:We.checked||void 0,halfCheckedKeys:We.halfChecked||void 0};else return(0,fe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ie}function Ot(We,Ie){var He=new Set;function Ge(Et){if(!He.has(Et)){var ut=(0,ge.Z)(Ie,Et);if(ut){He.add(Et);var et=ut.parent,ot=ut.node;ot.disabled||et&&Ge(et.key)}}}return(We||[]).forEach(function(Et){Ge(Et)}),(0,b.Z)(He)}},34643:function(Cn,Qt,ee){"use strict";ee.d(Qt,{S:function(){return Ee}});var b=ee(48736),Fe=ee(65065);function fe(Ze,Pe){var ce=new Set;return Ze.forEach(function(Xe){Pe.has(Xe)||ce.add(Xe)}),ce}function qe(Ze){var Pe=Ze||{},ce=Pe.disabled,Xe=Pe.disableCheckbox,we=Pe.checkable;return!!(ce||Xe)||we===!1}function Se(Ze,Pe,ce,Xe){for(var we=new Set(Ze),St=new Set,tt=0;tt<=ce;tt+=1){var je=Pe.get(tt)||new Set;je.forEach(function(yt){var Ot=yt.key,We=yt.node,Ie=yt.children,He=Ie===void 0?[]:Ie;we.has(Ot)&&!Xe(We)&&He.filter(function(Ge){return!Xe(Ge.node)}).forEach(function(Ge){we.add(Ge.key)})})}for(var Me=new Set,Ne=ce;Ne>=0;Ne-=1){var it=Pe.get(Ne)||new Set;it.forEach(function(yt){var Ot=yt.parent,We=yt.node;if(!(Xe(We)||!yt.parent||Me.has(yt.parent.key))){if(Xe(yt.parent.node)){Me.add(Ot.key);return}var Ie=!0,He=!1;(Ot.children||[]).filter(function(Ge){return!Xe(Ge.node)}).forEach(function(Ge){var Et=Ge.key,ut=we.has(Et);Ie&&!ut&&(Ie=!1),!He&&(ut||St.has(Et))&&(He=!0)}),Ie&&we.add(Ot.key),He&&St.add(Ot.key),Me.add(Ot.key)}})}return{checkedKeys:Array.from(we),halfCheckedKeys:Array.from(fe(St,we))}}function ge(Ze,Pe,ce,Xe,we){for(var St=new Set(Ze),tt=new Set(Pe),je=0;je<=Xe;je+=1){var Me=ce.get(je)||new Set;Me.forEach(function(Ot){var We=Ot.key,Ie=Ot.node,He=Ot.children,Ge=He===void 0?[]:He;!St.has(We)&&!tt.has(We)&&!we(Ie)&&Ge.filter(function(Et){return!we(Et.node)}).forEach(function(Et){St.delete(Et.key)})})}tt=new Set;for(var Ne=new Set,it=Xe;it>=0;it-=1){var yt=ce.get(it)||new Set;yt.forEach(function(Ot){var We=Ot.parent,Ie=Ot.node;if(!(we(Ie)||!Ot.parent||Ne.has(Ot.parent.key))){if(we(Ot.parent.node)){Ne.add(We.key);return}var He=!0,Ge=!1;(We.children||[]).filter(function(Et){return!we(Et.node)}).forEach(function(Et){var ut=Et.key,et=St.has(ut);He&&!et&&(He=!1),!Ge&&(et||tt.has(ut))&&(Ge=!0)}),He||St.delete(We.key),Ge&&tt.add(We.key),Ne.add(We.key)}})}return{checkedKeys:Array.from(St),halfCheckedKeys:Array.from(fe(tt,St))}}function Ee(Ze,Pe,ce,Xe){var we=[],St;Xe?St=Xe:St=qe;var tt=new Set(Ze.filter(function(it){var yt=!!(0,Fe.Z)(ce,it);return yt||we.push(it),yt})),je=new Map,Me=0;Object.keys(ce).forEach(function(it){var yt=ce[it],Ot=yt.level,We=je.get(Ot);We||(We=new Set,je.set(Ot,We)),We.add(yt),Me=Math.max(Me,Ot)}),(0,b.ZP)(!we.length,"Tree missing follow keys: ".concat(we.slice(0,100).map(function(it){return"'".concat(it,"'")}).join(", ")));var Ne;return Pe===!0?Ne=Se(tt,je,Me,St):Ne=ge(tt,Pe.halfCheckedKeys,je,Me,St),Ne}},65065:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return b}});function b(Fe,fe){return Fe[fe]}},34061:function(Cn,Qt,ee){"use strict";ee.d(Qt,{F:function(){return Ot},H8:function(){return yt},I8:function(){return it},km:function(){return we},oH:function(){return Me},w$:function(){return St},zn:function(){return je}});var b=ee(43749),Fe=ee(77654),fe=ee(85899),qe=ee(42244),Se=ee(11592),ge=ee(2738),Ee=ee(48736),Ze=ee(65065),Pe=["children"];function ce(We,Ie){return"".concat(We,"-").concat(Ie)}function Xe(We){return We&&We.type&&We.type.isTreeNode}function we(We,Ie){return We!=null?We:Ie}function St(We){var Ie=We||{},He=Ie.title,Ge=Ie._title,Et=Ie.key,ut=Ie.children,et=He||"title";return{title:et,_title:Ge||[et],key:Et||"key",children:ut||"children"}}function tt(We,Ie){var He=new Map;function Ge(Et){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Et||[]).forEach(function(et){var ot=et[Ie.key],Ce=et[Ie.children];warning(ot!=null,"Tree node must have a certain key: [".concat(ut).concat(ot,"]"));var at=String(ot);warning(!He.has(at)||ot===null||ot===void 0,"Same 'key' exist in the Tree: ".concat(at)),He.set(at,!0),Ge(Ce,"".concat(ut).concat(at," > "))})}Ge(We)}function je(We){function Ie(He){var Ge=(0,Se.Z)(He);return Ge.map(function(Et){if(!Xe(Et))return(0,Ee.ZP)(!Et,"Tree/TreeNode can only accept TreeNode as children."),null;var ut=Et.key,et=Et.props,ot=et.children,Ce=(0,qe.Z)(et,Pe),at=(0,fe.Z)({key:ut},Ce),Ve=Ie(ot);return Ve.length&&(at.children=Ve),at}).filter(function(Et){return Et})}return Ie(We)}function Me(We,Ie,He){var Ge=St(He),Et=Ge._title,ut=Ge.key,et=Ge.children,ot=new Set(Ie===!0?[]:Ie),Ce=[];function at(Ve){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ve.map(function(Dt,Ue){for(var st=ce(de?de.pos:"0",Ue),Ut=we(Dt[ut],st),Te,he=0;he<Et.length;he+=1){var Nt=Et[he];if(Dt[Nt]!==void 0){Te=Dt[Nt];break}}var Jt=Object.assign((0,ge.Z)(Dt,[].concat((0,Fe.Z)(Et),[ut,et])),{title:Te,key:Ut,parent:de,pos:st,children:null,data:Dt,isStart:[].concat((0,Fe.Z)(de?de.isStart:[]),[Ue===0]),isEnd:[].concat((0,Fe.Z)(de?de.isEnd:[]),[Ue===Ve.length-1])});return Ce.push(Jt),Ie===!0||ot.has(Ut)?Jt.children=at(Dt[et]||[],Jt):Jt.children=[],Jt})}return at(We),Ce}function Ne(We,Ie,He){var Ge={};(0,b.Z)(He)==="object"?Ge=He:Ge={externalGetKey:He},Ge=Ge||{};var Et=Ge,ut=Et.childrenPropName,et=Et.externalGetKey,ot=Et.fieldNames,Ce=St(ot),at=Ce.key,Ve=Ce.children,de=ut||Ve,Dt;et?typeof et=="string"?Dt=function(Ut){return Ut[et]}:typeof et=="function"&&(Dt=function(Ut){return et(Ut)}):Dt=function(Ut,Te){return we(Ut[at],Te)};function Ue(st,Ut,Te,he){var Nt=st?st[de]:We,Jt=st?ce(Te.pos,Ut):"0",Ft=st?[].concat((0,Fe.Z)(he),[st]):[];if(st){var ye=Dt(st,Jt),Ye={node:st,index:Ut,pos:Jt,key:ye,parentPos:Te.node?Te.pos:null,level:Te.level+1,nodes:Ft};Ie(Ye)}Nt&&Nt.forEach(function(lt,Xt){Ue(lt,Xt,{node:st,pos:Jt,level:Te?Te.level+1:-1},Ft)})}Ue(null)}function it(We){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},He=Ie.initWrapper,Ge=Ie.processEntity,Et=Ie.onProcessFinished,ut=Ie.externalGetKey,et=Ie.childrenPropName,ot=Ie.fieldNames,Ce=arguments.length>2?arguments[2]:void 0,at=ut||Ce,Ve={},de={},Dt={posEntities:Ve,keyEntities:de};return He&&(Dt=He(Dt)||Dt),Ne(We,function(Ue){var st=Ue.node,Ut=Ue.index,Te=Ue.pos,he=Ue.key,Nt=Ue.parentPos,Jt=Ue.level,Ft=Ue.nodes,ye={node:st,nodes:Ft,index:Ut,key:he,pos:Te,level:Jt},Ye=we(he,Te);Ve[Te]=ye,de[Ye]=ye,ye.parent=Ve[Nt],ye.parent&&(ye.parent.children=ye.parent.children||[],ye.parent.children.push(ye)),Ge&&Ge(ye,Dt)},{externalGetKey:at,childrenPropName:et,fieldNames:ot}),Et&&Et(Dt),Dt}function yt(We,Ie){var He=Ie.expandedKeys,Ge=Ie.selectedKeys,Et=Ie.loadedKeys,ut=Ie.loadingKeys,et=Ie.checkedKeys,ot=Ie.halfCheckedKeys,Ce=Ie.dragOverNodeKey,at=Ie.dropPosition,Ve=Ie.keyEntities,de=(0,Ze.Z)(Ve,We),Dt={eventKey:We,expanded:He.indexOf(We)!==-1,selected:Ge.indexOf(We)!==-1,loaded:Et.indexOf(We)!==-1,loading:ut.indexOf(We)!==-1,checked:et.indexOf(We)!==-1,halfChecked:ot.indexOf(We)!==-1,pos:String(de?de.pos:""),dragOver:Ce===We&&at===0,dragOverGapTop:Ce===We&&at===-1,dragOverGapBottom:Ce===We&&at===1};return Dt}function Ot(We){var Ie=We.data,He=We.expanded,Ge=We.selected,Et=We.checked,ut=We.loaded,et=We.loading,ot=We.halfChecked,Ce=We.dragOver,at=We.dragOverGapTop,Ve=We.dragOverGapBottom,de=We.pos,Dt=We.active,Ue=We.eventKey,st=(0,fe.Z)((0,fe.Z)({},Ie),{},{expanded:He,selected:Ge,checked:Et,loaded:ut,loading:et,halfChecked:ot,dragOver:Ce,dragOverGapTop:at,dragOverGapBottom:Ve,pos:de,active:Dt,key:Ue});return"props"in st||Object.defineProperty(st,"props",{get:function(){return(0,Ee.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),We}}),st}},8224:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Fe}});var b=ee(4676);function Fe(fe,qe,Se,ge){var Ee=b.unstable_batchedUpdates?function(Pe){b.unstable_batchedUpdates(Se,Pe)}:Se;return fe!=null&&fe.addEventListener&&fe.addEventListener(qe,Ee,ge),{remove:function(){fe!=null&&fe.removeEventListener&&fe.removeEventListener(qe,Ee,ge)}}}},24514:function(Cn,Qt,ee){"use strict";ee.d(Qt,{G:function(){return qe}});var b=ee(47273),Fe=function(ge){if((0,b.Z)()&&window.document.documentElement){var Ee=Array.isArray(ge)?ge:[ge],Ze=window.document.documentElement;return Ee.some(function(Pe){return Pe in Ze.style})}return!1},fe=function(ge,Ee){if(!Fe(ge))return!1;var Ze=document.createElement("div"),Pe=Ze.style[ge];return Ze.style[ge]=Ee,Ze.style[ge]!==Pe};function qe(Se,ge){return!Array.isArray(Se)&&ge!==void 0?fe(Se,ge):Fe(Se)}},48911:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ct}});var b=ee(60499),Fe=ee(43749),fe=ee(85899),qe=ee(18642),Se=ee(72190),ge=ee(42244),Ee=ee(92310),Ze=ee.n(Ee),Pe=ee(29301),ce=ee(70425),Xe=ee(34280),we=ee(59301),St=ee(4676),tt=we.forwardRef(function(ae,ne){var te=ae.height,ie=ae.offsetY,ue=ae.offsetX,re=ae.children,le=ae.prefixCls,xe=ae.onInnerResize,ft=ae.innerProps,Ae=ae.rtl,Le=ae.extra,Qe={},nt={display:"flex",flexDirection:"column"};return ie!==void 0&&(Qe={height:te,position:"relative",overflow:"hidden"},nt=(0,fe.Z)((0,fe.Z)({},nt),{},(0,qe.Z)((0,qe.Z)((0,qe.Z)((0,qe.Z)((0,qe.Z)({transform:"translateY(".concat(ie,"px)")},Ae?"marginRight":"marginLeft",-ue),"position","absolute"),"left",0),"right",0),"top",0))),we.createElement("div",{style:Qe},we.createElement(Pe.Z,{onResize:function(Oe){var Be=Oe.offsetHeight;Be&&xe&&xe()}},we.createElement("div",(0,b.Z)({style:nt,className:Ze()((0,qe.Z)({},"".concat(le,"-holder-inner"),le)),ref:ne},ft),re,Le)))});tt.displayName="Filler";var je=tt;function Me(ae){var ne=ae.children,te=ae.setRef,ie=we.useCallback(function(ue){te(ue)},[]);return we.cloneElement(ne,{ref:ie})}function Ne(ae,ne,te,ie,ue,re,le,xe){var ft=xe.getKey;return ae.slice(ne,te+1).map(function(Ae,Le){var Qe=ne+Le,nt=le(Ae,Qe,{style:{width:ie},offsetX:ue}),bt=ft(Ae);return we.createElement(Me,{key:bt,setRef:function(Be){return re(Ae,Be)}},nt)})}function it(ae,ne,te,ie){var ue=te-ae,re=ne-te,le=Math.min(ue,re)*2;if(ie<=le){var xe=Math.floor(ie/2);return ie%2?te+xe+1:te-xe}return ue>re?te-(ie-re):te+(ie-ue)}function yt(ae,ne,te){var ie=ae.length,ue=ne.length,re,le;if(ie===0&&ue===0)return null;ie<ue?(re=ae,le=ne):(re=ne,le=ae);var xe={__EMPTY_ITEM__:!0};function ft(Oe){return Oe!==void 0?te(Oe):xe}for(var Ae=null,Le=Math.abs(ie-ue)!==1,Qe=0;Qe<le.length;Qe+=1){var nt=ft(re[Qe]),bt=ft(le[Qe]);if(nt!==bt){Ae=Qe,Le=Le||nt!==ft(le[Qe+1]);break}}return Ae===null?null:{index:Ae,multiple:Le}}function Ot(ae,ne,te){var ie=we.useState(ae),ue=(0,Se.Z)(ie,2),re=ue[0],le=ue[1],xe=we.useState(null),ft=(0,Se.Z)(xe,2),Ae=ft[0],Le=ft[1];return we.useEffect(function(){var Qe=yt(re||[],ae||[],ne);(Qe==null?void 0:Qe.index)!==void 0&&(te==null||te(Qe.index),Le(ae[Qe.index])),le(ae)},[ae]),[Ae]}var We=ee(16089),Ie=(typeof navigator=="undefined"?"undefined":(0,Fe.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),He=Ie,Ge=function(ae,ne,te,ie){var ue=(0,we.useRef)(!1),re=(0,we.useRef)(null);function le(){clearTimeout(re.current),ue.current=!0,re.current=setTimeout(function(){ue.current=!1},50)}var xe=(0,we.useRef)({top:ae,bottom:ne,left:te,right:ie});return xe.current.top=ae,xe.current.bottom=ne,xe.current.left=te,xe.current.right=ie,function(ft,Ae){var Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Qe=ft?Ae<0&&xe.current.left||Ae>0&&xe.current.right:Ae<0&&xe.current.top||Ae>0&&xe.current.bottom;return Le&&Qe?(clearTimeout(re.current),ue.current=!1):(!Qe||ue.current)&&le(),!ue.current&&Qe}};function Et(ae,ne,te,ie,ue,re,le){var xe=(0,we.useRef)(0),ft=(0,we.useRef)(null),Ae=(0,we.useRef)(null),Le=(0,we.useRef)(!1),Qe=Ge(ne,te,ie,ue);function nt(qt,en){if(We.Z.cancel(ft.current),!Qe(!1,en)){var Tt=qt;if(!Tt._virtualHandled)Tt._virtualHandled=!0;else return;xe.current+=en,Ae.current=en,He||Tt.preventDefault(),ft.current=(0,We.Z)(function(){var an=Le.current?10:1;le(xe.current*an,!1),xe.current=0})}}function bt(qt,en){le(en,!0),He||qt.preventDefault()}var Oe=(0,we.useRef)(null),Be=(0,we.useRef)(null);function zt(qt){if(ae){We.Z.cancel(Be.current),Be.current=(0,We.Z)(function(){Oe.current=null},2);var en=qt.deltaX,Tt=qt.deltaY,an=qt.shiftKey,Wt=en,Ke=Tt;(Oe.current==="sx"||!Oe.current&&an&&Tt&&!en)&&(Wt=Tt,Ke=0,Oe.current="sx");var mt=Math.abs(Wt),$t=Math.abs(Ke);Oe.current===null&&(Oe.current=re&&mt>$t?"x":"y"),Oe.current==="y"?nt(qt,Ke):bt(qt,Wt)}}function Zt(qt){ae&&(Le.current=qt.detail===Ae.current)}return[zt,Zt]}function ut(ae,ne,te,ie){var ue=we.useMemo(function(){return[new Map,[]]},[ae,te.id,ie]),re=(0,Se.Z)(ue,2),le=re[0],xe=re[1],ft=function(Le){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Le,nt=le.get(Le),bt=le.get(Qe);if(nt===void 0||bt===void 0)for(var Oe=ae.length,Be=xe.length;Be<Oe;Be+=1){var zt,Zt=ae[Be],qt=ne(Zt);le.set(qt,Be);var en=(zt=te.get(qt))!==null&&zt!==void 0?zt:ie;if(xe[Be]=(xe[Be-1]||0)+en,qt===Le&&(nt=Be),qt===Qe&&(bt=Be),nt!==void 0&&bt!==void 0)break}return{top:xe[nt-1]||0,bottom:xe[bt]}};return ft}var et=ee(38705),ot=ee(17212),Ce=function(){function ae(){(0,et.Z)(this,ae),(0,qe.Z)(this,"maps",void 0),(0,qe.Z)(this,"id",0),(0,qe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ot.Z)(ae,[{key:"set",value:function(te,ie){this.diffRecords.set(te,this.maps[te]),this.maps[te]=ie,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}(),at=Ce;function Ve(ae){var ne=parseFloat(ae);return isNaN(ne)?0:ne}function de(ae,ne,te){var ie=we.useState(0),ue=(0,Se.Z)(ie,2),re=ue[0],le=ue[1],xe=(0,we.useRef)(new Map),ft=(0,we.useRef)(new at),Ae=(0,we.useRef)(0);function Le(){Ae.current+=1}function Qe(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Le();var Oe=function(){var Zt=!1;xe.current.forEach(function(qt,en){if(qt&&qt.offsetParent){var Tt=qt.offsetHeight,an=getComputedStyle(qt),Wt=an.marginTop,Ke=an.marginBottom,mt=Ve(Wt),$t=Ve(Ke),nn=Tt+mt+$t;ft.current.get(en)!==nn&&(ft.current.set(en,nn),Zt=!0)}}),Zt&&le(function(qt){return qt+1})};if(bt)Oe();else{Ae.current+=1;var Be=Ae.current;Promise.resolve().then(function(){Be===Ae.current&&Oe()})}}function nt(bt,Oe){var Be=ae(bt),zt=xe.current.get(Be);Oe?(xe.current.set(Be,Oe),Qe()):xe.current.delete(Be),!zt!=!Oe&&(Oe?ne==null||ne(bt):te==null||te(bt))}return(0,we.useEffect)(function(){return Le},[]),[nt,Qe,ft.current,re]}var Dt=14/15;function Ue(ae,ne,te){var ie=(0,we.useRef)(!1),ue=(0,we.useRef)(0),re=(0,we.useRef)(0),le=(0,we.useRef)(null),xe=(0,we.useRef)(null),ft,Ae=function(bt){if(ie.current){var Oe=Math.ceil(bt.touches[0].pageX),Be=Math.ceil(bt.touches[0].pageY),zt=ue.current-Oe,Zt=re.current-Be,qt=Math.abs(zt)>Math.abs(Zt);qt?ue.current=Oe:re.current=Be;var en=te(qt,qt?zt:Zt,!1,bt);en&&bt.preventDefault(),clearInterval(xe.current),en&&(xe.current=setInterval(function(){qt?zt*=Dt:Zt*=Dt;var Tt=Math.floor(qt?zt:Zt);(!te(qt,Tt,!0)||Math.abs(Tt)<=.1)&&clearInterval(xe.current)},16))}},Le=function(){ie.current=!1,ft()},Qe=function(bt){ft(),bt.touches.length===1&&!ie.current&&(ie.current=!0,ue.current=Math.ceil(bt.touches[0].pageX),re.current=Math.ceil(bt.touches[0].pageY),le.current=bt.target,le.current.addEventListener("touchmove",Ae,{passive:!1}),le.current.addEventListener("touchend",Le,{passive:!0}))};ft=function(){le.current&&(le.current.removeEventListener("touchmove",Ae),le.current.removeEventListener("touchend",Le))},(0,Xe.Z)(function(){return ae&&ne.current.addEventListener("touchstart",Qe,{passive:!0}),function(){var nt;(nt=ne.current)===null||nt===void 0||nt.removeEventListener("touchstart",Qe),ft(),clearInterval(xe.current)}},[ae])}function st(ae){return Math.floor(Math.pow(ae,.5))}function Ut(ae,ne){var te="touches"in ae?ae.touches[0]:ae;return te[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function Te(ae,ne,te){we.useEffect(function(){var ie=ne.current;if(ae&&ie){var ue=!1,re,le,xe=function(){We.Z.cancel(re)},ft=function nt(){xe(),re=(0,We.Z)(function(){te(le),nt()})},Ae=function(){ue=!1,xe()},Le=function(bt){if(!(bt.target.draggable||bt.button!==0)){var Oe=bt;Oe._virtualHandled||(Oe._virtualHandled=!0,ue=!0)}},Qe=function(bt){if(ue){var Oe=Ut(bt,!1),Be=ie.getBoundingClientRect(),zt=Be.top,Zt=Be.bottom;if(Oe<=zt){var qt=zt-Oe;le=-st(qt),ft()}else if(Oe>=Zt){var en=Oe-Zt;le=st(en),ft()}else xe()}};return ie.addEventListener("mousedown",Le),ie.ownerDocument.addEventListener("mouseup",Ae),ie.ownerDocument.addEventListener("mousemove",Qe),ie.ownerDocument.addEventListener("dragend",Ae),function(){ie.removeEventListener("mousedown",Le),ie.ownerDocument.removeEventListener("mouseup",Ae),ie.ownerDocument.removeEventListener("mousemove",Qe),ie.ownerDocument.removeEventListener("dragend",Ae),xe()}}},[ae])}var he=10;function Nt(ae,ne,te,ie,ue,re,le,xe){var ft=we.useRef(),Ae=we.useState(null),Le=(0,Se.Z)(Ae,2),Qe=Le[0],nt=Le[1];return(0,Xe.Z)(function(){if(Qe&&Qe.times<he){if(!ae.current){nt(function(vn){return(0,fe.Z)({},vn)});return}re();var bt=Qe.targetAlign,Oe=Qe.originAlign,Be=Qe.index,zt=Qe.offset,Zt=ae.current.clientHeight,qt=!1,en=bt,Tt=null;if(Zt){for(var an=bt||Oe,Wt=0,Ke=0,mt=0,$t=Math.min(ne.length-1,Be),nn=0;nn<=$t;nn+=1){var Re=ue(ne[nn]);Ke=Wt;var pt=te.get(Re);mt=Ke+(pt===void 0?ie:pt),Wt=mt}for(var Mt=an==="top"?zt:Zt-zt,Kt=$t;Kt>=0;Kt-=1){var cn=ue(ne[Kt]),Pn=te.get(cn);if(Pn===void 0){qt=!0;break}if(Mt-=Pn,Mt<=0)break}switch(an){case"top":Tt=Ke-zt;break;case"bottom":Tt=mt-Zt+zt;break;default:{var Rn=ae.current.scrollTop,Fn=Rn+Zt;Ke<Rn?en="top":mt>Fn&&(en="bottom")}}Tt!==null&&le(Tt),Tt!==Qe.lastTop&&(qt=!0)}qt&&nt((0,fe.Z)((0,fe.Z)({},Qe),{},{times:Qe.times+1,targetAlign:en,lastTop:Tt}))}},[Qe,ae.current]),function(bt){if(bt==null){xe();return}if(We.Z.cancel(ft.current),typeof bt=="number")le(bt);else if(bt&&(0,Fe.Z)(bt)==="object"){var Oe,Be=bt.align;"index"in bt?Oe=bt.index:Oe=ne.findIndex(function(qt){return ue(qt)===bt.key});var zt=bt.offset,Zt=zt===void 0?0:zt;nt({times:0,index:Oe,offset:Zt,originAlign:Be})}}}var Jt=we.forwardRef(function(ae,ne){var te=ae.prefixCls,ie=ae.rtl,ue=ae.scrollOffset,re=ae.scrollRange,le=ae.onStartMove,xe=ae.onStopMove,ft=ae.onScroll,Ae=ae.horizontal,Le=ae.spinSize,Qe=ae.containerSize,nt=ae.style,bt=ae.thumbStyle,Oe=ae.showScrollBar,Be=we.useState(!1),zt=(0,Se.Z)(Be,2),Zt=zt[0],qt=zt[1],en=we.useState(null),Tt=(0,Se.Z)(en,2),an=Tt[0],Wt=Tt[1],Ke=we.useState(null),mt=(0,Se.Z)(Ke,2),$t=mt[0],nn=mt[1],Re=!ie,pt=we.useRef(),Mt=we.useRef(),Kt=we.useState(Oe),cn=(0,Se.Z)(Kt,2),Pn=cn[0],Rn=cn[1],Fn=we.useRef(),vn=function(){Oe===!0||Oe===!1||(clearTimeout(Fn.current),Rn(!0),Fn.current=setTimeout(function(){Rn(!1)},3e3))},Mn=re-Qe||0,dn=Qe-Le||0,Vt=we.useMemo(function(){if(ue===0||Mn===0)return 0;var Zn=ue/Mn;return Zn*dn},[ue,Mn,dn]),tn=function(Jn){Jn.stopPropagation(),Jn.preventDefault()},on=we.useRef({top:Vt,dragging:Zt,pageY:an,startTop:$t});on.current={top:Vt,dragging:Zt,pageY:an,startTop:$t};var _t=function(Jn){qt(!0),Wt(Ut(Jn,Ae)),nn(on.current.top),le(),Jn.stopPropagation(),Jn.preventDefault()};we.useEffect(function(){var Zn=function(cr){cr.preventDefault()},Jn=pt.current,Gn=Mt.current;return Jn.addEventListener("touchstart",Zn,{passive:!1}),Gn.addEventListener("touchstart",_t,{passive:!1}),function(){Jn.removeEventListener("touchstart",Zn),Gn.removeEventListener("touchstart",_t)}},[]);var hn=we.useRef();hn.current=Mn;var mn=we.useRef();mn.current=dn,we.useEffect(function(){if(Zt){var Zn,Jn=function(cr){var sn=on.current,yn=sn.dragging,Hn=sn.pageY,An=sn.startTop;We.Z.cancel(Zn);var ct=pt.current.getBoundingClientRect(),It=Qe/(Ae?ct.width:ct.height);if(yn){var ze=(Ut(cr,Ae)-Hn)*It,vt=An;!Re&&Ae?vt-=ze:vt+=ze;var $e=hn.current,xt=mn.current,De=xt?vt/xt:0,Pt=Math.ceil(De*$e);Pt=Math.max(Pt,0),Pt=Math.min(Pt,$e),Zn=(0,We.Z)(function(){ft(Pt,Ae)})}},Gn=function(){qt(!1),xe()};return window.addEventListener("mousemove",Jn,{passive:!0}),window.addEventListener("touchmove",Jn,{passive:!0}),window.addEventListener("mouseup",Gn,{passive:!0}),window.addEventListener("touchend",Gn,{passive:!0}),function(){window.removeEventListener("mousemove",Jn),window.removeEventListener("touchmove",Jn),window.removeEventListener("mouseup",Gn),window.removeEventListener("touchend",Gn),We.Z.cancel(Zn)}}},[Zt]),we.useEffect(function(){return vn(),function(){clearTimeout(Fn.current)}},[ue]),we.useImperativeHandle(ne,function(){return{delayHidden:vn}});var Sn="".concat(te,"-scrollbar"),zn={position:"absolute",visibility:Pn?null:"hidden"},Wn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ae?(Object.assign(zn,{height:8,left:0,right:0,bottom:0}),Object.assign(Wn,(0,qe.Z)({height:"100%",width:Le},Re?"left":"right",Vt))):(Object.assign(zn,(0,qe.Z)({width:8,top:0,bottom:0},Re?"right":"left",0)),Object.assign(Wn,{width:"100%",height:Le,top:Vt})),we.createElement("div",{ref:pt,className:Ze()(Sn,(0,qe.Z)((0,qe.Z)((0,qe.Z)({},"".concat(Sn,"-horizontal"),Ae),"".concat(Sn,"-vertical"),!Ae),"".concat(Sn,"-visible"),Pn)),style:(0,fe.Z)((0,fe.Z)({},zn),nt),onMouseDown:tn,onMouseMove:vn},we.createElement("div",{ref:Mt,className:Ze()("".concat(Sn,"-thumb"),(0,qe.Z)({},"".concat(Sn,"-thumb-moving"),Zt)),style:(0,fe.Z)((0,fe.Z)({},Wn),bt),onMouseDown:_t}))}),Ft=Jt,ye=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,ye),Math.floor(te)}var lt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Xt=[],rt={overflowY:"auto",overflowAnchor:"none"};function At(ae,ne){var te=ae.prefixCls,ie=te===void 0?"rc-virtual-list":te,ue=ae.className,re=ae.height,le=ae.itemHeight,xe=ae.fullHeight,ft=xe===void 0?!0:xe,Ae=ae.style,Le=ae.data,Qe=ae.children,nt=ae.itemKey,bt=ae.virtual,Oe=ae.direction,Be=ae.scrollWidth,zt=ae.component,Zt=zt===void 0?"div":zt,qt=ae.onScroll,en=ae.onVirtualScroll,Tt=ae.onVisibleChange,an=ae.innerProps,Wt=ae.extraRender,Ke=ae.styles,mt=ae.showScrollBar,$t=mt===void 0?"optional":mt,nn=(0,ge.Z)(ae,lt),Re=we.useCallback(function(wn){return typeof nt=="function"?nt(wn):wn==null?void 0:wn[nt]},[nt]),pt=de(Re,null,null),Mt=(0,Se.Z)(pt,4),Kt=Mt[0],cn=Mt[1],Pn=Mt[2],Rn=Mt[3],Fn=!!(bt!==!1&&re&&le),vn=we.useMemo(function(){return Object.values(Pn.maps).reduce(function(wn,jn){return wn+jn},0)},[Pn.id,Pn.maps]),Mn=Fn&&Le&&(Math.max(le*Le.length,vn)>re||!!Be),dn=Oe==="rtl",Vt=Ze()(ie,(0,qe.Z)({},"".concat(ie,"-rtl"),dn),ue),tn=Le||Xt,on=(0,we.useRef)(),_t=(0,we.useRef)(),hn=(0,we.useRef)(),mn=(0,we.useState)(0),Sn=(0,Se.Z)(mn,2),zn=Sn[0],Wn=Sn[1],Zn=(0,we.useState)(0),Jn=(0,Se.Z)(Zn,2),Gn=Jn[0],hr=Jn[1],cr=(0,we.useState)(!1),sn=(0,Se.Z)(cr,2),yn=sn[0],Hn=sn[1],An=function(){Hn(!0)},ct=function(){Hn(!1)},It={getKey:Re};function ze(wn){Wn(function(jn){var Kn;typeof wn=="function"?Kn=wn(jn):Kn=wn;var kn=wr(Kn);return on.current.scrollTop=kn,kn})}var vt=(0,we.useRef)({start:0,end:tn.length}),$e=(0,we.useRef)(),xt=Ot(tn,Re),De=(0,Se.Z)(xt,1),Pt=De[0];$e.current=Pt;var kt=we.useMemo(function(){if(!Fn)return{scrollHeight:void 0,start:0,end:tn.length-1,offset:void 0};if(!Mn){var wn;return{scrollHeight:((wn=_t.current)===null||wn===void 0?void 0:wn.offsetHeight)||0,start:0,end:tn.length-1,offset:void 0}}for(var jn=0,Kn,kn,fr,Er=tn.length,$n=0;$n<Er;$n+=1){var Bn=tn[$n],_n=Re(Bn),or=Pn.get(_n),eo=jn+(or===void 0?le:or);eo>=zn&&Kn===void 0&&(Kn=$n,kn=jn),eo>zn+re&&fr===void 0&&(fr=$n),jn=eo}return Kn===void 0&&(Kn=0,kn=0,fr=Math.ceil(re/le)),fr===void 0&&(fr=tn.length-1),fr=Math.min(fr+1,tn.length-1),{scrollHeight:jn,start:Kn,end:fr,offset:kn}},[Mn,Fn,zn,tn,Rn,re]),jt=kt.scrollHeight,gt=kt.start,ht=kt.end,wt=kt.offset;vt.current.start=gt,vt.current.end=ht,we.useLayoutEffect(function(){var wn=Pn.getRecord();if(wn.size===1){var jn=Array.from(wn.keys())[0],Kn=wn.get(jn),kn=tn[gt];if(kn&&Kn===void 0){var fr=Re(kn);if(fr===jn){var Er=Pn.get(jn),$n=Er-le;ze(function(Bn){return Bn+$n})}}}Pn.resetRecord()},[jt]);var Rt=we.useState({width:0,height:re}),In=(0,Se.Z)(Rt,2),On=In[0],Nn=In[1],tr=function(jn){Nn({width:jn.offsetWidth,height:jn.offsetHeight})},dr=(0,we.useRef)(),mr=(0,we.useRef)(),er=we.useMemo(function(){return Ye(On.width,Be)},[On.width,Be]),Yn=we.useMemo(function(){return Ye(On.height,jt)},[On.height,jt]),Qn=jt-re,rr=(0,we.useRef)(Qn);rr.current=Qn;function wr(wn){var jn=wn;return Number.isNaN(rr.current)||(jn=Math.min(jn,rr.current)),jn=Math.max(jn,0),jn}var ar=zn<=0,Cr=zn>=Qn,qn=Gn<=0,pr=Gn>=Be,vr=Ge(ar,Cr,qn,pr),Kr=function(){return{x:dn?-Gn:Gn,y:zn}},_r=(0,we.useRef)(Kr()),Wr=(0,ce.zX)(function(wn){if(en){var jn=(0,fe.Z)((0,fe.Z)({},Kr()),wn);(_r.current.x!==jn.x||_r.current.y!==jn.y)&&(en(jn),_r.current=jn)}});function Ur(wn,jn){var Kn=wn;jn?((0,St.flushSync)(function(){hr(Kn)}),Wr()):ze(Kn)}function ao(wn){var jn=wn.currentTarget.scrollTop;jn!==zn&&ze(jn),qt==null||qt(wn),Wr()}var Hr=function(jn){var Kn=jn,kn=Be?Be-On.width:0;return Kn=Math.max(Kn,0),Kn=Math.min(Kn,kn),Kn},to=(0,ce.zX)(function(wn,jn){jn?((0,St.flushSync)(function(){hr(function(Kn){var kn=Kn+(dn?-wn:wn);return Hr(kn)})}),Wr()):ze(function(Kn){var kn=Kn+wn;return kn})}),Ir=Et(Fn,ar,Cr,qn,pr,!!Be,to),ro=(0,Se.Z)(Ir,2),ho=ro[0],En=ro[1];Ue(Fn,on,function(wn,jn,Kn,kn){var fr=kn;return vr(wn,jn,Kn)?!1:!fr||!fr._virtualHandled?(fr&&(fr._virtualHandled=!0),ho({preventDefault:function(){},deltaX:wn?jn:0,deltaY:wn?0:jn}),!0):!1}),Te(Mn,on,function(wn){ze(function(jn){return jn+wn})}),(0,Xe.Z)(function(){function wn(Kn){var kn=ar&&Kn.detail<0,fr=Cr&&Kn.detail>0;Fn&&!kn&&!fr&&Kn.preventDefault()}var jn=on.current;return jn.addEventListener("wheel",ho,{passive:!1}),jn.addEventListener("DOMMouseScroll",En,{passive:!0}),jn.addEventListener("MozMousePixelScroll",wn,{passive:!1}),function(){jn.removeEventListener("wheel",ho),jn.removeEventListener("DOMMouseScroll",En),jn.removeEventListener("MozMousePixelScroll",wn)}},[Fn,ar,Cr]),(0,Xe.Z)(function(){if(Be){var wn=Hr(Gn);hr(wn),Wr({x:wn})}},[On.width,Be]);var Vn=function(){var jn,Kn;(jn=dr.current)===null||jn===void 0||jn.delayHidden(),(Kn=mr.current)===null||Kn===void 0||Kn.delayHidden()},zr=Nt(on,tn,Pn,le,Re,function(){return cn(!0)},ze,Vn);we.useImperativeHandle(ne,function(){return{nativeElement:hn.current,getScrollInfo:Kr,scrollTo:function(jn){function Kn(kn){return kn&&(0,Fe.Z)(kn)==="object"&&("left"in kn||"top"in kn)}Kn(jn)?(jn.left!==void 0&&hr(Hr(jn.left)),zr(jn.top)):zr(jn)}}}),(0,Xe.Z)(function(){if(Tt){var wn=tn.slice(gt,ht+1);Tt(wn,tn)}},[gt,ht,tn]);var no=ut(tn,Re,Pn,le),vo=Wt==null?void 0:Wt({start:gt,end:ht,virtual:Mn,offsetX:Gn,offsetY:wt,rtl:dn,getSize:no}),Dr=Ne(tn,gt,ht,Be,Gn,Kt,Qe,It),kr=null;re&&(kr=(0,fe.Z)((0,qe.Z)({},ft?"height":"maxHeight",re),rt),Fn&&(kr.overflowY="hidden",Be&&(kr.overflowX="hidden"),yn&&(kr.pointerEvents="none")));var lr={};return dn&&(lr.dir="rtl"),we.createElement("div",(0,b.Z)({ref:hn,style:(0,fe.Z)((0,fe.Z)({},Ae),{},{position:"relative"}),className:Vt},lr,nn),we.createElement(Pe.Z,{onResize:tr},we.createElement(Zt,{className:"".concat(ie,"-holder"),style:kr,ref:on,onScroll:ao,onMouseEnter:Vn},we.createElement(je,{prefixCls:ie,height:jt,offsetX:Gn,offsetY:wt,scrollWidth:Be,onInnerResize:cn,ref:_t,innerProps:an,rtl:dn,extra:vo},Dr))),Mn&&jt>re&&we.createElement(Ft,{ref:dr,prefixCls:ie,scrollOffset:zn,scrollRange:jt,rtl:dn,onScroll:Ur,onStartMove:An,onStopMove:ct,spinSize:Yn,containerSize:On.height,style:Ke==null?void 0:Ke.verticalScrollBar,thumbStyle:Ke==null?void 0:Ke.verticalScrollBarThumb,showScrollBar:$t}),Mn&&Be>On.width&&we.createElement(Ft,{ref:mr,prefixCls:ie,scrollOffset:Gn,scrollRange:Be,rtl:dn,onScroll:Ur,onStartMove:An,onStopMove:ct,spinSize:er,containerSize:On.width,horizontal:!0,style:Ke==null?void 0:Ke.horizontalScrollBar,thumbStyle:Ke==null?void 0:Ke.horizontalScrollBarThumb,showScrollBar:$t}))}var _e=we.forwardRef(At);_e.displayName="List";var Yt=_e,Ct=Yt},4977:function(Cn){"use strict";Cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6Je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BKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},55351:function(Cn){"use strict";Cn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA+VemSAAAAAXNSR0IArs4c6QAAQABJREFUeAHs3QfYddlVF/AXHAt2saIoX+wVxAIIChM0ININRYzKKFFBggokFghk6KYQEgQFRBiBQEAgRIICUsaKWMBYscHYsPcGqFzXb0/+J+vu75R73++bCfq4nufe3dZea+21yzlr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JP488fZovP7681du+LfA87qwlotten1Qhh/5yLPRpbRenx7SeiYBuZ+X9bFUyvdZGZPnduh1r+T4P9WYP6EB/3v1PF9b7v+qCuB1+pXCcwM8G+hj1uPCvFfG7pc+h5MnrvQZ5xYec57Qi4tGp9P9cIRnGs8LNYUVN1RHzvrr84kv1oJneZ5zIHfoP6vEH/nIbZOVz/V5lu8ZzfhXLj6reDnFH8FDOa9psXHoH9G5TrtcwvdIruDI+1wOfbj88++5XNd2vebcQ+H9jP7z/J1vx1/7qzy00Wqr/+Nra8z+7/8X8NWrfSOUc+sAAAAASUVORK5CYII="},16722:function(Cn,Qt,ee){"use strict";ee.d(Qt,{Z:function(){return Ze}});const b=Pe=>typeof Pe=="object"&&Pe!=null&&Pe.nodeType===1,Fe=(Pe,ce)=>(!ce||Pe!=="hidden")&&Pe!=="visible"&&Pe!=="clip",fe=(Pe,ce)=>{if(Pe.clientHeight<Pe.scrollHeight||Pe.clientWidth<Pe.scrollWidth){const Xe=getComputedStyle(Pe,null);return Fe(Xe.overflowY,ce)||Fe(Xe.overflowX,ce)||(we=>{const St=(tt=>{if(!tt.ownerDocument||!tt.ownerDocument.defaultView)return null;try{return tt.ownerDocument.defaultView.frameElement}catch(je){return null}})(we);return!!St&&(St.clientHeight<we.scrollHeight||St.clientWidth<we.scrollWidth)})(Pe)}return!1},qe=(Pe,ce,Xe,we,St,tt,je,Me)=>tt<Pe&&je>ce||tt>Pe&&je<ce?0:tt<=Pe&&Me<=Xe||je>=ce&&Me>=Xe?tt-Pe-we:je>ce&&Me<Xe||tt<Pe&&Me>Xe?je-ce+St:0,Se=Pe=>{const ce=Pe.parentElement;return ce==null?Pe.getRootNode().host||null:ce},ge=(Pe,ce)=>{var Xe,we,St,tt;if(typeof document=="undefined")return[];const{scrollMode:je,block:Me,inline:Ne,boundary:it,skipOverflowHiddenElements:yt}=ce,Ot=typeof it=="function"?it:Ft=>Ft!==it;if(!b(Pe))throw new TypeError("Invalid target");const We=document.scrollingElement||document.documentElement,Ie=[];let He=Pe;for(;b(He)&&Ot(He);){if(He=Se(He),He===We){Ie.push(He);break}He!=null&&He===document.body&&fe(He)&&!fe(document.documentElement)||He!=null&&fe(He,yt)&&Ie.push(He)}const Ge=(we=(Xe=window.visualViewport)==null?void 0:Xe.width)!=null?we:innerWidth,Et=(tt=(St=window.visualViewport)==null?void 0:St.height)!=null?tt:innerHeight,{scrollX:ut,scrollY:et}=window,{height:ot,width:Ce,top:at,right:Ve,bottom:de,left:Dt}=Pe.getBoundingClientRect(),{top:Ue,right:st,bottom:Ut,left:Te}=(Ft=>{const ye=window.getComputedStyle(Ft);return{top:parseFloat(ye.scrollMarginTop)||0,right:parseFloat(ye.scrollMarginRight)||0,bottom:parseFloat(ye.scrollMarginBottom)||0,left:parseFloat(ye.scrollMarginLeft)||0}})(Pe);let he=Me==="start"||Me==="nearest"?at-Ue:Me==="end"?de+Ut:at+ot/2-Ue+Ut,Nt=Ne==="center"?Dt+Ce/2-Te+st:Ne==="end"?Ve+st:Dt-Te;const Jt=[];for(let Ft=0;Ft<Ie.length;Ft++){const ye=Ie[Ft],{height:Ye,width:lt,top:Xt,right:rt,bottom:At,left:_e}=ye.getBoundingClientRect();if(je==="if-needed"&&at>=0&&Dt>=0&&de<=Et&&Ve<=Ge&&(ye===We&&!fe(ye)||at>=Xt&&de<=At&&Dt>=_e&&Ve<=rt))return Jt;const Yt=getComputedStyle(ye),Ct=parseInt(Yt.borderLeftWidth,10),ae=parseInt(Yt.borderTopWidth,10),ne=parseInt(Yt.borderRightWidth,10),te=parseInt(Yt.borderBottomWidth,10);let ie=0,ue=0;const re="offsetWidth"in ye?ye.offsetWidth-ye.clientWidth-Ct-ne:0,le="offsetHeight"in ye?ye.offsetHeight-ye.clientHeight-ae-te:0,xe="offsetWidth"in ye?ye.offsetWidth===0?0:lt/ye.offsetWidth:0,ft="offsetHeight"in ye?ye.offsetHeight===0?0:Ye/ye.offsetHeight:0;if(We===ye)ie=Me==="start"?he:Me==="end"?he-Et:Me==="nearest"?qe(et,et+Et,Et,ae,te,et+he,et+he+ot,ot):he-Et/2,ue=Ne==="start"?Nt:Ne==="center"?Nt-Ge/2:Ne==="end"?Nt-Ge:qe(ut,ut+Ge,Ge,Ct,ne,ut+Nt,ut+Nt+Ce,Ce),ie=Math.max(0,ie+et),ue=Math.max(0,ue+ut);else{ie=Me==="start"?he-Xt-ae:Me==="end"?he-At+te+le:Me==="nearest"?qe(Xt,At,Ye,ae,te+le,he,he+ot,ot):he-(Xt+Ye/2)+le/2,ue=Ne==="start"?Nt-_e-Ct:Ne==="center"?Nt-(_e+lt/2)+re/2:Ne==="end"?Nt-rt+ne+re:qe(_e,rt,lt,Ct,ne+re,Nt,Nt+Ce,Ce);const{scrollLeft:Ae,scrollTop:Le}=ye;ie=ft===0?0:Math.max(0,Math.min(Le+ie/ft,ye.scrollHeight-Ye/ft+le)),ue=xe===0?0:Math.max(0,Math.min(Ae+ue/xe,ye.scrollWidth-lt/xe+re)),he+=Le-ie,Nt+=Ae-ue}Jt.push({el:ye,top:ie,left:ue})}return Jt},Ee=Pe=>Pe===!1?{block:"end",inline:"nearest"}:(ce=>ce===Object(ce)&&Object.keys(ce).length!==0)(Pe)?Pe:{block:"start",inline:"nearest"};function Ze(Pe,ce){if(!Pe.isConnected||!(St=>{let tt=St;for(;tt&&tt.parentNode;){if(tt.parentNode===document)return!0;tt=tt.parentNode instanceof ShadowRoot?tt.parentNode.host:tt.parentNode}return!1})(Pe))return;const Xe=(St=>{const tt=window.getComputedStyle(St);return{top:parseFloat(tt.scrollMarginTop)||0,right:parseFloat(tt.scrollMarginRight)||0,bottom:parseFloat(tt.scrollMarginBottom)||0,left:parseFloat(tt.scrollMarginLeft)||0}})(Pe);if((St=>typeof St=="object"&&typeof St.behavior=="function")(ce))return ce.behavior(ge(Pe,ce));const we=typeof ce=="boolean"||ce==null?void 0:ce.behavior;for(const{el:St,top:tt,left:je}of ge(Pe,Ee(ce))){const Me=tt-Xe.top+Xe.bottom,Ne=je-Xe.left+Xe.right;St.scroll({top:Me,left:Ne,behavior:we})}}}}]);