!(function(){var GA=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[2303],{70557:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},27812:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},89489:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},59477:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},40001:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},26227:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},49198:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},84105:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},18785:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},87169:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},73331:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},15277:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},52671:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},8657:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},56082:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},33853:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},15075:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},43531:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},61485:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},38819:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},47472:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},95869:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},87395:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return I}});var we=g(96663),De=g(59301),se={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"},Me=se,ie=g(7657),Y=function(o,L){return De.createElement(ie.Z,(0,we.Z)({},o,{ref:L,icon:Me}))},O=De.forwardRef(Y),I=O},35593:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return Nt}});var we=g(44127),De=g(72071),se=g(6620),Me=g(43403),ie=g(92310),Y=g.n(ie),O=g(29301),I=g(76846),n=g(96452),o=g(6089),L=g(80402),p=g(34280),a=g(49658),A=g(59301),m=g(96663),S=g(77900),$=g(8654);function F(z){var v=z.prefixCls,h=z.align,D=z.arrow,fe=z.arrowPos,Z=D||{},N=Z.className,te=Z.content,Te=fe.x,Ie=Te===void 0?0:Te,Fe=fe.y,ze=Fe===void 0?0:Fe,pt=A.useRef();if(!h||!h.points)return null;var $e={position:"absolute"};if(h.autoArrow!==!1){var tt=h.points[0],ct=h.points[1],Ge=tt[0],Ke=tt[1],Bt=ct[0],Vt=ct[1];Ge===Bt||!["t","b"].includes(Ge)?$e.top=ze:Ge==="t"?$e.top=0:$e.bottom=0,Ke===Vt||!["l","r"].includes(Ke)?$e.left=Ie:Ke==="l"?$e.left=0:$e.right=0}return A.createElement("div",{ref:pt,className:Y()("".concat(v,"-arrow"),N),style:$e},te)}function H(z){var v=z.prefixCls,h=z.open,D=z.zIndex,fe=z.mask,Z=z.motion;return fe?A.createElement(S.default,(0,m.Z)({},Z,{motionAppear:!0,visible:h,removeOnLeave:!0}),function(N){var te=N.className;return A.createElement("div",{style:{zIndex:D},className:Y()("".concat(v,"-mask"),te)})}):null}var V=A.memo(function(z){var v=z.children;return v},function(z,v){return v.cache}),ee=V,B=A.forwardRef(function(z,v){var h=z.popup,D=z.className,fe=z.prefixCls,Z=z.style,N=z.target,te=z.onVisibleChanged,Te=z.open,Ie=z.keepDom,Fe=z.fresh,ze=z.onClick,pt=z.mask,$e=z.arrow,tt=z.arrowPos,ct=z.align,Ge=z.motion,Ke=z.maskMotion,Bt=z.forceRender,Vt=z.getPopupContainer,Mt=z.autoDestroy,mr=z.portal,wr=z.zIndex,re=z.onMouseEnter,ue=z.onMouseLeave,rr=z.onPointerEnter,Qe=z.ready,ot=z.offsetX,Yr=z.offsetY,It=z.offsetR,zt=z.offsetB,qt=z.onAlign,qe=z.onPrepare,At=z.stretch,dt=z.targetWidth,Gt=z.targetHeight,Pe=typeof h=="function"?h():h,an=Te||Ie,kt=(Vt==null?void 0:Vt.length)>0,kn=A.useState(!Vt||!kt),Xn=(0,De.Z)(kn,2),yi=Xn[0],ji=Xn[1];if((0,p.Z)(function(){!yi&&kt&&N&&ji(!0)},[yi,kt,N]),!yi)return null;var On="auto",$n={left:"-1000vw",top:"-1000vh",right:On,bottom:On};if(Qe||!Te){var Yt,jr=ct.points,Jr=ct.dynamicInset||((Yt=ct._experimental)===null||Yt===void 0?void 0:Yt.dynamicInset),Ot=Jr&&jr[0][1]==="r",_t=Jr&&jr[0][0]==="b";Ot?($n.right=It,$n.left=On):($n.left=ot,$n.right=On),_t?($n.bottom=zt,$n.top=On):($n.top=Yr,$n.bottom=On)}var Br={};return At&&(At.includes("height")&&Gt?Br.height=Gt:At.includes("minHeight")&&Gt&&(Br.minHeight=Gt),At.includes("width")&&dt?Br.width=dt:At.includes("minWidth")&&dt&&(Br.minWidth=dt)),Te||(Br.pointerEvents="none"),A.createElement(mr,{open:Bt||an,getContainer:Vt&&function(){return Vt(N)},autoDestroy:Mt},A.createElement(H,{prefixCls:fe,open:Te,zIndex:wr,mask:pt,motion:Ke}),A.createElement(O.Z,{onResize:qt,disabled:!Te},function(Lr){return A.createElement(S.default,(0,m.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Bt,leavedClassName:"".concat(fe,"-hidden")},Ge,{onAppearPrepare:qe,onEnterPrepare:qe,visible:Te,onVisibleChanged:function(tn){var Bn;Ge==null||(Bn=Ge.onVisibleChanged)===null||Bn===void 0||Bn.call(Ge,tn),te(tn)}}),function(In,tn){var Bn=In.className,gn=In.style,Qn=Y()(fe,Bn,D);return A.createElement("div",{ref:(0,$.sQ)(Lr,v,tn),className:Qn,style:(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({"--arrow-x":"".concat(tt.x||0,"px"),"--arrow-y":"".concat(tt.y||0,"px")},$n),Br),gn),{},{boxSizing:"border-box",zIndex:wr},Z),onMouseEnter:re,onMouseLeave:ue,onPointerEnter:rr,onClick:ze},$e&&A.createElement(F,{prefixCls:fe,arrow:$e,arrowPos:tt,align:ct}),A.createElement(ee,{cache:!Te&&!Fe},Pe))})}))}),G=B,le=A.forwardRef(function(z,v){var h=z.children,D=z.getTriggerDOMNode,fe=(0,$.Yr)(h),Z=A.useCallback(function(te){(0,$.mH)(v,D?D(te):te)},[D]),N=(0,$.x1)(Z,h.ref);return fe?A.cloneElement(h,{ref:N}):h}),J=le,be=A.createContext(null),Ce=be;function Re(z){return z?Array.isArray(z)?z:[z]:[]}function ae(z,v,h,D){return A.useMemo(function(){var fe=Re(h!=null?h:v),Z=Re(D!=null?D:v),N=new Set(fe),te=new Set(Z);return z&&(N.has("hover")&&(N.delete("hover"),N.add("click")),te.has("hover")&&(te.delete("hover"),te.add("click"))),[N,te]},[z,v,h,D])}var me=g(29194);function T(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=arguments.length>2?arguments[2]:void 0;return h?z[0]===v[0]:z[0]===v[0]&&z[1]===v[1]}function Ee(z,v,h,D){for(var fe=h.points,Z=Object.keys(z),N=0;N1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(z)?v:z}function P(z){return _(parseFloat(z),0)}function X(z,v){var h=(0,we.Z)({},z);return(v||[]).forEach(function(D){if(!(D instanceof HTMLBodyElement||D instanceof HTMLHtmlElement)){var fe=he(D).getComputedStyle(D),Z=fe.overflow,N=fe.overflowClipMargin,te=fe.borderTopWidth,Te=fe.borderBottomWidth,Ie=fe.borderLeftWidth,Fe=fe.borderRightWidth,ze=D.getBoundingClientRect(),pt=D.offsetHeight,$e=D.clientHeight,tt=D.offsetWidth,ct=D.clientWidth,Ge=P(te),Ke=P(Te),Bt=P(Ie),Vt=P(Fe),Mt=_(Math.round(ze.width/tt*1e3)/1e3),mr=_(Math.round(ze.height/pt*1e3)/1e3),wr=(tt-ct-Bt-Vt)*Mt,re=(pt-$e-Ge-Ke)*mr,ue=Ge*mr,rr=Ke*mr,Qe=Bt*Mt,ot=Vt*Mt,Yr=0,It=0;if(Z==="clip"){var zt=P(N);Yr=zt*Mt,It=zt*mr}var qt=ze.x+Qe-Yr,qe=ze.y+ue-It,At=qt+ze.width+2*Yr-Qe-ot-wr,dt=qe+ze.height+2*It-ue-rr-re;h.left=Math.max(h.left,qt),h.top=Math.max(h.top,qe),h.right=Math.min(h.right,At),h.bottom=Math.min(h.bottom,dt)}}),h}function pe(z){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h="".concat(v),D=h.match(/^(.*)\%$/);return D?z*(parseFloat(D[1])/100):parseFloat(h)}function Je(z,v){var h=v||[],D=(0,De.Z)(h,2),fe=D[0],Z=D[1];return[pe(z.width,fe),pe(z.height,Z)]}function at(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[z[0],z[1]]}function nt(z,v){var h=v[0],D=v[1],fe,Z;return h==="t"?Z=z.y:h==="b"?Z=z.y+z.height:Z=z.y+z.height/2,D==="l"?fe=z.x:D==="r"?fe=z.x+z.width:fe=z.x+z.width/2,{x:fe,y:Z}}function Lt(z,v){var h={t:"b",b:"t",l:"r",r:"l"};return z.map(function(D,fe){return fe===v?h[D]||"c":D}).join("")}function ur(z,v,h,D,fe,Z,N){var te=A.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:fe[D]||{}}),Te=(0,De.Z)(te,2),Ie=Te[0],Fe=Te[1],ze=A.useRef(0),pt=A.useMemo(function(){return v?ve(v):[]},[v]),$e=A.useRef({}),tt=function(){$e.current={}};z||tt();var ct=(0,o.Z)(function(){if(v&&h&&z){let Hi=function(ya,Na){var Rs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qn,cs=Pe.x+ya,Es=Pe.y+Na,rs=cs+Yt,So=Es+$n,go=Math.max(cs,Rs.left),eo=Math.max(Es,Rs.top),zs=Math.min(rs,Rs.right),Os=Math.min(So,Rs.bottom);return Math.max(0,(zs-go)*(Os-eo))},ki=function(){Ln=Pe.y+_n,Gn=Ln+$n,Ei=Pe.x+Tr,Qi=Ei+Yt};var Bt,Vt,Mt=v,mr=Mt.ownerDocument,wr=he(Mt),re=wr.getComputedStyle(Mt),ue=re.width,rr=re.height,Qe=re.position,ot=Mt.style.left,Yr=Mt.style.top,It=Mt.style.right,zt=Mt.style.bottom,qt=Mt.style.overflow,qe=(0,we.Z)((0,we.Z)({},fe[D]),Z),At=mr.createElement("div");(Bt=Mt.parentElement)===null||Bt===void 0||Bt.appendChild(At),At.style.left="".concat(Mt.offsetLeft,"px"),At.style.top="".concat(Mt.offsetTop,"px"),At.style.position=Qe,At.style.height="".concat(Mt.offsetHeight,"px"),At.style.width="".concat(Mt.offsetWidth,"px"),Mt.style.left="0",Mt.style.top="0",Mt.style.right="auto",Mt.style.bottom="auto",Mt.style.overflow="hidden";var dt;if(Array.isArray(h))dt={x:h[0],y:h[1],width:0,height:0};else{var Gt=h.getBoundingClientRect();dt={x:Gt.x,y:Gt.y,width:Gt.width,height:Gt.height}}var Pe=Mt.getBoundingClientRect(),an=mr.documentElement,kt=an.clientWidth,kn=an.clientHeight,Xn=an.scrollWidth,yi=an.scrollHeight,ji=an.scrollTop,On=an.scrollLeft,$n=Pe.height,Yt=Pe.width,jr=dt.height,Jr=dt.width,Ot={left:0,top:0,right:kt,bottom:kn},_t={left:-On,top:-ji,right:Xn-On,bottom:yi-ji},Br=qe.htmlRegion,Lr="visible",In="visibleFirst";Br!=="scroll"&&Br!==In&&(Br=Lr);var tn=Br===In,Bn=X(_t,pt),gn=X(Ot,pt),Qn=Br===Lr?gn:Bn,ei=tn?gn:Qn;Mt.style.left="auto",Mt.style.top="auto",Mt.style.right="0",Mt.style.bottom="0";var Hr=Mt.getBoundingClientRect();Mt.style.left=ot,Mt.style.top=Yr,Mt.style.right=It,Mt.style.bottom=zt,Mt.style.overflow=qt,(Vt=Mt.parentElement)===null||Vt===void 0||Vt.removeChild(At);var zr=_(Math.round(Yt/parseFloat(ue)*1e3)/1e3),Tn=_(Math.round($n/parseFloat(rr)*1e3)/1e3);if(zr===0||Tn===0||(0,I.Sh)(h)&&!(0,me.Z)(h))return;var Sn=qe.offset,jn=qe.targetOffset,Vn=Je(Pe,Sn),Mi=(0,De.Z)(Vn,2),Ai=Mi[0],wn=Mi[1],hr=Je(dt,jn),br=(0,De.Z)(hr,2),Fr=br[0],Zr=br[1];dt.x-=Fr,dt.y-=Zr;var Ur=qe.points||[],on=(0,De.Z)(Ur,2),en=on[0],Hn=on[1],ti=at(Hn),ui=at(en),Ri=nt(dt,ti),Ui=nt(Pe,ui),Pi=(0,we.Z)({},qe),Tr=Ri.x-Ui.x+Ai,_n=Ri.y-Ui.y+wn,hn=Hi(Tr,_n),hi=Hi(Tr,_n,gn),ii=nt(dt,["t","l"]),ri=nt(Pe,["t","l"]),bi=nt(dt,["b","r"]),Di=nt(Pe,["b","r"]),Bi=qe.overflow||{},zi=Bi.adjustX,ca=Bi.adjustY,xi=Bi.shiftX,vn=Bi.shiftY,jt=function(Na){return typeof Na=="boolean"?Na:Na>=0},Ln,Gn,Ei,Qi;ki();var da=jt(ca),xa=ui[0]===ti[0];if(da&&ui[0]==="t"&&(Gn>ei.bottom||$e.current.bt)){var Ji=_n;xa?Ji-=$n-jr:Ji=ii.y-Di.y-wn;var Sa=Hi(Tr,Ji),_i=Hi(Tr,Ji,gn);Sa>hn||Sa===hn&&(!tn||_i>=hi)?($e.current.bt=!0,_n=Ji,wn=-wn,Pi.points=[Lt(ui,0),Lt(ti,0)]):$e.current.bt=!1}if(da&&ui[0]==="b"&&(Lnhn||$i===hn&&(!tn||ra>=hi)?($e.current.tb=!0,_n=ai,wn=-wn,Pi.points=[Lt(ui,0),Lt(ti,0)]):$e.current.tb=!1}var Ea=jt(zi),xs=ui[1]===ti[1];if(Ea&&ui[1]==="l"&&(Qi>ei.right||$e.current.rl)){var oi=Tr;xs?oi-=Yt-Jr:oi=ii.x-Di.x-Ai;var Ca=Hi(oi,_n),ga=Hi(oi,_n,gn);Ca>hn||Ca===hn&&(!tn||ga>=hi)?($e.current.rl=!0,Tr=oi,Ai=-Ai,Pi.points=[Lt(ui,1),Lt(ti,1)]):$e.current.rl=!1}if(Ea&&ui[1]==="r"&&(Eihn||_s===hn&&(!tn||is>=hi)?($e.current.lr=!0,Tr=Qa,Ai=-Ai,Pi.points=[Lt(ui,1),Lt(ti,1)]):$e.current.lr=!1}ki();var Da=xi===!0?0:xi;typeof Da=="number"&&(Eign.right&&(Tr-=Qi-gn.right-Ai,dt.x>gn.right-Da&&(Tr+=dt.x-gn.right+Da)));var Ni=vn===!0?0:vn;typeof Ni=="number"&&(Lngn.bottom&&(_n-=Gn-gn.bottom-wn,dt.y>gn.bottom-Ni&&(_n+=dt.y-gn.bottom+Ni)));var la=Pe.x+Tr,ps=la+Yt,as=Pe.y+_n,ts=as+$n,Wi=dt.x,ms=Wi+Jr,aa=dt.y,co=aa+jr,Qs=Math.max(la,Wi),_o=Math.min(ps,ms),fs=(Qs+_o)/2,Bo=fs-la,ss=Math.max(as,aa),Yn=Math.min(ts,co),La=(ss+Yn)/2,io=La-as;N==null||N(v,Pi);var Zi=Hr.right-Pe.x-(Tr+Pe.width),ta=Hr.bottom-Pe.y-(_n+Pe.height);Fe({ready:!0,offsetX:Tr/zr,offsetY:_n/Tn,offsetR:Zi/zr,offsetB:ta/Tn,arrowX:Bo/zr,arrowY:io/Tn,scaleX:zr,scaleY:Tn,align:Pi})}}),Ge=function(){ze.current+=1;var Vt=ze.current;Promise.resolve().then(function(){ze.current===Vt&&ct()})},Ke=function(){Fe(function(Vt){return(0,we.Z)((0,we.Z)({},Vt),{},{ready:!1})})};return(0,p.Z)(Ke,[D]),(0,p.Z)(function(){z||Ke()},[z]),[Ie.ready,Ie.offsetX,Ie.offsetY,Ie.offsetR,Ie.offsetB,Ie.arrowX,Ie.arrowY,Ie.scaleX,Ie.scaleY,Ie.align,Ge]}var Jt=g(19127);function We(z,v,h,D,fe){(0,p.Z)(function(){if(z&&v&&h){let ze=function(){D(),fe()};var Z=v,N=h,te=ve(Z),Te=ve(N),Ie=he(N),Fe=new Set([Ie].concat((0,Jt.Z)(te),(0,Jt.Z)(Te)));return Fe.forEach(function(pt){pt.addEventListener("scroll",ze,{passive:!0})}),Ie.addEventListener("resize",ze,{passive:!0}),D(),function(){Fe.forEach(function(pt){pt.removeEventListener("scroll",ze),Ie.removeEventListener("resize",ze)})}}},[z,v,h])}var Cr=g(48736),Er=g(16089);function Kr(z,v,h,D,fe,Z,N,te){var Te=A.useRef(z),Ie=A.useRef(!1);Te.current!==z&&(Ie.current=!0,Te.current=z),A.useEffect(function(){var Fe=(0,Er.Z)(function(){Ie.current=!1});return function(){Er.Z.cancel(Fe)}},[z]),A.useEffect(function(){if(v&&D&&(!fe||Z)){var Fe=function(){var Qe=!1,ot=function(zt){var qt=zt.target;Qe=N(qt)},Yr=function(zt){var qt=zt.target;!Ie.current&&Te.current&&!Qe&&!N(qt)&&te(!1)};return[ot,Yr]},ze=Fe(),pt=(0,De.Z)(ze,2),$e=pt[0],tt=pt[1],ct=Fe(),Ge=(0,De.Z)(ct,2),Ke=Ge[0],Bt=Ge[1],Vt=he(D);Vt.addEventListener("mousedown",$e,!0),Vt.addEventListener("click",tt,!0),Vt.addEventListener("contextmenu",tt,!0);var Mt=(0,n.A)(h);if(Mt&&(Mt.addEventListener("mousedown",Ke,!0),Mt.addEventListener("click",Bt,!0),Mt.addEventListener("contextmenu",Bt,!0)),0)var mr,wr,re,ue;return function(){Vt.removeEventListener("mousedown",$e,!0),Vt.removeEventListener("click",tt,!0),Vt.removeEventListener("contextmenu",tt,!0),Mt&&(Mt.removeEventListener("mousedown",Ke,!0),Mt.removeEventListener("click",Bt,!0),Mt.removeEventListener("contextmenu",Bt,!0))}}},[v,h,D,fe,Z])}var _r=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Se(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Me.Z,v=A.forwardRef(function(h,D){var fe=h.prefixCls,Z=fe===void 0?"rc-trigger-popup":fe,N=h.children,te=h.action,Te=te===void 0?"hover":te,Ie=h.showAction,Fe=h.hideAction,ze=h.popupVisible,pt=h.defaultPopupVisible,$e=h.onPopupVisibleChange,tt=h.afterPopupVisibleChange,ct=h.mouseEnterDelay,Ge=h.mouseLeaveDelay,Ke=Ge===void 0?.1:Ge,Bt=h.focusDelay,Vt=h.blurDelay,Mt=h.mask,mr=h.maskClosable,wr=mr===void 0?!0:mr,re=h.getPopupContainer,ue=h.forceRender,rr=h.autoDestroy,Qe=h.destroyPopupOnHide,ot=h.popup,Yr=h.popupClassName,It=h.popupStyle,zt=h.popupPlacement,qt=h.builtinPlacements,qe=qt===void 0?{}:qt,At=h.popupAlign,dt=h.zIndex,Gt=h.stretch,Pe=h.getPopupClassNameFromAlign,an=h.fresh,kt=h.alignPoint,kn=h.onPopupClick,Xn=h.onPopupAlign,yi=h.arrow,ji=h.popupMotion,On=h.maskMotion,$n=h.popupTransitionName,Yt=h.popupAnimation,jr=h.maskTransitionName,Jr=h.maskAnimation,Ot=h.className,_t=h.getTriggerDOMNode,Br=(0,se.Z)(h,_r),Lr=rr||Qe||!1,In=A.useState(!1),tn=(0,De.Z)(In,2),Bn=tn[0],gn=tn[1];(0,p.Z)(function(){gn((0,a.Z)())},[]);var Qn=A.useRef({}),ei=A.useContext(Ce),Hr=A.useMemo(function(){return{registerSubPopup:function(pi,ua){Qn.current[pi]=ua,ei==null||ei.registerSubPopup(pi,ua)}}},[ei]),zr=(0,L.Z)(),Tn=A.useState(null),Sn=(0,De.Z)(Tn,2),jn=Sn[0],Vn=Sn[1],Mi=(0,o.Z)(function(Li){(0,I.Sh)(Li)&&jn!==Li&&Vn(Li),ei==null||ei.registerSubPopup(zr,Li)}),Ai=A.useState(null),wn=(0,De.Z)(Ai,2),hr=wn[0],br=wn[1],Fr=A.useRef(null),Zr=(0,o.Z)(function(Li){(0,I.Sh)(Li)&&hr!==Li&&(br(Li),Fr.current=Li)}),Ur=A.Children.only(N),on=(Ur==null?void 0:Ur.props)||{},en={},Hn=(0,o.Z)(function(Li){var pi,ua,gs=hr;return(gs==null?void 0:gs.contains(Li))||((pi=(0,n.A)(gs))===null||pi===void 0?void 0:pi.host)===Li||Li===gs||(jn==null?void 0:jn.contains(Li))||((ua=(0,n.A)(jn))===null||ua===void 0?void 0:ua.host)===Li||Li===jn||Object.values(Qn.current).some(function(Oa){return(Oa==null?void 0:Oa.contains(Li))||Li===Oa})}),ti=oe(Z,ji,Yt,$n),ui=oe(Z,On,Jr,jr),Ri=A.useState(pt||!1),Ui=(0,De.Z)(Ri,2),Pi=Ui[0],Tr=Ui[1],_n=ze!=null?ze:Pi,hn=(0,o.Z)(function(Li){ze===void 0&&Tr(Li)});(0,p.Z)(function(){Tr(ze||!1)},[ze]);var hi=A.useRef(_n);hi.current=_n;var ii=A.useRef([]);ii.current=[];var ri=(0,o.Z)(function(Li){var pi;hn(Li),((pi=ii.current[ii.current.length-1])!==null&&pi!==void 0?pi:_n)!==Li&&(ii.current.push(Li),$e==null||$e(Li))}),bi=A.useRef(),Di=function(){clearTimeout(bi.current)},Bi=function(pi){var ua=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Di(),ua===0?ri(pi):bi.current=setTimeout(function(){ri(pi)},ua*1e3)};A.useEffect(function(){return Di},[]);var zi=A.useState(!1),ca=(0,De.Z)(zi,2),xi=ca[0],vn=ca[1];(0,p.Z)(function(Li){(!Li||_n)&&vn(!0)},[_n]);var jt=A.useState(null),Ln=(0,De.Z)(jt,2),Gn=Ln[0],Ei=Ln[1],Qi=A.useState([0,0]),da=(0,De.Z)(Qi,2),xa=da[0],Ji=da[1],Sa=function(pi){Ji([pi.clientX,pi.clientY])},_i=ur(_n,jn,kt?xa:hr,zt,qe,At,Xn),ai=(0,De.Z)(_i,11),$i=ai[0],ra=ai[1],Ea=ai[2],xs=ai[3],oi=ai[4],Ca=ai[5],ga=ai[6],Qa=ai[7],_s=ai[8],is=ai[9],Da=ai[10],Ni=ae(Bn,Te,Ie,Fe),la=(0,De.Z)(Ni,2),ps=la[0],as=la[1],ts=ps.has("click"),Wi=as.has("click")||as.has("contextMenu"),ms=(0,o.Z)(function(){xi||Da()}),aa=function(){hi.current&&kt&&Wi&&Bi(!1)};We(_n,hr,jn,ms,aa),(0,p.Z)(function(){ms()},[xa,zt]),(0,p.Z)(function(){_n&&!(qe!=null&&qe[zt])&&ms()},[JSON.stringify(At)]);var co=A.useMemo(function(){var Li=Ee(qe,Z,is,kt);return Y()(Li,Pe==null?void 0:Pe(is))},[is,Pe,qe,Z,kt]);A.useImperativeHandle(D,function(){return{nativeElement:Fr.current,forceAlign:ms}});var Qs=A.useState(0),_o=(0,De.Z)(Qs,2),fs=_o[0],Bo=_o[1],ss=A.useState(0),Yn=(0,De.Z)(ss,2),La=Yn[0],io=Yn[1],Zi=function(){if(Gt&&hr){var pi=hr.getBoundingClientRect();Bo(pi.width),io(pi.height)}},ta=function(){Zi(),ms()},Hi=function(pi){vn(!1),Da(),tt==null||tt(pi)},ki=function(){return new Promise(function(pi){Zi(),Ei(function(){return pi})})};(0,p.Z)(function(){Gn&&(Da(),Gn(),Ei(null))},[Gn]);function ya(Li,pi,ua,gs){en[Li]=function(Oa){var Ns;gs==null||gs(Oa),Bi(pi,ua);for(var Vs=arguments.length,vo=new Array(Vs>1?Vs-1:0),Ps=1;Ps1?ua-1:0),Oa=1;Oa1?ua-1:0),Oa=1;Oam in A?Me(A,m,{enumerable:!0,configurable:!0,writable:!0,value:S}):A[m]=S,L=(A,m)=>{for(var S in m||(m={}))I.call(m,S)&&o(A,S,m[S]);if(O)for(var S of O(m))n.call(m,S)&&o(A,S,m[S]);return A},p=(A,m)=>ie(A,Y(m));const a=({img:A,buttonProps:m={},styles:S={},customText:$,ButtonText:F,ButtonClick:H,Buttonclass:V,ButtonTwo:ee,imgStyles:B,loading:G=!1})=>we.createElement("section",{className:"tc animated fadeIn",style:L(L({},{color:"#999",margin:"100px auto",visibility:G?"hidden":"visible"}),S)},we.createElement("img",{src:A||De,style:p(L({},B),{pointerEvents:"none",userSelect:"none"})}),we.createElement("p",{className:"mt20 font14"},$||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),F&&we.createElement(se.ZP,L({className:V,onClick:H},m),F),ee&&ee);Zt.Z=a},23210:function(bn,Zt,g){"use strict";g.d(Zt,{Z:function(){return V}});var we=g(59301),De={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},se=g(3113),Me=g(70557),ie=g(23954),Y=g(6848),O=g(955),I=g(94941),n=g(8797),o=g(3294),L=g(19381),p=g(59301),a=Object.defineProperty,A=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,$=(ee,B,G)=>B in ee?a(ee,B,{enumerable:!0,configurable:!0,writable:!0,value:G}):ee[B]=G,F=(ee,B)=>{for(var G in B||(B={}))m.call(B,G)&&$(ee,G,B[G]);if(A)for(var G of A(B))S.call(B,G)&&$(ee,G,B[G]);return ee},H=(ee,B,G)=>new Promise((le,J)=>{var be=ae=>{try{Re(G.next(ae))}catch(me){J(me)}},Ce=ae=>{try{Re(G.throw(ae))}catch(me){J(me)}},Re=ae=>ae.done?le(ae.value):Promise.resolve(ae.value).then(be,Ce);Re((G=G.apply(ee,B)).next())}),V=({editOffice:ee="view",data:B,theme:G,type:le,filename:J,monacoEditor:be,className:Ce,style:Re,close:ae,onClose:me,hasMask:T,disabledDownload:Ee,onImgDimensions:oe,showNodata:he,recordInfo:ve})=>{const[_,P]=(0,we.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[X,pe]=(0,we.useState)(""),[Je,at]=(0,we.useState)(),nt=window.ENV==="build"?"/react/build":"",Lt=location.host.startsWith("localhost")?o.Z.PROXY_SERVER:o.Z.API_SERVER,Jt=10*(1024*1024),We=(0,we.useRef)();B!=null&&B.startsWith("/api")&&le!=="txt"&&(B=o.Z.API_SERVER+B);const Cr=Se=>Se.substring(Se.lastIndexOf("/")+1).split(".").pop();J&&be&&(be.filename=J),(0,we.useEffect)(()=>{var Se,Nt;const z=(Nt=(Se=document.cookie)==null?void 0:Se.replace(/\s/g,""))==null?void 0:Nt.split(";");z==null||z.map(v=>{let h=v.split("=");h[0]==="_educoder_session"&&pe(h[1])})},[]),(0,we.useEffect)(()=>{le==="office"&&(B.indexOf("bigfilescdn.")>-1||B.indexOf("bigfiles1")>-1?at({url:B,fileType:Cr(B),model:B.indexOf("model=edit")?"edit":"view"}):Er())},[le,B]);const Er=()=>H(void 0,null,function*(){console.log("data:",B);let Se=B;B.startsWith("http")||(Se=location.origin+Se);let Nt=new URL(Se).pathname.split("/").pop();const z=yield(0,I.gJ)({attachment_id:Nt});z.url=Lt+z.url,at(z)}),Kr=()=>{if(B.startsWith("http")||B.startsWith("blob:")){_r();return}(0,O.Sv)(J||"educoder",B,J)},_r=()=>{ve&&(0,L.fc)({id:ve==null?void 0:ve.id,watch_type:1,course_id:ve==null?void 0:ve.course_id}),(0,O.Nd)(J||"educoder",decodeURIComponent(B))};return p.createElement("div",{style:F({},Re||{}),className:`${T&&De.bgBlack} ${le?De.wrp:"hide"}`},ae&&p.createElement("div",{className:De.close,ref:We},!!oe&&p.createElement(Y.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>We.current},p.createElement("span",{onClick:()=>{me(),oe()}},p.createElement("i",{className:"icon-yulanpizhu"}))),!Ee&&p.createElement(Y.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>We.current},p.createElement("span",{onClick:_r},p.createElement("i",{className:"icon-quxiaozhiding"}))),p.createElement(Y.Z,{title:"\u5173\u95ED",getPopupContainer:()=>We.current},p.createElement("span",{className:"",onClick:me},p.createElement("i",{className:"icon-guanbi1"})))),p.createElement("div",{className:`${De[Ce]} ${Ce} ${De.monaco} ${le==="txt"?"show":"hide"}`},le==="txt"&&p.createElement(p.Fragment,null,p.createElement(ie.ZP,F({},be)))),le==="audio"&&p.createElement("audio",{src:`${(B==null?void 0:B.indexOf("http://"))>-1||(B==null?void 0:B.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${B}`,autoPlay:!0}),le==="video"&&p.createElement(p.Fragment,null,(B==null?void 0:B.indexOf("http"))>-1?p.createElement("video",{controls:!0,src:`${B}`,autoPlay:!0}):p.createElement("video",{controls:!0,src:`data:video/mp4;base64,${B}`,autoPlay:!0})),le==="office"&&Je&&p.createElement("iframe",{src:`${nt}/office.html?key=${Je.key}&url=${btoa(Je.url)}&callbackUrl=${Lt+(Je.callbackUrl||"")}&fileType=${Je.fileType}&title=${Je.title||""}&model=${ee}&officeServer=${o.Z.ONLYOFFICE}&disabledDownload=${!!Ee}`}),le==="html"&&p.createElement("iframe",{src:B+"&disposition=inline"}),le==="pdf"&&p.createElement("iframe",{src:`${nt}/js/pdfview/index.html?filename=${J||"educoder.pdf"}&url=${encodeURIComponent(B)}&disabledDownload=${!!Ee}`}),le==="image"&&p.createElement("img",{src:`${(B==null?void 0:B.indexOf("http://"))>-1||(B==null?void 0:B.indexOf("https://"))>-1?"":"data:image/png;base64,"}${B}`}),(le==="other"||le==="download")&&p.createElement(p.Fragment,null,he?p.createElement(n.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:p.createElement(se.ZP,{icon:p.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Kr,disabled:Ee},"\u4E0B\u8F7D")}):p.createElement(se.ZP,{type:"primary",size:"middle",onClick:Kr,disabled:Ee},p.createElement(Me.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(bn,Zt,g){"use strict";g.d(Zt,{z:function(){return le},Z:function(){return J}});var we=g(59301),De=g(50304),se=g(24768),Me=g(64018),ie=g(40846),Y=g(3294),O=g(955),I=g(15342),n=g(1012),o=g(23210),L=g(59301),a=({html:be})=>{const Ce=(0,we.useRef)(null),Re=(0,we.useRef)(null),ae=`.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 36px !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,we.useEffect)(()=>{const me=Ce.current.attachShadow({mode:"open"});Re.current=document.createElement("div"),Re.current.className="markdown-body",Re.current.innerHTML=be,me.appendChild(Re.current);const T=document.createElement("style");return T.textContent=ae,me.appendChild(T),()=>{me.innerHTML=""}},[]),(0,we.useEffect)(()=>{Re.current&&(Re.current.innerHTML=be)},[be]),L.createElement("div",{ref:Ce})},A=Object.defineProperty,m=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,F=(be,Ce,Re)=>Ce in be?A(be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Re}):be[Ce]=Re,H=(be,Ce)=>{for(var Re in Ce||(Ce={}))S.call(Ce,Re)&&F(be,Re,Ce[Re]);if(m)for(var Re of m(Ce))$.call(Ce,Re)&&F(be,Re,Ce[Re]);return be};const V="@\u2581\u2581@",ee="@\u2581@",B=/]*>/g;function G(be){let Ce=document.createElement("div");return Ce.innerHTML=be,Ce.childNodes.length===0?"":Ce.childNodes[0].nodeValue}const le=(be,Ce)=>{be=be||"";const Re=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ae=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,me=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,T=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ce?be.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Re,(Ee,oe,he,ve,_,P,X)=>{const pe=oe||ve||P,Je=he||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+pe+Je+"&t="+(0,O.Jn)(pe,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(be=be.replace(T,(Ee,oe,he,ve,_,P,X)=>{const pe=oe||ve||P,Je=he||_||X||"?";return Y.Z.API_SERVER+"/attachments/download/"+pe+Je+"&t="+(0,O.Jn)(pe,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(Re,(Ee,oe,he,ve,_,P,X)=>{const pe=oe||ve||P,Je=he||_||X||"?";return Y.Z.API_SERVER+"/api/attachments/"+pe+Je+"&t="+(0,O.Jn)(pe,Date.now())+(Ee.indexOf(")")>-1?")":"&")}).replace(ae,(Ee,oe,he,ve,_)=>{const P=oe||ve,X=he||_||"";return'"'+Y.Z.API_SERVER+"/api/attachments/"+P+X+P+X+"&t="+(0,O.Jn)(P,Date.now())}).replace(me,(Ee,oe,he,ve,_)=>{const P=oe||ve,X=he||_||"";return"("+Y.Z.API_SERVER+"/files/uploads/"+P+X+P+X+"&t="+(0,O.Jn)(P,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,` `),be)};var J=({value:be="",className:Ce,showTextOnly:Re,showLines:ae,style:me={},stylesPrev:T={},highlightKeywords:Ee,showProgramFill:oe,isProgramFill:he,disabledFill:ve=!1,programFillValue:_,onFillChange:P=Je=>{},onFillBlur:X=()=>{},onFillFocus:pe=()=>{}})=>{let Je=String(be);const[at,nt]=(0,we.useState)(""),[Lt,ur]=(0,we.useState)("office"),[Jt,We]=(0,we.useState)([]),Cr=(0,we.useRef)("a"+(0,n.Z)()),Er={},Kr=(Te,Ie,Fe)=>{const ze=document.createElement(Te===ee?"input":"textarea");ze.style.width="100%",ze.style.height=Te===ee?"40px":"151px",ze.rows=5,ze.spellcheck=!1,ze.name="edu-program-fill",ze.placeholder="\u8BF7\u8F93\u5165",ze.dataset.id=Ie;const pt=Object.keys(Er).length;return Er[pt]=ze,`${ze.outerHTML}`};function _r(Te){return Te=Te.replace(/!\[.*?\]\(.*?\)/g,""),Te=Te.replace(/\[.*?\]\(.*?\)/g,""),Te=Te.replace(new RegExp("","gs"),""),Te=Te.replace(//g,""),Te=Te.replace(//g,""),Te=Te.replace(new RegExp(".*?<\\/video>","gs"),""),Te=Te.replace(new RegExp(".*?<\\/audio>","gs"),""),Te=Te.replace(new RegExp(".*?<\\/style>","gs"),""),Te=Te.replace(new RegExp(".*?<\\/script>","gs"),""),Te}const Se=Te=>Te.replace(/([\s\S]+?)<\/style>/gim,function(Ie,Fe){let ze=Fe.replace(/(\n|\r)/g,"").split("}"),pt=[];return ze.map($e=>{$e!=""&&pt.push(`.${Cr.current} ${$e}`)}),``}),Nt=(0,we.useMemo)(()=>{try{const ze=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,pt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,$e=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,tt=/\(\/attachments\/download\//g;Je=Je.replace(tt,"("+Y.Z.API_SERVER+"/attachments/download/").replace(ze,"("+Y.Z.API_SERVER+"/api/attachments/").replace(pt,'"'+Y.Z.API_SERVER+"/api/attachments/").replace($e,'"'+Y.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,` `)}catch(ze){}if(oe){let ze=-1;return Je=Je.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(pt,$e,tt){var ct;return++ze,Kr(pt,ze,(ct=_==null?void 0:_[ze])==null?void 0:ct.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Se(Je||"")}
`}let Te=Se(Je);Te=(0,se.ZP)(Te);const Ie=(0,se.ez)();Je.match(/\[TOC\]/)&&(Te=Te.replace("

[TOC]

",(0,se.Qv)()),(0,se.Iy)()),Te=Te.replace(/(__special_katext_id_\d+__)/g,(ze,pt)=>{const{type:$e,expression:tt}=Ie[pt];return(0,I.renderToString)(G(tt)||"",{displayMode:$e==="block",throwOnError:!1,output:"html"})}),Te=Te.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,se.AL)();const Fe=document.createElement("div");if(Fe.innerHTML=Te,Re)return Fe.innerText;if(Ee){const ze=Ee.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return D(Fe,ze),Fe.innerHTML}return setTimeout(()=>N(),500),Fe.innerHTML},[Je,Ee]);(0,we.useEffect)(()=>{fe.current&&fe.current.querySelectorAll(["input","textarea"]).forEach(Ie=>{Ie.oninput=z,Ie.onblur=v,Ie.onfocus=h})},[Jt]),(0,we.useEffect)(()=>{var Te,Ie,Fe,ze,pt;if(_!=null&&_.length)try{const $e=fe.current.querySelectorAll(".edu-program-fill-score"),tt=fe.current.querySelectorAll('[name="edu-program-fill"]');for(const[ct,Ge]of tt.entries())Ge.value=((Te=_==null?void 0:_[ct])==null?void 0:Te.value)||"",((Ie=_==null?void 0:_[ct])==null?void 0:Ie.type)==="warning"?Ge.className="program-fill-warning":((Fe=_==null?void 0:_[ct])==null?void 0:Fe.type)==="success"?Ge.className="program-fill-success":Ge.className="";for(const[ct,Ge]of $e.entries())Ge.innerHTML=(ze=_==null?void 0:_[ct])!=null&&ze.score?`${(pt=_==null?void 0:_[ct])==null?void 0:pt.score}\u5206`:"";We(_)}catch($e){console.log($e,"error")}},[_]);const z=Te=>{Jt[Te.target.dataset.id]=Jt[Te.target.dataset.id]||{},Jt[Te.target.dataset.id].value=Te.target.value,We([...Jt]),P(Jt,Te.target.dataset.id)},v=Te=>{Jt[Te.target.dataset.id]=Jt[Te.target.dataset.id]||{},Jt[Te.target.dataset.id].value=Te.target.value,We([...Jt]),X(Jt,Te.target.dataset.id)},h=Te=>{Jt[Te.target.dataset.id]=Jt[Te.target.dataset.id]||{},Jt[Te.target.dataset.id].value=Te.target.value,We([...Jt]),pe(Jt,Te.target.dataset.id)};function D(Te,Ie){return Te.childNodes.forEach(Fe=>{var ze;if(Fe.childNodes.length>0)D(Fe,Ie);else if(Fe.nodeName!=="IMG")if(Fe.innerHTML)Fe.innerHTML=(ze=Fe.innerHTML)==null?void 0:ze.replace(new RegExp(Ie,"gi"),'$&');else{const pt=document.createElement("span");pt.innerHTML=Fe.textContent.replace(new RegExp(Ie,"gi"),'$&'),Fe.replaceWith(pt)}})}const fe=(0,we.useRef)();se.jb.WebkitLineClamp=ae,ae&&(me=H(H({},me),se.jb));function Z(Te){let Ie=Te.target;if(Ie.tagName.toUpperCase()==="A"){let Fe=Ie.getAttribute("href");if(Fe.indexOf("office")>-1)Te.preventDefault(),nt(Fe),ur("office");else if(Fe.indexOf("application/pdf")>-1)Te.preventDefault(),nt(Fe),ur("pdf");else if(Fe.indexOf("text/html")>-1)Te.preventDefault(),nt(Fe),ur("html");else if(Fe.startsWith("#")){Te.preventDefault();let ze=document.getElementById(Fe.replace("#",""));ze&&ze.scrollIntoView(!0)}}}const N=()=>{var Te;const Ie=(Te=fe.current)==null?void 0:Te.querySelectorAll("video");Ie==null||Ie.forEach(Fe=>{if(Fe.oncontextmenu=()=>!1,Fe.src.indexOf(".m3u8")>-1&&!Fe.canPlayType("application/vnd.apple.mpegurl")){if(ie.ZP.isSupported()){var ze=new ie.ZP;ze.loadSource(Fe.src),ze.attachMedia(Fe)}}})};(0,we.useEffect)(()=>{if(fe.current&&Nt&&Nt.match(B)&&window.PR.prettyPrint(),fe.current)return fe.current.addEventListener("click",Z),()=>{var Te;(Te=fe.current)==null||Te.removeEventListener("click",Z),(0,se.AL)(),(0,se.Iy)()}},[Nt,fe.current,Z]),(0,we.useEffect)(()=>{var Te;const Ie=Fe=>{Fe.preventDefault(),Fe.clipboardData.setData("text",window.getSelection().toString())};return(Te=fe.current)==null||Te.addEventListener("copy",Ie),()=>{var Fe;(Fe=fe.current)==null||Fe.removeEventListener("copy",Ie)}},[fe.current]);const te=Te=>//i.test(Te||"");return we.createElement(we.Fragment,null,Re&&we.createElement("div",{ref:fe},Nt),!Re&&!te(Nt)&&we.createElement("div",{ref:fe,style:H({},me),className:`${Ce||""} ${ve?"disabled-fill":""} markdown-body ${Cr.current}`,dangerouslySetInnerHTML:{__html:Nt}}),!Re&&te(Nt)&&we.createElement(a,{html:Nt}),we.createElement(o.Z,{close:!0,data:at,type:at!=null&&at.length?Lt:"",style:H({},T),onClose:()=>nt("")}))}},23954:function(bn,Zt,g){"use strict";g.d(Zt,{SV:function(){return fe},ZP:function(){return D}});var we=g(59301),De=g(76374);const se={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"]},Me={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"]},ie={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},Y={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(` `)}]},O={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 I=g(53184),n=g.n(I),o=Object.defineProperty,L=Object.defineProperties,p=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,S=(Z,N,te)=>N in Z?o(Z,N,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[N]=te,$=(Z,N)=>{for(var te in N||(N={}))A.call(N,te)&&S(Z,te,N[te]);if(a)for(var te of a(N))m.call(N,te)&&S(Z,te,N[te]);return Z},F=(Z,N)=>L(Z,p(N)),H=(Z,N,te)=>new Promise((Te,Ie)=>{var Fe=$e=>{try{pt(te.next($e))}catch(tt){Ie(tt)}},ze=$e=>{try{pt(te.throw($e))}catch(tt){Ie(tt)}},pt=$e=>$e.done?Te($e.value):Promise.resolve($e.value).then(Fe,ze);pt((te=te.apply(Z,N)).next())});const V={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"]}},ee=(Z,N)=>N.map(te=>({label:te,kind:Z.languages.CompletionItemKind.Keyword,insertText:te})),B=Z=>Object.keys(V.tables).map(N=>({label:N,kind:Z.languages.CompletionItemKind.Variable,insertText:N})),G=(Z,N)=>{const te=V.tables[Z];return te?te.map(Te=>({label:Te,kind:N.languages.CompletionItemKind.Field,insertText:Te})):[]};function le(Z,N,te,Te,Ie){let Fe=N.getWordUntilPosition(te),ze={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:Fe.startColumn,endColumn:Fe.endColumn},pt=Te.map($e=>({label:$e,kind:Z.languages.CompletionItemKind.Keyword,insertText:$e,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}));return Ie.map($e=>{pt.push(F($({},$e),{range:ze}))}),pt}var J=Z=>{V.languages.map(Ie=>(Z.languages.registerDocumentFormattingEditProvider(Ie,{provideDocumentFormattingEdits(Fe,ze,pt){return H(this,null,function*(){const $e=n()(Fe.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:Fe.getFullModelRange(),text:$e}]})}}),Ie));const N=ie.quickKey.map(Ie=>({label:Ie.label,kind:Z.languages.CompletionItemKind.Method,insertText:Ie.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet})),te=Y.quickKey.map(Ie=>({label:Ie.label,kind:Z.languages.CompletionItemKind.Method,insertText:Ie.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Te=Me.quickKey.map(Ie=>({label:Ie.label,kind:Z.languages.CompletionItemKind.Method,insertText:Ie.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Z.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn},$e=Ie.getLineContent(Fe.lineNumber).substring(ze.startColumn-2,ze.endColumn);return{suggestions:[...ie.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...ie.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}}),Z.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn};return{suggestions:[...se.keywords.map($e=>({label:$e,kind:Z.languages.CompletionItemKind.Function,documentation:$e,insertText:$e,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}}),Z.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn},$e=Ie.getLineContent(Fe.lineNumber).substring(ze.startColumn-2,ze.endColumn);return{suggestions:[...Me.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...Me.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}}),Z.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn},$e=Ie.getLineContent(Fe.lineNumber).substring(ze.startColumn-2,ze.endColumn);return{suggestions:[...O.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...O.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}}),Z.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Ie,Fe){var ze=Ie.getWordUntilPosition(Fe),pt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:ze.startColumn,endColumn:ze.endColumn},$e=Ie.getLineContent(Fe.lineNumber).substring(ze.startColumn-2,ze.endColumn);return{suggestions:[...Y.keywords.map(tt=>({label:tt,kind:Z.languages.CompletionItemKind.Function,documentation:tt,insertText:tt,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...Y.quickKey.map(tt=>({label:tt.label,kind:Z.languages.CompletionItemKind.Function,documentation:tt.content,insertText:$e.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:Z.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}})};const be="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ce=Object.defineProperty,Re=(Z,N,te)=>N in Z?Ce(Z,N,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[N]=te,ae=(Z,N,te)=>Re(Z,typeof N!="symbol"?N+"":N,te);const me=class ZA{constructor(N,te,Te){this.placeholder=N,this.editor=te,this.monaco=Te,te.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ZA.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)}};ae(me,"ID","editor.widget.placeholderHint");var Ee=me,oe=g(96236),he=g(8591),ve=g(6848),_=g(89392),P=g(34604),X=g(56102),pe=Object.defineProperty,Je=Object.defineProperties,at=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,ur=Object.prototype.propertyIsEnumerable,Jt=(Z,N,te)=>N in Z?pe(Z,N,{enumerable:!0,configurable:!0,writable:!0,value:te}):Z[N]=te,We=(Z,N)=>{for(var te in N||(N={}))Lt.call(N,te)&&Jt(Z,te,N[te]);if(nt)for(var te of nt(N))ur.call(N,te)&&Jt(Z,te,N[te]);return Z},Cr=(Z,N)=>Je(Z,at(N)),Er=(Z,N)=>{var te={};for(var Te in Z)Lt.call(Z,Te)&&N.indexOf(Te)<0&&(te[Te]=Z[Te]);if(Z!=null&&nt)for(var Te of nt(Z))N.indexOf(Te)<0&&ur.call(Z,Te)&&(te[Te]=Z[Te]);return te},Kr=(Z,N,te)=>new Promise((Te,Ie)=>{var Fe=$e=>{try{pt(te.next($e))}catch(tt){Ie(tt)}},ze=$e=>{try{pt(te.throw($e))}catch(tt){Ie(tt)}},pt=$e=>$e.done?Te($e.value):Promise.resolve($e.value).then(Fe,ze);pt((te=te.apply(Z,N)).next())});function _r(Z){return/^\d+$/.test(Z)?`${Z}px`:Z}function Se(){}let Nt=!1;const z={"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 v(Z=[]){let N=Z;if(Array.isArray(Z)){for(let te=0;te{var N=Z,{width:te="100%",height:Te="100%",value:Ie,language:Fe="javascript",style:ze={},options:pt={},overrideServices:$e={},theme:tt="vs-dark",onEditBlur:ct,isCopy:Ge=!1,onSave:Ke,autoHeight:Bt=!1,forbidCopy:Vt=!1,onChange:Mt=Se,editorDidMount:mr=Se,onFocus:wr=Se,onBreakPoint:re=Se,breakPointValue:ue=[],filename:rr="educoder.txt",errorLine:Qe,errorContent:ot="",highlightLine:Yr,openBreakPoint:It=!1,placeholder:zt=""}=N,qt=Er(N,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder"]);const qe=(0,we.useRef)(),At=(0,we.useRef)({}),dt=(0,we.useRef)(),Gt=(0,we.useRef)(),Pe=(0,we.useRef)([]),an=(0,we.useRef)(!1),kt=(0,we.useRef)(),kn=(0,we.useRef)(),Xn=(0,we.useRef)(!1),[yi,ji]=(0,we.useState)(!1);function On(){let Hr;return qe.current&&(Hr=new De.Z(zr=>{for(let Tn of zr)(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&At.current.instance.layout()}),Hr.observe(qe.current)),Hr}function $n(){he.ZP.warning({content:decodeURIComponent(be),key:"monaco-editor-tip"})}const Yt=()=>{let Hr=At.current.instance;if(Ie!=null&&Hr&&yi){const zr=Hr.getModel();zr&&Ie!==zr.getValue()&&(Nt=!0,zr.setValue(Ie),Hr.layout(),Nt=!1)}};(0,we.useEffect)(()=>{const Hr=P.Z.subscribe("formatDocument",zr=>{var Tn;let Sn=At.current.instance;(Tn=Sn==null?void 0:Sn.getAction)==null||Tn.call(Sn,"editor.action.formatDocument").run()});return window.updateMonacoValue=zr=>{Mt(zr)},Hr},[]),(0,we.useEffect)(()=>{var Hr;let zr=At.current.instance;Gt.current&&clearTimeout(Gt.current),Gt.current=setTimeout(()=>{Yt()},500),Ie&&(Ie!=null&&Ie.length)&&((Hr=zr==null?void 0:zr.updateOptions)==null||Hr.call(zr,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ie.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ie,yi,At.current]),(0,we.useEffect)(()=>{if(Qe&&At.current&&At.current.instance){let zr=At.current.instance;zr.changeViewZones(function(Tn){var Sn=document.createElement("div");Sn.style.padding="10px 20px",Sn.style.width="calc(100% - 20px)",Sn.className="my-error-line-wrp",Sn.innerHTML=ot,Tn.addZone({afterLineNumber:Qe||11,heightInLines:3,domNode:Sn})});var Hr={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}};zr.addOverlayWidget(Hr),zr.revealPositionInCenter({lineNumber:20,column:1})}},[Qe,At.current,yi]);const jr=(Hr="",zr)=>{if(!Hr||Hr.trim()==="")return!0;const Sn=At.current.instance.getModel().getLineTokens(zr);let jn=!1;for(let Vn=0;Vn<2;Vn++)Sn.getStandardTokenType(Vn)===1&&(jn=!0);return jn};(0,we.useEffect)(()=>{var Hr;const zr=(Hr=At.current)==null?void 0:Hr.instance;if(zr&&yi&&Vt){const Tn=zr.onDidBlurEditorWidget(()=>{Xn.current=!1}),Sn=zr.onDidFocusEditorText(()=>{Xn.current=!0});return()=>{Tn.dispose(),Sn.dispose()}}},[At.current,yi,Vt]),(0,we.useEffect)(()=>{var Hr;if((Hr=At.current)!=null&&Hr.instance&&yi&&It){let zr=At.current.instance,Tn=zr.getModel();if(!Tn)return;(()=>{var on;let en=[],Hn=[];const ti=Tn.getAllDecorations();for(let Ri of ti)Ri.options.className==="highlighted-line"&&(en.push((on=Ri==null?void 0:Ri.range)==null?void 0:on.startLineNumber),Hn.push(Ri==null?void 0:Ri.id));if(Yr===en[0])return;Tn.deltaDecorations(Hn,[]);const ui=Tn.getLineCount();Yr&&Yr<=ui&&(zr.deltaDecorations([],[{range:new h.Range(Yr,1,Yr,Tn.getLineMaxColumn(Yr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),zr.revealLineInCenter(Yr))})();const jn=(on=!1)=>{var en;let Hn=[],ti=[];const ui=Tn.getAllDecorations();for(let Ri of ui)Ri.options.linesDecorationsClassName==="breakpoints-select"&&(Hn.push((en=Ri==null?void 0:Ri.range)==null?void 0:en.startLineNumber),ti.push(Ri==null?void 0:Ri.id));if(on)return{lines:Hn,ids:ti};re(Hn)},Vn=on=>Kr(void 0,null,function*(){let en={range:new h.Range(on,1,on,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Tn.deltaDecorations([],[en]),jn()}),Mi=on=>Kr(void 0,null,function*(){let en=[];const Hn=zr.getLineDecorations(on);for(let ti of Hn)ti.options.linesDecorationsClassName==="breakpoints-select"&&en.push(ti.id);yield Tn.deltaDecorations(en,[]),jn()}),Ai=on=>{let en=zr.getLineDecorations(on);for(let Hn of en)if(Hn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_.isEqual)(ue,jn(!0).lines)){Tn.deltaDecorations(jn(!0).ids,[]);const on=ue.map(en=>({range:new h.Range(en,1,en,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Tn.deltaDecorations([],on)}const wn=zr.onDidChangeModelContent(on=>{let en=zr.getPosition();if(en){let Hn=en.lineNumber;clearTimeout(kn.current),kn.current=setTimeout(()=>{jr(Tn.getLineContent(Hn),Hn)?Mi(Hn):Ai(Hn)?(Mi(Hn),Vn(Hn)):jn()},100)}}),hr=zr.onMouseDown(on=>{var en,Hn,ti;if(on.target.detail&&((ti=(Hn=(en=on.target)==null?void 0:en.element)==null?void 0:Hn.className)!=null&&ti.includes("line-numbers"))){let ui=on.target.position.lineNumber;if(jr(Tn.getLineContent(ui),ui))return;Ai(ui)?Mi(ui):Vn(ui)}}),br=on=>{let en={range:new h.Range(on,1,on,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Pe.current=zr.deltaDecorations(Pe.current,[en])},Fr=()=>{Pe.current=zr.deltaDecorations(Pe.current,[])},Zr=zr.onMouseMove(on=>{var en,Hn,ti;if(Fr(),on.target.detail&&((ti=(Hn=(en=on.target)==null?void 0:en.element)==null?void 0:Hn.className)!=null&&ti.includes("line-numbers"))){let ui=on.target.position.lineNumber;if(jr(Tn.getLineContent(ui),ui))return;br(ui)}}),Ur=zr.onMouseLeave(()=>{Fr()});return()=>{wn.dispose(),hr.dispose(),Zr.dispose(),Ur.dispose()}}},[At.current,yi,ue,Yr,It,Fe]),(0,we.useEffect)(()=>{var Hr;(Hr=At.current)!=null&&Hr.instance&&It&&At.current.instance.setPosition({lineNumber:0,column:0})},[Yr]);function Jr(){let Hr=At.current.instance;if(Hr){const zr=Hr.getSelection(),Tn=At.current.pastePos||{},Sn=new h.Range(Tn.startLineNumber||zr.endLineNumber,Tn.startColumn||zr.endColumn,Tn.endLineNumber||zr.endLineNumber,Tn.endColumn||zr.endColumn);setTimeout(()=>{Hr.executeEdits("",[{range:Sn,text:""}])},300)}}function Ot(Hr){(window.navigator.platform.match("Mac")?Hr.metaKey:Hr.ctrlKey)&&Hr.keyCode==83&&(Hr.preventDefault(),Ke())}const _t=()=>{if(Bt&&At.current.instance){const Hr=At.current.instance.getContentHeight();Qn(Hr{if(!Xn.current)return;const{keyCode:zr,ctrlKey:Tn,metaKey:Sn,target:jn,type:Vn}=Hr;return(Vn==="paste"||(zr===67||zr===86)&&(Sn||Tn))&&jn.nodeName==="TEXTAREA"&&($n(),Hr.preventDefault()),!1};function In(Hr,zr){var Tn=window.URL||window.webkitURL||window,Sn=new Blob([zr]),jn=document.createElementNS("http://www.w3.org/1999/xhtml","a");jn.href=Tn.createObjectURL(Sn),jn.download=Hr,Br(jn)}(0,we.useEffect)(()=>{_t()},[_t]),(0,we.useEffect)(()=>{qe.current&&!yi&&Promise.all([g.e(8909),g.e(3267)]).then(g.bind(g,71448)).then(Hr=>{try{h=Hr,At.current.instance=h.editor.create(qe.current,{value:Ie,language:v(Fe),theme:tt,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},$e);const zr=At.current.instance;let jn=[...oe.BH._menuItems].find(wn=>wn[0]._debugName=="EditorContext")[1],Vn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Mi=(wn,hr)=>{var br,Fr;let Zr=wn._first;do hr.includes((Fr=(br=Zr.element)==null?void 0:br.command)==null?void 0:Fr.id)&&wn._remove(Zr);while(Zr=Zr.next)};if(mr(zr,h),setTimeout(()=>{_t(),At.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{In(rr||"educoder.txt",zr.getValue())}})},500),At.current.subscription=zr.onDidChangeModelContent(wn=>{an.current?clearTimeout(kt.current):(_t(),Mt(zr.getValue(),wn)),kt.current=setTimeout(()=>{an.current=!1},500)}),window.Monaco||J(h,v(Fe)),Vt&&(Mi(jn,Vn),qe.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Lr),window.removeEventListener("paste",Lr),window.addEventListener("keydown",Lr),window.addEventListener("paste",Lr)),window.Monaco=h,ct&&zr.onDidBlurEditorWidget(()=>{ct(zr.getValue())}),wr&&zr.onDidFocusEditorText(()=>{wr(zr.getValue())}),Vt)try{zr.onDidPaste(wn=>{const hr=zr.getSelection(),br=At.current.pastePos||{},Fr=new h.Range(br.startLineNumber||hr.endLineNumber,br.startColumn||hr.endColumn,br.endLineNumber||hr.endLineNumber,br.endColumn||hr.endColumn);zr.executeEdits("",[{range:wn.range,text:""}])})}catch(wn){}let Ai=On();return zt&&typeof zt=="string"&&new Ee(zt,zr,h),ji(!0),()=>{const wn=At.current.instance;wn.dispose();const hr=wn.getModel();hr&&hr.dispose(),At.current.subscription&&At.current.subscription.dispose(),Ai.unobserve(qe.current)}}catch(zr){}})},[]),(0,we.useEffect)(()=>{if(At.current.instance&&yi)return document.addEventListener("keydown",Ot,!1),()=>{document.removeEventListener("keydown",Ot)}},[Ke,yi]),(0,we.useEffect)(()=>{let Hr=At.current.instance;if(Hr&&yi){let zr=v(Fe);h.editor.setModelLanguage(Hr.getModel(),zr)}},[Fe,yi]),(0,we.useEffect)(()=>{At.current.instance&&yi&&h.editor.setTheme(tt)},[tt,yi]),(0,we.useEffect)(()=>{let Hr=At.current.instance;dt.current=pt,Hr&&yi&&(Hr.updateOptions(We({},pt)),setTimeout(()=>{Hr.getModel().updateOptions(We({},pt))},200))},[JSON.stringify(pt),yi]),(0,we.useEffect)(()=>{let Hr=At.current.instance;Hr&&yi&&Hr.layout()},[te,Te,yi]);const[tn,Bn]=(0,we.useState)(_r(te)),[gn,Qn]=(0,we.useState)(_r(Te)),ei=Cr(We({},ze),{width:tn,height:gn,position:"relative"});return we.createElement("div",{className:"my-monaco-editor",ref:qe,style:ei},Ge&&we.createElement(X.CopyToClipboard,{text:Ie,onCopy:()=>he.ZP.success("\u590D\u5236\u6210\u529F")},we.createElement(ve.Z,{title:"\u590D\u5236\u4EE3\u7801"},we.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},we.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function fe({width:Z="100%",height:N="100%",original:te,modified:Te,language:Ie,options:Fe={}}){const ze=(0,we.useRef)(),[pt,$e]=(0,we.useState)(null);function tt(Bt){let Vt;return ze.current&&(Vt=new De.Z(Mt=>{for(let mr of Mt)(mr.target.offsetHeight>0||mr.target.offsetWidth>0)&&Bt.layout()}),Vt.observe(ze.current)),Vt}(0,we.useEffect)(()=>(ze.current&&Promise.all([g.e(8909),g.e(9404)]).then(g.bind(g,2550)).then(Bt=>{h=Bt;const Vt=h.editor.createDiffEditor(ze.current,Cr(We({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},Fe),{wordWrap:!0}));$e(Vt);let Mt=tt(Vt);return()=>{Vt.dispose();const mr=Vt.getModel();mr&&mr.dispose(),Mt.unobserve(ze.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,we.useEffect)(()=>{pt&&pt.setModel({original:h.editor.createModel(te,Ie),modified:h.editor.createModel(Te,Ie)})},[te,Te,Ie,pt]);const ct=_r(Z),Ge=_r(N),Ke={width:ct,height:Ge};return we.createElement("div",{className:"my-diff-editor",ref:ze,style:Ke})}},67059:function(bn,Zt,g){"use strict";g.r(Zt),g.d(Zt,{default:function(){return D}});var we=g(59301),De=g(61186),se=g.n(De),Me=g(86129),ie=g.n(Me),Y=g(99064),O=g(89070),I=g(43418),n=g(8591),o=g(95237),L=g(43604),p=g(3113),a=g(61621),A=g(66104),m=g(28103),S=g(1710),$=g(10777),F=g(57809),H=g(71418),V=g(27812),ee=g(95869),B=g(87169),G=g(26227),le=g(3294),J=g(24065),be=g(955),Ce=g(78241),Re=g(5871),ae=g(92832),me=({defaultValue:fe,onBlur:Z,max:N,className:te="game-score"})=>{const[Te,Ie]=(0,we.useState)(fe);(0,we.useEffect)(()=>{Ie(fe)},[fe]);function Fe(pt){Ie(pt)}function ze(){Te&&(Z(Te>N?N:Te),Ie(null))}return we.createElement(Re.Z,{max:N,min:0,className:te,value:Te,onChange:Fe,onBlur:ze})},T={greyText:"greyText___lvEE6",info:"info___El01Z",label:"label___GmvST",blackContent:"blackContent___FYo0Z",orangeContent:"orangeContent____uYQ3",inputLabel:"inputLabel___ruiZm",tableTitle:"tableTitle___ir3x7",scoreTable:"scoreTable___b9Z37"},Ee=g(59301),oe=(fe,Z,N)=>new Promise((te,Te)=>{var Ie=pt=>{try{ze(N.next(pt))}catch($e){Te($e)}},Fe=pt=>{try{ze(N.throw(pt))}catch($e){Te($e)}},ze=pt=>pt.done?te(pt.value):Promise.resolve(pt.value).then(Ie,Fe);ze((N=N.apply(fe,Z)).next())});const he=({shixunHomeworks:fe,dispatch:Z,classroomList:N,gethomeworkreport:te,homeWorkReport:Te})=>{var Ie,Fe;const{shixunWorkReport:ze}=fe,pt=(0,O.useParams)(),[$e,tt]=(0,we.useState)(!1),[ct,Ge]=(0,we.useState)(!1),[Ke,Bt]=(0,we.useState)(""),[Vt]=Ce.default.useForm(),Mt=()=>oe(void 0,null,function*(){Ge(!0);const re=Vt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${pt.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:re.hidden_comment,comment:re.comment}})).status===0&&(n.ZP.success("\u70B9\u8BC4\u6210\u529F"),Vt.resetFields(),Z({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),Ge(!1)}),mr=()=>oe(void 0,null,function*(){if(!Ke){n.ZP.warning("\u8BF7\u586B\u5199\u5206\u6570");return}Ge(!0);const re=Vt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${pt.homeworkId}/add_score.json`,{method:"post",body:{comment:re.comment,score:Ke}})).status===0&&(n.ZP.success("\u70B9\u8BC4\u6210\u529F"),Z({type:"shixunHomeworks/setActionTabs",payload:{}}),te()),Ge(!1)}),wr=[{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"shixun_name",ellipsis:!0},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time",width:160,render:re=>re||"--"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",width:110},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time",width:160},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"cost_time",width:160},{title:"\u7F3A\u8BC4\u6263\u5206",dataIndex:"absence_penalty",width:90,render:re=>re||"--"},{title:"\u5F97\u5206",dataIndex:"score",width:90,render:(re,ue)=>Ee.createElement("div",null,Ee.createElement("span",{style:{color:parseFloat(ue.score_full)!==parseFloat(re)?"#E30000":"#53C41B"}},re),"/",ue.score_full)},{title:"\u8C03\u5206",width:100,dataIndex:"action",render:(re,ue)=>(0,J.GJ)()?Ee.createElement(me,{max:ue.score_full,onBlur:rr=>oe(void 0,null,function*(){var Qe;if((0,J.Rm)()&&!((Qe=N.AssistantObject.practice)!=null&&Qe.can_appraise)){n.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const ot=yield(0,Y.ZP)(`/api/student_works/${pt.homeworkId}/adjust_score.json`,{method:"post",body:{score:rr}});te(),ot.status===0&&n.ZP.success("\u8C03\u5206\u6210\u529F")})}):Te!=null&&Te.is_anonymous?Ee.createElement(Re.Z,{min:0,value:Ke,onChange:rr=>Bt(rr),max:ue.score_full}):re}].filter(re=>Te!=null&&Te.is_anonymous?!["late_penalty","score","absence_penalty"].includes(re.dataIndex):!0);return Ee.createElement(I.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",afterClose:()=>{Vt.resetFields(),Bt("")},confirmLoading:ct,open:fe.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>oe(void 0,null,function*(){var re;if((0,J.Rm)()&&!((re=N.AssistantObject.practice)!=null&&re.can_appraise)){n.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}if(Te!=null&&Te.is_anonymous){mr();return}const ue=Vt.getFieldsValue();JSON.stringify(ue)==="{}"||ue.hidden_comment===""&&ue.comment===""?tt(!0):Mt()}),onCancel:()=>{Z({type:"shixunHomeworks/setActionTabs",payload:{}})}},Ee.createElement(o.Z,{className:T.info},Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u59D3\u540D"),Ee.createElement("span",{className:T.blackContent},Te==null?void 0:Te.username)),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u5B66\u53F7"),Ee.createElement("span",{className:T.blackContent},(Te==null?void 0:Te.student_id)||"--")),!(Te!=null&&Te.is_anonymous)&&Ee.createElement(Ee.Fragment,null,Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u73ED\u7EA7"),Ee.createElement("span",{className:T.blackContent},(Te==null?void 0:Te.group_name)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u8865\u4EA4\u6263\u5206"),Ee.createElement("span",{className:T.orangeContent},((Ie=Te==null?void 0:Te.stage_list[0])==null?void 0:Ie.late_penalty)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u7F3A\u8BC4\u6263\u5206"),Ee.createElement("span",{className:T.orangeContent},((Fe=Te==null?void 0:Te.stage_list[0])==null?void 0:Fe.absence_penalty)||"--")),Ee.createElement(L.Z,null,Ee.createElement("span",{className:`${T.label} ${T.greyText}`},"\u603B\u6210\u7EE9"),Ee.createElement("span",{className:T.orangeContent},(Te==null?void 0:Te.stage_list[0].score)||"--")))),Ee.createElement(Ce.default,{form:Vt,onChange:()=>{$e&&tt(!1)}},Ee.createElement("div",{className:`${T.inputLabel} ${T.greyText}`},Te!=null&&Te.is_anonymous?"\u8BC4\u8BED":"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ee.createElement(Ce.default.Item,{name:"comment"},Ee.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),!(Te!=null&&Te.is_anonymous)&&Ee.createElement(Ee.Fragment,null,Ee.createElement("div",{className:`${T.inputLabel} ${T.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),Ee.createElement(Ce.default.Item,{name:"hidden_comment"},Ee.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))," ")),$e&&Ee.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),Ee.createElement("div",{className:T.tableTitle},"\u5173\u5361\u6210\u7EE9"),Ee.createElement(S.default,{className:T.scoreTable,dataSource:Te==null?void 0:Te.stage_list,rowKey:"challenge_id",pagination:!1,columns:wr}))};var ve=(0,O.connect)(({shixunHomeworks:fe,classroomList:Z})=>({shixunHomeworks:fe,classroomList:Z}))(he),_={},P=(fe,Z,N)=>new Promise((te,Te)=>{var Ie=pt=>{try{ze(N.next(pt))}catch($e){Te($e)}},Fe=pt=>{try{ze(N.throw(pt))}catch($e){Te($e)}},ze=pt=>pt.done?te(pt.value):Promise.resolve(pt.value).then(Ie,Fe);ze((N=N.apply(fe,Z)).next())});const X=({shixunHomeworks:fe,dispatch:Z,gethomeworkreport:N,homeWorkReport:te})=>{var Te,Ie;const{shixunWorkReport:Fe}=fe;console.log(te,"homeWorkReport");const ze=(0,O.useParams)(),[pt,$e]=(0,we.useState)(!1),[tt]=Ce.default.useForm(),{user_name:ct,score:Ge,comment_time:Ke,content:Bt,score_id:Vt,user_id:Mt}=((Ie=(Te=fe==null?void 0:fe.actionTabs)==null?void 0:Te.selectArrs)==null?void 0:Ie.data)||{},mr=()=>P(void 0,null,function*(){yield tt.validateFields(),$e(!0);const wr=tt.getFieldsValue();(yield(0,Y.ZP)(`/api/student_works/${ze.homeworkId}/appeal_anonymous_score.json`,{method:"post",body:{comment:wr.comment,score_id:Vt,userId:Mt}})).status===0&&(n.ZP.success("\u64CD\u4F5C\u6210\u529F"),Z({type:"shixunHomeworks/setActionTabs",payload:{}}),N()),$e(!1)});return we.createElement(I.default,{centered:!0,width:600,title:"\u533F\u8BC4\u7533\u8BC9",afterClose:()=>{tt.resetFields()},confirmLoading:pt,open:fe.actionTabs.key==="\u533F\u8BC4\u7533\u8BC9",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:mr,onCancel:()=>{Z({type:"shixunHomeworks/setActionTabs",payload:{}})}},we.createElement("div",{className:"p20",style:{background:"#F7F8F9",padding:15,marginBottom:20}},we.createElement(o.Z,{justify:"space-between",className:_.info},we.createElement("span",null,we.createElement("span",{className:"c-grey-666"},ct),we.createElement("span",{className:"c-grey-333 ml5"},"\u8C03\u5206\u4E3A"),we.createElement("span",{className:"c-orange ml5"},Ge,"\u5206")),we.createElement("span",{className:"c-grey-333"},Ke)),we.createElement("div",{className:"c-grey-333 mt5"},Bt)),we.createElement(Ce.default,{form:tt,className:"mt15",layout:"vertical"},we.createElement(Ce.default.Item,{name:"comment",label:"\u7533\u8BC9",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0"}]},we.createElement(ae.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u7533\u8BC9\u539F\u56E0",rows:3}))))};var pe=(0,O.connect)(({shixunHomeworks:fe})=>({shixunHomeworks:fe}))(X),Je=g(45633),at={flex_box_center:"flex_box_center___uz0LL",flex_space_between:"flex_space_between___kuKI5",flex_box_vertical_center:"flex_box_vertical_center___VzPH1",flex_box_center_end:"flex_box_center_end___Tyr1U",flex_box_column:"flex_box_column___qsgVa",title:"title___SFyGM",export:"export___ezPhH",title1_right:"title1_right___tMOJn",userPic:"userPic___mW4Rr",userInfo:"userInfo___vYvSZ",listItem:"listItem___gJf4Z",rightInfo:"rightInfo___PRYRt",shixunTitle:"shixunTitle___STlvE",shixunWrp:"shixunWrp___knhTt",footerBar:"footerBar___R5IlQ",footerBarStatic:"footerBarStatic___M4EQj",exitComment:"exitComment___NoCI4",nextComment:"nextComment___sFj7z",modal:"modal___TwQdH",tag:"tag___RErUu"},nt=g(85149),Lt=g(36708),ur=g(44164),Jt=g.n(ur),We=g(59301),Cr=Object.defineProperty,Er=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,Se=(fe,Z,N)=>Z in fe?Cr(fe,Z,{enumerable:!0,configurable:!0,writable:!0,value:N}):fe[Z]=N,Nt=(fe,Z)=>{for(var N in Z||(Z={}))Kr.call(Z,N)&&Se(fe,N,Z[N]);if(Er)for(var N of Er(Z))_r.call(Z,N)&&Se(fe,N,Z[N]);return fe},z=(fe,Z)=>{var N={};for(var te in fe)Kr.call(fe,te)&&Z.indexOf(te)<0&&(N[te]=fe[te]);if(fe!=null&&Er)for(var te of Er(fe))Z.indexOf(te)<0&&_r.call(fe,te)&&(N[te]=fe[te]);return N},v=(fe,Z,N)=>new Promise((te,Te)=>{var Ie=pt=>{try{ze(N.next(pt))}catch($e){Te($e)}},Fe=pt=>{try{ze(N.throw(pt))}catch($e){Te($e)}},ze=pt=>pt.done?te(pt.value):Promise.resolve(pt.value).then(Ie,Fe);ze((N=N.apply(fe,Z)).next())});const h=fe=>{var Z=fe,{shixunHomeworks:N,classroomList:te,globalSetting:Te,loading:Ie,user:Fe,dispatch:ze}=Z,pt=z(Z,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),$e,tt,ct,Ge,Ke,Bt,Vt;const[Mt,mr]=(0,we.useState)(Nt({},(0,O.useParams)())),wr=(0,O.useParams)(),re=(0,O.useLocation)(),[]=(0,we.useState)([]),[ue,rr]=(0,we.useState)({last:!1}),[Qe,ot]=(0,we.useState)({last:!1}),Yr=(0,we.useRef)(),It=(0,we.useRef)(),[zt,qt]=(0,we.useState)(!1),[qe,At]=(0,we.useState)(!1),[dt,Gt]=(0,we.useState)(!1),[Pe,an]=(0,we.useState)(),[kt,kn]=(0,we.useState)(),[Xn,yi]=(0,we.useState)(!0),[ji,On]=(0,we.useState)(),$n=(0,J.GJ)(),[Yt,jr]=(0,we.useState)(new(ie())),[Jr,Ot]=(0,we.useState)(0),[_t,Br]=(0,we.useState)([]),[Lr,In]=(0,we.useState)(!1),[tn,Bn]=(0,we.useState)(!1),[gn,Qn]=(0,we.useState)(""),[ei,Hr]=(0,we.useState)(!1),[zr,Tn]=(0,we.useState)(!0),[Sn,jn]=(0,we.useState)(0),[Vn]=(0,O.useSearchParams)(),Mi=()=>v(void 0,null,function*(){(Fe.userInfo.is_teacher||Fe.userInfo.admin)&&(Hr(!0),Tn(!1))});(0,we.useEffect)(()=>{Mi(),console.log("\u6253\u5370\u7684------",Pe),console.log(N),Qn(Pe==null?void 0:Pe.repeat_minus_score)},[Pe,Fe]),(0,we.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",Pe==null?void 0:Pe.work_score),jn(Pe==null?void 0:Pe.work_score)},[Pe==null?void 0:Pe.work_score,gn]),(0,we.useEffect)(()=>(ze({type:"globalSetting/footerToggle",payload:!1}),()=>{ze({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,we.useEffect)(()=>{var Tr;if(Pe){let _n=[];(Tr=Pe==null?void 0:Pe.target_test_sets)==null||Tr.map((hn,hi)=>{var ii;(ii=hn==null?void 0:hn.targets)==null||ii.map((ri,bi)=>{var Di;ri.name=hn==null?void 0:hn.name,ri.total_target_score=hn==null?void 0:hn.total_target_score,ri.actual_target_score=hn==null?void 0:hn.actual_target_score,ri.rowSpan=bi===0?(Di=hn==null?void 0:hn.targets)==null?void 0:Di.length:0,ri.order=hi+1,_n.push(ri)})}),On(_n),ze({type:"classroomList/getAssistantPermissions",payload:{course_id:Mt.coursesId}})}},[Pe]),(0,we.useEffect)(()=>{N.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&_t.length>0&&Pe!=null&&Pe.course_name&&br("all")},[Pe==null?void 0:Pe.course_name]),(0,we.useEffect)(()=>{console.log(wr),mr(Nt({},wr))},[re.pathname]);const Ai=()=>{document.body.scrollIntoView()};function wn(){return v(this,null,function*(){var Tr,_n,hn,hi;const ii=JSON.parse(localStorage.all_student_works_param||"{}"),ri=yield ze({type:"shixunHomeworks/getAllStudentWorks",payload:Nt(Nt({},Mt),ii)});Br(ri.all_student_works);const bi=(Tr=ri.all_student_works)==null?void 0:Tr.map(Di=>String(Di.student_work_id)).indexOf(Mt.homeworkId);bi===((_n=ri.all_student_works)==null?void 0:_n.length)-1?rr({last:!0}):rr((hn=ri.all_student_works)==null?void 0:hn[bi+1]),ot(bi===0?{last:!0}:(hi=ri.all_student_works)==null?void 0:hi[bi-1])})}const hr=()=>{document.querySelectorAll("canvas").forEach(Tr=>{(!Tr.clientWidth||!Tr.clientHeight)&&Tr.remove()})},br=Tr=>v(void 0,null,function*(){let _n=0,hn;hn=I.default.info({width:460,title:We.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",We.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:We.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",We.createElement("span",{className:"c-blue"},_n+1),"/",Tr!=="all"?1:_t==null?void 0:_t.length,We.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:at.modal,onOk:()=>{}});const hi={margin:[0,0],filename:`${Pe==null?void 0:Pe.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};function ii(){return v(this,null,function*(){Ai(),_n++,setTimeout(()=>v(this,null,function*(){var bi;hr();const Di=Yt.folder(`${(bi=Pe==null?void 0:Pe.stage_list[0])==null?void 0:bi.shixun_name}`),Bi=document.querySelector("#export-all").children;let zi=Jt()();for(let ca=0;cav(this,null,function*(){cav(void 0,null,function*(){zi{Yt.generateAsync({type:"blob"}).then(function(Tr){const _n=document.createElement("a");_n.href=window.URL.createObjectURL(Tr),_n.download=(Pe==null?void 0:Pe.course_name)+".zip",document.body.appendChild(_n);const hn=document.createEvent("MouseEvents");hn.initEvent("click",!1,!1),_n.dispatchEvent(hn),document.body.removeChild(_n),jr(new(ie()))}),Gt(!1)};(0,we.useEffect)(()=>{Hn()},[Mt.homeworkId]),(0,we.useEffect)(()=>{Pe!=null&&Pe.work_id&&((0,J.GJ)()||Pe!=null&&Pe.is_anonymous)&&wn()},[Pe==null?void 0:Pe.work_id]),(0,we.useEffect)(()=>{console.log(Pe)},[Pe]);const Zr=()=>v(void 0,null,function*(){const Tr=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/jupyter_work_report.json`,{method:"get"});(Tr==null?void 0:Tr.status)===0&&an(Tr.data)}),Ur=()=>v(void 0,null,function*(){var Tr,_n,hn,hi,ii;const ri=yield(0,Y.ZP)(`/api/student_works/${Mt.homeworkId}/jupyter_work_report.json`,{method:"get"});if((ri==null?void 0:ri.status)===0&&(an(ri.data),(_n=(Tr=ri==null?void 0:ri.data)==null?void 0:Tr.shixun_detail[0])!=null&&_n.myshixun_identifier)){yi(!0);const bi=yield(0,Y.ZP)("/api/jupyters/preview_tpi.json",{method:"get",params:{identifier:(hi=(hn=ri==null?void 0:ri.data)==null?void 0:hn.shixun_detail[0])==null?void 0:hi.myshixun_identifier,student_work_id:(ii=ri==null?void 0:ri.data)==null?void 0:ii.work_id}});if(bi.status===0){kn(bi.html_content),yi(!1),on(bi.html_content);return}}}),on=Tr=>{var _n,hn;(hn=(_n=Tr==null?void 0:Tr.match)==null?void 0:_n.call(Tr,/