|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7460],{89489:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},59477:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},40001:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},81953:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},49198:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},87169:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"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"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},73331:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},15277:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},52671:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},8657:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},10906:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},56082:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},33853:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},15075:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},43531:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},76618:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},61485:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},47472:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},87395:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(54476),ie=oe(59301),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},de=fe,ue=oe(7657),ae=function(x,b){return ie.createElement(ue.Z,(0,y.Z)({},x,{ref:b,icon:de}))},se=ie.forwardRef(ae),te=se},45559:function(){"use strict"},42313:function(){"use strict"},96408:function(rn,Tt){"use strict";Tt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},93373:function(rn,Tt){"use strict";Tt.Z={header:"header___HqHSe",checkboxs:"checkboxs___ObBnD",field:"field___w_sM6","oj-form-container":"oj-form-container____odYP","oj-left-panel":"oj-left-panel___emEB2","oj-form-info":"oj-form-info___m00Ag",footer:"footer___O4iSJ",collapse:"collapse___Ltfkj","test-case-name":"test-case-name___miZcb","btn-remove-case":"btn-remove-case___cHap2","icon-tag":"icon-tag___gmyTb",btn_back:"btn_back___tNmX3",testJi:"testJi___L3fHb",upBtn:"upBtn___RGH6X",djs:"djs____TS0n",time:"time___IAdHc"}},829:function(){"use strict"},81747:function(rn,Tt,oe){"use strict";var y=oe(59301),ie=Object.defineProperty,fe=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ae=(ne,x,b)=>x in ne?ie(ne,x,{enumerable:!0,configurable:!0,writable:!0,value:b}):ne[x]=b,se=(ne,x)=>{for(var b in x||(x={}))de.call(x,b)&&ae(ne,b,x[b]);if(fe)for(var b of fe(x))ue.call(x,b)&&ae(ne,b,x[b]);return ne};const te=ne=>React.createElement("svg",se({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ne),React.createElement("title",null,"\u5360\u7528\u5185\u5B58"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{fillOpacity:.01,fill:"#FFF",d:"M0 0h30v30H0z"}),React.createElement("path",{d:"M6.866 26.928h-1.28a2.561 2.561 0 0 1-2.562-2.561V5.585a2.561 2.561 0 0 1 2.561-2.56h1.28v4.268a2.561 2.561 0 0 0 2.562 2.56h3.842a2.561 2.561 0 0 0 2.56-2.56V3.024h2.915l8.184 8.184v13.159a2.561 2.561 0 0 1-2.561 2.561h-1.28v-5.976c0-.943-.765-1.707-1.708-1.707H8.573c-.943 0-1.707.764-1.707 1.707v5.976Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M8.573 3.024h5.55v4.269a.854.854 0 0 1-.854.853H9.427a.854.854 0 0 1-.854-.853V3.024ZM8.573 26.928v-5.976H21.38v5.976z",fill:"#1890FF"})));Tt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},51976:function(rn,Tt,oe){"use strict";var y=oe(59301),ie=Object.defineProperty,fe=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ae=(ne,x,b)=>x in ne?ie(ne,x,{enumerable:!0,configurable:!0,writable:!0,value:b}):ne[x]=b,se=(ne,x)=>{for(var b in x||(x={}))de.call(x,b)&&ae(ne,b,x[b]);if(fe)for(var b of fe(x))ue.call(x,b)&&ae(ne,b,x[b]);return ne};const te=ne=>React.createElement("svg",se({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},ne),React.createElement("title",null,"\u8FD0\u884C\u65F6\u95F4"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M30 15c0 8.284-6.716 15-15 15-8.284 0-15-6.716-15-15C0 6.716 6.716 0 15 0c8.284 0 15 6.716 15 15Z",fill:"#BAFFF0"}),React.createElement("path",{d:"M25.5 15c0 5.8-4.7 10.5-10.5 10.5S4.5 20.8 4.5 15 9.2 4.5 15 4.5 25.5 9.2 25.5 15Z",fill:"#44D7B6"}),React.createElement("path",{d:"M13.5 9a1.5 1.5 0 0 1 1.5 1.5v4.379l3.56 3.56a1.5 1.5 0 0 1-2.12 2.122l-4-4A1.5 1.5 0 0 1 12 15.5v-5A1.5 1.5 0 0 1 13.5 9Z",fill:"#FFF"})));Tt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},93510:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var rn={},Tt="5.0",oe={},y=null,ie=!1,fe=!1,de=null,ue=!1,ae=null,se=null,te=0;te<arguments.length;te++){var ne=arguments[te];if(ne!==null)switch(typeof ne){case"number":Tt=ne.toFixed(1);break;case"string":ne.match(new RegExp("^[0-9]\\.[0-9]+$"))?Tt=ne:de=ne;break;case"object":typeof ne.is3D!="undefined"?y=ne:oe=ne;break;case"boolean":ie=ne,fe=!0;break}}y===null&&(y={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!fe&&(ie=!0)),de!==null&&oe.id===void 0&&(oe.id=de);var x="",b="",ee=!1,E=null,re=null,ce=null,le=!1,ve=null,Se=null,ge=null,_e=null,Ce=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var he=function(Xe){return parseFloat(Xe)>4?parseFloat(Xe):5};rn.setHTML5Codebase=function(Xe,ut){se=Xe,Ke(Xe,ut)},rn.setJavaCodebase=rn.setJavaCodebaseVersion=rn.isCompiledInstalled=rn.setPreCompiledScriptPath=rn.setPreCompiledResourcePath=function(){},rn.setHTML5CodebaseVersion=function(Xe,ut){var lt=parseFloat(Xe);if(lt!==NaN&<<5){console.log("The GeoGebra HTML5 codebase version "+lt+" is deprecated. Using version latest instead.");return}ae=Xe,Ue(Xe,ut)},rn.getHTML5CodebaseVersion=function(){return re},rn.getParameters=function(){return oe},rn.setFontsCSSURL=function(Xe){_e=Xe},rn.setGiacJSURL=function(Xe){},rn.setJNLPFile=function(Xe){x=Xe},rn.setJNLPBaseDir=function(Xe){},rn.inject=function(){function Xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ut="auto",lt=oe.id,kt,pt=!1,Mt=0;Mt<arguments.length;Mt++){var wt=arguments[Mt];typeof wt=="string"?(wt=wt.toLowerCase(),wt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ut=wt:lt=arguments[Mt]):typeof wt=="boolean"?pt=wt:wt instanceof HTMLElement&&(kt=wt)}bt();function bt(){if(!ue){setTimeout(bt,200);return}ut=ht(ut);var gt=kt||document.getElementById(lt);if(!gt){console.log("possibly bug on ajax loading? ");return}if(rn.removeExistingApplet(gt,!1),oe.width===void 0&>.clientWidth&&(oe.width=gt.clientWidth),oe.height===void 0&>.clientHeight&&(oe.height=gt.clientHeight),!(oe.width&&oe.height)&&ut==="html5"&&(delete oe.width,delete oe.height),E=ut,ut==="screenshot")Je(gt,oe);else{var We=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?We=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(We=(!be()||Xe())&&Ee()),We?(E="screenshot",ze(gt,oe,pt,ut)):qe(gt,oe,pt)}}};function be(){try{return window.self!==window.top}catch(Xe){return!0}}function Ee(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}rn.getViews=function(){return y},rn.isJavaInstalled=function(){return!1};var Ae=function(Xe){var ut=function(Mt){var wt=JSON.parse(Mt),bt=function(Ie){return Ie.type=="G"||Ie.type=="E"},gt=wt.elements?wt.elements.filter(bt)[0]:wt;if(!gt||!gt.url){lt();return}oe.fileName=gt.url,De(gt.settings||{}),y.is3D=!0;var We="https://www.geogebra.org/images/";rn.setPreviewImage(ve||gt.previewUrl,We+"GeoGebra_loading.png",We+"applet_play.png"),Xe()},lt=function(){oe.onError&&oe.onError(),et("Error: Fetching material (id "+oe.material_id+") failed.",oe)},kt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",pt="/materials/"+oe.material_id+"?scope=basic";je("https://"+kt+"/api/proxy.php?path="+encodeURIComponent(pt),ut,lt)};function De(Xe){var ut=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(lt){Xe[lt]=!!Xe[lt]}),ut.forEach(function(lt){oe[lt]===void 0&&Xe[lt]!==void 0&&(oe[lt]=Xe[lt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function je(Xe,ut,lt){var kt=new XMLHttpRequest;kt.open("GET",Xe),kt.onload=function(){ut(kt.responseText)},kt.onerror=lt,kt.send()}rn.isHTML5Installed=function(){return!0},rn.getLoadedAppletType=function(){return E},rn.setPreviewImage=function(Xe,ut,lt){ve=Xe,Se=ut,ge=lt},rn.removeExistingApplet=function(Xe,ut){var lt;typeof Xe=="string"&&(Xe=document.getElementById(Xe)),E=null;var kt=null;for(lt=0;lt<Xe.childNodes.length;lt++){var pt=Xe.childNodes[lt],Mt=pt.className;Mt==="applet_screenshot"?ut?(pt.style.display="block",E="screenshot"):pt.style.display="none":Mt!=="applet_scaler prerender"&&(Xe.removeChild(pt),kt=Mt&&Mt.indexOf("appletParameters")!=-1?pt.id:null,lt--)}var wt=oe.id!==void 0?oe.id:kt,bt=window[wt];bt&&typeof bt.getBase64=="function"&&(bt.remove(),window[wt]=null)},rn.refreshHitPoints=function(){if(he(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Xe=rn.getAppletObject();return Xe&&typeof Xe.recalculateEnvironments=="function"?(Xe.recalculateEnvironments(),!0):!1},rn.startAnimation=function(){var Xe=rn.getAppletObject();return Xe&&typeof Xe.startAnimation=="function"?(Xe.startAnimation(),!0):!1},rn.stopAnimation=function(){var Xe=rn.getAppletObject();return Xe&&typeof Xe.stopAnimation=="function"?(Xe.stopAnimation(),!0):!1},rn.getAppletObject=function(){var Xe=oe.id!==void 0?oe.id:"ggbApplet";return window[Xe]},rn.resize=function(){};var Fe=function(Xe,ut,lt){var kt=document.createElement("param");kt.setAttribute("name",ut),kt.setAttribute("value",lt),Xe.appendChild(kt)},Re=function(Xe){return Xe&&Xe!=="false"},qe=function(Xe,ut,lt){he(re)<=4.2&&(lt=!0);var kt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==re||ggbHTML5LoadedCodebaseIsWebSimple&&!le)&&(kt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var pt=document.createElement("div");pt.classList.add("appletParameters","notranslate");var Mt=ut.width,wt=ut.height;if(ut.disableAutoScale=ut.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ut.disableAutoScale,ut.width!==void 0)if(he(re)<=4.4)Re(ut.showToolBar)&&(ut.height-=7),Re(ut.showAlgebraInput)&&(ut.height-=37),ut.width<605&&Re(ut.showToolBar)&&(ut.width=605,Mt=605);else{var bt=100;(Re(ut.showToolBar)||Re(ut.showMenuBar))&&(ut.hasOwnProperty("customToolBar")&&(ut.customToolbar=ut.customToolBar),bt=Re(ut.showMenuBar)?245:155),Mt<bt&&(ut.width=bt,Mt=bt)}pt.style.border="none",pt.style.display="inline-block";for(var gt in ut)ut.hasOwnProperty(gt)&>!=="appletOnLoad"&&pt.setAttribute("data-param-"+gt,ut[gt]);_e&&pt.setAttribute("data-param-fontscssurl",_e),rn.resize=function(){GGBAppletUtils.responsiveResize(Xe,ut)},window.addEventListener("resize",function(tt){rn.resize()});var We=typeof ut.appletOnLoad=="function"?ut.appletOnLoad:function(){};if(!lt&&ut.width!==void 0){ut.hasOwnProperty("showSplash")||pt.setAttribute("data-param-showSplash","false");var Ie=Xe.querySelector(".applet_scaler.prerender"),xe=Ie!==null;if(xe)var Be=Ie.querySelector(".ggb_preview");else{var Be=$e(Mt,wt,ut.borderColor,!1);Ie=document.createElement("div"),Ie.className="applet_scaler",Ie.style.position="relative",Ie.style.display="block",Ie.style.width=Mt+"px",Ie.style.height=wt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ie,"66%"),he(re)>=5?(ut.appletOnLoad=function(tt){var ot=Xe.querySelector(".ggb_preview");ot&&ot.parentNode.removeChild(ot),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ie),window.GGBT_wsf_view&&$(window).trigger("resize"),We(tt)},xe||Ie.appendChild(Be)):pt.appendChild(Be),Ie.appendChild(pt),xe||Xe.appendChild(Ie),setTimeout(function(){rn.resize()},1)}else{var Ye=document.createElement("div");Ye.className="applet_scaler",Ye.style.position="relative",Ye.style.display="block",Ye.appendChild(pt),Xe.appendChild(Ye),ut.appletOnLoad=function(tt){rn.resize(),We(tt)}}function Pe(tt,ot){ot&&typeof ot.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(tt,ot.appletOnLoad):renderGGBElement(tt),et("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ot)}function Le(tt,ot){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:tt,params:ot}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(st){Pe(st.article,st.params)}),html5AppletsToProcess=null)},he(re)<5&&(tt.className+=" geogebraweb")):Pe(tt,ot)}if(kt){scriptLoadStarted=!0;for(var pe=0;pe<pt.childNodes.length;pe++){var we=pt.childNodes[pe].tagName;we==="TABLE"&&(pt.removeChild(pt.childNodes[pe]),pe--)}if(ggbHTML5LoadedScript!==null){var ke=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ke!=null&&ke.parentNode.removeChild(ke)}var Me=document.createElement("script"),Oe=function(){Le(pt,ut)};Me.src=b+ce,ggbHTML5LoadedCodebaseIsWebSimple=le,ggbHTML5LoadedCodebaseVersion=re,ggbHTML5LoadedScript=Me.src,et("GeoGebra HTML5 codebase loaded: '"+b+"'.",ut),!se&&(!ae||ae=="5.0")?(le?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Oe()):b.requirejs?__webpack_require__.e(3861).then(function(){var tt=[__webpack_require__(40341)];Oe.apply(null,tt)}.bind(this)).catch(__webpack_require__.oe):(Me.onload=Oe,Xe.appendChild(Me))}else Le(pt,ut);ut.height=wt,ut.width=Mt},Je=function(Xe,ut,lt){var kt=$e(ut.width,ut.height,ut.borderColor,lt),pt=document.createElement("div");pt.style.position="relative",pt.style.display="block",pt.style.width=ut.width+"px",pt.style.height=ut.height+"px",pt.className="applet_screenshot applet_scaler"+(lt?" applet_screenshot_play":""),pt.appendChild(kt);var Mt=GGBAppletUtils.getScale(ut,Xe,lt);lt?(Xe.appendChild(Qe()),window.GGBT_wsf_view||(Xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pt,"66%"),Xe.appendChild(pt),Mt!==1&&!isNaN(Mt)&&(GGBAppletUtils.scaleElement(pt,Mt),pt.style.width=ut.width+"px",pt.style.height=ut.height+"px",pt.parentNode.style.width=ut.width*Mt+"px",pt.parentNode.style.height=ut.height*Mt+"px"),rn.resize=function(){He(Xe,kt,pt,lt)},window.addEventListener("resize",function(wt){rn.resize()}),rn.resize()};function He(Xe,ut,lt,kt){if(Xe.contains(ut)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Xe)}var pt=GGBAppletUtils.getScale(oe,Xe,kt);lt.parentNode!==null&&(!isNaN(pt)&&pt!==1?(GGBAppletUtils.scaleElement(lt,pt),lt.parentNode.style.width=oe.width*pt+"px",lt.parentNode.style.height=oe.height*pt+"px"):(GGBAppletUtils.scaleElement(lt,1),lt.parentNode.style.width=oe.width+"px",lt.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}rn.onExitFullscreen=function(Xe,ut){ut.appendChild(Xe)};var ze=function(Xe,ut,lt,kt){Je(Xe,ut,!0);for(var pt=function(){var bt=[];for(wt=0;wt<Xe.childNodes.length;wt++)bt.push(Xe.childNodes[wt]);if(window.GGBT_wsf_view){var gt=window.GGBT_wsf_view.renderFullScreen(Xe,ut.id),We=document.getElementById("fullscreencontainer"),Ie=jQuery(Xe).find(".fullscreencontent");Ie.length>0?(gt.remove(),Ie.attr("id","fullscreencontent").show(),jQuery(We).append(Ie),window.dispatchEvent(new Event("resize"))):qe(gt,ut,!1),window.GGBT_wsf_view.launchFullScreen(We)}else E=kt,qe(Xe,ut,!1);if(!window.GGBT_wsf_view)for(wt=0;wt<bt.length;wt++)Xe.removeChild(bt[wt])},Mt=Xe.getElementsByClassName("ggb_preview_play"),wt=0;wt<Mt.length;wt++)Mt[wt].addEventListener("click",pt,!1),Mt[wt].addEventListener("ontouchstart",pt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Xe),Ee()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Qe=function(){var Xe=document.createElement("div");if(Xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ut='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',lt=document.createElement("style");lt.styleSheet?lt.styleSheet.cssText=ut:lt.appendChild(document.createTextNode(ut)),document.getElementsByTagName("head")[0].appendChild(lt)}return Xe},$e=function(Xe,ut,lt,kt){var pt=document.createElement("div");pt.className="ggb_preview",pt.style.position="absolute",pt.style.zIndex="90",pt.style.width=Xe-2+"px",pt.style.height=ut-2+"px",pt.style.top="0px",pt.style.left="0px",pt.style.overflow="hidden",pt.style.backgroundColor="white";var Mt="lightgrey";lt!==void 0&&(lt==="none"?Mt="transparent":Mt=lt),pt.style.border="1px solid "+Mt;var wt=document.createElement("img");if(wt.style.position="relative",wt.style.zIndex="1000",wt.style.top="-1px",wt.style.left="-1px",ve!==null&&wt.setAttribute("src",ve),wt.style.opacity=.7,Se!==null){var bt,gt,We;if(!kt){bt=document.createElement("img"),bt.style.position="absolute",bt.style.zIndex="1001",bt.style.opacity=1,wt.style.opacity=.3,gt=360,gt>Xe/4*3&&(gt=Xe/4*3),We=gt/5.8,bt.setAttribute("src",Se),bt.setAttribute("width",gt),bt.setAttribute("height",We);var Ie=(Xe-gt)/2,xe=(ut-We)/2;bt.style.left=Ie+"px",bt.style.top=xe+"px",pt.appendChild(bt)}}return pt.appendChild(wt),pt},ht=function(Xe){return Xe=Xe.toLowerCase(),Xe==="html5"||Xe==="screenshot"?Xe:"html5"},Ge=["web","webSimple","web3d","tablet","tablet3d","phone"],Ue=function(Xe,ut){if(re=Xe,ut){Ke(re,!0);return}var lt=!ie;if(lt){var kt=he(re);!isNaN(kt)&&kt<4.4&&(lt=!1)}var pt,Mt;window.location.protocol.substr(0,4)==="http"?pt=window.location.protocol:pt="http:";var wt=re.indexOf("//");wt>0?Mt=re:wt===0?Mt=pt+re:Mt="https://www.geogebra.org/apps/5.2.814.0/";for(var bt in Ge)if(re.slice(Ge[bt].length*-1)===Ge[bt]||re.slice((Ge[bt].length+1)*-1)===Ge[bt]+"/"){Ke(Mt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&<&&!y.is3D&&!y.AV&&!y.SV&&!y.CV&&!y.EV2&&!y.CP&&!y.PC&&!y.DA&&!y.FI&&!y.PV&&!Re(oe.showToolBar)&&!Re(oe.showMenuBar)&&!Re(oe.showAlgebraInput)&&!Re(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Mt+="webSimple/":Mt+="web3d/",Ke(Mt,!1)},Ke=function(Xe,ut){if(Xe.requirejs){b=Xe;return}Xe.slice(-1)!=="/"&&(Xe+="/"),b=Xe,ut===null&&(ut=Xe.indexOf("http")===-1),ee=ut,ce="web.nocache.js",le=!1;var lt=b.split("/");lt.length>1&&(!ut&<[lt.length-2]==="webSimple"?(ce="webSimple.nocache.js",le=!0):Ge.indexOf(lt[lt.length-2])>=0&&(ce=lt[lt.length-2]+".nocache.js")),lt=Xe.split("/"),re=lt[lt.length-3],re.substr(0,4)==="test"?re=re.substr(4,1)+"."+re.substr(5,1):(re.substr(0,3)==="war"||re.substr(0,4)==="beta")&&(re="5.0");var kt=parseFloat(re);kt!==NaN&&kt<5&&Xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+kt+" is deprecated. Using version latest instead."),Ue("5.0",ut))},et=function(Xe,ut){window.console&&window.console.log&&(!ut||typeof ut.showLogging=="undefined"||ut.showLogging&&ut.showLogging!=="false")&&console.log(Xe)};oe.material_id!==void 0?Ae(rt):rt();function rt(){var Xe=Tt;ae!==null?Xe=ae:parseFloat(Xe)<5&&(Xe="5.0"),Ue(Xe,!1),se!==null&&Ke(se,ee),ue=!0}return rn},GGBAppletUtils=function(){"use strict";function rn(){return window.GGBT_wsf_edit!==void 0}function Tt(ue,ae){ae!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+ae+","+ae+")",ue.style.webkitTransform="scale("+ae+","+ae+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function oe(ue,ae,se,te,ne,x){var b=null;if(x!=null&&x!="")for(var ee=ue.parentNode;ee!=null;)if((" "+ee.className+" ").indexOf(" "+x+" ")>-1){b=ee;break}else ee=ee.parentNode;var E=0,re=0,ce=0,le=0,ve=0,Se=0,ge=0;if(b)E=b.offsetWidth,re=Math.max(te?b.offsetWidth:0,b.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(E=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),ce=E):(E=window.innerWidth,re=window.innerHeight,ce=window.innerWidth),ue){var _e=ue.getBoundingClientRect();_e.left>0&&_e.left<=E&&(ne===void 0||!ne)&&(document.dir==="rtl"?(ve=E-_e.width-_e.left,Se=ce<=480?10:30):(Se=_e.left,ve=ce<=480?10:30),le=Se+ve)}if(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ce=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(le=0,ge=40)}}return ue&&((se===void 0||!se)&&ae>0&&ae+le<E?E=ae:E-=le,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(re-=ge)),{width:E,height:re}}function y(ue,ae,se,te,ne){if(ue.isScreenshoGenerator)return 1;var x=te!==void 0&&te,b=ue.noScaleMargin!=null&&ue.noScaleMargin,ee=function(Ce){return Ce&&Ce!=="false"},E=ee(ue.autoHeight),re=oe(ae,ue.width,se,E,x&&window.GGBT_wsf_view||b,ne),ce=parseInt(re.width),le=ue.width,ve=ue.height;if(le===void 0){var Se=ae.querySelector(".appletParameters");Se&&(le=Se.offsetWidth,ve=Se.offsetHeight)}var ge=ce/le,_e=x?1:re.height/ve;return se!==void 0&&!se&&(ge=Math.min(1,ge),_e=Math.min(1,_e)),Math.min(ge,_e)}function ie(ue,ae,se){var te=1,ne,x=!1;if(ue.hasOwnProperty("allowUpscale")&&(x=ue.allowUpscale),ue.hasOwnProperty("scale")&&(te=parseFloat(ue.scale),(isNaN(te)||te===null||te===0)&&(te=1),te>1&&(x=!0)),ae&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(x=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))ne=y(ue,ae,x,se,ue.scaleContainerClass);else return te;return x&&(!ue.hasOwnProperty("scale")||te===1)?ne:Math.min(te,ne)}function fe(ue){var ae=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),te=ue.getBoundingClientRect(),ne=(ae-te.width)/2,x=(se-te.height)/2;x<0&&(x=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ne<40?ue.style.left="40px":ue.style.left=ne+"px",ue.style.top=x+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(x<40?ue.style.top="40px":ue.style.top=x+"px",ue.style.left=ne+"px")}function de(ue,ae){var se=ue.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ae.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var te=ie(ae,ue);rn()&&se.setAttribute("data-param-scale",te);for(var ne=null,x=0;x<ue.childNodes.length;x++)if(ue.childNodes[x].className!==void 0&&ue.childNodes[x].className.match(/^applet_scaler/)){ne=ue.childNodes[x];break}if(ne!==null&&ne.querySelector(".noscale")!==null)return;var b=ae.id!==void 0?ae.id:"ggbApplet",ee=window[b];(ee==null||!ee.recalculateEnvironments)&&ne!==null&&!ne.className.match(/fullscreen/)&&(ne.parentNode.style.transform="",!isNaN(te)&&te!==1?(ne.parentNode.style.width=ae.width*te+"px",ne.parentNode.style.height=ae.height*te+"px",Tt(ne,te)):(Tt(ne,1),ne.parentNode.style.width=ae.width+"px",ne.parentNode.style.height=ae.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&fe(ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:de,isFlexibleWorksheetEditor:rn,positionCenter:fe,getScale:ie,scaleElement:Tt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var rn=n.location.search;return rn.indexOf(J)!=-1||rn.indexOf(K)!=-1}function q(rn,Tt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(rn){var Tt=s[L].bindings;s[L].bindings=function(){for(var oe=Tt?Tt():{},y=rn[webModule.__softPermutationId],ie=O;ie<y.length;ie++){var fe=y[ie];oe[fe[O]]=fe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var rn=o.createElement(Q);if(rn.id=L,rn.style.cssText=R+S,rn.tabIndex=-1,o.body.appendChild(rn),t=rn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Tt=document.compatMode==U?V:W;t.write(Tt+X),t.close()}}}function w(rn){function Tt(y){function ie(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var fe=ie();if(fe){y();return}function de(){if(!fe){if(!ie())return;fe=!0,y(),o.removeEventListener&&o.removeEventListener(Z,de,!1),ue&&clearInterval(ue)}}o.addEventListener&&o.addEventListener(Z,de,!1);var ue=setInterval(function(){de()},$)}function oe(y){var ie=u(),fe=ie.body,de=ie.createElement(_);de.language=ab,de.crossOrigin=W,de.src=y,webModule.__errFn&&(de.onerror=function(){webModule.__errFn(L,new Error(bb+y))}),fe.appendChild(de)}Tt(function(){oe(rn)})}webModule.__startLoadingFragment=function(rn){return C(rn)},webModule.__installRunAsyncCode=function(rn){var Tt=u(),oe=Tt.body,y=Tt.createElement(_);y.language=ab,y.text=rn,oe.appendChild(y),oe.removeChild(y)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(rn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(rn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(rn){var Tt=c[rn];return Tt==null?null:Tt},r=d,webModule.__errFn=e}function B(){function rn(ue){var ae=ue.lastIndexOf(rb);ae==-1&&(ae=ue.length);var se=ue.indexOf(sb);se==-1&&(se=ue.length);var te=ue.lastIndexOf(tb,Math.min(se,ae));return te>=O?ue.substring(O,te+P):W}function Tt(ue){if(!ue.match(/^\w+:\/\//)){var ae=o.createElement(ub);ae.src=ue+vb,ue=rn(ae.src)}return ue}function oe(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function y(){for(var ue=o.getElementsByTagName(_),ae=O;ae<ue.length;++ae)if(ue[ae].src.indexOf(xb)!=-1)return rn(ue[ae].src);return W}function ie(){var ue=o.getElementsByTagName(yb);return ue.length>O?ue[ue.length-P].href:W}function fe(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var de=oe();return de==W&&(de=y()),de==W&&(de=ie()),de==W&&fe()&&(de=rn(o.location.href)),de=Tt(de),de}function C(rn){return rn.match(/^\//)||rn.match(/^[a-zA-Z]+:\/\//)?rn:webModule.__moduleBase+rn}function D(){var rn=[],Tt=O,oe=[],y=[];function ie(ue){var ae=y[ue](),se=oe[ue];if(ae in se)return ae;var te=[];for(var ne in se)te[se[ne]]=ne;throw r&&r(ue,te,ae),null}if(__gwt_isKnownPropertyValue=function(ue,ae){return ae in oe[ue]},webModule.__getPropMap=function(){var ue={};for(var ae in oe)oe.hasOwnProperty(ae)&&(ue[ae]=ie(ae));return ue},webModule.__computePropValue=ie,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var fe;try{fe=Cb;var de=fe.indexOf(Db);de!=-1&&(Tt=parseInt(fe.substring(de+P),$),fe=fe.substring(O,de))}catch(ue){}return webModule.__softPermutationId=Tt,C(fe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},28735:function(rn,Tt,oe){"use strict";oe.d(Tt,{Ax:function(){return de},Ds:function(){return ue},KI:function(){return se},SI:function(){return fe},f1:function(){return ie}});var y=oe(74128);function ie(te){let ne=!0;if(te.length>0){for(let x=0;x<te.length;x++)if(te[x].compile_success==0||!te[x].compile_success){ne=!1;break}}else ne=!1;return ne}function fe(te,ne=""){let x=[];for(let b=0;b<te.length;b++){let ee=te[b],E=ne?`${ne}/${ee.name}`:`${ee.name}`;x.push({title:ee.name,type:ee.type,isLeaf:ee.type!=="tree",key:E})}return x}function de(te,ne,x){for(let b=0;b<te.length;b++){let ee=te[b];if(ee.key===ne){ee.children=x;break}ee.children&&de(ee.children,ne,x)}return te}function ue(te,ne,x){let b;return function(){let ee=this,E=arguments,re=function(){b=null,x||te.apply(ee,E)},ce=x&&!b;clearTimeout(b),b=setTimeout(re,ne),ce&&te.apply(ee,E)}}const ae=!0,se=y.Z.API_SERVER},16750:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return b}});var y=oe(59301),ie={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},fe=oe(92310),de=oe.n(fe),ue=oe(29787),ae=oe(2859),se=oe(38147),te=oe(65862),ne=(ee,E,re)=>new Promise((ce,le)=>{var ve=_e=>{try{ge(re.next(_e))}catch(Ce){le(Ce)}},Se=_e=>{try{ge(re.throw(_e))}catch(Ce){le(Ce)}},ge=_e=>_e.done?ce(_e.value):Promise.resolve(_e.value).then(ve,Se);ge((re=re.apply(ee,E)).next())}),b=({data:ee,className:E,fullWidth:re,style:ce={},onClose:le,onOk:ve,showFullTools:Se,noAssociationId:ge})=>{const _e=(0,y.useRef)(null),Ce=(0,y.useRef)(null),he=(0,y.useRef)(null),be=(0,y.useRef)(null),[Ee,Ae]=(0,y.useState)(!1),[De,je]=(0,y.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,y.useEffect)(()=>(he.current||(he.current=document.createElement("style"),document.head.appendChild(he.current)),ee!=null&&ee.visible?(document.body.setAttribute("data-custom","y-hidden"),he.current.innerHTML=" html { overflow-y: hidden; }",ee!=null&&ee.src&&Fe()):(document.body.removeAttribute("data-custom"),he.current&&(document.head.removeChild(he.current),he.current=null)),()=>{document.body.removeAttribute("data-custom"),he.current&&(document.head.removeChild(he.current),he.current=null)}),[ee==null?void 0:ee.visible]);const Fe=()=>ne(void 0,null,function*(){Ae(!0),je("\u6B63\u5728\u52A0\u8F7D\u4E2D");const He=yield(0,te.ZJ)(ee==null?void 0:ee.src);_e.current.src="",_e.current.src=He,_e.current.onload=function(){Je()},Ae(!1),je("")}),Re=He=>ne(void 0,null,function*(){Ae(!0),je("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ze=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ee.title,file:He.dataUrl}});ze!=null&&ze.id&&!ge?(yield(0,se.ZP)(`/api/attachments/${ee.id}/add_subitem.json`,{method:"post",body:{subitem_id:ze==null?void 0:ze.id,settings:JSON.stringify(He.state)}})).status===0&&ve():ze!=null&&ze.id&&ve(ze),Ae(!1),je("")}),qe=()=>{const He=document.querySelector('a[href="https://markerjs.com/"]');He&&He.parentNode&&(He.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Qe=>{const $e=document.querySelector(Qe.name);$e&&$e.setAttribute("title",Qe.title)})},Je=()=>{Ce.current=new ae.hP(_e.current),Ce.current.targetRoot=be.current,Ce.current.addEventListener("render",Re),Ce.current.addEventListener("beforeclose",le),Se&&(Ce.current.availableMarkerTypes=Ce.current.ALL_MARKER_TYPES,Ce.current.uiStyleSettings.redoButtonVisible=!0,Ce.current.uiStyleSettings.notesButtonVisible=!0,Ce.current.uiStyleSettings.zoomButtonVisible=!0,Ce.current.uiStyleSettings.zoomOutButtonVisible=!0,Ce.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Ce.current.uiStyleSettings,Ce.current.show(),ee!=null&&ee.snapshotData&&Ce.current.restoreState(ee.snapshotData),setTimeout(()=>{window.scrollTo(0,0),qe()},300)};return y.createElement(y.Fragment,null,(ee==null?void 0:ee.visible)&&y.createElement(ue.Z,{spinning:Ee,tip:De,style:{position:"absolute",width:"100vw"}},y.createElement("div",{ref:be,className:de()(ie.imageDimensions,E,re?ie.fullWidth:""),style:ce},y.createElement("img",{className:ie.img,ref:_e}))))}},99298:function(rn,Tt,oe){"use strict";var y=oe(59301),ie=oe(77019),fe=oe(5269),de=oe(31691),ue=oe(7939),ae=oe(95097),se=oe(96408),te=oe(48136),ne=oe(59301);const x=(0,y.forwardRef)(({callback:b,showSaveButton:ee,value:E=""},re)=>{const ce=(0,y.useRef)(),le=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ve=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],Se=Ce=>{ce.current.setValue(ce.current.getValue()+" "+Ce.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ne.createElement(ie.Z,{className:se.Z.lists,gutter:[10,10]},le.map((Ce,he)=>ne.createElement(fe.Z,{flex:"110px",className:se.Z.item},ne.createElement("div",null,ne.createElement(ae.Z,{value:`$$${Ce.value}$$`}),Ce.name),ne.createElement("div",{className:se.Z.children},Ce.children.map((be,Ee)=>ne.createElement("div",{key:Ee},ne.createElement("h1",null,be.name),ne.createElement(ie.Z,{gutter:[10,10]},be.data.map((Ae,De)=>ne.createElement(fe.Z,{key:De,onClick:()=>Se(Ae),className:se.Z.diamond},ne.createElement(ae.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ne.createElement(ie.Z,{className:se.Z.lists,gutter:[10,10]},ve.map((Ce,he)=>ne.createElement(fe.Z,{flex:"110px",className:se.Z.item},ne.createElement("div",null,ne.createElement(ae.Z,{value:"`$$"+Ce.value+"$$`"}),Ce.name),ne.createElement("div",{className:se.Z.children},Ce.children.map((be,Ee)=>ne.createElement("div",{key:Ee},be.name&&ne.createElement("h1",null,be.name),ne.createElement(ie.Z,{gutter:[10,10]},be.data.map((Ae,De)=>ne.createElement(fe.Z,{key:De,onClick:()=>Se(Ae),className:se.Z.diamond},ne.createElement(ae.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],_e=()=>{var Ce=document.createElement("div");Ce.innerHTML=ce.current.getValue();var he=Ce.innerText;return b&&b(he),he};return(0,y.useImperativeHandle)(re,()=>({getData:_e})),ne.createElement("div",{className:se.Z.mathWrap},ne.createElement(de.default,{defaultActiveKey:"1",items:ge}),ne.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ce,style:{width:800,marginTop:30,fontSize:18}},E||""),ee&&ne.createElement("div",{className:se.Z.button},ne.createElement(ue.ZP,{size:"large",onClick:_e,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Tt.Z=x},2524:function(rn,Tt,oe){"use strict";var y=oe(59301),ie=oe(93314),fe=oe(7939),de=Object.defineProperty,ue=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,x=(re,ce,le)=>ce in re?de(re,ce,{enumerable:!0,configurable:!0,writable:!0,value:le}):re[ce]=le,b=(re,ce)=>{for(var le in ce||(ce={}))te.call(ce,le)&&x(re,le,ce[le]);if(se)for(var le of se(ce))ne.call(ce,le)&&x(re,le,ce[le]);return re},ee=(re,ce)=>ue(re,ae(ce));const E=({img:re,buttonProps:ce={},styles:le={},customText:ve,ButtonText:Se,ButtonClick:ge,Buttonclass:_e,ButtonTwo:Ce,imgStyles:he,loading:be=!1,className:Ee=""})=>y.createElement("section",{className:`tc animated fadeIn ${Ee}`,style:b({color:"#999",margin:"100px auto",visibility:be?"hidden":"visible"},le)},y.createElement("img",{src:re||ie,style:ee(b({},he),{pointerEvents:"none",userSelect:"none"})}),y.createElement("p",{className:"mt20 font14"},ve||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Se&&y.createElement(fe.ZP,b({className:_e,onClick:ge},ce),Se),Ce&&Ce);Tt.Z=E},52918:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return _e}});var y=oe(59301),ie={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},fe=oe(7939),de=oe(70557),ue=oe(50258),ae=oe(25399),se=oe(65862),te=oe(87513),ne=oe(2524),x=oe(74128),b=oe(7310),ee=oe(59301),E=Object.defineProperty,re=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ve=(Ce,he,be)=>he in Ce?E(Ce,he,{enumerable:!0,configurable:!0,writable:!0,value:be}):Ce[he]=be,Se=(Ce,he)=>{for(var be in he||(he={}))ce.call(he,be)&&ve(Ce,be,he[be]);if(re)for(var be of re(he))le.call(he,be)&&ve(Ce,be,he[be]);return Ce},ge=(Ce,he,be)=>new Promise((Ee,Ae)=>{var De=Re=>{try{Fe(be.next(Re))}catch(qe){Ae(qe)}},je=Re=>{try{Fe(be.throw(Re))}catch(qe){Ae(qe)}},Fe=Re=>Re.done?Ee(Re.value):Promise.resolve(Re.value).then(De,je);Fe((be=be.apply(Ce,he)).next())}),_e=({editOffice:Ce="view",data:he,issaver:be,onSaver:Ee,theme:Ae,type:De,filename:je,monacoEditor:Fe,className:Re,style:qe,close:Je,onClose:He,hasMask:ze,disabledDownload:Qe,onImgDimensions:$e,showNodata:ht,recordInfo:Ge})=>{const[Ue,Ke]=(0,y.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[et,rt]=(0,y.useState)(""),[Xe,ut]=(0,y.useState)(),lt=window.ENV==="build"?"/react/build":"",kt=location.host.startsWith("localhost")?x.Z.PROXY_SERVER:x.Z.API_SERVER,Mt=10*(1024*1024),wt=(0,y.useRef)();he!=null&&he.startsWith("/api")&&De!=="txt"&&(he=x.Z.API_SERVER+he);const bt=Be=>Be.substring(Be.lastIndexOf("/")+1).split(".").pop();je&&Fe&&(Fe.filename=je),(0,y.useEffect)(()=>{var Be,Ye;const Pe=(Ye=(Be=document.cookie)==null?void 0:Be.replace(/\s/g,""))==null?void 0:Ye.split(";");Pe==null||Pe.map(Le=>{let pe=Le.split("=");pe[0]==="_educoder_session"&&rt(pe[1])})},[]),(0,y.useEffect)(()=>{De==="office"&&(he.indexOf("bigfilescdn.")>-1||he.indexOf("bigfiles1")>-1?ut({url:he,fileType:bt(he),model:he.indexOf("model=edit")?"edit":"view"}):We())},[De,he]);function gt(Be){return ge(this,null,function*(){Be.data.type==="pdfdata"&&(Ee(Be.data.data),window.removeEventListener("message",gt,!1)),console.log("mess---:",Be.data)})}const We=()=>ge(void 0,null,function*(){console.log("data:",he);let Be=he;he.startsWith("http")||(Be=location.origin+Be);let Ye=new URL(Be).pathname.split("/").pop();const Pe=yield(0,te.gJ)({attachment_id:Ye});Pe.url=kt+Pe.url,ut(Pe)}),Ie=()=>{if(he.startsWith("http")||he.startsWith("blob:")){xe();return}(0,se.Sv)(je||"educoder",he,je)},xe=()=>{Ge&&(0,b.fc)({id:Ge==null?void 0:Ge.id,watch_type:1,course_id:Ge==null?void 0:Ge.course_id}),(0,se.Nd)(je||"educoder",decodeURIComponent(he))};return ee.createElement("div",{style:Se({},qe||{}),className:`${ze&&ie.bgBlack} ${De?ie.wrp:"hide"}`},Je&&ee.createElement("div",{className:ie.close,ref:wt},!!$e&&ee.createElement(ae.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>wt.current},ee.createElement("span",{onClick:()=>{He(),$e()}},ee.createElement("i",{className:"icon-yulanpizhu"}))),!Qe&&ee.createElement(ae.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>wt.current},ee.createElement("span",{onClick:xe},ee.createElement("i",{className:"icon-quxiaozhiding"}))),be&&ee.createElement(ae.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>wt.current},ee.createElement("span",{className:"",onClick:()=>{const Be=document.getElementById("pdfiframe");window.addEventListener("message",gt,!1),setTimeout(()=>{Be.contentWindow.postMessage("getData","*")},300)}},ee.createElement("i",{className:"icon-baocun"}))),ee.createElement(ae.Z,{title:"\u5173\u95ED",getPopupContainer:()=>wt.current},ee.createElement("span",{className:"",onClick:()=>{He()}},ee.createElement("i",{className:"icon-guanbi1"})))),ee.createElement("div",{className:`${ie[Re]} ${Re} ${ie.monaco} ${De==="txt"?"show":"hide"}`},De==="txt"&&ee.createElement(ee.Fragment,null,ee.createElement(ue.ZP,Se({},Fe)))),De==="audio"&&ee.createElement("audio",{src:`${(he==null?void 0:he.indexOf("http://"))>-1||(he==null?void 0:he.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${he}`,autoPlay:!0}),De==="video"&&ee.createElement(ee.Fragment,null,(he==null?void 0:he.indexOf("http"))>-1?ee.createElement("video",{controls:!0,src:`${he}`,autoPlay:!0}):ee.createElement("video",{controls:!0,src:`data:video/mp4;base64,${he}`,autoPlay:!0})),De==="office"&&Xe&&ee.createElement("iframe",{src:`${lt}/office.html?key=${Xe.key}&url=${btoa(Xe.url)}&callbackUrl=${kt+(Xe.callbackUrl||"")}&fileType=${Xe.fileType}&title=${Xe.title||""}&model=${Ce}&officeServer=${x.Z.ONLYOFFICE}&disabledDownload=${!!Qe}`}),De==="html"&&ee.createElement("iframe",{src:he+"&disposition=inline"}),De==="pdf"&&ee.createElement("iframe",{id:"pdfiframe",src:`${lt}/js/pdf/index.html?filename=${je||"educoder.pdf"}&url=${encodeURIComponent(he)}&disabledDownload=${!!Qe}&model=${Ce}`}),De==="image"&&ee.createElement("img",{src:`${(he==null?void 0:he.indexOf("http://"))>-1||(he==null?void 0:he.indexOf("https://"))>-1?"":"data:image/png;base64,"}${he}`}),(De==="other"||De==="download")&&ee.createElement(ee.Fragment,null,ht?ee.createElement(ne.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ee.createElement(fe.ZP,{icon:ee.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ie,disabled:Qe},"\u4E0B\u8F7D")}):ee.createElement(fe.ZP,{type:"primary",size:"middle",onClick:Ie,disabled:Qe},ee.createElement(de.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),De==="flowChart"&&ee.createElement("div",{className:"embed"},ee.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${he||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},95097:function(rn,Tt,oe){"use strict";oe.d(Tt,{z:function(){return Fe},Z:function(){return Re}});var y=oe(59301),ie=oe(48850),fe=oe(49142),de=oe(64018),ue=oe(17030),ae=oe(74128),se=oe(65862),te=oe(15342),ne=oe(44104),x=oe(7939),b=oe(1012),ee=oe(52918),E=oe(59301),ce=({html:qe})=>{const Je=(0,y.useRef)(null),He=(0,y.useRef)(null),ze=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,y.useEffect)(()=>{const Qe=Je.current.attachShadow({mode:"open"});He.current=document.createElement("div"),He.current.className="markdown-body",He.current.innerHTML=qe,Qe.appendChild(He.current);const $e=document.createElement("style");return $e.textContent=ze,Qe.appendChild($e),()=>{Qe.innerHTML=""}},[]),(0,y.useEffect)(()=>{He.current&&(He.current.innerHTML=qe)},[qe]),E.createElement("div",{ref:Je})};function le(qe){const Je=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],He=new RegExp(`\\b(${Je.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return qe.replace(He,"").trim()}var ve={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Se=Object.defineProperty,ge=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,he=(qe,Je,He)=>Je in qe?Se(qe,Je,{enumerable:!0,configurable:!0,writable:!0,value:He}):qe[Je]=He,be=(qe,Je)=>{for(var He in Je||(Je={}))_e.call(Je,He)&&he(qe,He,Je[He]);if(ge)for(var He of ge(Je))Ce.call(Je,He)&&he(qe,He,Je[He]);return qe};const Ee="@\u2581\u2581@",Ae="@\u2581@",De=/<pre[^>]*>/g;function je(qe){let Je=document.createElement("div");return Je.innerHTML=qe,Je.childNodes.length===0?"":Je.childNodes[0].nodeValue}const Fe=(qe,Je)=>{qe=qe||"";const He=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Je?qe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(He,(ht,Ge,Ue,Ke,et,rt,Xe)=>{const ut=Ge||Ke||rt,lt=Ue||et||Xe||"?";return ae.Z.API_SERVER+"/api/attachments/"+ut+lt+"&t="+(0,se.Jn)(ut,Date.now())+(ht.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(qe=qe.replace($e,(ht,Ge,Ue,Ke,et,rt,Xe)=>{const ut=Ge||Ke||rt,lt=Ue||et||Xe||"?";return ae.Z.API_SERVER+"/attachments/download/"+ut+lt+"&t="+(0,se.Jn)(ut,Date.now())+(ht.indexOf(")")>-1?")":"&")}).replace(He,(ht,Ge,Ue,Ke,et,rt,Xe)=>{const ut=Ge||Ke||rt,lt=Ue||et||Xe||"?";return ae.Z.API_SERVER+"/api/attachments/"+ut+lt+"&t="+(0,se.Jn)(ut,Date.now())+(ht.indexOf(")")>-1?")":"&")}).replace(ze,(ht,Ge,Ue,Ke,et)=>{const rt=Ge||Ke,Xe=Ue||et||"";return'"'+ae.Z.API_SERVER+"/api/attachments/"+rt+Xe+rt+Xe+"&t="+(0,se.Jn)(rt,Date.now())}).replace(Qe,(ht,Ge,Ue,Ke,et)=>{const rt=Ge||Ke,Xe=Ue||et||"";return"("+ae.Z.API_SERVER+"/files/uploads/"+rt+Xe+rt+Xe+"&t="+(0,se.Jn)(rt,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,`
|
|
|
`),qe)};var Re=({value:qe="",edit:Je=!1,className:He,showTextOnly:ze,showLines:Qe,style:$e={},stylesPrev:ht={},highlightKeywords:Ge,showProgramFill:Ue,isProgramFill:Ke,disabledFill:et=!1,programFillValue:rt,openEditor:Xe=()=>{},onFillChange:ut=pt=>{},onFillBlur:lt=()=>{},onFillFocus:kt=()=>{}})=>{let pt=le(String(qe||""));const Mt=(0,y.useRef)(),wt=(0,y.useRef)(),[bt,gt]=(0,y.useState)(""),[We,Ie]=(0,y.useState)("office"),[xe,Be]=(0,y.useState)([]),Ye=(0,y.useRef)("a"+(0,b.Z)()),Pe={},Le=It=>/<style[\s\S]*?>/i.test(It||""),pe=(It,en,Pt)=>{const cn=document.createElement(It===Ae?"input":"textarea");cn.style.width="100%",cn.style.height=It===Ae?"40px":"151px",cn.rows=5,cn.spellcheck=!1,cn.name="edu-program-fill",cn.placeholder="\u8BF7\u8F93\u5165",cn.dataset.id=en;const Sn=Object.keys(Pe).length;return Pe[Sn]=cn,`<span class="edu-program-fill-wrap ${It===Ae?"":"show"}" style="width:${It===Ae?"600px":"100%"}" title=${Pt||""}><span>${cn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function we(It){return It=It.replace(/!\[.*?\]\(.*?\)/g,""),It=It.replace(/\[.*?\]\(.*?\)/g,""),It=It.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),It=It.replace(/<embed.*?>/g,""),It=It.replace(/<img.*?>/g,""),It=It.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),It=It.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),It=It.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),It=It.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),It}const ke=It=>!ze&&Le(pt)?It:It.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(en,Pt){let cn=Pt.replace(/(\n|\r)/g,"").split("}"),Sn=[];return cn.map(An=>{An!=""&&Sn.push(`.${Ye.current} ${An}`)}),`<style>${Sn.join("}")}</style>`}),Me=(0,y.useMemo)(()=>{try{const cn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Sn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,An=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,wn=/\(\/attachments\/download\//g;pt=pt.replace(wn,"("+ae.Z.API_SERVER+"/attachments/download/").replace(cn,"("+ae.Z.API_SERVER+"/api/attachments/").replace(Sn,'"'+ae.Z.API_SERVER+"/api/attachments/").replace(An,'"'+ae.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,`
|
|
|
`),Mt.current.style.display="none"}catch(cn){}if(Ue){let cn=-1;return pt=pt.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Sn,An,wn){var At;return++cn,pe(Sn,cn,(At=rt==null?void 0:rt[cn])==null?void 0:At.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ke(pt||"")}</pre>`}let It=ke(pt);It=(0,fe.ZP)(It);const en=(0,fe.ez)();pt.match(/\[TOC\]/)&&(It=It.replace("<p>[TOC]</p>",(0,fe.Qv)()),(0,fe.Iy)()),It=It.replace(/(__special_katext_id_\d+__)/g,(cn,Sn)=>{const{type:An,expression:wn}=en[Sn];return(0,te.renderToString)(je(wn)||"",{displayMode:An==="block",throwOnError:!1,output:"html"})}),It=It.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,fe.AL)();const Pt=document.createElement("div");if(Pt.innerHTML=It,ze)return Pt.innerText;if(Ge){const cn=Ge.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return st(Pt,cn),Pt.innerHTML}return setTimeout(()=>Bt(),500),Pt.innerHTML},[pt,Ge]);(0,y.useEffect)(()=>{ft.current&&ft.current.querySelectorAll(["input","textarea"]).forEach(en=>{en.oninput=Oe,en.onblur=tt,en.onfocus=ot})},[xe]),(0,y.useEffect)(()=>{var It,en,Pt,cn,Sn;if(rt!=null&&rt.length)try{const An=ft.current.querySelectorAll(".edu-program-fill-score"),wn=ft.current.querySelectorAll('[name="edu-program-fill"]');for(const[At,Gt]of wn.entries())Gt.value=((It=rt==null?void 0:rt[At])==null?void 0:It.value)||"",((en=rt==null?void 0:rt[At])==null?void 0:en.type)==="warning"?Gt.className="program-fill-warning":((Pt=rt==null?void 0:rt[At])==null?void 0:Pt.type)==="success"?Gt.className="program-fill-success":Gt.className="";for(const[At,Gt]of An.entries())Gt.innerHTML=(cn=rt==null?void 0:rt[At])!=null&&cn.score?`${(Sn=rt==null?void 0:rt[At])==null?void 0:Sn.score}\u5206`:"";Be(rt)}catch(An){console.log(An,"error")}},[rt]);const Oe=It=>{xe[It.target.dataset.id]=xe[It.target.dataset.id]||{},xe[It.target.dataset.id].value=It.target.value,Be([...xe]),ut(xe,It.target.dataset.id)},tt=It=>{xe[It.target.dataset.id]=xe[It.target.dataset.id]||{},xe[It.target.dataset.id].value=It.target.value,Be([...xe]),lt(xe,It.target.dataset.id)},ot=It=>{xe[It.target.dataset.id]=xe[It.target.dataset.id]||{},xe[It.target.dataset.id].value=It.target.value,Be([...xe]),kt(xe,It.target.dataset.id)};function st(It,en){return It.childNodes.forEach(Pt=>{var cn;if(Pt.childNodes.length>0)st(Pt,en);else if(Pt.nodeName!=="IMG")if(Pt.innerHTML)Pt.innerHTML=(cn=Pt.innerHTML)==null?void 0:cn.replace(new RegExp(en,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Sn=document.createElement("span");Sn.innerHTML=Pt.textContent.replace(new RegExp(en,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Pt.replaceWith(Sn)}})}const ft=(0,y.useRef)();fe.jb.WebkitLineClamp=Qe,Qe&&($e=be(be({},$e),fe.jb));function Ft(It){let en=It.target;if(en.tagName.toUpperCase()==="A"){let Pt=en.getAttribute("href");if(Pt.indexOf("office")>-1)It.preventDefault(),gt(Pt),Ie("office");else if(Pt.indexOf("application/pdf")>-1)It.preventDefault(),gt(Pt),Ie("pdf");else if(Pt.indexOf("text/html")>-1)It.preventDefault(),gt(Pt),Ie("html");else if(Pt.startsWith("#")){It.preventDefault();let cn=document.getElementById(Pt.replace("#",""));cn&&cn.scrollIntoView(!0)}}}const Bt=()=>{var It;const en=(It=ft.current)==null?void 0:It.querySelectorAll("video");en==null||en.forEach(Pt=>{if(Pt.oncontextmenu=()=>!1,Pt.src.indexOf(".m3u8")>-1&&!Pt.canPlayType("application/vnd.apple.mpegurl")){if(ue.ZP.isSupported()){var cn=new ue.ZP;cn.loadSource(Pt.src),cn.attachMedia(Pt)}}})};(0,y.useEffect)(()=>{if(ft.current&&Me&&Me.match(De)&&window.PR.prettyPrint(),ft.current)return ft.current.addEventListener("click",Ft),()=>{var It;(It=ft.current)==null||It.removeEventListener("click",Ft),(0,fe.AL)(),(0,fe.Iy)()}},[Me,ft.current,Ft]);const qt=It=>{It.target.nodeName==="IMG"&&It.target.className.indexOf("draw-flowchart")>-1?(Mt.current.style.zIndex=1,Mt.current.style.display="flex",Mt.current.style.width=It.target.clientWidth+"px",Mt.current.style.height=It.target.clientHeight+"px",Mt.current.style.top=It.target.offsetTop+"px",Mt.current.style.left=It.target.offsetLeft+"px",It.target.id&&(wt.current=It.target.id)):Mt.current.style.display="none"},$t=()=>{Mt.current.style.display="none"};return(0,y.useEffect)(()=>{var It;const en=Pt=>{Pt.preventDefault(),Pt.clipboardData.setData("text",window.getSelection().toString())};return(It=ft.current)==null||It.addEventListener("copy",en),()=>{var Pt;(Pt=ft.current)==null||Pt.removeEventListener("copy",en)}},[ft.current]),y.createElement("div",{style:{position:"relative"},onMouseLeave:$t},ze&&y.createElement("div",{ref:ft,className:`${ve.mdBody} `},Me),!ze&&!Le(Me)&&y.createElement("div",{ref:ft,style:be({},$e),onMouseOver:qt,className:`${He||""} ${et?"disabled-fill":""} markdown-body ${ve.mdBody} ${Ye.current}`,dangerouslySetInnerHTML:{__html:Me}}),!ze&&Le(Me)&&y.createElement(ce,{html:Me}),y.createElement("div",{ref:Mt,className:`${ve.button} ${Je?"":ve.previewFlowChart}`},y.createElement(ne.Z,null,y.createElement(x.ZP,{onClick:()=>{Je?Xe(wt.current):(gt(wt.current),Ie("flowChart"))}},Je?"\u7F16\u8F91":"\u9884\u89C8"))),y.createElement(ee.Z,{close:!0,data:bt,type:bt!=null&&bt.length?We:"",style:be({},ht),onClose:()=>gt("")}))}},42678:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return de}});var y=oe(65582),ie={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},fe=oe(59301),de=({message:ue,className:ae,children:se,style:te={}})=>fe.createElement("div",{className:`custom-spinner ${ie.idsRingWrapper} ${ae}`},fe.createElement("div",{className:ie.ldsRing},fe.createElement("div",null),fe.createElement("div",null),fe.createElement("div",null),fe.createElement("div",null)),ue?fe.createElement("p",{style:te},ue):null,se,fe.createElement(y.Outlet,null))},29584:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return de}});var y=oe(59301),ie=oe(77254),fe=oe(59301),de=({defaultX:ue="40%",leftChild:ae,rightChild:se,className:te,hideResize:ne=!1})=>{const[x,b]=(0,y.useState)(ue),ee=(0,y.useRef)();function E(){ee.current=!0}(0,y.useEffect)(()=>{function le(Se){ee.current&&(ie.Z.publish("resize-move-bar",Se),b(Se.pageX))}function ve(){ee.current=!1}return window.addEventListener("mousemove",le),window.addEventListener("mouseup",ve),()=>{window.removeEventListener("mousemove",le),window.removeEventListener("mouseup",ve)}},[]);const re=typeof x=="number"&&x!==.01?`${x}px`:ue,ce=`calc(100% - ${ne?"0px":"4px"} - ${re})`;return fe.createElement("div",{className:`split-panel-container ${te}`},fe.createElement("section",{style:{width:re,display:x===.01?"none":""}},ae),fe.createElement("section",{className:"resize-x-bar",onMouseDown:E},fe.createElement("a",{className:"btn-resize"},fe.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},fe.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),fe.createElement("section",{style:{width:ce}},se))}},51908:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return ae}});var y=oe(59301),ie={flex_box_center:"flex_box_center___Gc4dd",flex_space_between:"flex_space_between___K2f1v",flex_box_vertical_center:"flex_box_vertical_center___pupRp",flex_box_center_end:"flex_box_center_end___UDLRC",flex_box_column:"flex_box_column___a5uDo",result:"result___gu5zt",title:"title___xrnx2",left:"left___IAxp9",leftNode:"leftNode___HL8fG",right:"right___ZXYmw",rightNode:"rightNode___jYL5_"},fe=oe(92310),de=oe.n(fe),ae=({className:se,style:te={},leftNode:ne,leftTitle:x="\u81EA\u6D4B\u8F93\u5165",rightNode:b,rightTitle:ee="\u8FD0\u884C\u7ED3\u679C"})=>y.createElement("div",{className:de()(ie.result,se),style:te},y.createElement("div",{className:ie.left},y.createElement("div",{className:ie.title},y.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),y.createElement("span",null,x)),y.createElement("div",{className:ie.leftNode},ne)),y.createElement("div",{className:ie.right},y.createElement("div",{className:ie.title},y.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),y.createElement("span",null,ee)),y.createElement("div",{className:ie.rightNode},b)))},22744:function(rn,Tt,oe){"use strict";var y=oe(59301);const ie=de=>String(de).length===1?`0${de}`:de,fe=({className:de="",onChange:ue,defaultValue:ae=0})=>{const[se,te]=(0,y.useState)(ae);(0,y.useEffect)(()=>{const ee=setTimeout(()=>{te(se+1e3)},1e3);return ue(se+1e3),()=>{clearInterval(ee)}},[se]);const ne=parseInt(se/(60*6e4))||"00",x=parseInt(se%(60*6e4)/6e4)||"00",b=parseInt(se%6e4/1e3)||"00";return y.createElement("div",{className:de},ie(ne),":",ie(x),":",ie(b))};Tt.Z=fe},44080:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return ce}});var y=oe(59301),ie=oe(6767),fe=oe(75727),de=oe(73217),ue=oe(17030),ae=oe(41867),se=oe(56102),te=oe(84056),ne={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},x=(le,ve,Se)=>new Promise((ge,_e)=>{var Ce=Ee=>{try{be(Se.next(Ee))}catch(Ae){_e(Ae)}},he=Ee=>{try{be(Se.throw(Ee))}catch(Ae){_e(Ae)}},be=Ee=>Ee.done?ge(Ee.value):Promise.resolve(Ee.value).then(Ce,he);be((Se=Se.apply(le,ve)).next())});function b(le){if(isNaN(le))return{minutes:"00",seconds:"00"};const ve=new Date(le*1e3).toISOString().substr(11,8);return{hour:ve.substr(0,2),minutes:ve.substr(3,2),seconds:ve.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function ee(le,ve){return le-ve}function E(le){le.sort(ee);let ve=0;for(let Se=0;Se<le.length-1;Se++){let ge=Math.abs(le[Se+1]-le[Se]);ge<21&&(ve+=ge)}return ve}const re=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var ce=(0,y.forwardRef)(({allow_skip:le,src:ve,toLog:Se,videoId:ge,logWatchHistory:_e,courseId:Ce=null,startTime:he,handlePause:be=()=>{},handlePlay:Ee=()=>{},handlePlayEnded:Ae=()=>{},autoPlay:De=!1,onPlayEnded:je=()=>{},isShowWaterMark:Fe=!0},Re)=>{var qe;ve=ve==null?void 0:ve.replace("http://","https://");const He=((qe=ve==null?void 0:ve.split("."))==null?void 0:qe.pop())==="flv",ze=(0,y.useRef)(),Qe=(0,y.useRef)(),$e=(0,y.useRef)(),ht=(0,y.useRef)(),Ge=(0,y.useRef)(),Ue=(0,y.useRef)(),Ke=(0,y.useRef)(),et=(0,y.useRef)(),rt=(0,y.useRef)(),Xe=(0,y.useRef)(),ut=(0,y.useRef)(),lt=(0,y.useRef)(),kt=(0,y.useRef)(),pt=(0,y.useRef)(),Mt=navigator.userAgent.toLowerCase().match(re),wt=Mt?Mt[0]:"pc",bt=(0,y.useRef)(!1),gt=(0,ae.eY)();let We=0,Ie=0,xe=0,Be=null,Ye=!1,Pe=20,Le=1,pe=!1,we=!1,ke=[];(0,y.useImperativeHandle)(Re,()=>({getLastUpdatedTime:()=>ze.current.currentTime,getDuration:()=>ze.current.duration})),ie.ZP.config({maxCount:1,getContainer:()=>$e.current});const Me=(0,y.useCallback)((Bt,qt=!1)=>{let $t={point:ze.current.currentTime};Be?($t.log_id=Be,$t.watch_duration=E(ke),$t.total_duration=Ie):(Ce?($t.video_id=parseInt(ge,10),$t.course_id=Ce):$t.video_id=ge,$t.duration=We,$t.device=wt),qt&&($t.ed="1");function It(){return x(this,null,function*(){pe=!0,Be=yield _e==null?void 0:_e($t),pe=!1,Bt&&Bt()})}It()},[ge,Ce]);(0,y.useEffect)(()=>{ze.current&&(ht.current.style.display="none",Ge.current.style.display="block"),ie.ZP.destroy();let Bt=null;return de.Z.isSupported&&He&&ve&&(ve==null?void 0:ve.indexOf(".m3u8"))<0?(Bt=de.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:ve,muted:!1}),ze.current&&(Bt.attachMediaElement(ze.current),Bt.load())):ze.current.setAttribute("src",ve),tt(),()=>{Bt&&(Bt.unload(),Bt.pause(),Bt.destroy(),Bt=null)}},[ze,He,ve]);function Oe(){ze.current.paused?(ht.current.style.display="none",Ge.current.style.display="block"):(ht.current.style.display="block",Ge.current.style.display="none")}function tt(){ut.current.style.display="none",kt.current.style.display="none",lt.current.style.display="none",ze.current.muted||ze.current.volume===0?ut.current.style.display="block":ze.current.volume>0&&ze.current.volume<=.5?kt.current.style.display="block":lt.current.style.display="block"}(0,y.useEffect)(()=>{const Bt=document.getElementById("play"),qt=document.querySelectorAll(".playback-icons use");function $t(){Ee(),he&&!bt.current&&(ze.current.currentTime=he),bt.current=!0,ke.push(ze.current.currentTime),Ye||(Ye=!0,Se&&Me())}function It(){return x(this,null,function*(){Oe(),ke.push(ze.current.currentTime),Se&&Me(()=>{Be=null,xe=0,Ye=!1,pe=!1,we=!1,ke=[],Ie=0,Le=1},!0),je()})}function en(){Ue.current.value=Math.round(ze.current.currentTime),Ke.current.value=Math.round(ze.current.currentTime)}function Pt(){const Vn=b(Math.round(ze.current.currentTime));rt.current.innerText=`${Vn.hour>0?Vn.hour+":":""}${Vn.minutes}:${Vn.seconds}`,rt.current.setAttribute("datetime",`${Vn.hour>0?" "+Vn.hour+" ":""}${Vn.minutes}m ${Vn.seconds}s`)}function cn(){var Vn,ir,Mn,qn,En,Hn,Qn;const dr=Math.round((Vn=ze.current)==null?void 0:Vn.duration);(Mn=(ir=Ue.current)==null?void 0:ir.setAttribute)==null||Mn.call(ir,"max",dr),(En=(qn=Ke.current)==null?void 0:qn.setAttribute)==null||En.call(qn,"max",dr);const On=b(dr);et.current&&(et.current.innerText=`${On.hour>0?On.hour+":":""}${On.minutes}:${On.seconds}`,(Qn=(Hn=et.current).setAttribute)==null||Qn.call(Hn,"datetime",`${On.hour>0?" "+On.hour+" ":""}${On.minutes}m ${On.seconds}s`))}function Sn(){try{const Vn=Math.round(ze.current.duration);Ue.current.setAttribute("max",Vn),Ke.current.setAttribute("max",Vn);const ir=b(Vn);et.current.innerText=`${ir.hour>0?ir.hour+":":""}${ir.minutes}:${ir.seconds}`,et.current.setAttribute("datetime",`${ir.hour>0?" "+ir.hour+" ":""}${ir.minutes}m ${ir.seconds}s`),en(),Pt();const{width:Mn,height:qn,x:En,y:Hn}=Qe.current.getBoundingClientRect();if(En<0||Hn<0,!we){let Qn=ze.current.currentTime,dr=Qn-xe;Math.abs(dr)<10?(Ie+=Math.abs(dr),xe=Qn,pe||Ie-Le*Pe>=0&&(Le++,ke.push(xe),Se&&Me())):(xe=Qn,Se&&Me())}}catch(Vn){console.log("videoplaying:",Vn)}}function An(){we=!0}function wn(){ze.current.playing&&ke.push(ze.current.currentTime,xe),xe=ze.current.currentTime,we=!1}function At(){We=ze.current.duration,We<=20&&(Pe=We/3),ze.current.addEventListener("play",$t)}function Gt(Vn){Vn.preventDefault(),(0,te.vp)()?(ze.current.style.width="100%",ze.current.style.height="100%"):ze.current.style.cssText=""}function on(){be()}function vn(Vn){if(!le){ie.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const ir=Vn.target.dataset.seek?Vn.target.dataset.seek:Vn.target.value;ze.current.currentTime=ir,Ke.current.value=ir,Ue.current.value=ir}function Nn(Vn){const ir=Math.round(Vn.offsetX/Vn.target.clientWidth*parseInt(Vn.target.getAttribute("max"),10));Ue.current.setAttribute("data-seek",ir);const Mn=b(ir);Xe.current.textContent=`${Mn.hour>0?Mn.hour+":":""}${Mn.minutes}:${Mn.seconds}`;const qn=ze.current.getBoundingClientRect();Xe.current.style.left=`${Vn.pageX-qn.left}px`}function Yn(Vn){switch(Vn.code){case"Space":Vn.preventDefault(),ft();break;case"ArrowRight":if(Vn.preventDefault(),!le){ie.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(ze.current.currentTime>=ze.current.duration)break;ze.current.currentTime=parseInt(ze.current.currentTime)+5,en();break;case"ArrowLeft":if(Vn.preventDefault(),!le){ie.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(ze.current.currentTime===0)break;ze.current.currentTime=parseInt(ze.current.currentTime)-5,en();break;case"ArrowUp":Vn.preventDefault(),ze.current.volume<1&&(ze.current.volume=(parseInt(ze.current.volume*10)+1)/10);break;case"ArrowDown":Vn.preventDefault(),ze.current.volume>0&&(ze.current.volume=(parseInt(ze.current.volume*10)-1)/10);break}}return $e.current.addEventListener((0,te.gH)(),Gt),ze.current.addEventListener("canplay",At),ze.current.addEventListener("ended",It),ze.current.addEventListener("seeking",An),ze.current.addEventListener("seeked",wn),ze.current.addEventListener("loadedmetadata",cn),Ue.current.addEventListener("mousemove",Nn),Ue.current.addEventListener("input",vn),ze.current.addEventListener("timeupdate",Sn),ze.current.addEventListener("pause",on),ze.current.addEventListener("volumechange",tt),document.addEventListener("keydown",Yn),()=>{var Vn,ir,Mn,qn,En,Hn,Qn,dr,On,$n,Kn,yn;(Vn=ze.current)==null||Vn.removeEventListener("canplay",At),(ir=ze.current)==null||ir.removeEventListener("play",$t),(Mn=ze.current)==null||Mn.removeEventListener("ended",It),(qn=ze.current)==null||qn.removeEventListener("seeking",An),(En=ze.current)==null||En.removeEventListener("seeked",wn),(Hn=Ue.current)==null||Hn.removeEventListener("mousemove",Nn),(Qn=Ue.current)==null||Qn.removeEventListener("input",vn),(dr=ze.current)==null||dr.removeEventListener("timeupdate",Sn),(On=ze.current)==null||On.removeEventListener("pause",on),($n=ze.current)==null||$n.removeEventListener("loadedmetadata",cn),(Kn=ze.current)==null||Kn.removeEventListener("volumechange",tt),document.removeEventListener("keydown",Yn),(yn=ze.current)!=null&&yn.playing&&(ke.push(xe,ze.current.currentTime),Se&&Me())}},[ze,ve]),(0,y.useEffect)(()=>{if(ze.current.onended=()=>{Ae(ze)},ze.current.oncontextmenu=()=>!1,(ve==null?void 0:ve.indexOf(".m3u8"))>-1){if(ze.current.canPlayType("application/vnd.apple.mpegurl"))ze.current.src=ve;else if(ue.ZP.isSupported()){var Bt=new ue.ZP;Bt.loadSource(ve),Bt.attachMedia(ze.current)}}},[ve]);const[ot,st]=(0,y.useState)(1),ft=()=>{ze.current.paused||ze.current.ended?ze.current.play():ze.current.pause(),Oe()};function Ft(){ze.current.muted=!ze.current.muted,ze.current.muted?(pt.current.setAttribute("data-volume",volume.value),pt.current.value=0):pt.current.value=pt.current.dataset.volume}return y.createElement("div",{style:{position:"relative"},ref:$e},y.createElement("div",{ref:Qe,className:`${ne.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${ne.animate__loop}`},Fe&>?gt.login:" "),y.createElement("div",{className:ne.container},y.createElement("div",{className:ne["video-container"],id:"video-container"},y.createElement("div",{className:ne["playback-animation"],id:"playback-animation"},y.createElement("svg",{className:ne["playback-icons"]},y.createElement("use",{className:"hidden",href:"#play-icon"}),y.createElement("use",{href:"#pause"}))),y.createElement("video",{className:ne.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:ze,autoPlay:De}),y.createElement("div",{className:`${ne["video-controls"]} `,id:"video-controls"},y.createElement("div",{className:ne["bottom-controls"]},y.createElement("div",{className:ne["left-controls"]},y.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:ft},y.createElement("svg",{className:ne["playback-icons"]},y.createElement("use",{ref:Ge,href:"#play-icon"}),y.createElement("use",{ref:ht,style:{display:"none"},href:"#pause"}))),y.createElement("div",{className:ne.time},y.createElement("time",{id:"time-elapsed",ref:rt},"00:00"),y.createElement("span",null," / "),y.createElement("time",{id:"duration",ref:et},"00:00"))),y.createElement("div",{className:ne["right-controls"]},le&&y.createElement(fe.Z,{placement:"top",overlayClassName:ne.rateOverlay,getPopupContainer:Bt=>Bt.parentNode,menu:{items:[{key:"1",label:y.createElement("span",{onClick:()=>{st(1),ze.current.playbackRate=1}},"1.0x")},{key:"2",label:y.createElement("span",{onClick:()=>{st(1.5),ze.current.playbackRate=1.5}},"1.5x")},{key:"3",label:y.createElement("span",{onClick:()=>{st(2),ze.current.playbackRate=2}},"2.0x")}]}},y.createElement("div",{className:`${ne.controlText} mr5`},"\u500D\u901F")),y.createElement(se.CopyToClipboard,{text:ve,onCopy:()=>ie.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},y.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),y.createElement("div",{className:ne["volume-controls"]},y.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:ne["volume-button"],id:"volume-button",onClick:Ft},y.createElement("i",{ref:ut,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),y.createElement("i",{ref:kt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),y.createElement("i",{ref:lt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),y.createElement("input",{className:ne.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:pt,style:{display:"none"},onClick:tt})),y.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:ne["fullscreen-button"],onClick:()=>{(0,te.vp)()?(0,te.BU)():(0,te.Dj)($e.current)}},y.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),y.createElement("div",{className:ne["video-progress"]},y.createElement("progress",{ref:Ke,value:"0",min:"0"}),y.createElement("input",{className:ne.seek,ref:Ue,value:"0",min:"0",type:"range",step:"1"}),y.createElement("div",{className:ne["seek-tooltip"],ref:Xe,id:"seek-tooltip"},"00:00"))))),y.createElement("svg",{style:{display:"none"}},y.createElement("defs",null,y.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},y.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),y.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},y.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),y.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},y.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),y.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},y.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),y.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},y.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),y.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},y.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),y.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},y.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),y.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},y.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},30214:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return de}});var y=oe(59301),ie=oe(77254),fe=oe(75786),de=()=>{const[ue,ae]=(0,y.useState)(""),[se,te]=(0,y.useState)(0);let[ne,x]=(0,y.useState)(),[b,ee]=(0,y.useState)();const[E,re]=(0,y.useState)(!1),ce=(0,y.useRef)("");(0,y.useEffect)(()=>ie.Z.subscribe("preview-image",De=>{ae(De),console.log(be.current)}),[]),(0,y.useEffect)(()=>(document.addEventListener("keydown",le),()=>{document.removeEventListener("keydown",le)}),[]),(0,y.useEffect)(()=>{ce.current=ue},[ue]);function le(Ae){console.log("e====",Ae),Ae.keyCode==27&&ce.current&&ve()}function ve(){document.body.style.overflow="auto",x(void 0),ee(void 0),te(0),ae("")}function Se(){te(se+90)}function ge(){ne=be.current.width*1.1,b=be.current.height*1.1,ee(b),x(ne)}function _e(){ne=be.current.width/1.1,b=be.current.height/1.1,ee(b),x(ne)}const Ce=(0,y.useRef)(),he=(0,y.useRef)(),be=(0,y.useRef)(),Ee=Ae=>{(Ae.nativeEvent.target===Ce.current||Ae.nativeEvent.target===he.current)&&ve()};return y.createElement(y.Fragment,null,ue?y.createElement("div",null,y.createElement("div",{className:"preview-wrp-group",ref:he},y.createElement(fe.Z,{className:"image-preview",src:ue,style:{display:"none"},preview:{visible:!0,src:ue,onVisibleChange:Ae=>{ae("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},85533:function(rn,Tt,oe){"use strict";oe.d(Tt,{h:function(){return Ce}});var y=oe(59301),ie=oe(82326),fe=oe(28284),de=oe(7939),ue=oe(89780),ae=oe.n(ue),se=oe(45559),te=oe(42313),ne=Object.defineProperty,x=Object.defineProperties,b=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ce=(he,be,Ee)=>be in he?ne(he,be,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):he[be]=Ee,le=(he,be)=>{for(var Ee in be||(be={}))E.call(be,Ee)&&ce(he,Ee,be[Ee]);if(ee)for(var Ee of ee(be))re.call(be,Ee)&&ce(he,Ee,be[Ee]);return he},ve=(he,be)=>x(he,b(be));const Se=ie.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},_e={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Tt.Z=({callback:he,onCancel:be})=>{const[Ee,Ae]=(0,y.useState)("python");function De(Fe){Ae(_e[Fe][1])}function je(Fe){he(Fe)}return y.createElement(fe.default,ve(le({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:je,style:{width:500}}),y.createElement(fe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},y.createElement(ie.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:De},Object.keys(_e).map(Fe=>y.createElement(Se,{key:Fe,value:Fe},_e[Fe][0])))),y.createElement(fe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},y.createElement(Ce,{mode:Ee})),y.createElement("div",{className:"flex-container flex-end"},y.createElement(de.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(de.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))};function Ce({value:he,onChange:be,mode:Ee,options:Ae={}}){const De=(0,y.useRef)(),[je,Fe]=(0,y.useState)();return(0,y.useEffect)(()=>{if(je){let Re=function(qe){const Je=qe.getValue();be&&be(Je)};return je.on("change",Re),()=>{je.off("change",Re)}}},[je,be]),(0,y.useEffect)(()=>{je&&je.setOption("mode",Ee)},[je,Ee]),(0,y.useEffect)(()=>{je&&(he!==je.getValue()||he==="")&&setTimeout(()=>{je.setValue(he||"")},300)},[je,he]),(0,y.useEffect)(()=>{if(De.current&&!je){const Re=ae().fromTextArea(De.current,le({mode:Ee,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Fe(Re)}},[De.current,je]),y.createElement("div",{className:"my-codemirror-container"},y.createElement("textarea",{ref:De}))}},25374:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return dr}});var y=oe(59301),ie=oe(65582),fe=oe(89780),de=oe.n(fe),ue=oe(76374),ae=oe(45559),se=oe(6313),te=oe(25717),ne=oe(99498),x=oe(25419),b=oe(67549),ee=oe(95097),E=({value:On="",className:$n,showTextOnly:Kn,showLines:yn,style:Ne={}})=>{const Ve=(0,y.useMemo)(()=>"",[On]);return y.createElement(y.Fragment,null,y.createElement("div",{dangerouslySetInnerHTML:{__html:Ve}}))},re=Object.defineProperty,ce=Object.defineProperties,le=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,_e=(On,$n,Kn)=>$n in On?re(On,$n,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):On[$n]=Kn,Ce=(On,$n)=>{for(var Kn in $n||($n={}))Se.call($n,Kn)&&_e(On,Kn,$n[Kn]);if(ve)for(var Kn of ve($n))ge.call($n,Kn)&&_e(On,Kn,$n[Kn]);return On},he=(On,$n)=>ce(On,le($n));let be=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ee({onActionCallback:On,title:$n,icon:Kn,actionName:yn,className:Ne="",children:Ve}){function nt(){On(yn)}return y.createElement("a",{title:$n,className:Ne,onClick:nt},y.createElement("i",{className:`${Kn}`}),Ve)}var Ae=({watch:On,showNullButton:$n,showNullProgramButton:Kn,onActionCallback:yn,fullScreen:Ne,insertTemp:Ve,hidetoolBar:nt,extraUse:mt})=>{const _t=[...be,{title:`${On?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${On?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return y.createElement("ul",{className:"markdown-toolbar-container"},!nt&&_t.map((Vt,Jt)=>y.createElement("li",{key:Jt},Vt.actionName?y.createElement(Ee,he(Ce({},Vt),{onActionCallback:yn})):y.createElement("span",{className:"v-line"}))),$n?y.createElement("li",null,y.createElement(Ee,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:yn},y.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Kn?y.createElement(y.Fragment,null,y.createElement("li",null,y.createElement(Ee,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:yn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),y.createElement("li",null,y.createElement(Ee,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:yn},y.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Ve&&y.createElement("li",null,y.createElement(Ee,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ve}`,onActionCallback:yn},y.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),mt&&y.createElement("li",null,mt),y.createElement("li",{className:"btn-full-screen"},y.createElement(Ee,{icon:`${Ne?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ne?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:yn})))},De=oe(57261),je=oe(28284),Fe=oe(37568),Re=oe(7939),qe=Object.defineProperty,Je=Object.defineProperties,He=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,ht=(On,$n,Kn)=>$n in On?qe(On,$n,{enumerable:!0,configurable:!0,writable:!0,value:Kn}):On[$n]=Kn,Ge=(On,$n)=>{for(var Kn in $n||($n={}))Qe.call($n,Kn)&&ht(On,Kn,$n[Kn]);if(ze)for(var Kn of ze($n))$e.call($n,Kn)&&ht(On,Kn,$n[Kn]);return On},Ue=(On,$n)=>Je(On,He($n));const Ke={labelCol:{span:4},wrapperCol:{span:20}};var et=({callback:On,onCancel:$n})=>{function Kn(yn){On(yn)}return y.createElement(je.default,Ue(Ge({},Ke),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Kn,style:{width:500}}),y.createElement(je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},y.createElement(Fe.default,null)),y.createElement(je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},y.createElement(Fe.default,null)),y.createElement("div",{className:"flex-container flex-end"},y.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(Re.ZP,{type:"ghost",onClick:$n},"\u53D6\u6D88")))},rt=oe(85533),Xe=oe(45053),ut=oe(62957),lt=oe(77019),kt=oe(16750),pt=oe(59301),Mt=({callback:On,onCancel:$n})=>{const Kn=document.createElement("canvas"),yn=Kn.getContext("2d");Kn.width=1e3,Kn.height=800,yn.fillStyle="#ffffff",yn.fillRect(0,0,Kn.width,Kn.height);const Ne=Kn.toDataURL("image/png");return pt.createElement(ut.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},pt.createElement(lt.Z,{style:{height:"100vh"}},pt.createElement(kt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ne,visible:!0,title:String(Date.now())},onOk:Ve=>{On({src:Ve.url})},onClose:$n})))},wt=oe(36207),bt=oe(5269),gt=oe(6767),We={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},Ie=oe(59301),Be=(0,y.forwardRef)(({onCancel:On,editImgId:$n,callback:Kn},yn)=>{let Ne=(0,y.useRef)(),Ve=(0,y.useRef)(),nt=(0,y.useRef)(),mt=(0,y.useRef)(!1);const _t=(0,y.useRef)(!1);console.log("ref:",yn);const[Vt,Jt]=(0,y.useState)(0),[Xt,dn]=(0,y.useState)("100vh");return(0,y.useEffect)(()=>{Jt(1)},[]),(0,y.useImperativeHandle)(yn,()=>({setHeight:dn})),Ie.createElement("div",{ref:_t,className:"body-overflow-initial"},Ie.createElement(wt.Z,{width:"100vw",height:Xt,footer:null,closable:!0,placement:"bottom",open:!!Vt,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${We.drawerWrap}`,onClose:()=>{window.saveDrawData(jn=>{Kn({src:`/api/attachments/${jn}`,id:jn})})},title:Ie.createElement(lt.Z,{align:"middle"},Ie.createElement(bt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ie.createElement(bt.Z,{onClick:()=>{dn(Xt==="60px"?"100vh":"60px")}},Ie.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),Ie.createElement(bt.Z,{onClick:()=>{window.saveDrawData(jn=>{if(jn===null){gt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}gt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Kn({src:`/api/attachments/${jn}`,id:jn,disabledClose:!0})})}},Ie.createElement(Re.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},Ie.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${$n||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Ve})))}),Ye=oe(74128),Pe=oe(47889),Le=oe(4875);const pe=Pe.ZP.Group,we={margin:"0 8px"};var ke=({callback:On,onCancel:$n})=>{function Kn(yn){On(yn)}return y.createElement(je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Kn},y.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},y.createElement("span",{style:we},"\u5355\u5143\u683C\u6570\uFF1A"),y.createElement("span",{style:we},"\u884C\u6570"),y.createElement(je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},y.createElement(Le.Z,null)),y.createElement("span",{style:we},"\u5217\u6570"),y.createElement(je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},y.createElement(Le.Z,null))),y.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},y.createElement("span",{style:we},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),y.createElement(je.default.Item,{name:"align"},y.createElement(pe,null,y.createElement(Pe.ZP,{value:"default"},y.createElement("i",{className:"fa fa-align-justify"})),y.createElement(Pe.ZP,{value:"left"},y.createElement("i",{className:"fa fa-align-left"})),y.createElement(Pe.ZP,{value:"center"},y.createElement("i",{className:"fa fa-align-center"})),y.createElement(Pe.ZP,{value:"right"},y.createElement("i",{className:"fa fa-align-right"}))))),y.createElement("div",{className:"flex-container flex-end"},y.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),y.createElement(Re.ZP,{type:"ghost",onClick:$n},"\u53D6\u6D88")))},Me=oe(58755),Oe=oe(93510),tt=oe.n(Oe),st=(0,y.forwardRef)(({use3d:On,width:$n,height:Kn,callback:yn,showSaveButton:Ne},Ve)=>{const nt=(0,y.useRef)(),mt=(0,y.useRef)(),[_t,Vt]=(0,y.useState)(!1),Jt=(0,y.useRef)({id:nt,appName:"graphing",width:$n||1e3,height:Kn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,y.useEffect)(()=>{mt.current=new(tt())(Jt.current,!0),window.onload=function(){mt.current.inject("applet_container")}},[]);const Xt=()=>{var dn=window.ggbApplet.getPNGBase64(1,!0,72);return yn&&yn(dn),dn};return(0,y.useEffect)(()=>{Jt.current.appName=_t?"3D":"graphing",mt.current.inject("applet_container")},[_t]),(0,y.useEffect)(()=>{Vt(On)},[On]),(0,y.useImperativeHandle)(Ve,()=>({getImgData:Xt})),y.createElement(y.Fragment,null,y.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:nt}),y.createElement(lt.Z,{align:"middle"},y.createElement(bt.Z,{flex:1},y.createElement(Me.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:_t,onChange:dn=>Vt(dn)})),y.createElement(bt.Z,null,y.createElement(Re.ZP,{size:"large",onClick:Xt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ft=oe(99298);const Ft="link",Bt="upload-image",qt="add-flowchart",$t="draw-image",It="add-flowchart",en="code-block",Pt="add-table",cn="------------",Sn={default:cn,left:`:${cn}`,center:`:${cn}:`,right:`${cn}:`};var An=oe(31103),wn=oe(65862);function At(){}let Gt=0;const on=1e4,vn="\u2581",Nn="@\u2581\u2581@",Yn="@\u2581@",Vn=`
|
|
|
**\u6A21\u677F\u6807\u9898**
|
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,ir=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Mn(On){return/^\d+$/.test(On)?`${On}px`:On}const En=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Hn={[En+"-B"]:"bold",[En+"-I"]:"italic"},Qn={[Ft]:"\u6DFB\u52A0\u94FE\u63A5",[en]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Bt]:"\u6DFB\u52A0\u56FE\u7247",[$t]:"\u6DFB\u52A0\u753B\u56FE",[qt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Pt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var dr=({defaultValue:On="",onChange:$n,width:Kn="100%",height:yn=400,miniToolbar:Ne=!1,isFocus:Ve=!1,watch:nt,insertTemp:mt,mode:_t="markdown",id:Vt="markdown-editor-id",showResizeBar:Jt=!1,noStorage:Xt=!1,showNullButton:dn=!1,showNullProgramButton:jn=!1,hidetoolBar:vr=!1,fullScreen:Nt=!1,onBlur:jt,onCMBeforeChange:xt,onFullScreen:Ot,className:yt="",disablePaste:Lt=!1,disabled:Ut=!1,disabledFill:bn=!1,placeholder:Tn="",values:Gn="",extraUse:pn,onAddBlank:tn})=>{const[ln,Rn]=(0,y.useState)(null),[nr,rr]=(0,y.useState)(On),[fr,ti]=(0,y.useState)(nt),[fn,Kt]=(0,y.useState)(Nt),[gn,xn]=(0,y.useState)(""),[Ln,Un]=(0,y.useState)(0),[hr,ar]=(0,y.useState)(yn),[Sr,Cr]=(0,y.useState)(!1),[yr,pr]=(0,y.useState)(0),[$r,kr]=(0,y.useState)(0),Nr=(0,y.useRef)(),Yr=(0,y.useRef)(),ai=(0,y.useRef)(),Rr=(0,y.useRef)(),ii=(0,y.useRef)(),Dr=(0,y.useRef)(),fi=(0,ie.useDispatch)();(0,y.useEffect)(()=>{const Wn=window.scrollY||window.pageYOffset;rr(Gn),ln==null||ln.setValue(Gn),window.scrollTo(0,Wn)},[Gn]),(0,y.useEffect)(()=>{Ot==null||Ot(fn)},[fn]),(0,y.useEffect)(()=>{if(Nr.current){let Wn=function(gr,br){var ui;if(Lt){br.preventDefault();return}const Ri=br.clipboardData;if(Ri){const gi=Ri.types.toString(),Hi=Ri.items;if(gi==="Files"||Ri.types.indexOf("Files")>-1){if(br.preventDefault(),_t=="stex")return;try{let Oi=Hi[1];((ui=Hi[0])==null?void 0:ui.kind)==="file"&&(Oi=Hi[0]);const Pi=Oi.getAsFile(),ki=Pi.name.split(".").pop();(0,Xe.I)(Pi,Fi=>{var Ni,qi,So;Fi.id?((Ni=Pi==null?void 0:Pi.type)==null?void 0:Ni.indexOf("image"))>-1?Jn.replaceSelection(`<img width="100%" src="/api/attachments/${Fi.id}?type=${Fi.content_type})" alt="" />`):((qi=Pi==null?void 0:Pi.type)==null?void 0:qi.indexOf("video"))>-1?Jn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Fi.id}"></video>`):((So=Pi==null?void 0:Pi.type)==null?void 0:So.indexOf("pdf"))>-1?Jn.replaceSelection(`<a href="/api/attachments/${Fi.id}?type=${Pi.type}&disposition=inline" target="_blank">${Pi.name}</a>`):ir.includes(ki)?Jn.replaceSelection(`<a href="/api/attachments/${Fi.id}?type=office&disposition=inline" target="_blank">${Pi.name}</a>`):Jn.replaceSelection(`[${Pi.name}](/api/attachments/${Fi.id}?type=${Fi.content_type})`):(Fi==null?void 0:Fi.status)===401&&(document.location.href="/user/login")})}catch(Oi){gt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Jn=de().fromTextArea(Nr.current,{mode:_t,lineNumbers:!Ne,lineWrapping:!0,value:On,autoCloseTags:!0,autoCloseBrackets:!0});return Jn.on("keyup",function(gr,br){br.keyCode===8&&(gr.getValue()==""?Jn.setOption("placeholder",Tn):Jn.setOption("placeholder",null))}),Jn.on("keydown",function(gr,br){if(br.keyCode===8){var ui=wi(gr);ui&&br.preventDefault()}}),Ve&&Jn.focus(),Jn.on("paste",Wn),Ut&&Jn.on("beforeChange",function(gr,br){(br.origin==="paste"||br.origin==="+input")&&br.cancel()}),Rn(Jn),()=>{Jn.off("paste",Wn)}}},[]);const Lr=(0,y.useCallback)(()=>{if(Yr.current)try{}catch(Wn){console.log(Wn,"---- to set md editor body height")}},[hr,Yr,fn]);(0,y.useEffect)(()=>{function Wn(){let Jn=new ue.Z(gr=>{for(let br of gr)(br.target.offsetHeight>0||br.target.offsetWidth>0)&&(Lr(),ln.setSize("100%","100%"),ln.refresh())});return Jn.observe(Nr.current.parentElement),Jn}if(ln){const Jn=Wn();return()=>{var gr,br;(gr=Nr.current)!=null&&gr.parentElement&&Jn.unobserve((br=Nr.current)==null?void 0:br.parentElement)}}},[ln,Lr]),(0,y.useEffect)(()=>{if(ln){let Wn=[];for(const[Jn,gr]of Object.entries(Hn)){let br={[Jn]:()=>{Jr(gr)}};Wn.push(br),ln.addKeyMap(br)}return()=>{for(let Jn of Wn)ln.removeKeyMap(Jn)}}},[ln]),(0,y.useEffect)(()=>{Nt!==fn&&Kt(Nt)},[Nt]),(0,An.Z)(()=>{if(!Xt&&Ln>0){let Wn=new Date().getTime(),Jn=window.sessionStorage.getItem(Vt);Wn>=Ln+on&&(!Jn||Jn!==nr)&&(window.sessionStorage.setItem(Vt,nr),Cr(!0))}},on),(0,y.useEffect)(()=>{ti(nt)},[ln,nt]),(0,y.useEffect)(()=>{ln&&Ve&&ln.focus()},[ln,Ve]),(0,y.useEffect)(()=>{if(fr&&ln){let Wn=function(gr){let br=gr.target;if(Rr.current){let ui=br.scrollTop/br.scrollHeight;Rr.current.scrollTop=Rr.current.scrollHeight*ui}};const Jn=ln.getScrollerElement();return Jn.addEventListener("scroll",Wn),()=>{Jn.removeEventListener("scroll",Wn)}}},[ln,fr]),(0,y.useEffect)(()=>{if(ln&&xt){let Wn=function(Jn,gr){xt(Jn,gr)};return ln.on("beforeChange",Wn),()=>{ln.off("beforeChange",Wn)}}},[ln,xt]),(0,y.useEffect)(()=>{if(ln&&jt){let Wn=function(){jt(ln.getValue())};return ln.on("blur",Wn),()=>{ln.off("blur",Wn)}}},[ln,jt]);function wi(Wn,Jn){var gr=Wn.getDoc(),br=gr.getCursor(),ui=gr.getLine(br.line),Ri=ui.charAt(br.ch-1),gi=ui.lastIndexOf("@\u2581@",br.ch),Hi=ui.lastIndexOf("@\u2581\u2581@",br.ch),Oi=gi>Hi?gi:Hi,Pi=gi>Hi?3:4;if(Nn.indexOf(Ri)===-1)return null;if(console.log("change1:",Jn,Wn,ui,br,Oi,gi,Hi,Ri),Oi>=0&&br.ch-Oi<5){var ki=Oi+Pi;return gr.replaceRange("",{line:br.line,ch:Oi},{line:br.line,ch:ki}),{line:br.line,ch:ki}}return null}(0,y.useEffect)(()=>{if(ln){let Wn=function(Jn,gr){const br=Jn.getValue();rr(br),Un(new Date().getTime()),Jn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$n&&(jn?$n(br,Xn(br)):$n(br))};return ln.on("change",Wn),()=>{ln.off("change",Wn)}}},[ln,$n]),(0,y.useEffect)(()=>{if(ln)if(On==null)ln.setValue(""),rr("");else{const Wn=window.scrollY||window.pageYOffset;On!==ln.getValue()&&(ln.setValue(On),rr(On),ln.setCursor(Ut?1:ln.lineCount(),0),window.scrollTo(0,Wn))}},[ln,On]);const Jr=(0,y.useCallback)(Wn=>{const Jn=ln.getCursor(),gr=ln.getSelection();let br=gr.split(`
|
|
|
`);switch(Wn){case"bold":return ln.replaceSelection("**"+gr+"**"),gr===""&&ln.setCursor(Jn.line,Jn.ch+2),ln.focus();case"italic":return ln.replaceSelection("*"+gr+"*"),gr===""&&ln.setCursor(Jn.line,Jn.ch+1),ln.focus();case"code":return ln.replaceSelection("`"+gr+"`"),gr===""&&ln.setCursor(Jn.line,Jn.ch+1),ln.focus();case"inline-latex":return(0,wn.Ye)(fi)?void 0:(xn("inline-latex"),ln.focus());case"latex":return ln.replaceSelection("```latex\n"+gr+"\n```"),ln.setCursor(Jn.line+1,gr.length+1),ln.focus();case"line-break":return ln.replaceSelection(`<br/>
|
|
|
`),ln.focus();case"list-ul":return gr===""?ln.replaceSelection("- "+gr):ln.replaceSelection(br.map(ui=>ui===""?"":`- ${ui}`).join(`
|
|
|
`)),ln.focus();case"list-ol":return gr===""?ln.replaceSelection("1. "+gr):ln.replaceSelection(br.map((ui,Ri)=>ui===""?"":`${Ri+1}. ${ui}`).join(`
|
|
|
`)),ln.focus();case"add-null-ch":tn==null||tn();return;case"add-signal":return gr===""&&ln.setCursor(Jn.line,Jn.ch),ln.replaceSelection(Yn),ln.focus();case"add-multiple":return gr===""&&ln.setCursor(Jn.line,Jn.ch),ln.replaceSelection(Nn),ln.focus();case"inster-template-1":return gr===""&&ln.setCursor(Jn.line,Jn.ch),ln.replaceSelection(Vn),ln.focus();case"eraser":return ln.setValue(""),ln.focus();case"trigger-watch":return ti(!fr),ln.focus();case"trigger-full-screen":return Kt(!fn),ln.focus();case Ft:xn(Ft);return;case en:xn(en);return;case Bt:xn(Bt);return;case $t:xn($t);return;case"maths-latex":if((0,wn.Ye)(fi))return;xn("maths-latex");return;case qt:ii.current="",sessionStorage.removeItem("file_id"),xn(qt);return;case Pt:xn(Pt);return;default:throw new Error}},[ln,fr,fn]),Zr=(0,y.useCallback)((Wn,Jn)=>{var gr,br,ui,Ri,gi,Hi;Wn!=null&&Wn.disabledClose||xn("");const{src:Oi,alt:Pi,id:ki}=Wn||{};switch(gn){case Ft:const{title:xo,link:eo}=Wn;return ln.replaceSelection(`[${xo}](${eo})`),ln.focus();case en:const{language:Yi,content:oi}=Wn;return ln.replaceSelection(["```"+Yi,oi,"```"].join(`
|
|
|
`)),ln.focus();case"maths-latex":for(var Fi=atob(Wn),Ni=new Uint8Array(Fi.length),qi=0;qi<Fi.length;qi++)Ni[qi]=Fi.charCodeAt(qi);var So=new Blob([Ni],{type:"image/png"});(0,Xe.I)(So,Ko=>{Ko.id?ln.replaceSelection(``):(Ko==null?void 0:Ko.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,wn.Ye)(fi))return;ln.replaceSelection("`$$"+Wn+"$$`");break;case It:if(!ki)return;ln.getValue().indexOf(Oi)===-1?ln.replaceSelection(`<center><img id="${ki}" width="80%" src="${Oi}" class="draw-flowchart" alt="${Pi||""}" /></center>`):document.getElementById(ki).src=Ye.Z.API_SERVER+Oi+"?t="+Date.now();break;case Bt:case $t:const Xr=Jn,$i=(ui=(br=(gr=Xr==null?void 0:Xr.name)==null?void 0:gr.split("."))==null?void 0:br.pop)==null?void 0:ui.call(br);return((Ri=Xr==null?void 0:Xr.type)==null?void 0:Ri.indexOf("image"))>-1||!(Xr!=null&&Xr.type)?Xr!=null&&Xr.align||Xr!=null&&Xr.width?ln.replaceSelection(`<p style="text-align:${Xr.align||"initial"}"><img width="${Xr.width?Xr.width+"%":"initial"}" src="${Oi}" alt="${Pi||""}" /></p>`):ln.replaceSelection(`<img width="100%" src="${Oi}" alt="${Pi||""}" />`):((gi=Xr==null?void 0:Xr.type)==null?void 0:gi.indexOf("video"))>-1?ln.replaceSelection(`<video width="100%" controls src="${Oi}"></video>`):((Hi=Xr==null?void 0:Xr.type)==null?void 0:Hi.indexOf("pdf"))>-1?ln.replaceSelection(`<a href="${Oi}?type=${Xr.type}&disposition=inline" target="_blank">${Xr.name}</a>`):ir.includes($i)?ln.replaceSelection(`<a href="${Oi}?type=office&disposition=inline" target="_blank">${Xr.name}</a>`):ln.replaceSelection(`[${Xr.name}](${Oi})`),ln.focus();case Pt:const{row:ro,col:ao,align:la}=Wn;let Vo=`
|
|
|
`;for(let Ko=0;Ko<ro;Ko++){let ha=[],wo=[];for(let Zo=0;Zo<ao;Zo++)Ko===1&&wo.push(Sn[la]),ha.push(" ");Ko===1&&(Vo+=`| ${wo.join(" | ")} |
|
|
|
`),Vo+=`| ${ha.join(ao===1?"":" | ")} |
|
|
|
`}return ln.replaceSelection(Vo+`
|
|
|
`),ln.focus();default:throw new Error}},[ln,gn]),si=(0,y.useMemo)(()=>{switch(gn){case Ft:return y.createElement(et,{callback:Zr,onCancel:vi});case en:return y.createElement(rt.Z,{callback:Zr,onCancel:vi});case Bt:return y.createElement(Xe.Z,{callback:Zr,onCancel:vi});case qt:return y.createElement(Be,{editImgId:ii.current,callback:Zr,onCancel:vi});case Pt:return y.createElement(ke,{callback:Zr,onCancel:vi});case"maths-latex":return y.createElement(st,{showSaveButton:!0,callback:Zr});case"inline-latex":return y.createElement(ft.Z,{showSaveButton:!0,callback:Zr});default:return null}},[gn]);function vi(){xn("")}(0,y.useEffect)(()=>{if(ai.current){let Wn=function(gi){ui=!0,Ri=gi.pageY},Jn=function(){ui=!1},gr=function(gi){if(ui){let Hi=gi.pageY-Ri;Hi<0&&(Hi=0),Hi>300&&(Hi=300);let Oi=yn+Hi+"px";ar(Oi)}},br=ai.current,ui=!1,Ri=0;return br.addEventListener("mousedown",Wn),document.addEventListener("mousemove",gr),document.addEventListener("mouseup",Jn),()=>{br.removeEventListener("mousedown",Wn),document.removeEventListener("mousemove",gr),document.removeEventListener("mouseup",Jn)}}},[ln,ai]),(0,y.useEffect)(()=>{ar(yn)},[yn]);const pi=Mn(Kn),ri=Mn(hr),Er={width:pi,height:ri},kn=(0,y.useMemo)(()=>{if(Ln){let Wn=new Date(Ln),Jn=Wn.getHours(),gr=Wn.getMinutes(),br=Wn.getSeconds();return Jn=Jn<10?"0"+Jn:Jn,gr=gr<10?"0"+gr:gr,br=br<10?"0"+br:br,`${Jn}:${gr}:${br}`}return 0},[Ln]),Xn=Wn=>{const Jn=[];if(jn){let gr=-1;Wn=Wn.replace(/(@▁▁@|@▁@)/g,function(br,ui,Ri){Jn.push({multiLine:br!==Yn})})}return Jn};function er(){window.sessionStorage.removeItem(Vt),Cr(!1),Un(0)}function zn(){Cr(!1),Un(0),ln.setValue(window.sessionStorage.getItem(Vt))}(0,y.useEffect)(()=>{Qn[gn]&&gn!==$t&&gn!==qt&&setTimeout(()=>{const Wn=document.getElementsByClassName("markdown-popup-form")[0],Jn=window.innerWidth/2-Wn.offsetWidth/2,gr=window.innerHeight/2-Wn.offsetHeight/2;pr(Jn),kr(gr)},0)},[gn]);const xr=Wn=>{Wn.preventDefault();const Jn=Wn.clientX-yr,gr=Wn.clientY-$r;document.body.onmousemove=br=>{let ui=br.clientX-Jn,Ri=br.clientY-gr;const gi=document.getElementsByClassName("markdown-popup-form")[0],Hi=window.innerWidth-gi.offsetWidth,Oi=window.innerHeight-gi.offsetHeight;ui=Math.max(0,Math.min(ui,Hi)),Ri=Math.max(0,Math.min(Ri,Oi)),Br(br.clientX,br.clientY,Jn,gr)&&(pr(ui),kr(Ri))},document.body.onmouseup=function(){document.body.onmousemove=null}},Br=(Wn,Jn,gr,br)=>{const ui=document.body.clientHeight,Ri=document.body.clientWidth;return Wn<20&&gr>Wn||Wn>Ri-20&&gr<Wn||Jn<20&&br>Jn||Jn>ui-20&&br<Jn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return y.createElement(y.Fragment,null,y.createElement("div",{className:"markdown-editor-wrapper",ref:Yr},y.createElement("div",{className:`markdown-editor-container ${yt} ${fr?"on-preview":""} ${Ne?"mini":""} ${fn?"full-screen":""}`,style:Er},y.createElement(Ae,{insertTemp:mt,watch:fr,fullScreen:fn,showNullButton:dn,showNullProgramButton:jn,onActionCallback:Jr,hidetoolBar:vr,extraUse:pn}),y.createElement("div",{className:"markdown-editor-body"},y.createElement("div",{className:"codemirror-container"},y.createElement("textarea",{ref:Nr,placeholder:Tn})),fr?y.createElement("div",{ref:Rr,className:"preview-container"},_t==="stex"&&y.createElement(E,{value:nr}),_t!=="stex"&&y.createElement(ee.Z,{edit:!0,disabledFill:bn,showProgramFill:jn,value:nr,openEditor:Wn=>{var Jn;ii.current=Wn,(Jn=Dr.current)==null||Jn.setHeight("100vh"),setTimeout(()=>{xn("add-flowchart")},150)}})):null))),Jt?y.createElement("a",{ref:ai,className:"editor-resize"}):null,gn===$t&&y.createElement(Mt,{callback:Zr,onCancel:vi}),gn===qt&&y.createElement(Be,{ref:Dr,editImgId:ii.current,callback:Zr,onCancel:vi}),y.createElement(De.Z,null,Qn[gn]&&gn!==$t&&gn!==qt?y.createElement(ut.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:yr,top:$r},title:y.createElement("div",{style:{cursor:"move"},onMouseDown:xr},Qn[gn]),open:!0,onCancel:vi,footer:null,destroyOnClose:!0,width:gn===qt?"1200px":null,height:gn===qt?"80vh":null,className:"markdown-popup-form"},si):null))}},45053:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return be},I:function(){return Ae}});var y=oe(28284),ie=oe(6767),fe=oe(37568),de=oe(44104),ue=oe(4875),ae=oe(47889),se=oe(7939),te=oe(28735),ne=oe(59301),x=oe(59301),b=Object.defineProperty,ee=Object.defineProperties,E=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ve=(De,je,Fe)=>je in De?b(De,je,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):De[je]=Fe,Se=(De,je)=>{for(var Fe in je||(je={}))ce.call(je,Fe)&&ve(De,Fe,je[Fe]);if(re)for(var Fe of re(je))le.call(je,Fe)&&ve(De,Fe,je[Fe]);return De},ge=(De,je)=>ee(De,E(je));const{useForm:_e}=y.default,Ce={width:280,marginRight:10},he={labelCol:{span:5},wrapperCol:{span:19}};var be=({callback:De,onCancel:je})=>{const[Fe]=_e();let Re=(0,ne.useRef)();function qe(ze){Re.current.width=Fe.getFieldValue("width"),Re.current.align=Fe.getFieldValue("align"),De(ze,Re.current)}function Je(ze,Qe){if(ze.status===-1){ie.ZP.error(ze.message);return}Fe.setFieldsValue({src:`/api/attachments/${ze.id}`,type:Qe.type})}function He(ze){let Qe=ze.target.files[0];Re.current=Qe,Ae(Qe,Je)}return x.createElement(y.default,ge(Se({form:Fe},he),{className:"upload-image-panel",onFinish:qe,style:{width:470,overflow:"hidden"}}),x.createElement(y.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},x.createElement("div",{className:"flex-container"},x.createElement(y.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},x.createElement(fe.default,{style:Ce})),x.createElement(Ee,{onFileChange:He}))),x.createElement(y.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},x.createElement(fe.default,{style:{width:264}})),x.createElement(y.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},x.createElement(de.Z,null,x.createElement(y.default.Item,{name:"width",style:{margin:0}},x.createElement(ue.Z,{style:{width:264}})),x.createElement("span",{className:"ml8"},"%"))),x.createElement(y.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},x.createElement(ae.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),x.createElement("aside",null,x.createElement(y.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},x.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(se.ZP,{type:"default",onClick:je},"\u53D6\u6D88"))))};function Ee({onFileChange:De}){return x.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",x.createElement("input",{type:"file",onChange:De}))}function Ae(De,je){if(!De)throw new String("\u6CA1\u6709\u6587\u4EF6");let Fe=new FormData;Fe.append("editormd-image-file",De),Fe.append("file_param_name","editormd-image-file"),Fe.append("byxhr","true");var Re=new window.XMLHttpRequest;Re.withCredentials=!0,Re.addEventListener("load",function(qe){je(JSON.parse(qe.target.responseText),De)},!1),Re.addEventListener("error",function(qe){console.error(qe)},!1),Re.open("POST",`${te.KI}/api/attachments.json`),Re.send(Fe)}},57261:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return fe}});var y=oe(59301),ie=oe(4676);class fe extends y.Component{constructor(ue){super(ue);const ae=window.document;this.node=ae.createElement("div"),ae.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,ie.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50258:function(rn,Tt,oe){"use strict";oe.d(Tt,{SV:function(){return Mt},ZP:function(){return pt}});var y=oe(59301),ie=oe(76374);const fe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},de={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"]},ue={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std",content:["using namespace std"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},ae={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(`
|
|
|
`)}]},se={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 te=oe(53184),ne=oe.n(te),x=(wt,bt,gt)=>new Promise((We,Ie)=>{var xe=Pe=>{try{Ye(gt.next(Pe))}catch(Le){Ie(Le)}},Be=Pe=>{try{Ye(gt.throw(Pe))}catch(Le){Ie(Le)}},Ye=Pe=>Pe.done?We(Pe.value):Promise.resolve(Pe.value).then(xe,Be);Ye((gt=gt.apply(wt,bt)).next())});const b={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=(wt,bt,gt,We)=>{const Ie=bt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:gt.lineNumber,endColumn:gt.column});return Array.from(new Set(Ie.match(/\b\w{2,}\b/g)||[])).map(Be=>({label:Be,kind:wt.languages.CompletionItemKind.Text,insertText:Be,range:We}))},E=(wt,bt,gt,We)=>{wt.languages.registerCompletionItemProvider(bt,{provideCompletionItems(Ie,xe){const Be=Ie.getWordUntilPosition(xe),Ye={startLineNumber:xe.lineNumber,endLineNumber:xe.lineNumber,startColumn:Be.startColumn,endColumn:Be.endColumn},Pe=Ie.getLineContent(xe.lineNumber).substring(Be.startColumn-2,Be.endColumn);return{suggestions:[...ee(wt,Ie,xe,Ye),...gt.map(pe=>({label:pe,kind:wt.languages.CompletionItemKind.Keyword,documentation:pe,insertText:pe,insertTextRules:wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye})),...We.map(pe=>({label:pe.label,kind:wt.languages.CompletionItemKind.Snippet,documentation:pe.content,insertText:Pe.startsWith("#")?pe.content.replace(/#/,""):pe.content,insertTextRules:wt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ye}))]}}})};var re=wt=>{b.languages.forEach(bt=>{wt.languages.registerDocumentFormattingEditProvider(bt,{provideDocumentFormattingEdits(gt){return x(this,null,function*(){const We=ne()(gt.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:gt.getFullModelRange(),text:We}]})}})}),E(wt,"java",de.keywords,de.quickKey),E(wt,"cpp",ue.keywords,ue.quickKey),E(wt,"c",fe.keywords,[]),E(wt,"python",ae.keywords,ae.quickKey),E(wt,"scala",se.keywords,se.quickKey)};const ce="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var le=Object.defineProperty,ve=(wt,bt,gt)=>bt in wt?le(wt,bt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):wt[bt]=gt,Se=(wt,bt,gt)=>ve(wt,typeof bt!="symbol"?bt+"":bt,gt);const ge=class Uc{constructor(bt,gt,We){this.placeholder=bt,this.editor=gt,this.monaco=We,gt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Uc.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)}};Se(ge,"ID","editor.widget.placeholderHint");var Ce=ge,he=oe(96236),be=oe(6767),Ee=oe(25399),Ae=oe(89392),De=oe(77254),je=oe(56102),Fe=Object.defineProperty,Re=Object.defineProperties,qe=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Qe=(wt,bt,gt)=>bt in wt?Fe(wt,bt,{enumerable:!0,configurable:!0,writable:!0,value:gt}):wt[bt]=gt,$e=(wt,bt)=>{for(var gt in bt||(bt={}))He.call(bt,gt)&&Qe(wt,gt,bt[gt]);if(Je)for(var gt of Je(bt))ze.call(bt,gt)&&Qe(wt,gt,bt[gt]);return wt},ht=(wt,bt)=>Re(wt,qe(bt)),Ge=(wt,bt)=>{var gt={};for(var We in wt)He.call(wt,We)&&bt.indexOf(We)<0&&(gt[We]=wt[We]);if(wt!=null&&Je)for(var We of Je(wt))bt.indexOf(We)<0&&ze.call(wt,We)&&(gt[We]=wt[We]);return gt},Ue=(wt,bt,gt)=>new Promise((We,Ie)=>{var xe=Pe=>{try{Ye(gt.next(Pe))}catch(Le){Ie(Le)}},Be=Pe=>{try{Ye(gt.throw(Pe))}catch(Le){Ie(Le)}},Ye=Pe=>Pe.done?We(Pe.value):Promise.resolve(Pe.value).then(xe,Be);Ye((gt=gt.apply(wt,bt)).next())});function Ke(wt){return/^\d+$/.test(wt)?`${wt}px`:wt}function et(){}let rt=!1;const Xe={"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 ut(wt=[]){let bt=wt;if(Array.isArray(wt)){for(let gt=0;gt<wt.length;gt++){let We=Xe[wt[gt]];if(We)return We}return bt[0]}return Xe[bt]||bt}let lt=null;const kt=()=>Ue(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(wt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",wt)}});var pt=wt=>{var bt=wt,{width:gt="100%",height:We="100%",value:Ie,language:xe="javascript",style:Be={},options:Ye={},overrideServices:Pe={},theme:Le="vs-dark",onEditBlur:pe,isCopy:we=!1,onSave:ke,autoHeight:Me=!1,forbidCopy:Oe=!1,forbidCopyTips:tt,onChange:ot=et,editorDidMount:st=et,onFocus:ft=et,onBreakPoint:Ft=et,breakPointValue:Bt=[],filename:qt="educoder.txt",errorLine:$t,errorContent:It="",highlightLine:en,openBreakPoint:Pt=!1,placeholder:cn="",showMiniMap:Sn=!0}=bt,An=Ge(bt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const wn=(0,y.useRef)(),At=(0,y.useRef)({}),Gt=(0,y.useRef)(),on=(0,y.useRef)(),vn=(0,y.useRef)([]),Nn=(0,y.useRef)(!1),Yn=(0,y.useRef)(),Vn=(0,y.useRef)(),ir=(0,y.useRef)(!1),[Mn,qn]=(0,y.useState)(!1);function En(){let Xt;return wn.current&&(Xt=new ie.Z(dn=>{for(let jn of dn)(jn.target.offsetHeight>0||jn.target.offsetWidth>0)&&At.current.instance.layout()}),Xt.observe(wn.current)),Xt}function Hn(){be.ZP.warning({content:decodeURIComponent(tt||ce),key:"monaco-editor-tip"})}const Qn=()=>{let Xt=At.current.instance;if(Ie!=null&&Xt&&Mn){const dn=Xt.getModel();dn&&Ie!==dn.getValue()&&(rt=!0,dn.setValue(Ie),Xt.layout(),rt=!1)}};(0,y.useEffect)(()=>{const Xt=De.Z.subscribe("formatDocument",dn=>{var jn;let vr=At.current.instance;(jn=vr==null?void 0:vr.getAction)==null||jn.call(vr,"editor.action.formatDocument").run()});return window.updateMonacoValue=dn=>{ot(dn)},Xt},[]),(0,y.useEffect)(()=>{var Xt;let dn=At.current.instance;on.current&&clearTimeout(on.current),on.current=setTimeout(()=>{Qn()},500),Ie&&(Ie!=null&&Ie.length)&&((Xt=dn==null?void 0:dn.updateOptions)==null||Xt.call(dn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ie.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ie,Mn,At.current]),(0,y.useEffect)(()=>{if($t&&At.current&&At.current.instance){let dn=At.current.instance;dn.changeViewZones(function(jn){var vr=document.createElement("div");vr.style.padding="10px 20px",vr.style.width="calc(100% - 20px)",vr.className="my-error-line-wrp",vr.innerHTML=It,jn.addZone({afterLineNumber:$t||11,heightInLines:3,domNode:vr})});var Xt={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}};dn.addOverlayWidget(Xt),dn.revealPositionInCenter({lineNumber:20,column:1})}},[$t,At.current,Mn]);const dr=(Xt="",dn)=>{if(!Xt||Xt.trim()==="")return!0;const vr=At.current.instance.getModel().getLineTokens(dn);let Nt=!1;for(let jt=0;jt<2;jt++)vr.getStandardTokenType(jt)===1&&(Nt=!0);return Nt};(0,y.useEffect)(()=>{var Xt;const dn=(Xt=At.current)==null?void 0:Xt.instance;if(dn&&Mn&&Oe){const jn=dn.onDidBlurEditorWidget(()=>{ir.current=!1}),vr=dn.onDidFocusEditorText(()=>{ir.current=!0});return()=>{jn.dispose(),vr.dispose()}}},[At.current,Mn,Oe]),(0,y.useEffect)(()=>{var Xt;if((Xt=At.current)!=null&&Xt.instance&&Mn&&Pt){let dn=At.current.instance,jn=dn.getModel();if(!jn)return;(()=>{var pn;let tn=[],ln=[];const Rn=jn.getAllDecorations();for(let rr of Rn)rr.options.className==="highlighted-line"&&(tn.push((pn=rr==null?void 0:rr.range)==null?void 0:pn.startLineNumber),ln.push(rr==null?void 0:rr.id));if(en===tn[0])return;jn.deltaDecorations(ln,[]);const nr=jn.getLineCount();en&&en<=nr&&(dn.deltaDecorations([],[{range:new lt.Range(en,1,en,jn.getLineMaxColumn(en)),options:{isWholeLine:!0,className:"highlighted-line"}}]),dn.revealLineInCenter(en))})();const Nt=(pn=!1)=>{var tn;let ln=[],Rn=[];const nr=jn.getAllDecorations();for(let rr of nr)rr.options.linesDecorationsClassName==="breakpoints-select"&&(ln.push((tn=rr==null?void 0:rr.range)==null?void 0:tn.startLineNumber),Rn.push(rr==null?void 0:rr.id));if(pn)return{lines:ln,ids:Rn};Ft(ln)},jt=pn=>Ue(void 0,null,function*(){let tn={range:new lt.Range(pn,1,pn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield jn.deltaDecorations([],[tn]),Nt()}),xt=pn=>Ue(void 0,null,function*(){let tn=[];const ln=dn.getLineDecorations(pn);for(let Rn of ln)Rn.options.linesDecorationsClassName==="breakpoints-select"&&tn.push(Rn.id);yield jn.deltaDecorations(tn,[]),Nt()}),Ot=pn=>{let tn=dn.getLineDecorations(pn);for(let ln of tn)if(ln.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ae.isEqual)(Bt,Nt(!0).lines)){jn.deltaDecorations(Nt(!0).ids,[]);const pn=Bt.map(tn=>({range:new lt.Range(tn,1,tn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));jn.deltaDecorations([],pn)}const yt=dn.onDidChangeModelContent(pn=>{let tn=dn.getPosition();if(tn){let ln=tn.lineNumber;clearTimeout(Vn.current),Vn.current=setTimeout(()=>{dr(jn.getLineContent(ln),ln)?xt(ln):Ot(ln)?(xt(ln),jt(ln)):Nt()},100)}}),Lt=dn.onMouseDown(pn=>{var tn,ln,Rn;if(pn.target.detail&&((Rn=(ln=(tn=pn.target)==null?void 0:tn.element)==null?void 0:ln.className)!=null&&Rn.includes("line-numbers"))){let nr=pn.target.position.lineNumber;if(dr(jn.getLineContent(nr),nr))return;Ot(nr)?xt(nr):jt(nr)}}),Ut=pn=>{let tn={range:new lt.Range(pn,1,pn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};vn.current=dn.deltaDecorations(vn.current,[tn])},bn=()=>{vn.current=dn.deltaDecorations(vn.current,[])},Tn=dn.onMouseMove(pn=>{var tn,ln,Rn;if(bn(),pn.target.detail&&((Rn=(ln=(tn=pn.target)==null?void 0:tn.element)==null?void 0:ln.className)!=null&&Rn.includes("line-numbers"))){let nr=pn.target.position.lineNumber;if(dr(jn.getLineContent(nr),nr))return;Ut(nr)}}),Gn=dn.onMouseLeave(()=>{bn()});return()=>{yt.dispose(),Lt.dispose(),Tn.dispose(),Gn.dispose()}}},[At.current,Mn,Bt,en,Pt,xe]),(0,y.useEffect)(()=>{var Xt;(Xt=At.current)!=null&&Xt.instance&&Pt&&At.current.instance.setPosition({lineNumber:0,column:0})},[en]);function On(){let Xt=At.current.instance;if(Xt){const dn=Xt.getSelection(),jn=At.current.pastePos||{},vr=new lt.Range(jn.startLineNumber||dn.endLineNumber,jn.startColumn||dn.endColumn,jn.endLineNumber||dn.endLineNumber,jn.endColumn||dn.endColumn);setTimeout(()=>{Xt.executeEdits("",[{range:vr,text:""}])},300)}}function $n(Xt){(window.navigator.platform.match("Mac")?Xt.metaKey:Xt.ctrlKey)&&Xt.keyCode==83&&(Xt.preventDefault(),ke())}const Kn=()=>{if(Me&&At.current.instance){const Xt=At.current.instance.getContentHeight();Vt(Xt<We?We:Xt)}else Vt(We)};function yn(Xt){var dn=document.createEvent("MouseEvents");dn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Xt.dispatchEvent(dn)}const Ne=Xt=>{if(!ir.current)return;const{keyCode:dn,ctrlKey:jn,metaKey:vr,target:Nt,type:jt}=Xt;return(jt==="paste"||(dn===67||dn===86)&&(vr||jn))&&Nt.nodeName==="TEXTAREA"&&(Hn(),Xt.preventDefault()),!1};function Ve(Xt,dn){var jn=window.URL||window.webkitURL||window,vr=new Blob([dn]),Nt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Nt.href=jn.createObjectURL(vr),Nt.download=Xt,yn(Nt)}(0,y.useEffect)(()=>{Kn()},[Kn]),(0,y.useEffect)(()=>{wn.current&&!Mn&&Promise.all([oe.e(8909),oe.e(2460)]).then(oe.bind(oe,71448)).then(Xt=>{try{lt=Xt,At.current.instance=lt.editor.create(wn.current,{value:Ie,language:ut(xe),theme:Le,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Sn||!1}},Pe);const dn=At.current.instance;let Nt=[...he.BH._menuItems].find(yt=>yt[0]._debugName=="EditorContext")[1],jt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xt=(yt,Lt)=>{var Ut,bn;let Tn=yt._first;do Lt.includes((bn=(Ut=Tn.element)==null?void 0:Ut.command)==null?void 0:bn.id)&&yt._remove(Tn);while(Tn=Tn.next)};if(st(dn,lt),setTimeout(()=>{Kn(),At.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ve(qt||"educoder.txt",dn.getValue())}})},500),At.current.subscription=dn.onDidChangeModelContent(yt=>{Nn.current?clearTimeout(Yn.current):(Kn(),ot(dn.getValue(),yt)),Yn.current=setTimeout(()=>{Nn.current=!1},500)}),window.Monaco||re(lt,ut(xe)),Oe&&(xt(Nt,jt),wn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Ne),window.removeEventListener("paste",Ne),window.addEventListener("keydown",Ne),window.addEventListener("paste",Ne)),window.Monaco=lt,pe&&dn.onDidBlurEditorWidget(()=>{pe(dn.getValue())}),ft&&dn.onDidFocusEditorText(()=>{Oe&&kt(),ft(dn.getValue())}),Oe){kt();try{dn.onDidPaste(yt=>{const Lt=dn.getSelection(),Ut=At.current.pastePos||{},bn=new lt.Range(Ut.startLineNumber||Lt.endLineNumber,Ut.startColumn||Lt.endColumn,Ut.endLineNumber||Lt.endLineNumber,Ut.endColumn||Lt.endColumn);dn.executeEdits("",[{range:yt.range,text:""}])})}catch(yt){}}let Ot=En();return cn&&typeof cn=="string"&&new Ce(cn,dn,lt),qn(!0),()=>{const yt=At.current.instance;yt.dispose();const Lt=yt.getModel();Lt&&Lt.dispose(),At.current.subscription&&At.current.subscription.dispose(),Ot.unobserve(wn.current)}}catch(dn){}})},[]),(0,y.useEffect)(()=>{if(At.current.instance&&Mn)return document.addEventListener("keydown",$n,!1),()=>{document.removeEventListener("keydown",$n)}},[ke,Mn]),(0,y.useEffect)(()=>{let Xt=At.current.instance;if(Xt&&Mn){let dn=ut(xe);lt.editor.setModelLanguage(Xt.getModel(),dn)}},[xe,Mn]),(0,y.useEffect)(()=>{At.current.instance&&Mn&<.editor.setTheme(Le)},[Le,Mn]),(0,y.useEffect)(()=>{let Xt=At.current.instance;Gt.current=Ye,Xt&&Mn&&(Xt.updateOptions($e({},Ye)),setTimeout(()=>{Xt.getModel().updateOptions($e({},Ye))},200))},[JSON.stringify(Ye),Mn]),(0,y.useEffect)(()=>{let Xt=At.current.instance;Xt&&Mn&&Xt.layout()},[gt,We,Mn]);const[nt,mt]=(0,y.useState)(Ke(gt)),[_t,Vt]=(0,y.useState)(Ke(We)),Jt=ht($e({},Be),{width:nt,height:_t,position:"relative"});return y.createElement("div",{className:"my-monaco-editor",ref:wn,style:Jt,onFocus:()=>{Oe&&kt()}},we&&y.createElement(je.CopyToClipboard,{text:Ie,onCopy:()=>be.ZP.success("\u590D\u5236\u6210\u529F")},y.createElement(Ee.Z,{title:"\u590D\u5236\u4EE3\u7801"},y.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},y.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Mt({width:wt="100%",height:bt="100%",original:gt,modified:We,language:Ie,options:xe={}}){const Be=(0,y.useRef)(),[Ye,Pe]=(0,y.useState)(null);function Le(Me){let Oe;return Be.current&&(Oe=new ie.Z(tt=>{for(let ot of tt)(ot.target.offsetHeight>0||ot.target.offsetWidth>0)&&Me.layout()}),Oe.observe(Be.current)),Oe}(0,y.useEffect)(()=>(Be.current&&Promise.all([oe.e(8909),oe.e(9404)]).then(oe.bind(oe,2550)).then(Me=>{lt=Me;const Oe=lt.editor.createDiffEditor(Be.current,ht($e({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},xe),{wordWrap:!0}));Pe(Oe);let tt=Le(Oe);return()=>{Oe.dispose();const ot=Oe.getModel();ot&&ot.dispose(),tt.unobserve(Be.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,y.useEffect)(()=>{Ye&&Ye.setModel({original:lt.editor.createModel(gt,Ie),modified:lt.editor.createModel(We,Ie)})},[gt,We,Ie,Ye]);const pe=Ke(wt),we=Ke(bt),ke={width:pe,height:we};return y.createElement("div",{className:"my-diff-editor",ref:Be,style:ke})}},77825:function(rn,Tt,oe){"use strict";var y=oe(829),ie=oe(82326),fe=oe(58755),de=oe(59301);const ue=ie.default.Option;Tt.Z=({isTheoretical:ae,onFontSizeChange:se,cmFontSize:te,cmCodeMode:ne,autoFormat:x,onCodeModeChange:b,onTabToSpace:ee,onAutoFormat:E,formatDocument:re,className:ce="",tabToSpace:le,children:ve,code_editor:Se,challenge:ge,shixun_environment_id:_e,shixun_environments:Ce})=>{var he;const be={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Ee=(he=Ce==null?void 0:Ce.find(Ae=>Ae.shixun_environment_id===_e))==null?void 0:he.program_language;return console.log("----",Ee,Ce,_e,Se),de.createElement("div",{className:`tpi-code-setting ${ce}`},de.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),de.createElement("section",null,de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),de.createElement(ie.default,{bordered:!1,size:"small",value:ne,onChange:b},de.createElement(ue,{value:"vs"},"\u767D\u8272\u80CC\u666F"),de.createElement(ue,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ae&&de.createElement(de.Fragment,null,de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),de.createElement(ie.default,{bordered:!1,size:"small",value:te,onChange:se},de.createElement(ue,{value:12},"12px"),de.createElement(ue,{value:14},"14px"),de.createElement(ue,{value:16},"16px"),de.createElement(ue,{value:18},"18px"),de.createElement(ue,{value:20},"20px"),de.createElement(ue,{value:22},"22px"))),de.createElement("div",{className:"file-item"},de.createElement("b",null,"Tab\u8F6C\u6362"),de.createElement(fe.Z,{checked:le,onChange:ee})),de.createElement("div",{className:"file-item",onClick:re},de.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ae&&de.createElement(de.Fragment,null,de.createElement("h3",null,"\u5FEB\u6377\u952E"),de.createElement("section",null,de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),de.createElement("span",null,"Ctrl + S")),de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),de.createElement("span",null,"F1 / Alt + F1")),de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),de.createElement("span",null,"Ctrl + ]/[")),de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),de.createElement("span",null,"Ctrl + Shift + \\")),de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),de.createElement("span",null,"Home")),de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),de.createElement("span",null,"End"))),ve),!ae&&de.createElement(de.Fragment,null,de.createElement("h3",null,"\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"),de.createElement("section",null,Ee&&de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),de.createElement("span",null,Ee)),de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),de.createElement("span",null,be[ge==null?void 0:ge.difficulty])),de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),de.createElement("span",null,Se==null?void 0:Se.name)),de.createElement("div",{className:"file-item"},de.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),de.createElement("span",null,Se!=null&&Se.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},31103:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return ie}});var y=oe(59301);function ie(fe,de){const ue=(0,y.useRef)();(0,y.useEffect)(()=>{ue.current=fe}),(0,y.useEffect)(()=>{function ae(){ue.current()}if(de!==null){let se=setInterval(ae,de);return()=>clearInterval(se)}},[de])}},80443:function(rn,Tt,oe){"use strict";oe.d(Tt,{Im:function(){return je},ZP:function(){return ze},gZ:function(){return Je}});var y=oe(59301),ie=oe(37568),fe=oe(7939),de=oe(84105),ue=oe(87395),ae=oe(17124),se=oe(24334),te=oe(42678),ne=oe(95097),x=oe(65862),b=oe(51908),ee=oe(34376),E=oe(92310),re=oe.n(E),ce=oe(59301),le=Object.defineProperty,ve=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,he=(Qe,$e,ht)=>$e in Qe?le(Qe,$e,{enumerable:!0,configurable:!0,writable:!0,value:ht}):Qe[$e]=ht,be=(Qe,$e)=>{for(var ht in $e||($e={}))_e.call($e,ht)&&he(Qe,ht,$e[ht]);if(ge)for(var ht of ge($e))Ce.call($e,ht)&&he(Qe,ht,$e[ht]);return Qe},Ee=(Qe,$e)=>ve(Qe,Se($e));const{TextArea:Ae}=ie.default,De={visible:!1,tabIndex:"0"},je={[ae.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[ae.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[ae.h.OK]:"\u8C03\u8BD5\u901A\u8FC7",2:"\u8C03\u8BD5\u8D85\u65F6",3:"\u8C03\u8BD5pod\u5931\u8D25",4:"\u7F16\u8BD1\u5931\u8D25",5:"\u6267\u884C\u5931\u8D25"};var Fe=(Qe=>(Qe[Qe.SET_VISIBLE=0]="SET_VISIBLE",Qe[Qe.SET_TABINDEX=1]="SET_TABINDEX",Qe))(Fe||{});function Re(Qe,$e){switch($e.type){case 0:return Ee(be({},Qe),{visible:$e.payload});case 1:return Ee(be({},Qe),{tabIndex:$e.payload});default:throw new Error}}function qe({value:Qe,className:$e}){const[ht,Ge]=(0,y.useState)(!1),Ue=(0,y.useRef)(),Ke=(0,y.useRef)();return(0,y.useEffect)(()=>{ht&&(Ke.current.reset(),Ke.current.write((0,x.pp)(Qe||"")))},[Qe,ht]),(0,y.useEffect)(()=>{var et,rt,Xe,ut;if(Ue.current){Ke.current=new ee.Terminal({fontSize:14,disableStdin:!0}),Ke.current.open(Ue.current);const lt=Ue.current.offsetWidth-14,kt=((ut=(Xe=(rt=(et=Ke.current)==null?void 0:et._core)==null?void 0:rt._renderService)==null?void 0:Xe.dimensions)==null?void 0:ut.actualCellWidth)||9.5,pt=Math.ceil(lt/kt);Ke.current.resize(pt,8),Ge(!0)}},[]),ce.createElement("div",{ref:Ue,className:re()("XtermText-valueRef",$e)})}function Je(Qe){const{status:$e,error_msg:ht,output:Ge,input:Ue,expected_output:Ke,is_file:et,input_file_url:rt,output_file_url:Xe,expected_output_file_url:ut}=Qe;let lt=null;const kt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch($e){case ae.h.NOMATCH:lt=ce.createElement(ce.Fragment,null,ce.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!et&&ce.createElement(qe,{className:"mb10",value:Ue}),et&&ce.createElement("div",{style:kt},ce.createElement("a",{onClick:()=>(0,x.LR)(rt,Ue)},Ue)),ce.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!et&&ce.createElement(qe,{className:"mb10",value:Ge&&se.Base64.decode(Ge)||""}),et&&ce.createElement("div",{style:kt},ce.createElement("a",{onClick:()=>(0,x.LR)(Xe,Ge)},Ge)),ce.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!et&&ce.createElement(qe,{className:"mb10",value:Ke&&se.Base64.decode(Ke)||""}),et&&ce.createElement("div",{style:kt},ce.createElement("a",{onClick:()=>(0,x.LR)(ut,Ke)},Ke)));break;case ae.h.EXECUTEFAILURE:lt=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!et&&ce.createElement(ne.Z,{value:Ue,style:kt}),et&&ce.createElement("div",{style:kt},ce.createElement("a",{onClick:()=>(0,x.LR)(rt,Ue)},Ue)),ce.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ce.createElement("pre",{className:"error"},se.Base64.decode(ht)));break;case ae.h.COMPILEFAILURE:lt=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!et&&ce.createElement(ne.Z,{value:Ue,style:kt}),et&&ce.createElement("div",{style:kt},ce.createElement("a",{onClick:()=>(0,x.LR)(rt,Ue)},Ue)),ce.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ce.createElement("pre",{className:"error"},se.Base64.decode(ht)));break;case ae.h.PODFAILURE:lt=ce.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ae.h.TIMEOUT:lt=ce.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ce.createElement(ce.Fragment,null," ",lt," ")}function He(Qe){const{status:$e,error_msg:ht,execute_time:Ge,output:Ue,input:Ke,expected_output:et,is_file:rt,input_file_url:Xe,output_file_url:ut,expected_output_file_url:lt}=Qe;let kt=null;switch($e){case ae.h.OK:kt=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ge,"\u79D2"),ce.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),ce.createElement("pre",null,se.Base64.decode(Ue)));break;case ae.h.NOMATCH:kt=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u8F93\u5165\uFF1A",ce.createElement("pre",null,Ke)),ce.createElement("p",null,"\u8F93\u51FA\uFF1A",Ue&&se.Base64.decode(Ue)),ce.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",et&&se.Base64.decode(et)));break;case ae.h.EXECUTEFAILURE:kt=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ce.createElement("pre",null,Ke)),ce.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ce.createElement("pre",{className:"error"},se.Base64.decode(ht)));break;case ae.h.COMPILEFAILURE:kt=ce.createElement(ce.Fragment,null,ce.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ce.createElement("pre",null,Ke)),ce.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ce.createElement("pre",{className:"error"},se.Base64.decode(ht)));break;case ae.h.PODFAILURE:kt=ce.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ae.h.TIMEOUT:kt=ce.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ce.createElement(ce.Fragment,null," ",kt," ")}var ze=({id:Qe,is_file:$e,input:ht,debuging:Ge,submitting:Ue,executingMessage:Ke,debugResult:et,onChangeInput:rt,onDebugCode:Xe,onSubmitCode:ut})=>{const[lt,kt]=(0,y.useReducer)(Re,De),{visible:pt,tabIndex:Mt}=lt;(0,y.useEffect)(()=>{kt({type:0,payload:!1})},[Qe]);function wt(Ie){let xe=Ie.target.id;kt({type:1,payload:xe})}function bt(){kt({type:0,payload:!pt})}const gt=(0,y.useMemo)(()=>{if(et){const{status:Ie}=et;return ce.createElement(ce.Fragment,null,He(et))}return null},[et]);function We(){kt({type:0,payload:!0}),kt({type:1,payload:"1"}),Xe()}return ce.createElement("div",{className:"test-case-panel"},ce.createElement("div",{className:`test-case-panel-body ${pt?"active":""}`},ce.createElement("ul",{className:"s-navs"},ce.createElement("li",null,ce.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),ce.createElement(b.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:ce.createElement(Ae,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:$e?"":ht,onChange:rt}),rightNode:Ge?ce.createElement(te.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):et?gt:ce.createElement("p",{style:{color:"#536879"}},"\u8BF7\u586B\u5199\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\u503C\uFF0C\u70B9\u51FB\u201C\u8C03\u8BD5\u4EE3\u7801\u201D")})),ce.createElement("a",{className:`btn-collapse ${pt?"up":""}`,onClick:bt},pt?ce.createElement(de.Z,null):ce.createElement(ue.Z,null)),ce.createElement("footer",{className:"footer"},ce.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),ce.createElement("div",{className:"flex-container"},ce.createElement(fe.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),ce.createElement(fe.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),ce.createElement(fe.ZP,{className:"btn-green",type:"ghost",loading:Ge,onClick:We},"\u8C03\u8BD5\u4EE3\u7801"),ce.createElement(fe.ZP,{type:"primary",className:"custom-ant-disabled",loading:Ue,disabled:Ue,onClick:()=>{kt({type:0,payload:!1}),ut()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},20620:function(rn,Tt,oe){"use strict";oe.r(Tt),oe.d(Tt,{default:function(){return mc}});var y=oe(59301),ie=oe(10906),fe=oe(76618),de=oe(65582),ue=oe(11938),ae=oe(6767),se=oe(62957),te=oe(29787),ne=oe(82326),x=oe(47887),b=oe(29584),ee=oe(74128),E=oe(87169),re=oe(36207),ce=oe(50258),le=oe(57261),ve=oe(42926),Se=oe(77825),ge=oe(59301),_e=Object.defineProperty,Ce=Object.defineProperties,he=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,De=(St,Dt,zt)=>Dt in St?_e(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,je=(St,Dt)=>{for(var zt in Dt||(Dt={}))Ee.call(Dt,zt)&&De(St,zt,Dt[zt]);if(be)for(var zt of be(Dt))Ae.call(Dt,zt)&&De(St,zt,Dt[zt]);return St},Fe=(St,Dt)=>Ce(St,he(Dt));const Re={theme:(0,ve.G)("cmCodeMode","vs-dark"),fontSize:(0,ve.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,ve.G)("cmTabToSpace",!0)};var qe=(St=>(St[St.set_font_size=0]="set_font_size",St[St.set_theme=1]="set_theme",St[St.on_tab_to_space=2]="on_tab_to_space",St[St.set_show_editor_setting=3]="set_show_editor_setting",St))(qe||{});function Je(St,Dt){switch(Dt.type){case 3:return Fe(je({},St),{showEditorSetting:Dt.payload});case 1:return Fe(je({},St),{theme:Dt.payload});case 0:return Fe(je({},St),{fontSize:Dt.payload});case 2:return Fe(je({},St),{tabToSpace:Dt.payload});default:throw new Error}}var He=({isLoading:St,value:Dt,onChange:zt,language:Mr,onUpdateCode:lr,ActionBarRender:Zn=or=>ge.createElement(ze,{onShowCodeSetting:or})})=>{const[or,tr]=(0,y.useReducer)(Je,Re),{theme:cr,fontSize:Pr,showEditorSetting:Wi,tabToSpace:Ci}=or,Ji=(0,y.useRef)(),li=(0,y.useRef)(),Qi={onFontSizeChange:Et=>{tr({type:0,payload:Et}),(0,ve.t)("cmFontSize",Et)},tabToSpace:Ci,cmFontSize:Pr,className:"oj",cmCodeMode:cr,onTabToSpace:Et=>{tr({type:2,payload:Et}),(0,ve.t)("cmTabToSpace",Et)},onCodeModeChange:Et=>{tr({type:1,payload:Et}),(0,ve.t)("cmCodeMode",Et)}};function Ti(){tr({type:3,payload:!1})}function ct(){tr({type:3,payload:!0})}const at={value:Dt,language:Mr,theme:cr,height:"calc(100% - 56px)",options:{fontSize:Pr,insertSpaces:Ci},onChange:Et=>{zt(Et),li.current=Et,clearTimeout(Ji.current),Ji.current=setTimeout(()=>{lr(li.current)},1e4)},onEditBlur:Et=>{li.current&&lr(li.current)}};return ge.createElement(y.Fragment,null,ge.createElement("div",{className:"code-panel-container"},Zn(ct),!St&&ge.createElement(ce.ZP,je({},at))),ge.createElement(le.Z,null,ge.createElement(re.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Wi,onClose:Ti},ge.createElement(Se.Z,je({},Qi)))))};function ze({onShowCodeSetting:St}){return ge.createElement("div",{className:"action-bar"},ge.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),ge.createElement("a",{onClick:St},ge.createElement("i",{className:"iconfont icon-shezhi"})))}var Qe=oe(24334),$e=oe(93373),ht=oe(80443),Ge=oe(37568),Ue=oe(28284),Ke=oe(7939);const{TextArea:et}=Ge.default,rt=5e3;var Xe=({callback:St,onCancel:Dt,notes:zt})=>{function Mr(lr){St(lr)}return y.createElement(Ue.default,{className:"note-form-panel",onFinish:Mr,initialValues:{notes:zt}},y.createElement(Ue.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:rt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${rt}`}]},y.createElement(et,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),y.createElement(Ue.default.Item,{style:{textAlign:"right"}},y.createElement(Ke.ZP,{type:"ghost",onClick:Dt,style:{marginRight:10}}," \u53D6\u6D88 "),y.createElement(Ke.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},ut={"left-panel":"left-panel___fP6Y3","tab-panel-body":"tab-panel-body___aLOJQ",b1:"b1___ELpwD","oj-mr":"oj-mr___SIQSw","oj-width-input":"oj-width-input___tR_Si","s-navs":"s-navs___iVrSH","bg-white":"bg-white___S0kiU",active:"active___D332c"},lt={pagination:"pagination___npPu7",info:"info___aRH6C"},kt=oe(70858),pt=oe(31709),Mt=oe(58617),wt=oe(81953),bt=oe(17124),gt=oe(65862),We=oe(66649),Ie=oe.n(We);const{Column:xe}=kt.default;var Be=({submitResult:St,submitting:Dt,submitRecords:zt,page:Mr,onPageChange:lr,topicId:Zn})=>{const{status:or,id:tr,input:cr,output:Pr,expected_output:Wi,is_file:Ci,input_file_url:Ji,output_file_url:li,expected_output_file_url:Qi,error_msg:Ti}=St||{},{records:ct,records_count:at}=zt||{},Et=(0,de.useParams)();function Rt(){Ci?navigator.clipboard.writeText(Qe.Base64.decode(Ti)).then(()=>{ae.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):navigator.clipboard.writeText(Qe.Base64.decode(Pr)).then(()=>{ae.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return y.createElement(te.Z,{spinning:Dt,tip:"\u8BC4\u6D4B\u4E2D...",indicator:y.createElement(Mt.Z,{style:{fontSize:24},spin:!0})},tr?y.createElement(y.Fragment,null,y.createElement("ul",{className:lt.info},y.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",y.createElement("span",{className:or===bt.h.OK?"c-green":"c-red"},ht.Im[or])),y.createElement("li",{className:lt.error},y.createElement("a",{onClick:Rt},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",y.createElement(wt.Z,null)," ")),y.createElement("li",null,y.createElement(de.Link,{to:`/problems/${Zn}/record-detail/${tr}?backId=${Et==null?void 0:Et.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),or!==bt.h.OK?y.createElement(y.Fragment,null,y.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),y.createElement("pre",null,!Ci&&cr,Ci&&y.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,gt.LR)(Ji,cr)},cr)),y.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),y.createElement("pre",null,(or===4||or===5)&&Qe.Base64.decode(Ti),or!=4&&or!=5&&(Ci?y.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,gt.LR)(li,Pr)},Pr):Qe.Base64.decode(Pr))),y.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),y.createElement("pre",null,!Ci&&Qe.Base64.decode(Wi),Ci&&y.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,gt.LR)(Qi,Wi)},Wi))):null):null,(ct==null?void 0:ct.length)>0?y.createElement(kt.default,{dataSource:ct,rowKey:"id",pagination:!1},y.createElement(xe,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(Ht,Wt)=>y.createElement("span",null," ",Ie()(Ht).format("YYYY-MM-DD HH:mm:ss"))}),y.createElement(xe,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(Ht,Wt)=>{var Zt;return y.createElement(de.Link,{className:Ht===0?"c-green":"c-red",to:`/problems/${Zn}/record-detail/${Wt.id}?backId=${Et==null?void 0:Et.save_identifier}`},(Zt=ht.Im[Ht])==null?void 0:Zt.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),y.createElement(xe,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),y.createElement(xe,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),y.createElement(xe,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,at>15?y.createElement(pt.Z,{className:lt.pagination,current:Mr,pageSize:15,total:at,onChange:lr}):null)},Ye=oe(2524),Pe=oe(96599),Le=oe(44104),pe={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},we=oe(95097),ke=oe(59301);const Me={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var Oe=({hack:St,onTriggerPraise:Dt,toDiscuss:zt})=>{const{language:Mr,difficulty:lr,time_limit:Zn,username:or,user_path:tr,user_praise:cr,comments_count:Pr,praises_count:Wi,description:Ci,pass_count:Ji,submit_count:li}=St,Qi=(0,de.useLocation)();console.log(St.language,"language");const Ti=Me[lr];return ke.createElement(ke.Fragment,null,ke.createElement("ul",{className:pe.info},ke.createElement("li",null,"\u96BE\u5EA6\uFF1A",ke.createElement(Pe.default,{color:Ti==null?void 0:Ti.color},Ti==null?void 0:Ti.name)),ke.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",ke.createElement("b",null,Zn,"\u79D2"))),ke.createElement(we.Z,{value:Ci,className:pe.desc}),ke.createElement("ul",{className:pe["commit-info"]},ke.createElement("li",null,ke.createElement(Le.Z,{size:4},ke.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",ke.createElement("b",null,Ji))),ke.createElement("li",null,ke.createElement(Le.Z,{size:4},ke.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",ke.createElement("b",null,li))," "),ke.createElement("li",{style:{flex:"1 0 0"}}),ke.createElement("li",null,ke.createElement(Le.Z,{size:4},ke.createElement("i",{className:"iconfont icon-huifu1",onClick:zt})," ",ke.createElement("b",null,Pr))," ")))},tt=oe(77254),ot=Object.defineProperty,st=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Bt=(St,Dt,zt)=>Dt in St?ot(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,qt=(St,Dt)=>{for(var zt in Dt||(Dt={}))ft.call(Dt,zt)&&Bt(St,zt,Dt[zt]);if(st)for(var zt of st(Dt))Ft.call(Dt,zt)&&Bt(St,zt,Dt[zt]);return St};const $t=St=>React.createElement("svg",qt({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},St),React.createElement("title",null,"\u5C55\u5F00\u9898\u76EE"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"0%",y1:"0%",x2:"100%",y2:"100%",id:"show_svg__a"},React.createElement("stop",{stopColor:"#EEF7FF",offset:"0%"}),React.createElement("stop",{stopColor:"#C1E2FF",offset:"100%"}))),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("rect",{fill:"url(#show_svg__a)",width:40,height:40,rx:8}),React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M16.057 20.784H8.238A1.22 1.22 0 0 0 7 21.974v6.811a1.22 1.22 0 0 0 1.238 1.19h7.819a1.213 1.213 0 0 0 1.238-1.19v-6.811a1.213 1.213 0 0 0-.376-.847 1.203 1.203 0 0 0-.862-.332v-.01Zm-1.25 6.769H9.423V23.12h5.384v4.433Z",fill:"#4CACFF"}),React.createElement("path",{d:"M16.057 10.005a1.22 1.22 0 0 1 1.238 1.189v6.812a1.213 1.213 0 0 1-.376.846c-.232.222-.542.34-.862.332H8.238A1.213 1.213 0 0 1 7 18.005v-6.811a1.22 1.22 0 0 1 1.238-1.19Zm-1.239 2.41H9.434v4.401h5.384v-4.4Z",fill:"#94CDFF"}),React.createElement("path",{d:"M20.418 12.632h11.189a1.213 1.213 0 0 0 1.238-1.179 1.224 1.224 0 0 0-.371-.857 1.214 1.214 0 0 0-.867-.343H20.418a1.203 1.203 0 0 0-.866.336c-.233.223-.367.53-.372.854.005.323.14.63.372.854.232.223.544.344.866.335ZM31.575 16.027h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 21.595h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557ZM31.575 27.163h-11.19a1.183 1.183 0 0 0-1.119.557c-.237.384-.237.87 0 1.254.238.384.672.6 1.12.557h11.189c.448.043.882-.173 1.119-.557.237-.384.237-.87 0-1.254a1.183 1.183 0 0 0-1.12-.557Z",fill:"#1890FF"}))));var It="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",en=oe(38147);function Pt(St){return(0,en.U2)("comments.json",St)}function cn(St){return(0,en.v_)(`/discusses/${St}/plus.json`,{container_type:"Discuss",type:1})}function Sn(St){return(0,en.v_)("comments/reply.json",St)}function An(St){return(0,en.v_)("comments.json",St)}function wn(St){return(0,en.v_)(`comments/${St==null?void 0:St.id}/hidden.json`,St)}function At(St){return(0,en.IV)(`comments/${St==null?void 0:St.id}.json`)}var Gt=oe(83554),on=oe(41867);function vn({author:St}){return y.createElement("a",{href:`/users/${St.login}`,target:"_blank"},y.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${ee.Z.IMG_SERVER}/images/${St.image_url}`,width:"50"}))}function Nn({data:St,index:Dt,parentDiscussIndex:zt,user:Mr,onSetActionType:lr}){const{author:Zn,can_delete:or,content:tr,id:cr,time:Pr}=St;function Wi(){lr({id:cr,index:Dt,type:"delete-discuss",parentDiscussIndex:zt,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Ci=Mr.admin||or||Zn.user_id===Mr.user_id;return y.createElement("div",{className:"discuss-item-container second-discuss "},y.createElement(vn,{author:Zn}),y.createElement("section",null,y.createElement("div",{className:"discuss-info"},y.createElement("a",{href:`/users/${Zn.login}`,target:"_blank"},Zn.name),y.createElement("span",{className:"grey"},Pr),y.createElement("div",{className:"btn-group",style:{marginBottom:0}},Ci?y.createElement("a",{onClick:Wi,title:"\u5220\u9664"},y.createElement("i",{className:"iconfont icon-shanchu"})):null)),y.createElement(we.Z,{className:"discuss-content",value:tr})))}var Yn=({user:St,data:Dt,index:zt,onPlusDiscuss:Mr,onSetActionType:lr,activeDiscussIndex:Zn,onReplyDiscuss:or,onSetActiveDiscussIndex:tr})=>{const{content:cr,children:Pr,hidden:Wi,id:Ci,praise_count:Ji,time:li,user_praise:Qi,can_delete:Ti,author:ct}=Dt;console.log(Ti&&(!Pr||Pr.length==0),"children22");function at(){tr(Ci)}function Et(){Mr(Ci,!Qi,zt)}function Rt(){lr({id:Ci,index:zt,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function Ht(){lr({id:Ci,index:zt,params:{hidden:Wi?"0":"1"},type:"hidden-discuss",message:Wi?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const Wt=St.admin||St.user_id===ct.user_id;return y.createElement("div",{className:"discuss-item-container",key:Ci},y.createElement(vn,{author:ct}),y.createElement("section",null,y.createElement("div",{className:"discuss-info"},y.createElement("a",{href:`/users/${ct.login}`,target:"_blank"}," ",ct.name," "),y.createElement("span",{className:"grey"},li)),y.createElement(we.Z,{className:"discuss-content",value:cr}),Pr&&Pr.length>0?y.createElement("div",{className:"reply-discuss-container"},Pr.map((Zt,Qt)=>y.createElement(Nn,{key:Zt.id,data:Zt,index:Qt,user:St,onSetActionType:lr,parentDiscussIndex:zt}))):null,y.createElement("div",{className:"btn-group"},(0,on.Ny)()?y.createElement("a",{onClick:Ht,title:Wi?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},y.createElement("i",{className:Wi?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Ti&&(!Pr||Pr.length==0)?y.createElement("a",{onClick:Rt,title:"\u5220\u9664"},y.createElement("i",{className:"iconfont icon-shanchu"})):null,y.createElement("a",{onClick:at,title:"\u56DE\u590D"}," ",y.createElement("i",{className:"iconfont icon-huifu1"})," "),y.createElement("a",{onClick:Et,className:Qi?"c-orange":""},y.createElement("i",{className:Qi?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),y.createElement("span",null,Ji||""))),y.createElement(Gt.Z,{id:Ci,activeDiscussIndex:Zn,onReplyDiscuss:or})))},Vn=oe(30214),ir=oe(25374),Mn=(St,Dt,zt)=>new Promise((Mr,lr)=>{var Zn=cr=>{try{tr(zt.next(cr))}catch(Pr){lr(Pr)}},or=cr=>{try{tr(zt.throw(cr))}catch(Pr){lr(Pr)}},tr=cr=>cr.done?Mr(cr.value):Promise.resolve(cr.value).then(Zn,or);tr((zt=zt.apply(St,Dt)).next())}),qn=({user_praise:St,praise_count:Dt,praisePlus:zt,onCreateDiscuss:Mr,discuss_count:lr})=>{const[Zn,or]=(0,y.useState)(!1),[tr,cr]=(0,y.useState)("");function Pr(li){cr(li)}function Wi(){or(!0)}function Ci(){or(!1)}function Ji(){return Mn(this,null,function*(){Mr(tr),cr(""),or(!1)})}return y.createElement("div",{className:`dis-input-editor-container ${Zn?"active":""} `},y.createElement("div",{className:Zn?"text-area hide":"text-area"},y.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Wi}),y.createElement("a",{style:{alignItems:"center"}}," ",y.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",lr," "),y.createElement("a",{className:"c-light-black",onClick:zt,style:{alignItems:"center"},title:St?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},y.createElement("i",{className:`mr3 ${St?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),Dt?y.createElement("span",null,Dt):"")),Zn?y.createElement("div",{className:"input-mask",onClick:Ci}):null,y.createElement("div",{className:Zn?"md-container":"md-container hide"},y.createElement(ir.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:tr,height:240,onChange:Pr}),y.createElement("div",{className:"tip-container",onClick:Ci},y.createElement("a",{className:"btn-send",onClick:Ji}," \u53D1\u9001 "))))},En=Object.defineProperty,Hn=Object.defineProperties,Qn=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,On=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,Kn=(St,Dt,zt)=>Dt in St?En(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,yn=(St,Dt)=>{for(var zt in Dt||(Dt={}))On.call(Dt,zt)&&Kn(St,zt,Dt[zt]);if(dr)for(var zt of dr(Dt))$n.call(Dt,zt)&&Kn(St,zt,Dt[zt]);return St},Ne=(St,Dt)=>Hn(St,Qn(Dt)),Ve=(St,Dt,zt)=>new Promise((Mr,lr)=>{var Zn=cr=>{try{tr(zt.next(cr))}catch(Pr){lr(Pr)}},or=cr=>{try{tr(zt.throw(cr))}catch(Pr){lr(Pr)}},tr=cr=>cr.done?Mr(cr.value):Promise.resolve(cr.value).then(Zn,or);tr((zt=zt.apply(St,Dt)).next())});const nt={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var mt=(St=>(St[St.GET_DISCUSSES=0]="GET_DISCUSSES",St[St.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",St[St.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",St[St.PLUS_DISCUSS=3]="PLUS_DISCUSS",St[St.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",St[St.SET_PAGE=5]="SET_PAGE",St[St.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",St))(mt||{});function _t(St,Dt){switch(Dt.type){case 6:return Ne(yn({},St),{loading:!0});case 0:return yn(yn({},St),Dt.payload);case 1:return yn(yn({},St),Dt.payload);case 4:return yn(yn({},St),Dt.payload);case 3:return yn(yn({},St),Dt.payload);case 5:return yn(yn({},St),Dt.payload);case 2:return yn(yn({},St),Dt.payload);default:throw new Error}}var Vt=({user:St,identifier:Dt,hack:zt,onTriggerPraise:Mr,setDiscussTotal:lr})=>{const[Zn,or]=(0,y.useReducer)(_t,nt),{loading:tr,page:cr,data:Pr,count:Wi,actionType:Ci,activeDiscussIndex:Ji}=Zn;console.log("---",Zn);const li=(0,y.useCallback)(()=>Ve(void 0,null,function*(){or({type:6});const Zt=yield Pt({container_type:"Practice",container_identifier:Dt,limit:10,page:cr}),{comments:Qt,disscuss_count:sn}=Zt;or({type:0,payload:{data:Qt,count:sn,loading:!1}}),lr(sn)}),[cr,Dt]);(0,y.useEffect)(()=>{li()},[Dt,cr]);function Qi(Zt){or({type:5,payload:{page:Zt}})}function Ti(Zt){or({type:4,payload:{actionType:Zt}})}function ct(Zt){or(Ji===Zt?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Zt}})}function at(Zt,Qt,sn){return Ve(this,null,function*(){try{const un=yield cn(Zt);Pr[sn].user_praise=Qt,Pr[sn].praise_count=un.praise_count,or({type:3,payload:{data:[...Pr]}})}catch(un){console.log(un)}})}function Et(){return Ve(this,null,function*(){const{id:Zt,params:Qt,type:sn,index:un,parentDiscussIndex:Bn}=Ci;sn==="hidden-discuss"&&(console.log(Qt,"params"),yield wn(yn({id:Zt,container_type:"Practice",container_identifier:Dt},Qt)),Bn?Pr[Bn].children[un].hidden=Qt.hidden==1:Pr[un].hidden=Qt.hidden==1,or({type:4,payload:{actionType:null,data:[...Pr]}})),sn==="delete-discuss"&&(yield At({id:Zt,container_type:"Practice",container_identifier:Dt}),or({type:4,payload:{actionType:null}}),yield li())})}function Rt(){or({type:4,payload:{actionType:null}})}function Ht(Zt,Qt){return Ve(this,null,function*(){try{yield Sn({container_type:"Practice",container_identifier:Dt,comments:{content:Qt,parent_id:Zt}}),li()}catch(sn){console.log(sn)}})}function Wt(Zt){return Ve(this,null,function*(){or({type:6}),yield An({comments:{content:Zt},container_type:"Practice",container_identifier:Dt}),li()})}return y.createElement(y.Fragment,null,y.createElement("div",{className:"discuss-panel"},Pr.length===0?y.createElement(Ye.Z,null):y.createElement(te.Z,{spinning:tr},Pr.map((Zt,Qt)=>y.createElement(Yn,{onReplyDiscuss:Ht,onPlusDiscuss:at,onSetActiveDiscussIndex:ct,onSetActionType:Ti,data:Zt,index:Qt,user:St,activeDiscussIndex:Ji}))),Wi>10?y.createElement("div",{className:"pagination-container mt10 mb10"},y.createElement(pt.Z,{showQuickJumper:!0,onChange:Qi,current:cr,total:Wi,showTotal:Zt=>y.createElement("span",{style:{color:"#656F87"}},"\u5171",y.createElement("span",{className:"c-light-primary"},Zt),"\u6761\u6570\u636E")})):null),y.createElement(qn,{user_praise:zt.user_praise,praise_count:zt.praises_count,praisePlus:Mr,discuss_count:zt.comments_count,onCreateDiscuss:Wt}),y.createElement(le.Z,null,y.createElement(se.default,{centered:!0,title:"\u63D0\u793A",open:!!Ci,onOk:Et,onCancel:Rt},y.createElement("p",null,Ci?Ci.message:"")),y.createElement(Vn.Z,null)))},Jt={flex_box_center:"flex_box_center___tosr6",flex_space_between:"flex_space_between___cQaTP",flex_box_vertical_center:"flex_box_vertical_center___uovxL",flex_box_center_end:"flex_box_center_end___b4gLY",flex_box_column:"flex_box_column___Umjm_",wrap:"wrap___sgoJE",head:"head___b9a9v",sort:"sort___L2Zw8",btn:"btn___khuE4",listWarp:"listWarp___zZj6C",pagination:"pagination___XlROP",fixedRight:"fixedRight___MuAXo","oj-width-input":"oj-width-input___RsZb6"},Xt={flex_box_center:"flex_box_center___EahWI",flex_space_between:"flex_space_between___zopS4",flex_box_vertical_center:"flex_box_vertical_center___w03mz",flex_box_center_end:"flex_box_center_end___lr0Fp",flex_box_column:"flex_box_column___KFHVi",active:"active___BczOO",line:"line___VC_Ry",list:"list___n9ABd",left:"left___LVHqw",mask:"mask___fP13z",right:"right___iLe52",name:"name___Oz_7h",title:"title___2Sess",a:"a___t7rIW",b:"b___Kb_45",des:"des___CjMBM",tag:"tag___V0PVb"},dn=Object.defineProperty,jn=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,jt=(St,Dt,zt)=>Dt in St?dn(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,xt=(St,Dt)=>{for(var zt in Dt||(Dt={}))vr.call(Dt,zt)&&jt(St,zt,Dt[zt]);if(jn)for(var zt of jn(Dt))Nt.call(Dt,zt)&&jt(St,zt,Dt[zt]);return St};const Ot=St=>React.createElement("svg",xt({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},St),React.createElement("title",null,"\u89C2\u770B"),React.createElement("path",{d:"M11 0a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h10ZM4.4 2.4a.4.4 0 0 0-.4.4v4.4a.4.4 0 0 0 .64.32l2.72-2.04a.6.6 0 0 0 0-.96L4.64 2.48a.4.4 0 0 0-.24-.08Z",fill:"#FFF",fillRule:"evenodd"}));var yt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Lt=Object.defineProperty,Ut=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,Gn=(St,Dt,zt)=>Dt in St?Lt(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,pn=(St,Dt)=>{for(var zt in Dt||(Dt={}))bn.call(Dt,zt)&&Gn(St,zt,Dt[zt]);if(Ut)for(var zt of Ut(Dt))Tn.call(Dt,zt)&&Gn(St,zt,Dt[zt]);return St};const tn=St=>React.createElement("svg",pn({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},St),React.createElement("title",null,"\u70B9\u8D5E1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#999"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#CCC"})));var ln="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Rn=Object.defineProperty,nr=Object.getOwnPropertySymbols,rr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,ti=(St,Dt,zt)=>Dt in St?Rn(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,fn=(St,Dt)=>{for(var zt in Dt||(Dt={}))rr.call(Dt,zt)&&ti(St,zt,Dt[zt]);if(nr)for(var zt of nr(Dt))fr.call(Dt,zt)&&ti(St,zt,Dt[zt]);return St};const Kt=St=>React.createElement("svg",fn({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},St),React.createElement("title",null,"\u70B9\u8D5E2"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#0152d9"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#B6D0FC"})));var gn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",xn=Object.defineProperty,Ln=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,ar=(St,Dt,zt)=>Dt in St?xn(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,Sr=(St,Dt)=>{for(var zt in Dt||(Dt={}))Un.call(Dt,zt)&&ar(St,zt,Dt[zt]);if(Ln)for(var zt of Ln(Dt))hr.call(Dt,zt)&&ar(St,zt,Dt[zt]);return St};const Cr=St=>React.createElement("svg",Sr({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},St),React.createElement("title",null,"\u8BC4\u8BBA1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M4.717.01h8.84c1.571 0 2.357.777 2.357 2.332v5.25c0 1.556-.786 2.334-2.357 2.334h-8.84c-1.572 0-2.357-.778-2.357-2.334v-5.25C2.36.787 3.145.01 4.717.01Z",fill:"#999"}),React.createElement("path",{d:"M2.36 2.342h8.84a2.37 2.37 0 0 1 1.666.684c.442.437.69 1.03.69 1.65v5.25c0 1.288-1.055 2.333-2.357 2.333H7.94l-1.16 1.153-1.167-1.153H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65v-5.25c0-.62.248-1.213.69-1.65a2.37 2.37 0 0 1 1.667-.684Z",fill:"#B6D0FC"}),React.createElement("path",{d:"M2.36 2.926h8.84c1.301 0 2.357 1.044 2.357 2.333v5.25c0 .619-.249 1.212-.69 1.65a2.37 2.37 0 0 1-1.668.683H7.94l-1.16 1.154-1.167-1.154H2.36a2.37 2.37 0 0 1-1.667-.683 2.321 2.321 0 0 1-.69-1.65V5.26c0-.619.248-1.212.69-1.65a2.37 2.37 0 0 1 1.667-.683Z",fill:"#CCC"}),React.createElement("path",{d:"M3.538 5.842h6.483c.393 0 .589.195.589.584 0 .389-.196.583-.59.583H3.539c-.393 0-.59-.194-.59-.583 0-.39.197-.584.59-.584ZM3.538 8.76h4.715c.393 0 .59.194.59.582 0 .39-.197.584-.59.584H3.538c-.393 0-.59-.195-.59-.584 0-.388.197-.583.59-.583Z",fill:"#FFF"})));var yr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",pr=Object.defineProperty,$r=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Nr=Object.prototype.propertyIsEnumerable,Yr=(St,Dt,zt)=>Dt in St?pr(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,ai=(St,Dt)=>{for(var zt in Dt||(Dt={}))kr.call(Dt,zt)&&Yr(St,zt,Dt[zt]);if($r)for(var zt of $r(Dt))Nr.call(Dt,zt)&&Yr(St,zt,Dt[zt]);return St};const Rr=St=>React.createElement("svg",ai({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},St),React.createElement("title",null,"\u67E5\u770B1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M7.965 11.961C2.593 11.961 0 6.926 0 5.981 0 5.035 2.623 0 7.965 0s7.965 4.984 7.965 5.98c0 .997-2.593 5.981-7.965 5.981Zm0-2.208c1.296 0 2.494-.72 3.142-1.886a3.902 3.902 0 0 0 0-3.773c-.648-1.167-1.846-1.886-3.142-1.886-2.004 0-3.629 1.69-3.629 3.773s1.625 3.772 3.629 3.772Z",fill:"#CCC"}),React.createElement("path",{d:"M7.965 8.28c-1.222 0-2.213-1.029-2.213-2.3 0-1.27.991-2.3 2.213-2.3s2.212 1.03 2.212 2.3c0 1.271-.99 2.3-2.212 2.3Z",fill:"#999"})));var ii="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",fi=({style:St={},onClick:Dt,onAssist:zt,onHide:Mr,data:lr,active:Zn,showLine:or})=>y.createElement(y.Fragment,null,y.createElement("div",{className:Zn===(lr==null?void 0:lr.id)?`${Xt.list} ${Xt.active}`:Xt.list,style:St,onClick:()=>Dt(lr)},(lr==null?void 0:lr.video)&&y.createElement("div",{className:Xt.left},y.createElement("img",{src:lr==null?void 0:lr.video_cover}),y.createElement("div",null,y.createElement("img",{src:yt}),y.createElement("span",null,lr==null?void 0:lr.video_duration)),y.createElement("div",{className:Xt.mask})),y.createElement("div",{className:Xt.right},y.createElement("div",{className:Xt.name},y.createElement("img",{src:ee.Z.IMG_SERVER+"/images/"+(lr==null?void 0:lr.image_url),width:30,height:30}),y.createElement("div",{title:lr==null?void 0:lr.name,className:Xt.title},lr==null?void 0:lr.name),(lr==null?void 0:lr.is_authority)&&y.createElement("div",{className:Xt.b},"\u5B98\u65B9"),(lr==null?void 0:lr.is_excellent)&&y.createElement("div",{className:Xt.a},"\u7CBE\u9009")),y.createElement("div",{className:Xt.des},y.createElement(we.Z,{showLines:2,showTextOnly:!0,value:(lr==null?void 0:lr.content)||"\u6682\u65E0\u5185\u5BB9"})),y.createElement("div",{className:Xt.tag},y.createElement("span",{className:"current",onClick:tr=>{tr.stopPropagation(),zt(lr)}},y.createElement("img",{src:lr!=null&&lr.user_liker?gn:ln}),y.createElement("span",{style:{color:lr!=null&&lr.user_liker?"#0152d9":"#656f87"}},lr==null?void 0:lr.praises_count)),y.createElement("span",null,y.createElement("img",{src:yr}),y.createElement("span",null,lr==null?void 0:lr.discusses_count)),y.createElement("span",null,y.createElement("img",{src:ii}),y.createElement("span",null,lr==null?void 0:lr.viewed_count)),(0,on.Ny)()&&y.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:tr=>{tr.stopPropagation(),Mr(lr)}},lr!=null&&lr.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),or&&y.createElement("div",{className:Xt.line})),Lr={flex_box_center:"flex_box_center___C6sVF",flex_space_between:"flex_space_between___VEt8l",flex_box_vertical_center:"flex_box_vertical_center___qeD5F",flex_box_center_end:"flex_box_center_end___iYJd9",flex_box_column:"flex_box_column___iAKJf",listForm:"listForm___leDJL",scroll:"scroll___wtFaF",formWrap:"formWrap___p3W41",btns:"btns___Izl4q",main:"main___xTqlG",mainLoading:"mainLoading___QLa9s",tip:"tip___a0tbY",proWarp:"proWarp___BZhOt",pro:"pro___Yp1Rx",mainSucceed:"mainSucceed___HfaTf",del:"del___TXGhB"},wi=oe(25399),Jr=oe(19941),Zr=Object.defineProperty,si=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,pi=Object.prototype.propertyIsEnumerable,ri=(St,Dt,zt)=>Dt in St?Zr(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,Er=(St,Dt)=>{for(var zt in Dt||(Dt={}))vi.call(Dt,zt)&&ri(St,zt,Dt[zt]);if(si)for(var zt of si(Dt))pi.call(Dt,zt)&&ri(St,zt,Dt[zt]);return St};const kn=St=>React.createElement("svg",Er({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},St),React.createElement("title",null,"\u4E0A\u4F20\u89C6\u9891"),React.createElement("path",{d:"M1.6 0C1.175 0 .768.17.468.474A1.63 1.63 0 0 0 0 1.622v3.243h3.237L7.378 0H1.6Zm7.876 0L5.338 4.865h5.9L15.371 0H9.476Zm7.998 0-4.137 4.865h5.896L23.372 0h-5.898Zm8 0-4.138 4.865h6.66V1.622a1.629 1.629 0 0 0-.467-1.148A1.585 1.585 0 0 0 26.397 0h-.924ZM0 6.487v17.837c0 .43.167.844.468 1.148.3.305.707.475 1.132.474h18.61a6.515 6.515 0 0 1 1.652-6.218 6.31 6.31 0 0 1 6.134-1.675V6.487H0Zm11.998 5.675 6.4 4.056-6.4 4.055v-8.11Zm14.399 6.487c-3.092.002-5.597 2.544-5.595 5.678.001 3.134 2.508 5.674 5.6 5.673C29.494 30 32 27.458 32 24.324c0-1.506-.59-2.95-1.641-4.014a5.561 5.561 0 0 0-3.962-1.661Zm0 2.027c.22.003.428.1.574.266.663.6 1.327 1.352 1.99 2.002a.8.8 0 0 1 0 1.14.788.788 0 0 1-1.125 0l-.638-.646v3.724a.814.814 0 0 1-.392.724.79.79 0 0 1-.815 0 .814.814 0 0 1-.392-.724v-3.724l-.637.646a.79.79 0 0 1-.773.215.803.803 0 0 1-.567-.575.816.816 0 0 1 .212-.783c.651-.664 1.333-1.388 1.99-2.002a.778.778 0 0 1 .575-.266l-.002.003Z",fill:"#0152d9",fillRule:"nonzero"}));var Xn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",er=Object.defineProperty,zn=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Br=Object.prototype.propertyIsEnumerable,Wn=(St,Dt,zt)=>Dt in St?er(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,Jn=(St,Dt)=>{for(var zt in Dt||(Dt={}))xr.call(Dt,zt)&&Wn(St,zt,Dt[zt]);if(zn)for(var zt of zn(Dt))Br.call(Dt,zt)&&Wn(St,zt,Dt[zt]);return St};const gr=St=>React.createElement("svg",Jn({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},St),React.createElement("title",null,"\u4E0A\u4F20\u6210\u529F"),React.createElement("path",{d:"M15 0c8.285 0 15 6.717 15 15 0 8.285-6.715 15-15 15-8.283 0-15-6.715-15-15C0 6.717 6.717 0 15 0Zm10.041 7.5v.01a47.934 47.934 0 0 0-11.232 9.386l-4.372-3.3v-.002L7.5 15.08l7.553 7.42A44.625 44.625 0 0 1 25.5 8.55l-.459-1.05Z",fill:"#44D7B6",fillRule:"nonzero"}));var br="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",ui=Object.defineProperty,Ri=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,Hi=Object.prototype.propertyIsEnumerable,Oi=(St,Dt,zt)=>Dt in St?ui(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,Pi=(St,Dt)=>{for(var zt in Dt||(Dt={}))gi.call(Dt,zt)&&Oi(St,zt,Dt[zt]);if(Ri)for(var zt of Ri(Dt))Hi.call(Dt,zt)&&Oi(St,zt,Dt[zt]);return St};const ki=St=>React.createElement("svg",Pi({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},St),React.createElement("path",{fill:"#AFBACB",d:"M9.99.02C4.482.02.02 4.482.02 9.99c0 5.506 4.463 9.97 9.97 9.97 5.506 0 9.97-4.464 9.97-9.97 0-5.507-4.464-9.97-9.97-9.97Zm1.636 13.69c-.744 1.19-1.488 2.083-2.827 2.083-.893-.149-1.19-.744-1.042-1.488l1.637-5.506c0-.149 0-.298-.149-.298-.148 0-.446 0-.595.298l-1.042 1.19v-.744c.745-1.19 1.935-2.083 2.828-2.083.744.149 1.19.744 1.042 1.488L9.84 14.305c0 .149 0 .298.148.298.15 0 .447-.15.596-.298l1.041-1.34v.745Zm-.297-7.292c-.596 0-1.19-.446-1.19-1.19 0-.745.446-1.191 1.19-1.191.595 0 1.19.446 1.19 1.19 0 .745-.595 1.191-1.19 1.191Z"}));var Fi="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",Ni=Object.defineProperty,qi=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,xo=Object.prototype.propertyIsEnumerable,eo=(St,Dt,zt)=>Dt in St?Ni(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,Yi=(St,Dt)=>{for(var zt in Dt||(Dt={}))So.call(Dt,zt)&&eo(St,zt,Dt[zt]);if(qi)for(var zt of qi(Dt))xo.call(Dt,zt)&&eo(St,zt,Dt[zt]);return St},oi=(St,Dt,zt)=>new Promise((Mr,lr)=>{var Zn=cr=>{try{tr(zt.next(cr))}catch(Pr){lr(Pr)}},or=cr=>{try{tr(zt.throw(cr))}catch(Pr){lr(Pr)}},tr=cr=>cr.done?Mr(cr.value):Promise.resolve(cr.value).then(Zn,or);tr((zt=zt.apply(St,Dt)).next())});const Xr=(St,Dt)=>{var zt,Mr,lr;const{uploadInfo:Zn={}}=Dt.payload;switch(Dt.type){case"addVideo":return{videoList:[...St.videoList,{name:Zn.file.name,size:Zn.file.size,type:Zn.file.type,fileHash:Zn.fileHash,state:Zn.state,video_id:Zn.videoId,attachment_id:"",article_id:-1,loaded:0,title:""}]};case"removeVideo":return{videoList:St.videoList.filter(or=>or.name!==Dt.payload.name)};case"replaceVideo":return{videoList:Dt.payload};case"removeAll":return[];case"updateProgress":return{videoList:St.videoList.map(or=>or.name===Dt.payload.uploadInfo.file.name?Yi(Yi({},or),{loaded:Dt.payload.progressPercent,video_id:Zn.videoId,fileHash:Zn.fileHash}):or)};case"updateTitle":return{videoList:(zt=St.videoList)==null?void 0:zt.map(or=>or.name===Dt.payload.item.name?Yi(Yi({},or),{title:Dt.payload.title}):or)};case"updateImg":return{videoList:(Mr=St.videoList)==null?void 0:Mr.map(or=>or.name===Dt.payload.item.name?Yi(Yi({},or),{attachment_id:Dt.payload.attachment_id}):or)};case"updateImg":return{videoList:(lr=St.videoList)==null?void 0:lr.map(or=>or.name===Dt.payload.item.name?Yi(Yi({},or),{attachment_id:Dt.payload.attachment_id}):or)};default:return[]}};var ro=({onClose:St,onOk:Dt,identifier:zt,active:Mr})=>{var lr,Zn;const[or]=Ue.default.useForm(),[tr,cr]=(0,y.useState)({}),[Pr,Wi]=(0,y.useState)(!1),[Ci,Ji]=(0,y.useState)(!1),[li,Qi]=(0,y.useReducer)(Xr,{videoList:[]}),Ti=(0,on.eY)(),ct=(0,de.useParams)(),at=(0,y.useRef)();(0,y.useEffect)(()=>{Mr&&Et()},[Mr]);const Et=()=>oi(void 0,null,function*(){var Fn,Dn,Pn,wr,ur,Tr,zr,Wr,Gr,Ar;const Ir=yield(0,x.M3)(zt,{active:Mr});if((Ir==null?void 0:Ir.status)===0){const Vr={name:(Fn=Ir==null?void 0:Ir.data)==null?void 0:Fn.name,content:(Dn=Ir==null?void 0:Ir.data)==null?void 0:Dn.content};or.setFieldsValue(Vr),cr(Vr),(wr=(Pn=Ir==null?void 0:Ir.data)==null?void 0:Pn.videos)!=null&&wr[0]&&Qi({type:"replaceVideo",payload:[{video_id:(zr=(Tr=(ur=Ir==null?void 0:Ir.data)==null?void 0:ur.videos)==null?void 0:Tr[0])==null?void 0:zr.video_id,name:(Ar=(Gr=(Wr=Ir==null?void 0:Ir.data)==null?void 0:Wr.videos)==null?void 0:Gr[0])==null?void 0:Ar.title,loaded:100}]})}}),Rt=(Fn,Dn)=>{cr(Yi({},Dn))},Ht=Fn=>oi(void 0,null,function*(){const Dn={videos:li.videoList,articles:Fn};Ji(!0);let Pn;Mr?(Dn.active=Mr,Pn=yield(0,x.gu)(zt,Dn)):Pn=yield(0,x.bx)(zt,Dn),(Pn==null?void 0:Pn.status)===0&&(console.log(Mr||(Pn==null?void 0:Pn.id),44),Dt(Mr||(Pn==null?void 0:Pn.id))),Ji(!1)}),Wt=()=>{const Fn=document.getElementById("fileUpload");Fn.value=""},Zt=Fn=>{var Dn='{"Vod":{}}';if(Wi(!0),at.current){at.current.addFile(Fn,null,null,null,Dn);return}(0,Jr.o)(Ti==null?void 0:Ti.login,"",{create:!at,addFileSuccess:Pn=>{Qi({type:"addVideo",payload:{uploadInfo:Pn}})},onUploadProgress:(Pn,wr,ur)=>{const Tr=Math.ceil(ur*100);Qi({type:"updateProgress",payload:{uploadInfo:Pn,progressPercent:Tr}}),Wt()},onUploadFailed:Pn=>{ae.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:Pn=>{Wi(!1)},onUploadSucceed:Pn=>{Wi(!1)},onUploadError:Pn=>{Wi(!1)},gotUploader:Pn=>{Pn.addFile(Fn,null,null,null,Dn),at.current=Pn}})},Qt=Fn=>{var Dn;const wr=Fn.target.files[0];if(!wr){Wt();return}let ur=wr.name.toLowerCase();if(ur&&ur.indexOf(".avi")==-1&&ur.indexOf(".flv")==-1&&ur.indexOf(".f4v")==-1&&ur.indexOf(".m4v")==-1&&ur.indexOf(".mov")==-1&&ur.indexOf(".mp4")==-1&&ur.indexOf(".rmvb")==-1&&ur.indexOf(".swf")==-1&&ur.indexOf(".webm")==-1&&ur.indexOf(".wmv")==-1){ae.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),Wt();return}if(wr.size>1024*1024*1024){ae.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71024M"),Wt();return}if((Dn=li.videoList)!=null&&Dn.find(Tr=>Tr.name===wr.name)){ae.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),Wt();return}Zt(wr)},sn=(Fn,Dn)=>{se.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:y.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Dn?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Wt(),Qi({type:"removeVideo",payload:{name:Fn}})}})},un=()=>y.createElement("label",{htmlFor:"fileUpload",className:Lr.main},y.createElement("img",{src:Xn,alt:""}),y.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891")),Bn=Fn=>y.createElement("div",{className:Lr.mainLoading},y.createElement("div",{className:Lr.proWarp},y.createElement("div",{className:Lr.pro},y.createElement("div",{style:{width:Fn}})),y.createElement("span",null,Fn||0,"%")),y.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),y.createElement("div",{className:Lr.tip},y.createElement(wi.Z,{getPopupContainer:Dn=>Dn.parentNode,title:y.createElement("div",null,y.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",y.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),y.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),y.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},y.createElement("img",{src:Fi,alt:""})))),an=Fn=>y.createElement("div",{className:Lr.mainSucceed},y.createElement("img",{src:br,alt:""}),y.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),y.createElement("div",{className:Lr.tip},y.createElement(wi.Z,{getPopupContainer:Dn=>Dn.parentNode,title:y.createElement("div",null,y.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",y.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),y.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),y.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},y.createElement("img",{src:Fi,alt:""}))),y.createElement("div",{className:Lr.del,onClick:()=>sn(Fn.name,Fn.loaded==100)},y.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),_n=()=>{var Fn;return y.createElement(y.Fragment,null,(Fn=li.videoList)==null?void 0:Fn.map((Dn,Pn)=>y.createElement(y.Fragment,{key:Pn},Dn.loaded==100?an(Dn):Bn(Dn.loaded))))},mn=()=>{se.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:St})},hn=(lr=li.videoList)==null?void 0:lr.length;return y.createElement("div",{className:Lr.listForm},y.createElement("header",null,Mr?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),y.createElement("section",{className:Lr.scroll,id:"sss"},y.createElement("div",{className:Lr.formWrap}," ",y.createElement(Ue.default,{form:or,scrollToFirstError:!0,layout:"vertical",onValuesChange:Rt,onFinish:Ht},y.createElement(Ue.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},y.createElement(Ge.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((Zn=tr.name)==null?void 0:Zn.length)||0}/60`})),y.createElement(Ue.default.Item,{name:"content",label:"\u5185\u5BB9:"},y.createElement(ir.Z,{defaultValue:tr.content||"",watch:!0})))),y.createElement("div",{className:Lr.upload},hn?_n():un(),y.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:Qt,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}))),y.createElement("div",{className:Lr.btns},y.createElement(Ke.ZP,{onClick:mn,type:"primary",ghost:!0},"\u5173\u95ED"),y.createElement(Ke.ZP,{loading:Ci,disabled:Pr,onClick:()=>or.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},ao={flex_box_center:"flex_box_center___Udvu8",flex_space_between:"flex_space_between___WNLp1",flex_box_vertical_center:"flex_box_vertical_center___ecch5",flex_box_center_end:"flex_box_center_end___cu_DJ",flex_box_column:"flex_box_column___zF2CU",listDetails:"listDetails___HpDwH",head:"head___wipEz",name:"name___qdH8S",title:"title___B0yUa",a:"a___LB6ZS",b:"b___yvOON",tag:"tag___bRCso",btn:"btn___akBxg",scroll:"scroll___JKC_q",video:"video___nEr4F",html:"html___GDNSx",g:"g___LSOhO",btns:"btns___Ci727"},la=oe(458),Vo=Object.defineProperty,Ko=Object.getOwnPropertySymbols,ha=Object.prototype.hasOwnProperty,wo=Object.prototype.propertyIsEnumerable,Zo=(St,Dt,zt)=>Dt in St?Vo(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,pa=(St,Dt)=>{for(var zt in Dt||(Dt={}))ha.call(Dt,zt)&&Zo(St,zt,Dt[zt]);if(Ko)for(var zt of Ko(Dt))wo.call(Dt,zt)&&Zo(St,zt,Dt[zt]);return St};const xa=St=>React.createElement("svg",pa({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},St),React.createElement("defs",null,React.createElement("path",{id:"jx_svg__a",d:"M6.385.257c.616-.343 1.616-.342 2.23 0l5.27 2.94C14.501 3.538 15 4.38 15 5.071v5.856c0 .692-.501 1.533-1.115 1.876l-5.27 2.939c-.616.343-1.616.342-2.23 0l-5.27-2.94C.499 12.462 0 11.622 0 10.929V5.072C0 4.38.501 3.54 1.115 3.196Zm1.423 3.817c-.169-.341-.446-.341-.615 0L6.38 5.717c-.169.341-.616.665-.994.72l-1.82.264c-.378.055-.464.317-.19.583l1.317 1.278c.273.266.444.79.38 1.165l-.31 1.806c-.066.376.158.538.496.36l1.628-.853c.338-.177.89-.177 1.23 0l1.627.853c.337.177.561.015.497-.36l-.31-1.806c-.065-.375.105-.899.379-1.165l1.316-1.278c.274-.266.188-.529-.19-.583l-1.819-.264c-.377-.054-.825-.378-.994-.72Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"jx_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#jx_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#jx_svg__a"}),React.createElement("circle",{cx:-1.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"}),React.createElement("circle",{cx:-2.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#jx_svg__b)"})));var ko="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",Za=Object.defineProperty,Va=Object.getOwnPropertySymbols,Ii=Object.prototype.hasOwnProperty,Zi=Object.prototype.propertyIsEnumerable,Ei=(St,Dt,zt)=>Dt in St?Za(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,Mi=(St,Dt)=>{for(var zt in Dt||(Dt={}))Ii.call(Dt,zt)&&Ei(St,zt,Dt[zt]);if(Va)for(var zt of Va(Dt))Zi.call(Dt,zt)&&Ei(St,zt,Dt[zt]);return St};const io=St=>React.createElement("svg",Mi({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},St),React.createElement("defs",null,React.createElement("path",{id:"gf_svg__a",d:"m8 0 1.857 1.073h2.146l1.071 1.854L14.931 4v2.144L16 8l-1.069 1.857V12l-1.858 1.072-1.071 1.856H9.857L8 16l-1.855-1.073H4l-1.072-1.856L1.072 12V9.857L0 8l1.072-1.856V4l1.857-1.073 1.072-1.854h2.145L8 0Zm2.91 6.385H4.796V12h1.246v-.451h4.026v.435h1.247V9.196H6.043v-.515h4.866V6.385Zm-.84 3.681v.613H6.042v-.613h4.026ZM9.705 7.24v.588H6.043v-.588h3.663ZM8.615 4l-1.48.137c.055.133.12.284.192.453l.076.175H4v1.426h1.195v-.483h5.61v.483H12V4.765H8.883c-.078-.23-.148-.43-.21-.602L8.616 4Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"gf_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#gf_svg__a"})),React.createElement("use",{fill:"#8DC9FF",fillRule:"nonzero",xlinkHref:"#gf_svg__a"}),React.createElement("circle",{cx:.5,cy:-3.5,r:16.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"}),React.createElement("circle",{cx:-.5,cy:-4.5,r:12.5,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#gf_svg__b)"})));var to="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",ea=Object.defineProperty,Wo=Object.getOwnPropertySymbols,ca=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,Na=(St,Dt,zt)=>Dt in St?ea(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,os=(St,Dt)=>{for(var zt in Dt||(Dt={}))ca.call(Dt,zt)&&Na(St,zt,Dt[zt]);if(Wo)for(var zt of Wo(Dt))$o.call(Dt,zt)&&Na(St,zt,Dt[zt]);return St};const Aa=St=>React.createElement("svg",os({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},St),React.createElement("title",null,"\u5927\u70B9\u8D5E"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M3.566 19.08V8.134c0-.443-.318-.802-.71-.802H1.34c-.73 0-1.322.67-1.322 1.496v9.558c0 .827.593 1.496 1.322 1.496h1.515c.392 0 .71-.36.71-.802Z",fill:"#A3D3FF"}),React.createElement("path",{d:"M4.585 19.303V7.9c0-.263.188-.495.459-.559.955-.229 3.147-1.049 4.08-3.848.567-2.451 1.182-3.607 3.008-3.469 1.826.139 1.948 1.804 1.948 2.312v3.93s-.148.602.468.649c.617.046 5.426 0 5.426 0s2.639-.042 1.8 3.031c-.73 2.673-2.173 6.974-2.537 8.05a2.324 2.324 0 0 1-.324.626c-.353.483-1.094 1.258-2.228 1.258H5.201c-.341.002-.616-.257-.616-.577Z",fill:"#FFF"})));var Ka="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Ya={flex_box_center:"flex_box_center___Fl60v",flex_space_between:"flex_space_between___bECvI",flex_box_vertical_center:"flex_box_vertical_center___NasnL",flex_box_center_end:"flex_box_center_end___llsAF",flex_box_column:"flex_box_column___KaTPF",discuss:"discuss___fk6PE",reply:"reply___pOmly",pagination:"pagination___qEsHX"},Ba=oe(77019),as=oe(5269),Xa={flex_box_center:"flex_box_center___qGmgZ",flex_space_between:"flex_space_between___PeDhE",flex_box_vertical_center:"flex_box_vertical_center___avs2o",flex_box_center_end:"flex_box_center_end___bpXQB",flex_box_column:"flex_box_column___bc5wd",discussItem:"discussItem___zcesj",wrap:"wrap___ezVW4",list:"list___EEOWp",btns:"btns___Niwl7",secondLevelDiscuss:"secondLevelDiscuss___TXG1b",line:"line___ejh2a",thirdlyLevelDiscuss:"thirdlyLevelDiscuss___HRI5Q"},il=(St,Dt,zt)=>new Promise((Mr,lr)=>{var Zn=cr=>{try{tr(zt.next(cr))}catch(Pr){lr(Pr)}},or=cr=>{try{tr(zt.throw(cr))}catch(Pr){lr(Pr)}},tr=cr=>cr.done?Mr(cr.value):Promise.resolve(cr.value).then(Zn,or);tr((zt=zt.apply(St,Dt)).next())});const Ja=({id:St,cb:Dt})=>{const[zt,Mr]=(0,y.useState)("");return y.createElement("aside",{className:"mt10"},y.createElement(ir.Z,{defaultValue:zt,id:"writeForumsReviewId",onChange:lr=>{Mr(lr)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),y.createElement(Ba.Z,null,y.createElement(as.Z,{flex:"1"}),y.createElement(as.Z,null,y.createElement(Ke.ZP,{type:"primary",size:"middle",onClick:()=>il(void 0,null,function*(){zt===""?ae.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):Dt(St,zt)})},"\u53D1\u9001"))))},vs=({data:St})=>{var Dt;return y.createElement("div",{className:Xa.thirdlyLevelDiscuss},y.createElement("span",{className:"c-grey-333"},y.createElement("span",{className:"font 14 c-light-primary"},(Dt=St==null?void 0:St.author)==null?void 0:Dt.name),"@",y.createElement("span",{className:"font 14 c-light-primary"},St==null?void 0:St.parent_name),":"),y.createElement(we.Z,{value:St==null?void 0:St.content}))},Wa=({data:St,onReplyDiscuss:Dt,thirdlyReply:zt,setThirdlyReply:Mr})=>{var lr,Zn,or,tr;const cr=(0,on.eY)();return console.log(cr,"user"),y.createElement("div",{className:Xa.list},y.createElement("img",{src:ee.Z.IMG_SERVER+"/images/"+((lr=St==null?void 0:St.author)==null?void 0:lr.image_url)}),y.createElement("div",{className:Xa.wrap},y.createElement("div",{className:"font14",style:{marginBottom:6}},y.createElement("span",{className:"c-grey-333"},(Zn=St==null?void 0:St.author)==null?void 0:Zn.name),(cr==null?void 0:cr.login)!==((or=St==null?void 0:St.author)==null?void 0:or.login)&&y.createElement("span",{onClick:()=>Mr(St==null?void 0:St.id),className:"c-grey-999 current",style:{float:"right"}},y.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),y.createElement("span",null,"\u56DE\u590D"))),y.createElement(we.Z,{value:St==null?void 0:St.content}),(tr=St==null?void 0:St.children)==null?void 0:tr.map(Pr=>y.createElement(vs,{key:Pr.id,data:Pr})),zt===(St==null?void 0:St.id)&&y.createElement("div",null,y.createElement(Ja,{id:St==null?void 0:St.id,cb:Dt}),y.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>Mr(null),className:"c-light-primary current"},y.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),y.createElement("div",{className:Xa.line})))};var $s=({data:St,onReplyDiscuss:Dt,secondReply:zt,setSecondReply:Mr,thirdlyReply:lr,setThirdlyReply:Zn,onPlusDiscuss:or})=>{var tr,cr,Pr,Wi;const[Ci,Ji]=(0,y.useState)(!1);return console.log(St,"data"),y.createElement("div",{className:Xa.discussItem},y.createElement("div",{className:Xa.list},y.createElement("img",{src:ee.Z.IMG_SERVER+"/images/"+((tr=St==null?void 0:St.author)==null?void 0:tr.image_url)}),y.createElement("div",{className:Xa.wrap},y.createElement("div",{className:"font14",style:{marginBottom:6}},y.createElement("span",{className:"c-grey-333 mr30"},(cr=St==null?void 0:St.author)==null?void 0:cr.name),y.createElement("span",{className:"c-grey-999"},St==null?void 0:St.time)),y.createElement(we.Z,{value:St==null?void 0:St.content}),y.createElement("div",{className:Xa.btns},y.createElement("div",{onClick:()=>or(St==null?void 0:St.id),className:St!=null&&St.user_praise?"c-light-primary":"c-grey-999"},y.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),y.createElement("span",null,St==null?void 0:St.praise_count)),y.createElement("div",{onClick:()=>{var li;((li=St==null?void 0:St.children)==null?void 0:li.length)!==0&&(Mr(null),Ji(!Ci))},style:{color:Ci?"#0152d9":"#999999"}},y.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),y.createElement("span",null,Ci?"\u6536\u8D77\u8BC4\u8BBA":(Pr=St==null?void 0:St.children)==null?void 0:Pr.length)),y.createElement("div",{onClick:()=>{Ji(!1),Mr(zt===(St==null?void 0:St.id)?null:St==null?void 0:St.id)},style:{color:zt===(St==null?void 0:St.id)?"#0152d9":"#999999"}},y.createElement("i",{className:"iconfont icon-huifu3 mr3"}),y.createElement("span",null,zt===(St==null?void 0:St.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),zt===(St==null?void 0:St.id)&&y.createElement(Ja,{id:St==null?void 0:St.id,cb:(li,Qi)=>{Dt(li,Qi),Ji(!0)}}),Ci&&y.createElement("div",{className:Xa.secondLevelDiscuss},(Wi=St==null?void 0:St.children)==null?void 0:Wi.map(li=>y.createElement(Wa,{thirdlyReply:lr,setThirdlyReply:Zn,key:li.id,data:li,onReplyDiscuss:Dt}))))))},Es=(St,Dt,zt)=>new Promise((Mr,lr)=>{var Zn=cr=>{try{tr(zt.next(cr))}catch(Pr){lr(Pr)}},or=cr=>{try{tr(zt.throw(cr))}catch(Pr){lr(Pr)}},tr=cr=>cr.done?Mr(cr.value):Promise.resolve(cr.value).then(Zn,or);tr((zt=zt.apply(St,Dt)).next())}),Al=({identifier:St,active:Dt,onOk:zt})=>{const[Mr,lr]=(0,y.useState)(""),[Zn,or]=(0,y.useState)(1),[tr,cr]=(0,y.useState)([]),[Pr,Wi]=(0,y.useState)(0),[Ci,Ji]=(0,y.useState)(null),[li,Qi]=(0,y.useState)(null);(0,y.useEffect)(()=>{Ti(1),or(1)},[Dt]);const Ti=Ht=>Es(void 0,null,function*(){const Wt=yield Pt({container_type:"QuestionSolutionArticle",container_identifier:Dt,limit:5,page:Ht});Wt!=null&&Wt.comments&&(cr((Wt==null?void 0:Wt.comments)||[]),or(Ht),Wi(Wt==null?void 0:Wt.disscuss_count))}),ct=()=>Es(void 0,null,function*(){if(Mr===""){ae.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const Ht=yield An({comments:{content:Mr},container_type:"QuestionSolutionArticle",container_identifier:Dt});Ht!=null&&Ht.discuss&&(lr(""),Ti(Zn),zt())}),at=(Ht,Wt,Zt)=>Es(void 0,null,function*(){const Qt=yield Sn({container_type:"QuestionSolutionArticle",container_identifier:Dt,comments:{content:Wt,parent_id:Ht}});Ji(null),Qi(null),Ti(Zn)}),Et=Ht=>Es(void 0,null,function*(){const Wt=yield cn(Ht);Ti(Zn)}),Rt=Ht=>{or(Ht),Ti(Ht)};return y.createElement("div",{className:Ya.discuss},y.createElement("aside",{className:Ya.reply,style:{borderWidth:Pr?1:0}},y.createElement(ir.Z,{defaultValue:Mr,id:"writeForumsReviewId",onChange:Ht=>{lr(Ht)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),y.createElement(Ba.Z,null,y.createElement(as.Z,{flex:"1"}),y.createElement(as.Z,null,y.createElement(Ke.ZP,{type:"primary",size:"middle",onClick:()=>ct()},"\u53D1\u9001")))),tr==null?void 0:tr.map(Ht=>y.createElement($s,{secondReply:Ci,setSecondReply:Ji,thirdlyReply:li,setThirdlyReply:Qi,key:Ht.id,data:Ht,onReplyDiscuss:at,onPlusDiscuss:Et})),y.createElement(pt.Z,{className:Ya.pagination,showTotal:Ht=>y.createElement("span",{style:{color:"#656F87"}},"\u5171",y.createElement("span",{className:"c-light-primary"},Ht),"\u6761\u6570\u636E"),current:Zn,onChange:Rt,total:Pr,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},Gs=oe(44080),ss=Object.defineProperty,gs=Object.getOwnPropertySymbols,ks=Object.prototype.hasOwnProperty,Vs=Object.prototype.propertyIsEnumerable,ys=(St,Dt,zt)=>Dt in St?ss(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,Ks=(St,Dt)=>{for(var zt in Dt||(Dt={}))ks.call(Dt,zt)&&ys(St,zt,Dt[zt]);if(gs)for(var zt of gs(Dt))Vs.call(Dt,zt)&&ys(St,zt,Dt[zt]);return St},Rs=(St,Dt,zt)=>new Promise((Mr,lr)=>{var Zn=cr=>{try{tr(zt.next(cr))}catch(Pr){lr(Pr)}},or=cr=>{try{tr(zt.throw(cr))}catch(Pr){lr(Pr)}},tr=cr=>cr.done?Mr(cr.value):Promise.resolve(cr.value).then(Zn,or);tr((zt=zt.apply(St,Dt)).next())}),ya=({active:St,identifier:Dt,onAssist:zt,onEdit:Mr,onArticlesSkip:lr,onClose:Zn,onOk:or,onDelete:tr,detailsIndex:cr,btnShowStatus:Pr})=>{var Wi,Ci,Ji,li,Qi,Ti,ct,at,Et,Rt;const[Ht,Wt]=(0,y.useState)(!0),[Zt,Qt]=(0,y.useState)({});(0,y.useEffect)(()=>{St&&sn()},[St,cr]);const sn=(mn=!0)=>Rs(void 0,null,function*(){mn&&Wt(!0);const hn=yield(0,x.wO)(Dt,{active:St});(hn==null?void 0:hn.status)===0&&Qt((hn==null?void 0:hn.data)||{}),Wt(!1)}),un=mn=>Rs(void 0,null,function*(){const hn=yield(0,x.qe)(Dt,Ks({active:St},mn));(hn==null?void 0:hn.status)===0&&(sn(!1),or())}),Bn=mn=>Rs(void 0,null,function*(){(yield(0,x.Rg)(Dt,{active:mn==null?void 0:mn.id})).status===0&&(sn(!1),or())}),an=mn=>{se.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u9898\u89E3\u5417?",onOk:()=>tr(mn)})},_n=()=>{sn(!1),or()};return y.createElement("div",{className:ao.listDetails},y.createElement(la.Z,{className:"pt20 pl20 pr20",loading:Ht,active:!0,paragraph:{rows:5}},y.createElement("div",{className:ao.head},y.createElement("div",{className:ao.name},y.createElement("div",{title:Zt==null?void 0:Zt.name,className:ao.title},Zt==null?void 0:Zt.name),(Zt==null?void 0:Zt.is_authority)&&y.createElement("div",{className:ao.b},"\u5B98\u65B9"),(Zt==null?void 0:Zt.is_excellent)&&y.createElement("div",{className:ao.a},"\u7CBE\u9009")),y.createElement("div",{className:ao.tag},y.createElement("img",{src:ee.Z.IMG_SERVER+"/images/"+(Zt==null?void 0:Zt.image_url)}),y.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Zt==null?void 0:Zt.username),y.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",Ie()(Zt==null?void 0:Zt.created_at).format("YYYY-MM-DD")),y.createElement("span",null,y.createElement("img",{src:ln}),y.createElement("span",null,Zt==null?void 0:Zt.praises_count)),y.createElement("span",null,y.createElement("img",{src:yr}),y.createElement("span",null,Zt==null?void 0:Zt.discusses_count)),y.createElement("span",null,y.createElement("img",{src:ii}),y.createElement("span",null,Zt==null?void 0:Zt.viewed_count)),y.createElement("div",{className:ao.btn},((0,on.Ny)()||(Zt==null?void 0:Zt.is_self))&&y.createElement(y.Fragment,null,y.createElement(Ke.ZP,{onClick:()=>an(Zt),type:"primary",ghost:!0},"\u5220\u9664"),y.createElement(Ke.ZP,{onClick:()=>Mr(Zt),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,on.Ny)()&&y.createElement(Ke.ZP,{onClick:()=>un({is_authority:!(Zt!=null&&Zt.is_authority)}),type:"primary"},y.createElement("img",{src:to}),Zt!=null&&Zt.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,on.Ny)()&&y.createElement(Ke.ZP,{onClick:()=>un({is_excellent:!(Zt!=null&&Zt.is_excellent)}),type:"primary"},y.createElement("img",{src:ko}),Zt!=null&&Zt.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),y.createElement("div",{className:ao.scroll},((Ci=(Wi=Zt==null?void 0:Zt.videos)==null?void 0:Wi[0])==null?void 0:Ci.id)&&y.createElement("div",{className:ao.video},y.createElement(te.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((li=(Ji=Zt==null?void 0:Zt.videos)==null?void 0:Ji[0])!=null&&li.transcoded)},y.createElement(Gs.Z,{poster:(Ti=(Qi=Zt==null?void 0:Zt.videos)==null?void 0:Qi[0])==null?void 0:Ti.cover_url,src:((at=(ct=Zt==null?void 0:Zt.videos)==null?void 0:ct[0])==null?void 0:at.play_url)||"",videoId:(Rt=(Et=Zt==null?void 0:Zt.videos)==null?void 0:Et[0])==null?void 0:Rt.id,logWatchHistory:()=>{}}))),y.createElement(we.Z,{className:ao.html,value:(Zt==null?void 0:Zt.content)||""}),y.createElement("div",{onClick:()=>Bn(Zt),className:ao.g},y.createElement("img",{className:"mr10",src:(Zt!=null&&Zt.user_liker,Ka)}),y.createElement("span",null,Zt==null?void 0:Zt.praises_count)),y.createElement(Al,{onOk:_n,active:St,identifier:Dt})),y.createElement("div",{className:ao.btns},y.createElement(Ke.ZP,{onClick:()=>Zn(),type:"primary",ghost:!0},"\u5173\u95ED"),Pr[0]&&y.createElement(Ke.ZP,{onClick:mn=>lr(mn,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),Pr[1]&&y.createElement(Ke.ZP,{onClick:mn=>lr(mn,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},so=Object.defineProperty,Gi=Object.getOwnPropertySymbols,ra=Object.prototype.hasOwnProperty,ba=Object.prototype.propertyIsEnumerable,Ho=(St,Dt,zt)=>Dt in St?so(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,ia=(St,Dt)=>{for(var zt in Dt||(Dt={}))ra.call(Dt,zt)&&Ho(St,zt,Dt[zt]);if(Gi)for(var zt of Gi(Dt))ba.call(Dt,zt)&&Ho(St,zt,Dt[zt]);return St};const ls=St=>React.createElement("svg",ia({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},St),React.createElement("defs",null,React.createElement("path",{id:"a_svg__a",d:"M13.727 0C14.983 0 16 .895 16 2v12c0 1.105-1.017 2-2.273 2H2.273C1.017 16 0 15.105 0 14V2C0 .895 1.017 0 2.273 0h11.454ZM7.464 11H2.955c-.266 0-.513.19-.646.5s-.133.69 0 1c.133.31.38.5.646.5h4.509c.411 0 .745-.448.745-1s-.334-1-.745-1Zm4-3.5H2.955c-.411 0-.745.448-.745 1s.334 1 .745 1h8.509c.412 0 .746-.448.746-1s-.334-1-.746-1ZM3.71 2.75a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Z"})),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("mask",{id:"a_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#a_svg__a"})),React.createElement("use",{fill:"#7DC1FF",fillRule:"nonzero",xlinkHref:"#a_svg__a"}),React.createElement("circle",{cx:1.5,cy:.5,r:16.5,fill:"#A3D3FF",fillRule:"nonzero",mask:"url(#a_svg__b)"}),React.createElement("ellipse",{cx:1.5,cy:-.5,fill:"#C1E2FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12}),React.createElement("ellipse",{cx:-2.5,cy:-4,fill:"#EEF7FF",fillRule:"nonzero",mask:"url(#a_svg__b)",rx:12.5,ry:12})));var $a="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",cs=oe(59477),Da=oe(89489),Ma=Object.defineProperty,Qa=Object.defineProperties,bs=Object.getOwnPropertyDescriptors,ol=Object.getOwnPropertySymbols,pl=Object.prototype.hasOwnProperty,Ps=Object.prototype.propertyIsEnumerable,us=(St,Dt,zt)=>Dt in St?Ma(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,Yo=(St,Dt)=>{for(var zt in Dt||(Dt={}))pl.call(Dt,zt)&&us(St,zt,Dt[zt]);if(ol)for(var zt of ol(Dt))Ps.call(Dt,zt)&&us(St,zt,Dt[zt]);return St},Sa=(St,Dt)=>Qa(St,bs(Dt)),ja=(St,Dt,zt)=>new Promise((Mr,lr)=>{var Zn=cr=>{try{tr(zt.next(cr))}catch(Pr){lr(Pr)}},or=cr=>{try{tr(zt.throw(cr))}catch(Pr){lr(Pr)}},tr=cr=>cr.done?Mr(cr.value):Promise.resolve(cr.value).then(Zn,or);tr((zt=zt.apply(St,Dt)).next())}),Ys=({identifier:St,tabStatus:Dt,setFilterListTotal:zt,setListStatus:Mr})=>{const lr={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[Zn,or]=(0,y.useState)(Yo({},lr));const[tr,cr]=(0,y.useState)(!1),[Pr,Wi]=(0,y.useState)(0),[Ci,Ji]=(0,y.useState)(1),[li,Qi]=(0,y.useState)(null),[Ti,ct]=(0,y.useState)([]),[at,Et]=(0,y.useState)([!0,!0]),[Rt,Ht]=(0,y.useState)(0),Wt=(0,y.useRef)(null);(0,y.useEffect)(()=>{Fn()},[Dt]),(0,y.useEffect)(()=>{Zt()},[li]),(0,y.useEffect)(()=>{sn(Yo({},lr)),Fn()},[St]),(0,y.useEffect)(()=>(window.addEventListener("resize",Qt),Mr(Rt),()=>{window.removeEventListener("resize",Qt)}),[Rt]);const Zt=()=>ja(void 0,null,function*(){if(!li){Et([!0,!0]);return}const Ar=[!0,!0],Ir=Ti==null?void 0:Ti.findIndex(Vr=>Vr.id===li);Ir===0&&Zn.page===1&&(Ar[0]=!1),(Zn.page-1)*Zn.limit+(Ir+1)===Zn.total&&(Ar[1]=!1),Et(Ar)}),Qt=()=>{var Ar;if(Rt){const Ir=window.innerWidth-((Ar=Wt.current)==null?void 0:Ar.clientWidth);Wi(Ir)}},sn=Ar=>ja(void 0,null,function*(){var Ir,Vr,xi;cr(!0);const Hr=yield(0,x.WH)(St,Ar);return(Hr==null?void 0:Hr.status)===0&&(ct(((Ir=Hr==null?void 0:Hr.data)==null?void 0:Ir.articles)||[]),or(Sa(Yo({},Ar),{total:(Vr=Hr==null?void 0:Hr.data)==null?void 0:Vr.articles_count})),zt((xi=Hr==null?void 0:Hr.data)==null?void 0:xi.articles_count)),cr(!1),Hr}),un=()=>{(Zn==null?void 0:Zn.sort_direction)===null?Zn.sort_direction="asc":(Zn==null?void 0:Zn.sort_direction)==="asc"?Zn.sort_direction="desc":(Zn==null?void 0:Zn.sort_direction)==="desc"&&(Zn.sort_direction=null),Zn.page=1,Fn(),or(Yo({},Zn)),sn(Zn)},Bn=()=>{Zn.page=1,Zn.search=Zn==null?void 0:Zn.save_search,Fn(),or(Yo({},Zn)),sn(Zn)},an=()=>{var Ar;const Ir=document.getElementsByClassName("btn-resize");Ir[0].style.visibility="hidden";const Vr=window.innerWidth-((Ar=Wt.current)==null?void 0:Ar.clientWidth);Wi(Vr)},_n=()=>{an(),Ht(1)},mn=Ar=>{an(),Qi(Ar==null?void 0:Ar.id),Ht(3)},hn=Ar=>{an(),Qi(Ar==null?void 0:Ar.id),Ht(2)},Fn=()=>{const Ar=document.getElementsByClassName("btn-resize");Ar[0].style.visibility="visible",Wi(0),Ht(0),Qi(null)},Dn=Ar=>{Ht(3),Qi(Ar),Zn.page=1,or(Yo({},Zn)),sn(Zn)},Pn=Ar=>{Ht(3),Qi(Ar),or(Yo({},Zn)),sn(Zn)},wr=Ar=>{or(Yo({},Zn)),sn(Zn)},ur=Ar=>ja(void 0,null,function*(){(yield(0,x.Rg)(St,{active:Ar==null?void 0:Ar.id})).status===0&&(sn(Zn),Ji(Ci+1))}),Tr=Ar=>ja(void 0,null,function*(){(yield(0,x.rL)(St,{active:Ar==null?void 0:Ar.id})).status===0&&(sn(Zn),Ji(Ci+1))}),zr=Ar=>ja(void 0,null,function*(){(yield(0,x.de)(St,{active:Ar==null?void 0:Ar.id})).status===0&&(Fn(),sn(Zn))}),Wr=Ar=>{Zn.page=Ar,or(Yo({},Zn)),sn(Zn)},Gr=(Ar,Ir)=>ja(void 0,null,function*(){var Vr,xi,Hr,ei;const Or=Ti==null?void 0:Ti.findIndex(mr=>mr.id===li);if(console.log(Or,Ir,22),Ir==="prev"){if(Or===void 0){ae.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Or===0){if(Zn.page===1){ae.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Zn.page!==1){Zn.page=Zn.page-1,or(Yo({},Zn));const mr=yield sn(Zn);if((mr==null?void 0:mr.status)===0){const Kr=(Hr=mr==null?void 0:mr.data)==null?void 0:Hr.articles[((xi=(Vr=mr==null?void 0:mr.data)==null?void 0:Vr.articles)==null?void 0:xi.length)-1];Qi(Kr==null?void 0:Kr.id),console.log(Ar.target,555)}}}else{const mr=Ti[Or-1];Qi(mr==null?void 0:mr.id)}}if(Ir==="next"){if(Or===void 0){ae.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((Zn.page-1)*Zn.limit+(Or+1)===Zn.total){ae.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Or+1===Zn.limit){Zn.page=Zn.page+1,or(Yo({},Zn));const mr=yield sn(Zn);if((mr==null?void 0:mr.status)===0){const Kr=(ei=mr==null?void 0:mr.data)==null?void 0:ei.articles[0];Qi(Kr==null?void 0:Kr.id)}}else{const mr=Ti[Or+1];Qi(mr==null?void 0:mr.id)}}});return y.createElement("div",{className:Jt.wrap,ref:Wt},y.createElement("div",{className:Jt.head},y.createElement("div",{className:Jt.sort,onClick:un},y.createElement("span",null,"\u6700\u65B0"),y.createElement("aside",null,y.createElement(cs.Z,{style:{color:(Zn==null?void 0:Zn.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),y.createElement(Da.Z,{style:{color:(Zn==null?void 0:Zn.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),y.createElement(Ge.default.Search,{value:Zn.save_search,className:Jt["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:Ar=>{Zn.save_search=Ar.target.value,or(Yo({},Zn))},onSearch:Bn}),y.createElement("div",{onClick:_n,className:Jt.btn},y.createElement("img",{src:$a}),"\u5199\u9898\u89E3")),y.createElement("div",{className:Jt.listWarp},y.createElement(te.Z,{spinning:tr,className:"mt20"},Ti==null?void 0:Ti.map((Ar,Ir)=>{let Vr=!0;return Ir+1===Ti.length&&Ir!==0&&(Vr=!1),y.createElement(fi,{active:li,key:Ar.id,data:Ar,showLine:Vr,onClick:mn,onAssist:ur,onHide:Tr})}),(Ti==null?void 0:Ti.length)===0&&y.createElement(Ye.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),y.createElement(pt.Z,{className:Jt.pagination,showTotal:Ar=>y.createElement("span",{style:{color:"#656F87"}},"\u5171",y.createElement("span",{className:"c-light-primary"},Ar),"\u6761\u6570\u636E"),total:Zn.total,showSizeChanger:!1,current:Zn==null?void 0:Zn.page,onChange:Wr,hideOnSinglePage:!0,showQuickJumper:!0}),Rt>0&&y.createElement("div",{className:Jt.fixedRight,style:{width:Pr}},Rt===1&&y.createElement(ro,{identifier:St,onClose:Fn,onOk:Dn}),Rt===2&&y.createElement(ro,{active:li,identifier:St,onClose:Fn,onOk:Pn}),Rt===3&&y.createElement(ya,{btnShowStatus:at,onArticlesSkip:Gr,detailsIndex:Ci,active:li,identifier:St,onClose:Fn,onOk:wr,onEdit:hn,onAssist:ur,onDelete:zr})))},Is={flex_box_center:"flex_box_center___BbEkt",flex_space_between:"flex_space_between___v3cDl",flex_box_vertical_center:"flex_box_vertical_center___wUFLn",flex_box_center_end:"flex_box_center_end___Tdr08",flex_box_column:"flex_box_column___fYHlj",wrap:"wrap___UAZFM",head:"head___Nl6hk",title:"title___Ir573",content:"content___xUewa",list:"list___oi2ig",footer:"footer___V3bwQ"},ml=Object.defineProperty,Ls=Object.defineProperties,Wl=Object.getOwnPropertyDescriptors,vl=Object.getOwnPropertySymbols,Xs=Object.prototype.hasOwnProperty,dc=Object.prototype.propertyIsEnumerable,al=(St,Dt,zt)=>Dt in St?ml(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,Ss=(St,Dt)=>{for(var zt in Dt||(Dt={}))Xs.call(Dt,zt)&&al(St,zt,Dt[zt]);if(vl)for(var zt of vl(Dt))dc.call(Dt,zt)&&al(St,zt,Dt[zt]);return St},sl=(St,Dt)=>Ls(St,Wl(Dt)),Ns=(St,Dt,zt)=>new Promise((Mr,lr)=>{var Zn=cr=>{try{tr(zt.next(cr))}catch(Pr){lr(Pr)}},or=cr=>{try{tr(zt.throw(cr))}catch(Pr){lr(Pr)}},tr=cr=>cr.done?Mr(cr.value):Promise.resolve(cr.value).then(Zn,or);tr((zt=zt.apply(St,Dt)).next())}),Ai=({visible:St,onVisible:Dt,value:zt,onChange:Mr,setIndex:lr})=>{var Zn;const or={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[tr,cr]=(0,y.useState)(or);const[Pr,Wi]=(0,y.useState)([]),[Ci,Ji]=(0,y.useState)([]),[li,Qi]=(0,y.useState)(!1),Ti=(0,y.useRef)([]),ct=(0,y.useRef)(null),at=(0,de.useParams)();(0,y.useEffect)(()=>(at!=null&&at.id&&(ct.current=setInterval(()=>{Et(30)},3e4)),()=>{clearInterval(ct.current)}),[]);const Et=an=>Ns(void 0,null,function*(){const _n=yield(0,x.uc)(at==null?void 0:at.id,{practice_time:an})});(0,y.useEffect)(()=>{sn(tr),Zt()},[]),(0,y.useEffect)(()=>(window.addEventListener("click",Ht),()=>{window.removeEventListener("click",Ht)}),[at==null?void 0:at.save_identifier,St]),(0,y.useEffect)(()=>{const an=Ti.current.findIndex(Dn=>Dn.identifier===(at==null?void 0:at.save_identifier)),_n=Ti.current[an-1],mn=Ti.current[an+1],hn=document.getElementById("oj-prev"),Fn=document.getElementById("oj-next");_n?hn.style.display="block":hn.style.display="none",mn?Fn.style.display="block":Fn.style.display="none"},[at==null?void 0:at.save_identifier,Ti.current]);const Rt=(an,_n)=>{if(an.id===_n)return an;for(let mn=0,hn=an;hn=hn.parentNode;mn++){if(hn.id===_n)return hn;if(hn==document.documentElement)return!1}},Ht=an=>Ns(void 0,null,function*(){!Rt(an.target,"oj-drawer")&&St&&Dt(!1);const _n=Ti.current.findIndex(Fn=>Fn.identifier===(at==null?void 0:at.save_identifier)),mn=Ti.current[_n-1],hn=Ti.current[_n+1];if(an.target.id==="oj-prev"){if(!mn||_n===-1){ae.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}an.target.style.pointerEvents="none",an.target.style.cursor="not-allowed",yield un(mn==null?void 0:mn.identifier),lr("0"),setTimeout(()=>{an.target.style.pointerEvents="auto",an.target.style.cursor="pointer"},400)}if(an.target.id==="oj-next"||an.target.id==="oj-modal-next"){if(!hn||_n===-1){ae.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}an.target.style.pointerEvents="none",an.target.style.cursor="not-allowed",yield un(hn==null?void 0:hn.identifier),lr("0"),setTimeout(()=>{an.target.style.pointerEvents="auto",an.target.style.cursor="pointer"},400)}});(0,y.useEffect)(()=>{Mr(at==null?void 0:at.save_identifier);const an=Ci.findIndex(_n=>_n.some(mn=>mn.identifier===(at==null?void 0:at.save_identifier)));cr(an===-1?sl(Ss({},tr),{page:1}):sl(Ss({},tr),{page:an+1}))},[at==null?void 0:at.save_identifier,Ci]);const Wt=an=>{tr.page=1,tr.tag_discipline_id=an,cr(Ss({},tr)),sn(tr)},Zt=()=>Ns(void 0,null,function*(){const an=yield(0,en.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});Wi(an.tag_disciplines||[])}),Qt=an=>{tr.page=1,tr.difficulty=typeof an=="number"?an:null,cr(Ss({},tr)),sn(tr)},sn=an=>Ns(void 0,null,function*(){var _n,mn;Qi(!0);const hn=yield(0,x.KC)(an);if(hn!=null&&hn.practices_list){for(var Fn=(_n=hn==null?void 0:hn.practices_list)==null?void 0:_n.length,Dn=[],Pn=0;Pn<Fn;Pn+=tr==null?void 0:tr.per_page)Dn.push((mn=hn==null?void 0:hn.practices_list)==null?void 0:mn.slice(Pn,Pn+(tr==null?void 0:tr.per_page)));cr(sl(Ss({},tr),{total:hn==null?void 0:hn.practices_count})),Ti.current=(hn==null?void 0:hn.practices_list)||[],Ji(Dn)}Qi(!1)}),un=(an,_n)=>Ns(void 0,null,function*(){const mn=yield(0,en.ZP)(`/api/practices/${an}/start`,{method:"get"});(mn==null?void 0:mn.status)===0&&de.history.push(`/problems/${mn==null?void 0:mn.identifier}/oj/${an}`)}),Bn=an=>{tr.page=an,cr(Ss({},tr))};return y.createElement("div",{className:Is.wrap,id:"oj-drawer",style:{left:St?0:-700}},y.createElement("div",{className:Is.head},y.createElement("div",{className:Is.title},"\u9898\u76EE\u5217\u8868"),y.createElement(Ge.default.Search,{value:tr==null?void 0:tr.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:an=>{tr.save_search=an.target.value,cr(Ss({},tr))},onSearch:()=>{tr.page=1,tr.search=tr.save_search,cr(Ss({},tr)),sn(tr)}}),y.createElement(ne.default,{value:tr==null?void 0:tr.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:an=>an.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:Wt},Pr.map(an=>y.createElement(ne.default.Option,{key:an.id,value:an.id},an.name))),y.createElement(ne.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:an=>an.parentNode,value:tr==null?void 0:tr.difficulty,onChange:Qt},y.createElement(ne.default.Option,{value:1},"\u7B80\u5355"),y.createElement(ne.default.Option,{value:2},"\u9002\u4E2D"),y.createElement(ne.default.Option,{value:3},"\u56F0\u96BE"))),y.createElement("div",{className:Is.content},y.createElement(te.Z,{spinning:li},(Zn=Ci==null?void 0:Ci[tr.page-1])==null?void 0:Zn.map(an=>y.createElement("div",{key:an.identifier,className:Is.list,onClick:_n=>un(an.identifier,_n)},y.createElement("i",{style:{visibility:zt===an.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),y.createElement("span",{style:{fontWeight:zt===an.identifier?"bold":400,color:zt===an.identifier?"#ffffff":"#bac4cd"},title:an==null?void 0:an.name},an.name),(an==null?void 0:an.difficulty)===1&&y.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(an==null?void 0:an.difficulty)===2&&y.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(an==null?void 0:an.difficulty)===3&&y.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),y.createElement("div",{className:Is.footer},y.createElement(pt.Z,{showTotal:an=>y.createElement("span",{style:{color:"#656F87"}},"\u5171",y.createElement("span",{className:"c-light-primary"},an),"\u6761\u6570\u636E"),total:tr.total,pageSize:tr==null?void 0:tr.per_page,current:tr==null?void 0:tr.page,showSizeChanger:!1,onChange:Bn,showQuickJumper:!0,hideOnSinglePage:!0})))},Bs=({hack:St,onTriggerPraise:Dt,topicId:zt,page:Mr,onPageChange:lr,user:Zn,submitRecords:or,submitting:tr,submitResult:cr})=>{const[Pr]=(0,de.useSearchParams)(),Wi=(0,de.useLocation)(),[Ci,Ji]=(0,y.useState)(Pr.get("tab")||"0"),[li,Qi]=(0,y.useState)(0),[Ti,ct]=(0,y.useState)(0),[at,Et]=(0,y.useState)(0),[Rt,Ht]=(0,y.useState)(),[Wt,Zt]=(0,y.useState)(!1);function Qt(un){const Bn=un.target.id;if(Ci==="3"&&Bn!==Ci&&(Ti===1||Ti===2)){se.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:()=>{Ji(Bn)}});return}Ji(Bn)}(0,y.useEffect)(()=>tt.Z.subscribe("to-commit-info",()=>{Ji("1")}),[]);function sn(){Ji("2")}return y.createElement("div",{className:ut["left-panel"]},y.createElement("ul",{className:`${ut["s-navs"]} ${ut["bg-white"]} ${ut.b1}`},y.createElement("li",{className:"mr40 current"},y.createElement("img",{onClick:()=>Zt(!0),src:It})),y.createElement("li",{className:ut["oj-mr"]},y.createElement("a",{className:Ci==="0"?ut.active:"",id:"0",onClick:Qt},"\u4EFB\u52A1\u63CF\u8FF0")),y.createElement("li",{className:ut["oj-mr"]},y.createElement("a",{className:Ci==="3"?ut.active:"",id:"3",onClick:Qt},"\u9898\u89E3",at?`(${at})`:"")),y.createElement("li",{className:ut["oj-mr"]},y.createElement("a",{className:Ci==="2"?ut.active:"",id:"2",onClick:Qt},"\u8BC4\u8BBA",li?`(${li})`:"")),y.createElement("li",null,y.createElement("a",{className:Ci==="1"?ut.active:"",id:"1",onClick:Qt},"\u63D0\u4EA4\u8BB0\u5F55"))),y.createElement("div",{className:`${ut["tab-panel-body"]} ${Ci==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},y.createElement(Oe,{hack:St,onTriggerPraise:Dt,toDiscuss:sn})),y.createElement("div",{className:`${ut["tab-panel-body"]} ${Ci==="1"?"":"hide"}`},or!=null&&or.records_count?y.createElement(Be,{page:Mr,onPageChange:lr,topicId:zt,submitting:tr,submitRecords:or,submitResult:cr}):y.createElement(Ye.Z,null)),y.createElement("div",{className:`${ut["tab-panel-body"]} ${Ci==="2"?"":"hide"}`,style:{padding:0}},y.createElement(Vt,{setDiscussTotal:Qi,user:Zn,identifier:St.identifier,hack:St,onTriggerPraise:Dt})),y.createElement("div",{className:`${ut["tab-panel-body"]} ${Ci==="3"?"":"hide"}`,style:{padding:0}},y.createElement(Ys,{setListStatus:ct,setFilterListTotal:Et,tabStatus:Ci,identifier:St.identifier})),y.createElement(Ai,{visible:Wt,setIndex:Ji,onVisible:un=>Zt(un),value:Rt,onChange:un=>Ht(un)}))},_s=oe(22744),$l=oe(62522),Gl=oe(81747),fc=oe(51976),gl=oe(89392),Dl=oe.n(gl),js=oe(56102),Li=oe(59301),Vl=Object.defineProperty,yl=Object.defineProperties,Ml=Object.getOwnPropertyDescriptors,As=Object.getOwnPropertySymbols,bl=Object.prototype.hasOwnProperty,Ds=Object.prototype.propertyIsEnumerable,Fs=(St,Dt,zt)=>Dt in St?Vl(St,Dt,{enumerable:!0,configurable:!0,writable:!0,value:zt}):St[Dt]=zt,yo=(St,Dt)=>{for(var zt in Dt||(Dt={}))bl.call(Dt,zt)&&Fs(St,zt,Dt[zt]);if(As)for(var zt of As(Dt))Ds.call(Dt,zt)&&Fs(St,zt,Dt[zt]);return St},jo=(St,Dt)=>yl(St,Ml(Dt)),Qs=(St,Dt)=>{var zt={};for(var Mr in St)bl.call(St,Mr)&&Dt.indexOf(Mr)<0&&(zt[Mr]=St[Mr]);if(St!=null&&As)for(var Mr of As(St))Dt.indexOf(Mr)<0&&Ds.call(St,Mr)&&(zt[Mr]=St[Mr]);return zt},Oa=(St,Dt,zt)=>new Promise((Mr,lr)=>{var Zn=cr=>{try{tr(zt.next(cr))}catch(Pr){lr(Pr)}},or=cr=>{try{tr(zt.throw(cr))}catch(Pr){lr(Pr)}},tr=cr=>cr.done?Mr(cr.value):Promise.resolve(cr.value).then(Zn,or);tr((zt=zt.apply(St,Dt)).next())});const{Countdown:hc}=ue.default,Ol={Java:"java",C:"c",Python:"py","C++":"c"};var pc=(St=>(St[St.SET_LOADING=0]="SET_LOADING",St[St.GET_DATA=1]="GET_DATA",St[St.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",St[St.SET_DATA=3]="SET_DATA",St[St.SET_DEBUGING=4]="SET_DEBUGING",St[St.SET_SUBMITING=5]="SET_SUBMITING",St[St.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",St[St.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",St[St.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",St[St.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",St[St.SET_PAGE=10]="SET_PAGE",St[St.GET_LANGUAGE=11]="GET_LANGUAGE",St[St.GET_DRAWER=12]="GET_DRAWER",St))(pc||{});function ds(){return new Date().getTime()}const zs={loading:!0,data:void 0,showNote:!1,debugResult:void 0,submitResult:void 0,debuging:!1,submitting:!1,submitRecords:void 0,submitRecordPage:1,executingMessage:"",languageValue:"",languageList:[],drawerData:[]};function Kl(St,Dt){switch(Dt.type){case 1:return yo(yo({},St),Dt.payload);case 3:return jo(yo({},St),{data:Dt.payload});case 0:return jo(yo({},St),{loading:Dt.payload});case 11:return jo(yo({},St),{languageList:Dt.payload});case 12:return jo(yo({},St),{drawerData:Dt.payload});case 9:return jo(yo({},St),{showNote:Dt.payload});case 4:return jo(yo({},St),{debuging:Dt.payload});case 5:return jo(yo({},St),{submitting:Dt.payload});case 2:return jo(yo({},St),{submitRecords:Dt.payload});case 10:return jo(yo({},St),{submitRecordPage:Dt.payload});case 6:return jo(yo({},St),{executingMessage:Dt.payload});case 7:return yo(yo({},St),Dt.payload);case 8:return yo(yo({},St),Dt.payload);default:throw new Error}}var mc=({children:St})=>{var Dt,zt,Mr,lr;const[Zn,or]=(0,y.useReducer)(Kl,zs),{id:tr}=(0,de.useParams)(),cr=(0,de.useLocation)(),[Pr]=(0,de.useSearchParams)(),{languageValue:Wi,languageList:Ci,loading:Ji,data:li,debugResult:Qi,submitResult:Ti,submitRecords:ct,submitRecordPage:at,showNote:Et,debuging:Rt,submitting:Ht,executingMessage:Wt}=Zn,[Zt,Qt]=(0,y.useState)("#FFF"),[sn,un]=(0,y.useState)(null),[Bn,an]=(0,y.useState)({}),[_n,mn]=(0,y.useState)(!1),hn=(0,y.useRef)(null),Fn=(0,y.useRef)(null),Dn=li==null?void 0:li.user,Pn=li==null?void 0:li.hack;(0,y.useEffect)(()=>((0,de.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,y.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,y.useEffect)(()=>{var jr;if(_n){const bi=document.getElementById("oj-next"),no=document.getElementById("oj-modal-next");((jr=bi==null?void 0:bi.style)==null?void 0:jr.display)==="none"?no.style.display="none":no.style.display="block"}},[_n]),(0,y.useEffect)(()=>{function jr(){return Oa(this,null,function*(){var bi,no,po;const Ui=yield(0,x.fu)(tr);if(Ui.status===401)document.location.href="/user/login";else{Ui.hack=Ui.practice,Ui.hack.code=Qe.Base64.decode((bi=Ui==null?void 0:Ui.hack)==null?void 0:bi.code);const mo=`${Dn==null?void 0:Dn.login}-language`;localStorage.getItem(mo)&&(Ui.hack.language=localStorage.getItem(mo)),Fn.current=Dl().cloneDeep(Ui),Fn.current.language=(no=Ui==null?void 0:Ui.hack)==null?void 0:no.language,or({type:1,payload:{loading:!1,data:Ui}}),or({type:8,payload:{languageValue:(po=Ui==null?void 0:Ui.hack)==null?void 0:po.language}})}})}tr&&jr()},[tr]),(0,y.useEffect)(()=>{or({type:8,payload:{debugResult:void 0}}),Tr(),mn(!1)},[tr]),(0,y.useEffect)(()=>{clearTimeout(hn.current)},[tr]),(0,y.useEffect)(()=>{ur()},[tr,at]);const wr=()=>{window.parent.postMessage("backExercise","*")};function ur(){return Oa(this,null,function*(){try{const jr=yield(0,x.zO)(tr,{limit:15,page:at});or({type:2,payload:jr})}catch(jr){console.log(jr)}})}function Tr(){return Oa(this,null,function*(){try{const jr=yield(0,x.dd)(tr);or({type:11,payload:jr==null?void 0:jr.data})}catch(jr){console.log(jr)}})}function zr(jr){or({type:10,payload:jr})}function Wr(jr){return Oa(this,null,function*(){var bi,no,po;const Ui=((po=(no=(bi=window==null?void 0:window.location)==null?void 0:bi.pathname)==null?void 0:no.split("/"))==null?void 0:po[2])||tr;return yield(0,x.n4)(Ui,jr||{code:Qe.Base64.encode(Pn.code),language:Wi})})}function Gr(){return Oa(this,null,function*(){var jr;if(!Pn.code||((jr=Pn.code)==null?void 0:jr.trim())===""){ae.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}if(!Ht){or({type:5,payload:!0});try{if(tt.Z.publish("to-commit-info"),(yield Wr()).status===0){let Vi=function(){return Oa(this,null,function*(){const{status:Xi,data:To}=yield(0,x.rX)(tr,"submit"),di=ds()-Io>(Ui*mo+3)*1e3;if(Xi!==0&&!di&&setTimeout(Vi,1e3),di){se.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),or({type:5,payload:!1});return}if(Xi===0){To.status===2&&se.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const ji=yield(0,x.zO)(tr,{limit:15,page:at});or({type:8,payload:jo(yo({},Zn),{submitResult:To,submitting:!1,submitRecords:ji})}),(To==null?void 0:To.status)===0&&mn(!0)}})},no={};if((yield(0,x.bM)(tr,no)).status===-1&&Pr.get("exercisesId")){window.parent.location.href=`/classrooms/${Pr.get("coursesId")}/exercise/${Pr.get("exercisesId")}/detail`;return}const{time_limit:Ui,test_case_size:mo}=Pn,Io=ds();Vi()}}catch(bi){or({type:5,payload:!1})}}})}function Ar(){return Oa(this,null,function*(){var jr;if(!Pn.code||((jr=Pn.code)==null?void 0:jr.trim())===""){ae.ZP.warning({key:"emptyContent",content:"\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7F16\u5199\u4EE3\u7801\u540E\uFF0C\u518D\u8FDB\u884C\u8BC4\u6D4B\uFF01"});return}Zn.debuging=!0,or({type:4,payload:!0});try{if((yield Wr()).status===0){let Io=function(){return Oa(this,null,function*(){const{status:Vi,message:Xi,data:To}=yield(0,x.rX)(tr,"debug"),di=ds()-mo>(no+3)*1e3;if(Vi!==0&&!di&&(or({type:6,payload:Xi}),setTimeout(Io,1e3)),di){se.default.error({centered:!0,okText:"\u77E5\u9053\u5566",content:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),or({type:4,payload:!1});return}Vi===0&&(or({type:4,payload:!1}),To.status===2&&se.default.error({centered:!0,okText:"\u77E5\u9053\u5566",content:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),or({type:7,payload:jo(yo({},Zn),{debugResult:To,debuging:!1})}))})};const{time_limit:no}=Pn;let po={input:encodeURIComponent(li.test_case.input)};if((yield(0,x.MU)(tr,po)).status===-1&&Pr.get("exercisesId")){window.parent.location.href=`/classrooms/${Pr.get("coursesId")}/exercise/${Pr.get("exercisesId")}/detail`;return}const mo=ds();Io()}else or({type:4,payload:!1})}catch(bi){console.log(bi)}finally{}})}function Ir(jr){var bi;clearTimeout(hn.current),hn.current=setTimeout(()=>{var no;Wr({code:Qe.Base64.encode(jr),language:(no=Fn==null?void 0:Fn.current)==null?void 0:no.language})},2e3),or({type:3,payload:jo(yo({},Fn==null?void 0:Fn.current),{hack:jo(yo({},(bi=Fn==null?void 0:Fn.current)==null?void 0:bi.hack),{code:jr})})})}function Vr(jr){let bi=jr.target.value;or({type:3,payload:jo(yo({},li),{test_case:{input:bi}})})}const xi=jr=>Oa(void 0,null,function*(){var bi;if(or({type:0,payload:!0}),(yield Wr()).status===0){or({type:8,payload:{languageValue:jr}}),Fn.current.language=jr;const po=`${Dn==null?void 0:Dn.login}-language`;localStorage.setItem(po,jr);const Ui=yield(0,x.dd)(tr);if(Ui.status===0){const mo=(bi=Ui==null?void 0:Ui.data)==null?void 0:bi.find(Io=>Io.language===jr);Ir(Qe.Base64.decode(mo.code))}}setTimeout(()=>{or({type:0,payload:!1})},300)});function Hr(){return Oa(this,null,function*(){try{const jr=yield(0,x.H7)(tr,{language:Wi});jr.status===401?de.history.replace("/login",{from:cr.pathname}):(Ir(Qe.Base64.decode(jr.code)),Tr())}catch(jr){console.log(jr)}})}function ei(){se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Li.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Li.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return Oa(this,null,function*(){const jr=yield(0,x.fi)(tr,{language:Wi});jr.status===401?de.history.replace("/login",{from:cr.pathname}):Ir(Qe.Base64.decode(jr.code))})}})}function Or(){or({type:9,payload:!0})}function mr(){or({type:9,payload:!1})}function Kr(jr){return Oa(this,null,function*(){yield(0,x.MK)(tr,jr),or({type:1,payload:{showNote:!1,data:jo(yo({},li),{hack:jo(yo({},Pn),{notes:jr.notes})})}})})}const ci={input:(Dt=li==null?void 0:li.test_case)==null?void 0:Dt.input,is_file:(zt=li==null?void 0:li.test_case)==null?void 0:zt.is_file,language:((Mr=Fn.current)==null?void 0:Mr.language)||(Pn==null?void 0:Pn.language),code:Pn==null?void 0:Pn.code,title:"main."+Ol[Pn==null?void 0:Pn.language],modify_code:Pn==null?void 0:Pn.modify_code,notes:Pn==null?void 0:Pn.notes,debugResult:Qi,debuging:Rt,submitting:Ht,executingMessage:Wt,id:tr,languageValue:Wi,languageList:Ci,onChangeLanguage:xi,onCancelNote:mr,onAddNote:Kr,showNote:Et,onShowNote:Or,onSubmitCode:Gr,onChangeCode:Ir,onChangeInput:Vr,onDebugCode:Ar,onResetCode:Hr,onSyncCode:ei,onUpdateCode:Wr};function yi(){return Oa(this,null,function*(){const{praise_count:jr}=yield(0,x.vl)(Pn.id,{container_type:"Hack",type:1});let bi=jo(yo({},li),{hack:jo(yo({},Pn),{praises_count:jr,user_praise:!Pn.user_praise})});or({type:3,payload:bi})})}const Ur={topicId:tr,submitResult:Ti,submitRecords:ct,submitting:Ht,page:at,onPageChange:zr,hack:Pn,user:li==null?void 0:li.user,onTriggerPraise:yi};return console.log(li,Fn==null?void 0:Fn.current,"data--------"),Li.createElement(Li.Fragment,null,Li.createElement(te.Z,{className:"oj-custom-large-spin",size:"large",spinning:Ji},li?Li.createElement("div",{className:"oj-custom-warp"},Li.createElement("header",{className:$e.Z.header,style:{minWidth:1200}},Li.createElement("div",null,Li.createElement("img",{src:`${ee.Z.IMG_SERVER}/images/${Dn.image_url}`,alt:"user",width:30}),Li.createElement("span",null,Dn.name)),Li.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Li.createElement("div",null,Pn.name),Li.createElement(_s.Z,{onChange:jr=>{},className:"font12 c-grey-999"})),Li.createElement(js.CopyToClipboard,{text:`${(lr=window.location)==null?void 0:lr.origin}/problems/${Pn.identifier}/share`,onCopy:()=>ae.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},Li.createElement("span",{className:$e.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",Li.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Pn.edit_privilege?Li.createElement(de.Link,{className:$e.Z.btn_back,to:`/problems/${Pn.identifier}/ojedit`,style:{marginRight:10}}," ",Li.createElement(ie.Z,null)," \u7F16\u8F91"):null,Li.createElement(de.Link,{className:$e.Z.btn_back,onClick:()=>{},to:"/problems"}," ",Li.createElement(fe.Z,null),"\u9000\u51FA")),Li.createElement(b.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:Li.createElement(Bs,yo({},Ur)),rightChild:Li.createElement(vc,yo({},ci))})):null),Li.createElement(se.default,{centered:!0,closable:!1,width:680,footer:null,open:_n,className:"oj-modal"},Li.createElement("section",{className:"oj-modal-content"},Li.createElement("div",{className:"oj-modal-head"},Li.createElement("img",{src:$l,alt:""}),Li.createElement("i",{onClick:()=>mn(!1),className:"iconfont icon-guanbi1"})),Li.createElement("aside",null,Li.createElement("img",{className:"mr30",src:fc.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",Li.createElement("span",{style:{color:"#75d6ba",marginRight:100}},Ti==null?void 0:Ti.execute_time,"s"),"\u4F18\u4E8E",Li.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Ti==null?void 0:Ti.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Li.createElement("aside",{className:"mb50"},Li.createElement("img",{src:Gl.Z,className:"mr30"}),Li.createElement("span",{className:"oj-modal-tt"},Li.createElement("span",null,Li.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),Li.createElement("span",{className:"c-light-primary"},Ti==null?void 0:Ti.execute_memory,"mb")),Li.createElement("span",null,Li.createElement("span",null))),"\u4F18\u4E8E",Li.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Ti==null?void 0:Ti.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Li.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Yl({languageValue:St,languageList:Dt,onChangeLanguage:zt,title:Mr,modify_code:lr,onSyncCode:Zn,onShowCodeSetting:or,onResetCode:tr}){const cr=(0,de.useLocation)(),Pr=()=>{se.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:Li.createElement(E.Z,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:tr})};return Li.createElement("div",{className:"action-bar"},Li.createElement(ne.default,{className:"oj-select",value:St,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:zt},Dt==null?void 0:Dt.map(Wi=>Li.createElement(ne.default.Option,{key:Wi.language,value:Wi.language},Wi.language))),Li.createElement("span",null),Li.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:Pr},Li.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Li.createElement("a",{onClick:or},Li.createElement("i",{className:"iconfont icon-shezhi"})))}function vc(St){var Dt=St,{id:zt,input:Mr,is_file:lr,showNote:Zn,onShowNote:or,notes:tr,onCancelNote:cr,onAddNote:Pr,debugResult:Wi,language:Ci,debuging:Ji,submitting:li,executingMessage:Qi,code:Ti,onSubmitCode:ct,onDebugCode:at,onChangeCode:Et,onChangeInput:Rt,onUpdateCode:Ht}=Dt,Wt=Qs(Dt,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function Zt(sn){return Li.createElement(Yl,jo(yo({},Wt),{onShowCodeSetting:sn}))}const Qt={id:zt,input:Mr,debugResult:Wi,debuging:Ji,is_file:lr,submitting:li,executingMessage:Qi,onDebugCode:at,onChangeCode:Et,onSubmitCode:ct,onChangeInput:Rt};return Li.createElement("div",{className:"right-panel"},Li.createElement(He,{onUpdateCode:()=>{},language:Ci,value:Ti,onChange:Et,ActionBarRender:Zt}),Li.createElement("div",{className:`note-form-area ${Zn?"active":""}`},Li.createElement(Xe,{onCancel:cr,notes:tr,callback:Pr})),Li.createElement(ht.ZP,yo({},Qt)))}},17124:function(rn,Tt,oe){"use strict";oe.d(Tt,{h:function(){return y}});var y=(ie=>(ie[ie.NOMATCH=-1]="NOMATCH",ie[ie.OK=0]="OK",ie[ie.TIMEOUT=2]="TIMEOUT",ie[ie.PODFAILURE=3]="PODFAILURE",ie[ie.COMPILEFAILURE=4]="COMPILEFAILURE",ie[ie.EXECUTEFAILURE=5]="EXECUTEFAILURE",ie[ie.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ie))(y||{})},47887:function(rn,Tt,oe){"use strict";oe.d(Tt,{H7:function(){return ne},KC:function(){return re},M3:function(){return Se},MK:function(){return te},MU:function(){return de},Rg:function(){return Ce},WH:function(){return ce},X6:function(){return ae},bM:function(){return fe},bx:function(){return le},dd:function(){return ee},de:function(){return be},fi:function(){return x},fu:function(){return ie},gu:function(){return ve},n4:function(){return b},qe:function(){return _e},rL:function(){return he},rX:function(){return se},uc:function(){return Ee},vl:function(){return E},wO:function(){return ge},zO:function(){return ue}});var y=oe(38147);function ie(Ae){return(0,y.U2)(`mypractices/${Ae}.json`,{hidePopLogin:!0})}function fe(Ae,De){return(0,y.v_)(`mypractices/${Ae}/code_submit.json`,De)}function de(Ae,De){return(0,y.v_)(`mypractices/${Ae}/code_debug.json`,De)}function ue(Ae,De){return De.language&&(De.language=encodeURIComponent(De.language)),(0,y.U2)(`mypractices/${Ae}/submit_records.json`,De)}function ae(Ae){return(0,y.U2)("mypractices/record_detail.json",{id:Ae})}function se(Ae,De){return(0,y.U2)(`mypractices/${Ae}/result.json`,{mode:De})}function te(Ae,De){return(0,y.v_)(`mypractices/${Ae}/add_notes.json`,De)}function ne(Ae,De){return(0,y.v_)(`mypractices/${Ae}/restore_initial_code.json`,De)}function x(Ae,De){return(0,y.v_)(`mypractices/${Ae}/sync_code.json`,De)}function b(Ae,De){return(0,y.v_)(`mypractices/${Ae}/update_code.json`,De)}function ee(Ae){return(0,y.v_)(`mypractices/${Ae}/initial_codes.json`)}function E(Ae,De){return(0,y.v_)(`discusses/${Ae}/plus.json`,De)}function re(Ae){return(0,y.U2)("practices/practices_list.json",Ae)}function ce(Ae,De){return(0,y.U2)(`practices/${Ae}/question_solution_articles`,De)}function le(Ae,De){return(0,y.v_)(`practices/${Ae}/question_solution_articles`,De)}function ve(Ae,De){return(0,y.gz)(`practices/${Ae}/question_solution_articles/${De==null?void 0:De.active}`,De)}function Se(Ae,De){return(0,y.U2)(`practices/${Ae}/question_solution_articles/${De==null?void 0:De.active}/edit`,De)}function ge(Ae,De){return(0,y.U2)(`practices/${Ae}/question_solution_articles/${De==null?void 0:De.active}`,De)}function _e(Ae,De){return(0,y.v_)(`practices/${Ae}/question_solution_articles/${De==null?void 0:De.active}/set_authority_or_excellent`,De)}function Ce(Ae,De){return(0,y.v_)(`practices/${Ae}/question_solution_articles/${De==null?void 0:De.active}/praise_or_treads`,De)}function he(Ae,De){return(0,y.v_)(`practices/${Ae}/question_solution_articles/${De==null?void 0:De.active}/hide`)}function be(Ae,De){return(0,y.IV)(`practices/${Ae}/question_solution_articles/${De==null?void 0:De.active}`,De)}function Ee(Ae,De){return(0,y.v_)(`mypractices/${Ae}/update_practice_time_sum`,De)}},83554:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return E}});var y=oe(59301),ie=oe(6767),fe=oe(25399),de=oe(29787),ue=oe(77019),ae=oe(5269),se=oe(31709),te=oe(7939),ne=oe(25374),x=oe(38147),b=oe(95097),ee=(ce,le,ve)=>new Promise((Se,ge)=>{var _e=be=>{try{he(ve.next(be))}catch(Ee){ge(Ee)}},Ce=be=>{try{he(ve.throw(be))}catch(Ee){ge(Ee)}},he=be=>be.done?Se(be.value):Promise.resolve(be.value).then(_e,Ce);he((ve=ve.apply(ce,le)).next())}),E=({id:ce,activeDiscussIndex:le,onReplyDiscuss:ve,adminOrOperator:Se})=>{const[ge,_e]=(0,y.useState)(""),[Ce,he]=(0,y.useState)(!1);function be(Ae){_e(Ae)}function Ee(){if(!ge){ie.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}ve(ce,ge),_e("")}return(0,y.useEffect)(()=>{le!=ce&&he(!1)},[le]),y.createElement("div",{key:ce,className:"discuss-item-editor",style:{display:le===ce?"block":"none",width:"100%"}},y.createElement(ne.Z,{miniToolbar:!0,startInit:le===ce,defaultValue:ge,id:ce,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:be,extraUse:Se&&y.createElement(fe.Z,{color:"#fff",open:Ce,destroyTooltipOnHide:!0,title:re({id:ce,isOpen:Ce,activeDiscussIndex:le,onChange:be,setIsOpen:he}),overlayStyle:{maxWidth:600}},y.createElement("a",{title:Ce?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>he(!Ce)},y.createElement("i",{className:"iconfont icon-dianzan11"})))}),y.createElement("a",{onClick:Ee,className:"btn-send"},"\u53D1\u9001"))};const re=ce=>{const[le,ve]=(0,y.useState)(!1),[Se,ge]=(0,y.useState)([]),[_e,Ce]=(0,y.useState)(1);(0,y.useEffect)(()=>{ce!=null&&ce.isOpen?he():(Ce(1),ge([]))},[ce==null?void 0:ce.isOpen]);const he=()=>ee(void 0,null,function*(){ve(!0);const be=yield(0,x.ZP)(`/api/discusses/${ce==null?void 0:ce.id}/recommend_answer.json`,{method:"get"});(be==null?void 0:be.status)==0&&ge(be==null?void 0:be.answer),ve(!1)});return y.createElement(de.Z,{spinning:le},y.createElement("div",{style:{color:"#000"}},y.createElement(b.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(Se==null?void 0:Se[_e-1])||""}),y.createElement(ue.Z,{justify:"end",align:"middle"},y.createElement(ae.Z,null,y.createElement(se.Z,{simple:!0,current:_e,pageSize:1,total:(Se==null?void 0:Se.length)||0,onChange:be=>{Ce(be)}})),y.createElement(ae.Z,null,y.createElement(te.ZP,{onClick:()=>ee(void 0,null,function*(){ce==null||ce.onChange(Se==null?void 0:Se[_e-1]),ce==null||ce.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},19941:function(rn,Tt,oe){"use strict";oe.d(Tt,{o:function(){return ne}});var y=oe(38147),ie=oe(93125),fe=oe.n(ie);let de="",ue,ae="";function se(x){te(x)}function te(x){ue=new(fe()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(b){console.log("addFileSuccess: "+b.file.name),x.addFileSuccess&&x.addFileSuccess(b),ue.startUpload()},onUploadstarted:function(b){const ee=b.file.name;if(b.videoId){var re=`/api/users/${de}/video_auths.json`;(0,y.ZP)(re,{method:"put",body:{video_id:b.videoId,title:ee,file_name:ee,virtual_classroom_id:ae}}).then(ce=>{if(ce.status==-1){x.onUploadError&&x.onUploadError(b);return}const le=ce.data;var ve=le.UploadAuth,Se=le.UploadAddress,ge=le.VideoId;ue.setUploadAuthAndAddress(b,ve,Se)}).catch(ce=>{ue.deleteFile(ue._curIndex),ue.nextUpload(),console.log(ce)})}else{var E=`/api/users/${de}/video_auths.json`;const ce="";(0,y.ZP)(E,{method:"Post",body:{title:ce+ee,file_name:ce+ee,virtual_classroom_id:ae}}).then(le=>{if(le){const _e=le.data;var ve=_e.UploadAuth,Se=_e.UploadAddress,ge=_e.VideoId;ue.setUploadAuthAndAddress(b,ve,Se,ge)}}).catch(le=>{ue.deleteFile(ue._curIndex),ue.nextUpload(),console.log(le)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(b){x.onUploadSucceed&&x.onUploadSucceed(b),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(b,ee,E){x.onUploadFailed&&x.onUploadFailed(b),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(b,ee,E){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(b,ee,E){x.onUploadProgress&&x.onUploadProgress(b,ee,E);var re=Math.ceil(E*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(b){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var ee=`/api/users/${de}/video_auths.json`;(0,y.ZP)(ee,{method:"put",body:{video_id:b.videoId}}).then(E=>{var ce=E.data.UploadAuth;ue.resumeUploadWithAuth(ce)}).catch(E=>{console.log(E)})},onUploadEnd:function(b){x.onUploadEnd&&x.onUploadEnd(b),console.log("onUploadEnd: uploaded all the files")}}),x.gotUploader&&x.gotUploader(ue)}function ne(x,b,ee){x&&(de=x),b&&(ae=b),se(ee)}},84056:function(rn,Tt,oe){"use strict";oe.d(Tt,{BU:function(){return ie},Dj:function(){return y},gH:function(){return fe},vp:function(){return de}});function y(ue){try{ue.mozRequestFullScreen?ue.mozRequestFullScreen():ue.webkitRequestFullScreen&&ue.webkitRequestFullScreen()}catch(ae){console.log(ae,":e")}}function ie(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const fe=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function de(){var ue=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,ae=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",ue),window.isFullScreen?window.isFullScreen:ue!=null}},49142:function(rn,Tt,oe){"use strict";oe.d(Tt,{AL:function(){return Ce},Iy:function(){return b},Qv:function(){return re},ez:function(){return _e},jb:function(){return ee}});var y=oe(32834),ie=oe.n(y),fe=oe(11690),de=oe.n(fe);let ue=1;function ae(De,je){const Fe=De.match(/^(\s+)(?:```)/);if(Fe===null)return je;const Re=Fe[1];return je.split(`
|
|
|
`).map(qe=>{const Je=qe.match(/^\s+/);if(Je===null)return qe;const[He]=Je;return He.length>=Re.length?qe.slice(Re.length):qe}).join(`
|
|
|
`)}let se=[],te=["<ul>"];const ne=new(ie()).Renderer,x=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function b(){se.length=0,te=["<ul>"]}const ee={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function E(De,je,Fe,Re){if(je>=De.length||De[je].level<=Fe)return je;var qe=De[je];Re.push("<li><a href='#"+ue+qe.anchor+"'>"+qe.text+"</a>"),je++;var Je=[];return je=E(De,je,qe.level,Je),Je.length>0&&(Re.push("<ul>"),Je.forEach(function(He){Re.push(He)}),Re.push("</ul>")),Re.push("</li>"),je=E(De,je,Fe,Re),je}function re(){return E(se,0,0,te),te.push("</ul>"),te.join("")}const ce={heading(De){const je=x.exec(De);if(ue+=1,je)return{type:"heading",raw:je[0],depth:je[1].length,text:je[2]}},fences(De){const je=this.rules.block.fences.exec(De);if(je){const Fe=je[0];let Re=ae(Fe,je[3]||"");const qe=je[2]?je[2].trim():je[2];if(["latex","katex","math"].indexOf(qe)>=0){const Je=Se(),He=Re;Re=Je,ge[Je]={type:"block",expression:He}}return{type:"code",raw:Fe,lang:qe,text:Re}}}},le=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ve=0;const Se=()=>`__special_katext_id_${ve++}__`;let ge={};function _e(){return ge}function Ce(){ve=0,ge={}}function he(De){return De=De.replace(le,(je,Fe)=>{const Re=Se();return ge[Re]={type:"inline",expression:Fe},Re}),De}const be=ne.listitem;ne.listitem=function(De){return be(he(De))};const Ee=ne.paragraph;ne.paragraph=function(De){return Ee(he(De))};const Ae=ne.tablecell;ne.tablecell=function(De,je){return Ae(he(De),je)},ne.code=function(De,je,Fe){const Re=(je||"").match(/\S*/)[0];return Re?["latex","katex","math"].indexOf(Re)>=0?`<p class='editormd-tex'>${De}</p>`:`<pre class="prettyprint linenums"><code class="language-${je}">${Fe?De:(0,fe.escape)(De,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(Fe?De:(0,fe.escape)(De,!0))+"</code></pre>"},ne.heading=function(De,je,Fe){let Re=this.options.headerPrefix+Fe.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return se.push({anchor:Re,level:je,text:De}),"<h"+je+' id="'+ue+Re+'">'+De+"</h"+je+">"},ie().setOptions({silent:!0,gfm:!0,pedantic:!1}),ie().use({tokenizer:ce,renderer:ne}),Tt.ZP=ie()},42926:function(rn,Tt,oe){"use strict";oe.d(Tt,{G:function(){return ue},t:function(){return de}});var y=oe(7062),ie=oe.n(y);const fe=null;function de(ae,se){let te=ie().get("__ec");te||(te={}),te[ae]=se,ie().set("__ec",te)}function ue(ae,se){let te=ie().get("__ec");return te?te[ae]===void 0?se:te[ae]:se}},73217:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return Kn}});class y{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(Ne,Ve){return Ne.__proto__=Ve,Ne},Object.assign=Object.assign||function(Ne){if(Ne==null)throw new TypeError("Cannot convert undefined or null to object");let Ve=Object(Ne);for(let nt=1;nt<arguments.length;nt++){let mt=arguments[nt];if(mt!=null)for(let _t in mt)mt.hasOwnProperty(_t)&&(Ve[_t]=mt[_t])}return Ve},typeof self.Promise!="function"&&oe(3867).polyfill()}}y.install();var ie=y,fe=oe(86204),de=oe.n(fe);class ue{static e(Ne,Ve){(!Ne||ue.FORCE_GLOBAL_TAG)&&(Ne=ue.GLOBAL_TAG);let nt=`[${Ne}] > ${Ve}`;ue.ENABLE_CALLBACK&&ue.emitter.emit("log","error",nt),ue.ENABLE_ERROR&&(console.error?console.error(nt):console.warn?console.warn(nt):console.log(nt))}static i(Ne,Ve){(!Ne||ue.FORCE_GLOBAL_TAG)&&(Ne=ue.GLOBAL_TAG);let nt=`[${Ne}] > ${Ve}`;ue.ENABLE_CALLBACK&&ue.emitter.emit("log","info",nt),ue.ENABLE_INFO&&(console.info?console.info(nt):console.log(nt))}static w(Ne,Ve){(!Ne||ue.FORCE_GLOBAL_TAG)&&(Ne=ue.GLOBAL_TAG);let nt=`[${Ne}] > ${Ve}`;ue.ENABLE_CALLBACK&&ue.emitter.emit("log","warn",nt),ue.ENABLE_WARN&&(console.warn?console.warn(nt):console.log(nt))}static d(Ne,Ve){(!Ne||ue.FORCE_GLOBAL_TAG)&&(Ne=ue.GLOBAL_TAG);let nt=`[${Ne}] > ${Ve}`;ue.ENABLE_CALLBACK&&ue.emitter.emit("log","debug",nt),ue.ENABLE_DEBUG&&(console.debug?console.debug(nt):console.log(nt))}static v(Ne,Ve){(!Ne||ue.FORCE_GLOBAL_TAG)&&(Ne=ue.GLOBAL_TAG);let nt=`[${Ne}] > ${Ve}`;ue.ENABLE_CALLBACK&&ue.emitter.emit("log","verbose",nt),ue.ENABLE_VERBOSE&&console.log(nt)}}ue.GLOBAL_TAG="flv.js",ue.FORCE_GLOBAL_TAG=!1,ue.ENABLE_ERROR=!0,ue.ENABLE_INFO=!0,ue.ENABLE_WARN=!0,ue.ENABLE_DEBUG=!0,ue.ENABLE_VERBOSE=!0,ue.ENABLE_CALLBACK=!1,ue.emitter=new(de());var ae=ue;class se{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(Ne){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Ne,this._totalBytes+=Ne):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Ne,this._totalBytes+=Ne):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Ne,this._totalBytes+=Ne,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let Ne=(this._now()-this._lastCheckpoint)/1e3;return Ne==0&&(Ne=1),this._intervalBytes/Ne/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let Ne=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Ne/1024}}var te=se;class ne{constructor(Ne){this._message=Ne}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class x extends ne{constructor(Ne){super(Ne)}get name(){return"IllegalStateException"}}class b extends ne{constructor(Ne){super(Ne)}get name(){return"InvalidArgumentException"}}class ee extends ne{constructor(Ne){super(Ne)}get name(){return"NotImplementedException"}}const E={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},re={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class ce{constructor(Ne){this._type=Ne||"undefined",this._status=E.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=E.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===E.kConnecting||this._status===E.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(Ne){this._onContentLengthKnown=Ne}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(Ne){this._onURLRedirect=Ne}get onDataArrival(){return this._onDataArrival}set onDataArrival(Ne){this._onDataArrival=Ne}get onError(){return this._onError}set onError(Ne){this._onError=Ne}get onComplete(){return this._onComplete}set onComplete(Ne){this._onComplete=Ne}open(Ne,Ve){throw new ee("Unimplemented abstract function!")}abort(){throw new ee("Unimplemented abstract function!")}}let le={};function ve(){let yn=self.navigator.userAgent.toLowerCase(),Ne=/(edge)\/([\w.]+)/.exec(yn)||/(opr)[\/]([\w.]+)/.exec(yn)||/(chrome)[ \/]([\w.]+)/.exec(yn)||/(iemobile)[\/]([\w.]+)/.exec(yn)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(yn)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(yn)||/(webkit)[ \/]([\w.]+)/.exec(yn)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(yn)||/(msie) ([\w.]+)/.exec(yn)||yn.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(yn)||yn.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(yn)||[],Ve=/(ipad)/.exec(yn)||/(ipod)/.exec(yn)||/(windows phone)/.exec(yn)||/(iphone)/.exec(yn)||/(kindle)/.exec(yn)||/(android)/.exec(yn)||/(windows)/.exec(yn)||/(mac)/.exec(yn)||/(linux)/.exec(yn)||/(cros)/.exec(yn)||[],nt={browser:Ne[5]||Ne[3]||Ne[1]||"",version:Ne[2]||Ne[4]||"0",majorVersion:Ne[4]||Ne[2]||"0",platform:Ve[0]||""},mt={};if(nt.browser){mt[nt.browser]=!0;let _t=nt.majorVersion.split(".");mt.version={major:parseInt(nt.majorVersion,10),string:nt.version},_t.length>1&&(mt.version.minor=parseInt(_t[1],10)),_t.length>2&&(mt.version.build=parseInt(_t[2],10))}if(nt.platform&&(mt[nt.platform]=!0),(mt.chrome||mt.opr||mt.safari)&&(mt.webkit=!0),mt.rv||mt.iemobile){mt.rv&&delete mt.rv;let _t="msie";nt.browser=_t,mt[_t]=!0}if(mt.edge){delete mt.edge;let _t="msedge";nt.browser=_t,mt[_t]=!0}if(mt.opr){let _t="opera";nt.browser=_t,mt[_t]=!0}if(mt.safari&&mt.android){let _t="android";nt.browser=_t,mt[_t]=!0}mt.name=nt.browser,mt.platform=nt.platform;for(let _t in le)le.hasOwnProperty(_t)&&delete le[_t];Object.assign(le,mt)}ve();var Se=le;class ge extends ce{static isSupported(){try{let Ne=Se.msedge&&Se.version.minor>=15048,Ve=Se.msedge?Ne:!0;return self.fetch&&self.ReadableStream&&Ve}catch(Ne){return!1}}constructor(Ne,Ve){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=Ne,this._config=Ve,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(Ne,Ve){this._dataSource=Ne,this._range=Ve;let nt=Ne.url;this._config.reuseRedirectedURL&&Ne.redirectedURL!=null&&(nt=Ne.redirectedURL);let mt=this._seekHandler.getConfig(nt,Ve),_t=new self.Headers;if(typeof mt.headers=="object"){let Jt=mt.headers;for(let Xt in Jt)Jt.hasOwnProperty(Xt)&&_t.append(Xt,Jt[Xt])}let Vt={method:"GET",headers:_t,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let Jt in this._config.headers)_t.append(Jt,this._config.headers[Jt]);Ne.cors===!1&&(Vt.mode="same-origin"),Ne.withCredentials&&(Vt.credentials="include"),Ne.referrerPolicy&&(Vt.referrerPolicy=Ne.referrerPolicy),this._status=E.kConnecting,self.fetch(mt.url,Vt).then(Jt=>{if(this._requestAbort){this._requestAbort=!1,this._status=E.kIdle;return}if(Jt.ok&&Jt.status>=200&&Jt.status<=299){if(Jt.url!==mt.url&&this._onURLRedirect){let dn=this._seekHandler.removeURLParameters(Jt.url);this._onURLRedirect(dn)}let Xt=Jt.headers.get("Content-Length");return Xt!=null&&(this._contentLength=parseInt(Xt),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,Jt.body.getReader())}else if(this._status=E.kError,this._onError)this._onError(re.HTTP_STATUS_CODE_INVALID,{code:Jt.status,msg:Jt.statusText});else throw new ne("FetchStreamLoader: Http code invalid, "+Jt.status+" "+Jt.statusText)}).catch(Jt=>{if(this._status=E.kError,this._onError)this._onError(re.EXCEPTION,{code:-1,msg:Jt.message});else throw Jt})}abort(){this._requestAbort=!0}_pump(Ne){return Ne.read().then(Ve=>{if(Ve.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=E.kError;let nt=re.EARLY_EOF,mt={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(nt,mt);else throw new ne(mt.msg)}else this._status=E.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=E.kComplete,Ne.cancel();this._status=E.kBuffering;let nt=Ve.value.buffer,mt=this._range.from+this._receivedLength;this._receivedLength+=nt.byteLength,this._onDataArrival&&this._onDataArrival(nt,mt,this._receivedLength),this._pump(Ne)}}).catch(Ve=>{if(Ve.code===11&&Se.msedge)return;this._status=E.kError;let nt=0,mt=null;if((Ve.code===19||Ve.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(nt=re.EARLY_EOF,mt={code:Ve.code,msg:"Fetch stream meet Early-EOF"}):(nt=re.EXCEPTION,mt={code:Ve.code,msg:Ve.message}),this._onError)this._onError(nt,mt);else throw new ne(mt.msg)})}}var _e=ge;class Ce extends ce{static isSupported(){try{let Ne=new XMLHttpRequest;return Ne.open("GET","https://example.com",!0),Ne.responseType="moz-chunked-arraybuffer",Ne.responseType==="moz-chunked-arraybuffer"}catch(Ne){return ae.w("MozChunkedLoader",Ne.message),!1}}constructor(Ne,Ve){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=Ne,this._config=Ve,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(Ne,Ve){this._dataSource=Ne,this._range=Ve;let nt=Ne.url;this._config.reuseRedirectedURL&&Ne.redirectedURL!=null&&(nt=Ne.redirectedURL);let mt=this._seekHandler.getConfig(nt,Ve);this._requestURL=mt.url;let _t=this._xhr=new XMLHttpRequest;if(_t.open("GET",mt.url,!0),_t.responseType="moz-chunked-arraybuffer",_t.onreadystatechange=this._onReadyStateChange.bind(this),_t.onprogress=this._onProgress.bind(this),_t.onloadend=this._onLoadEnd.bind(this),_t.onerror=this._onXhrError.bind(this),Ne.withCredentials&&(_t.withCredentials=!0),typeof mt.headers=="object"){let Vt=mt.headers;for(let Jt in Vt)Vt.hasOwnProperty(Jt)&&_t.setRequestHeader(Jt,Vt[Jt])}if(typeof this._config.headers=="object"){let Vt=this._config.headers;for(let Jt in Vt)Vt.hasOwnProperty(Jt)&&_t.setRequestHeader(Jt,Vt[Jt])}this._status=E.kConnecting,_t.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=E.kComplete}_onReadyStateChange(Ne){let Ve=Ne.target;if(Ve.readyState===2){if(Ve.responseURL!=null&&Ve.responseURL!==this._requestURL&&this._onURLRedirect){let nt=this._seekHandler.removeURLParameters(Ve.responseURL);this._onURLRedirect(nt)}if(Ve.status!==0&&(Ve.status<200||Ve.status>299))if(this._status=E.kError,this._onError)this._onError(re.HTTP_STATUS_CODE_INVALID,{code:Ve.status,msg:Ve.statusText});else throw new ne("MozChunkedLoader: Http code invalid, "+Ve.status+" "+Ve.statusText);else this._status=E.kBuffering}}_onProgress(Ne){if(this._status===E.kError)return;this._contentLength===null&&Ne.total!==null&&Ne.total!==0&&(this._contentLength=Ne.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let Ve=Ne.target.response,nt=this._range.from+this._receivedLength;this._receivedLength+=Ve.byteLength,this._onDataArrival&&this._onDataArrival(Ve,nt,this._receivedLength)}_onLoadEnd(Ne){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===E.kError)return;this._status=E.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(Ne){this._status=E.kError;let Ve=0,nt=null;if(this._contentLength&&Ne.loaded<this._contentLength?(Ve=re.EARLY_EOF,nt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(Ve=re.EXCEPTION,nt={code:-1,msg:Ne.constructor.name+" "+Ne.type}),this._onError)this._onError(Ve,nt);else throw new ne(nt.msg)}}var he=Ce;class be extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let Ne=new XMLHttpRequest;return Ne.open("GET","https://example.com",!0),Ne.responseType="ms-stream",Ne.responseType==="ms-stream"}catch(Ne){return Log.w("MSStreamLoader",Ne.message),!1}}constructor(Ne,Ve){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=Ne,this._config=Ve,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(Ne,Ve){this._internalOpen(Ne,Ve,!1)}_internalOpen(Ne,Ve,nt){this._dataSource=Ne,nt?this._currentRange=Ve:this._totalRange=Ve;let mt=Ne.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?mt=this._currentRedirectedURL:Ne.redirectedURL!=null&&(mt=Ne.redirectedURL));let _t=this._seekHandler.getConfig(mt,Ve);this._currentRequestURL=_t.url;let Vt=this._reader=new self.MSStreamReader;Vt.onprogress=this._msrOnProgress.bind(this),Vt.onload=this._msrOnLoad.bind(this),Vt.onerror=this._msrOnError.bind(this);let Jt=this._xhr=new XMLHttpRequest;if(Jt.open("GET",_t.url,!0),Jt.responseType="ms-stream",Jt.onreadystatechange=this._xhrOnReadyStateChange.bind(this),Jt.onerror=this._xhrOnError.bind(this),Ne.withCredentials&&(Jt.withCredentials=!0),typeof _t.headers=="object"){let Xt=_t.headers;for(let dn in Xt)Xt.hasOwnProperty(dn)&&Jt.setRequestHeader(dn,Xt[dn])}if(typeof this._config.headers=="object"){let Xt=this._config.headers;for(let dn in Xt)Xt.hasOwnProperty(dn)&&Jt.setRequestHeader(dn,Xt[dn])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,Jt.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(Ne){let Ve=Ne.target;if(Ve.readyState===2)if(Ve.status>=200&&Ve.status<=299){if(this._status=LoaderStatus.kBuffering,Ve.responseURL!=null){let mt=this._seekHandler.removeURLParameters(Ve.responseURL);Ve.responseURL!==this._currentRequestURL&&mt!==this._currentRedirectedURL&&(this._currentRedirectedURL=mt,this._onURLRedirect&&this._onURLRedirect(mt))}let nt=Ve.getResponseHeader("Content-Length");if(nt!=null&&this._contentLength==null){let mt=parseInt(nt);mt>0&&(this._contentLength=mt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:Ve.status,msg:Ve.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+Ve.status+" "+Ve.statusText);else if(Ve.readyState===3&&Ve.status>=200&&Ve.status<=299){this._status=LoaderStatus.kBuffering;let nt=Ve.response;this._reader.readAsArrayBuffer(nt)}}_xhrOnError(Ne){this._status=LoaderStatus.kError;let Ve=LoaderErrors.EXCEPTION,nt={code:-1,msg:Ne.constructor.name+" "+Ne.type};if(this._onError)this._onError(Ve,nt);else throw new RuntimeException(nt.msg)}_msrOnProgress(Ne){let nt=Ne.target.result;if(nt==null){this._doReconnectIfNeeded();return}let mt=nt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=nt.byteLength;let _t=this._totalRange.from+this._receivedLength;this._receivedLength+=mt.byteLength,this._onDataArrival&&this._onDataArrival(mt,_t,this._receivedLength),nt.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${_t+mt.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let Ne={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Ne,!0)}}_msrOnLoad(Ne){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(Ne){this._status=LoaderStatus.kError;let Ve=0,nt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(Ve=LoaderErrors.EARLY_EOF,nt={code:-1,msg:"MSStream meet Early-Eof"}):(Ve=LoaderErrors.EARLY_EOF,nt={code:-1,msg:Ne.constructor.name+" "+Ne.type}),this._onError)this._onError(Ve,nt);else throw new RuntimeException(nt.msg)}}var Ee=null;class Ae extends ce{static isSupported(){try{let Ne=new XMLHttpRequest;return Ne.open("GET","https://example.com",!0),Ne.responseType="arraybuffer",Ne.responseType==="arraybuffer"}catch(Ne){return ae.w("RangeLoader",Ne.message),!1}}constructor(Ne,Ve){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=Ne,this._config=Ve,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new te,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(Ne,Ve){this._dataSource=Ne,this._range=Ve,this._status=E.kConnecting;let nt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(nt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!nt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let Ne=this._currentChunkSizeKB*1024,Ve=this._range.from+this._receivedLength,nt=Ve+Ne;this._contentLength!=null&&nt-this._range.from>=this._contentLength&&(nt=this._range.from+this._contentLength-1),this._currentRequestRange={from:Ve,to:nt},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(Ne,Ve){this._lastTimeLoaded=0;let nt=Ne.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?nt=this._currentRedirectedURL:Ne.redirectedURL!=null&&(nt=Ne.redirectedURL));let mt=this._seekHandler.getConfig(nt,Ve);this._currentRequestURL=mt.url;let _t=this._xhr=new XMLHttpRequest;if(_t.open("GET",mt.url,!0),_t.responseType="arraybuffer",_t.onreadystatechange=this._onReadyStateChange.bind(this),_t.onprogress=this._onProgress.bind(this),_t.onload=this._onLoad.bind(this),_t.onerror=this._onXhrError.bind(this),Ne.withCredentials&&(_t.withCredentials=!0),typeof mt.headers=="object"){let Vt=mt.headers;for(let Jt in Vt)Vt.hasOwnProperty(Jt)&&_t.setRequestHeader(Jt,Vt[Jt])}if(typeof this._config.headers=="object"){let Vt=this._config.headers;for(let Jt in Vt)Vt.hasOwnProperty(Jt)&&_t.setRequestHeader(Jt,Vt[Jt])}_t.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=E.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(Ne){let Ve=Ne.target;if(Ve.readyState===2){if(Ve.responseURL!=null){let nt=this._seekHandler.removeURLParameters(Ve.responseURL);Ve.responseURL!==this._currentRequestURL&&nt!==this._currentRedirectedURL&&(this._currentRedirectedURL=nt,this._onURLRedirect&&this._onURLRedirect(nt))}if(Ve.status>=200&&Ve.status<=299){if(this._waitForTotalLength)return;this._status=E.kBuffering}else if(this._status=E.kError,this._onError)this._onError(re.HTTP_STATUS_CODE_INVALID,{code:Ve.status,msg:Ve.statusText});else throw new ne("RangeLoader: Http code invalid, "+Ve.status+" "+Ve.statusText)}}_onProgress(Ne){if(this._status===E.kError)return;if(this._contentLength===null){let nt=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,nt=!0;let mt=Ne.total;this._internalAbort(),mt!=null&mt!==0&&(this._totalLength=mt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,nt){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let Ve=Ne.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Ne.loaded,this._speedSampler.addBytes(Ve)}_normalizeSpeed(Ne){let Ve=this._chunkSizeKBList,nt=Ve.length-1,mt=0,_t=0,Vt=nt;if(Ne<Ve[0])return Ve[0];for(;_t<=Vt;){if(mt=_t+Math.floor((Vt-_t)/2),mt===nt||Ne>=Ve[mt]&&Ne<Ve[mt+1])return Ve[mt];Ve[mt]<Ne?_t=mt+1:Vt=mt-1}}_onLoad(Ne){if(this._status===E.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let Ve=this._speedSampler.lastSecondKBps;if(Ve===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(Ve=this._speedSampler.currentKBps)),Ve!==0){let Vt=this._normalizeSpeed(Ve);this._currentSpeedNormalized!==Vt&&(this._currentSpeedNormalized=Vt,this._currentChunkSizeKB=Vt)}let nt=Ne.target.response,mt=this._range.from+this._receivedLength;this._receivedLength+=nt.byteLength;let _t=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():_t=!0,this._onDataArrival&&this._onDataArrival(nt,mt,this._receivedLength),_t&&(this._status=E.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(Ne){this._status=E.kError;let Ve=0,nt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(Ve=re.EARLY_EOF,nt={code:-1,msg:"RangeLoader meet Early-Eof"}):(Ve=re.EXCEPTION,nt={code:-1,msg:Ne.constructor.name+" "+Ne.type}),this._onError)this._onError(Ve,nt);else throw new ne(nt.msg)}}var De=Ae;class je extends ce{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(Ne){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(Ne){try{let Ve=this._ws=new self.WebSocket(Ne.url);Ve.binaryType="arraybuffer",Ve.onopen=this._onWebSocketOpen.bind(this),Ve.onclose=this._onWebSocketClose.bind(this),Ve.onmessage=this._onWebSocketMessage.bind(this),Ve.onerror=this._onWebSocketError.bind(this),this._status=E.kConnecting}catch(Ve){this._status=E.kError;let nt={code:Ve.code,msg:Ve.message};if(this._onError)this._onError(re.EXCEPTION,nt);else throw new ne(nt.msg)}}abort(){let Ne=this._ws;Ne&&(Ne.readyState===0||Ne.readyState===1)&&(this._requestAbort=!0,Ne.close()),this._ws=null,this._status=E.kComplete}_onWebSocketOpen(Ne){this._status=E.kBuffering}_onWebSocketClose(Ne){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=E.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(Ne){if(Ne.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Ne.data);else if(Ne.data instanceof Blob){let Ve=new FileReader;Ve.onload=()=>{this._dispatchArrayBuffer(Ve.result)},Ve.readAsArrayBuffer(Ne.data)}else{this._status=E.kError;let Ve={code:-1,msg:"Unsupported WebSocket message type: "+Ne.data.constructor.name};if(this._onError)this._onError(re.EXCEPTION,Ve);else throw new ne(Ve.msg)}}_dispatchArrayBuffer(Ne){let Ve=Ne,nt=this._receivedLength;this._receivedLength+=Ve.byteLength,this._onDataArrival&&this._onDataArrival(Ve,nt,this._receivedLength)}_onWebSocketError(Ne){this._status=E.kError;let Ve={code:Ne.code,msg:Ne.message};if(this._onError)this._onError(re.EXCEPTION,Ve);else throw new ne(Ve.msg)}}var Fe=je;class Re{constructor(Ne){this._zeroStart=Ne||!1}getConfig(Ne,Ve){let nt={};if(Ve.from!==0||Ve.to!==-1){let mt;Ve.to!==-1?mt=`bytes=${Ve.from.toString()}-${Ve.to.toString()}`:mt=`bytes=${Ve.from.toString()}-`,nt.Range=mt}else this._zeroStart&&(nt.Range="bytes=0-");return{url:Ne,headers:nt}}removeURLParameters(Ne){return Ne}}var qe=Re;class Je{constructor(Ne,Ve){this._startName=Ne,this._endName=Ve}getConfig(Ne,Ve){let nt=Ne;if(Ve.from!==0||Ve.to!==-1){let mt=!0;nt.indexOf("?")===-1&&(nt+="?",mt=!1),mt&&(nt+="&"),nt+=`${this._startName}=${Ve.from.toString()}`,Ve.to!==-1&&(nt+=`&${this._endName}=${Ve.to.toString()}`)}return{url:nt,headers:{}}}removeURLParameters(Ne){let Ve=Ne.split("?")[0],nt,mt=Ne.indexOf("?");mt!==-1&&(nt=Ne.substring(mt+1));let _t="";if(nt!=null&&nt.length>0){let Vt=nt.split("&");for(let Jt=0;Jt<Vt.length;Jt++){let Xt=Vt[Jt].split("="),dn=Jt>0;Xt[0]!==this._startName&&Xt[0]!==this._endName&&(dn&&(_t+="&"),_t+=Vt[Jt])}}return _t.length===0?Ve:Ve+"?"+_t}}var He=Je;class ze{constructor(Ne,Ve,nt){this.TAG="IOController",this._config=Ve,this._extraData=nt,this._stashInitialSize=1024*384,Ve.stashInitialSize!=null&&Ve.stashInitialSize>0&&(this._stashInitialSize=Ve.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,Ve.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=Ne,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(Ne.url),this._refTotalLength=Ne.filesize?Ne.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new te,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(Ne){this._extraData=Ne}get onDataArrival(){return this._onDataArrival}set onDataArrival(Ne){this._onDataArrival=Ne}get onSeeked(){return this._onSeeked}set onSeeked(Ne){this._onSeeked=Ne}get onError(){return this._onError}set onError(Ne){this._onError=Ne}get onComplete(){return this._onComplete}set onComplete(Ne){this._onComplete=Ne}get onRedirect(){return this._onRedirect}set onRedirect(Ne){this._onRedirect=Ne}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(Ne){this._onRecoveredEarlyEof=Ne}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===De?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let Ne=this._config;if(Ne.seekType==="range")this._seekHandler=new qe(this._config.rangeLoadZeroStart);else if(Ne.seekType==="param"){let Ve=Ne.seekParamStart||"bstart",nt=Ne.seekParamEnd||"bend";this._seekHandler=new He(Ve,nt)}else if(Ne.seekType==="custom"){if(typeof Ne.customSeekHandler!="function")throw new b("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Ne.customSeekHandler}else throw new b(`Invalid seekType in config: ${Ne.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Fe;else if(_e.isSupported())this._loaderClass=_e;else if(he.isSupported())this._loaderClass=he;else if(De.isSupported())this._loaderClass=De;else throw new ne("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(Ne){this._currentRange={from:0,to:-1},Ne&&(this._currentRange.from=Ne),this._speedSampler.reset(),Ne||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let Ne=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Ne,!0)}}seek(Ne){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Ne,!0)}_internalSeek(Ne,Ve){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Ve),this._loader.destroy(),this._loader=null;let nt={from:Ne,to:-1};this._currentRange={from:nt.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,nt),this._onSeeked&&this._onSeeked()}updateUrl(Ne){if(!Ne||typeof Ne!="string"||Ne.length===0)throw new b("Url must be a non-empty string!");this._dataSource.url=Ne}_expandBuffer(Ne){let Ve=this._stashSize;for(;Ve+1024*1024*1<Ne;)Ve*=2;if(Ve+=1024*1024*1,Ve===this._bufferSize)return;let nt=new ArrayBuffer(Ve);if(this._stashUsed>0){let mt=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(nt,0,Ve).set(mt,0)}this._stashBuffer=nt,this._bufferSize=Ve}_normalizeSpeed(Ne){let Ve=this._speedNormalizeList,nt=Ve.length-1,mt=0,_t=0,Vt=nt;if(Ne<Ve[0])return Ve[0];for(;_t<=Vt;){if(mt=_t+Math.floor((Vt-_t)/2),mt===nt||Ne>=Ve[mt]&&Ne<Ve[mt+1])return Ve[mt];Ve[mt]<Ne?_t=mt+1:Vt=mt-1}}_adjustStashSize(Ne){let Ve=0;this._config.isLive||Ne<512?Ve=Ne:Ne>=512&&Ne<=1024?Ve=Math.floor(Ne*1.5):Ve=Ne*2,Ve>8192&&(Ve=8192);let nt=Ve*1024+1024*1024*1;this._bufferSize<nt&&this._expandBuffer(nt),this._stashSize=Ve*1024}_dispatchChunks(Ne,Ve){return this._currentRange.to=Ve+Ne.byteLength-1,this._onDataArrival(Ne,Ve)}_onURLRedirect(Ne){this._redirectedURL=Ne,this._onRedirect&&this._onRedirect(Ne)}_onContentLengthKnown(Ne){Ne&&this._fullRequestFlag&&(this._totalLength=Ne,this._fullRequestFlag=!1)}_onLoaderChunkArrival(Ne,Ve,nt){if(!this._onDataArrival)throw new x("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(Ne.byteLength);let mt=this._speedSampler.lastSecondKBps;if(mt!==0){let _t=this._normalizeSpeed(mt);this._speedNormalized!==_t&&(this._speedNormalized=_t,this._adjustStashSize(_t))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Ve),this._stashUsed+Ne.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(Ne),this._stashUsed),this._stashUsed+=Ne.byteLength;else{let _t=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let Vt=this._stashBuffer.slice(0,this._stashUsed),Jt=this._dispatchChunks(Vt,this._stashByteStart);if(Jt<Vt.byteLength){if(Jt>0){let Xt=new Uint8Array(Vt,Jt);_t.set(Xt,0),this._stashUsed=Xt.byteLength,this._stashByteStart+=Jt}}else this._stashUsed=0,this._stashByteStart+=Jt;this._stashUsed+Ne.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Ne.byteLength),_t=new Uint8Array(this._stashBuffer,0,this._bufferSize)),_t.set(new Uint8Array(Ne),this._stashUsed),this._stashUsed+=Ne.byteLength}else{let Vt=this._dispatchChunks(Ne,Ve);if(Vt<Ne.byteLength){let Jt=Ne.byteLength-Vt;Jt>this._bufferSize&&(this._expandBuffer(Jt),_t=new Uint8Array(this._stashBuffer,0,this._bufferSize)),_t.set(new Uint8Array(Ne,Vt),0),this._stashUsed+=Jt,this._stashByteStart=Ve+Vt}}}else if(this._stashUsed===0){let _t=this._dispatchChunks(Ne,Ve);if(_t<Ne.byteLength){let Vt=Ne.byteLength-_t;Vt>this._bufferSize&&this._expandBuffer(Vt),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(Ne,_t),0),this._stashUsed+=Vt,this._stashByteStart=Ve+_t}}else{this._stashUsed+Ne.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Ne.byteLength);let _t=new Uint8Array(this._stashBuffer,0,this._bufferSize);_t.set(new Uint8Array(Ne),this._stashUsed),this._stashUsed+=Ne.byteLength;let Vt=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(Vt<this._stashUsed&&Vt>0){let Jt=new Uint8Array(this._stashBuffer,Vt);_t.set(Jt,0)}this._stashUsed-=Vt,this._stashByteStart+=Vt}}_flushStashBuffer(Ne){if(this._stashUsed>0){let Ve=this._stashBuffer.slice(0,this._stashUsed),nt=this._dispatchChunks(Ve,this._stashByteStart),mt=Ve.byteLength-nt;if(nt<Ve.byteLength)if(Ne)ae.w(this.TAG,`${mt} bytes unconsumed data remain when flush buffer, dropped`);else{if(nt>0){let _t=new Uint8Array(this._stashBuffer,0,this._bufferSize),Vt=new Uint8Array(Ve,nt);_t.set(Vt,0),this._stashUsed=Vt.byteLength,this._stashByteStart+=nt}return 0}return this._stashUsed=0,this._stashByteStart=0,mt}return 0}_onLoaderComplete(Ne,Ve){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(Ne,Ve){switch(ae.e(this.TAG,`Loader error, code = ${Ve.code}, msg = ${Ve.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Ne=re.UNRECOVERABLE_EARLY_EOF),Ne){case re.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let nt=this._currentRange.to+1;nt<this._totalLength&&(ae.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(nt,!1));return}Ne=re.UNRECOVERABLE_EARLY_EOF;break}case re.UNRECOVERABLE_EARLY_EOF:case re.CONNECTING_TIMEOUT:case re.HTTP_STATUS_CODE_INVALID:case re.EXCEPTION:break}if(this._onError)this._onError(Ne,Ve);else throw new ne("IOException: "+Ve.msg)}}var Qe=ze;const $e={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function ht(){return Object.assign({},$e)}class Ge{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let Ne=new Qe({},ht()),Ve=Ne.loaderType;return Ne.destroy(),Ve=="fetch-stream-loader"||Ve=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let Ne=new Qe({},ht()),Ve=Ne.loaderType;return Ne.destroy(),Ve}static supportNativeMediaPlayback(Ne){Ge.videoElement==null&&(Ge.videoElement=window.document.createElement("video"));let Ve=Ge.videoElement.canPlayType(Ne);return Ve==="probably"||Ve=="maybe"}static getFeatureList(){let Ne={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Ne.mseFlvPlayback=Ge.supportMSEH264Playback(),Ne.networkStreamIO=Ge.supportNetworkStreamIO(),Ne.networkLoaderName=Ge.getNetworkLoaderTypeName(),Ne.mseLiveFlvPlayback=Ne.mseFlvPlayback&&Ne.networkStreamIO,Ne.nativeMP4H264Playback=Ge.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Ne.nativeWebmVP8Playback=Ge.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Ne.nativeWebmVP9Playback=Ge.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Ne}}var Ue=Ge,et={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class rt{static get forceGlobalTag(){return ae.FORCE_GLOBAL_TAG}static set forceGlobalTag(Ne){ae.FORCE_GLOBAL_TAG=Ne,rt._notifyChange()}static get globalTag(){return ae.GLOBAL_TAG}static set globalTag(Ne){ae.GLOBAL_TAG=Ne,rt._notifyChange()}static get enableAll(){return ae.ENABLE_VERBOSE&&ae.ENABLE_DEBUG&&ae.ENABLE_INFO&&ae.ENABLE_WARN&&ae.ENABLE_ERROR}static set enableAll(Ne){ae.ENABLE_VERBOSE=Ne,ae.ENABLE_DEBUG=Ne,ae.ENABLE_INFO=Ne,ae.ENABLE_WARN=Ne,ae.ENABLE_ERROR=Ne,rt._notifyChange()}static get enableDebug(){return ae.ENABLE_DEBUG}static set enableDebug(Ne){ae.ENABLE_DEBUG=Ne,rt._notifyChange()}static get enableVerbose(){return ae.ENABLE_VERBOSE}static set enableVerbose(Ne){ae.ENABLE_VERBOSE=Ne,rt._notifyChange()}static get enableInfo(){return ae.ENABLE_INFO}static set enableInfo(Ne){ae.ENABLE_INFO=Ne,rt._notifyChange()}static get enableWarn(){return ae.ENABLE_WARN}static set enableWarn(Ne){ae.ENABLE_WARN=Ne,rt._notifyChange()}static get enableError(){return ae.ENABLE_ERROR}static set enableError(Ne){ae.ENABLE_ERROR=Ne,rt._notifyChange()}static getConfig(){return{globalTag:ae.GLOBAL_TAG,forceGlobalTag:ae.FORCE_GLOBAL_TAG,enableVerbose:ae.ENABLE_VERBOSE,enableDebug:ae.ENABLE_DEBUG,enableInfo:ae.ENABLE_INFO,enableWarn:ae.ENABLE_WARN,enableError:ae.ENABLE_ERROR,enableCallback:ae.ENABLE_CALLBACK}}static applyConfig(Ne){ae.GLOBAL_TAG=Ne.globalTag,ae.FORCE_GLOBAL_TAG=Ne.forceGlobalTag,ae.ENABLE_VERBOSE=Ne.enableVerbose,ae.ENABLE_DEBUG=Ne.enableDebug,ae.ENABLE_INFO=Ne.enableInfo,ae.ENABLE_WARN=Ne.enableWarn,ae.ENABLE_ERROR=Ne.enableError,ae.ENABLE_CALLBACK=Ne.enableCallback}static _notifyChange(){let Ne=rt.emitter;if(Ne.listenerCount("change")>0){let Ve=rt.getConfig();Ne.emit("change",Ve)}}static registerListener(Ne){rt.emitter.addListener("change",Ne)}static removeListener(Ne){rt.emitter.removeListener("change",Ne)}static addLogListener(Ne){ae.emitter.addListener("log",Ne),ae.emitter.listenerCount("log")>0&&(ae.ENABLE_CALLBACK=!0,rt._notifyChange())}static removeLogListener(Ne){ae.emitter.removeListener("log",Ne),ae.emitter.listenerCount("log")===0&&(ae.ENABLE_CALLBACK=!1,rt._notifyChange())}}rt.emitter=new(de());var Xe=rt;class ut{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let Ne=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Ve=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&Ne&&Ve}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(Ne){if(this.keyframesIndex==null)return null;let Ve=this.keyframesIndex,nt=this._search(Ve.times,Ne);return{index:nt,milliseconds:Ve.times[nt],fileposition:Ve.filepositions[nt]}}_search(Ne,Ve){let nt=0,mt=Ne.length-1,_t=0,Vt=0,Jt=mt;for(Ve<Ne[0]&&(nt=0,Vt=Jt+1);Vt<=Jt;)if(_t=Vt+Math.floor((Jt-Vt)/2),_t===mt||Ve>=Ne[_t]&&Ve<Ne[_t+1]){nt=_t;break}else Ne[_t]<Ve?Vt=_t+1:Jt=_t-1;return nt}}var lt=ut;function kt(yn,Ne,Ve){let nt=yn;if(Ne+Ve<nt.length){for(;Ve--;)if((nt[++Ne]&192)!==128)return!1;return!0}else return!1}function pt(yn){let Ne=[],Ve=yn,nt=0,mt=yn.length;for(;nt<mt;){if(Ve[nt]<128){Ne.push(String.fromCharCode(Ve[nt])),++nt;continue}else if(!(Ve[nt]<192)){if(Ve[nt]<224){if(kt(Ve,nt,1)){let _t=(Ve[nt]&31)<<6|Ve[nt+1]&63;if(_t>=128){Ne.push(String.fromCharCode(_t&65535)),nt+=2;continue}}}else if(Ve[nt]<240){if(kt(Ve,nt,2)){let _t=(Ve[nt]&15)<<12|(Ve[nt+1]&63)<<6|Ve[nt+2]&63;if(_t>=2048&&(_t&63488)!==55296){Ne.push(String.fromCharCode(_t&65535)),nt+=3;continue}}}else if(Ve[nt]<248&&kt(Ve,nt,3)){let _t=(Ve[nt]&7)<<18|(Ve[nt+1]&63)<<12|(Ve[nt+2]&63)<<6|Ve[nt+3]&63;if(_t>65536&&_t<1114112){_t-=65536,Ne.push(String.fromCharCode(_t>>>10|55296)),Ne.push(String.fromCharCode(_t&1023|56320)),nt+=4;continue}}}Ne.push("\uFFFD"),++nt}return Ne.join("")}var Mt=pt;let wt=function(){let yn=new ArrayBuffer(2);return new DataView(yn).setInt16(0,256,!0),new Int16Array(yn)[0]===256}();class bt{static parseScriptData(Ne,Ve,nt){let mt={};try{let _t=bt.parseValue(Ne,Ve,nt),Vt=bt.parseValue(Ne,Ve+_t.size,nt-_t.size);mt[_t.data]=Vt.data}catch(_t){ae.e("AMF",_t.toString())}return mt}static parseObject(Ne,Ve,nt){if(nt<3)throw new x("Data not enough when parse ScriptDataObject");let mt=bt.parseString(Ne,Ve,nt),_t=bt.parseValue(Ne,Ve+mt.size,nt-mt.size),Vt=_t.objectEnd;return{data:{name:mt.data,value:_t.data},size:mt.size+_t.size,objectEnd:Vt}}static parseVariable(Ne,Ve,nt){return bt.parseObject(Ne,Ve,nt)}static parseString(Ne,Ve,nt){if(nt<2)throw new x("Data not enough when parse String");let _t=new DataView(Ne,Ve,nt).getUint16(0,!wt),Vt;return _t>0?Vt=Mt(new Uint8Array(Ne,Ve+2,_t)):Vt="",{data:Vt,size:2+_t}}static parseLongString(Ne,Ve,nt){if(nt<4)throw new x("Data not enough when parse LongString");let _t=new DataView(Ne,Ve,nt).getUint32(0,!wt),Vt;return _t>0?Vt=Mt(new Uint8Array(Ne,Ve+4,_t)):Vt="",{data:Vt,size:4+_t}}static parseDate(Ne,Ve,nt){if(nt<10)throw new x("Data size invalid when parse Date");let mt=new DataView(Ne,Ve,nt),_t=mt.getFloat64(0,!wt),Vt=mt.getInt16(8,!wt);return _t+=Vt*60*1e3,{data:new Date(_t),size:10}}static parseValue(Ne,Ve,nt){if(nt<1)throw new x("Data not enough when parse Value");let mt=new DataView(Ne,Ve,nt),_t=1,Vt=mt.getUint8(0),Jt,Xt=!1;try{switch(Vt){case 0:Jt=mt.getFloat64(1,!wt),_t+=8;break;case 1:{Jt=!!mt.getUint8(1),_t+=1;break}case 2:{let dn=bt.parseString(Ne,Ve+1,nt-1);Jt=dn.data,_t+=dn.size;break}case 3:{Jt={};let dn=0;for((mt.getUint32(nt-4,!wt)&16777215)===9&&(dn=3);_t<nt-4;){let jn=bt.parseObject(Ne,Ve+_t,nt-_t-dn);if(jn.objectEnd)break;Jt[jn.data.name]=jn.data.value,_t+=jn.size}_t<=nt-3&&(mt.getUint32(_t-1,!wt)&16777215)===9&&(_t+=3);break}case 8:{Jt={},_t+=4;let dn=0;for((mt.getUint32(nt-4,!wt)&16777215)===9&&(dn=3);_t<nt-8;){let jn=bt.parseVariable(Ne,Ve+_t,nt-_t-dn);if(jn.objectEnd)break;Jt[jn.data.name]=jn.data.value,_t+=jn.size}_t<=nt-3&&(mt.getUint32(_t-1,!wt)&16777215)===9&&(_t+=3);break}case 9:Jt=void 0,_t=1,Xt=!0;break;case 10:{Jt=[];let dn=mt.getUint32(1,!wt);_t+=4;for(let jn=0;jn<dn;jn++){let vr=bt.parseValue(Ne,Ve+_t,nt-_t);Jt.push(vr.data),_t+=vr.size}break}case 11:{let dn=bt.parseDate(Ne,Ve+1,nt-1);Jt=dn.data,_t+=dn.size;break}case 12:{let dn=bt.parseString(Ne,Ve+1,nt-1);Jt=dn.data,_t+=dn.size;break}default:_t=nt,ae.w("AMF","Unsupported AMF value type "+Vt)}}catch(dn){ae.e("AMF",dn.toString())}return{data:Jt,size:_t,objectEnd:Xt}}}var gt=bt;class We{constructor(Ne){this.TAG="ExpGolomb",this._buffer=Ne,this._buffer_index=0,this._total_bytes=Ne.byteLength,this._total_bits=Ne.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let Ne=this._total_bytes-this._buffer_index;if(Ne<=0)throw new x("ExpGolomb: _fillCurrentWord() but no bytes available");let Ve=Math.min(4,Ne),nt=new Uint8Array(4);nt.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Ve)),this._current_word=new DataView(nt.buffer).getUint32(0,!1),this._buffer_index+=Ve,this._current_word_bits_left=Ve*8}readBits(Ne){if(Ne>32)throw new b("ExpGolomb: readBits() bits exceeded max 32bits!");if(Ne<=this._current_word_bits_left){let Vt=this._current_word>>>32-Ne;return this._current_word<<=Ne,this._current_word_bits_left-=Ne,Vt}let Ve=this._current_word_bits_left?this._current_word:0;Ve=Ve>>>32-this._current_word_bits_left;let nt=Ne-this._current_word_bits_left;this._fillCurrentWord();let mt=Math.min(nt,this._current_word_bits_left),_t=this._current_word>>>32-mt;return this._current_word<<=mt,this._current_word_bits_left-=mt,Ve=Ve<<mt|_t,Ve}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let Ne;for(Ne=0;Ne<this._current_word_bits_left;Ne++)if(this._current_word&2147483648>>>Ne)return this._current_word<<=Ne,this._current_word_bits_left-=Ne,Ne;return this._fillCurrentWord(),Ne+this._skipLeadingZero()}readUEG(){let Ne=this._skipLeadingZero();return this.readBits(Ne+1)-1}readSEG(){let Ne=this.readUEG();return Ne&1?Ne+1>>>1:-1*(Ne>>>1)}}var Ie=We;class xe{static _ebsp2rbsp(Ne){let Ve=Ne,nt=Ve.byteLength,mt=new Uint8Array(nt),_t=0;for(let Vt=0;Vt<nt;Vt++)Vt>=2&&Ve[Vt]===3&&Ve[Vt-1]===0&&Ve[Vt-2]===0||(mt[_t]=Ve[Vt],_t++);return new Uint8Array(mt.buffer,0,_t)}static parseSPS(Ne){let Ve=xe._ebsp2rbsp(Ne),nt=new Ie(Ve);nt.readByte();let mt=nt.readByte();nt.readByte();let _t=nt.readByte();nt.readUEG();let Vt=xe.getProfileString(mt),Jt=xe.getLevelString(_t),Xt=1,dn=420,jn=[0,420,422,444],vr=8;if((mt===100||mt===110||mt===122||mt===244||mt===44||mt===83||mt===86||mt===118||mt===128||mt===138||mt===144)&&(Xt=nt.readUEG(),Xt===3&&nt.readBits(1),Xt<=3&&(dn=jn[Xt]),vr=nt.readUEG()+8,nt.readUEG(),nt.readBits(1),nt.readBool())){let Un=Xt!==3?8:12;for(let hr=0;hr<Un;hr++)nt.readBool()&&(hr<6?xe._skipScalingList(nt,16):xe._skipScalingList(nt,64))}nt.readUEG();let Nt=nt.readUEG();if(Nt===0)nt.readUEG();else if(Nt===1){nt.readBits(1),nt.readSEG(),nt.readSEG();let Un=nt.readUEG();for(let hr=0;hr<Un;hr++)nt.readSEG()}let jt=nt.readUEG();nt.readBits(1);let xt=nt.readUEG(),Ot=nt.readUEG(),yt=nt.readBits(1);yt===0&&nt.readBits(1),nt.readBits(1);let Lt=0,Ut=0,bn=0,Tn=0;nt.readBool()&&(Lt=nt.readUEG(),Ut=nt.readUEG(),bn=nt.readUEG(),Tn=nt.readUEG());let pn=1,tn=1,ln=0,Rn=!0,nr=0,rr=0;if(nt.readBool()){if(nt.readBool()){let Un=nt.readByte(),hr=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],ar=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Un>0&&Un<16?(pn=hr[Un-1],tn=ar[Un-1]):Un===255&&(pn=nt.readByte()<<8|nt.readByte(),tn=nt.readByte()<<8|nt.readByte())}if(nt.readBool()&&nt.readBool(),nt.readBool()&&(nt.readBits(4),nt.readBool()&&nt.readBits(24)),nt.readBool()&&(nt.readUEG(),nt.readUEG()),nt.readBool()){let Un=nt.readBits(32),hr=nt.readBits(32);Rn=nt.readBool(),nr=hr,rr=Un*2,ln=nr/rr}}let ti=1;(pn!==1||tn!==1)&&(ti=pn/tn);let fn=0,Kt=0;if(Xt===0)fn=1,Kt=2-yt;else{let Un=Xt===3?1:2,hr=Xt===1?2:1;fn=Un,Kt=hr*(2-yt)}let gn=(xt+1)*16,xn=(2-yt)*((Ot+1)*16);gn-=(Lt+Ut)*fn,xn-=(bn+Tn)*Kt;let Ln=Math.ceil(gn*ti);return nt.destroy(),nt=null,{profile_string:Vt,level_string:Jt,bit_depth:vr,ref_frames:jt,chroma_format:dn,chroma_format_string:xe.getChromaFormatString(dn),frame_rate:{fixed:Rn,fps:ln,fps_den:rr,fps_num:nr},sar_ratio:{width:pn,height:tn},codec_size:{width:gn,height:xn},present_size:{width:Ln,height:xn}}}static _skipScalingList(Ne,Ve){let nt=8,mt=8,_t=0;for(let Vt=0;Vt<Ve;Vt++)mt!==0&&(_t=Ne.readSEG(),mt=(nt+_t+256)%256),nt=mt===0?nt:mt}static getProfileString(Ne){switch(Ne){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(Ne){return(Ne/10).toFixed(1)}static getChromaFormatString(Ne){switch(Ne){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var Be=xe,Pe={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function Le(yn){return yn>>>8&255|(yn&255)<<8}function pe(yn){return(yn&4278190080)>>>24|(yn&16711680)>>>8|(yn&65280)<<8|(yn&255)<<24}function we(yn,Ne){return yn[Ne]<<24|yn[Ne+1]<<16|yn[Ne+2]<<8|yn[Ne+3]}class ke{constructor(Ne,Ve){this.TAG="FLVDemuxer",this._config=Ve,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=Ne.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=Ne.hasAudioTrack,this._hasVideo=Ne.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new lt,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let nt=new ArrayBuffer(2);return new DataView(nt).setInt16(0,256,!0),new Int16Array(nt)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(Ne){let Ve=new Uint8Array(Ne),nt={match:!1};if(Ve[0]!==70||Ve[1]!==76||Ve[2]!==86||Ve[3]!==1)return nt;let mt=(Ve[4]&4)>>>2!==0,_t=(Ve[4]&1)!==0,Vt=we(Ve,5);return Vt<9?nt:{match:!0,consumed:Vt,dataOffset:Vt,hasAudioTrack:mt,hasVideoTrack:_t}}bindDataSource(Ne){return Ne.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(Ne){this._onTrackMetadata=Ne}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(Ne){this._onMediaInfo=Ne}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(Ne){this._onMetaDataArrived=Ne}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(Ne){this._onScriptDataArrived=Ne}get onError(){return this._onError}set onError(Ne){this._onError=Ne}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(Ne){this._onDataAvailable=Ne}get timestampBase(){return this._timestampBase}set timestampBase(Ne){this._timestampBase=Ne}get overridedDuration(){return this._duration}set overridedDuration(Ne){this._durationOverrided=!0,this._duration=Ne,this._mediaInfo.duration=Ne}set overridedHasAudio(Ne){this._hasAudioFlagOverrided=!0,this._hasAudio=Ne,this._mediaInfo.hasAudio=Ne}set overridedHasVideo(Ne){this._hasVideoFlagOverrided=!0,this._hasVideo=Ne,this._mediaInfo.hasVideo=Ne}resetMediaInfo(){this._mediaInfo=new lt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(Ne,Ve){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new x("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let nt=0,mt=this._littleEndian;if(Ve===0)if(Ne.byteLength>13)nt=ke.probe(Ne).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,Ve+nt!==this._dataOffset&&ae.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(Ne,nt).getUint32(0,!mt)!==0&&ae.w(this.TAG,"PrevTagSize0 !== 0 !!!"),nt+=4);nt<Ne.byteLength;){this._dispatch=!0;let _t=new DataView(Ne,nt);if(nt+11+4>Ne.byteLength)break;let Vt=_t.getUint8(0),Jt=_t.getUint32(0,!mt)&16777215;if(nt+11+Jt+4>Ne.byteLength)break;if(Vt!==8&&Vt!==9&&Vt!==18){ae.w(this.TAG,`Unsupported tag type ${Vt}, skipped`),nt+=11+Jt+4;continue}let Xt=_t.getUint8(4),dn=_t.getUint8(5),jn=_t.getUint8(6),vr=_t.getUint8(7),Nt=jn|dn<<8|Xt<<16|vr<<24;(_t.getUint32(7,!mt)&16777215)!==0&&ae.w(this.TAG,"Meet tag which has StreamID != 0!");let xt=nt+11;switch(Vt){case 8:this._parseAudioData(Ne,xt,Jt,Nt);break;case 9:this._parseVideoData(Ne,xt,Jt,Nt,Ve+nt);break;case 18:this._parseScriptData(Ne,xt,Jt);break}let Ot=_t.getUint32(11+Jt,!mt);Ot!==11+Jt&&ae.w(this.TAG,`Invalid PrevTagSize ${Ot}`),nt+=11+Jt+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),nt}_parseScriptData(Ne,Ve,nt){let mt=gt.parseScriptData(Ne,Ve,nt);if(mt.hasOwnProperty("onMetaData")){if(mt.onMetaData==null||typeof mt.onMetaData!="object"){ae.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&ae.w(this.TAG,"Found another onMetaData tag!"),this._metadata=mt;let _t=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},_t)),typeof _t.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=_t.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof _t.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=_t.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof _t.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=_t.audiodatarate),typeof _t.videodatarate=="number"&&(this._mediaInfo.videoDataRate=_t.videodatarate),typeof _t.width=="number"&&(this._mediaInfo.width=_t.width),typeof _t.height=="number"&&(this._mediaInfo.height=_t.height),typeof _t.duration=="number"){if(!this._durationOverrided){let Vt=Math.floor(_t.duration*this._timescale);this._duration=Vt,this._mediaInfo.duration=Vt}}else this._mediaInfo.duration=0;if(typeof _t.framerate=="number"){let Vt=Math.floor(_t.framerate*1e3);if(Vt>0){let Jt=Vt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Jt,this._referenceFrameRate.fps_num=Vt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Jt}}if(typeof _t.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let Vt=_t.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Vt),_t.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=_t,ae.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(mt).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},mt))}_parseKeyframesIndex(Ne){let Ve=[],nt=[];for(let mt=1;mt<Ne.times.length;mt++){let _t=this._timestampBase+Math.floor(Ne.times[mt]*1e3);Ve.push(_t),nt.push(Ne.filepositions[mt])}return{times:Ve,filepositions:nt}}_parseAudioData(Ne,Ve,nt,mt){if(nt<=1){ae.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let _t=this._littleEndian,Jt=new DataView(Ne,Ve,nt).getUint8(0),Xt=Jt>>>4;if(Xt!==2&&Xt!==10){this._onError(Pe.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Xt);return}let dn=0,jn=(Jt&12)>>>2;if(jn>=0&&jn<=4)dn=this._flvSoundRateTable[jn];else{this._onError(Pe.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+jn);return}let vr=(Jt&2)>>>1,Nt=Jt&1,jt=this._audioMetadata,xt=this._audioTrack;if(jt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),jt=this._audioMetadata={},jt.type="audio",jt.id=xt.id,jt.timescale=this._timescale,jt.duration=this._duration,jt.audioSampleRate=dn,jt.channelCount=Nt===0?1:2),Xt===10){let Ot=this._parseAACAudioData(Ne,Ve+1,nt-1);if(Ot==null)return;if(Ot.packetType===0){jt.config&&ae.w(this.TAG,"Found another AudioSpecificConfig!");let yt=Ot.data;jt.audioSampleRate=yt.samplingRate,jt.channelCount=yt.channelCount,jt.codec=yt.codec,jt.originalCodec=yt.originalCodec,jt.config=yt.config,jt.refSampleDuration=1024/jt.audioSampleRate*jt.timescale,ae.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",jt);let Lt=this._mediaInfo;Lt.audioCodec=jt.originalCodec,Lt.audioSampleRate=jt.audioSampleRate,Lt.audioChannelCount=jt.channelCount,Lt.hasVideo?Lt.videoCodec!=null&&(Lt.mimeType='video/x-flv; codecs="'+Lt.videoCodec+","+Lt.audioCodec+'"'):Lt.mimeType='video/x-flv; codecs="'+Lt.audioCodec+'"',Lt.isComplete()&&this._onMediaInfo(Lt)}else if(Ot.packetType===1){let yt=this._timestampBase+mt,Lt={unit:Ot.data,length:Ot.data.byteLength,dts:yt,pts:yt};xt.samples.push(Lt),xt.length+=Ot.data.length}else ae.e(this.TAG,`Flv: Unsupported AAC data type ${Ot.packetType}`)}else if(Xt===2){if(!jt.codec){let Ut=this._parseMP3AudioData(Ne,Ve+1,nt-1,!0);if(Ut==null)return;jt.audioSampleRate=Ut.samplingRate,jt.channelCount=Ut.channelCount,jt.codec=Ut.codec,jt.originalCodec=Ut.originalCodec,jt.refSampleDuration=1152/jt.audioSampleRate*jt.timescale,ae.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",jt);let bn=this._mediaInfo;bn.audioCodec=jt.codec,bn.audioSampleRate=jt.audioSampleRate,bn.audioChannelCount=jt.channelCount,bn.audioDataRate=Ut.bitRate,bn.hasVideo?bn.videoCodec!=null&&(bn.mimeType='video/x-flv; codecs="'+bn.videoCodec+","+bn.audioCodec+'"'):bn.mimeType='video/x-flv; codecs="'+bn.audioCodec+'"',bn.isComplete()&&this._onMediaInfo(bn)}let Ot=this._parseMP3AudioData(Ne,Ve+1,nt-1,!1);if(Ot==null)return;let yt=this._timestampBase+mt,Lt={unit:Ot,length:Ot.byteLength,dts:yt,pts:yt};xt.samples.push(Lt),xt.length+=Ot.length}}_parseAACAudioData(Ne,Ve,nt){if(nt<=1){ae.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let mt={},_t=new Uint8Array(Ne,Ve,nt);return mt.packetType=_t[0],_t[0]===0?mt.data=this._parseAACAudioSpecificConfig(Ne,Ve+1,nt-1):mt.data=_t.subarray(1),mt}_parseAACAudioSpecificConfig(Ne,Ve,nt){let mt=new Uint8Array(Ne,Ve,nt),_t=null,Vt=0,Jt=0,Xt=null,dn=0,jn=null;if(Vt=Jt=mt[0]>>>3,dn=(mt[0]&7)<<1|mt[1]>>>7,dn<0||dn>=this._mpegSamplingRates.length){this._onError(Pe.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let vr=this._mpegSamplingRates[dn],Nt=(mt[1]&120)>>>3;if(Nt<0||Nt>=8){this._onError(Pe.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Vt===5&&(jn=(mt[1]&7)<<1|mt[2]>>>7,Xt=(mt[2]&124)>>>2);let jt=self.navigator.userAgent.toLowerCase();return jt.indexOf("firefox")!==-1?dn>=6?(Vt=5,_t=new Array(4),jn=dn-3):(Vt=2,_t=new Array(2),jn=dn):jt.indexOf("android")!==-1?(Vt=2,_t=new Array(2),jn=dn):(Vt=5,jn=dn,_t=new Array(4),dn>=6?jn=dn-3:Nt===1&&(Vt=2,_t=new Array(2),jn=dn)),_t[0]=Vt<<3,_t[0]|=(dn&15)>>>1,_t[1]=(dn&15)<<7,_t[1]|=(Nt&15)<<3,Vt===5&&(_t[1]|=(jn&15)>>>1,_t[2]=(jn&1)<<7,_t[2]|=8,_t[3]=0),{config:_t,samplingRate:vr,channelCount:Nt,codec:"mp4a.40."+Vt,originalCodec:"mp4a.40."+Jt}}_parseMP3AudioData(Ne,Ve,nt,mt){if(nt<4){ae.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let _t=this._littleEndian,Vt=new Uint8Array(Ne,Ve,nt),Jt=null;if(mt){if(Vt[0]!==255)return;let Xt=Vt[1]>>>3&3,dn=(Vt[1]&6)>>1,jn=(Vt[2]&240)>>>4,vr=(Vt[2]&12)>>>2,jt=(Vt[3]>>>6&3)!==3?2:1,xt=0,Ot=0,yt=34,Lt="mp3";switch(Xt){case 0:xt=this._mpegAudioV25SampleRateTable[vr];break;case 2:xt=this._mpegAudioV20SampleRateTable[vr];break;case 3:xt=this._mpegAudioV10SampleRateTable[vr];break}switch(dn){case 1:yt=34,jn<this._mpegAudioL3BitRateTable.length&&(Ot=this._mpegAudioL3BitRateTable[jn]);break;case 2:yt=33,jn<this._mpegAudioL2BitRateTable.length&&(Ot=this._mpegAudioL2BitRateTable[jn]);break;case 3:yt=32,jn<this._mpegAudioL1BitRateTable.length&&(Ot=this._mpegAudioL1BitRateTable[jn]);break}Jt={bitRate:Ot,samplingRate:xt,channelCount:jt,codec:Lt,originalCodec:Lt}}else Jt=Vt;return Jt}_parseVideoData(Ne,Ve,nt,mt,_t){if(nt<=1){ae.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let Vt=new Uint8Array(Ne,Ve,nt)[0],Jt=(Vt&240)>>>4,Xt=Vt&15;if(Xt!==7){this._onError(Pe.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${Xt}`);return}this._parseAVCVideoPacket(Ne,Ve+1,nt-1,mt,_t,Jt)}_parseAVCVideoPacket(Ne,Ve,nt,mt,_t,Vt){if(nt<4){ae.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let Jt=this._littleEndian,Xt=new DataView(Ne,Ve,nt),dn=Xt.getUint8(0),vr=(Xt.getUint32(0,!Jt)&16777215)<<8>>8;if(dn===0)this._parseAVCDecoderConfigurationRecord(Ne,Ve+4,nt-4);else if(dn===1)this._parseAVCVideoData(Ne,Ve+4,nt-4,mt,_t,Vt,vr);else if(dn!==2){this._onError(Pe.FORMAT_ERROR,`Flv: Invalid video packet type ${dn}`);return}}_parseAVCDecoderConfigurationRecord(Ne,Ve,nt){if(nt<7){ae.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let mt=this._videoMetadata,_t=this._videoTrack,Vt=this._littleEndian,Jt=new DataView(Ne,Ve,nt);mt?typeof mt.avcc!="undefined"&&ae.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),mt=this._videoMetadata={},mt.type="video",mt.id=_t.id,mt.timescale=this._timescale,mt.duration=this._duration);let Xt=Jt.getUint8(0),dn=Jt.getUint8(1),jn=Jt.getUint8(2),vr=Jt.getUint8(3);if(Xt!==1||dn===0){this._onError(Pe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Jt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Pe.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Nt=Jt.getUint8(5)&31;if(Nt===0){this._onError(Pe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Nt>1&&ae.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Nt}`);let jt=6;for(let Ot=0;Ot<Nt;Ot++){let yt=Jt.getUint16(jt,!Vt);if(jt+=2,yt===0)continue;let Lt=new Uint8Array(Ne,Ve+jt,yt);jt+=yt;let Ut=Be.parseSPS(Lt);if(Ot!==0)continue;mt.codecWidth=Ut.codec_size.width,mt.codecHeight=Ut.codec_size.height,mt.presentWidth=Ut.present_size.width,mt.presentHeight=Ut.present_size.height,mt.profile=Ut.profile_string,mt.level=Ut.level_string,mt.bitDepth=Ut.bit_depth,mt.chromaFormat=Ut.chroma_format,mt.sarRatio=Ut.sar_ratio,mt.frameRate=Ut.frame_rate,(Ut.frame_rate.fixed===!1||Ut.frame_rate.fps_num===0||Ut.frame_rate.fps_den===0)&&(mt.frameRate=this._referenceFrameRate);let bn=mt.frameRate.fps_den,Tn=mt.frameRate.fps_num;mt.refSampleDuration=mt.timescale*(bn/Tn);let Gn=Lt.subarray(1,4),pn="avc1.";for(let ln=0;ln<3;ln++){let Rn=Gn[ln].toString(16);Rn.length<2&&(Rn="0"+Rn),pn+=Rn}mt.codec=pn;let tn=this._mediaInfo;tn.width=mt.codecWidth,tn.height=mt.codecHeight,tn.fps=mt.frameRate.fps,tn.profile=mt.profile,tn.level=mt.level,tn.refFrames=Ut.ref_frames,tn.chromaFormat=Ut.chroma_format_string,tn.sarNum=mt.sarRatio.width,tn.sarDen=mt.sarRatio.height,tn.videoCodec=pn,tn.hasAudio?tn.audioCodec!=null&&(tn.mimeType='video/x-flv; codecs="'+tn.videoCodec+","+tn.audioCodec+'"'):tn.mimeType='video/x-flv; codecs="'+tn.videoCodec+'"',tn.isComplete()&&this._onMediaInfo(tn)}let xt=Jt.getUint8(jt);if(xt===0){this._onError(Pe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else xt>1&&ae.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${xt}`);jt++;for(let Ot=0;Ot<xt;Ot++){let yt=Jt.getUint16(jt,!Vt);jt+=2,yt!==0&&(jt+=yt)}mt.avcc=new Uint8Array(nt),mt.avcc.set(new Uint8Array(Ne,Ve,nt),0),ae.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",mt)}_parseAVCVideoData(Ne,Ve,nt,mt,_t,Vt,Jt){let Xt=this._littleEndian,dn=new DataView(Ne,Ve,nt),jn=[],vr=0,Nt=0;const jt=this._naluLengthSize;let xt=this._timestampBase+mt,Ot=Vt===1;for(;Nt<nt;){if(Nt+4>=nt){ae.w(this.TAG,`Malformed Nalu near timestamp ${xt}, offset = ${Nt}, dataSize = ${nt}`);break}let yt=dn.getUint32(Nt,!Xt);if(jt===3&&(yt>>>=8),yt>nt-jt){ae.w(this.TAG,`Malformed Nalus near timestamp ${xt}, NaluSize > DataSize!`);return}let Lt=dn.getUint8(Nt+jt)&31;Lt===5&&(Ot=!0);let Ut=new Uint8Array(Ne,Ve+Nt,jt+yt),bn={type:Lt,data:Ut};jn.push(bn),vr+=Ut.byteLength,Nt+=jt+yt}if(jn.length){let yt=this._videoTrack,Lt={units:jn,length:vr,isKeyframe:Ot,dts:xt,cts:Jt,pts:xt+Jt};Ot&&(Lt.fileposition=_t),yt.samples.push(Lt),yt.length+=vr}}}var Me=ke;class Oe{static init(){Oe.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let Ve in Oe.types)Oe.types.hasOwnProperty(Ve)&&(Oe.types[Ve]=[Ve.charCodeAt(0),Ve.charCodeAt(1),Ve.charCodeAt(2),Ve.charCodeAt(3)]);let Ne=Oe.constants={};Ne.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Ne.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Ne.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Ne.STSC=Ne.STCO=Ne.STTS,Ne.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ne.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),Ne.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Ne.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ne.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ne.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(Ne){let Ve=8,nt=null,mt=Array.prototype.slice.call(arguments,1),_t=mt.length;for(let Jt=0;Jt<_t;Jt++)Ve+=mt[Jt].byteLength;nt=new Uint8Array(Ve),nt[0]=Ve>>>24&255,nt[1]=Ve>>>16&255,nt[2]=Ve>>>8&255,nt[3]=Ve&255,nt.set(Ne,4);let Vt=8;for(let Jt=0;Jt<_t;Jt++)nt.set(mt[Jt],Vt),Vt+=mt[Jt].byteLength;return nt}static generateInitSegment(Ne){let Ve=Oe.box(Oe.types.ftyp,Oe.constants.FTYP),nt=Oe.moov(Ne),mt=new Uint8Array(Ve.byteLength+nt.byteLength);return mt.set(Ve,0),mt.set(nt,Ve.byteLength),mt}static moov(Ne){let Ve=Oe.mvhd(Ne.timescale,Ne.duration),nt=Oe.trak(Ne),mt=Oe.mvex(Ne);return Oe.box(Oe.types.moov,Ve,nt,mt)}static mvhd(Ne,Ve){return Oe.box(Oe.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(Ne){return Oe.box(Oe.types.trak,Oe.tkhd(Ne),Oe.mdia(Ne))}static tkhd(Ne){let Ve=Ne.id,nt=Ne.duration,mt=Ne.presentWidth,_t=Ne.presentHeight;return Oe.box(Oe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255,0,0,0,0,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,mt>>>8&255,mt&255,0,0,_t>>>8&255,_t&255,0,0]))}static mdia(Ne){return Oe.box(Oe.types.mdia,Oe.mdhd(Ne),Oe.hdlr(Ne),Oe.minf(Ne))}static mdhd(Ne){let Ve=Ne.timescale,nt=Ne.duration;return Oe.box(Oe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255,85,196,0,0]))}static hdlr(Ne){let Ve=null;return Ne.type==="audio"?Ve=Oe.constants.HDLR_AUDIO:Ve=Oe.constants.HDLR_VIDEO,Oe.box(Oe.types.hdlr,Ve)}static minf(Ne){let Ve=null;return Ne.type==="audio"?Ve=Oe.box(Oe.types.smhd,Oe.constants.SMHD):Ve=Oe.box(Oe.types.vmhd,Oe.constants.VMHD),Oe.box(Oe.types.minf,Ve,Oe.dinf(),Oe.stbl(Ne))}static dinf(){return Oe.box(Oe.types.dinf,Oe.box(Oe.types.dref,Oe.constants.DREF))}static stbl(Ne){return Oe.box(Oe.types.stbl,Oe.stsd(Ne),Oe.box(Oe.types.stts,Oe.constants.STTS),Oe.box(Oe.types.stsc,Oe.constants.STSC),Oe.box(Oe.types.stsz,Oe.constants.STSZ),Oe.box(Oe.types.stco,Oe.constants.STCO))}static stsd(Ne){return Ne.type==="audio"?Ne.codec==="mp3"?Oe.box(Oe.types.stsd,Oe.constants.STSD_PREFIX,Oe.mp3(Ne)):Oe.box(Oe.types.stsd,Oe.constants.STSD_PREFIX,Oe.mp4a(Ne)):Oe.box(Oe.types.stsd,Oe.constants.STSD_PREFIX,Oe.avc1(Ne))}static mp3(Ne){let Ve=Ne.channelCount,nt=Ne.audioSampleRate,mt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ve,0,16,0,0,0,0,nt>>>8&255,nt&255,0,0]);return Oe.box(Oe.types[".mp3"],mt)}static mp4a(Ne){let Ve=Ne.channelCount,nt=Ne.audioSampleRate,mt=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ve,0,16,0,0,0,0,nt>>>8&255,nt&255,0,0]);return Oe.box(Oe.types.mp4a,mt,Oe.esds(Ne))}static esds(Ne){let Ve=Ne.config||[],nt=Ve.length,mt=new Uint8Array([0,0,0,0,3,23+nt,0,1,0,4,15+nt,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([nt]).concat(Ve).concat([6,1,2]));return Oe.box(Oe.types.esds,mt)}static avc1(Ne){let Ve=Ne.avcc,nt=Ne.codecWidth,mt=Ne.codecHeight,_t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,nt>>>8&255,nt&255,mt>>>8&255,mt&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return Oe.box(Oe.types.avc1,_t,Oe.box(Oe.types.avcC,Ve))}static mvex(Ne){return Oe.box(Oe.types.mvex,Oe.trex(Ne))}static trex(Ne){let Ve=Ne.id,nt=new Uint8Array([0,0,0,0,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Oe.box(Oe.types.trex,nt)}static moof(Ne,Ve){return Oe.box(Oe.types.moof,Oe.mfhd(Ne.sequenceNumber),Oe.traf(Ne,Ve))}static mfhd(Ne){let Ve=new Uint8Array([0,0,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255]);return Oe.box(Oe.types.mfhd,Ve)}static traf(Ne,Ve){let nt=Ne.id,mt=Oe.box(Oe.types.tfhd,new Uint8Array([0,0,0,0,nt>>>24&255,nt>>>16&255,nt>>>8&255,nt&255])),_t=Oe.box(Oe.types.tfdt,new Uint8Array([0,0,0,0,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255])),Vt=Oe.sdtp(Ne),Jt=Oe.trun(Ne,Vt.byteLength+16+16+8+16+8+8);return Oe.box(Oe.types.traf,mt,_t,Jt,Vt)}static sdtp(Ne){let Ve=Ne.samples||[],nt=Ve.length,mt=new Uint8Array(4+nt);for(let _t=0;_t<nt;_t++){let Vt=Ve[_t].flags;mt[_t+4]=Vt.isLeading<<6|Vt.dependsOn<<4|Vt.isDependedOn<<2|Vt.hasRedundancy}return Oe.box(Oe.types.sdtp,mt)}static trun(Ne,Ve){let nt=Ne.samples||[],mt=nt.length,_t=12+16*mt,Vt=new Uint8Array(_t);Ve+=8+_t,Vt.set([0,0,15,1,mt>>>24&255,mt>>>16&255,mt>>>8&255,mt&255,Ve>>>24&255,Ve>>>16&255,Ve>>>8&255,Ve&255],0);for(let Jt=0;Jt<mt;Jt++){let Xt=nt[Jt].duration,dn=nt[Jt].size,jn=nt[Jt].flags,vr=nt[Jt].cts;Vt.set([Xt>>>24&255,Xt>>>16&255,Xt>>>8&255,Xt&255,dn>>>24&255,dn>>>16&255,dn>>>8&255,dn&255,jn.isLeading<<2|jn.dependsOn,jn.isDependedOn<<6|jn.hasRedundancy<<4|jn.isNonSync,0,0,vr>>>24&255,vr>>>16&255,vr>>>8&255,vr&255],12+16*Jt)}return Oe.box(Oe.types.trun,Vt)}static mdat(Ne){return Oe.box(Oe.types.mdat,Ne)}}Oe.init();var tt=Oe;class ot{static getSilentFrame(Ne,Ve){if(Ne==="mp4a.40.2"){if(Ve===1)return new Uint8Array([0,200,0,128,35,128]);if(Ve===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Ve===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Ve===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Ve===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(Ve===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(Ve===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(Ve===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(Ve===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var st=ot;class ft{constructor(Ne,Ve,nt,mt,_t){this.dts=Ne,this.pts=Ve,this.duration=nt,this.originalDts=mt,this.isSyncPoint=_t,this.fileposition=null}}class Ft{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(Ne){Ne.isSyncPoint=!0,this.syncPoints.push(Ne)}}class Bt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(Ne){let Ve=this._list;Ne.length!==0&&(Ve.length>0&&Ne[0].originalDts<Ve[Ve.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Ve,Ne))}getLastSyncPointBeforeDts(Ne){if(this._list.length==0)return null;let Ve=this._list,nt=0,mt=Ve.length-1,_t=0,Vt=0,Jt=mt;for(Ne<Ve[0].dts&&(nt=0,Vt=Jt+1);Vt<=Jt;)if(_t=Vt+Math.floor((Jt-Vt)/2),_t===mt||Ne>=Ve[_t].dts&&Ne<Ve[_t+1].dts){nt=_t;break}else Ve[_t].dts<Ne?Vt=_t+1:Jt=_t-1;return this._list[nt]}}class qt{constructor(Ne){this._type=Ne,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(Ne){let Ve=this._list;if(Ve.length===0)return-2;let nt=Ve.length-1,mt=0,_t=0,Vt=nt,Jt=0;if(Ne<Ve[0].originalBeginDts)return Jt=-1,Jt;for(;_t<=Vt;)if(mt=_t+Math.floor((Vt-_t)/2),mt===nt||Ne>Ve[mt].lastSample.originalDts&&Ne<Ve[mt+1].originalBeginDts){Jt=mt;break}else Ve[mt].originalBeginDts<Ne?_t=mt+1:Vt=mt-1;return Jt}_searchNearestSegmentAfter(Ne){return this._searchNearestSegmentBefore(Ne)+1}append(Ne){let Ve=this._list,nt=Ne,mt=this._lastAppendLocation,_t=0;mt!==-1&&mt<Ve.length&&nt.originalBeginDts>=Ve[mt].lastSample.originalDts&&(mt===Ve.length-1||mt<Ve.length-1&&nt.originalBeginDts<Ve[mt+1].originalBeginDts)?_t=mt+1:Ve.length>0&&(_t=this._searchNearestSegmentBefore(nt.originalBeginDts)+1),this._lastAppendLocation=_t,this._list.splice(_t,0,nt)}getLastSegmentBefore(Ne){let Ve=this._searchNearestSegmentBefore(Ne);return Ve>=0?this._list[Ve]:null}getLastSampleBefore(Ne){let Ve=this.getLastSegmentBefore(Ne);return Ve!=null?Ve.lastSample:null}getLastSyncPointBefore(Ne){let Ve=this._searchNearestSegmentBefore(Ne),nt=this._list[Ve].syncPoints;for(;nt.length===0&&Ve>0;)Ve--,nt=this._list[Ve].syncPoints;return nt.length>0?nt[nt.length-1]:null}}class $t{constructor(Ne){this.TAG="MP4Remuxer",this._config=Ne,this._isLive=Ne.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new qt("audio"),this._videoSegmentInfoList=new qt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(Se.chrome&&(Se.version.major<50||Se.version.major===50&&Se.version.build<2661)),this._fillSilentAfterSeek=Se.msedge||Se.msie,this._mp3UseMpegAudio=!Se.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(Ne){return Ne.onDataAvailable=this.remux.bind(this),Ne.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(Ne){this._onInitSegment=Ne}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(Ne){this._onMediaSegment=Ne}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(Ne){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(Ne,Ve){if(!this._onMediaSegment)throw new x("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Ne,Ve),this._remuxVideo(Ve),this._remuxAudio(Ne)}_onTrackMetadataReceived(Ne,Ve){let nt=null,mt="mp4",_t=Ve.codec;if(Ne==="audio")this._audioMeta=Ve,Ve.codec==="mp3"&&this._mp3UseMpegAudio?(mt="mpeg",_t="",nt=new Uint8Array):nt=tt.generateInitSegment(Ve);else if(Ne==="video")this._videoMeta=Ve,nt=tt.generateInitSegment(Ve);else return;if(!this._onInitSegment)throw new x("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Ne,{type:Ne,data:nt.buffer,codec:_t,container:`${Ne}/${mt}`,mediaDuration:Ve.duration})}_calculateDtsBase(Ne,Ve){this._dtsBaseInited||(Ne.samples&&Ne.samples.length&&(this._audioDtsBase=Ne.samples[0].dts),Ve.samples&&Ve.samples.length&&(this._videoDtsBase=Ve.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let Ne=this._videoStashedLastSample,Ve=this._audioStashedLastSample,nt={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Ne!=null&&(nt.samples.push(Ne),nt.length=Ne.length);let mt={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Ve!=null&&(mt.samples.push(Ve),mt.length=Ve.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(nt,!0),this._remuxAudio(mt,!0)}_remuxAudio(Ne,Ve){if(this._audioMeta==null)return;let nt=Ne,mt=nt.samples,_t,Vt=-1,Jt=-1,Xt=-1,dn=this._audioMeta.refSampleDuration,jn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,vr=this._dtsBaseInited&&this._audioNextDts===void 0,Nt=!1;if(!mt||mt.length===0||mt.length===1&&!Ve)return;let jt=0,xt=null,Ot=0;jn?(jt=0,Ot=nt.length):(jt=8,Ot=8+nt.length);let yt=null;if(mt.length>1&&(yt=mt.pop(),Ot-=yt.length),this._audioStashedLastSample!=null){let tn=this._audioStashedLastSample;this._audioStashedLastSample=null,mt.unshift(tn),Ot+=tn.length}yt!=null&&(this._audioStashedLastSample=yt);let Lt=mt[0].dts-this._dtsBase;if(this._audioNextDts)_t=Lt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())_t=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Nt=!0);else{let tn=this._audioSegmentInfoList.getLastSampleBefore(Lt);if(tn!=null){let ln=Lt-(tn.originalDts+tn.duration);ln<=3&&(ln=0);let Rn=tn.dts+tn.duration+ln;_t=Lt-Rn}else _t=0}if(Nt){let tn=Lt-_t,ln=this._videoSegmentInfoList.getLastSegmentBefore(Lt);if(ln!=null&&ln.beginDts<tn){let Rn=st.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Rn){let nr=ln.beginDts,rr=tn-ln.beginDts;ae.v(this.TAG,`InsertPrefixSilentAudio: dts: ${nr}, duration: ${rr}`),mt.unshift({unit:Rn,dts:nr,pts:nr}),Ot+=Rn.byteLength}}else Nt=!1}let Ut=[];for(let tn=0;tn<mt.length;tn++){let ln=mt[tn],Rn=ln.unit,nr=ln.dts-this._dtsBase,rr=nr-_t;Vt===-1&&(Vt=rr);let fr=0;tn!==mt.length-1?fr=mt[tn+1].dts-this._dtsBase-_t-rr:yt!=null?fr=yt.dts-this._dtsBase-_t-rr:Ut.length>=1?fr=Ut[Ut.length-1].duration:fr=Math.floor(dn);let ti=!1,fn=null;if(fr>dn*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!Se.safari){ti=!0;let Kt=Math.abs(fr-dn),gn=Math.ceil(Kt/dn),xn=rr+dn;ae.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
|
dts: ${rr+fr} ms, expected: ${rr+Math.round(dn)} ms, delta: ${Math.round(Kt)} ms, generate: ${gn} frames`);let Ln=st.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Ln==null&&(ae.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Ln=Rn),fn=[];for(let hr=0;hr<gn;hr++){let ar=Math.round(xn);if(fn.length>0){let Cr=fn[fn.length-1];Cr.duration=ar-Cr.dts}let Sr={dts:ar,pts:ar,cts:0,unit:Ln,size:Ln.byteLength,duration:0,originalDts:nr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};fn.push(Sr),Ot+=Sr.size,xn+=dn}let Un=fn[fn.length-1];Un.duration=rr+fr-Un.dts,fr=Math.round(dn)}Ut.push({dts:rr,pts:rr,cts:0,unit:ln.unit,size:ln.unit.byteLength,duration:fr,originalDts:nr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),ti&&Ut.push.apply(Ut,fn)}jn?xt=new Uint8Array(Ot):(xt=new Uint8Array(Ot),xt[0]=Ot>>>24&255,xt[1]=Ot>>>16&255,xt[2]=Ot>>>8&255,xt[3]=Ot&255,xt.set(tt.types.mdat,4));for(let tn=0;tn<Ut.length;tn++){let ln=Ut[tn].unit;xt.set(ln,jt),jt+=ln.byteLength}let bn=Ut[Ut.length-1];Jt=bn.dts+bn.duration,this._audioNextDts=Jt;let Tn=new Ft;Tn.beginDts=Vt,Tn.endDts=Jt,Tn.beginPts=Vt,Tn.endPts=Jt,Tn.originalBeginDts=Ut[0].originalDts,Tn.originalEndDts=bn.originalDts+bn.duration,Tn.firstSample=new ft(Ut[0].dts,Ut[0].pts,Ut[0].duration,Ut[0].originalDts,!1),Tn.lastSample=new ft(bn.dts,bn.pts,bn.duration,bn.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Tn),nt.samples=Ut,nt.sequenceNumber++;let Gn=null;jn?Gn=new Uint8Array:Gn=tt.moof(nt,Vt),nt.samples=[],nt.length=0;let pn={type:"audio",data:this._mergeBoxes(Gn,xt).buffer,sampleCount:Ut.length,info:Tn};jn&&vr&&(pn.timestampOffset=Vt),this._onMediaSegment("audio",pn)}_remuxVideo(Ne,Ve){if(this._videoMeta==null)return;let nt=Ne,mt=nt.samples,_t,Vt=-1,Jt=-1,Xt=-1,dn=-1;if(!mt||mt.length===0||mt.length===1&&!Ve)return;let jn=8,vr=null,Nt=8+Ne.length,jt=null;if(mt.length>1&&(jt=mt.pop(),Nt-=jt.length),this._videoStashedLastSample!=null){let bn=this._videoStashedLastSample;this._videoStashedLastSample=null,mt.unshift(bn),Nt+=bn.length}jt!=null&&(this._videoStashedLastSample=jt);let xt=mt[0].dts-this._dtsBase;if(this._videoNextDts)_t=xt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())_t=0;else{let bn=this._videoSegmentInfoList.getLastSampleBefore(xt);if(bn!=null){let Tn=xt-(bn.originalDts+bn.duration);Tn<=3&&(Tn=0);let Gn=bn.dts+bn.duration+Tn;_t=xt-Gn}else _t=0}let Ot=new Ft,yt=[];for(let bn=0;bn<mt.length;bn++){let Tn=mt[bn],Gn=Tn.dts-this._dtsBase,pn=Tn.isKeyframe,tn=Gn-_t,ln=Tn.cts,Rn=tn+ln;Vt===-1&&(Vt=tn,Xt=Rn);let nr=0;if(bn!==mt.length-1?nr=mt[bn+1].dts-this._dtsBase-_t-tn:jt!=null?nr=jt.dts-this._dtsBase-_t-tn:yt.length>=1?nr=yt[yt.length-1].duration:nr=Math.floor(this._videoMeta.refSampleDuration),pn){let rr=new ft(tn,Rn,nr,Tn.dts,!0);rr.fileposition=Tn.fileposition,Ot.appendSyncPoint(rr)}yt.push({dts:tn,pts:Rn,cts:ln,units:Tn.units,size:Tn.length,isKeyframe:pn,duration:nr,originalDts:Gn,flags:{isLeading:0,dependsOn:pn?2:1,isDependedOn:pn?1:0,hasRedundancy:0,isNonSync:pn?0:1}})}vr=new Uint8Array(Nt),vr[0]=Nt>>>24&255,vr[1]=Nt>>>16&255,vr[2]=Nt>>>8&255,vr[3]=Nt&255,vr.set(tt.types.mdat,4);for(let bn=0;bn<yt.length;bn++){let Tn=yt[bn].units;for(;Tn.length;){let pn=Tn.shift().data;vr.set(pn,jn),jn+=pn.byteLength}}let Lt=yt[yt.length-1];if(Jt=Lt.dts+Lt.duration,dn=Lt.pts+Lt.duration,this._videoNextDts=Jt,Ot.beginDts=Vt,Ot.endDts=Jt,Ot.beginPts=Xt,Ot.endPts=dn,Ot.originalBeginDts=yt[0].originalDts,Ot.originalEndDts=Lt.originalDts+Lt.duration,Ot.firstSample=new ft(yt[0].dts,yt[0].pts,yt[0].duration,yt[0].originalDts,yt[0].isKeyframe),Ot.lastSample=new ft(Lt.dts,Lt.pts,Lt.duration,Lt.originalDts,Lt.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Ot),nt.samples=yt,nt.sequenceNumber++,this._forceFirstIDR){let bn=yt[0].flags;bn.dependsOn=2,bn.isNonSync=0}let Ut=tt.moof(nt,Vt);nt.samples=[],nt.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Ut,vr).buffer,sampleCount:yt.length,info:Ot})}_mergeBoxes(Ne,Ve){let nt=new Uint8Array(Ne.byteLength+Ve.byteLength);return nt.set(Ne,0),nt.set(Ve,Ne.byteLength),nt}}var It=$t,Pt={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class cn{constructor(Ne,Ve){this.TAG="TransmuxingController",this._emitter=new(de()),this._config=Ve,Ne.segments||(Ne.segments=[{duration:Ne.duration,filesize:Ne.filesize,url:Ne.url}]),typeof Ne.cors!="boolean"&&(Ne.cors=!0),typeof Ne.withCredentials!="boolean"&&(Ne.withCredentials=!1),this._mediaDataSource=Ne,this._currentSegmentIndex=0;let nt=0;this._mediaDataSource.segments.forEach(mt=>{mt.timestampBase=nt,nt+=mt.duration,mt.cors=Ne.cors,mt.withCredentials=Ne.withCredentials,Ve.referrerPolicy&&(mt.referrerPolicy=Ve.referrerPolicy)}),!isNaN(nt)&&this._mediaDataSource.duration!==nt&&(this._mediaDataSource.duration=nt),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(Ne,Ve){this._emitter.addListener(Ne,Ve)}off(Ne,Ve){this._emitter.removeListener(Ne,Ve)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(Ne,Ve){this._currentSegmentIndex=Ne;let nt=this._mediaDataSource.segments[Ne],mt=this._ioctl=new Qe(nt,this._config,Ne);mt.onError=this._onIOException.bind(this),mt.onSeeked=this._onIOSeeked.bind(this),mt.onComplete=this._onIOComplete.bind(this),mt.onRedirect=this._onIORedirect.bind(this),mt.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Ve?this._demuxer.bindDataSource(this._ioctl):mt.onDataArrival=this._onInitChunkArrival.bind(this),mt.open(Ve)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(Ne){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let Ve=this._searchSegmentIndexContains(Ne);if(Ve===this._currentSegmentIndex){let nt=this._mediaInfo.segments[Ve];if(nt==null)this._pendingSeekTime=Ne;else{let mt=nt.getNearestKeyframe(Ne);this._remuxer.seek(mt.milliseconds),this._ioctl.seek(mt.fileposition),this._pendingResolveSeekPoint=mt.milliseconds}}else{let nt=this._mediaInfo.segments[Ve];if(nt==null)this._pendingSeekTime=Ne,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Ve);else{let mt=nt.getNearestKeyframe(Ne);this._internalAbort(),this._remuxer.seek(Ne),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Ve].timestampBase,this._loadSegment(Ve,mt.fileposition),this._pendingResolveSeekPoint=mt.milliseconds,this._reportSegmentMediaInfo(Ve)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(Ne){let Ve=this._mediaDataSource.segments,nt=Ve.length-1;for(let mt=0;mt<Ve.length;mt++)if(Ne<Ve[mt].timestampBase){nt=mt-1;break}return nt}_onInitChunkArrival(Ne,Ve){let nt=null,mt=0;if(Ve>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,mt=this._demuxer.parseChunks(Ne,Ve);else if((nt=Me.probe(Ne)).match){this._demuxer=new Me(nt,this._config),this._remuxer||(this._remuxer=new It(this._config));let _t=this._mediaDataSource;_t.duration!=null&&!isNaN(_t.duration)&&(this._demuxer.overridedDuration=_t.duration),typeof _t.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=_t.hasAudio),typeof _t.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=_t.hasVideo),this._demuxer.timestampBase=_t.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),mt=this._demuxer.parseChunks(Ne,Ve)}else nt=null,ae.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Pt.DEMUX_ERROR,Pe.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),mt=0;return mt}_onMediaInfo(Ne){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Ne),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,lt.prototype));let Ve=Object.assign({},Ne);Object.setPrototypeOf(Ve,lt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Ve,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let nt=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(nt)})}_onMetaDataArrived(Ne){this._emitter.emit(Pt.METADATA_ARRIVED,Ne)}_onScriptDataArrived(Ne){this._emitter.emit(Pt.SCRIPTDATA_ARRIVED,Ne)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(Ne){let nt=Ne+1;nt<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(nt)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Pt.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(Ne){let Ve=this._ioctl.extraData;this._mediaDataSource.segments[Ve].redirectedURL=Ne}_onIORecoveredEarlyEof(){this._emitter.emit(Pt.RECOVERED_EARLY_EOF)}_onIOException(Ne,Ve){ae.e(this.TAG,`IOException: type = ${Ne}, code = ${Ve.code}, msg = ${Ve.msg}`),this._emitter.emit(Pt.IO_ERROR,Ne,Ve),this._disableStatisticsReporter()}_onDemuxException(Ne,Ve){ae.e(this.TAG,`DemuxException: type = ${Ne}, info = ${Ve}`),this._emitter.emit(Pt.DEMUX_ERROR,Ne,Ve)}_onRemuxerInitSegmentArrival(Ne,Ve){this._emitter.emit(Pt.INIT_SEGMENT,Ne,Ve)}_onRemuxerMediaSegmentArrival(Ne,Ve){if(this._pendingSeekTime==null&&(this._emitter.emit(Pt.MEDIA_SEGMENT,Ne,Ve),this._pendingResolveSeekPoint!=null&&Ne==="video")){let nt=Ve.info.syncPoints,mt=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,Se.safari&&nt.length>0&&nt[0].originalDts===mt&&(mt=nt[0].pts),this._emitter.emit(Pt.RECOMMEND_SEEKPOINT,mt)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(Ne){let Ve=this._mediaInfo.segments[Ne],nt=Object.assign({},Ve);nt.duration=this._mediaInfo.duration,nt.segmentCount=this._mediaInfo.segmentCount,delete nt.segments,delete nt.keyframesIndex,this._emitter.emit(Pt.MEDIA_INFO,nt)}_reportStatisticsInfo(){let Ne={};Ne.url=this._ioctl.currentURL,Ne.hasRedirect=this._ioctl.hasRedirect,Ne.hasRedirect&&(Ne.redirectedURL=this._ioctl.currentRedirectedURL),Ne.speed=this._ioctl.currentSpeed,Ne.loaderType=this._ioctl.loaderType,Ne.currentSegmentIndex=this._currentSegmentIndex,Ne.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Pt.STATISTICS_INFO,Ne)}}var Sn=cn,wn=function(yn){let Ne="TransmuxingWorker",Ve=null,nt=Ot.bind(this);ie.install(),yn.addEventListener("message",function(yt){switch(yt.data.cmd){case"init":Ve=new Sn(yt.data.param[0],yt.data.param[1]),Ve.on(Pt.IO_ERROR,Nt.bind(this)),Ve.on(Pt.DEMUX_ERROR,jt.bind(this)),Ve.on(Pt.INIT_SEGMENT,mt.bind(this)),Ve.on(Pt.MEDIA_SEGMENT,_t.bind(this)),Ve.on(Pt.LOADING_COMPLETE,Vt.bind(this)),Ve.on(Pt.RECOVERED_EARLY_EOF,Jt.bind(this)),Ve.on(Pt.MEDIA_INFO,Xt.bind(this)),Ve.on(Pt.METADATA_ARRIVED,dn.bind(this)),Ve.on(Pt.SCRIPTDATA_ARRIVED,jn.bind(this)),Ve.on(Pt.STATISTICS_INFO,vr.bind(this)),Ve.on(Pt.RECOMMEND_SEEKPOINT,xt.bind(this));break;case"destroy":Ve&&(Ve.destroy(),Ve=null),yn.postMessage({msg:"destroyed"});break;case"start":Ve.start();break;case"stop":Ve.stop();break;case"seek":Ve.seek(yt.data.param);break;case"pause":Ve.pause();break;case"resume":Ve.resume();break;case"logging_config":{let Lt=yt.data.param;Xe.applyConfig(Lt),Lt.enableCallback===!0?Xe.addLogListener(nt):Xe.removeLogListener(nt);break}}});function mt(yt,Lt){let Ut={msg:Pt.INIT_SEGMENT,data:{type:yt,data:Lt}};yn.postMessage(Ut,[Lt.data])}function _t(yt,Lt){let Ut={msg:Pt.MEDIA_SEGMENT,data:{type:yt,data:Lt}};yn.postMessage(Ut,[Lt.data])}function Vt(){let yt={msg:Pt.LOADING_COMPLETE};yn.postMessage(yt)}function Jt(){let yt={msg:Pt.RECOVERED_EARLY_EOF};yn.postMessage(yt)}function Xt(yt){let Lt={msg:Pt.MEDIA_INFO,data:yt};yn.postMessage(Lt)}function dn(yt){let Lt={msg:Pt.METADATA_ARRIVED,data:yt};yn.postMessage(Lt)}function jn(yt){let Lt={msg:Pt.SCRIPTDATA_ARRIVED,data:yt};yn.postMessage(Lt)}function vr(yt){let Lt={msg:Pt.STATISTICS_INFO,data:yt};yn.postMessage(Lt)}function Nt(yt,Lt){yn.postMessage({msg:Pt.IO_ERROR,data:{type:yt,info:Lt}})}function jt(yt,Lt){yn.postMessage({msg:Pt.DEMUX_ERROR,data:{type:yt,info:Lt}})}function xt(yt){yn.postMessage({msg:Pt.RECOMMEND_SEEKPOINT,data:yt})}function Ot(yt,Lt){yn.postMessage({msg:"logcat_callback",data:{type:yt,logcat:Lt}})}};class At{constructor(Ne,Ve){if(this.TAG="Transmuxer",this._emitter=new(de()),Ve.enableWorker&&typeof Worker!="undefined")try{let nt=oe(82059);this._worker=nt(wn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[Ne,Ve]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Xe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Xe.getConfig()})}catch(nt){ae.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Sn(Ne,Ve)}else this._controller=new Sn(Ne,Ve);if(this._controller){let nt=this._controller;nt.on(Pt.IO_ERROR,this._onIOError.bind(this)),nt.on(Pt.DEMUX_ERROR,this._onDemuxError.bind(this)),nt.on(Pt.INIT_SEGMENT,this._onInitSegment.bind(this)),nt.on(Pt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),nt.on(Pt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),nt.on(Pt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),nt.on(Pt.MEDIA_INFO,this._onMediaInfo.bind(this)),nt.on(Pt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),nt.on(Pt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),nt.on(Pt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),nt.on(Pt.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Xe.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(Ne,Ve){this._emitter.addListener(Ne,Ve)}off(Ne,Ve){this._emitter.removeListener(Ne,Ve)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(Ne){this._worker?this._worker.postMessage({cmd:"seek",param:Ne}):this._controller.seek(Ne)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(Ne,Ve){Promise.resolve().then(()=>{this._emitter.emit(Pt.INIT_SEGMENT,Ne,Ve)})}_onMediaSegment(Ne,Ve){Promise.resolve().then(()=>{this._emitter.emit(Pt.MEDIA_SEGMENT,Ne,Ve)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Pt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Pt.RECOVERED_EARLY_EOF)})}_onMediaInfo(Ne){Promise.resolve().then(()=>{this._emitter.emit(Pt.MEDIA_INFO,Ne)})}_onMetaDataArrived(Ne){Promise.resolve().then(()=>{this._emitter.emit(Pt.METADATA_ARRIVED,Ne)})}_onScriptDataArrived(Ne){Promise.resolve().then(()=>{this._emitter.emit(Pt.SCRIPTDATA_ARRIVED,Ne)})}_onStatisticsInfo(Ne){Promise.resolve().then(()=>{this._emitter.emit(Pt.STATISTICS_INFO,Ne)})}_onIOError(Ne,Ve){Promise.resolve().then(()=>{this._emitter.emit(Pt.IO_ERROR,Ne,Ve)})}_onDemuxError(Ne,Ve){Promise.resolve().then(()=>{this._emitter.emit(Pt.DEMUX_ERROR,Ne,Ve)})}_onRecommendSeekpoint(Ne){Promise.resolve().then(()=>{this._emitter.emit(Pt.RECOMMEND_SEEKPOINT,Ne)})}_onLoggingConfigChanged(Ne){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Ne})}_onWorkerMessage(Ne){let Ve=Ne.data,nt=Ve.data;if(Ve.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Ve.msg){case Pt.INIT_SEGMENT:case Pt.MEDIA_SEGMENT:this._emitter.emit(Ve.msg,nt.type,nt.data);break;case Pt.LOADING_COMPLETE:case Pt.RECOVERED_EARLY_EOF:this._emitter.emit(Ve.msg);break;case Pt.MEDIA_INFO:Object.setPrototypeOf(nt,lt.prototype),this._emitter.emit(Ve.msg,nt);break;case Pt.METADATA_ARRIVED:case Pt.SCRIPTDATA_ARRIVED:case Pt.STATISTICS_INFO:this._emitter.emit(Ve.msg,nt);break;case Pt.IO_ERROR:case Pt.DEMUX_ERROR:this._emitter.emit(Ve.msg,nt.type,nt.info);break;case Pt.RECOMMEND_SEEKPOINT:this._emitter.emit(Ve.msg,nt);break;case"logcat_callback":ae.emitter.emit("log",nt.type,nt.logcat);break;default:break}}}var Gt=At,vn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Nn{constructor(Ne){this.TAG="MSEController",this._config=Ne,this._emitter=new(de()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Bt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(Ne,Ve){this._emitter.addListener(Ne,Ve)}off(Ne,Ve){this._emitter.removeListener(Ne,Ve)}attachMediaElement(Ne){if(this._mediaSource)throw new x("MediaSource has been attached to an HTMLMediaElement!");let Ve=this._mediaSource=new window.MediaSource;Ve.addEventListener("sourceopen",this.e.onSourceOpen),Ve.addEventListener("sourceended",this.e.onSourceEnded),Ve.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Ne,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Ne.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let Ne=this._mediaSource;for(let Ve in this._sourceBuffers){let nt=this._pendingSegments[Ve];nt.splice(0,nt.length),this._pendingSegments[Ve]=null,this._pendingRemoveRanges[Ve]=null,this._lastInitSegments[Ve]=null;let mt=this._sourceBuffers[Ve];if(mt){if(Ne.readyState!=="closed"){try{Ne.removeSourceBuffer(mt)}catch(_t){ae.e(this.TAG,_t.message)}mt.removeEventListener("error",this.e.onSourceBufferError),mt.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Ve]=null,this._sourceBuffers[Ve]=null}}if(Ne.readyState==="open")try{Ne.endOfStream()}catch(Ve){ae.e(this.TAG,Ve.message)}Ne.removeEventListener("sourceopen",this.e.onSourceOpen),Ne.removeEventListener("sourceended",this.e.onSourceEnded),Ne.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(Ne,Ve){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Ne),this._pendingSegments[Ne.type].push(Ne);return}let nt=Ne,mt=`${nt.container}`;nt.codec&&nt.codec.length>0&&(mt+=`;codecs=${nt.codec}`);let _t=!1;if(ae.v(this.TAG,"Received Initialization Segment, mimeType: "+mt),this._lastInitSegments[nt.type]=nt,mt!==this._mimeTypes[nt.type]){if(this._mimeTypes[nt.type])ae.v(this.TAG,`Notice: ${nt.type} mimeType changed, origin: ${this._mimeTypes[nt.type]}, target: ${mt}`);else{_t=!0;try{let Vt=this._sourceBuffers[nt.type]=this._mediaSource.addSourceBuffer(mt);Vt.addEventListener("error",this.e.onSourceBufferError),Vt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Vt){ae.e(this.TAG,Vt.message),this._emitter.emit(vn.ERROR,{code:Vt.code,msg:Vt.message});return}}this._mimeTypes[nt.type]=mt}Ve||this._pendingSegments[nt.type].push(nt),_t||this._sourceBuffers[nt.type]&&!this._sourceBuffers[nt.type].updating&&this._doAppendSegments(),Se.safari&&nt.container==="audio/mpeg"&&nt.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=nt.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(Ne){let Ve=Ne;this._pendingSegments[Ve.type].push(Ve),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let nt=this._sourceBuffers[Ve.type];nt&&!nt.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(Ne){for(let Ve in this._sourceBuffers){if(!this._sourceBuffers[Ve])continue;let nt=this._sourceBuffers[Ve];if(this._mediaSource.readyState==="open")try{nt.abort()}catch(_t){ae.e(this.TAG,_t.message)}this._idrList.clear();let mt=this._pendingSegments[Ve];if(mt.splice(0,mt.length),this._mediaSource.readyState!=="closed"){for(let _t=0;_t<nt.buffered.length;_t++){let Vt=nt.buffered.start(_t),Jt=nt.buffered.end(_t);this._pendingRemoveRanges[Ve].push({start:Vt,end:Jt})}if(nt.updating||this._doRemoveRanges(),Se.safari){let _t=this._lastInitSegments[Ve];_t&&(this._pendingSegments[Ve].push(_t),nt.updating||this._doAppendSegments())}}}}endOfStream(){let Ne=this._mediaSource,Ve=this._sourceBuffers;if(!Ne||Ne.readyState!=="open"){Ne&&Ne.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Ve.video&&Ve.video.updating||Ve.audio&&Ve.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Ne.endOfStream())}getNearestKeyframe(Ne){return this._idrList.getLastSyncPointBeforeDts(Ne)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let Ne=this._mediaElement.currentTime;for(let Ve in this._sourceBuffers){let nt=this._sourceBuffers[Ve];if(nt){let mt=nt.buffered;if(mt.length>=1&&Ne-mt.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let Ne=this._mediaElement.currentTime;for(let Ve in this._sourceBuffers){let nt=this._sourceBuffers[Ve];if(nt){let mt=nt.buffered,_t=!1;for(let Vt=0;Vt<mt.length;Vt++){let Jt=mt.start(Vt),Xt=mt.end(Vt);if(Jt<=Ne&&Ne<Xt+3){if(Ne-Jt>=this._config.autoCleanupMaxBackwardDuration){_t=!0;let dn=Ne-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Ve].push({start:Jt,end:dn})}}else Xt<Ne&&(_t=!0,this._pendingRemoveRanges[Ve].push({start:Jt,end:Xt}))}_t&&!nt.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let Ne=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||Ne.video&&Ne.video.updating||Ne.audio&&Ne.audio.updating)return;let Ve=this._mediaSource.duration,nt=this._pendingMediaDuration;nt>0&&(isNaN(Ve)||nt>Ve)&&(ae.v(this.TAG,`Update MediaSource duration from ${Ve} to ${nt}`),this._mediaSource.duration=nt),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let Ne in this._pendingRemoveRanges){if(!this._sourceBuffers[Ne]||this._sourceBuffers[Ne].updating)continue;let Ve=this._sourceBuffers[Ne],nt=this._pendingRemoveRanges[Ne];for(;nt.length&&!Ve.updating;){let mt=nt.shift();Ve.remove(mt.start,mt.end)}}}_doAppendSegments(){let Ne=this._pendingSegments;for(let Ve in Ne)if(!(!this._sourceBuffers[Ve]||this._sourceBuffers[Ve].updating)&&Ne[Ve].length>0){let nt=Ne[Ve].shift();if(nt.timestampOffset){let mt=this._sourceBuffers[Ve].timestampOffset,_t=nt.timestampOffset/1e3;Math.abs(mt-_t)>.1&&(ae.v(this.TAG,`Update MPEG audio timestampOffset from ${mt} to ${_t}`),this._sourceBuffers[Ve].timestampOffset=_t),delete nt.timestampOffset}if(!nt.data||nt.data.byteLength===0)continue;try{this._sourceBuffers[Ve].appendBuffer(nt.data),this._isBufferFull=!1,Ve==="video"&&nt.hasOwnProperty("info")&&this._idrList.appendArray(nt.info.syncPoints)}catch(mt){this._pendingSegments[Ve].unshift(nt),mt.code===22?(this._isBufferFull||this._emitter.emit(vn.BUFFER_FULL),this._isBufferFull=!0):(ae.e(this.TAG,mt.message),this._emitter.emit(vn.ERROR,{code:mt.code,msg:mt.message}))}}}_onSourceOpen(){if(ae.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let Ne=this._pendingSourceBufferInit;for(;Ne.length;){let Ve=Ne.shift();this.appendInitSegment(Ve,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(vn.SOURCE_OPEN)}_onSourceEnded(){ae.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){ae.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let Ne=this._pendingSegments;return Ne.video.length>0||Ne.audio.length>0}_hasPendingRemoveRanges(){let Ne=this._pendingRemoveRanges;return Ne.video.length>0||Ne.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(vn.UPDATE_END)}_onSourceBufferError(Ne){ae.e(this.TAG,`SourceBuffer Error: ${Ne}`)}}var Yn=Nn;const Vn={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},ir={NETWORK_EXCEPTION:re.EXCEPTION,NETWORK_STATUS_CODE_INVALID:re.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:re.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:re.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:Pe.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Pe.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Pe.CODEC_UNSUPPORTED};class Mn{constructor(Ne,Ve){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(de()),this._config=ht(),typeof Ve=="object"&&Object.assign(this._config,Ve),Ne.type.toLowerCase()!=="flv")throw new b("FlvPlayer requires an flv MediaDataSource input!");Ne.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=Ne,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let nt=Se.chrome&&(Se.version.major<50||Se.version.major===50&&Se.version.build<2661);this._alwaysSeekKeyframe=!!(nt||Se.msedge||Se.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(Ne,Ve){Ne===et.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(et.MEDIA_INFO,this.mediaInfo)}):Ne===et.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(et.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(Ne,Ve)}off(Ne,Ve){this._emitter.removeListener(Ne,Ve)}attachMediaElement(Ne){if(this._mediaElement=Ne,Ne.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Ne.addEventListener("seeking",this.e.onvSeeking),Ne.addEventListener("canplay",this.e.onvCanPlay),Ne.addEventListener("stalled",this.e.onvStalled),Ne.addEventListener("progress",this.e.onvProgress),this._msectl=new Yn(this._config),this._msectl.on(vn.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(vn.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(vn.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(vn.ERROR,Ve=>{this._emitter.emit(et.ERROR,Vn.MEDIA_ERROR,ir.MEDIA_MSE_ERROR,Ve)}),this._msectl.attachMediaElement(Ne),this._pendingSeekTime!=null)try{Ne.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Ve){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new x("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new x("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Gt(this._mediaDataSource,this._config),this._transmuxer.on(Pt.INIT_SEGMENT,(Ne,Ve)=>{this._msectl.appendInitSegment(Ve)}),this._transmuxer.on(Pt.MEDIA_SEGMENT,(Ne,Ve)=>{if(this._msectl.appendMediaSegment(Ve),this._config.lazyLoad&&!this._config.isLive){let nt=this._mediaElement.currentTime;Ve.info.endDts>=(nt+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(ae.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Pt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(et.LOADING_COMPLETE)}),this._transmuxer.on(Pt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(et.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Pt.IO_ERROR,(Ne,Ve)=>{this._emitter.emit(et.ERROR,Vn.NETWORK_ERROR,Ne,Ve)}),this._transmuxer.on(Pt.DEMUX_ERROR,(Ne,Ve)=>{this._emitter.emit(et.ERROR,Vn.MEDIA_ERROR,Ne,{code:-1,msg:Ve})}),this._transmuxer.on(Pt.MEDIA_INFO,Ne=>{this._mediaInfo=Ne,this._emitter.emit(et.MEDIA_INFO,Object.assign({},Ne))}),this._transmuxer.on(Pt.METADATA_ARRIVED,Ne=>{this._emitter.emit(et.METADATA_ARRIVED,Ne)}),this._transmuxer.on(Pt.SCRIPTDATA_ARRIVED,Ne=>{this._emitter.emit(et.SCRIPTDATA_ARRIVED,Ne)}),this._transmuxer.on(Pt.STATISTICS_INFO,Ne=>{this._statisticsInfo=this._fillStatisticsInfo(Ne),this._emitter.emit(et.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Pt.RECOMMEND_SEEKPOINT,Ne=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ne/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(Ne){this._mediaElement.volume=Ne}get muted(){return this._mediaElement.muted}set muted(Ne){this._mediaElement.muted=Ne}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(Ne){this._mediaElement?this._internalSeek(Ne):this._pendingSeekTime=Ne}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(Ne){if(Ne.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Ne;let Ve=!0,nt=0,mt=0;if(this._mediaElement.getVideoPlaybackQuality){let _t=this._mediaElement.getVideoPlaybackQuality();nt=_t.totalVideoFrames,mt=_t.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(nt=this._mediaElement.webkitDecodedFrameCount,mt=this._mediaElement.webkitDroppedFrameCount):Ve=!1;return Ve&&(Ne.decodedFrames=nt,Ne.droppedFrames=mt),Ne}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let Ne=this._mediaElement.buffered,Ve=this._mediaElement.currentTime,nt=0,mt=0;for(let _t=0;_t<Ne.length;_t++){let Vt=Ne.start(_t),Jt=Ne.end(_t);if(Vt<=Ve&&Ve<Jt){nt=Vt,mt=Jt;break}}mt>=Ve+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(ae.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){ae.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let Ne=this._mediaElement.currentTime,Ve=this._mediaElement.buffered,nt=!1;for(let mt=0;mt<Ve.length;mt++){let _t=Ve.start(mt),Vt=Ve.end(mt);if(Ne>=_t&&Ne<Vt){Ne>=Vt-this._config.lazyLoadRecoverDuration&&(nt=!0);break}}nt&&(window.clearInterval(this._progressChecker),this._progressChecker=null,nt&&(ae.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(Ne){let Ve=this._mediaElement.buffered;for(let nt=0;nt<Ve.length;nt++){let mt=Ve.start(nt),_t=Ve.end(nt);if(Ne>=mt&&Ne<_t)return!0}return!1}_internalSeek(Ne){let Ve=this._isTimepointBuffered(Ne),nt=!1,mt=0;if(Ne<1&&this._mediaElement.buffered.length>0){let _t=this._mediaElement.buffered.start(0);(_t<1&&Ne<_t||Se.safari)&&(nt=!0,mt=Se.safari?.1:_t)}if(nt)this._requestSetTime=!0,this._mediaElement.currentTime=mt;else if(Ve){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Ne;else{let _t=this._msectl.getNearestKeyframe(Math.floor(Ne*1e3));this._requestSetTime=!0,_t!=null?this._mediaElement.currentTime=_t.dts/1e3:this._mediaElement.currentTime=Ne}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Ne),this._transmuxer.seek(Math.floor(Ne*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ne)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let Ne=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Ne)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Ne),this._transmuxer.seek(Math.floor(Ne*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ne))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(Ne){let Ve=this._mediaElement;if(Ne||!this._receivedCanPlay||Ve.readyState<2){let nt=Ve.buffered;nt.length>0&&Ve.currentTime<nt.start(0)&&(ae.w(this.TAG,`Playback seems stuck at ${Ve.currentTime}, seek to ${nt.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=nt.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(Ne){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(Ne){let Ve=this._mediaElement.currentTime,nt=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Ve<1&&nt.length>0){let mt=nt.start(0);if(mt<1&&Ve<mt||Se.safari){this._requestSetTime=!0,this._mediaElement.currentTime=Se.safari?.1:mt;return}}if(this._isTimepointBuffered(Ve)){if(this._alwaysSeekKeyframe){let mt=this._msectl.getNearestKeyframe(Math.floor(Ve*1e3));mt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=mt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Ve,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(Ne){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(Ne){this._checkAndResumeStuckPlayback(!0)}_onvProgress(Ne){this._checkAndResumeStuckPlayback()}}var qn=Mn;class En{constructor(Ne,Ve){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(de()),this._config=ht(),typeof Ve=="object"&&Object.assign(this._config,Ve),Ne.type.toLowerCase()==="flv")throw new b("NativePlayer does't support flv MediaDataSource input!");if(Ne.hasOwnProperty("segments"))throw new b(`NativePlayer(${Ne.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=Ne,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(Ne,Ve){Ne===et.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(et.MEDIA_INFO,this.mediaInfo)}):Ne===et.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(et.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(Ne,Ve)}off(Ne,Ve){this._emitter.removeListener(Ne,Ve)}attachMediaElement(Ne){if(this._mediaElement=Ne,Ne.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Ne.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Ve){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new x("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(Ne){this._mediaElement.volume=Ne}get muted(){return this._mediaElement.muted}set muted(Ne){this._mediaElement.muted=Ne}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(Ne){this._mediaElement?this._mediaElement.currentTime=Ne:this._pendingSeekTime=Ne}get mediaInfo(){let Ve={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(Ve.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Ve.width=this._mediaElement.videoWidth,Ve.height=this._mediaElement.videoHeight)),Ve}get statisticsInfo(){let Ne={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Ne;let Ve=!0,nt=0,mt=0;if(this._mediaElement.getVideoPlaybackQuality){let _t=this._mediaElement.getVideoPlaybackQuality();nt=_t.totalVideoFrames,mt=_t.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(nt=this._mediaElement.webkitDecodedFrameCount,mt=this._mediaElement.webkitDroppedFrameCount):Ve=!1;return Ve&&(Ne.decodedFrames=nt,Ne.droppedFrames=mt),Ne}_onvLoadedMetadata(Ne){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(et.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(et.STATISTICS_INFO,this.statisticsInfo)}}var Hn=En;ie.install();function Qn(yn,Ne){let Ve=yn;if(Ve==null||typeof Ve!="object")throw new b("MediaDataSource must be an javascript object!");if(!Ve.hasOwnProperty("type"))throw new b("MediaDataSource must has type field to indicate video file type!");switch(Ve.type){case"flv":return new qn(Ve,Ne);default:return new Hn(Ve,Ne)}}function dr(){return Ue.supportMSEH264Playback()}function On(){return Ue.getFeatureList()}let $n={};$n.createPlayer=Qn,$n.isSupported=dr,$n.getFeatureList=On,$n.BaseLoader=ce,$n.LoaderStatus=E,$n.LoaderErrors=re,$n.Events=et,$n.ErrorTypes=Vn,$n.ErrorDetails=ir,$n.FlvPlayer=qn,$n.NativePlayer=Hn,$n.LoggingControl=Xe,Object.defineProperty($n,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Kn=$n},93125:function(rn,Tt,oe){(function(y){if(1)window.OSS=y(),rn.exports=y();else var ie})(function(){var y;return function(){function ie(fe,de,ue){function ae(ne,x){if(!de[ne]){if(!fe[ne]){var b=void 0;if(!x&&b)return require(ne,!0);if(se)return se(ne,!0);var ee=new Error("Cannot find module '"+ne+"'");throw ee.code="MODULE_NOT_FOUND",ee}var E=de[ne]={exports:{}};fe[ne][0].call(E.exports,function(re){return ae(fe[ne][1][re]||re)},E,E.exports,ie,fe,de,ue)}return de[ne].exports}for(var se=void 0,te=0;te<ue.length;te++)ae(ue[te]);return ae}return ie}()({1:[function(ie,fe,de){"use strict";var ue=ie("./browser/client");ue.Buffer=ie("buffer").Buffer,ue.co=ie("co"),ue.urllib=ie("../shims/xhr"),ue.version=ie("./browser/version").version,fe.exports=ue},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(ie,fe,de){(function(ue,ae){"use strict";function se(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}function te(Ue,Ke){return Ue[Ke]||Ue[Ke.toLowerCase()]}function ne(Ue,Ke){var et=De.parse(Ue);if(!et.protocol){var rt=Ke?"https://":"http://";et=De.parse(rt+Ue)}if(et.protocol!=="http:"&&et.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return et}function x(Ue,Ke,et){var rt=et?"https://":"http://",Xe=Ke?"-internal.aliyuncs.com":".aliyuncs.com";return Ue.substr(0,14)==="vpc100-oss-cn-"&&(Xe=".aliyuncs.com"),De.parse(rt+Ue+Xe)}function b(){return document&&document.location&&document.location.protocol==="https:"}function ee(Ue,Ke){if(!(this instanceof ee))return new ee(Ue,Ke);Ue&&Ue.inited?this.options=Ue:this.options=ee.initOptions(Ue),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=qe,this.agent=this.options.agent||ht),this.ctx=Ke,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var E=ie("babel-runtime/regenerator"),re=se(E),ce=ie("babel-runtime/core-js/object/keys"),le=se(ce),ve=ie("debug")("ali-oss"),Se=ie("./../../shims/crypto/crypto.js"),ge=ie("path"),_e=ie("copy-to"),Ce=ie("mime"),he=ie("xml2js"),be=ie("humanize-ms"),Ee=ie("agentkeepalive"),Ae=ie("merge-descriptors"),De=ie("url"),je=ie("is-type-of"),Fe=ie("platform"),Re=ie("utility"),qe=ie("urllib"),Je=ie("./version"),He=ie("dateformat"),ze=ie("bowser"),Qe=ie("../common/signUtils"),$e=ie("../common/utils"),ht=new Ee;fe.exports=ee,ee.initOptions=function(Ue){if(!Ue||!Ue.accessKeyId||!Ue.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var Ke=b(),et={region:"oss-cn-hangzhou",internal:!1,secure:Ke,bucket:null,endpoint:null,cname:!1};if((0,le.default)(Ue).forEach(function(rt){Ue[rt]!==void 0&&(et[rt]=Ue[rt])}),et.accessKeyId=et.accessKeyId.trim(),et.accessKeySecret=et.accessKeySecret.trim(),et.timeout&&(et.timeout=be(et.timeout)),et.endpoint)et.endpoint=ne(et.endpoint,et.secure);else{if(!et.region)throw new Error("require options.endpoint or options.region");et.endpoint=x(et.region,et.internal,et.secure)}return et.inited=!0,et};var Ge=ee.prototype;Ae(Ge,ie("./object")),Ae(Ge,ie("./managed_upload")),Ae(Ge,ie("../common/multipart")),Ae(Ge,ie("../common/thunkpool.js")),ee.Wrapper=ie("./wrapper"),Ge.signature=function(Ue){return ve("authorization stringToSign: %s",Ue),Qe.computeSignature(this.options.accessKeySecret,Ue)},Ge.authorization=function(Ue,Ke,et,rt){var Xe=Qe.buildCanonicalString(Ue.toUpperCase(),Ke,{headers:rt,parameters:et});return Qe.authorization(this.options.accessKeyId,this.options.accessKeySecret,Xe)},Ge.createRequest=function(Ue){var Ke={"x-oss-date":He(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(Ke["x-oss-security-token"]=this.options.stsToken),_e(Ue.headers).to(Ke),te(Ke,"Content-Type")||(Ue.mime===Ce.default_type&&(Ue.mime=""),Ue.mime&&Ue.mime.indexOf("/")>0?Ke["Content-Type"]=Ue.mime:Ke["Content-Type"]=Ce.getType(Ue.mime||ge.extname(Ue.object||""))||"application/octet-stream"),Ue.content&&(Ke["Content-Md5"]=Se.createHash("md5").update(new ae(Ue.content,"utf8")).digest("base64"),Ke["Content-Length"]||(Ke["Content-Length"]=Ue.content.length));var et=this._getResource(Ue);Ke.authorization=this.authorization(Ue.method,et,Ue.subres,Ke);var rt=this._getReqUrl(Ue);ve("request %s %s, with headers %j, !!stream: %s",Ue.method,rt,Ke,!!Ue.stream);var Xe=Ue.timeout||this.options.timeout;return{url:rt,params:{agent:this.agent,method:Ue.method,content:Ue.content,stream:Ue.stream,headers:Ke,timeout:Xe,writeStream:Ue.writeStream,customResponse:Ue.customResponse,ctx:Ue.ctx||this.ctx}}},Ge.request=re.default.mark(function Ue(Ke){var et,rt,Xe,ut;return re.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return et=this.createRequest(Ke),rt=void 0,Xe=void 0,lt.prev=3,lt.next=6,this.urllib.request(et.url,et.params);case 6:rt=lt.sent,ve("response %s %s, got %s, headers: %j",Ke.method,et.url,rt.status,rt.headers),lt.next=13;break;case 10:lt.prev=10,lt.t0=lt.catch(3),Xe=lt.t0;case 13:if(ut=void 0,!rt||!Ke.successStatuses||Ke.successStatuses.indexOf(rt.status)!==-1){lt.next=26;break}return lt.next=17,this.requestError(rt);case 17:if(ut=lt.sent,ut.code!=="RequestTimeTooSkewed"){lt.next=23;break}return this.options.amendTimeSkewed=+new Date(ut.serverTime)-new Date,lt.next=22,this.request(Ke);case 22:return lt.abrupt("return",lt.sent);case 23:ut.params=Ke,lt.next=30;break;case 26:if(!Xe){lt.next=30;break}return lt.next=29,this.requestError(Xe);case 29:ut=lt.sent;case 30:if(!ut){lt.next=32;break}throw ut;case 32:if(!Ke.xmlResponse){lt.next=36;break}return lt.next=35,this.parseXML(rt.data);case 35:rt.data=lt.sent;case 36:return lt.abrupt("return",rt);case 37:case"end":return lt.stop()}},Ue,this,[[3,10]])}),Ge._getResource=function(Ue){var Ke="/";return Ue.bucket&&(Ke+=Ue.bucket+"/"),Ue.object&&(Ke+=Ue.object),Ke},Ge._isIP=function(Ue){return $e._isIP(Ue)},Ge._escape=function(Ue){return Re.encodeURIComponent(Ue).replace(/%2F/g,"/")},Ge._getReqUrl=function(Ue){var Ke={};_e(this.options.endpoint).to(Ke);var et=this._isIP(Ke.hostname),rt=this.options.cname;!Ue.bucket||rt||et||(Ke.host=Ue.bucket+"."+Ke.host);var Xe="/";Ue.bucket&&et&&(Xe+=Ue.bucket+"/"),Ue.object&&(Xe+=this._escape(Ue.object).replace(/\+/g,"%2B")),Ke.pathname=Xe;var ut={};if(Ue.query&&Ae(ut,Ue.query),Ue.subres){var lt={};je.string(Ue.subres)?lt[Ue.subres]="":je.array(Ue.subres)?Ue.subres.forEach(function(kt){lt[kt]=""}):lt=Ue.subres,Ae(ut,lt)}return Ke.query=ut,De.format(Ke)},Ge._getUserAgent=function(){var Ue=ue&&ue.browser?"js":"nodejs",Ke="aliyun-sdk-"+Ue+"/"+Je.version,et=Fe.description;return!et&&ue&&(et="Node.js "+ue.version.slice(1)+" on "+ue.platform+" "+ue.arch),this._checkUserAgent(Ke+" "+et)},Ge._checkUserAgent=function(Ue){return Ue.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},Ge.checkBrowserAndVersion=function(Ue,Ke){return ze.name===Ue&&ze.version.split(".")[0]===Ke},Ge.parseXML=function(Ue){return function(Ke){ae.isBuffer(Ue)&&(Ue=Ue.toString()),he.parseString(Ue,{explicitRoot:!1,explicitArray:!1},Ke)}},Ge.requestError=re.default.mark(function Ue(Ke){var et,rt,Xe,ut;return re.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(et=null,Ke.data&&Ke.data.length){lt.next=5;break}Ke.status===-1||Ke.status===-2?(et=new Error(Ke.message),et.name=Ke.name,et.status=Ke.status,et.code=Ke.name):(Ke.status===404?(et=new Error("Object not exists"),et.name="NoSuchKeyError",et.status=404,et.code="NoSuchKey"):Ke.status===412?(et=new Error("Pre condition failed"),et.name="PreconditionFailedError",et.status=412,et.code="PreconditionFailed"):(et=new Error("Unknow error, status: "+Ke.status),et.name="UnknowError",et.status=Ke.status),et.requestId=Ke.headers["x-oss-request-id"],et.host=""),lt.next=30;break;case 5:return rt=String(Ke.data),ve("request response error data: %s",rt),Xe=void 0,lt.prev=8,lt.next=11,this.parseXML(rt)||{};case 11:Xe=lt.sent,lt.next=21;break;case 14:return lt.prev=14,lt.t0=lt.catch(8),ve(rt),lt.t0.message+=`
|
|
|
raw xml: `+rt,lt.t0.status=Ke.status,lt.t0.requestId=Ke.headers["x-oss-request-id"],lt.abrupt("return",lt.t0);case 21:ut=Xe.Message||"unknow request error, status: "+Ke.status,Xe.Condition&&(ut+=" (condition: "+Xe.Condition+")"),et=new Error(ut),et.name=Xe.Code?Xe.Code+"Error":"UnknowError",et.status=Ke.status,et.code=Xe.Code,et.requestId=Xe.RequestId,et.hostId=Xe.HostId,et.serverTime=Xe.ServerTime;case 30:return ve("generate error %j",et),lt.abrupt("return",et);case 32:case"end":return lt.stop()}},Ue,this,[[8,14]])})}).call(this,ie("_process"),ie("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(ie,fe,de){(function(ue){"use strict";function ae(_e){return _e&&_e.__esModule?_e:{default:_e}}function se(_e,Ce){if(!(this instanceof se))return new se(_e,Ce);ge.call(this,Ce),this.file=_e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var te=ie("babel-runtime/core-js/array/from"),ne=ae(te),x=ie("babel-runtime/regenerator"),b=ae(x),ee=ie("is-type-of"),E=ie("util"),re=ie("path"),ce=ie("mime"),le=ie("copy-to"),ve=de;ve.multipartUpload=b.default.mark(function _e(Ce,he,be){var Ee,Ae,De,je,Fe,Re,qe,Je,He;return b.default.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(this.resetCancelFlag(),be=be||{},!be.checkpoint||!be.checkpoint.uploadId){ze.next=6;break}return ze.next=5,this._resumeMultipart(be.checkpoint,be);case 5:return ze.abrupt("return",ze.sent);case 6:return Ee=102400,be.mime||(ee.file(he)?be.mime=ce.getType(re.extname(he.name)):ee.blob(he)?be.mime=he.type:be.mime=ce.getType(re.extname(he))),be.headers=be.headers||{},this._convertMetaToHeaders(be.meta,be.headers),ze.next=12,this._getFileSize(he);case 12:if(!((Ae=ze.sent)<Ee)){ze.next=25;break}return De=this._createStream(he,0,Ae),be.contentLength=Ae,ze.next=18,this.putStream(Ce,De,be);case 18:if(je=ze.sent,!be||!be.progress){ze.next=22;break}return ze.next=22,be.progress(1);case 22:return Fe={res:je.res,bucket:this.options.bucket,name:Ce,etag:je.res.headers.etag},(be.headers&&be.headers["x-oss-callback"]||be.callback)&&(Fe.data=je.data),ze.abrupt("return",Fe);case 25:if(!(be.partSize&&be.partSize<Ee)){ze.next=27;break}throw new Error("partSize must not be smaller than "+Ee);case 27:return ze.next=29,this.initMultipartUpload(Ce,be);case 29:if(Re=ze.sent,qe=Re.uploadId,Je=this._getPartSize(Ae,be.partSize),He={file:he,name:Ce,fileSize:Ae,partSize:Je,uploadId:qe,doneParts:[]},!be||!be.progress){ze.next=36;break}return ze.next=36,be.progress(0,He,Re.res);case 36:return ze.next=38,this._resumeMultipart(He,be);case 38:return ze.abrupt("return",ze.sent);case 39:case"end":return ze.stop()}},_e,this)}),ve._resumeMultipart=b.default.mark(function _e(Ce,he){var be,Ee,Ae,De,je,Fe,Re,qe,Je,He,ze,Qe,$e,ht,Ge,Ue,Ke,et,rt,Xe,ut;return b.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(!this.isCancel()){lt.next=2;break}throw this._makeCancelEvent();case 2:if(be=Ce.file,Ee=Ce.fileSize,Ae=Ce.partSize,De=Ce.uploadId,je=Ce.doneParts,Fe=Ce.name,Re=[],je.length>0&&le(je).to(Re),qe=this._divideParts(Ee,Ae),Je=qe.length,He=!1,ze=b.default.mark(function kt(pt,Mt){var wt,bt,gt;return b.default.wrap(function(We){for(;;)switch(We.prev=We.next){case 0:if(pt.isCancel()){We.next=21;break}return We.prev=1,wt=qe[Mt-1],bt={stream:pt._createStream(be,wt.start,wt.end),size:wt.end-wt.start},We.next=6,pt._uploadPart(Fe,De,Mt,bt);case 6:if(gt=We.sent,pt.isCancel()||He){We.next=13;break}if(Ce.doneParts.push({number:Mt,etag:gt.res.headers.etag}),Re.push({number:Mt,etag:gt.res.headers.etag}),!he||!he.progress){We.next=13;break}return We.next=13,he.progress(je.length/Je,Ce,gt.res);case 13:We.next=21;break;case 15:if(We.prev=15,We.t0=We.catch(1),pt.isCancel()){We.next=21;break}throw pt.cancel(),We.t0.partNum=Mt,We.t0;case 21:case"end":return We.stop()}},kt,this,[[1,15]])}),Qe=(0,ne.default)(new Array(Je),function(kt,pt){return pt+1}),$e=Re.map(function(kt){return kt.number}),ht=Qe.filter(function(kt){return $e.indexOf(kt)<0}),Ge=5,Ue=he.parallel||Ge,!this.checkBrowserAndVersion("Internet Explorer","10")&&Ue!==1){lt.next=26;break}Ke=0;case 16:if(!(Ke<ht.length)){lt.next=24;break}if(!this.isCancel()){lt.next=19;break}throw this._makeCancelEvent();case 19:return lt.next=21,ze(this,ht[Ke]);case 21:Ke++,lt.next=16;break;case 24:lt.next=40;break;case 26:for(et=[],rt=0;rt<ht.length;rt++)et.push(ze(this,ht[rt]));return lt.next=30,this._thunkPool(et,Ue);case 30:if(Xe=lt.sent,He=!0,!(Xe&&Xe.length>0)){lt.next=37;break}throw this.resetCancelFlag(),ut=Xe[0],ut.message="Failed to upload some parts with error: "+ut.toString()+" part_num: "+ut.partNum,ut;case 37:if(!this.isCancel()){lt.next=40;break}throw et=null,this._makeCancelEvent();case 40:return lt.next=42,this.completeMultipartUpload(Fe,De,Re,he);case 42:return lt.abrupt("return",lt.sent);case 43:case"end":return lt.stop()}},_e,this)}),ee.file=function(_e){return typeof File!="undefined"&&_e instanceof File},ee.blob=function(_e){return typeof Blob!="undefined"&&_e instanceof Blob},ve._getFileSize=b.default.mark(function _e(Ce){var he;return b.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(!ee.buffer(Ce)){be.next=4;break}return be.abrupt("return",Ce.length);case 4:if(!ee.blob(Ce)&&!ee.file(Ce)){be.next=6;break}return be.abrupt("return",Ce.size);case 6:if(!ee.string(Ce)){be.next=11;break}return be.next=9,this._statFile(Ce);case 9:return he=be.sent,be.abrupt("return",he.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return be.stop()}},_e,this)});var Se=ie("stream"),ge=Se.Readable;E.inherits(se,ge),se.prototype.readFileAndPush=function(_e){if(this.fileBuffer)for(var Ce=!0;Ce&&this.fileBuffer&&this.start<this.fileBuffer.length;){var he=this.start,be=he+_e;be=be>this.fileBuffer.length?this.fileBuffer.length:be,this.start=be,Ce=this.push(this.fileBuffer.slice(he,be))}},se.prototype._read=function(_e){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);_e=_e||16384;var Ce=this;this.reader.onload=function(he){Ce.fileBuffer=new ue(new Uint8Array(he.target.result)),Ce.file=null,Ce.readFileAndPush(_e)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(_e)},ve._createStream=function(_e,Ce,he){if(ee.blob(_e)||ee.file(_e))return new se(_e.slice(Ce,he));throw new Error("_createStream requires File/String.")},ve._getPartSize=function(_e,Ce){return Ce?Math.max(Math.ceil(_e/1e4),Ce):1048576},ve._divideParts=function(_e,Ce){for(var he=Math.ceil(_e/Ce),be=[],Ee=0;Ee<he;Ee++){var Ae=Ce*Ee,De=Math.min(Ae+Ce,_e);be.push({start:Ae,end:De})}return be},ve._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,ie("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(ie,fe,de){"use strict";function ue(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}var ae=ie("babel-runtime/core-js/object/keys"),se=ue(ae),te=ie("babel-runtime/regenerator"),ne=ue(te),x=ie("debug")("ali-oss:object"),b=ie("utility"),ee=ie("fs"),E=ie("is-type-of"),re=ie("url"),ce=ie("copy-to"),le=ie("path"),ve=ie("mime"),Se=ie("../common/callback"),ge=ie("../common/signUtils"),_e=de;_e.append=ne.default.mark(function Ce(he,be,Ee){var Ae;return ne.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return Ee=Ee||{},Ee.position===void 0&&(Ee.position="0"),Ee.subres={append:"",position:Ee.position},Ee.method="POST",De.next=6,this.put(he,be,Ee);case 6:return Ae=De.sent,Ae.nextAppendPosition=Ae.res.headers["x-oss-next-append-position"],De.abrupt("return",Ae);case 9:case"end":return De.stop()}},Ce,this)}),_e.put=ne.default.mark(function Ce(he,be,Ee){var Ae,De,je,Fe,Re,qe;return ne.default.wrap(function(Je){for(;;)switch(Je.prev=Je.next){case 0:if(Ae=void 0,Ee=Ee||{},!E.buffer(be)){Je.next=6;break}Ae=be,Je.next=18;break;case 6:if(!E.blob(be)&&!E.file(be)){Je.next=17;break}return Ee.mime||(E.file(be)?Ee.mime=ve.getType(le.extname(be.name)):Ee.mime=be.type),De=this._createStream(be,0,be.size),Je.next=11,this._getFileSize(be);case 11:return Ee.contentLength=Je.sent,Je.next=14,this.putStream(he,De,Ee);case 14:return Je.abrupt("return",Je.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return Ee.headers=Ee.headers||{},this._convertMetaToHeaders(Ee.meta,Ee.headers),je=Ee.method||"PUT",Fe=this._objectRequestParams(je,he,Ee),Se.encodeCallback(Fe,Ee),Fe.mime=Ee.mime,Fe.content=Ae,Fe.successStatuses=[200],Je.next=28,this.request(Fe);case 28:return Re=Je.sent,qe={name:he,url:this._objectUrl(he),res:Re.res},Fe.headers&&Fe.headers["x-oss-callback"]&&(qe.data=JSON.parse(Re.data.toString())),Je.abrupt("return",qe);case 32:case"end":return Je.stop()}},Ce,this)}),_e.putStream=ne.default.mark(function Ce(he,be,Ee){var Ae,De,je,Fe;return ne.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Ee=Ee||{},Ee.headers=Ee.headers||{},Ee.contentLength?Ee.headers["Content-Length"]=Ee.contentLength:Ee.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Ee.meta,Ee.headers),Ae=Ee.method||"PUT",De=this._objectRequestParams(Ae,he,Ee),Se.encodeCallback(De,Ee),De.mime=Ee.mime,De.stream=be,De.successStatuses=[200],Re.next=12,this.request(De);case 12:return je=Re.sent,Fe={name:he,url:this._objectUrl(he),res:je.res},De.headers&&De.headers["x-oss-callback"]&&(Fe.data=JSON.parse(je.data.toString())),Re.abrupt("return",Fe);case 16:case"end":return Re.stop()}},Ce,this)}),_e.head=ne.default.mark(function Ce(he,be){var Ee,Ae,De;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Ee=this._objectRequestParams("HEAD",he,be),Ee.successStatuses=[200,304],je.next=4,this.request(Ee);case 4:return Ae=je.sent,De={meta:null,res:Ae.res,status:Ae.status},Ae.status===200&&(0,se.default)(Ae.headers).forEach(function(Fe){Fe.indexOf("x-oss-meta-")===0&&(De.meta||(De.meta={}),De.meta[Fe.substring(11)]=Ae.headers[Fe])}),je.abrupt("return",De);case 8:case"end":return je.stop()}},Ce,this)}),_e.get=ne.default.mark(function Ce(he,be,Ee){var Ae,De,je,Fe;return ne.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Ae=null,De=!1,E.writableStream(be)?Ae=be:E.string(be)?(Ae=ee.createWriteStream(be),De=!0):Ee=be,Ee=Ee||{},Ee.process&&(Ee.subres=Ee.subres||{},Ee.subres["x-oss-process"]=Ee.process),je=void 0,Re.prev=6,Fe=this._objectRequestParams("GET",he,Ee),Fe.writeStream=Ae,Fe.successStatuses=[200,206,304],Re.next=12,this.request(Fe);case 12:je=Re.sent,De&&Ae.destroy(),Re.next=24;break;case 16:if(Re.prev=16,Re.t0=Re.catch(6),!De){Re.next=23;break}return Ae.destroy(),x("get error: %s, delete the exists file %s",Re.t0,be),Re.next=23,this._deleteFileSafe(be);case 23:throw Re.t0;case 24:return Re.abrupt("return",{res:je.res,content:je.data});case 25:case"end":return Re.stop()}},Ce,this,[[6,16]])}),_e.getStream=ne.default.mark(function Ce(he,be){var Ee,Ae;return ne.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return be=be||{},Ee=this._objectRequestParams("GET",he,be),Ee.customResponse=!0,Ee.successStatuses=[200,206,304],De.next=6,this.request(Ee);case 6:return Ae=De.sent,De.abrupt("return",{stream:Ae.res,res:{status:Ae.status,headers:Ae.headers}});case 8:case"end":return De.stop()}},Ce,this)}),_e.delete=ne.default.mark(function Ce(he,be){var Ee,Ae;return ne.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return Ee=this._objectRequestParams("DELETE",he,be),Ee.successStatuses=[204],De.next=4,this.request(Ee);case 4:return Ae=De.sent,De.abrupt("return",{res:Ae.res});case 6:case"end":return De.stop()}},Ce,this)}),_e.deleteMulti=ne.default.mark(function Ce(he,be){var Ee,Ae,De,je,Fe,Re;return ne.default.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:for(be=be||{},Ee=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,be.quiet?Ee+=` <Quiet>true</Quiet>
|
|
|
`:Ee+=` <Quiet>false</Quiet>
|
|
|
`,Ae=0;Ae<he.length;Ae++)Ee+=" <Object><Key>"+b.escape(this._objectName(he[Ae]))+`</Key></Object>
|
|
|
`;return Ee+="</Delete>",x("delete multi objects: %s",Ee),be.subres="delete",De=this._objectRequestParams("POST","",be),De.mime="xml",De.content=Ee,De.xmlResponse=!0,De.successStatuses=[200],qe.next=14,this.request(De);case 14:return je=qe.sent,Fe=je.data,Re=Fe&&Fe.Deleted||null,Re&&(Array.isArray(Re)||(Re=[Re]),Re=Re.map(function(Je){return Je.Key})),qe.abrupt("return",{res:je.res,deleted:Re});case 19:case"end":return qe.stop()}},Ce,this)}),_e.copy=ne.default.mark(function Ce(he,be,Ee){var Ae,De,je;return ne.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Ee=Ee||{},Ee.headers=Ee.headers||{},(0,se.default)(Ee.headers).forEach(function(Re){Ee.headers["x-oss-copy-source-"+Re.toLowerCase()]=Ee.headers[Re]}),Ee.meta&&(Ee.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Ee.meta,Ee.headers),be=be[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(be):"/"+encodeURIComponent(be.slice(1)),Ee.headers["x-oss-copy-source"]=be,Ae=this._objectRequestParams("PUT",he,Ee),Ae.xmlResponse=!0,Ae.successStatuses=[200,304],Fe.next=12,this.request(Ae);case 12:return De=Fe.sent,je=De.data,je&&(je={etag:je.ETag,lastModified:je.LastModified}),Fe.abrupt("return",{data:je,res:De.res});case 16:case"end":return Fe.stop()}},Ce,this)}),_e.putMeta=ne.default.mark(function Ce(he,be,Ee){return ne.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,this.copy(he,he,{meta:be||{},timeout:Ee&&Ee.timeout,ctx:Ee&&Ee.ctx});case 2:return Ae.abrupt("return",Ae.sent);case 3:case"end":return Ae.stop()}},Ce,this)}),_e.list=ne.default.mark(function Ce(he,be){var Ee,Ae,De,je,Fe;return ne.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Ee=this._objectRequestParams("GET","",be),Ee.query=he,Ee.xmlResponse=!0,Ee.successStatuses=[200],Re.next=6,this.request(Ee);case 6:return Ae=Re.sent,De=Ae.data.Contents,je=this,De&&(Array.isArray(De)||(De=[De]),De=De.map(function(qe){return{name:qe.Key,url:je._objectUrl(qe.Key),lastModified:qe.LastModified,etag:qe.ETag,type:qe.Type,size:Number(qe.Size),storageClass:qe.StorageClass,owner:{id:qe.Owner.ID,displayName:qe.Owner.DisplayName}}})),Fe=Ae.data.CommonPrefixes||null,Fe&&(Array.isArray(Fe)||(Fe=[Fe]),Fe=Fe.map(function(qe){return qe.Prefix})),Re.abrupt("return",{res:Ae.res,objects:De,prefixes:Fe,nextMarker:Ae.data.NextMarker||null,isTruncated:Ae.data.IsTruncated==="true"});case 13:case"end":return Re.stop()}},Ce,this)}),_e.putACL=ne.default.mark(function Ce(he,be,Ee){var Ae,De;return ne.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Ee=Ee||{},Ee.subres="acl",Ee.headers=Ee.headers||{},Ee.headers["x-oss-object-acl"]=be,he=this._objectName(he),Ae=this._objectRequestParams("PUT",he,Ee),Ae.successStatuses=[200],je.next=9,this.request(Ae);case 9:return De=je.sent,je.abrupt("return",{res:De.res});case 11:case"end":return je.stop()}},Ce,this)}),_e.getACL=ne.default.mark(function Ce(he,be){var Ee,Ae;return ne.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return be=be||{},be.subres="acl",he=this._objectName(he),Ee=this._objectRequestParams("GET",he,be),Ee.successStatuses=[200],Ee.xmlResponse=!0,De.next=8,this.request(Ee);case 8:return Ae=De.sent,De.abrupt("return",{acl:Ae.data.AccessControlList.Grant,owner:{id:Ae.data.Owner.ID,displayName:Ae.data.Owner.DisplayName},res:Ae.res});case 10:case"end":return De.stop()}},Ce,this)}),_e.restore=ne.default.mark(function Ce(he,be){var Ee,Ae;return ne.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return be=be||{},be.subres="restore",Ee=this._objectRequestParams("POST",he,be),Ee.successStatuses=[202],De.next=6,this.request(Ee);case 6:return Ae=De.sent,De.abrupt("return",{res:Ae.res});case 8:case"end":return De.stop()}},Ce,this)}),_e.signatureUrl=function(Ce,he){he=he||{},Ce=this._objectName(Ce),he.method=he.method||"GET";var be=b.timestamp()+(he.expires||1800),Ee={bucket:this.options.bucket,object:Ce},Ae=this._getResource(Ee);this.options.stsToken&&(he["security-token"]=this.options.stsToken);var De=ge._signatureForURL(this.options.accessKeySecret,he,Ae,be),je=re.parse(this._getReqUrl(Ee));return je.query={OSSAccessKeyId:this.options.accessKeyId,Expires:be,Signature:De.Signature},ce(De.subResource).to(je.query),je.format()},_e.getObjectUrl=function(Ce,he){return he?he[he.length-1]!=="/"&&(he+="/"):he=this.options.endpoint.format(),he+this._escape(this._objectName(Ce))},_e._objectUrl=function(Ce){return this._getReqUrl({bucket:this.options.bucket,object:Ce})},_e.generateObjectUrl=function(Ce,he){if(he)he[he.length-1]!=="/"&&(he+="/");else{he=this.options.endpoint.format();var be=re.parse(he),Ee=this.options.bucket;be.hostname=Ee+"."+be.hostname,be.host=Ee+"."+be.host,he=be.format()}return he+this._escape(this._objectName(Ce))},_e._objectRequestParams=function(Ce,he,be){if(!this.options.bucket)throw new Error("Please create a bucket first");be=be||{},he=this._objectName(he);var Ee={object:he,bucket:this.options.bucket,method:Ce,subres:be&&be.subres,timeout:be&&be.timeout,ctx:be&&be.ctx};return be.headers&&(Ee.headers={},ce(be.headers).to(Ee.headers)),Ee},_e._objectName=function(Ce){return Ce.replace(/^\/+/,"")},_e._statFile=function(Ce){return function(he){ee.stat(Ce,he)}},_e._convertMetaToHeaders=function(Ce,he){Ce&&(0,se.default)(Ce).forEach(function(be){he["x-oss-meta-"+be]=Ce[be]})},_e._deleteFileSafe=function(Ce){return function(he){ee.exists(Ce,function(be){be?ee.unlink(Ce,function(Ee){Ee&&x("unlink %j error: %s",Ce,Ee),he()}):he()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(ie,fe,de){"use strict";de.version="5.3.1"},{}],6:[function(ie,fe,de){"use strict";function ue(le){return le&&le.__esModule?le:{default:le}}function ae(le){return le&&typeof le.next=="function"&&typeof le.throw=="function"}function se(le){if(!le)return!1;var ve=le.constructor;return!!ve&&(ve.name==="GeneratorFunction"||ve.displayName==="GeneratorFunction"||ae(ve.prototype)||ae(le.prototype))}function te(le,ve){var Se=new le(ve),ge=(0,E.default)(Se),_e=(0,E.default)((0,b.default)(Se));ge.concat(_e).forEach(function(Ce){se(Se[Ce])?this[Ce]=re.wrap(Se[Ce]).bind(Se):this[Ce]=Se[Ce]},this)}function ne(le){if(!(this instanceof ne))return new ne(le);te.call(this,ce,le)}var x=ie("babel-runtime/core-js/object/get-prototype-of"),b=ue(x),ee=ie("babel-runtime/core-js/object/keys"),E=ue(ee),re=ie("co"),ce=ie("./client");fe.exports=ne,ne.STS=function le(ve){if(!(this instanceof le))return new le(ve);te.call(this,ce.STS,ve)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(ie,fe,de){(function(ue){"use strict";function ae(b){return b&&b.__esModule?b:{default:b}}var se=ie("babel-runtime/core-js/object/keys"),te=ae(se),ne=ie("babel-runtime/core-js/json/stringify"),x=ae(ne);de.encodeCallback=function(b,ee){if(b.headers=b.headers||{},!Object.prototype.hasOwnProperty.call(b.headers,"x-oss-callback")&&ee.callback){var E={callbackUrl:encodeURI(ee.callback.url),callbackBody:ee.callback.body};ee.callback.host&&(E.callbackHost=ee.callback.host),ee.callback.contentType&&(E.callbackBodyType=ee.callback.contentType);var re=new ue((0,x.default)(E)).toString("base64");if(b.headers["x-oss-callback"]=re,ee.callback.customValue){var ce={};(0,te.default)(ee.callback.customValue).forEach(function(le){ce["x:"+le]=ee.callback.customValue[le]}),b.headers["x-oss-callback-var"]=new ue((0,x.default)(ce)).toString("base64")}}}}).call(this,ie("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/regenerator"),ae=function(x){return x&&x.__esModule?x:{default:x}}(ue),se=ie("copy-to"),te=ie("./callback"),ne=de;ne.listUploads=ae.default.mark(function x(b,ee){var E,re,ce,le;return ae.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ee=ee||{},E={},se(ee).to(E),E.subres="uploads",re=this._objectRequestParams("GET","",E),re.query=b,re.xmlResponse=!0,re.successStatuses=[200],ve.next=10,this.request(re);case 10:return ce=ve.sent,le=ce.data.Upload||[],Array.isArray(le)||(le=[le]),le=le.map(function(Se){return{name:Se.Key,uploadId:Se.UploadId,initiated:Se.Initiated}}),ve.abrupt("return",{res:ce.res,uploads:le,bucket:ce.data.Bucket,nextKeyMarker:ce.data.NextKeyMarker,nextUploadIdMarker:ce.data.NextUploadIdMarker,isTruncated:ce.data.IsTruncated==="true"});case 15:case"end":return ve.stop()}},x,this)}),ne.listParts=ae.default.mark(function x(b,ee,E,re){var ce,le,ve;return ae.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return re=re||{},ce={},se(re).to(ce),ce.subres={uploadId:ee},le=this._objectRequestParams("GET",b,ce),le.query=E,le.xmlResponse=!0,le.successStatuses=[200],Se.next=10,this.request(le);case 10:return ve=Se.sent,Se.abrupt("return",{res:ve.res,uploadId:ve.data.UploadId,bucket:ve.data.Bucket,name:ve.data.Key,partNumberMarker:ve.data.PartNumberMarker,nextPartNumberMarker:ve.data.NextPartNumberMarker,maxParts:ve.data.MaxParts,isTruncated:ve.data.IsTruncated,parts:ve.data.Part||[]});case 12:case"end":return Se.stop()}},x,this)}),ne.abortMultipartUpload=ae.default.mark(function x(b,ee,E){var re,ce,le;return ae.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return this.cancel(),E=E||{},re={},se(E).to(re),re.subres={uploadId:ee},ce=this._objectRequestParams("DELETE",b,re),ce.successStatuses=[204],ve.next=9,this.request(ce);case 9:return le=ve.sent,ve.abrupt("return",{res:le.res});case 11:case"end":return ve.stop()}},x,this)}),ne.initMultipartUpload=ae.default.mark(function x(b,ee){var E,re,ce;return ae.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return ee=ee||{},E={},se(ee).to(E),E.headers=E.headers||{},this._convertMetaToHeaders(ee.meta,E.headers),E.subres="uploads",re=this._objectRequestParams("POST",b,E),re.mime=ee.mime,re.xmlResponse=!0,re.successStatuses=[200],le.next=12,this.request(re);case 12:return ce=le.sent,le.abrupt("return",{res:ce.res,bucket:ce.data.Bucket,name:ce.data.Key,uploadId:ce.data.UploadId});case 14:case"end":return le.stop()}},x,this)}),ne.uploadPart=ae.default.mark(function x(b,ee,E,re,ce,le,ve){var Se;return ae.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return Se={stream:this._createStream(re,ce,le),size:le-ce},ge.next=3,this._uploadPart(b,ee,E,Se,ve);case 3:return ge.abrupt("return",ge.sent);case 4:case"end":return ge.stop()}},x,this)}),ne.completeMultipartUpload=ae.default.mark(function x(b,ee,E,re){var ce,le,ve,Se,ge,_e,Ce,he;return ae.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:for(ce=E.concat().sort(function(Ee,Ae){return Ee.number-Ae.number}).filter(function(Ee,Ae,De){return!Ae||Ee.number!==De[Ae-1].number}),le=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,ve=0;ve<ce.length;ve++)Se=ce[ve],le+=`<Part>
|
|
|
`,le+="<PartNumber>"+Se.number+`</PartNumber>
|
|
|
`,le+="<ETag>"+Se.etag+`</ETag>
|
|
|
`,le+=`</Part>
|
|
|
`;return le+="</CompleteMultipartUpload>",re=re||{},ge={},se(re).to(ge),ge.subres={uploadId:ee},_e=this._objectRequestParams("POST",b,ge),te.encodeCallback(_e,ge),_e.mime="xml",_e.content=le,_e.headers&&_e.headers["x-oss-callback"]||(_e.xmlResponse=!0),_e.successStatuses=[200],be.next=16,this.request(_e);case 16:return Ce=be.sent,he={res:Ce.res,bucket:_e.bucket,name:b,etag:Ce.res.headers.etag},_e.headers&&_e.headers["x-oss-callback"]&&(he.data=JSON.parse(Ce.data.toString())),be.abrupt("return",he);case 20:case"end":return be.stop()}},x,this)}),ne._uploadPart=ae.default.mark(function x(b,ee,E,re,ce){var le,ve,Se;return ae.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ce=ce||{},le={},se(ce).to(le),le.headers={"Content-Length":re.size},le.subres={partNumber:E,uploadId:ee},ve=this._objectRequestParams("PUT",b,le),ve.mime=le.mime,ve.stream=re.stream,ve.successStatuses=[200],ge.next=11,this.request(ve);case 11:return Se=ge.sent,re.stream=null,ve.stream=null,ge.abrupt("return",{name:b,etag:Se.res.headers.etag,res:Se.res});case 15:case"end":return ge.stop()}},x,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(ie,fe,de){(function(ue){"use strict";function ae(E){return E&&E.__esModule?E:{default:E}}var se=ie("babel-runtime/core-js/json/stringify"),te=ae(se),ne=ie("babel-runtime/core-js/object/keys"),x=ae(ne),b=ie("./../../shims/crypto/crypto.js"),ee=ie("is-type-of");de.buildCanonicalizedResource=function(E,re){var ce=""+E,le="?";if(ee.string(re)&&re.trim()!=="")ce+=le+re;else if(ee.array(re))re.sort(),ce+=le+re.join("&");else if(re){var ve=function(ge,_e){return ge[0]>_e[0]?1:ge[0]<_e[0]?-1:0},Se=function(ge){ce+=le+ge,re[ge]&&(ce+="="+re[ge]),le="&"};(0,x.default)(re).sort(ve).forEach(Se)}return ce},de.buildCanonicalString=function(E,re,ce,le){ce=ce||{};var ve=ce.headers||{},Se=[],ge={},_e=[E.toUpperCase(),ve["Content-Md5"]||"",ve["Content-Type"]||ve["Content-Type".toLowerCase()],le||ve["x-oss-date"]];return(0,x.default)(ve).forEach(function(Ce){var he=Ce.toLowerCase();he.indexOf("x-oss-")===0&&(ge[he]=String(ve[Ce]).trim())}),(0,x.default)(ge).sort().forEach(function(Ce){Se.push(Ce+":"+ge[Ce])}),_e=_e.concat(Se),_e.push(this.buildCanonicalizedResource(re,ce.parameters)),_e.join(`
|
|
|
`)},de.computeSignature=function(E,re){return b.createHmac("sha1",E).update(new ue(re,"utf8")).digest("base64")},de.authorization=function(E,re,ce){return"OSS "+E+":"+this.computeSignature(re,ce)},de._signatureForURL=function(E,re,ce,le){var ve={},Se={};if(re.process&&(Se["x-oss-process"]=re.process),re.response&&(0,x.default)(re.response).forEach(function(he){var be="response-"+he.toLowerCase();Se[be]=re.response[he]}),(0,x.default)(re).forEach(function(he){var be=he.toLowerCase(),Ee=re[he];be.indexOf("x-oss-")===0?ve[be]=Ee:be.indexOf("content-md5")===0||be.indexOf("content-type")===0?ve[he]=Ee:be!=="expires"&&be!=="response"&&be!=="process"&&be!=="method"&&(Se[be]=Ee)}),Object.prototype.hasOwnProperty.call(re,"security-token")&&(Se["security-token"]=re["security-token"]),Object.prototype.hasOwnProperty.call(re,"callback")){var ge={callbackUrl:encodeURI(re.callback.url),callbackBody:re.callback.body};if(re.callback.host&&(ge.callbackHost=re.callback.host),re.callback.contentType&&(ge.callbackBodyType=re.callback.contentType),Se.callback=new ue((0,te.default)(ge)).toString("base64"),re.callback.customValue){var _e={};(0,x.default)(re.callback.customValue).forEach(function(he){_e["x:"+he]=re.callback.customValue[he]}),Se["callback-var"]=new ue((0,te.default)(_e)).toString("base64")}}var Ce=this.buildCanonicalString(re.method,ce,{headers:ve,parameters:Se},le.toString());return{Signature:this.computeSignature(E,Ce),subResource:Se}}}).call(this,ie("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/regenerator"),ae=function(b){return b&&b.__esModule?b:{default:b}}(ue),se=ie("co"),te=ie("co-priority-queue"),ne=ie("any-promise"),x=de;x._thunkPool=function(b,ee){function E(Se,ge){++le===Se.length&&ge(ve)}function re(Se,ge){function _e(){var De;return ae.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:De=void 0;case 1:if(ce.isCancel()){je.next=9;break}return je.next=4,be.next();case 4:return De=je.sent,je.next=7,De();case 7:je.next=1;break;case 9:Ee+=1,Ee===Se&&(be.fns=[],be.buffer=[],ge(ve));case 11:case"end":return je.stop()}},he,this)}function Ce(De){console.error(De.stack)}for(var he=ae.default.mark(_e),be=new te,Ee=0,Ae=0;Ae<Se;Ae++)se(_e).catch(Ce);return function(De,je){return function(Fe){be.push(ae.default.mark(function Re(){return ae.default.wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:return qe.prev=0,qe.t0=Fe,qe.next=4,De;case 4:qe.t1=qe.sent,(0,qe.t0)(null,qe.t1),qe.next=11;break;case 8:qe.prev=8,qe.t2=qe.catch(0),Fe(qe.t2);case 11:case"end":return qe.stop()}},Re,this,[[0,8]])}),je)}}}var ce=this,le=0,ve=[];return new ne(function(Se){function ge(Ee){return ae.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.next=2,he(b[Ee]);case 2:E(b,Se);case 3:case"end":return Ae.stop()}},Ce,this)}function _e(Ee){ve.push(Ee),E(b,Se)}for(var Ce=ae.default.mark(ge),he=new re(ee,Se),be=0;be<b.length;be++)se(ge(be)).catch(_e)})},x.cancel=function(){this.options.cancelFlag=!0},x.isCancel=function(){return this.options.cancelFlag},x.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(ie,fe,de){"use strict";de._isIP=function(ue){var ae=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,se=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return ae.test(ue)||se.test(ue)}},{}],12:[function(ie,fe,de){function ue(){}fe.exports=ue,fe.exports.HttpsAgent=ue},{}],13:[function(ie,fe,de){fe.exports=ie("./register")().Promise},{"./register":15}],14:[function(ie,fe,de){"use strict";var ue=null;fe.exports=function(ae,se){return function(te,ne){te=te||null,ne=ne||{};var x=ne.global!==!1;if(ue===null&&x&&(ue=ae["@@any-promise/REGISTRATION"]||null),ue!==null&&te!==null&&ue.implementation!==te)throw new Error('any-promise already defined as "'+ue.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return ue===null&&(ue=te!==null&&ne.Promise!==void 0?{Promise:ne.Promise,implementation:te}:se(te),x&&(ae["@@any-promise/REGISTRATION"]=ue)),ue}}},{}],15:[function(ie,fe,de){"use strict";function ue(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}fe.exports=ie("./loader")(window,ue)},{"./loader":14}],16:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(ie,fe,de){fe.exports={default:ie("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(ie,fe,de){"use strict";de.__esModule=!0,de.default=function(ue,ae){if(!(ue instanceof ae))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(ie,fe,de){"use strict";de.__esModule=!0;var ue=ie("../core-js/object/define-property"),ae=function(se){return se&&se.__esModule?se:{default:se}}(ue);de.default=function(){function se(te,ne){for(var x=0;x<ne.length;x++){var b=ne[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),(0,ae.default)(te,b.key,b)}}return function(te,ne,x){return ne&&se(te.prototype,ne),x&&se(te,x),te}}()},{"../core-js/object/define-property":20}],32:[function(ie,fe,de){"use strict";function ue(b){return b&&b.__esModule?b:{default:b}}de.__esModule=!0;var ae=ie("../core-js/symbol/iterator"),se=ue(ae),te=ie("../core-js/symbol"),ne=ue(te),x=typeof ne.default=="function"&&typeof se.default=="symbol"?function(b){return typeof b}:function(b){return b&&typeof ne.default=="function"&&b.constructor===ne.default&&b!==ne.default.prototype?"symbol":typeof b};de.default=typeof ne.default=="function"&&x(se.default)==="symbol"?function(b){return b===void 0?"undefined":x(b)}:function(b){return b&&typeof ne.default=="function"&&b.constructor===ne.default&&b!==ne.default.prototype?"symbol":b===void 0?"undefined":x(b)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(ie,fe,de){fe.exports=ie("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(ie,fe,de){"use strict";function ue(Se){var ge=Se.length;if(ge%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var _e=Se.indexOf("=");return _e===-1&&(_e=ge),[_e,_e===ge?0:4-_e%4]}function ae(Se){var ge=ue(Se),_e=ge[0],Ce=ge[1];return 3*(_e+Ce)/4-Ce}function se(Se,ge,_e){return 3*(ge+_e)/4-_e}function te(Se){for(var ge,_e=ue(Se),Ce=_e[0],he=_e[1],be=new re(se(Se,Ce,he)),Ee=0,Ae=he>0?Ce-4:Ce,De=0;De<Ae;De+=4)ge=E[Se.charCodeAt(De)]<<18|E[Se.charCodeAt(De+1)]<<12|E[Se.charCodeAt(De+2)]<<6|E[Se.charCodeAt(De+3)],be[Ee++]=ge>>16&255,be[Ee++]=ge>>8&255,be[Ee++]=255≥return he===2&&(ge=E[Se.charCodeAt(De)]<<2|E[Se.charCodeAt(De+1)]>>4,be[Ee++]=255&ge),he===1&&(ge=E[Se.charCodeAt(De)]<<10|E[Se.charCodeAt(De+1)]<<4|E[Se.charCodeAt(De+2)]>>2,be[Ee++]=ge>>8&255,be[Ee++]=255&ge),be}function ne(Se){return ee[Se>>18&63]+ee[Se>>12&63]+ee[Se>>6&63]+ee[63&Se]}function x(Se,ge,_e){for(var Ce,he=[],be=ge;be<_e;be+=3)Ce=(Se[be]<<16&16711680)+(Se[be+1]<<8&65280)+(255&Se[be+2]),he.push(ne(Ce));return he.join("")}function b(Se){for(var ge,_e=Se.length,Ce=_e%3,he=[],be=0,Ee=_e-Ce;be<Ee;be+=16383)he.push(x(Se,be,be+16383>Ee?Ee:be+16383));return Ce===1?(ge=Se[_e-1],he.push(ee[ge>>2]+ee[ge<<4&63]+"==")):Ce===2&&(ge=(Se[_e-2]<<8)+Se[_e-1],he.push(ee[ge>>10]+ee[ge>>4&63]+ee[ge<<2&63]+"=")),he.join("")}de.byteLength=ae,de.toByteArray=te,de.fromByteArray=b;for(var ee=[],E=[],re=typeof Uint8Array!="undefined"?Uint8Array:Array,ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",le=0,ve=ce.length;le<ve;++le)ee[le]=ce[le],E[ce.charCodeAt(le)]=le;E[45]=62,E[95]=63},{}],35:[function(ie,fe,de){(function(ue,ae,se){fe!==void 0&&fe.exports?fe.exports=se():typeof y=="function"&&y.amd?y("bowser",se):ue.bowser=se()})(this,0,function(){function ue(E){function re(Ue){var Ke=E.match(Ue);return Ke&&Ke.length>1&&Ke[1]||""}function ce(Ue){var Ke=E.match(Ue);return Ke&&Ke.length>1&&Ke[2]||""}var le,ve=re(/(ipod|iphone|ipad)/i).toLowerCase(),Se=/like android/i.test(E),ge=!Se&&/android/i.test(E),_e=/nexus\s*[0-6]\s*/i.test(E),Ce=!_e&&/nexus\s*[0-9]+/i.test(E),he=/CrOS/.test(E),be=/silk/i.test(E),Ee=/sailfish/i.test(E),Ae=/tizen/i.test(E),De=/(web|hpw)os/i.test(E),je=/windows phone/i.test(E),Fe=(/SamsungBrowser/i.test(E),!je&&/windows/i.test(E)),Re=!ve&&!be&&/macintosh/i.test(E),qe=!ge&&!Ee&&!Ae&&!De&&/linux/i.test(E),Je=ce(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),He=re(/version\/(\d+(\.\d+)?)/i),ze=/tablet/i.test(E)&&!/tablet pc/i.test(E),Qe=!ze&&/[^-]mobi/i.test(E),$e=/xbox/i.test(E);/opera/i.test(E)?le={name:"Opera",opera:b,version:He||re(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(E)?le={name:"Opera",opera:b,version:re(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||He}:/SamsungBrowser/i.test(E)?le={name:"Samsung Internet for Android",samsungBrowser:b,version:He||re(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(E)?le={name:"Opera Coast",coast:b,version:He||re(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(E)?le={name:"Yandex Browser",yandexbrowser:b,version:He||re(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(E)?le={name:"UC Browser",ucbrowser:b,version:re(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(E)?le={name:"Maxthon",maxthon:b,version:re(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(E)?le={name:"Epiphany",epiphany:b,version:re(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(E)?le={name:"Puffin",puffin:b,version:re(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(E)?le={name:"Sleipnir",sleipnir:b,version:re(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(E)?le={name:"K-Meleon",kMeleon:b,version:re(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:je?(le={name:"Windows Phone",osname:"Windows Phone",windowsphone:b},Je?(le.msedge=b,le.version=Je):(le.msie=b,le.version=re(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(E)?le={name:"Internet Explorer",msie:b,version:re(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:he?le={name:"Chrome",osname:"Chrome OS",chromeos:b,chromeBook:b,chrome:b,version:re(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(E)?le={name:"Microsoft Edge",msedge:b,version:Je}:/vivaldi/i.test(E)?le={name:"Vivaldi",vivaldi:b,version:re(/vivaldi\/(\d+(\.\d+)?)/i)||He}:Ee?le={name:"Sailfish",osname:"Sailfish OS",sailfish:b,version:re(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(E)?le={name:"SeaMonkey",seamonkey:b,version:re(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(E)?(le={name:"Firefox",firefox:b,version:re(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(E)&&(le.firefoxos=b,le.osname="Firefox OS")):be?le={name:"Amazon Silk",silk:b,version:re(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(E)?le={name:"PhantomJS",phantom:b,version:re(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(E)?le={name:"SlimerJS",slimer:b,version:re(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(E)||/rim\stablet/i.test(E)?le={name:"BlackBerry",osname:"BlackBerry OS",blackberry:b,version:He||re(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:De?(le={name:"WebOS",osname:"WebOS",webos:b,version:He||re(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(E)&&(le.touchpad=b)):/bada/i.test(E)?le={name:"Bada",osname:"Bada",bada:b,version:re(/dolfin\/(\d+(\.\d+)?)/i)}:Ae?le={name:"Tizen",osname:"Tizen",tizen:b,version:re(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||He}:/qupzilla/i.test(E)?le={name:"QupZilla",qupzilla:b,version:re(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||He}:/chromium/i.test(E)?le={name:"Chromium",chromium:b,version:re(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||He}:/chrome|crios|crmo/i.test(E)?le={name:"Chrome",chrome:b,version:re(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ge?le={name:"Android",version:He}:/safari|applewebkit/i.test(E)?(le={name:"Safari",safari:b},He&&(le.version=He)):ve?(le={name:ve=="iphone"?"iPhone":ve=="ipad"?"iPad":"iPod"},He&&(le.version=He)):le=/googlebot/i.test(E)?{name:"Googlebot",googlebot:b,version:re(/googlebot\/(\d+(\.\d+))/i)||He}:{name:re(/^(.*)\/(.*) /),version:ce(/^(.*)\/(.*) /)},!le.msedge&&/(apple)?webkit/i.test(E)?(/(apple)?webkit\/537\.36/i.test(E)?(le.name=le.name||"Blink",le.blink=b):(le.name=le.name||"Webkit",le.webkit=b),!le.version&&He&&(le.version=He)):!le.opera&&/gecko\//i.test(E)&&(le.name=le.name||"Gecko",le.gecko=b,le.version=le.version||re(/gecko\/(\d+(\.\d+)?)/i)),le.windowsphone||!ge&&!le.silk?!le.windowsphone&&ve?(le[ve]=b,le.ios=b,le.osname="iOS"):Re?(le.mac=b,le.osname="macOS"):$e?(le.xbox=b,le.osname="Xbox"):Fe?(le.windows=b,le.osname="Windows"):qe&&(le.linux=b,le.osname="Linux"):(le.android=b,le.osname="Android");var ht="";le.windows?ht=function(Ue){switch(Ue){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(re(/Windows ((NT|XP)( \d\d?.\d)?)/i)):le.windowsphone?ht=re(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):le.mac?(ht=re(/Mac OS X (\d+([_\.\s]\d+)*)/i),ht=ht.replace(/[_\s]/g,".")):ve?(ht=re(/os (\d+([_\s]\d+)*) like mac os x/i),ht=ht.replace(/[_\s]/g,".")):ge?ht=re(/android[ \/-](\d+(\.\d+)*)/i):le.webos?ht=re(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):le.blackberry?ht=re(/rim\stablet\sos\s(\d+(\.\d+)*)/i):le.bada?ht=re(/bada\/(\d+(\.\d+)*)/i):le.tizen&&(ht=re(/tizen[\/\s](\d+(\.\d+)*)/i)),ht&&(le.osversion=ht);var Ge=!le.windows&&ht.split(".")[0];return ze||Ce||ve=="ipad"||ge&&(Ge==3||Ge>=4&&!Qe)||le.silk?le.tablet=b:(Qe||ve=="iphone"||ve=="ipod"||ge||_e||le.blackberry||le.webos||le.bada)&&(le.mobile=b),le.msedge||le.msie&&le.version>=10||le.yandexbrowser&&le.version>=15||le.vivaldi&&le.version>=1||le.chrome&&le.version>=20||le.samsungBrowser&&le.version>=4||le.firefox&&le.version>=20||le.safari&&le.version>=6||le.opera&&le.version>=10||le.ios&&le.osversion&&le.osversion.split(".")[0]>=6||le.blackberry&&le.version>=10.1||le.chromium&&le.version>=20?le.a=b:le.msie&&le.version<10||le.chrome&&le.version<20||le.firefox&&le.version<20||le.safari&&le.version<6||le.opera&&le.version<10||le.ios&&le.osversion&&le.osversion.split(".")[0]<6||le.chromium&&le.version<20?le.c=b:le.x=b,le}function ae(E){return E.split(".").length}function se(E,re){var ce,le=[];if(Array.prototype.map)return Array.prototype.map.call(E,re);for(ce=0;ce<E.length;ce++)le.push(re(E[ce]));return le}function te(E){for(var re=Math.max(ae(E[0]),ae(E[1])),ce=se(E,function(le){var ve=re-ae(le);return le+=new Array(ve+1).join(".0"),se(le.split("."),function(Se){return new Array(20-Se.length).join("0")+Se}).reverse()});--re>=0;){if(ce[0][re]>ce[1][re])return 1;if(ce[0][re]!==ce[1][re])return-1;if(re===0)return 0}}function ne(E,re,ce){var le=ee;typeof re=="string"&&(ce=re,re=void 0),re===void 0&&(re=!1),ce&&(le=ue(ce));var ve=""+le.version;for(var Se in E)if(E.hasOwnProperty(Se)&&le[Se]){if(typeof E[Se]!="string")throw new Error("Browser version in the minVersion map should be a string: "+Se+": "+String(E));return te([ve,E[Se]])<0}return re}function x(E,re,ce){return!ne(E,re,ce)}var b=!0,ee=ue(typeof navigator!="undefined"&&navigator.userAgent||"");return ee.test=function(E){for(var re=0;re<E.length;++re){var ce=E[re];if(typeof ce=="string"&&ce in ee)return!0}return!1},ee.isUnsupportedBrowser=ne,ee.compareVersions=te,ee.check=x,ee._detect=ue,ee.detect=ue,ee})},{}],36:[function(ie,fe,de){},{}],37:[function(ie,fe,de){function ue(ee){if(ee&&!x(ee))throw new Error("Unknown encoding: "+ee)}function ae(ee){return ee.toString(this.encoding)}function se(ee){this.charReceived=ee.length%2,this.charLength=this.charReceived?2:0}function te(ee){this.charReceived=ee.length%3,this.charLength=this.charReceived?3:0}var ne=ie("buffer").Buffer,x=ne.isEncoding||function(ee){switch(ee&&ee.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},b=de.StringDecoder=function(ee){switch(this.encoding=(ee||"utf8").toLowerCase().replace(/[-_]/,""),ue(ee),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=se;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=te;break;default:return void(this.write=ae)}this.charBuffer=new ne(6),this.charReceived=0,this.charLength=0};b.prototype.write=function(ee){for(var E="";this.charLength;){var re=ee.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:ee.length;if(ee.copy(this.charBuffer,this.charReceived,0,re),this.charReceived+=re,this.charReceived<this.charLength)return"";ee=ee.slice(re,ee.length),E=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var le=E.charCodeAt(E.length-1);if(!(le>=55296&&le<=56319)){if(this.charReceived=this.charLength=0,ee.length===0)return E;break}this.charLength+=this.surrogateSize,E=""}this.detectIncompleteChar(ee);var ce=ee.length;this.charLength&&(ee.copy(this.charBuffer,0,ee.length-this.charReceived,ce),ce-=this.charReceived),E+=ee.toString(this.encoding,0,ce);var ce=E.length-1,le=E.charCodeAt(ce);if(le>=55296&&le<=56319){var ve=this.surrogateSize;return this.charLength+=ve,this.charReceived+=ve,this.charBuffer.copy(this.charBuffer,ve,0,ve),ee.copy(this.charBuffer,0,0,ve),E.substring(0,ce)}return E},b.prototype.detectIncompleteChar=function(ee){for(var E=ee.length>=3?3:ee.length;E>0;E--){var re=ee[ee.length-E];if(E==1&&re>>5==6){this.charLength=2;break}if(E<=2&&re>>4==14){this.charLength=3;break}if(E<=3&&re>>3==30){this.charLength=4;break}}this.charReceived=E},b.prototype.end=function(ee){var E="";if(ee&&ee.length&&(E=this.write(ee)),this.charReceived){var re=this.charReceived,ce=this.charBuffer,le=this.encoding;E+=ce.slice(0,re).toString(le)}return E}},{buffer:38}],38:[function(ie,fe,de){(function(ue){"use strict";function ae(){return te.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function se(pe,we){if(ae()<we)throw new RangeError("Invalid typed array length");return te.TYPED_ARRAY_SUPPORT?(pe=new Uint8Array(we),pe.__proto__=te.prototype):(pe===null&&(pe=new te(we)),pe.length=we),pe}function te(pe,we,ke){if(!(te.TYPED_ARRAY_SUPPORT||this instanceof te))return new te(pe,we,ke);if(typeof pe=="number"){if(typeof we=="string")throw new Error("If encoding is specified then the first argument must be a string");return ee(this,pe)}return ne(this,pe,we,ke)}function ne(pe,we,ke,Me){if(typeof we=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&we instanceof ArrayBuffer?ce(pe,we,ke,Me):typeof we=="string"?E(pe,we,ke):le(pe,we)}function x(pe){if(typeof pe!="number")throw new TypeError('"size" argument must be a number');if(pe<0)throw new RangeError('"size" argument must not be negative')}function b(pe,we,ke,Me){return x(we),we<=0?se(pe,we):ke!==void 0?typeof Me=="string"?se(pe,we).fill(ke,Me):se(pe,we).fill(ke):se(pe,we)}function ee(pe,we){if(x(we),pe=se(pe,we<0?0:0|ve(we)),!te.TYPED_ARRAY_SUPPORT)for(var ke=0;ke<we;++ke)pe[ke]=0;return pe}function E(pe,we,ke){if(typeof ke=="string"&&ke!==""||(ke="utf8"),!te.isEncoding(ke))throw new TypeError('"encoding" must be a valid string encoding');var Me=0|ge(we,ke);pe=se(pe,Me);var Oe=pe.write(we,ke);return Oe!==Me&&(pe=pe.slice(0,Oe)),pe}function re(pe,we){var ke=we.length<0?0:0|ve(we.length);pe=se(pe,ke);for(var Me=0;Me<ke;Me+=1)pe[Me]=255&we[Me];return pe}function ce(pe,we,ke,Me){if(we.byteLength,ke<0||we.byteLength<ke)throw new RangeError("'offset' is out of bounds");if(we.byteLength<ke+(Me||0))throw new RangeError("'length' is out of bounds");return we=ke===void 0&&Me===void 0?new Uint8Array(we):Me===void 0?new Uint8Array(we,ke):new Uint8Array(we,ke,Me),te.TYPED_ARRAY_SUPPORT?(pe=we,pe.__proto__=te.prototype):pe=re(pe,we),pe}function le(pe,we){if(te.isBuffer(we)){var ke=0|ve(we.length);return pe=se(pe,ke),pe.length===0||we.copy(pe,0,0,ke),pe}if(we){if(typeof ArrayBuffer!="undefined"&&we.buffer instanceof ArrayBuffer||"length"in we)return typeof we.length!="number"||Ie(we.length)?se(pe,0):re(pe,we);if(we.type==="Buffer"&&Ye(we.data))return re(pe,we.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function ve(pe){if(pe>=ae())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ae().toString(16)+" bytes");return 0|pe}function Se(pe){return+pe!=pe&&(pe=0),te.alloc(+pe)}function ge(pe,we){if(te.isBuffer(pe))return pe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(pe)||pe instanceof ArrayBuffer))return pe.byteLength;typeof pe!="string"&&(pe=""+pe);var ke=pe.length;if(ke===0)return 0;for(var Me=!1;;)switch(we){case"ascii":case"latin1":case"binary":return ke;case"utf8":case"utf-8":case void 0:return Mt(pe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ke;case"hex":return ke>>>1;case"base64":return gt(pe).length;default:if(Me)return Mt(pe).length;we=(""+we).toLowerCase(),Me=!0}}function _e(pe,we,ke){var Me=!1;if((we===void 0||we<0)&&(we=0),we>this.length||((ke===void 0||ke>this.length)&&(ke=this.length),ke<=0)||(ke>>>=0,we>>>=0,ke<=we))return"";for(pe||(pe="utf8");;)switch(pe){case"hex":return $e(this,we,ke);case"utf8":case"utf-8":return Je(this,we,ke);case"ascii":return ze(this,we,ke);case"latin1":case"binary":return Qe(this,we,ke);case"base64":return qe(this,we,ke);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ht(this,we,ke);default:if(Me)throw new TypeError("Unknown encoding: "+pe);pe=(pe+"").toLowerCase(),Me=!0}}function Ce(pe,we,ke){var Me=pe[we];pe[we]=pe[ke],pe[ke]=Me}function he(pe,we,ke,Me,Oe){if(pe.length===0)return-1;if(typeof ke=="string"?(Me=ke,ke=0):ke>2147483647?ke=2147483647:ke<-2147483648&&(ke=-2147483648),ke=+ke,isNaN(ke)&&(ke=Oe?0:pe.length-1),ke<0&&(ke=pe.length+ke),ke>=pe.length){if(Oe)return-1;ke=pe.length-1}else if(ke<0){if(!Oe)return-1;ke=0}if(typeof we=="string"&&(we=te.from(we,Me)),te.isBuffer(we))return we.length===0?-1:be(pe,we,ke,Me,Oe);if(typeof we=="number")return we&=255,te.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Oe?Uint8Array.prototype.indexOf.call(pe,we,ke):Uint8Array.prototype.lastIndexOf.call(pe,we,ke):be(pe,[we],ke,Me,Oe);throw new TypeError("val must be string, number or Buffer")}function be(pe,we,ke,Me,Oe){function tt(It,en){return ot===1?It[en]:It.readUInt16BE(en*ot)}var ot=1,st=pe.length,ft=we.length;if(Me!==void 0&&((Me=String(Me).toLowerCase())==="ucs2"||Me==="ucs-2"||Me==="utf16le"||Me==="utf-16le")){if(pe.length<2||we.length<2)return-1;ot=2,st/=2,ft/=2,ke/=2}var Ft;if(Oe){var Bt=-1;for(Ft=ke;Ft<st;Ft++)if(tt(pe,Ft)===tt(we,Bt===-1?0:Ft-Bt)){if(Bt===-1&&(Bt=Ft),Ft-Bt+1===ft)return Bt*ot}else Bt!==-1&&(Ft-=Ft-Bt),Bt=-1}else for(ke+ft>st&&(ke=st-ft),Ft=ke;Ft>=0;Ft--){for(var qt=!0,$t=0;$t<ft;$t++)if(tt(pe,Ft+$t)!==tt(we,$t)){qt=!1;break}if(qt)return Ft}return-1}function Ee(pe,we,ke,Me){ke=Number(ke)||0;var Oe=pe.length-ke;Me?(Me=Number(Me))>Oe&&(Me=Oe):Me=Oe;var tt=we.length;if(tt%2!=0)throw new TypeError("Invalid hex string");Me>tt/2&&(Me=tt/2);for(var ot=0;ot<Me;++ot){var st=parseInt(we.substr(2*ot,2),16);if(isNaN(st))return ot;pe[ke+ot]=st}return ot}function Ae(pe,we,ke,Me){return We(Mt(we,pe.length-ke),pe,ke,Me)}function De(pe,we,ke,Me){return We(wt(we),pe,ke,Me)}function je(pe,we,ke,Me){return De(pe,we,ke,Me)}function Fe(pe,we,ke,Me){return We(gt(we),pe,ke,Me)}function Re(pe,we,ke,Me){return We(bt(we,pe.length-ke),pe,ke,Me)}function qe(pe,we,ke){return we===0&&ke===pe.length?xe.fromByteArray(pe):xe.fromByteArray(pe.slice(we,ke))}function Je(pe,we,ke){ke=Math.min(pe.length,ke);for(var Me=[],Oe=we;Oe<ke;){var tt=pe[Oe],ot=null,st=tt>239?4:tt>223?3:tt>191?2:1;if(Oe+st<=ke){var ft,Ft,Bt,qt;switch(st){case 1:tt<128&&(ot=tt);break;case 2:ft=pe[Oe+1],(192&ft)==128&&(qt=(31&tt)<<6|63&ft)>127&&(ot=qt);break;case 3:ft=pe[Oe+1],Ft=pe[Oe+2],(192&ft)==128&&(192&Ft)==128&&(qt=(15&tt)<<12|(63&ft)<<6|63&Ft)>2047&&(qt<55296||qt>57343)&&(ot=qt);break;case 4:ft=pe[Oe+1],Ft=pe[Oe+2],Bt=pe[Oe+3],(192&ft)==128&&(192&Ft)==128&&(192&Bt)==128&&(qt=(15&tt)<<18|(63&ft)<<12|(63&Ft)<<6|63&Bt)>65535&&qt<1114112&&(ot=qt)}}ot===null?(ot=65533,st=1):ot>65535&&(ot-=65536,Me.push(ot>>>10&1023|55296),ot=56320|1023&ot),Me.push(ot),Oe+=st}return He(Me)}function He(pe){var we=pe.length;if(we<=Pe)return String.fromCharCode.apply(String,pe);for(var ke="",Me=0;Me<we;)ke+=String.fromCharCode.apply(String,pe.slice(Me,Me+=Pe));return ke}function ze(pe,we,ke){var Me="";ke=Math.min(pe.length,ke);for(var Oe=we;Oe<ke;++Oe)Me+=String.fromCharCode(127&pe[Oe]);return Me}function Qe(pe,we,ke){var Me="";ke=Math.min(pe.length,ke);for(var Oe=we;Oe<ke;++Oe)Me+=String.fromCharCode(pe[Oe]);return Me}function $e(pe,we,ke){var Me=pe.length;(!we||we<0)&&(we=0),(!ke||ke<0||ke>Me)&&(ke=Me);for(var Oe="",tt=we;tt<ke;++tt)Oe+=pt(pe[tt]);return Oe}function ht(pe,we,ke){for(var Me=pe.slice(we,ke),Oe="",tt=0;tt<Me.length;tt+=2)Oe+=String.fromCharCode(Me[tt]+256*Me[tt+1]);return Oe}function Ge(pe,we,ke){if(pe%1!=0||pe<0)throw new RangeError("offset is not uint");if(pe+we>ke)throw new RangeError("Trying to access beyond buffer length")}function Ue(pe,we,ke,Me,Oe,tt){if(!te.isBuffer(pe))throw new TypeError('"buffer" argument must be a Buffer instance');if(we>Oe||we<tt)throw new RangeError('"value" argument is out of bounds');if(ke+Me>pe.length)throw new RangeError("Index out of range")}function Ke(pe,we,ke,Me){we<0&&(we=65535+we+1);for(var Oe=0,tt=Math.min(pe.length-ke,2);Oe<tt;++Oe)pe[ke+Oe]=(we&255<<8*(Me?Oe:1-Oe))>>>8*(Me?Oe:1-Oe)}function et(pe,we,ke,Me){we<0&&(we=4294967295+we+1);for(var Oe=0,tt=Math.min(pe.length-ke,4);Oe<tt;++Oe)pe[ke+Oe]=we>>>8*(Me?Oe:3-Oe)&255}function rt(pe,we,ke,Me,Oe,tt){if(ke+Me>pe.length)throw new RangeError("Index out of range");if(ke<0)throw new RangeError("Index out of range")}function Xe(pe,we,ke,Me,Oe){return Oe||rt(pe,we,ke,4,34028234663852886e22,-34028234663852886e22),Be.write(pe,we,ke,Me,23,4),ke+4}function ut(pe,we,ke,Me,Oe){return Oe||rt(pe,we,ke,8,17976931348623157e292,-17976931348623157e292),Be.write(pe,we,ke,Me,52,8),ke+8}function lt(pe){if(pe=kt(pe).replace(Le,""),pe.length<2)return"";for(;pe.length%4!=0;)pe+="=";return pe}function kt(pe){return pe.trim?pe.trim():pe.replace(/^\s+|\s+$/g,"")}function pt(pe){return pe<16?"0"+pe.toString(16):pe.toString(16)}function Mt(pe,we){we=we||1/0;for(var ke,Me=pe.length,Oe=null,tt=[],ot=0;ot<Me;++ot){if((ke=pe.charCodeAt(ot))>55295&&ke<57344){if(!Oe){if(ke>56319){(we-=3)>-1&&tt.push(239,191,189);continue}if(ot+1===Me){(we-=3)>-1&&tt.push(239,191,189);continue}Oe=ke;continue}if(ke<56320){(we-=3)>-1&&tt.push(239,191,189),Oe=ke;continue}ke=65536+(Oe-55296<<10|ke-56320)}else Oe&&(we-=3)>-1&&tt.push(239,191,189);if(Oe=null,ke<128){if((we-=1)<0)break;tt.push(ke)}else if(ke<2048){if((we-=2)<0)break;tt.push(ke>>6|192,63&ke|128)}else if(ke<65536){if((we-=3)<0)break;tt.push(ke>>12|224,ke>>6&63|128,63&ke|128)}else{if(!(ke<1114112))throw new Error("Invalid code point");if((we-=4)<0)break;tt.push(ke>>18|240,ke>>12&63|128,ke>>6&63|128,63&ke|128)}}return tt}function wt(pe){for(var we=[],ke=0;ke<pe.length;++ke)we.push(255&pe.charCodeAt(ke));return we}function bt(pe,we){for(var ke,Me,Oe,tt=[],ot=0;ot<pe.length&&!((we-=2)<0);++ot)ke=pe.charCodeAt(ot),Me=ke>>8,Oe=ke%256,tt.push(Oe),tt.push(Me);return tt}function gt(pe){return xe.toByteArray(lt(pe))}function We(pe,we,ke,Me){for(var Oe=0;Oe<Me&&!(Oe+ke>=we.length||Oe>=pe.length);++Oe)we[Oe+ke]=pe[Oe];return Oe}function Ie(pe){return pe!==pe}var xe=ie("base64-js"),Be=ie("ieee754"),Ye=ie("isarray");de.Buffer=te,de.SlowBuffer=Se,de.INSPECT_MAX_BYTES=50,te.TYPED_ARRAY_SUPPORT=ue.TYPED_ARRAY_SUPPORT!==void 0?ue.TYPED_ARRAY_SUPPORT:function(){try{var pe=new Uint8Array(1);return pe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},pe.foo()===42&&typeof pe.subarray=="function"&&pe.subarray(1,1).byteLength===0}catch(we){return!1}}(),de.kMaxLength=ae(),te.poolSize=8192,te._augment=function(pe){return pe.__proto__=te.prototype,pe},te.from=function(pe,we,ke){return ne(null,pe,we,ke)},te.TYPED_ARRAY_SUPPORT&&(te.prototype.__proto__=Uint8Array.prototype,te.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&te[Symbol.species]===te&&Object.defineProperty(te,Symbol.species,{value:null,configurable:!0})),te.alloc=function(pe,we,ke){return b(null,pe,we,ke)},te.allocUnsafe=function(pe){return ee(null,pe)},te.allocUnsafeSlow=function(pe){return ee(null,pe)},te.isBuffer=function(pe){return!(pe==null||!pe._isBuffer)},te.compare=function(pe,we){if(!te.isBuffer(pe)||!te.isBuffer(we))throw new TypeError("Arguments must be Buffers");if(pe===we)return 0;for(var ke=pe.length,Me=we.length,Oe=0,tt=Math.min(ke,Me);Oe<tt;++Oe)if(pe[Oe]!==we[Oe]){ke=pe[Oe],Me=we[Oe];break}return ke<Me?-1:Me<ke?1:0},te.isEncoding=function(pe){switch(String(pe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},te.concat=function(pe,we){if(!Ye(pe))throw new TypeError('"list" argument must be an Array of Buffers');if(pe.length===0)return te.alloc(0);var ke;if(we===void 0)for(we=0,ke=0;ke<pe.length;++ke)we+=pe[ke].length;var Me=te.allocUnsafe(we),Oe=0;for(ke=0;ke<pe.length;++ke){var tt=pe[ke];if(!te.isBuffer(tt))throw new TypeError('"list" argument must be an Array of Buffers');tt.copy(Me,Oe),Oe+=tt.length}return Me},te.byteLength=ge,te.prototype._isBuffer=!0,te.prototype.swap16=function(){var pe=this.length;if(pe%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var we=0;we<pe;we+=2)Ce(this,we,we+1);return this},te.prototype.swap32=function(){var pe=this.length;if(pe%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var we=0;we<pe;we+=4)Ce(this,we,we+3),Ce(this,we+1,we+2);return this},te.prototype.swap64=function(){var pe=this.length;if(pe%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var we=0;we<pe;we+=8)Ce(this,we,we+7),Ce(this,we+1,we+6),Ce(this,we+2,we+5),Ce(this,we+3,we+4);return this},te.prototype.toString=function(){var pe=0|this.length;return pe===0?"":arguments.length===0?Je(this,0,pe):_e.apply(this,arguments)},te.prototype.equals=function(pe){if(!te.isBuffer(pe))throw new TypeError("Argument must be a Buffer");return this===pe||te.compare(this,pe)===0},te.prototype.inspect=function(){var pe="",we=de.INSPECT_MAX_BYTES;return this.length>0&&(pe=this.toString("hex",0,we).match(/.{2}/g).join(" "),this.length>we&&(pe+=" ... ")),"<Buffer "+pe+">"},te.prototype.compare=function(pe,we,ke,Me,Oe){if(!te.isBuffer(pe))throw new TypeError("Argument must be a Buffer");if(we===void 0&&(we=0),ke===void 0&&(ke=pe?pe.length:0),Me===void 0&&(Me=0),Oe===void 0&&(Oe=this.length),we<0||ke>pe.length||Me<0||Oe>this.length)throw new RangeError("out of range index");if(Me>=Oe&&we>=ke)return 0;if(Me>=Oe)return-1;if(we>=ke)return 1;if(we>>>=0,ke>>>=0,Me>>>=0,Oe>>>=0,this===pe)return 0;for(var tt=Oe-Me,ot=ke-we,st=Math.min(tt,ot),ft=this.slice(Me,Oe),Ft=pe.slice(we,ke),Bt=0;Bt<st;++Bt)if(ft[Bt]!==Ft[Bt]){tt=ft[Bt],ot=Ft[Bt];break}return tt<ot?-1:ot<tt?1:0},te.prototype.includes=function(pe,we,ke){return this.indexOf(pe,we,ke)!==-1},te.prototype.indexOf=function(pe,we,ke){return he(this,pe,we,ke,!0)},te.prototype.lastIndexOf=function(pe,we,ke){return he(this,pe,we,ke,!1)},te.prototype.write=function(pe,we,ke,Me){if(we===void 0)Me="utf8",ke=this.length,we=0;else if(ke===void 0&&typeof we=="string")Me=we,ke=this.length,we=0;else{if(!isFinite(we))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");we|=0,isFinite(ke)?(ke|=0,Me===void 0&&(Me="utf8")):(Me=ke,ke=void 0)}var Oe=this.length-we;if((ke===void 0||ke>Oe)&&(ke=Oe),pe.length>0&&(ke<0||we<0)||we>this.length)throw new RangeError("Attempt to write outside buffer bounds");Me||(Me="utf8");for(var tt=!1;;)switch(Me){case"hex":return Ee(this,pe,we,ke);case"utf8":case"utf-8":return Ae(this,pe,we,ke);case"ascii":return De(this,pe,we,ke);case"latin1":case"binary":return je(this,pe,we,ke);case"base64":return Fe(this,pe,we,ke);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,pe,we,ke);default:if(tt)throw new TypeError("Unknown encoding: "+Me);Me=(""+Me).toLowerCase(),tt=!0}},te.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Pe=4096;te.prototype.slice=function(pe,we){var ke=this.length;pe=~~pe,we=we===void 0?ke:~~we,pe<0?(pe+=ke)<0&&(pe=0):pe>ke&&(pe=ke),we<0?(we+=ke)<0&&(we=0):we>ke&&(we=ke),we<pe&&(we=pe);var Me;if(te.TYPED_ARRAY_SUPPORT)Me=this.subarray(pe,we),Me.__proto__=te.prototype;else{var Oe=we-pe;Me=new te(Oe,void 0);for(var tt=0;tt<Oe;++tt)Me[tt]=this[tt+pe]}return Me},te.prototype.readUIntLE=function(pe,we,ke){pe|=0,we|=0,ke||Ge(pe,we,this.length);for(var Me=this[pe],Oe=1,tt=0;++tt<we&&(Oe*=256);)Me+=this[pe+tt]*Oe;return Me},te.prototype.readUIntBE=function(pe,we,ke){pe|=0,we|=0,ke||Ge(pe,we,this.length);for(var Me=this[pe+--we],Oe=1;we>0&&(Oe*=256);)Me+=this[pe+--we]*Oe;return Me},te.prototype.readUInt8=function(pe,we){return we||Ge(pe,1,this.length),this[pe]},te.prototype.readUInt16LE=function(pe,we){return we||Ge(pe,2,this.length),this[pe]|this[pe+1]<<8},te.prototype.readUInt16BE=function(pe,we){return we||Ge(pe,2,this.length),this[pe]<<8|this[pe+1]},te.prototype.readUInt32LE=function(pe,we){return we||Ge(pe,4,this.length),(this[pe]|this[pe+1]<<8|this[pe+2]<<16)+16777216*this[pe+3]},te.prototype.readUInt32BE=function(pe,we){return we||Ge(pe,4,this.length),16777216*this[pe]+(this[pe+1]<<16|this[pe+2]<<8|this[pe+3])},te.prototype.readIntLE=function(pe,we,ke){pe|=0,we|=0,ke||Ge(pe,we,this.length);for(var Me=this[pe],Oe=1,tt=0;++tt<we&&(Oe*=256);)Me+=this[pe+tt]*Oe;return Oe*=128,Me>=Oe&&(Me-=Math.pow(2,8*we)),Me},te.prototype.readIntBE=function(pe,we,ke){pe|=0,we|=0,ke||Ge(pe,we,this.length);for(var Me=we,Oe=1,tt=this[pe+--Me];Me>0&&(Oe*=256);)tt+=this[pe+--Me]*Oe;return Oe*=128,tt>=Oe&&(tt-=Math.pow(2,8*we)),tt},te.prototype.readInt8=function(pe,we){return we||Ge(pe,1,this.length),128&this[pe]?-1*(255-this[pe]+1):this[pe]},te.prototype.readInt16LE=function(pe,we){we||Ge(pe,2,this.length);var ke=this[pe]|this[pe+1]<<8;return 32768&ke?4294901760|ke:ke},te.prototype.readInt16BE=function(pe,we){we||Ge(pe,2,this.length);var ke=this[pe+1]|this[pe]<<8;return 32768&ke?4294901760|ke:ke},te.prototype.readInt32LE=function(pe,we){return we||Ge(pe,4,this.length),this[pe]|this[pe+1]<<8|this[pe+2]<<16|this[pe+3]<<24},te.prototype.readInt32BE=function(pe,we){return we||Ge(pe,4,this.length),this[pe]<<24|this[pe+1]<<16|this[pe+2]<<8|this[pe+3]},te.prototype.readFloatLE=function(pe,we){return we||Ge(pe,4,this.length),Be.read(this,pe,!0,23,4)},te.prototype.readFloatBE=function(pe,we){return we||Ge(pe,4,this.length),Be.read(this,pe,!1,23,4)},te.prototype.readDoubleLE=function(pe,we){return we||Ge(pe,8,this.length),Be.read(this,pe,!0,52,8)},te.prototype.readDoubleBE=function(pe,we){return we||Ge(pe,8,this.length),Be.read(this,pe,!1,52,8)},te.prototype.writeUIntLE=function(pe,we,ke,Me){pe=+pe,we|=0,ke|=0,!Me&&Ue(this,pe,we,ke,Math.pow(2,8*ke)-1,0);var Oe=1,tt=0;for(this[we]=255&pe;++tt<ke&&(Oe*=256);)this[we+tt]=pe/Oe&255;return we+ke},te.prototype.writeUIntBE=function(pe,we,ke,Me){pe=+pe,we|=0,ke|=0,!Me&&Ue(this,pe,we,ke,Math.pow(2,8*ke)-1,0);var Oe=ke-1,tt=1;for(this[we+Oe]=255&pe;--Oe>=0&&(tt*=256);)this[we+Oe]=pe/tt&255;return we+ke},te.prototype.writeUInt8=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,1,255,0),te.TYPED_ARRAY_SUPPORT||(pe=Math.floor(pe)),this[we]=255&pe,we+1},te.prototype.writeUInt16LE=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,2,65535,0),te.TYPED_ARRAY_SUPPORT?(this[we]=255&pe,this[we+1]=pe>>>8):Ke(this,pe,we,!0),we+2},te.prototype.writeUInt16BE=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,2,65535,0),te.TYPED_ARRAY_SUPPORT?(this[we]=pe>>>8,this[we+1]=255&pe):Ke(this,pe,we,!1),we+2},te.prototype.writeUInt32LE=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,4,4294967295,0),te.TYPED_ARRAY_SUPPORT?(this[we+3]=pe>>>24,this[we+2]=pe>>>16,this[we+1]=pe>>>8,this[we]=255&pe):et(this,pe,we,!0),we+4},te.prototype.writeUInt32BE=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,4,4294967295,0),te.TYPED_ARRAY_SUPPORT?(this[we]=pe>>>24,this[we+1]=pe>>>16,this[we+2]=pe>>>8,this[we+3]=255&pe):et(this,pe,we,!1),we+4},te.prototype.writeIntLE=function(pe,we,ke,Me){if(pe=+pe,we|=0,!Me){var Oe=Math.pow(2,8*ke-1);Ue(this,pe,we,ke,Oe-1,-Oe)}var tt=0,ot=1,st=0;for(this[we]=255&pe;++tt<ke&&(ot*=256);)pe<0&&st===0&&this[we+tt-1]!==0&&(st=1),this[we+tt]=(pe/ot>>0)-st&255;return we+ke},te.prototype.writeIntBE=function(pe,we,ke,Me){if(pe=+pe,we|=0,!Me){var Oe=Math.pow(2,8*ke-1);Ue(this,pe,we,ke,Oe-1,-Oe)}var tt=ke-1,ot=1,st=0;for(this[we+tt]=255&pe;--tt>=0&&(ot*=256);)pe<0&&st===0&&this[we+tt+1]!==0&&(st=1),this[we+tt]=(pe/ot>>0)-st&255;return we+ke},te.prototype.writeInt8=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,1,127,-128),te.TYPED_ARRAY_SUPPORT||(pe=Math.floor(pe)),pe<0&&(pe=255+pe+1),this[we]=255&pe,we+1},te.prototype.writeInt16LE=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,2,32767,-32768),te.TYPED_ARRAY_SUPPORT?(this[we]=255&pe,this[we+1]=pe>>>8):Ke(this,pe,we,!0),we+2},te.prototype.writeInt16BE=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,2,32767,-32768),te.TYPED_ARRAY_SUPPORT?(this[we]=pe>>>8,this[we+1]=255&pe):Ke(this,pe,we,!1),we+2},te.prototype.writeInt32LE=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,4,2147483647,-2147483648),te.TYPED_ARRAY_SUPPORT?(this[we]=255&pe,this[we+1]=pe>>>8,this[we+2]=pe>>>16,this[we+3]=pe>>>24):et(this,pe,we,!0),we+4},te.prototype.writeInt32BE=function(pe,we,ke){return pe=+pe,we|=0,ke||Ue(this,pe,we,4,2147483647,-2147483648),pe<0&&(pe=4294967295+pe+1),te.TYPED_ARRAY_SUPPORT?(this[we]=pe>>>24,this[we+1]=pe>>>16,this[we+2]=pe>>>8,this[we+3]=255&pe):et(this,pe,we,!1),we+4},te.prototype.writeFloatLE=function(pe,we,ke){return Xe(this,pe,we,!0,ke)},te.prototype.writeFloatBE=function(pe,we,ke){return Xe(this,pe,we,!1,ke)},te.prototype.writeDoubleLE=function(pe,we,ke){return ut(this,pe,we,!0,ke)},te.prototype.writeDoubleBE=function(pe,we,ke){return ut(this,pe,we,!1,ke)},te.prototype.copy=function(pe,we,ke,Me){if(ke||(ke=0),Me||Me===0||(Me=this.length),we>=pe.length&&(we=pe.length),we||(we=0),Me>0&&Me<ke&&(Me=ke),Me===ke||pe.length===0||this.length===0)return 0;if(we<0)throw new RangeError("targetStart out of bounds");if(ke<0||ke>=this.length)throw new RangeError("sourceStart out of bounds");if(Me<0)throw new RangeError("sourceEnd out of bounds");Me>this.length&&(Me=this.length),pe.length-we<Me-ke&&(Me=pe.length-we+ke);var Oe,tt=Me-ke;if(this===pe&&ke<we&&we<Me)for(Oe=tt-1;Oe>=0;--Oe)pe[Oe+we]=this[Oe+ke];else if(tt<1e3||!te.TYPED_ARRAY_SUPPORT)for(Oe=0;Oe<tt;++Oe)pe[Oe+we]=this[Oe+ke];else Uint8Array.prototype.set.call(pe,this.subarray(ke,ke+tt),we);return tt},te.prototype.fill=function(pe,we,ke,Me){if(typeof pe=="string"){if(typeof we=="string"?(Me=we,we=0,ke=this.length):typeof ke=="string"&&(Me=ke,ke=this.length),pe.length===1){var Oe=pe.charCodeAt(0);Oe<256&&(pe=Oe)}if(Me!==void 0&&typeof Me!="string")throw new TypeError("encoding must be a string");if(typeof Me=="string"&&!te.isEncoding(Me))throw new TypeError("Unknown encoding: "+Me)}else typeof pe=="number"&&(pe&=255);if(we<0||this.length<we||this.length<ke)throw new RangeError("Out of range index");if(ke<=we)return this;we>>>=0,ke=ke===void 0?this.length:ke>>>0,pe||(pe=0);var tt;if(typeof pe=="number")for(tt=we;tt<ke;++tt)this[tt]=pe;else{var ot=te.isBuffer(pe)?pe:Mt(new te(pe,Me).toString()),st=ot.length;for(tt=0;tt<ke-we;++tt)this[tt+we]=ot[tt%st]}return this};var Le=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(ie,fe,de){fe.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(ie,fe,de){"use strict";var ue=function(){this.buffer=[],this.fns=[]};ue.prototype.push=function(se,te){if(this.fns.length)return this.fns.shift()(null,se);var ne={data:se,priority:te},x=ae(this.buffer,ne,function(b){return b.priority});this.buffer.splice(x,0,ne)},ue.prototype.next=function(){var se=this;return function(te){if(se.buffer.length)return te(null,se.buffer.pop().data);se.fns.push(te)}};var ae=function(se,te,ne){te=ne(te);for(var x=0,b=se?se.length:x;x<b;){var ee=x+b>>>1;ne(se[ee])<te?x=ee+1:b=ee}return x};fe.exports=ue},{}],41:[function(ie,fe,de){function ue(ce){var le=this,ve=re.call(arguments,1);return new Promise(function(Se,ge){function _e(be){var Ee;try{Ee=ce.next(be)}catch(Ae){return ge(Ae)}he(Ee)}function Ce(be){var Ee;try{Ee=ce.throw(be)}catch(Ae){return ge(Ae)}he(Ee)}function he(be){if(be.done)return Se(be.value);var Ee=ae.call(le,be.value);return Ee&&x(Ee)?Ee.then(_e,Ce):Ce(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(be.value)+'"'))}if(typeof ce=="function"&&(ce=ce.apply(le,ve)),!ce||typeof ce.next!="function")return Se(ce);_e()})}function ae(ce){return ce&&(x(ce)?ce:ee(ce)||b(ce)?ue.call(this,ce):typeof ce=="function"?se.call(this,ce):Array.isArray(ce)?te.call(this,ce):E(ce)?ne.call(this,ce):ce)}function se(ce){var le=this;return new Promise(function(ve,Se){ce.call(le,function(ge,_e){if(ge)return Se(ge);arguments.length>2&&(_e=re.call(arguments,1)),ve(_e)})})}function te(ce){return Promise.all(ce.map(ae,this))}function ne(ce){for(var le=new ce.constructor,ve=Object.keys(ce),Se=[],ge=0;ge<ve.length;ge++){var _e=ve[ge],Ce=ae.call(this,ce[_e]);Ce&&x(Ce)?function(he,be){le[be]=void 0,Se.push(he.then(function(Ee){le[be]=Ee}))}(Ce,_e):le[_e]=ce[_e]}return Promise.all(Se).then(function(){return le})}function x(ce){return typeof ce.then=="function"}function b(ce){return typeof ce.next=="function"&&typeof ce.throw=="function"}function ee(ce){var le=ce.constructor;return!!le&&(le.name==="GeneratorFunction"||le.displayName==="GeneratorFunction"||b(le.prototype))}function E(ce){return Object==ce.constructor}var re=Array.prototype.slice;fe.exports=ue.default=ue.co=ue,ue.wrap=function(ce){function le(){return ue.call(this,ce.apply(this,arguments))}return le.__generatorFunction__=ce,le}},{}],42:[function(ie,fe,de){fe.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(ie,fe,de){"use strict";function ue(te,ne){if(!(this instanceof ue))return new ue(te,ne);this.src=te,this._withAccess=ne}function ae(te,ne){return te[ne]===void 0&&te.__lookupGetter__(ne)===void 0&&te.__lookupSetter__(ne)===void 0}var se=Array.prototype.slice;fe.exports=ue,ue.prototype.withAccess=function(te){return this._withAccess=te!==!1,this},ue.prototype.pick=function(te){return Array.isArray(te)||(te=se.call(arguments)),te.length&&(this.keys=te),this},ue.prototype.to=function(te){if(te=te||{},!this.src)return te;var ne=this.keys||Object.keys(this.src);if(!this._withAccess){for(var x=0;x<ne.length;x++)b=ne[x],te[b]===void 0&&(te[b]=this.src[b]);return te}for(var x=0;x<ne.length;x++){var b=ne[x];if(ae(te,b)){var ee=this.src.__lookupGetter__(b),E=this.src.__lookupSetter__(b);ee&&te.__defineGetter__(b,ee),E&&te.__defineSetter__(b,E),ee||E||(te[b]=this.src[b])}}return te},ue.prototype.toCover=function(te){for(var ne=this.keys||Object.keys(this.src),x=0;x<ne.length;x++){var b=ne[x];delete te[b];var ee=this.src.__lookupGetter__(b),E=this.src.__lookupSetter__(b);ee&&te.__defineGetter__(b,ee),E&&te.__defineSetter__(b,E),ee||E||(te[b]=this.src[b])}},ue.prototype.override=ue.prototype.toCover,ue.prototype.and=function(te){var ne={};return this.to(ne),this.src=te,this.to(ne),this.src=ne,this}},{}],44:[function(ie,fe,de){ie("../../modules/es6.string.iterator"),ie("../../modules/es6.array.from"),fe.exports=ie("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(ie,fe,de){var ue=ie("../../modules/_core"),ae=ue.JSON||(ue.JSON={stringify:JSON.stringify});fe.exports=function(se){return ae.stringify.apply(ae,arguments)}},{"../../modules/_core":65}],46:[function(ie,fe,de){ie("../../modules/es6.object.assign"),fe.exports=ie("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(ie,fe,de){ie("../../modules/es6.object.create");var ue=ie("../../modules/_core").Object;fe.exports=function(ae,se){return ue.create(ae,se)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(ie,fe,de){ie("../../modules/es6.object.define-property");var ue=ie("../../modules/_core").Object;fe.exports=function(ae,se,te){return ue.defineProperty(ae,se,te)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(ie,fe,de){ie("../../modules/es6.object.get-own-property-names");var ue=ie("../../modules/_core").Object;fe.exports=function(ae){return ue.getOwnPropertyNames(ae)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(ie,fe,de){ie("../../modules/es6.object.get-prototype-of"),fe.exports=ie("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(ie,fe,de){ie("../../modules/es6.object.keys"),fe.exports=ie("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(ie,fe,de){ie("../modules/es6.object.to-string"),ie("../modules/es6.string.iterator"),ie("../modules/web.dom.iterable"),ie("../modules/es6.promise"),ie("../modules/es7.promise.finally"),ie("../modules/es7.promise.try"),fe.exports=ie("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(ie,fe,de){ie("../modules/web.immediate"),fe.exports=ie("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(ie,fe,de){ie("../../modules/es6.string.from-code-point"),fe.exports=ie("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(ie,fe,de){ie("../../modules/es6.function.has-instance"),fe.exports=ie("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(ie,fe,de){ie("../../modules/es6.symbol"),ie("../../modules/es6.object.to-string"),ie("../../modules/es7.symbol.async-iterator"),ie("../../modules/es7.symbol.observable"),fe.exports=ie("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(ie,fe,de){ie("../../modules/es6.string.iterator"),ie("../../modules/web.dom.iterable"),fe.exports=ie("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(ie,fe,de){fe.exports=function(ue){if(typeof ue!="function")throw TypeError(ue+" is not a function!");return ue}},{}],59:[function(ie,fe,de){fe.exports=function(){}},{}],60:[function(ie,fe,de){fe.exports=function(ue,ae,se,te){if(!(ue instanceof ae)||te!==void 0&&te in ue)throw TypeError(se+": incorrect invocation!");return ue}},{}],61:[function(ie,fe,de){var ue=ie("./_is-object");fe.exports=function(ae){if(!ue(ae))throw TypeError(ae+" is not an object!");return ae}},{"./_is-object":85}],62:[function(ie,fe,de){var ue=ie("./_to-iobject"),ae=ie("./_to-length"),se=ie("./_to-absolute-index");fe.exports=function(te){return function(ne,x,b){var ee,E=ue(ne),re=ae(E.length),ce=se(b,re);if(te&&x!=x){for(;re>ce;)if((ee=E[ce++])!=ee)return!0}else for(;re>ce;ce++)if((te||ce in E)&&E[ce]===x)return te||ce||0;return!te&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(ie,fe,de){var ue=ie("./_cof"),ae=ie("./_wks")("toStringTag"),se=ue(function(){return arguments}())=="Arguments",te=function(ne,x){try{return ne[x]}catch(b){}};fe.exports=function(ne){var x,b,ee;return ne===void 0?"Undefined":ne===null?"Null":typeof(b=te(x=Object(ne),ae))=="string"?b:se?ue(x):(ee=ue(x))=="Object"&&typeof x.callee=="function"?"Arguments":ee}},{"./_cof":64,"./_wks":131}],64:[function(ie,fe,de){var ue={}.toString;fe.exports=function(ae){return ue.call(ae).slice(8,-1)}},{}],65:[function(ie,fe,de){var ue=fe.exports={version:"2.5.7"};typeof __e=="number"&&(__e=ue)},{}],66:[function(ie,fe,de){"use strict";var ue=ie("./_object-dp"),ae=ie("./_property-desc");fe.exports=function(se,te,ne){te in se?ue.f(se,te,ae(0,ne)):se[te]=ne}},{"./_object-dp":98,"./_property-desc":111}],67:[function(ie,fe,de){var ue=ie("./_a-function");fe.exports=function(ae,se,te){if(ue(ae),se===void 0)return ae;switch(te){case 1:return function(ne){return ae.call(se,ne)};case 2:return function(ne,x){return ae.call(se,ne,x)};case 3:return function(ne,x,b){return ae.call(se,ne,x,b)}}return function(){return ae.apply(se,arguments)}}},{"./_a-function":58}],68:[function(ie,fe,de){fe.exports=function(ue){if(ue==null)throw TypeError("Can't call method on "+ue);return ue}},{}],69:[function(ie,fe,de){fe.exports=!ie("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(ie,fe,de){var ue=ie("./_is-object"),ae=ie("./_global").document,se=ue(ae)&&ue(ae.createElement);fe.exports=function(te){return se?ae.createElement(te):{}}},{"./_global":76,"./_is-object":85}],71:[function(ie,fe,de){fe.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(ie,fe,de){var ue=ie("./_object-keys"),ae=ie("./_object-gops"),se=ie("./_object-pie");fe.exports=function(te){var ne=ue(te),x=ae.f;if(x)for(var b,ee=x(te),E=se.f,re=0;ee.length>re;)E.call(te,b=ee[re++])&&ne.push(b);return ne}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(ie,fe,de){var ue=ie("./_global"),ae=ie("./_core"),se=ie("./_ctx"),te=ie("./_hide"),ne=ie("./_has"),x=function(b,ee,E){var re,ce,le,ve=b&x.F,Se=b&x.G,ge=b&x.S,_e=b&x.P,Ce=b&x.B,he=b&x.W,be=Se?ae:ae[ee]||(ae[ee]={}),Ee=be.prototype,Ae=Se?ue:ge?ue[ee]:(ue[ee]||{}).prototype;Se&&(E=ee);for(re in E)(ce=!ve&&Ae&&Ae[re]!==void 0)&&ne(be,re)||(le=ce?Ae[re]:E[re],be[re]=Se&&typeof Ae[re]!="function"?E[re]:Ce&&ce?se(le,ue):he&&Ae[re]==le?function(De){var je=function(Fe,Re,qe){if(this instanceof De){switch(arguments.length){case 0:return new De;case 1:return new De(Fe);case 2:return new De(Fe,Re)}return new De(Fe,Re,qe)}return De.apply(this,arguments)};return je.prototype=De.prototype,je}(le):_e&&typeof le=="function"?se(Function.call,le):le,_e&&((be.virtual||(be.virtual={}))[re]=le,b&x.R&&Ee&&!Ee[re]&&te(Ee,re,le)))};x.F=1,x.G=2,x.S=4,x.P=8,x.B=16,x.W=32,x.U=64,x.R=128,fe.exports=x},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(ie,fe,de){fe.exports=function(ue){try{return!!ue()}catch(ae){return!0}}},{}],75:[function(ie,fe,E){var ue=ie("./_ctx"),ae=ie("./_iter-call"),se=ie("./_is-array-iter"),te=ie("./_an-object"),ne=ie("./_to-length"),x=ie("./core.get-iterator-method"),b={},ee={},E=fe.exports=function(re,ce,le,ve,Se){var ge,_e,Ce,he,be=Se?function(){return re}:x(re),Ee=ue(le,ve,ce?2:1),Ae=0;if(typeof be!="function")throw TypeError(re+" is not iterable!");if(se(be)){for(ge=ne(re.length);ge>Ae;Ae++)if((he=ce?Ee(te(_e=re[Ae])[0],_e[1]):Ee(re[Ae]))===b||he===ee)return he}else for(Ce=be.call(re);!(_e=Ce.next()).done;)if((he=ae(Ce,Ee,_e.value,ce))===b||he===ee)return he};E.BREAK=b,E.RETURN=ee},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(ie,fe,de){var ue=fe.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=ue)},{}],77:[function(ie,fe,de){var ue={}.hasOwnProperty;fe.exports=function(ae,se){return ue.call(ae,se)}},{}],78:[function(ie,fe,de){var ue=ie("./_object-dp"),ae=ie("./_property-desc");fe.exports=ie("./_descriptors")?function(se,te,ne){return ue.f(se,te,ae(1,ne))}:function(se,te,ne){return se[te]=ne,se}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(ie,fe,de){var ue=ie("./_global").document;fe.exports=ue&&ue.documentElement},{"./_global":76}],80:[function(ie,fe,de){fe.exports=!ie("./_descriptors")&&!ie("./_fails")(function(){return Object.defineProperty(ie("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(ie,fe,de){fe.exports=function(ue,ae,se){var te=se===void 0;switch(ae.length){case 0:return te?ue():ue.call(se);case 1:return te?ue(ae[0]):ue.call(se,ae[0]);case 2:return te?ue(ae[0],ae[1]):ue.call(se,ae[0],ae[1]);case 3:return te?ue(ae[0],ae[1],ae[2]):ue.call(se,ae[0],ae[1],ae[2]);case 4:return te?ue(ae[0],ae[1],ae[2],ae[3]):ue.call(se,ae[0],ae[1],ae[2],ae[3])}return ue.apply(se,ae)}},{}],82:[function(ie,fe,de){var ue=ie("./_cof");fe.exports=Object("z").propertyIsEnumerable(0)?Object:function(ae){return ue(ae)=="String"?ae.split(""):Object(ae)}},{"./_cof":64}],83:[function(ie,fe,de){var ue=ie("./_iterators"),ae=ie("./_wks")("iterator"),se=Array.prototype;fe.exports=function(te){return te!==void 0&&(ue.Array===te||se[ae]===te)}},{"./_iterators":91,"./_wks":131}],84:[function(ie,fe,de){var ue=ie("./_cof");fe.exports=Array.isArray||function(ae){return ue(ae)=="Array"}},{"./_cof":64}],85:[function(ie,fe,de){fe.exports=function(ue){return typeof ue=="object"?ue!==null:typeof ue=="function"}},{}],86:[function(ie,fe,de){var ue=ie("./_an-object");fe.exports=function(ae,se,te,ne){try{return ne?se(ue(te)[0],te[1]):se(te)}catch(b){var x=ae.return;throw x!==void 0&&ue(x.call(ae)),b}}},{"./_an-object":61}],87:[function(ie,fe,de){"use strict";var ue=ie("./_object-create"),ae=ie("./_property-desc"),se=ie("./_set-to-string-tag"),te={};ie("./_hide")(te,ie("./_wks")("iterator"),function(){return this}),fe.exports=function(ne,x,b){ne.prototype=ue(te,{next:ae(1,b)}),se(ne,x+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(ie,fe,de){"use strict";var ue=ie("./_library"),ae=ie("./_export"),se=ie("./_redefine"),te=ie("./_hide"),ne=ie("./_iterators"),x=ie("./_iter-create"),b=ie("./_set-to-string-tag"),ee=ie("./_object-gpo"),E=ie("./_wks")("iterator"),re=!([].keys&&"next"in[].keys()),ce=function(){return this};fe.exports=function(le,ve,Se,ge,_e,Ce,he){x(Se,ve,ge);var be,Ee,Ae,De=function($e){if(!re&&$e in qe)return qe[$e];switch($e){case"keys":case"values":return function(){return new Se(this,$e)}}return function(){return new Se(this,$e)}},je=ve+" Iterator",Fe=_e=="values",Re=!1,qe=le.prototype,Je=qe[E]||qe["@@iterator"]||_e&&qe[_e],He=Je||De(_e),ze=_e?Fe?De("entries"):He:void 0,Qe=ve=="Array"&&qe.entries||Je;if(Qe&&(Ae=ee(Qe.call(new le)))!==Object.prototype&&Ae.next&&(b(Ae,je,!0),ue||typeof Ae[E]=="function"||te(Ae,E,ce)),Fe&&Je&&Je.name!=="values"&&(Re=!0,He=function(){return Je.call(this)}),ue&&!he||!re&&!Re&&qe[E]||te(qe,E,He),ne[ve]=He,ne[je]=ce,_e)if(be={values:Fe?He:De("values"),keys:Ce?He:De("keys"),entries:ze},he)for(Ee in be)Ee in qe||se(qe,Ee,be[Ee]);else ae(ae.P+ae.F*(re||Re),ve,be);return be}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(ie,fe,de){var ue=ie("./_wks")("iterator"),ae=!1;try{var se=[7][ue]();se.return=function(){ae=!0},Array.from(se,function(){throw 2})}catch(te){}fe.exports=function(te,ne){if(!ne&&!ae)return!1;var x=!1;try{var b=[7],ee=b[ue]();ee.next=function(){return{done:x=!0}},b[ue]=function(){return ee},te(b)}catch(E){}return x}},{"./_wks":131}],90:[function(ie,fe,de){fe.exports=function(ue,ae){return{value:ae,done:!!ue}}},{}],91:[function(ie,fe,de){fe.exports={}},{}],92:[function(ie,fe,de){fe.exports=!0},{}],93:[function(ie,fe,de){var ue=ie("./_uid")("meta"),ae=ie("./_is-object"),se=ie("./_has"),te=ie("./_object-dp").f,ne=0,x=Object.isExtensible||function(){return!0},b=!ie("./_fails")(function(){return x(Object.preventExtensions({}))}),ee=function(ve){te(ve,ue,{value:{i:"O"+ ++ne,w:{}}})},E=function(ve,Se){if(!ae(ve))return typeof ve=="symbol"?ve:(typeof ve=="string"?"S":"P")+ve;if(!se(ve,ue)){if(!x(ve))return"F";if(!Se)return"E";ee(ve)}return ve[ue].i},re=function(ve,Se){if(!se(ve,ue)){if(!x(ve))return!0;if(!Se)return!1;ee(ve)}return ve[ue].w},ce=function(ve){return b&&le.NEED&&x(ve)&&!se(ve,ue)&&ee(ve),ve},le=fe.exports={KEY:ue,NEED:!1,fastKey:E,getWeak:re,onFreeze:ce}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(ie,fe,de){var ue=ie("./_global"),ae=ie("./_task").set,se=ue.MutationObserver||ue.WebKitMutationObserver,te=ue.process,ne=ue.Promise,x=ie("./_cof")(te)=="process";fe.exports=function(){var b,ee,E,re=function(){var Se,ge;for(x&&(Se=te.domain)&&Se.exit();b;){ge=b.fn,b=b.next;try{ge()}catch(_e){throw b?E():ee=void 0,_e}}ee=void 0,Se&&Se.enter()};if(x)E=function(){te.nextTick(re)};else if(!se||ue.navigator&&ue.navigator.standalone)if(ne&&ne.resolve){var ce=ne.resolve(void 0);E=function(){ce.then(re)}}else E=function(){ae.call(ue,re)};else{var le=!0,ve=document.createTextNode("");new se(re).observe(ve,{characterData:!0}),E=function(){ve.data=le=!le}}return function(Se){var ge={fn:Se,next:void 0};ee&&(ee.next=ge),b||(b=ge,E()),ee=ge}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(ie,fe,de){"use strict";function ue(se){var te,ne;this.promise=new se(function(x,b){if(te!==void 0||ne!==void 0)throw TypeError("Bad Promise constructor");te=x,ne=b}),this.resolve=ae(te),this.reject=ae(ne)}var ae=ie("./_a-function");fe.exports.f=function(se){return new ue(se)}},{"./_a-function":58}],96:[function(ie,fe,de){"use strict";var ue=ie("./_object-keys"),ae=ie("./_object-gops"),se=ie("./_object-pie"),te=ie("./_to-object"),ne=ie("./_iobject"),x=Object.assign;fe.exports=!x||ie("./_fails")(function(){var b={},ee={},E=Symbol(),re="abcdefghijklmnopqrst";return b[E]=7,re.split("").forEach(function(ce){ee[ce]=ce}),x({},b)[E]!=7||Object.keys(x({},ee)).join("")!=re})?function(b,ee){for(var E=te(b),re=arguments.length,ce=1,le=ae.f,ve=se.f;re>ce;)for(var Se,ge=ne(arguments[ce++]),_e=le?ue(ge).concat(le(ge)):ue(ge),Ce=_e.length,he=0;Ce>he;)ve.call(ge,Se=_e[he++])&&(E[Se]=ge[Se]);return E}:x},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(ie,fe,de){var ue=ie("./_an-object"),ae=ie("./_object-dps"),se=ie("./_enum-bug-keys"),te=ie("./_shared-key")("IE_PROTO"),ne=function(){},x=function(){var b,ee=ie("./_dom-create")("iframe"),E=se.length;for(ee.style.display="none",ie("./_html").appendChild(ee),ee.src="javascript:",b=ee.contentWindow.document,b.open(),b.write("<script>document.F=Object<\/script>"),b.close(),x=b.F;E--;)delete x.prototype[se[E]];return x()};fe.exports=Object.create||function(b,ee){var E;return b!==null?(ne.prototype=ue(b),E=new ne,ne.prototype=null,E[te]=b):E=x(),ee===void 0?E:ae(E,ee)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(ie,fe,de){var ue=ie("./_an-object"),ae=ie("./_ie8-dom-define"),se=ie("./_to-primitive"),te=Object.defineProperty;de.f=ie("./_descriptors")?Object.defineProperty:function(ne,x,b){if(ue(ne),x=se(x,!0),ue(b),ae)try{return te(ne,x,b)}catch(ee){}if("get"in b||"set"in b)throw TypeError("Accessors not supported!");return"value"in b&&(ne[x]=b.value),ne}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(ie,fe,de){var ue=ie("./_object-dp"),ae=ie("./_an-object"),se=ie("./_object-keys");fe.exports=ie("./_descriptors")?Object.defineProperties:function(te,ne){ae(te);for(var x,b=se(ne),ee=b.length,E=0;ee>E;)ue.f(te,x=b[E++],ne[x]);return te}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(ie,fe,de){var ue=ie("./_object-pie"),ae=ie("./_property-desc"),se=ie("./_to-iobject"),te=ie("./_to-primitive"),ne=ie("./_has"),x=ie("./_ie8-dom-define"),b=Object.getOwnPropertyDescriptor;de.f=ie("./_descriptors")?b:function(ee,E){if(ee=se(ee),E=te(E,!0),x)try{return b(ee,E)}catch(re){}if(ne(ee,E))return ae(!ue.f.call(ee,E),ee[E])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(ie,fe,de){var ue=ie("./_to-iobject"),ae=ie("./_object-gopn").f,se={}.toString,te=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ne=function(x){try{return ae(x)}catch(b){return te.slice()}};fe.exports.f=function(x){return te&&se.call(x)=="[object Window]"?ne(x):ae(ue(x))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(ie,fe,de){var ue=ie("./_object-keys-internal"),ae=ie("./_enum-bug-keys").concat("length","prototype");de.f=Object.getOwnPropertyNames||function(se){return ue(se,ae)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(ie,fe,de){de.f=Object.getOwnPropertySymbols},{}],104:[function(ie,fe,de){var ue=ie("./_has"),ae=ie("./_to-object"),se=ie("./_shared-key")("IE_PROTO"),te=Object.prototype;fe.exports=Object.getPrototypeOf||function(ne){return ne=ae(ne),ue(ne,se)?ne[se]:typeof ne.constructor=="function"&&ne instanceof ne.constructor?ne.constructor.prototype:ne instanceof Object?te:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(ie,fe,de){var ue=ie("./_has"),ae=ie("./_to-iobject"),se=ie("./_array-includes")(!1),te=ie("./_shared-key")("IE_PROTO");fe.exports=function(ne,x){var b,ee=ae(ne),E=0,re=[];for(b in ee)b!=te&&ue(ee,b)&&re.push(b);for(;x.length>E;)ue(ee,b=x[E++])&&(~se(re,b)||re.push(b));return re}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(ie,fe,de){var ue=ie("./_object-keys-internal"),ae=ie("./_enum-bug-keys");fe.exports=Object.keys||function(se){return ue(se,ae)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(ie,fe,de){de.f={}.propertyIsEnumerable},{}],108:[function(ie,fe,de){var ue=ie("./_export"),ae=ie("./_core"),se=ie("./_fails");fe.exports=function(te,ne){var x=(ae.Object||{})[te]||Object[te],b={};b[te]=ne(x),ue(ue.S+ue.F*se(function(){x(1)}),"Object",b)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(ie,fe,de){fe.exports=function(ue){try{return{e:!1,v:ue()}}catch(ae){return{e:!0,v:ae}}}},{}],110:[function(ie,fe,de){var ue=ie("./_an-object"),ae=ie("./_is-object"),se=ie("./_new-promise-capability");fe.exports=function(te,ne){if(ue(te),ae(ne)&&ne.constructor===te)return ne;var x=se.f(te);return(0,x.resolve)(ne),x.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(ie,fe,de){fe.exports=function(ue,ae){return{enumerable:!(1&ue),configurable:!(2&ue),writable:!(4&ue),value:ae}}},{}],112:[function(ie,fe,de){var ue=ie("./_hide");fe.exports=function(ae,se,te){for(var ne in se)te&&ae[ne]?ae[ne]=se[ne]:ue(ae,ne,se[ne]);return ae}},{"./_hide":78}],113:[function(ie,fe,de){fe.exports=ie("./_hide")},{"./_hide":78}],114:[function(ie,fe,de){"use strict";var ue=ie("./_global"),ae=ie("./_core"),se=ie("./_object-dp"),te=ie("./_descriptors"),ne=ie("./_wks")("species");fe.exports=function(x){var b=typeof ae[x]=="function"?ae[x]:ue[x];te&&b&&!b[ne]&&se.f(b,ne,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(ie,fe,de){var ue=ie("./_object-dp").f,ae=ie("./_has"),se=ie("./_wks")("toStringTag");fe.exports=function(te,ne,x){te&&!ae(te=x?te:te.prototype,se)&&ue(te,se,{configurable:!0,value:ne})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(ie,fe,de){var ue=ie("./_shared")("keys"),ae=ie("./_uid");fe.exports=function(se){return ue[se]||(ue[se]=ae(se))}},{"./_shared":117,"./_uid":127}],117:[function(ie,fe,de){var ue=ie("./_core"),ae=ie("./_global"),se=ae["__core-js_shared__"]||(ae["__core-js_shared__"]={});(fe.exports=function(te,ne){return se[te]||(se[te]=ne!==void 0?ne:{})})("versions",[]).push({version:ue.version,mode:ie("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(ie,fe,de){var ue=ie("./_an-object"),ae=ie("./_a-function"),se=ie("./_wks")("species");fe.exports=function(te,ne){var x,b=ue(te).constructor;return b===void 0||(x=ue(b)[se])==null?ne:ae(x)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(ie,fe,de){var ue=ie("./_to-integer"),ae=ie("./_defined");fe.exports=function(se){return function(te,ne){var x,b,ee=String(ae(te)),E=ue(ne),re=ee.length;return E<0||E>=re?se?"":void 0:(x=ee.charCodeAt(E),x<55296||x>56319||E+1===re||(b=ee.charCodeAt(E+1))<56320||b>57343?se?ee.charAt(E):x:se?ee.slice(E,E+2):b-56320+(x-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(ie,fe,de){var ue,ae,se,te=ie("./_ctx"),ne=ie("./_invoke"),x=ie("./_html"),b=ie("./_dom-create"),ee=ie("./_global"),E=ee.process,re=ee.setImmediate,ce=ee.clearImmediate,le=ee.MessageChannel,ve=ee.Dispatch,Se=0,ge={},_e=function(){var he=+this;if(ge.hasOwnProperty(he)){var be=ge[he];delete ge[he],be()}},Ce=function(he){_e.call(he.data)};re&&ce||(re=function(he){for(var be=[],Ee=1;arguments.length>Ee;)be.push(arguments[Ee++]);return ge[++Se]=function(){ne(typeof he=="function"?he:Function(he),be)},ue(Se),Se},ce=function(he){delete ge[he]},ie("./_cof")(E)=="process"?ue=function(he){E.nextTick(te(_e,he,1))}:ve&&ve.now?ue=function(he){ve.now(te(_e,he,1))}:le?(ae=new le,se=ae.port2,ae.port1.onmessage=Ce,ue=te(se.postMessage,se,1)):ee.addEventListener&&typeof postMessage=="function"&&!ee.importScripts?(ue=function(he){ee.postMessage(he+"","*")},ee.addEventListener("message",Ce,!1)):ue="onreadystatechange"in b("script")?function(he){x.appendChild(b("script")).onreadystatechange=function(){x.removeChild(this),_e.call(he)}}:function(he){setTimeout(te(_e,he,1),0)}),fe.exports={set:re,clear:ce}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(ie,fe,de){var ue=ie("./_to-integer"),ae=Math.max,se=Math.min;fe.exports=function(te,ne){return te=ue(te),te<0?ae(te+ne,0):se(te,ne)}},{"./_to-integer":122}],122:[function(ie,fe,de){var ue=Math.ceil,ae=Math.floor;fe.exports=function(se){return isNaN(se=+se)?0:(se>0?ae:ue)(se)}},{}],123:[function(ie,fe,de){var ue=ie("./_iobject"),ae=ie("./_defined");fe.exports=function(se){return ue(ae(se))}},{"./_defined":68,"./_iobject":82}],124:[function(ie,fe,de){var ue=ie("./_to-integer"),ae=Math.min;fe.exports=function(se){return se>0?ae(ue(se),9007199254740991):0}},{"./_to-integer":122}],125:[function(ie,fe,de){var ue=ie("./_defined");fe.exports=function(ae){return Object(ue(ae))}},{"./_defined":68}],126:[function(ie,fe,de){var ue=ie("./_is-object");fe.exports=function(ae,se){if(!ue(ae))return ae;var te,ne;if(se&&typeof(te=ae.toString)=="function"&&!ue(ne=te.call(ae))||typeof(te=ae.valueOf)=="function"&&!ue(ne=te.call(ae))||!se&&typeof(te=ae.toString)=="function"&&!ue(ne=te.call(ae)))return ne;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(ie,fe,de){var ue=0,ae=Math.random();fe.exports=function(se){return"Symbol(".concat(se===void 0?"":se,")_",(++ue+ae).toString(36))}},{}],128:[function(ie,fe,de){var ue=ie("./_global"),ae=ue.navigator;fe.exports=ae&&ae.userAgent||""},{"./_global":76}],129:[function(ie,fe,de){var ue=ie("./_global"),ae=ie("./_core"),se=ie("./_library"),te=ie("./_wks-ext"),ne=ie("./_object-dp").f;fe.exports=function(x){var b=ae.Symbol||(ae.Symbol=se?{}:ue.Symbol||{});x.charAt(0)=="_"||x in b||ne(b,x,{value:te.f(x)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(ie,fe,de){de.f=ie("./_wks")},{"./_wks":131}],131:[function(ie,fe,de){var ue=ie("./_shared")("wks"),ae=ie("./_uid"),se=ie("./_global").Symbol,te=typeof se=="function";(fe.exports=function(ne){return ue[ne]||(ue[ne]=te&&se[ne]||(te?se:ae)("Symbol."+ne))}).store=ue},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(ie,fe,de){var ue=ie("./_classof"),ae=ie("./_wks")("iterator"),se=ie("./_iterators");fe.exports=ie("./_core").getIteratorMethod=function(te){if(te!=null)return te[ae]||te["@@iterator"]||se[ue(te)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(ie,fe,de){"use strict";var ue=ie("./_ctx"),ae=ie("./_export"),se=ie("./_to-object"),te=ie("./_iter-call"),ne=ie("./_is-array-iter"),x=ie("./_to-length"),b=ie("./_create-property"),ee=ie("./core.get-iterator-method");ae(ae.S+ae.F*!ie("./_iter-detect")(function(E){Array.from(E)}),"Array",{from:function(E){var re,ce,le,ve,Se=se(E),ge=typeof this=="function"?this:Array,_e=arguments.length,Ce=_e>1?arguments[1]:void 0,he=Ce!==void 0,be=0,Ee=ee(Se);if(he&&(Ce=ue(Ce,_e>2?arguments[2]:void 0,2)),Ee==null||ge==Array&&ne(Ee))for(re=x(Se.length),ce=new ge(re);re>be;be++)b(ce,be,he?Ce(Se[be],be):Se[be]);else for(ve=Ee.call(Se),ce=new ge;!(le=ve.next()).done;be++)b(ce,be,he?te(ve,Ce,[le.value,be],!0):le.value);return ce.length=be,ce}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(ie,fe,de){"use strict";var ue=ie("./_add-to-unscopables"),ae=ie("./_iter-step"),se=ie("./_iterators"),te=ie("./_to-iobject");fe.exports=ie("./_iter-define")(Array,"Array",function(ne,x){this._t=te(ne),this._i=0,this._k=x},function(){var ne=this._t,x=this._k,b=this._i++;return!ne||b>=ne.length?(this._t=void 0,ae(1)):x=="keys"?ae(0,b):x=="values"?ae(0,ne[b]):ae(0,[b,ne[b]])},"values"),se.Arguments=se.Array,ue("keys"),ue("values"),ue("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(ie,fe,de){"use strict";var ue=ie("./_is-object"),ae=ie("./_object-gpo"),se=ie("./_wks")("hasInstance"),te=Function.prototype;se in te||ie("./_object-dp").f(te,se,{value:function(ne){if(typeof this!="function"||!ue(ne))return!1;if(!ue(this.prototype))return ne instanceof this;for(;ne=ae(ne);)if(this.prototype===ne)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(ie,fe,de){var ue=ie("./_export");ue(ue.S+ue.F,"Object",{assign:ie("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(ie,fe,de){var ue=ie("./_export");ue(ue.S,"Object",{create:ie("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(ie,fe,de){var ue=ie("./_export");ue(ue.S+ue.F*!ie("./_descriptors"),"Object",{defineProperty:ie("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(ie,fe,de){ie("./_object-sap")("getOwnPropertyNames",function(){return ie("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(ie,fe,de){var ue=ie("./_to-object"),ae=ie("./_object-gpo");ie("./_object-sap")("getPrototypeOf",function(){return function(se){return ae(ue(se))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(ie,fe,de){var ue=ie("./_to-object"),ae=ie("./_object-keys");ie("./_object-sap")("keys",function(){return function(se){return ae(ue(se))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(ie,fe,de){arguments[4][36][0].apply(de,arguments)},{dup:36}],143:[function(ie,fe,de){"use strict";var ue,ae,se,te,ne=ie("./_library"),x=ie("./_global"),b=ie("./_ctx"),ee=ie("./_classof"),E=ie("./_export"),re=ie("./_is-object"),ce=ie("./_a-function"),le=ie("./_an-instance"),ve=ie("./_for-of"),Se=ie("./_species-constructor"),ge=ie("./_task").set,_e=ie("./_microtask")(),Ce=ie("./_new-promise-capability"),he=ie("./_perform"),be=ie("./_user-agent"),Ee=ie("./_promise-resolve"),Ae=x.TypeError,De=x.process,je=De&&De.versions,Fe=je&&je.v8||"",Re=x.Promise,qe=ee(De)=="process",Je=function(){},He=ae=Ce.f,ze=!!function(){try{var rt=Re.resolve(1),Xe=(rt.constructor={})[ie("./_wks")("species")]=function(ut){ut(Je,Je)};return(qe||typeof PromiseRejectionEvent=="function")&&rt.then(Je)instanceof Xe&&Fe.indexOf("6.6")!==0&&be.indexOf("Chrome/66")===-1}catch(ut){}}(),Qe=function(rt){var Xe;return!(!re(rt)||typeof(Xe=rt.then)!="function")&&Xe},$e=function(rt,Xe){if(!rt._n){rt._n=!0;var ut=rt._c;_e(function(){for(var lt=rt._v,kt=rt._s==1,pt=0;ut.length>pt;)(function(Mt){var wt,bt,gt,We=kt?Mt.ok:Mt.fail,Ie=Mt.resolve,xe=Mt.reject,Be=Mt.domain;try{We?(kt||(rt._h==2&&Ue(rt),rt._h=1),We===!0?wt=lt:(Be&&Be.enter(),wt=We(lt),Be&&(Be.exit(),gt=!0)),wt===Mt.promise?xe(Ae("Promise-chain cycle")):(bt=Qe(wt))?bt.call(wt,Ie,xe):Ie(wt)):xe(lt)}catch(Ye){Be&&!gt&&Be.exit(),xe(Ye)}})(ut[pt++]);rt._c=[],rt._n=!1,Xe&&!rt._h&&ht(rt)})}},ht=function(rt){ge.call(x,function(){var Xe,ut,lt,kt=rt._v,pt=Ge(rt);if(pt&&(Xe=he(function(){qe?De.emit("unhandledRejection",kt,rt):(ut=x.onunhandledrejection)?ut({promise:rt,reason:kt}):(lt=x.console)&<.error&<.error("Unhandled promise rejection",kt)}),rt._h=qe||Ge(rt)?2:1),rt._a=void 0,pt&&Xe.e)throw Xe.v})},Ge=function(rt){return rt._h!==1&&(rt._a||rt._c).length===0},Ue=function(rt){ge.call(x,function(){var Xe;qe?De.emit("rejectionHandled",rt):(Xe=x.onrejectionhandled)&&Xe({promise:rt,reason:rt._v})})},Ke=function(rt){var Xe=this;Xe._d||(Xe._d=!0,Xe=Xe._w||Xe,Xe._v=rt,Xe._s=2,Xe._a||(Xe._a=Xe._c.slice()),$e(Xe,!0))},et=function(rt){var Xe,ut=this;if(!ut._d){ut._d=!0,ut=ut._w||ut;try{if(ut===rt)throw Ae("Promise can't be resolved itself");(Xe=Qe(rt))?_e(function(){var lt={_w:ut,_d:!1};try{Xe.call(rt,b(et,lt,1),b(Ke,lt,1))}catch(kt){Ke.call(lt,kt)}}):(ut._v=rt,ut._s=1,$e(ut,!1))}catch(lt){Ke.call({_w:ut,_d:!1},lt)}}};ze||(Re=function(rt){le(this,Re,"Promise","_h"),ce(rt),ue.call(this);try{rt(b(et,this,1),b(Ke,this,1))}catch(Xe){Ke.call(this,Xe)}},ue=function(rt){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},ue.prototype=ie("./_redefine-all")(Re.prototype,{then:function(rt,Xe){var ut=He(Se(this,Re));return ut.ok=typeof rt!="function"||rt,ut.fail=typeof Xe=="function"&&Xe,ut.domain=qe?De.domain:void 0,this._c.push(ut),this._a&&this._a.push(ut),this._s&&$e(this,!1),ut.promise},catch:function(rt){return this.then(void 0,rt)}}),se=function(){var rt=new ue;this.promise=rt,this.resolve=b(et,rt,1),this.reject=b(Ke,rt,1)},Ce.f=He=function(rt){return rt===Re||rt===te?new se(rt):ae(rt)}),E(E.G+E.W+E.F*!ze,{Promise:Re}),ie("./_set-to-string-tag")(Re,"Promise"),ie("./_set-species")("Promise"),te=ie("./_core").Promise,E(E.S+E.F*!ze,"Promise",{reject:function(rt){var Xe=He(this);return(0,Xe.reject)(rt),Xe.promise}}),E(E.S+E.F*(ne||!ze),"Promise",{resolve:function(rt){return Ee(ne&&this===te?Re:this,rt)}}),E(E.S+E.F*!(ze&&ie("./_iter-detect")(function(rt){Re.all(rt).catch(Je)})),"Promise",{all:function(rt){var Xe=this,ut=He(Xe),lt=ut.resolve,kt=ut.reject,pt=he(function(){var Mt=[],wt=0,bt=1;ve(rt,!1,function(gt){var We=wt++,Ie=!1;Mt.push(void 0),bt++,Xe.resolve(gt).then(function(xe){Ie||(Ie=!0,Mt[We]=xe,--bt||lt(Mt))},kt)}),--bt||lt(Mt)});return pt.e&&kt(pt.v),ut.promise},race:function(rt){var Xe=this,ut=He(Xe),lt=ut.reject,kt=he(function(){ve(rt,!1,function(pt){Xe.resolve(pt).then(ut.resolve,lt)})});return kt.e&<(kt.v),ut.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(ie,fe,de){var ue=ie("./_export"),ae=ie("./_to-absolute-index"),se=String.fromCharCode,te=String.fromCodePoint;ue(ue.S+ue.F*(!!te&&te.length!=1),"String",{fromCodePoint:function(ne){for(var x,b=[],ee=arguments.length,E=0;ee>E;){if(x=+arguments[E++],ae(x,1114111)!==x)throw RangeError(x+" is not a valid code point");b.push(x<65536?se(x):se(55296+((x-=65536)>>10),x%1024+56320))}return b.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(ie,fe,de){"use strict";var ue=ie("./_string-at")(!0);ie("./_iter-define")(String,"String",function(ae){this._t=String(ae),this._i=0},function(){var ae,se=this._t,te=this._i;return te>=se.length?{value:void 0,done:!0}:(ae=ue(se,te),this._i+=ae.length,{value:ae,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(ie,fe,de){"use strict";var ue=ie("./_global"),ae=ie("./_has"),se=ie("./_descriptors"),te=ie("./_export"),ne=ie("./_redefine"),x=ie("./_meta").KEY,b=ie("./_fails"),ee=ie("./_shared"),E=ie("./_set-to-string-tag"),re=ie("./_uid"),ce=ie("./_wks"),le=ie("./_wks-ext"),ve=ie("./_wks-define"),Se=ie("./_enum-keys"),ge=ie("./_is-array"),_e=ie("./_an-object"),Ce=ie("./_is-object"),he=ie("./_to-iobject"),be=ie("./_to-primitive"),Ee=ie("./_property-desc"),Ae=ie("./_object-create"),De=ie("./_object-gopn-ext"),je=ie("./_object-gopd"),Fe=ie("./_object-dp"),Re=ie("./_object-keys"),qe=je.f,Je=Fe.f,He=De.f,ze=ue.Symbol,Qe=ue.JSON,$e=Qe&&Qe.stringify,ht=ce("_hidden"),Ge=ce("toPrimitive"),Ue={}.propertyIsEnumerable,Ke=ee("symbol-registry"),et=ee("symbols"),rt=ee("op-symbols"),Xe=Object.prototype,ut=typeof ze=="function",lt=ue.QObject,kt=!lt||!lt.prototype||!lt.prototype.findChild,pt=se&&b(function(){return Ae(Je({},"a",{get:function(){return Je(this,"a",{value:7}).a}})).a!=7})?function(ke,Me,Oe){var tt=qe(Xe,Me);tt&&delete Xe[Me],Je(ke,Me,Oe),tt&&ke!==Xe&&Je(Xe,Me,tt)}:Je,Mt=function(ke){var Me=et[ke]=Ae(ze.prototype);return Me._k=ke,Me},wt=ut&&typeof ze.iterator=="symbol"?function(ke){return typeof ke=="symbol"}:function(ke){return ke instanceof ze},bt=function(ke,Me,Oe){return ke===Xe&&bt(rt,Me,Oe),_e(ke),Me=be(Me,!0),_e(Oe),ae(et,Me)?(Oe.enumerable?(ae(ke,ht)&&ke[ht][Me]&&(ke[ht][Me]=!1),Oe=Ae(Oe,{enumerable:Ee(0,!1)})):(ae(ke,ht)||Je(ke,ht,Ee(1,{})),ke[ht][Me]=!0),pt(ke,Me,Oe)):Je(ke,Me,Oe)},gt=function(ke,Me){_e(ke);for(var Oe,tt=Se(Me=he(Me)),ot=0,st=tt.length;st>ot;)bt(ke,Oe=tt[ot++],Me[Oe]);return ke},We=function(ke,Me){return Me===void 0?Ae(ke):gt(Ae(ke),Me)},Ie=function(ke){var Me=Ue.call(this,ke=be(ke,!0));return!(this===Xe&&ae(et,ke)&&!ae(rt,ke))&&(!(Me||!ae(this,ke)||!ae(et,ke)||ae(this,ht)&&this[ht][ke])||Me)},xe=function(ke,Me){if(ke=he(ke),Me=be(Me,!0),ke!==Xe||!ae(et,Me)||ae(rt,Me)){var Oe=qe(ke,Me);return!Oe||!ae(et,Me)||ae(ke,ht)&&ke[ht][Me]||(Oe.enumerable=!0),Oe}},Be=function(ke){for(var Me,Oe=He(he(ke)),tt=[],ot=0;Oe.length>ot;)ae(et,Me=Oe[ot++])||Me==ht||Me==x||tt.push(Me);return tt},Ye=function(ke){for(var Me,Oe=ke===Xe,tt=He(Oe?rt:he(ke)),ot=[],st=0;tt.length>st;)!ae(et,Me=tt[st++])||Oe&&!ae(Xe,Me)||ot.push(et[Me]);return ot};ut||(ze=function(){if(this instanceof ze)throw TypeError("Symbol is not a constructor!");var ke=re(arguments.length>0?arguments[0]:void 0),Me=function(Oe){this===Xe&&Me.call(rt,Oe),ae(this,ht)&&ae(this[ht],ke)&&(this[ht][ke]=!1),pt(this,ke,Ee(1,Oe))};return se&&kt&&pt(Xe,ke,{configurable:!0,set:Me}),Mt(ke)},ne(ze.prototype,"toString",function(){return this._k}),je.f=xe,Fe.f=bt,ie("./_object-gopn").f=De.f=Be,ie("./_object-pie").f=Ie,ie("./_object-gops").f=Ye,se&&!ie("./_library")&&ne(Xe,"propertyIsEnumerable",Ie,!0),le.f=function(ke){return Mt(ce(ke))}),te(te.G+te.W+te.F*!ut,{Symbol:ze});for(var Pe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Le=0;Pe.length>Le;)ce(Pe[Le++]);for(var pe=Re(ce.store),we=0;pe.length>we;)ve(pe[we++]);te(te.S+te.F*!ut,"Symbol",{for:function(ke){return ae(Ke,ke+="")?Ke[ke]:Ke[ke]=ze(ke)},keyFor:function(ke){if(!wt(ke))throw TypeError(ke+" is not a symbol!");for(var Me in Ke)if(Ke[Me]===ke)return Me},useSetter:function(){kt=!0},useSimple:function(){kt=!1}}),te(te.S+te.F*!ut,"Object",{create:We,defineProperty:bt,defineProperties:gt,getOwnPropertyDescriptor:xe,getOwnPropertyNames:Be,getOwnPropertySymbols:Ye}),Qe&&te(te.S+te.F*(!ut||b(function(){var ke=ze();return $e([ke])!="[null]"||$e({a:ke})!="{}"||$e(Object(ke))!="{}"})),"JSON",{stringify:function(ke){for(var Me,Oe,tt=[ke],ot=1;arguments.length>ot;)tt.push(arguments[ot++]);if(Oe=Me=tt[1],(Ce(Me)||ke!==void 0)&&!wt(ke))return ge(Me)||(Me=function(st,ft){if(typeof Oe=="function"&&(ft=Oe.call(this,st,ft)),!wt(ft))return ft}),tt[1]=Me,$e.apply(Qe,tt)}}),ze.prototype[Ge]||ie("./_hide")(ze.prototype,Ge,ze.prototype.valueOf),E(ze,"Symbol"),E(Math,"Math",!0),E(ue.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(ie,fe,de){"use strict";var ue=ie("./_export"),ae=ie("./_core"),se=ie("./_global"),te=ie("./_species-constructor"),ne=ie("./_promise-resolve");ue(ue.P+ue.R,"Promise",{finally:function(x){var b=te(this,ae.Promise||se.Promise),ee=typeof x=="function";return this.then(ee?function(E){return ne(b,x()).then(function(){return E})}:x,ee?function(E){return ne(b,x()).then(function(){throw E})}:x)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(ie,fe,de){"use strict";var ue=ie("./_export"),ae=ie("./_new-promise-capability"),se=ie("./_perform");ue(ue.S,"Promise",{try:function(te){var ne=ae.f(this),x=se(te);return(x.e?ne.reject:ne.resolve)(x.v),ne.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(ie,fe,de){ie("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(ie,fe,de){ie("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(ie,fe,de){ie("./es6.array.iterator");for(var ue=ie("./_global"),ae=ie("./_hide"),se=ie("./_iterators"),te=ie("./_wks")("toStringTag"),ne="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),x=0;x<ne.length;x++){var b=ne[x],ee=ue[b],E=ee&&ee.prototype;E&&!E[te]&&ae(E,te,b),se[b]=se.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(ie,fe,de){var ue=ie("./_export"),ae=ie("./_task");ue(ue.G+ue.B,{setImmediate:ae.set,clearImmediate:ae.clear})},{"./_export":73,"./_task":120}],153:[function(ie,fe,de){(function(ue){"use strict";function ae(be){return Array.isArray?Array.isArray(be):_e(be)==="[object Array]"}function se(be){return typeof be=="boolean"}function te(be){return be===null}function ne(be){return be==null}function x(be){return typeof be=="number"}function b(be){return typeof be=="string"}function ee(be){return(be===void 0?"undefined":(0,he.default)(be))==="symbol"}function E(be){return be===void 0}function re(be){return _e(be)==="[object RegExp]"}function ce(be){return(be===void 0?"undefined":(0,he.default)(be))==="object"&&be!==null}function le(be){return _e(be)==="[object Date]"}function ve(be){return _e(be)==="[object Error]"||be instanceof Error}function Se(be){return typeof be=="function"}function ge(be){return be===null||typeof be=="boolean"||typeof be=="number"||typeof be=="string"||(be===void 0?"undefined":(0,he.default)(be))==="symbol"||be===void 0}function _e(be){return Object.prototype.toString.call(be)}var Ce=ie("babel-runtime/helpers/typeof"),he=function(be){return be&&be.__esModule?be:{default:be}}(Ce);de.isArray=ae,de.isBoolean=se,de.isNull=te,de.isNullOrUndefined=ne,de.isNumber=x,de.isString=b,de.isSymbol=ee,de.isUndefined=E,de.isRegExp=re,de.isObject=ce,de.isDate=le,de.isError=ve,de.isFunction=Se,de.isPrimitive=ge,de.isBuffer=ue.isBuffer}).call(this,{isBuffer:ie("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/helpers/typeof"),ae=function(se){return se&&se.__esModule?se:{default:se}}(ue);(function(se){function te(E,re){for(E=String(E),re=re||2;E.length<re;)E="0"+E;return E}function ne(E){var re=new Date(E.getFullYear(),E.getMonth(),E.getDate());re.setDate(re.getDate()-(re.getDay()+6)%7+3);var ce=new Date(re.getFullYear(),0,4);ce.setDate(ce.getDate()-(ce.getDay()+6)%7+3);var le=re.getTimezoneOffset()-ce.getTimezoneOffset();re.setHours(re.getHours()-le);var ve=(re-ce)/6048e5;return 1+Math.floor(ve)}function x(E){var re=E.getDay();return re===0&&(re=7),re}function b(E){return E===null?"null":E===void 0?"undefined":(E===void 0?"undefined":(0,ae.default)(E))!=="object"?E===void 0?"undefined":(0,ae.default)(E):Array.isArray(E)?"array":{}.toString.call(E).slice(8,-1).toLowerCase()}var ee=function(){var E=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,re=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,ce=/[^-+\dA-Z]/g;return function(le,ve,Se,ge){if(arguments.length!==1||b(le)!=="string"||/\d/.test(le)||(ve=le,le=void 0),le=le||new Date,le instanceof Date||(le=new Date(le)),isNaN(le))throw TypeError("Invalid date");ve=String(ee.masks[ve]||ve||ee.masks.default);var _e=ve.slice(0,4);_e!=="UTC:"&&_e!=="GMT:"||(ve=ve.slice(4),Se=!0,_e==="GMT:"&&(ge=!0));var Ce=Se?"getUTC":"get",he=le[Ce+"Date"](),be=le[Ce+"Day"](),Ee=le[Ce+"Month"](),Ae=le[Ce+"FullYear"](),De=le[Ce+"Hours"](),je=le[Ce+"Minutes"](),Fe=le[Ce+"Seconds"](),Re=le[Ce+"Milliseconds"](),qe=Se?0:le.getTimezoneOffset(),Je=ne(le),He=x(le),ze={d:he,dd:te(he),ddd:ee.i18n.dayNames[be],dddd:ee.i18n.dayNames[be+7],m:Ee+1,mm:te(Ee+1),mmm:ee.i18n.monthNames[Ee],mmmm:ee.i18n.monthNames[Ee+12],yy:String(Ae).slice(2),yyyy:Ae,h:De%12||12,hh:te(De%12||12),H:De,HH:te(De),M:je,MM:te(je),s:Fe,ss:te(Fe),l:te(Re,3),L:te(Math.round(Re/10)),t:De<12?"a":"p",tt:De<12?"am":"pm",T:De<12?"A":"P",TT:De<12?"AM":"PM",Z:ge?"GMT":Se?"UTC":(String(le).match(re)||[""]).pop().replace(ce,""),o:(qe>0?"-":"+")+te(100*Math.floor(Math.abs(qe)/60)+Math.abs(qe)%60,4),S:["th","st","nd","rd"][he%10>3?0:(he%100-he%10!=10)*he%10],W:Je,N:He};return ve.replace(E,function(Qe){return Qe in ze?ze[Qe]:Qe.slice(1,Qe.length-1)})}}();ee.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},ee.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof y=="function"&&y.amd?y(function(){return ee}):(de===void 0?"undefined":(0,ae.default)(de))==="object"?fe.exports=ee:se.dateFormat=ee})(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(ie,fe,de){(function(ue){function ae(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function se(b){var ee=this.useColors;if(b[0]=(ee?"%c":"")+this.namespace+(ee?" %c":" ")+b[0]+(ee?"%c ":" ")+"+"+de.humanize(this.diff),ee){var E="color: "+this.color;b.splice(1,0,E,"color: inherit");var re=0,ce=0;b[0].replace(/%[a-zA-Z%]/g,function(le){le!=="%%"&&(re++,le==="%c"&&(ce=re))}),b.splice(ce,0,E)}}function te(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function ne(b){try{b==null?de.storage.removeItem("debug"):de.storage.debug=b}catch(ee){}}function x(){var b;try{b=de.storage.debug}catch(ee){}return!b&&ue!==void 0&&"env"in ue&&(b=ue.env.DEBUG),b}de=fe.exports=ie("./debug"),de.log=te,de.formatArgs=se,de.save=ne,de.load=x,de.useColors=ae,de.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(b){}}(),de.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],de.formatters.j=function(b){try{return JSON.stringify(b)}catch(ee){return"[UnexpectedJSONParseError]: "+ee.message}},de.enable(x())}).call(this,ie("_process"))},{"./debug":156,_process:173}],156:[function(ie,fe,de){function ue(ee){var E,re=0;for(E in ee)re=(re<<5)-re+ee.charCodeAt(E),re|=0;return de.colors[Math.abs(re)%de.colors.length]}function ae(ee){function E(){if(E.enabled){var re=E,ce=+new Date,le=ce-(b||ce);re.diff=le,re.prev=b,re.curr=ce,b=ce;for(var ve=new Array(arguments.length),Se=0;Se<ve.length;Se++)ve[Se]=arguments[Se];ve[0]=de.coerce(ve[0]),typeof ve[0]!="string"&&ve.unshift("%O");var ge=0;ve[0]=ve[0].replace(/%([a-zA-Z%])/g,function(_e,Ce){if(_e==="%%")return _e;ge++;var he=de.formatters[Ce];if(typeof he=="function"){var be=ve[ge];_e=he.call(re,be),ve.splice(ge,1),ge--}return _e}),de.formatArgs.call(re,ve),(E.log||de.log||console.log.bind(console)).apply(re,ve)}}return E.namespace=ee,E.enabled=de.enabled(ee),E.useColors=de.useColors(),E.color=ue(ee),typeof de.init=="function"&&de.init(E),E}function se(ee){de.save(ee),de.names=[],de.skips=[];for(var E=(typeof ee=="string"?ee:"").split(/[\s,]+/),re=E.length,ce=0;ce<re;ce++)E[ce]&&(ee=E[ce].replace(/\*/g,".*?"),ee[0]==="-"?de.skips.push(new RegExp("^"+ee.substr(1)+"$")):de.names.push(new RegExp("^"+ee+"$")))}function te(){de.enable("")}function ne(ee){var E,re;for(E=0,re=de.skips.length;E<re;E++)if(de.skips[E].test(ee))return!1;for(E=0,re=de.names.length;E<re;E++)if(de.names[E].test(ee))return!0;return!1}function x(ee){return ee instanceof Error?ee.stack||ee.message:ee}de=fe.exports=ae.debug=ae.default=ae,de.coerce=x,de.disable=te,de.enable=se,de.enabled=ne,de.humanize=ie("ms"),de.names=[],de.skips=[],de.formatters={};var b},{ms:169}],157:[function(ie,fe,de){"use strict";function ue(se){var te=""+se,ne=ae.exec(te);if(!ne)return te;var x,b="",ee=0,E=0;for(ee=ne.index;ee<te.length;ee++){switch(te.charCodeAt(ee)){case 34:x=""";break;case 38:x="&";break;case 39:x="'";break;case 60:x="<";break;case 62:x=">";break;default:continue}E!==ee&&(b+=te.substring(E,ee)),E=ee+1,b+=x}return E!==ee?b+te.substring(E,ee):b}var ae=/["'&<>]/;fe.exports=ue},{}],158:[function(ie,fe,de){function ue(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function ae(x){return typeof x=="function"}function se(x){return typeof x=="number"}function te(x){return typeof x=="object"&&x!==null}function ne(x){return x===void 0}fe.exports=ue,ue.EventEmitter=ue,ue.prototype._events=void 0,ue.prototype._maxListeners=void 0,ue.defaultMaxListeners=10,ue.prototype.setMaxListeners=function(x){if(!se(x)||x<0||isNaN(x))throw TypeError("n must be a positive number");return this._maxListeners=x,this},ue.prototype.emit=function(x){var b,ee,E,re,ce,le;if(this._events||(this._events={}),x==="error"&&(!this._events.error||te(this._events.error)&&!this._events.error.length)){if((b=arguments[1])instanceof Error)throw b;var ve=new Error('Uncaught, unspecified "error" event. ('+b+")");throw ve.context=b,ve}if(ee=this._events[x],ne(ee))return!1;if(ae(ee))switch(arguments.length){case 1:ee.call(this);break;case 2:ee.call(this,arguments[1]);break;case 3:ee.call(this,arguments[1],arguments[2]);break;default:re=Array.prototype.slice.call(arguments,1),ee.apply(this,re)}else if(te(ee))for(re=Array.prototype.slice.call(arguments,1),le=ee.slice(),E=le.length,ce=0;ce<E;ce++)le[ce].apply(this,re);return!0},ue.prototype.addListener=function(x,b){var ee;if(!ae(b))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",x,ae(b.listener)?b.listener:b),this._events[x]?te(this._events[x])?this._events[x].push(b):this._events[x]=[this._events[x],b]:this._events[x]=b,te(this._events[x])&&!this._events[x].warned&&(ee=ne(this._maxListeners)?ue.defaultMaxListeners:this._maxListeners)&&ee>0&&this._events[x].length>ee&&(this._events[x].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[x].length),typeof console.trace=="function"&&console.trace()),this},ue.prototype.on=ue.prototype.addListener,ue.prototype.once=function(x,b){function ee(){this.removeListener(x,ee),E||(E=!0,b.apply(this,arguments))}if(!ae(b))throw TypeError("listener must be a function");var E=!1;return ee.listener=b,this.on(x,ee),this},ue.prototype.removeListener=function(x,b){var ee,E,re,ce;if(!ae(b))throw TypeError("listener must be a function");if(!this._events||!this._events[x])return this;if(ee=this._events[x],re=ee.length,E=-1,ee===b||ae(ee.listener)&&ee.listener===b)delete this._events[x],this._events.removeListener&&this.emit("removeListener",x,b);else if(te(ee)){for(ce=re;ce-- >0;)if(ee[ce]===b||ee[ce].listener&&ee[ce].listener===b){E=ce;break}if(E<0)return this;ee.length===1?(ee.length=0,delete this._events[x]):ee.splice(E,1),this._events.removeListener&&this.emit("removeListener",x,b)}return this},ue.prototype.removeAllListeners=function(x){var b,ee;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[x]&&delete this._events[x],this;if(arguments.length===0){for(b in this._events)b!=="removeListener"&&this.removeAllListeners(b);return this.removeAllListeners("removeListener"),this._events={},this}if(ee=this._events[x],ae(ee))this.removeListener(x,ee);else if(ee)for(;ee.length;)this.removeListener(x,ee[ee.length-1]);return delete this._events[x],this},ue.prototype.listeners=function(x){return this._events&&this._events[x]?ae(this._events[x])?[this._events[x]]:this._events[x].slice():[]},ue.prototype.listenerCount=function(x){if(this._events){var b=this._events[x];if(ae(b))return 1;if(b)return b.length}return 0},ue.listenerCount=function(x,b){return x.listenerCount(b)}},{}],159:[function(ie,fe,de){var ue=ie("http"),ae=fe.exports;for(var se in ue)ue.hasOwnProperty(se)&&(ae[se]=ue[se]);ae.request=function(te,ne){return te||(te={}),te.scheme="https",te.protocol="https:",ue.request.call(this,te,ne)}},{http:196}],160:[function(ie,fe,de){"use strict";var ue=ie("util"),ae=ie("ms");fe.exports=function(se){if(typeof se=="number")return se;var te=ae(se);if(te===void 0){var ne=new Error(ue.format("humanize-ms(%j) result undefined",se));console.warn(ne.stack)}return te}},{ms:169,util:207}],161:[function(ie,fe,de){de.read=function(ue,ae,se,te,ne){var x,b,ee=8*ne-te-1,E=(1<<ee)-1,re=E>>1,ce=-7,le=se?ne-1:0,ve=se?-1:1,Se=ue[ae+le];for(le+=ve,x=Se&(1<<-ce)-1,Se>>=-ce,ce+=ee;ce>0;x=256*x+ue[ae+le],le+=ve,ce-=8);for(b=x&(1<<-ce)-1,x>>=-ce,ce+=te;ce>0;b=256*b+ue[ae+le],le+=ve,ce-=8);if(x===0)x=1-re;else{if(x===E)return b?NaN:1/0*(Se?-1:1);b+=Math.pow(2,te),x-=re}return(Se?-1:1)*b*Math.pow(2,x-te)},de.write=function(ue,ae,se,te,ne,x){var b,ee,E,re=8*x-ne-1,ce=(1<<re)-1,le=ce>>1,ve=ne===23?Math.pow(2,-24)-Math.pow(2,-77):0,Se=te?0:x-1,ge=te?1:-1,_e=ae<0||ae===0&&1/ae<0?1:0;for(ae=Math.abs(ae),isNaN(ae)||ae===1/0?(ee=isNaN(ae)?1:0,b=ce):(b=Math.floor(Math.log(ae)/Math.LN2),ae*(E=Math.pow(2,-b))<1&&(b--,E*=2),ae+=b+le>=1?ve/E:ve*Math.pow(2,1-le),ae*E>=2&&(b++,E/=2),b+le>=ce?(ee=0,b=ce):b+le>=1?(ee=(ae*E-1)*Math.pow(2,ne),b+=le):(ee=ae*Math.pow(2,le-1)*Math.pow(2,ne),b=0));ne>=8;ue[se+Se]=255&ee,Se+=ge,ee/=256,ne-=8);for(b=b<<ne|ee,re+=ne;re>0;ue[se+Se]=255&b,Se+=ge,b/=256,re-=8);ue[se+Se-ge]|=128*_e}},{}],162:[function(ie,fe,de){typeof Object.create=="function"?fe.exports=function(ue,ae){ue.super_=ae,ue.prototype=Object.create(ae.prototype,{constructor:{value:ue,enumerable:!1,writable:!0,configurable:!0}})}:fe.exports=function(ue,ae){ue.super_=ae;var se=function(){};se.prototype=ae.prototype,ue.prototype=new se,ue.prototype.constructor=ue}},{}],163:[function(ie,fe,de){function ue(se){return!!se.constructor&&typeof se.constructor.isBuffer=="function"&&se.constructor.isBuffer(se)}function ae(se){return typeof se.readFloatLE=="function"&&typeof se.slice=="function"&&ue(se.slice(0,0))}fe.exports=function(se){return se!=null&&(ue(se)||ae(se)||!!se._isBuffer)}},{}],164:[function(ie,fe,de){(function(ue){function ae(ne){return te.call(ne).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function se(ne){return typeof ne=="function"&&(/^class(\s|\{\}$)/.test(te.call(ne))||/^.*classCallCheck\(/.test(ae(ne)))}var te=Function.prototype.toString;de!==void 0?(fe!==void 0&&fe.exports&&(de=fe.exports=se),de.isClass=se):typeof y=="function"&&y.amd?y([],function(){return se}):ue.isClass=se})(this)},{}],165:[function(ie,fe,de){"use strict";function ue(x){var b=x.slice(2);return b=b[0].toLowerCase()+b.slice(1)}var ae=ie("core-util-is"),se=ie("isstream"),te=ie("is-class");Object.keys(ae).map(function(x){de[ue(x)]=ae[x]}),de.stream=se,de.readableStream=se.isReadable,de.writableStream=se.isWritable,de.duplexStream=se.isDuplex,de.class=te,de.finite=function(x){return Number.isFinite(x)},de.NaN=function(x){return Number.isNaN(x)},de.generator=function(x){return x&&typeof x.next=="function"&&typeof x.throw=="function"},de.generatorFunction=function(x){return x&&x.constructor&&x.constructor.name==="GeneratorFunction"},de.asyncFunction=function(x){return x&&x.constructor&&x.constructor.name==="AsyncFunction"},de.promise=function(x){return x&&typeof x.then=="function"};var ne=Math.pow(2,31);de.int=function(x){return ae.isNumber(x)&&x%1==0},de.int32=function(x){return de.int(x)&&x<ne&&x>=-ne},de.long=function(x){return de.int(x)&&(x>=ne||x<-ne)},de.Long=function(x){return de.object(x)&&de.number(x.high)&&de.number(x.low)},de.double=function(x){return ae.isNumber(x)&&!isNaN(x)&&x%1!=0},de.date=function(x){return x instanceof Date},de.regExp=function(x){return x instanceof RegExp},de.regexp=de.regExp,de.error=function(x){return x instanceof Error},de.array=function(x){return Array.isArray(x)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(ie,fe,de){var ue={}.toString;fe.exports=Array.isArray||function(ae){return ue.call(ae)=="[object Array]"}},{}],167:[function(ie,fe,de){function ue(x){return x instanceof ne.Stream}function ae(x){return ue(x)&&typeof x._read=="function"&&typeof x._readableState=="object"}function se(x){return ue(x)&&typeof x._write=="function"&&typeof x._writableState=="object"}function te(x){return ae(x)&&se(x)}var ne=ie("stream");fe.exports=ue,fe.exports.isReadable=ae,fe.exports.isWritable=se,fe.exports.isDuplex=te},{stream:195}],168:[function(ie,fe,de){"use strict";function ue(se,te,ne){if(!se)throw new TypeError("argument dest is required");if(!te)throw new TypeError("argument src is required");return ne===void 0&&(ne=!0),Object.getOwnPropertyNames(te).forEach(function(x){if(ne||!ae.call(se,x)){var b=Object.getOwnPropertyDescriptor(te,x);Object.defineProperty(se,x,b)}}),se}fe.exports=ue;var ae=Object.prototype.hasOwnProperty},{}],169:[function(ie,fe,de){function ue(re){if(re=String(re),!(re.length>100)){var ce=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(re);if(ce){var le=parseFloat(ce[1]);switch((ce[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return le*E;case"days":case"day":case"d":return le*ee;case"hours":case"hour":case"hrs":case"hr":case"h":return le*b;case"minutes":case"minute":case"mins":case"min":case"m":return le*x;case"seconds":case"second":case"secs":case"sec":case"s":return le*ne;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return le;default:return}}}}function ae(re){return re>=ee?Math.round(re/ee)+"d":re>=b?Math.round(re/b)+"h":re>=x?Math.round(re/x)+"m":re>=ne?Math.round(re/ne)+"s":re+"ms"}function se(re){return te(re,ee,"day")||te(re,b,"hour")||te(re,x,"minute")||te(re,ne,"second")||re+" ms"}function te(re,ce,le){if(!(re<ce))return re<1.5*ce?Math.floor(re/ce)+" "+le:Math.ceil(re/ce)+" "+le+"s"}var ne=1e3,x=60*ne,b=60*x,ee=24*b,E=365.25*ee;fe.exports=function(re,ce){ce=ce||{};var le=typeof re;if(le==="string"&&re.length>0)return ue(re);if(le==="number"&&isNaN(re)===!1)return ce.long?se(re):ae(re);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(re))}},{}],170:[function(ie,fe,de){(function(ue){function ae(x,b){for(var ee=0,E=x.length-1;E>=0;E--){var re=x[E];re==="."?x.splice(E,1):re===".."?(x.splice(E,1),ee++):ee&&(x.splice(E,1),ee--)}if(b)for(;ee--;ee)x.unshift("..");return x}function se(x){typeof x!="string"&&(x+="");var b,ee=0,E=-1,re=!0;for(b=x.length-1;b>=0;--b)if(x.charCodeAt(b)===47){if(!re){ee=b+1;break}}else E===-1&&(re=!1,E=b+1);return E===-1?"":x.slice(ee,E)}function te(x,b){if(x.filter)return x.filter(b);for(var ee=[],E=0;E<x.length;E++)b(x[E],E,x)&&ee.push(x[E]);return ee}de.resolve=function(){for(var x="",b=!1,ee=arguments.length-1;ee>=-1&&!b;ee--){var E=ee>=0?arguments[ee]:ue.cwd();if(typeof E!="string")throw new TypeError("Arguments to path.resolve must be strings");E&&(x=E+"/"+x,b=E.charAt(0)==="/")}return x=ae(te(x.split("/"),function(re){return!!re}),!b).join("/"),(b?"/":"")+x||"."},de.normalize=function(x){var b=de.isAbsolute(x),ee=ne(x,-1)==="/";return x=ae(te(x.split("/"),function(E){return!!E}),!b).join("/"),x||b||(x="."),x&&ee&&(x+="/"),(b?"/":"")+x},de.isAbsolute=function(x){return x.charAt(0)==="/"},de.join=function(){var x=Array.prototype.slice.call(arguments,0);return de.normalize(te(x,function(b,ee){if(typeof b!="string")throw new TypeError("Arguments to path.join must be strings");return b}).join("/"))},de.relative=function(x,b){function ee(ge){for(var _e=0;_e<ge.length&&ge[_e]==="";_e++);for(var Ce=ge.length-1;Ce>=0&&ge[Ce]==="";Ce--);return _e>Ce?[]:ge.slice(_e,Ce-_e+1)}x=de.resolve(x).substr(1),b=de.resolve(b).substr(1);for(var E=ee(x.split("/")),re=ee(b.split("/")),ce=Math.min(E.length,re.length),le=ce,ve=0;ve<ce;ve++)if(E[ve]!==re[ve]){le=ve;break}for(var Se=[],ve=le;ve<E.length;ve++)Se.push("..");return Se=Se.concat(re.slice(le)),Se.join("/")},de.sep="/",de.delimiter=":",de.dirname=function(x){if(typeof x!="string"&&(x+=""),x.length===0)return".";for(var b=x.charCodeAt(0),ee=b===47,E=-1,re=!0,ce=x.length-1;ce>=1;--ce)if((b=x.charCodeAt(ce))===47){if(!re){E=ce;break}}else re=!1;return E===-1?ee?"/":".":ee&&E===1?"/":x.slice(0,E)},de.basename=function(x,b){var ee=se(x);return b&&ee.substr(-1*b.length)===b&&(ee=ee.substr(0,ee.length-b.length)),ee},de.extname=function(x){typeof x!="string"&&(x+="");for(var b=-1,ee=0,E=-1,re=!0,ce=0,le=x.length-1;le>=0;--le){var ve=x.charCodeAt(le);if(ve!==47)E===-1&&(re=!1,E=le+1),ve===46?b===-1?b=le:ce!==1&&(ce=1):b!==-1&&(ce=-1);else if(!re){ee=le+1;break}}return b===-1||E===-1||ce===0||ce===1&&b===E-1&&b===ee+1?"":x.slice(b,E)};var ne=function(x,b,ee){return x.substr(b,ee)}}).call(this,ie("_process"))},{_process:173}],171:[function(ie,fe,de){(function(ue){(function(){"use strict";function ae(Fe){return Fe=String(Fe),Fe.charAt(0).toUpperCase()+Fe.slice(1)}function se(Fe,Re,qe){var Je={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Re&&qe&&/^Win/i.test(Fe)&&!/^Windows Phone /i.test(Fe)&&(Je=Je[/[\d.]+$/.exec(Fe)])&&(Fe="Windows "+Je),Fe=String(Fe),Re&&qe&&(Fe=Fe.replace(RegExp(Re,"i"),qe)),Fe=ne(Fe.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function te(Fe,Re){var qe=-1,Je=Fe?Fe.length:0;if(typeof Je=="number"&&Je>-1&&Je<=he)for(;++qe<Je;)Re(Fe[qe],qe,Fe);else x(Fe,Re)}function ne(Fe){return Fe=ce(Fe),/^(?:webOS|i(?:OS|P))/.test(Fe)?Fe:ae(Fe)}function x(Fe,Re){for(var qe in Fe)Ae.call(Fe,qe)&&Re(Fe[qe],qe,Fe)}function b(Fe){return Fe==null?ae(Fe):De.call(Fe).slice(8,-1)}function ee(Fe,Re){var qe=Fe!=null?typeof Fe[Re]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(qe)||qe=="object"&&!Fe[Re])}function E(Fe){return String(Fe).replace(/([ -])(?!$)/g,"$1?")}function re(Fe,Re){var qe=null;return te(Fe,function(Je,He){qe=Re(qe,Je,He,Fe)}),qe}function ce(Fe){return String(Fe).replace(/^ +| +$/g,"")}function le(Fe){function Re(ke){return re(ke,function(Me,Oe){var tt=Oe.pattern||E(Oe);return!Me&&(Me=RegExp("\\b"+tt+" *\\d+[.\\w_]*","i").exec(Fe)||RegExp("\\b"+tt+" *\\w+-[\\w]*","i").exec(Fe)||RegExp("\\b"+tt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Fe))&&((Me=String(Oe.label&&!RegExp(tt,"i").test(Oe.label)?Oe.label:Me).split("/"))[1]&&!/[\d.]+/.test(Me[0])&&(Me[0]+=" "+Me[1]),Oe=Oe.label||Oe,Me=ne(Me[0].replace(RegExp(tt,"i"),Oe).replace(RegExp("; *(?:"+Oe+"[_-])?","i")," ").replace(RegExp("("+Oe+")[-_.]?(\\w)","i"),"$1 $2"))),Me})}function qe(){return this.description||""}var Je=Se,He=Fe&&typeof Fe=="object"&&b(Fe)!="String";He&&(Je=Fe,Fe=null);var ze=Je.navigator||{},Qe=ze.userAgent||"";Fe||(Fe=Qe);var $e,ht,Ge=He?!!ze.likeChrome:/\bChrome\b/.test(Fe)&&!/internal|\n/i.test(De.toString()),Ue=He?"Object":"ScriptBridgingProxyObject",Ke=He?"Object":"Environment",et=He&&Je.java?"JavaPackage":b(Je.java),rt=He?"Object":"RuntimeObject",Xe=/\bJava/.test(et)&&Je.java,ut=Xe&&b(Je.environment)==Ke,lt=Xe?"a":"\u4F2A",kt=Xe?"b":"\u5C3E",pt=Je.document||{},Mt=Je.operamini||Je.opera,wt=be.test(wt=He&&Mt?Mt["[[Class]]"]:b(Mt))?wt:Mt=null,bt=Fe,gt=[],We=null,Ie=Fe==Qe,xe=Ie&&Mt&&typeof Mt.version=="function"&&Mt.version(),Be=function(ke){return re(ke,function(Me,Oe){return Me||RegExp("\\b"+(Oe.pattern||E(Oe))+"\\b","i").exec(Fe)&&(Oe.label||Oe)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Ye=function(ke){return re(ke,function(Me,Oe){return Me||RegExp("\\b"+(Oe.pattern||E(Oe))+"\\b","i").exec(Fe)&&(Oe.label||Oe)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Pe=Re([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Le=function(ke){return re(ke,function(Me,Oe,tt){return Me||(Oe[Pe]||Oe[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Pe)]||RegExp("\\b"+E(tt)+"(?:\\b|\\w*\\d)","i").exec(Fe))&&tt})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),pe=function(ke){return re(ke,function(Me,Oe){var tt=Oe.pattern||E(Oe);return!Me&&(Me=RegExp("\\b"+tt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Fe))&&(Me=se(Me,tt,Oe.label||Oe)),Me})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(Be&&(Be=[Be]),Le&&!Pe&&(Pe=Re([Le])),($e=/\bGoogle TV\b/.exec(Pe))&&(Pe=$e[0]),/\bSimulator\b/i.test(Fe)&&(Pe=(Pe?Pe+" ":"")+"Simulator"),Ye=="Opera Mini"&&/\bOPiOS\b/.test(Fe)&>.push("running in Turbo/Uncompressed mode"),Ye=="IE"&&/\blike iPhone OS\b/.test(Fe)?($e=le(Fe.replace(/like iPhone OS/,"")),Le=$e.manufacturer,Pe=$e.product):/^iP/.test(Pe)?(Ye||(Ye="Safari"),pe="iOS"+(($e=/ OS ([\d_]+)/i.exec(Fe))?" "+$e[1].replace(/_/g,"."):"")):Ye!="Konqueror"||/buntu/i.test(pe)?Le&&Le!="Google"&&(/Chrome/.test(Ye)&&!/\bMobile Safari\b/i.test(Fe)||/\bVita\b/.test(Pe))||/\bAndroid\b/.test(pe)&&/^Chrome/.test(Ye)&&/\bVersion\//i.test(Fe)?(Ye="Android Browser",pe=/\bAndroid\b/.test(pe)?pe:"Android"):Ye=="Silk"?(/\bMobi/i.test(Fe)||(pe="Android",gt.unshift("desktop mode")),/Accelerated *= *true/i.test(Fe)&>.unshift("accelerated")):Ye=="PaleMoon"&&($e=/\bFirefox\/([\d.]+)\b/.exec(Fe))?gt.push("identifying as Firefox "+$e[1]):Ye=="Firefox"&&($e=/\b(Mobile|Tablet|TV)\b/i.exec(Fe))?(pe||(pe="Firefox OS"),Pe||(Pe=$e[1])):!Ye||($e=!/\bMinefield\b/i.test(Fe)&&/\b(?:Firefox|Safari)\b/.exec(Ye))?(Ye&&!Pe&&/[\/,]|^[^(]+?\)/.test(Fe.slice(Fe.indexOf($e+"/")+8))&&(Ye=null),($e=Pe||Le||pe)&&(Pe||Le||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(pe))&&(Ye=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(pe)?pe:$e)+" Browser")):Ye=="Electron"&&($e=(/\bChrome\/([\d.]+)\b/.exec(Fe)||0)[1])&>.push("Chromium "+$e):pe="Kubuntu",xe||(xe=function(ke){return re(ke,function(Me,Oe){return Me||(RegExp(Oe+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Fe)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",E(Ye),"(?:Firefox|Minefield|NetFront)"])),($e=Be=="iCab"&&parseFloat(xe)>3&&"WebKit"||/\bOpera\b/.test(Ye)&&(/\bOPR\b/.test(Fe)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Fe)&&!/^(?:Trident|EdgeHTML)$/.test(Be)&&"WebKit"||!Be&&/\bMSIE\b/i.test(Fe)&&(pe=="Mac OS"?"Tasman":"Trident")||Be=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Ye)&&"NetFront")&&(Be=[$e]),Ye=="IE"&&($e=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Fe)||0)[1])?(Ye+=" Mobile",pe="Windows Phone "+(/\+$/.test($e)?$e:$e+".x"),gt.unshift("desktop mode")):/\bWPDesktop\b/i.test(Fe)?(Ye="IE Mobile",pe="Windows Phone 8.x",gt.unshift("desktop mode"),xe||(xe=(/\brv:([\d.]+)/.exec(Fe)||0)[1])):Ye!="IE"&&Be=="Trident"&&($e=/\brv:([\d.]+)/.exec(Fe))&&(Ye&>.push("identifying as "+Ye+(xe?" "+xe:"")),Ye="IE",xe=$e[1]),Ie){if(ee(Je,"global"))if(Xe&&($e=Xe.lang.System,bt=$e.getProperty("os.arch"),pe=pe||$e.getProperty("os.name")+" "+$e.getProperty("os.version")),ut){try{xe=Je.require("ringo/engine").version.join("."),Ye="RingoJS"}catch(ke){($e=Je.system)&&$e.global.system==Je.system&&(Ye="Narwhal",pe||(pe=$e[0].os||null))}Ye||(Ye="Rhino")}else typeof Je.process=="object"&&!Je.process.browser&&($e=Je.process)&&(typeof $e.versions=="object"&&(typeof $e.versions.electron=="string"?(gt.push("Node "+$e.versions.node),Ye="Electron",xe=$e.versions.electron):typeof $e.versions.nw=="string"&&(gt.push("Chromium "+xe,"Node "+$e.versions.node),Ye="NW.js",xe=$e.versions.nw)),Ye||(Ye="Node.js",bt=$e.arch,pe=$e.platform,xe=/[\d.]+/.exec($e.version),xe=xe?xe[0]:null));else b($e=Je.runtime)==Ue?(Ye="Adobe AIR",pe=$e.flash.system.Capabilities.os):b($e=Je.phantom)==rt?(Ye="PhantomJS",xe=($e=$e.version||null)&&$e.major+"."+$e.minor+"."+$e.patch):typeof pt.documentMode=="number"&&($e=/\bTrident\/(\d+)/i.exec(Fe))?(xe=[xe,pt.documentMode],($e=+$e[1]+4)!=xe[1]&&(gt.push("IE "+xe[1]+" mode"),Be&&(Be[1]=""),xe[1]=$e),xe=Ye=="IE"?String(xe[1].toFixed(1)):xe[0]):typeof pt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Ye)&&(gt.push("masking as "+Ye+" "+xe),Ye="IE",xe="11.0",Be=["Trident"],pe="Windows");pe=pe&&ne(pe)}if(xe&&($e=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(xe)||/(?:alpha|beta)(?: ?\d)?/i.exec(Fe+";"+(Ie&&ze.appMinorVersion))||/\bMinefield\b/i.test(Fe)&&"a")&&(We=/b/i.test($e)?"beta":"alpha",xe=xe.replace(RegExp($e+"\\+?$"),"")+(We=="beta"?kt:lt)+(/\d+\+?/.exec($e)||"")),Ye=="Fennec"||Ye=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(pe))Ye="Firefox Mobile";else if(Ye=="Maxthon"&&xe)xe=xe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Pe))Pe=="Xbox 360"&&(pe=null),Pe=="Xbox 360"&&/\bIEMobile\b/.test(Fe)&>.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Ye)&&(!Ye||Pe||/Browser|Mobi/.test(Ye))||pe!="Windows CE"&&!/Mobi/i.test(Fe))if(Ye=="IE"&&Ie)try{Je.external===null&>.unshift("platform preview")}catch(ke){gt.unshift("embedded")}else(/\bBlackBerry\b/.test(Pe)||/\bBB10\b/.test(Fe))&&($e=(RegExp(Pe.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Fe)||0)[1]||xe)?($e=[$e,/BB10/.test(Fe)],pe=($e[1]?(Pe=null,Le="BlackBerry"):"Device Software")+" "+$e[0],xe=null):this!=x&&Pe!="Wii"&&(Ie&&Mt||/Opera/.test(Ye)&&/\b(?:MSIE|Firefox)\b/i.test(Fe)||Ye=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(pe)||Ye=="IE"&&(pe&&!/^Win/.test(pe)&&xe>5.5||/\bWindows XP\b/.test(pe)&&xe>8||xe==8&&!/\bTrident\b/.test(Fe)))&&!be.test($e=le.call(x,Fe.replace(be,"")+";"))&&$e.name&&($e="ing as "+$e.name+(($e=$e.version)?" "+$e:""),be.test(Ye)?(/\bIE\b/.test($e)&&pe=="Mac OS"&&(pe=null),$e="identify"+$e):($e="mask"+$e,Ye=wt?ne(wt.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test($e)&&(pe=null),Ie||(xe=null)),Be=["Presto"],gt.push($e));else Ye+=" Mobile";($e=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Fe)||0)[1])&&($e=[parseFloat($e.replace(/\.(\d)$/,".0$1")),$e],Ye=="Safari"&&$e[1].slice(-1)=="+"?(Ye="WebKit Nightly",We="alpha",xe=$e[1].slice(0,-1)):xe!=$e[1]&&xe!=($e[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Fe)||0)[1])||(xe=null),$e[1]=(/\bChrome\/([\d.]+)/i.exec(Fe)||0)[1],$e[0]==537.36&&$e[2]==537.36&&parseFloat($e[1])>=28&&Be=="WebKit"&&(Be=["Blink"]),Ie&&(Ge||$e[1])?(Be&&(Be[1]="like Chrome"),$e=$e[1]||($e=$e[0],$e<530?1:$e<532?2:$e<532.05?3:$e<533?4:$e<534.03?5:$e<534.07?6:$e<534.1?7:$e<534.13?8:$e<534.16?9:$e<534.24?10:$e<534.3?11:$e<535.01?12:$e<535.02?"13+":$e<535.07?15:$e<535.11?16:$e<535.19?17:$e<536.05?18:$e<536.1?19:$e<537.01?20:$e<537.11?"21+":$e<537.13?23:$e<537.18?24:$e<537.24?25:$e<537.36?26:Be!="Blink"?"27":"28")):(Be&&(Be[1]="like Safari"),$e=$e[0],$e=$e<400?1:$e<500?2:$e<526?3:$e<533?4:$e<534?"4+":$e<535?5:$e<537?6:$e<538?7:$e<601?8:"8"),Be&&(Be[1]+=" "+($e+=typeof $e=="number"?".x":/[.+]/.test($e)?"":"+")),Ye=="Safari"&&(!xe||parseInt(xe)>45)&&(xe=$e)),Ye=="Opera"&&($e=/\bzbov|zvav$/.exec(pe))?(Ye+=" ",gt.unshift("desktop mode"),$e=="zvav"?(Ye+="Mini",xe=null):Ye+="Mobile",pe=pe.replace(RegExp(" *"+$e+"$"),"")):Ye=="Safari"&&/\bChrome\b/.exec(Be&&Be[1])&&(gt.unshift("desktop mode"),Ye="Chrome Mobile",xe=null,/\bOS X\b/.test(pe)?(Le="Apple",pe="iOS 4.3+"):pe=null),xe&&xe.indexOf($e=/[\d.]+$/.exec(pe))==0&&Fe.indexOf("/"+$e+"-")>-1&&(pe=ce(pe.replace($e,""))),Be&&!/\b(?:Avant|Nook)\b/.test(Ye)&&(/Browser|Lunascape|Maxthon/.test(Ye)||Ye!="Safari"&&/^iOS/.test(pe)&&/\bSafari\b/.test(Be[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Ye)&&Be[1])&&($e=Be[Be.length-1])&>.push($e),gt.length&&(gt=["("+gt.join("; ")+")"]),Le&&Pe&&Pe.indexOf(Le)<0&>.push("on "+Le),Pe&>.push((/^on /.test(gt[gt.length-1])?"":"on ")+Pe),pe&&($e=/ ([\d.+]+)$/.exec(pe),ht=$e&&pe.charAt(pe.length-$e[0].length-1)=="/",pe={architecture:32,family:$e&&!ht?pe.replace($e[0],""):pe,version:$e?$e[1]:null,toString:function(){var ke=this.version;return this.family+(ke&&!ht?" "+ke:"")+(this.architecture==64?" 64-bit":"")}}),($e=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(bt))&&!/\bi686\b/i.test(bt)?(pe&&(pe.architecture=64,pe.family=pe.family.replace(RegExp(" *"+$e),"")),Ye&&(/\bWOW64\b/i.test(Fe)||Ie&&/\w(?:86|32)$/.test(ze.cpuClass||ze.platform)&&!/\bWin64; x64\b/i.test(Fe))&>.unshift("32-bit")):pe&&/^OS X/.test(pe.family)&&Ye=="Chrome"&&parseFloat(xe)>=39&&(pe.architecture=64),Fe||(Fe=null);var we={};return we.description=Fe,we.layout=Be&&Be[0],we.manufacturer=Le,we.name=Ye,we.prerelease=We,we.product=Pe,we.ua=Fe,we.version=Ye&&xe,we.os=pe||{architecture:null,family:null,version:null,toString:function(){return"null"}},we.parse=le,we.toString=qe,we.version&>.unshift(xe),we.name&>.unshift(Ye),pe&&Ye&&(pe!=String(pe).split(" ")[0]||pe!=Ye.split(" ")[0]&&!Pe)&>.push(Pe?"("+pe+")":"on "+pe),gt.length&&(we.description=gt.join(" ")),we}var ve={function:!0,object:!0},Se=ve[typeof window]&&window||this,ge=ve[typeof de]&&de,_e=ve[typeof fe]&&fe&&!fe.nodeType&&fe,Ce=ge&&_e&&typeof ue=="object"&&ue;!Ce||Ce.global!==Ce&&Ce.window!==Ce&&Ce.self!==Ce||(Se=Ce);var he=Math.pow(2,53)-1,be=/\bOpera/,Ee=Object.prototype,Ae=Ee.hasOwnProperty,De=Ee.toString,je=le();typeof y=="function"&&typeof y.amd=="object"&&y.amd?(Se.platform=je,y(function(){return je})):ge&&_e?x(je,function(Fe,Re){ge[Re]=Fe}):Se.platform=je}).call(this)}).call(this,typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(ie,fe,de){(function(ue){"use strict";function ae(se,te,ne,x){if(typeof se!="function")throw new TypeError('"callback" argument must be a function');var b,ee,E=arguments.length;switch(E){case 0:case 1:return ue.nextTick(se);case 2:return ue.nextTick(function(){se.call(null,te)});case 3:return ue.nextTick(function(){se.call(null,te,ne)});case 4:return ue.nextTick(function(){se.call(null,te,ne,x)});default:for(b=new Array(E-1),ee=0;ee<b.length;)b[ee++]=arguments[ee];return ue.nextTick(function(){se.apply(null,b)})}}!ue.version||ue.version.indexOf("v0.")===0||ue.version.indexOf("v1.")===0&&ue.version.indexOf("v1.8.")!==0?fe.exports={nextTick:ae}:fe.exports=ue}).call(this,ie("_process"))},{_process:173}],173:[function(ie,fe,de){function ue(){throw new Error("setTimeout has not been defined")}function ae(){throw new Error("clearTimeout has not been defined")}function se(_e){if(E===setTimeout)return setTimeout(_e,0);if((E===ue||!E)&&setTimeout)return E=setTimeout,setTimeout(_e,0);try{return E(_e,0)}catch(Ce){try{return E.call(null,_e,0)}catch(he){return E.call(this,_e,0)}}}function te(_e){if(re===clearTimeout)return clearTimeout(_e);if((re===ae||!re)&&clearTimeout)return re=clearTimeout,clearTimeout(_e);try{return re(_e)}catch(Ce){try{return re.call(null,_e)}catch(he){return re.call(this,_e)}}}function ne(){Se&&le&&(Se=!1,le.length?ve=le.concat(ve):ge=-1,ve.length&&x())}function x(){if(!Se){var _e=se(ne);Se=!0;for(var Ce=ve.length;Ce;){for(le=ve,ve=[];++ge<Ce;)le&&le[ge].run();ge=-1,Ce=ve.length}le=null,Se=!1,te(_e)}}function b(_e,Ce){this.fun=_e,this.array=Ce}function ee(){}var E,re,ce=fe.exports={};(function(){try{E=typeof setTimeout=="function"?setTimeout:ue}catch(_e){E=ue}try{re=typeof clearTimeout=="function"?clearTimeout:ae}catch(_e){re=ae}})();var le,ve=[],Se=!1,ge=-1;ce.nextTick=function(_e){var Ce=new Array(arguments.length-1);if(arguments.length>1)for(var he=1;he<arguments.length;he++)Ce[he-1]=arguments[he];ve.push(new b(_e,Ce)),ve.length!==1||Se||se(x)},b.prototype.run=function(){this.fun.apply(null,this.array)},ce.title="browser",ce.browser=!0,ce.env={},ce.argv=[],ce.version="",ce.versions={},ce.on=ee,ce.addListener=ee,ce.once=ee,ce.off=ee,ce.removeListener=ee,ce.removeAllListeners=ee,ce.emit=ee,ce.prependListener=ee,ce.prependOnceListener=ee,ce.listeners=function(_e){return[]},ce.binding=function(_e){throw new Error("process.binding is not supported")},ce.cwd=function(){return"/"},ce.chdir=function(_e){throw new Error("process.chdir is not supported")},ce.umask=function(){return 0}},{}],174:[function(ie,fe,de){(function(ue){(function(ae){function se(et){throw new RangeError(ht[et])}function te(et,rt){for(var Xe=et.length,ut=[];Xe--;)ut[Xe]=rt(et[Xe]);return ut}function ne(et,rt){var Xe=et.split("@"),ut="";return Xe.length>1&&(ut=Xe[0]+"@",et=Xe[1]),et=et.replace($e,"."),ut+te(et.split("."),rt).join(".")}function x(et){for(var rt,Xe,ut=[],lt=0,kt=et.length;lt<kt;)rt=et.charCodeAt(lt++),rt>=55296&&rt<=56319&<<kt?(Xe=et.charCodeAt(lt++),(64512&Xe)==56320?ut.push(((1023&rt)<<10)+(1023&Xe)+65536):(ut.push(rt),lt--)):ut.push(rt);return ut}function b(et){return te(et,function(rt){var Xe="";return rt>65535&&(rt-=65536,Xe+=Ke(rt>>>10&1023|55296),rt=56320|1023&rt),Xe+=Ke(rt)}).join("")}function ee(et){return et-48<10?et-22:et-65<26?et-65:et-97<26?et-97:Ae}function E(et,rt){return et+22+75*(et<26)-((rt!=0)<<5)}function re(et,rt,Xe){var ut=0;for(et=Xe?Ue(et/Re):et>>1,et+=Ue(et/rt);et>Ge*je>>1;ut+=Ae)et=Ue(et/Ge);return Ue(ut+(Ge+1)*et/(et+Fe))}function ce(et){var rt,Xe,ut,lt,kt,pt,Mt,wt,bt,gt,We=[],Ie=et.length,xe=0,Be=Je,Ye=qe;for(Xe=et.lastIndexOf(He),Xe<0&&(Xe=0),ut=0;ut<Xe;++ut)et.charCodeAt(ut)>=128&&se("not-basic"),We.push(et.charCodeAt(ut));for(lt=Xe>0?Xe+1:0;lt<Ie;){for(kt=xe,pt=1,Mt=Ae;lt>=Ie&&se("invalid-input"),wt=ee(et.charCodeAt(lt++)),(wt>=Ae||wt>Ue((Ee-xe)/pt))&&se("overflow"),xe+=wt*pt,bt=Mt<=Ye?De:Mt>=Ye+je?je:Mt-Ye,!(wt<bt);Mt+=Ae)gt=Ae-bt,pt>Ue(Ee/gt)&&se("overflow"),pt*=gt;rt=We.length+1,Ye=re(xe-kt,rt,kt==0),Ue(xe/rt)>Ee-Be&&se("overflow"),Be+=Ue(xe/rt),xe%=rt,We.splice(xe++,0,Be)}return b(We)}function le(et){var rt,Xe,ut,lt,kt,pt,Mt,wt,bt,gt,We,Ie,xe,Be,Ye,Pe=[];for(et=x(et),Ie=et.length,rt=Je,Xe=0,kt=qe,pt=0;pt<Ie;++pt)(We=et[pt])<128&&Pe.push(Ke(We));for(ut=lt=Pe.length,lt&&Pe.push(He);ut<Ie;){for(Mt=Ee,pt=0;pt<Ie;++pt)(We=et[pt])>=rt&&We<Mt&&(Mt=We);for(xe=ut+1,Mt-rt>Ue((Ee-Xe)/xe)&&se("overflow"),Xe+=(Mt-rt)*xe,rt=Mt,pt=0;pt<Ie;++pt)if(We=et[pt],We<rt&&++Xe>Ee&&se("overflow"),We==rt){for(wt=Xe,bt=Ae;gt=bt<=kt?De:bt>=kt+je?je:bt-kt,!(wt<gt);bt+=Ae)Ye=wt-gt,Be=Ae-gt,Pe.push(Ke(E(gt+Ye%Be,0))),wt=Ue(Ye/Be);Pe.push(Ke(E(wt,0))),kt=re(Xe,xe,ut==lt),Xe=0,++ut}++Xe,++rt}return Pe.join("")}function ve(et){return ne(et,function(rt){return ze.test(rt)?ce(rt.slice(4).toLowerCase()):rt})}function Se(et){return ne(et,function(rt){return Qe.test(rt)?"xn--"+le(rt):rt})}var ge=typeof de=="object"&&de&&!de.nodeType&&de,_e=typeof fe=="object"&&fe&&!fe.nodeType&&fe,Ce=typeof ue=="object"&&ue;Ce.global!==Ce&&Ce.window!==Ce&&Ce.self!==Ce||(ae=Ce);var he,be,Ee=2147483647,Ae=36,De=1,je=26,Fe=38,Re=700,qe=72,Je=128,He="-",ze=/^xn--/,Qe=/[^\x20-\x7E]/,$e=/[\x2E\u3002\uFF0E\uFF61]/g,ht={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ge=Ae-De,Ue=Math.floor,Ke=String.fromCharCode;if(he={version:"1.4.1",ucs2:{decode:x,encode:b},decode:ce,encode:le,toASCII:Se,toUnicode:ve},typeof y=="function"&&typeof y.amd=="object"&&y.amd)y("punycode",function(){return he});else if(ge&&_e)if(fe.exports==ge)_e.exports=he;else for(be in he)he.hasOwnProperty(be)&&(ge[be]=he[be]);else ae.punycode=he})(this)}).call(this,typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(ie,fe,de){"use strict";function ue(se,te){return Object.prototype.hasOwnProperty.call(se,te)}fe.exports=function(se,te,ne,x){te=te||"&",ne=ne||"=";var b={};if(typeof se!="string"||se.length===0)return b;var ee=/\+/g;se=se.split(te);var E=1e3;x&&typeof x.maxKeys=="number"&&(E=x.maxKeys);var re=se.length;E>0&&re>E&&(re=E);for(var ce=0;ce<re;++ce){var le,ve,Se,ge,_e=se[ce].replace(ee,"%20"),Ce=_e.indexOf(ne);Ce>=0?(le=_e.substr(0,Ce),ve=_e.substr(Ce+1)):(le=_e,ve=""),Se=decodeURIComponent(le),ge=decodeURIComponent(ve),ue(b,Se)?ae(b[Se])?b[Se].push(ge):b[Se]=[b[Se],ge]:b[Se]=ge}return b};var ae=Array.isArray||function(se){return Object.prototype.toString.call(se)==="[object Array]"}},{}],176:[function(ie,fe,de){"use strict";function ue(ne,x){if(ne.map)return ne.map(x);for(var b=[],ee=0;ee<ne.length;ee++)b.push(x(ne[ee],ee));return b}var ae=function(ne){switch(typeof ne){case"string":return ne;case"boolean":return ne?"true":"false";case"number":return isFinite(ne)?ne:"";default:return""}};fe.exports=function(ne,x,b,ee){return x=x||"&",b=b||"=",ne===null&&(ne=void 0),typeof ne=="object"?ue(te(ne),function(E){var re=encodeURIComponent(ae(E))+b;return se(ne[E])?ue(ne[E],function(ce){return re+encodeURIComponent(ae(ce))}).join(x):re+encodeURIComponent(ae(ne[E]))}).join(x):ee?encodeURIComponent(ae(ee))+b+encodeURIComponent(ae(ne)):""};var se=Array.isArray||function(ne){return Object.prototype.toString.call(ne)==="[object Array]"},te=Object.keys||function(ne){var x=[];for(var b in ne)Object.prototype.hasOwnProperty.call(ne,b)&&x.push(b);return x}},{}],177:[function(ie,fe,de){"use strict";de.decode=de.parse=ie("./decode"),de.encode=de.stringify=ie("./encode")},{"./decode":175,"./encode":176}],178:[function(ie,fe,de){fe.exports=ie("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(ie,fe,de){"use strict";function ue(Se){if(!(this instanceof ue))return new ue(Se);E.call(this,Se),re.call(this,Se),Se&&Se.readable===!1&&(this.readable=!1),Se&&Se.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,Se&&Se.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",ae)}function ae(){this.allowHalfOpen||this._writableState.ended||x.nextTick(se,this)}function se(Se){Se.end()}var te=ie("babel-runtime/core-js/object/keys"),ne=function(Se){return Se&&Se.__esModule?Se:{default:Se}}(te),x=ie("process-nextick-args"),b=ne.default||function(Se){var ge=[];for(var _e in Se)ge.push(_e);return ge};fe.exports=ue;var ee=ie("core-util-is");ee.inherits=ie("inherits");var E=ie("./_stream_readable"),re=ie("./_stream_writable");ee.inherits(ue,E);for(var ce=b(re.prototype),le=0;le<ce.length;le++){var ve=ce[le];ue.prototype[ve]||(ue.prototype[ve]=re.prototype[ve])}Object.defineProperty(ue.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ue.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(Se){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=Se,this._writableState.destroyed=Se)}}),ue.prototype._destroy=function(Se,ge){this.push(null),this.end(),x.nextTick(ge,Se)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(ie,fe,de){"use strict";function ue(te){if(!(this instanceof ue))return new ue(te);ae.call(this,te)}fe.exports=ue;var ae=ie("./_stream_transform"),se=ie("core-util-is");se.inherits=ie("inherits"),se.inherits(ue,ae),ue.prototype._transform=function(te,ne,x){x(null,te)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(ie,fe,de){(function(ue,ae){"use strict";function se(Ie){return Xe.from(Ie)}function te(Ie){return Xe.isBuffer(Ie)||Ie instanceof ut}function ne(Ie,xe,Be){if(typeof Ie.prependListener=="function")return Ie.prependListener(xe,Be);Ie._events&&Ie._events[xe]?Ke(Ie._events[xe])?Ie._events[xe].unshift(Be):Ie._events[xe]=[Be,Ie._events[xe]]:Ie.on(xe,Be)}function x(Ie,xe){Ue=Ue||ie("./_stream_duplex"),Ie=Ie||{};var Be=xe instanceof Ue;this.objectMode=!!Ie.objectMode,Be&&(this.objectMode=this.objectMode||!!Ie.readableObjectMode);var Ye=Ie.highWaterMark,Pe=Ie.readableHighWaterMark,Le=this.objectMode?16:16384;this.highWaterMark=Ye||Ye===0?Ye:Be&&(Pe||Pe===0)?Pe:Le,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new wt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Ie.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ie.encoding&&(Mt||(Mt=ie("string_decoder/").StringDecoder),this.decoder=new Mt(Ie.encoding),this.encoding=Ie.encoding)}function b(Ie){if(Ue=Ue||ie("./_stream_duplex"),!(this instanceof b))return new b(Ie);this._readableState=new x(Ie,this),this.readable=!0,Ie&&(typeof Ie.read=="function"&&(this._read=Ie.read),typeof Ie.destroy=="function"&&(this._destroy=Ie.destroy)),rt.call(this)}function ee(Ie,xe,Be,Ye,Pe){var Le=Ie._readableState;if(xe===null)Le.reading=!1,Se(Ie,Le);else{var pe;Pe||(pe=re(Le,xe)),pe?Ie.emit("error",pe):Le.objectMode||xe&&xe.length>0?(typeof xe=="string"||Le.objectMode||(0,ht.default)(xe)===Xe.prototype||(xe=se(xe)),Ye?Le.endEmitted?Ie.emit("error",new Error("stream.unshift() after end event")):E(Ie,Le,xe,!0):Le.ended?Ie.emit("error",new Error("stream.push() after EOF")):(Le.reading=!1,Le.decoder&&!Be?(xe=Le.decoder.write(xe),Le.objectMode||xe.length!==0?E(Ie,Le,xe,!1):Ce(Ie,Le)):E(Ie,Le,xe,!1))):Ye||(Le.reading=!1)}return ce(Le)}function E(Ie,xe,Be,Ye){xe.flowing&&xe.length===0&&!xe.sync?(Ie.emit("data",Be),Ie.read(0)):(xe.length+=xe.objectMode?1:Be.length,Ye?xe.buffer.unshift(Be):xe.buffer.push(Be),xe.needReadable&&ge(Ie)),Ce(Ie,xe)}function re(Ie,xe){var Be;return te(xe)||typeof xe=="string"||xe===void 0||Ie.objectMode||(Be=new TypeError("Invalid non-string/buffer chunk")),Be}function ce(Ie){return!Ie.ended&&(Ie.needReadable||Ie.length<Ie.highWaterMark||Ie.length===0)}function le(Ie){return Ie>=We?Ie=We:(Ie--,Ie|=Ie>>>1,Ie|=Ie>>>2,Ie|=Ie>>>4,Ie|=Ie>>>8,Ie|=Ie>>>16,Ie++),Ie}function ve(Ie,xe){return Ie<=0||xe.length===0&&xe.ended?0:xe.objectMode?1:Ie!==Ie?xe.flowing&&xe.length?xe.buffer.head.data.length:xe.length:(Ie>xe.highWaterMark&&(xe.highWaterMark=le(Ie)),Ie<=xe.length?Ie:xe.ended?xe.length:(xe.needReadable=!0,0))}function Se(Ie,xe){if(!xe.ended){if(xe.decoder){var Be=xe.decoder.end();Be&&Be.length&&(xe.buffer.push(Be),xe.length+=xe.objectMode?1:Be.length)}xe.ended=!0,ge(Ie)}}function ge(Ie){var xe=Ie._readableState;xe.needReadable=!1,xe.emittedReadable||(pt("emitReadable",xe.flowing),xe.emittedReadable=!0,xe.sync?Ge.nextTick(_e,Ie):_e(Ie))}function _e(Ie){pt("emit readable"),Ie.emit("readable"),je(Ie)}function Ce(Ie,xe){xe.readingMore||(xe.readingMore=!0,Ge.nextTick(he,Ie,xe))}function he(Ie,xe){for(var Be=xe.length;!xe.reading&&!xe.flowing&&!xe.ended&&xe.length<xe.highWaterMark&&(pt("maybeReadMore read 0"),Ie.read(0),Be!==xe.length);)Be=xe.length;xe.readingMore=!1}function be(Ie){return function(){var xe=Ie._readableState;pt("pipeOnDrain",xe.awaitDrain),xe.awaitDrain&&xe.awaitDrain--,xe.awaitDrain===0&&et(Ie,"data")&&(xe.flowing=!0,je(Ie))}}function Ee(Ie){pt("readable nexttick read 0"),Ie.read(0)}function Ae(Ie,xe){xe.resumeScheduled||(xe.resumeScheduled=!0,Ge.nextTick(De,Ie,xe))}function De(Ie,xe){xe.reading||(pt("resume read 0"),Ie.read(0)),xe.resumeScheduled=!1,xe.awaitDrain=0,Ie.emit("resume"),je(Ie),xe.flowing&&!xe.reading&&Ie.read(0)}function je(Ie){var xe=Ie._readableState;for(pt("flow",xe.flowing);xe.flowing&&Ie.read()!==null;);}function Fe(Ie,xe){if(xe.length===0)return null;var Be;return xe.objectMode?Be=xe.buffer.shift():!Ie||Ie>=xe.length?(Be=xe.decoder?xe.buffer.join(""):xe.buffer.length===1?xe.buffer.head.data:xe.buffer.concat(xe.length),xe.buffer.clear()):Be=Re(Ie,xe.buffer,xe.decoder),Be}function Re(Ie,xe,Be){var Ye;return Ie<xe.head.data.length?(Ye=xe.head.data.slice(0,Ie),xe.head.data=xe.head.data.slice(Ie)):Ye=Ie===xe.head.data.length?xe.shift():Be?qe(Ie,xe):Je(Ie,xe),Ye}function qe(Ie,xe){var Be=xe.head,Ye=1,Pe=Be.data;for(Ie-=Pe.length;Be=Be.next;){var Le=Be.data,pe=Ie>Le.length?Le.length:Ie;if(pe===Le.length?Pe+=Le:Pe+=Le.slice(0,Ie),(Ie-=pe)===0){pe===Le.length?(++Ye,Be.next?xe.head=Be.next:xe.head=xe.tail=null):(xe.head=Be,Be.data=Le.slice(pe));break}++Ye}return xe.length-=Ye,Pe}function Je(Ie,xe){var Be=Xe.allocUnsafe(Ie),Ye=xe.head,Pe=1;for(Ye.data.copy(Be),Ie-=Ye.data.length;Ye=Ye.next;){var Le=Ye.data,pe=Ie>Le.length?Le.length:Ie;if(Le.copy(Be,Be.length-Ie,0,pe),(Ie-=pe)===0){pe===Le.length?(++Pe,Ye.next?xe.head=Ye.next:xe.head=xe.tail=null):(xe.head=Ye,Ye.data=Le.slice(pe));break}++Pe}return xe.length-=Pe,Be}function He(Ie){var xe=Ie._readableState;if(xe.length>0)throw new Error('"endReadable()" called on non-empty stream');xe.endEmitted||(xe.ended=!0,Ge.nextTick(ze,xe,Ie))}function ze(Ie,xe){Ie.endEmitted||Ie.length!==0||(Ie.endEmitted=!0,xe.readable=!1,xe.emit("end"))}function Qe(Ie,xe){for(var Be=0,Ye=Ie.length;Be<Ye;Be++)if(Ie[Be]===xe)return Be;return-1}var $e=ie("babel-runtime/core-js/object/get-prototype-of"),ht=function(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}}($e),Ge=ie("process-nextick-args");fe.exports=b;var Ue,Ke=ie("isarray");b.ReadableState=x;var et=(ie("events").EventEmitter,function(Ie,xe){return Ie.listeners(xe).length}),rt=ie("./internal/streams/stream"),Xe=ie("safe-buffer").Buffer,ut=ae.Uint8Array||function(){},lt=ie("core-util-is");lt.inherits=ie("inherits");var kt=ie("util"),pt=void 0;pt=kt&&kt.debuglog?kt.debuglog("stream"):function(){};var Mt,wt=ie("./internal/streams/BufferList"),bt=ie("./internal/streams/destroy");lt.inherits(b,rt);var gt=["error","close","destroy","pause","resume"];Object.defineProperty(b.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(Ie){this._readableState&&(this._readableState.destroyed=Ie)}}),b.prototype.destroy=bt.destroy,b.prototype._undestroy=bt.undestroy,b.prototype._destroy=function(Ie,xe){this.push(null),xe(Ie)},b.prototype.push=function(Ie,xe){var Be,Ye=this._readableState;return Ye.objectMode?Be=!0:typeof Ie=="string"&&(xe=xe||Ye.defaultEncoding,xe!==Ye.encoding&&(Ie=Xe.from(Ie,xe),xe=""),Be=!0),ee(this,Ie,xe,!1,Be)},b.prototype.unshift=function(Ie){return ee(this,Ie,null,!0,!1)},b.prototype.isPaused=function(){return this._readableState.flowing===!1},b.prototype.setEncoding=function(Ie){return Mt||(Mt=ie("string_decoder/").StringDecoder),this._readableState.decoder=new Mt(Ie),this._readableState.encoding=Ie,this};var We=8388608;b.prototype.read=function(Ie){pt("read",Ie),Ie=parseInt(Ie,10);var xe=this._readableState,Be=Ie;if(Ie!==0&&(xe.emittedReadable=!1),Ie===0&&xe.needReadable&&(xe.length>=xe.highWaterMark||xe.ended))return pt("read: emitReadable",xe.length,xe.ended),xe.length===0&&xe.ended?He(this):ge(this),null;if((Ie=ve(Ie,xe))===0&&xe.ended)return xe.length===0&&He(this),null;var Ye=xe.needReadable;pt("need readable",Ye),(xe.length===0||xe.length-Ie<xe.highWaterMark)&&(Ye=!0,pt("length less than watermark",Ye)),xe.ended||xe.reading?(Ye=!1,pt("reading or ended",Ye)):Ye&&(pt("do read"),xe.reading=!0,xe.sync=!0,xe.length===0&&(xe.needReadable=!0),this._read(xe.highWaterMark),xe.sync=!1,xe.reading||(Ie=ve(Be,xe)));var Pe;return Pe=Ie>0?Fe(Ie,xe):null,Pe===null?(xe.needReadable=!0,Ie=0):xe.length-=Ie,xe.length===0&&(xe.ended||(xe.needReadable=!0),Be!==Ie&&xe.ended&&He(this)),Pe!==null&&this.emit("data",Pe),Pe},b.prototype._read=function(Ie){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(Ie,xe){function Be(qt,$t){pt("onunpipe"),qt===Oe&&$t&&$t.hasUnpiped===!1&&($t.hasUnpiped=!0,Pe())}function Ye(){pt("onend"),Ie.end()}function Pe(){pt("cleanup"),Ie.removeListener("close",we),Ie.removeListener("finish",ke),Ie.removeListener("drain",ft),Ie.removeListener("error",pe),Ie.removeListener("unpipe",Be),Oe.removeListener("end",Ye),Oe.removeListener("end",Me),Oe.removeListener("data",Le),Ft=!0,!tt.awaitDrain||Ie._writableState&&!Ie._writableState.needDrain||ft()}function Le(qt){pt("ondata"),Bt=!1,Ie.write(qt)!==!1||Bt||((tt.pipesCount===1&&tt.pipes===Ie||tt.pipesCount>1&&Qe(tt.pipes,Ie)!==-1)&&!Ft&&(pt("false write response, pause",Oe._readableState.awaitDrain),Oe._readableState.awaitDrain++,Bt=!0),Oe.pause())}function pe(qt){pt("onerror",qt),Me(),Ie.removeListener("error",pe),et(Ie,"error")===0&&Ie.emit("error",qt)}function we(){Ie.removeListener("finish",ke),Me()}function ke(){pt("onfinish"),Ie.removeListener("close",we),Me()}function Me(){pt("unpipe"),Oe.unpipe(Ie)}var Oe=this,tt=this._readableState;switch(tt.pipesCount){case 0:tt.pipes=Ie;break;case 1:tt.pipes=[tt.pipes,Ie];break;default:tt.pipes.push(Ie)}tt.pipesCount+=1,pt("pipe count=%d opts=%j",tt.pipesCount,xe);var ot=(!xe||xe.end!==!1)&&Ie!==ue.stdout&&Ie!==ue.stderr,st=ot?Ye:Me;tt.endEmitted?Ge.nextTick(st):Oe.once("end",st),Ie.on("unpipe",Be);var ft=be(Oe);Ie.on("drain",ft);var Ft=!1,Bt=!1;return Oe.on("data",Le),ne(Ie,"error",pe),Ie.once("close",we),Ie.once("finish",ke),Ie.emit("pipe",Oe),tt.flowing||(pt("pipe resume"),Oe.resume()),Ie},b.prototype.unpipe=function(Ie){var xe=this._readableState,Be={hasUnpiped:!1};if(xe.pipesCount===0)return this;if(xe.pipesCount===1)return Ie&&Ie!==xe.pipes?this:(Ie||(Ie=xe.pipes),xe.pipes=null,xe.pipesCount=0,xe.flowing=!1,Ie&&Ie.emit("unpipe",this,Be),this);if(!Ie){var Ye=xe.pipes,Pe=xe.pipesCount;xe.pipes=null,xe.pipesCount=0,xe.flowing=!1;for(var Le=0;Le<Pe;Le++)Ye[Le].emit("unpipe",this,Be);return this}var pe=Qe(xe.pipes,Ie);return pe===-1?this:(xe.pipes.splice(pe,1),xe.pipesCount-=1,xe.pipesCount===1&&(xe.pipes=xe.pipes[0]),Ie.emit("unpipe",this,Be),this)},b.prototype.on=function(Ie,xe){var Be=rt.prototype.on.call(this,Ie,xe);if(Ie==="data")this._readableState.flowing!==!1&&this.resume();else if(Ie==="readable"){var Ye=this._readableState;Ye.endEmitted||Ye.readableListening||(Ye.readableListening=Ye.needReadable=!0,Ye.emittedReadable=!1,Ye.reading?Ye.length&&ge(this):Ge.nextTick(Ee,this))}return Be},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var Ie=this._readableState;return Ie.flowing||(pt("resume"),Ie.flowing=!0,Ae(this,Ie)),this},b.prototype.pause=function(){return pt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(pt("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(Ie){var xe=this,Be=this._readableState,Ye=!1;Ie.on("end",function(){if(pt("wrapped end"),Be.decoder&&!Be.ended){var pe=Be.decoder.end();pe&&pe.length&&xe.push(pe)}xe.push(null)}),Ie.on("data",function(pe){pt("wrapped data"),Be.decoder&&(pe=Be.decoder.write(pe)),(!Be.objectMode||pe!=null)&&(Be.objectMode||pe&&pe.length)&&(xe.push(pe)||(Ye=!0,Ie.pause()))});for(var Pe in Ie)this[Pe]===void 0&&typeof Ie[Pe]=="function"&&(this[Pe]=function(pe){return function(){return Ie[pe].apply(Ie,arguments)}}(Pe));for(var Le=0;Le<gt.length;Le++)Ie.on(gt[Le],this.emit.bind(this,gt[Le]));return this._read=function(pe){pt("wrapped _read",pe),Ye&&(Ye=!1,Ie.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=Fe}).call(this,ie("_process"),typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(ie,fe,de){"use strict";function ue(b,ee){var E=this._transformState;E.transforming=!1;var re=E.writecb;if(!re)return this.emit("error",new Error("write callback called multiple times"));E.writechunk=null,E.writecb=null,ee!=null&&this.push(ee),re(b);var ce=this._readableState;ce.reading=!1,(ce.needReadable||ce.length<ce.highWaterMark)&&this._read(ce.highWaterMark)}function ae(b){if(!(this instanceof ae))return new ae(b);ne.call(this,b),this._transformState={afterTransform:ue.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,b&&(typeof b.transform=="function"&&(this._transform=b.transform),typeof b.flush=="function"&&(this._flush=b.flush)),this.on("prefinish",se)}function se(){var b=this;typeof this._flush=="function"?this._flush(function(ee,E){te(b,ee,E)}):te(this,null,null)}function te(b,ee,E){if(ee)return b.emit("error",ee);if(E!=null&&b.push(E),b._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(b._transformState.transforming)throw new Error("Calling transform done when still transforming");return b.push(null)}fe.exports=ae;var ne=ie("./_stream_duplex"),x=ie("core-util-is");x.inherits=ie("inherits"),x.inherits(ae,ne),ae.prototype.push=function(b,ee){return this._transformState.needTransform=!1,ne.prototype.push.call(this,b,ee)},ae.prototype._transform=function(b,ee,E){throw new Error("_transform() is not implemented")},ae.prototype._write=function(b,ee,E){var re=this._transformState;if(re.writecb=E,re.writechunk=b,re.writeencoding=ee,!re.transforming){var ce=this._readableState;(re.needTransform||ce.needReadable||ce.length<ce.highWaterMark)&&this._read(ce.highWaterMark)}},ae.prototype._read=function(b){var ee=this._transformState;ee.writechunk!==null&&ee.writecb&&!ee.transforming?(ee.transforming=!0,this._transform(ee.writechunk,ee.writeencoding,ee.afterTransform)):ee.needTransform=!0},ae.prototype._destroy=function(b,ee){var E=this;ne.prototype._destroy.call(this,b,function(re){ee(re),E.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(ie,fe,de){(function(ue,ae){"use strict";function se(bt){return bt&&bt.__esModule?bt:{default:bt}}function te(bt){var gt=this;this.next=null,this.entry=null,this.finish=function(){qe(gt,bt)}}function ne(bt){return kt.from(bt)}function x(bt){return kt.isBuffer(bt)||bt instanceof pt}function b(){}function ee(bt,gt){et=et||ie("./_stream_duplex"),bt=bt||{};var We=gt instanceof et;this.objectMode=!!bt.objectMode,We&&(this.objectMode=this.objectMode||!!bt.writableObjectMode);var Ie=bt.highWaterMark,xe=bt.writableHighWaterMark,Be=this.objectMode?16:16384;this.highWaterMark=Ie||Ie===0?Ie:We&&(xe||xe===0)?xe:Be,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ye=bt.decodeStrings===!1;this.decodeStrings=!Ye,this.defaultEncoding=bt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Pe){Ce(gt,Pe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new te(this)}function E(bt){if(et=et||ie("./_stream_duplex"),!(wt.call(E,this)||this instanceof et))return new E(bt);this._writableState=new ee(bt,this),this.writable=!0,bt&&(typeof bt.write=="function"&&(this._write=bt.write),typeof bt.writev=="function"&&(this._writev=bt.writev),typeof bt.destroy=="function"&&(this._destroy=bt.destroy),typeof bt.final=="function"&&(this._final=bt.final)),lt.call(this)}function re(bt,gt){var We=new Error("write after end");bt.emit("error",We),Ke.nextTick(gt,We)}function ce(bt,gt,We,Ie){var xe=!0,Be=!1;return We===null?Be=new TypeError("May not write null values to stream"):typeof We=="string"||We===void 0||gt.objectMode||(Be=new TypeError("Invalid non-string/buffer chunk")),Be&&(bt.emit("error",Be),Ke.nextTick(Ie,Be),xe=!1),xe}function le(bt,gt,We){return bt.objectMode||bt.decodeStrings===!1||typeof gt!="string"||(gt=kt.from(gt,We)),gt}function ve(bt,gt,We,Ie,xe,Be){if(!We){var Ye=le(gt,Ie,xe);Ie!==Ye&&(We=!0,xe="buffer",Ie=Ye)}var Pe=gt.objectMode?1:Ie.length;gt.length+=Pe;var Le=gt.length<gt.highWaterMark;if(Le||(gt.needDrain=!0),gt.writing||gt.corked){var pe=gt.lastBufferedRequest;gt.lastBufferedRequest={chunk:Ie,encoding:xe,isBuf:We,callback:Be,next:null},pe?pe.next=gt.lastBufferedRequest:gt.bufferedRequest=gt.lastBufferedRequest,gt.bufferedRequestCount+=1}else Se(bt,gt,!1,Pe,Ie,xe,Be);return Le}function Se(bt,gt,We,Ie,xe,Be,Ye){gt.writelen=Ie,gt.writecb=Ye,gt.writing=!0,gt.sync=!0,We?bt._writev(xe,gt.onwrite):bt._write(xe,Be,gt.onwrite),gt.sync=!1}function ge(bt,gt,We,Ie,xe){--gt.pendingcb,We?(Ke.nextTick(xe,Ie),Ke.nextTick(Fe,bt,gt),bt._writableState.errorEmitted=!0,bt.emit("error",Ie)):(xe(Ie),bt._writableState.errorEmitted=!0,bt.emit("error",Ie),Fe(bt,gt))}function _e(bt){bt.writing=!1,bt.writecb=null,bt.length-=bt.writelen,bt.writelen=0}function Ce(bt,gt){var We=bt._writableState,Ie=We.sync,xe=We.writecb;if(_e(We),gt)ge(bt,We,Ie,gt,xe);else{var Be=Ae(We);Be||We.corked||We.bufferProcessing||!We.bufferedRequest||Ee(bt,We),Ie?rt(he,bt,We,Be,xe):he(bt,We,Be,xe)}}function he(bt,gt,We,Ie){We||be(bt,gt),gt.pendingcb--,Ie(),Fe(bt,gt)}function be(bt,gt){gt.length===0&>.needDrain&&(gt.needDrain=!1,bt.emit("drain"))}function Ee(bt,gt){gt.bufferProcessing=!0;var We=gt.bufferedRequest;if(bt._writev&&We&&We.next){var Ie=gt.bufferedRequestCount,xe=new Array(Ie),Be=gt.corkedRequestsFree;Be.entry=We;for(var Ye=0,Pe=!0;We;)xe[Ye]=We,We.isBuf||(Pe=!1),We=We.next,Ye+=1;xe.allBuffers=Pe,Se(bt,gt,!0,gt.length,xe,"",Be.finish),gt.pendingcb++,gt.lastBufferedRequest=null,Be.next?(gt.corkedRequestsFree=Be.next,Be.next=null):gt.corkedRequestsFree=new te(gt),gt.bufferedRequestCount=0}else{for(;We;){var Le=We.chunk,pe=We.encoding,we=We.callback;if(Se(bt,gt,!1,gt.objectMode?1:Le.length,Le,pe,we),We=We.next,gt.bufferedRequestCount--,gt.writing)break}We===null&&(gt.lastBufferedRequest=null)}gt.bufferedRequest=We,gt.bufferProcessing=!1}function Ae(bt){return bt.ending&&bt.length===0&&bt.bufferedRequest===null&&!bt.finished&&!bt.writing}function De(bt,gt){bt._final(function(We){gt.pendingcb--,We&&bt.emit("error",We),gt.prefinished=!0,bt.emit("prefinish"),Fe(bt,gt)})}function je(bt,gt){gt.prefinished||gt.finalCalled||(typeof bt._final=="function"?(gt.pendingcb++,gt.finalCalled=!0,Ke.nextTick(De,bt,gt)):(gt.prefinished=!0,bt.emit("prefinish")))}function Fe(bt,gt){var We=Ae(gt);return We&&(je(bt,gt),gt.pendingcb===0&&(gt.finished=!0,bt.emit("finish"))),We}function Re(bt,gt,We){gt.ending=!0,Fe(bt,gt),We&&(gt.finished?Ke.nextTick(We):bt.once("finish",We)),gt.ended=!0,bt.writable=!1}function qe(bt,gt,We){var Ie=bt.entry;for(bt.entry=null;Ie;){var xe=Ie.callback;gt.pendingcb--,xe(We),Ie=Ie.next}gt.corkedRequestsFree?gt.corkedRequestsFree.next=bt:gt.corkedRequestsFree=bt}var Je=ie("babel-runtime/core-js/object/define-property"),He=se(Je),ze=ie("babel-runtime/core-js/symbol/has-instance"),Qe=se(ze),$e=ie("babel-runtime/core-js/symbol"),ht=se($e),Ge=ie("babel-runtime/core-js/set-immediate"),Ue=se(Ge),Ke=ie("process-nextick-args");fe.exports=E;var et,rt=!ue.browser&&["v0.10","v0.9."].indexOf(ue.version.slice(0,5))>-1?Ue.default:Ke.nextTick;E.WritableState=ee;var Xe=ie("core-util-is");Xe.inherits=ie("inherits");var ut={deprecate:ie("util-deprecate")},lt=ie("./internal/streams/stream"),kt=ie("safe-buffer").Buffer,pt=ae.Uint8Array||function(){},Mt=ie("./internal/streams/destroy");Xe.inherits(E,lt),ee.prototype.getBuffer=function(){for(var bt=this.bufferedRequest,gt=[];bt;)gt.push(bt),bt=bt.next;return gt},function(){try{Object.defineProperty(ee.prototype,"buffer",{get:ut.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(bt){}}();var wt;typeof ht.default=="function"&&Qe.default&&typeof Function.prototype[Qe.default]=="function"?(wt=Function.prototype[Qe.default],(0,He.default)(E,Qe.default,{value:function(bt){return!!wt.call(this,bt)||this===E&&bt&&bt._writableState instanceof ee}})):wt=function(bt){return bt instanceof this},E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},E.prototype.write=function(bt,gt,We){var Ie=this._writableState,xe=!1,Be=!Ie.objectMode&&x(bt);return Be&&!kt.isBuffer(bt)&&(bt=ne(bt)),typeof gt=="function"&&(We=gt,gt=null),Be?gt="buffer":gt||(gt=Ie.defaultEncoding),typeof We!="function"&&(We=b),Ie.ended?re(this,We):(Be||ce(this,Ie,bt,We))&&(Ie.pendingcb++,xe=ve(this,Ie,Be,bt,gt,We)),xe},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){var bt=this._writableState;bt.corked&&(bt.corked--,bt.writing||bt.corked||bt.finished||bt.bufferProcessing||!bt.bufferedRequest||Ee(this,bt))},E.prototype.setDefaultEncoding=function(bt){if(typeof bt=="string"&&(bt=bt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((bt+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+bt);return this._writableState.defaultEncoding=bt,this},Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(bt,gt,We){We(new Error("_write() is not implemented"))},E.prototype._writev=null,E.prototype.end=function(bt,gt,We){var Ie=this._writableState;typeof bt=="function"?(We=bt,bt=null,gt=null):typeof gt=="function"&&(We=gt,gt=null),bt!=null&&this.write(bt,gt),Ie.corked&&(Ie.corked=1,this.uncork()),Ie.ending||Ie.finished||Re(this,Ie,We)},Object.defineProperty(E.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(bt){this._writableState&&(this._writableState.destroyed=bt)}}),E.prototype.destroy=Mt.destroy,E.prototype._undestroy=Mt.undestroy,E.prototype._destroy=function(bt,gt){this.end(),gt(bt)}}).call(this,ie("_process"),typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(ie,fe,de){"use strict";function ue(ne,x){if(!(ne instanceof x))throw new TypeError("Cannot call a class as a function")}function ae(ne,x,b){ne.copy(x,b)}var se=ie("safe-buffer").Buffer,te=ie("util");fe.exports=function(){function ne(){ue(this,ne),this.head=null,this.tail=null,this.length=0}return ne.prototype.push=function(x){var b={data:x,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length},ne.prototype.unshift=function(x){var b={data:x,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length},ne.prototype.shift=function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}},ne.prototype.clear=function(){this.head=this.tail=null,this.length=0},ne.prototype.join=function(x){if(this.length===0)return"";for(var b=this.head,ee=""+b.data;b=b.next;)ee+=x+b.data;return ee},ne.prototype.concat=function(x){if(this.length===0)return se.alloc(0);if(this.length===1)return this.head.data;for(var b=se.allocUnsafe(x>>>0),ee=this.head,E=0;ee;)ae(ee.data,b,E),E+=ee.data.length,ee=ee.next;return b},ne}(),te&&te.inspect&&te.inspect.custom&&(fe.exports.prototype[te.inspect.custom]=function(){var ne=te.inspect({length:this.length});return this.constructor.name+" "+ne})},{"safe-buffer":193,util:36}],185:[function(ie,fe,de){"use strict";function ue(ne,x){var b=this,ee=this._readableState&&this._readableState.destroyed,E=this._writableState&&this._writableState.destroyed;return ee||E?(x?x(ne):!ne||this._writableState&&this._writableState.errorEmitted||te.nextTick(se,this,ne),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ne||null,function(re){!x&&re?(te.nextTick(se,b,re),b._writableState&&(b._writableState.errorEmitted=!0)):x&&x(re)}),this)}function ae(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function se(ne,x){ne.emit("error",x)}var te=ie("process-nextick-args");fe.exports={destroy:ue,undestroy:ae}},{"process-nextick-args":172}],186:[function(ie,fe,de){"use strict";fe.exports=ie("events").EventEmitter},{events:158}],187:[function(ie,fe,de){fe.exports=ie("./readable").PassThrough},{"./readable":188}],188:[function(ie,fe,de){de=fe.exports=ie("./lib/_stream_readable.js"),de.Stream=de,de.Readable=de,de.Writable=ie("./lib/_stream_writable.js"),de.Duplex=ie("./lib/_stream_duplex.js"),de.Transform=ie("./lib/_stream_transform.js"),de.PassThrough=ie("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(ie,fe,de){fe.exports=ie("./readable").Transform},{"./readable":188}],190:[function(ie,fe,de){fe.exports=ie("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(ie,fe,de){var ue=function(){return this}()||Function("return this")(),ae=ue.regeneratorRuntime&&Object.getOwnPropertyNames(ue).indexOf("regeneratorRuntime")>=0,se=ae&&ue.regeneratorRuntime;if(ue.regeneratorRuntime=void 0,fe.exports=ie("./runtime"),ae)ue.regeneratorRuntime=se;else try{delete ue.regeneratorRuntime}catch(te){ue.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(ie,fe,de){(function(ue){"use strict";function ae(Ue,Ke,et,rt){var Xe=Ke&&Ke.prototype instanceof te?Ke:te,ut=Object.create(Xe.prototype),lt=new ve(rt||[]);return ut._invoke=E(Ue,et,lt),ut}function se(Ue,Ke,et){try{return{type:"normal",arg:Ue.call(Ke,et)}}catch(rt){return{type:"throw",arg:rt}}}function te(){}function ne(){}function x(){}function b(Ue){["next","throw","return"].forEach(function(Ke){Ue[Ke]=function(et){return this._invoke(Ke,et)}})}function ee(Ue){function Ke(Xe,ut,lt,kt){var pt=se(Ue[Xe],Ue,ut);if(pt.type!=="throw"){var Mt=pt.arg,wt=Mt.value;return wt&&typeof wt=="object"&&he.call(wt,"__await")?Promise.resolve(wt.__await).then(function(bt){Ke("next",bt,lt,kt)},function(bt){Ke("throw",bt,lt,kt)}):Promise.resolve(wt).then(function(bt){Mt.value=bt,lt(Mt)},kt)}kt(pt.arg)}function et(Xe,ut){function lt(){return new Promise(function(kt,pt){Ke(Xe,ut,kt,pt)})}return rt=rt?rt.then(lt,lt):lt()}var rt;this._invoke=et}function E(Ue,Ke,et){var rt=Re;return function(Xe,ut){if(rt===Je)throw new Error("Generator is already running");if(rt===He){if(Xe==="throw")throw ut;return ge()}for(et.method=Xe,et.arg=ut;;){var lt=et.delegate;if(lt){var kt=re(lt,et);if(kt){if(kt===ze)continue;return kt}}if(et.method==="next")et.sent=et._sent=et.arg;else if(et.method==="throw"){if(rt===Re)throw rt=He,et.arg;et.dispatchException(et.arg)}else et.method==="return"&&et.abrupt("return",et.arg);rt=Je;var pt=se(Ue,Ke,et);if(pt.type==="normal"){if(rt=et.done?He:qe,pt.arg===ze)continue;return{value:pt.arg,done:et.done}}pt.type==="throw"&&(rt=He,et.method="throw",et.arg=pt.arg)}}}function re(Ue,Ke){var et=Ue.iterator[Ke.method];if(et===_e){if(Ke.delegate=null,Ke.method==="throw"){if(Ue.iterator.return&&(Ke.method="return",Ke.arg=_e,re(Ue,Ke),Ke.method==="throw"))return ze;Ke.method="throw",Ke.arg=new TypeError("The iterator does not provide a 'throw' method")}return ze}var rt=se(et,Ue.iterator,Ke.arg);if(rt.type==="throw")return Ke.method="throw",Ke.arg=rt.arg,Ke.delegate=null,ze;var Xe=rt.arg;return Xe?Xe.done?(Ke[Ue.resultName]=Xe.value,Ke.next=Ue.nextLoc,Ke.method!=="return"&&(Ke.method="next",Ke.arg=_e),Ke.delegate=null,ze):Xe:(Ke.method="throw",Ke.arg=new TypeError("iterator result is not an object"),Ke.delegate=null,ze)}function ce(Ue){var Ke={tryLoc:Ue[0]};1 in Ue&&(Ke.catchLoc=Ue[1]),2 in Ue&&(Ke.finallyLoc=Ue[2],Ke.afterLoc=Ue[3]),this.tryEntries.push(Ke)}function le(Ue){var Ke=Ue.completion||{};Ke.type="normal",delete Ke.arg,Ue.completion=Ke}function ve(Ue){this.tryEntries=[{tryLoc:"root"}],Ue.forEach(ce,this),this.reset(!0)}function Se(Ue){if(Ue){var Ke=Ue[Ee];if(Ke)return Ke.call(Ue);if(typeof Ue.next=="function")return Ue;if(!isNaN(Ue.length)){var et=-1,rt=function Xe(){for(;++et<Ue.length;)if(he.call(Ue,et))return Xe.value=Ue[et],Xe.done=!1,Xe;return Xe.value=_e,Xe.done=!0,Xe};return rt.next=rt}}return{next:ge}}function ge(){return{value:_e,done:!0}}var _e,Ce=Object.prototype,he=Ce.hasOwnProperty,be=typeof Symbol=="function"?Symbol:{},Ee=be.iterator||"@@iterator",Ae=be.asyncIterator||"@@asyncIterator",De=be.toStringTag||"@@toStringTag",je=typeof fe=="object",Fe=ue.regeneratorRuntime;if(Fe)return void(je&&(fe.exports=Fe));Fe=ue.regeneratorRuntime=je?fe.exports:{},Fe.wrap=ae;var Re="suspendedStart",qe="suspendedYield",Je="executing",He="completed",ze={},Qe={};Qe[Ee]=function(){return this};var $e=Object.getPrototypeOf,ht=$e&&$e($e(Se([])));ht&&ht!==Ce&&he.call(ht,Ee)&&(Qe=ht);var Ge=x.prototype=te.prototype=Object.create(Qe);ne.prototype=Ge.constructor=x,x.constructor=ne,x[De]=ne.displayName="GeneratorFunction",Fe.isGeneratorFunction=function(Ue){var Ke=typeof Ue=="function"&&Ue.constructor;return!!Ke&&(Ke===ne||(Ke.displayName||Ke.name)==="GeneratorFunction")},Fe.mark=function(Ue){return Object.setPrototypeOf?Object.setPrototypeOf(Ue,x):(Ue.__proto__=x,De in Ue||(Ue[De]="GeneratorFunction")),Ue.prototype=Object.create(Ge),Ue},Fe.awrap=function(Ue){return{__await:Ue}},b(ee.prototype),ee.prototype[Ae]=function(){return this},Fe.AsyncIterator=ee,Fe.async=function(Ue,Ke,et,rt){var Xe=new ee(ae(Ue,Ke,et,rt));return Fe.isGeneratorFunction(Ke)?Xe:Xe.next().then(function(ut){return ut.done?ut.value:Xe.next()})},b(Ge),Ge[De]="Generator",Ge[Ee]=function(){return this},Ge.toString=function(){return"[object Generator]"},Fe.keys=function(Ue){var Ke=[];for(var et in Ue)Ke.push(et);return Ke.reverse(),function rt(){for(;Ke.length;){var Xe=Ke.pop();if(Xe in Ue)return rt.value=Xe,rt.done=!1,rt}return rt.done=!0,rt}},Fe.values=Se,ve.prototype={constructor:ve,reset:function(Ue){if(this.prev=0,this.next=0,this.sent=this._sent=_e,this.done=!1,this.delegate=null,this.method="next",this.arg=_e,this.tryEntries.forEach(le),!Ue)for(var Ke in this)Ke.charAt(0)==="t"&&he.call(this,Ke)&&!isNaN(+Ke.slice(1))&&(this[Ke]=_e)},stop:function(){this.done=!0;var Ue=this.tryEntries[0],Ke=Ue.completion;if(Ke.type==="throw")throw Ke.arg;return this.rval},dispatchException:function(Ue){function Ke(pt,Mt){return ut.type="throw",ut.arg=Ue,et.next=pt,Mt&&(et.method="next",et.arg=_e),!!Mt}if(this.done)throw Ue;for(var et=this,rt=this.tryEntries.length-1;rt>=0;--rt){var Xe=this.tryEntries[rt],ut=Xe.completion;if(Xe.tryLoc==="root")return Ke("end");if(Xe.tryLoc<=this.prev){var lt=he.call(Xe,"catchLoc"),kt=he.call(Xe,"finallyLoc");if(lt&&kt){if(this.prev<Xe.catchLoc)return Ke(Xe.catchLoc,!0);if(this.prev<Xe.finallyLoc)return Ke(Xe.finallyLoc)}else if(lt){if(this.prev<Xe.catchLoc)return Ke(Xe.catchLoc,!0)}else{if(!kt)throw new Error("try statement without catch or finally");if(this.prev<Xe.finallyLoc)return Ke(Xe.finallyLoc)}}}},abrupt:function(Ue,Ke){for(var et=this.tryEntries.length-1;et>=0;--et){var rt=this.tryEntries[et];if(rt.tryLoc<=this.prev&&he.call(rt,"finallyLoc")&&this.prev<rt.finallyLoc){var Xe=rt;break}}Xe&&(Ue==="break"||Ue==="continue")&&Xe.tryLoc<=Ke&&Ke<=Xe.finallyLoc&&(Xe=null);var ut=Xe?Xe.completion:{};return ut.type=Ue,ut.arg=Ke,Xe?(this.method="next",this.next=Xe.finallyLoc,ze):this.complete(ut)},complete:function(Ue,Ke){if(Ue.type==="throw")throw Ue.arg;return Ue.type==="break"||Ue.type==="continue"?this.next=Ue.arg:Ue.type==="return"?(this.rval=this.arg=Ue.arg,this.method="return",this.next="end"):Ue.type==="normal"&&Ke&&(this.next=Ke),ze},finish:function(Ue){for(var Ke=this.tryEntries.length-1;Ke>=0;--Ke){var et=this.tryEntries[Ke];if(et.finallyLoc===Ue)return this.complete(et.completion,et.afterLoc),le(et),ze}},catch:function(Ue){for(var Ke=this.tryEntries.length-1;Ke>=0;--Ke){var et=this.tryEntries[Ke];if(et.tryLoc===Ue){var rt=et.completion;if(rt.type==="throw"){var Xe=rt.arg;le(et)}return Xe}}throw new Error("illegal catch attempt")},delegateYield:function(Ue,Ke,et){return this.delegate={iterator:Se(Ue),resultName:Ke,nextLoc:et},this.method==="next"&&(this.arg=_e),ze}}})(function(){return this}()||Function("return this")())},{}],193:[function(ie,fe,de){function ue(ne,x){for(var b in ne)x[b]=ne[b]}function ae(ne,x,b){return te(ne,x,b)}var se=ie("buffer"),te=se.Buffer;te.from&&te.alloc&&te.allocUnsafe&&te.allocUnsafeSlow?fe.exports=se:(ue(se,de),de.Buffer=ae),ue(te,ae),ae.from=function(ne,x,b){if(typeof ne=="number")throw new TypeError("Argument must not be a number");return te(ne,x,b)},ae.alloc=function(ne,x,b){if(typeof ne!="number")throw new TypeError("Argument must be a number");var ee=te(ne);return x!==void 0?typeof b=="string"?ee.fill(x,b):ee.fill(x):ee.fill(0),ee},ae.allocUnsafe=function(ne){if(typeof ne!="number")throw new TypeError("Argument must be a number");return te(ne)},ae.allocUnsafeSlow=function(ne){if(typeof ne!="number")throw new TypeError("Argument must be a number");return se.SlowBuffer(ne)}},{buffer:38}],194:[function(ie,fe,de){(function(ue){"use strict";function ae(ge){return ge&&ge.__esModule?ge:{default:ge}}var se=ie("babel-runtime/core-js/string/from-code-point"),te=ae(se),ne=ie("babel-runtime/core-js/json/stringify"),x=ae(ne),b=ie("babel-runtime/helpers/typeof"),ee=ae(b),E=ie("babel-runtime/core-js/object/define-property"),re=ae(E),ce=ie("babel-runtime/core-js/object/keys"),le=ae(ce),ve=ie("babel-runtime/core-js/object/create"),Se=ae(ve);(function(ge){function _e(Me,Oe){if(!(this instanceof _e))return new _e(Me,Oe);var tt=this;he(tt),tt.q=tt.c="",tt.bufferCheckPosition=ge.MAX_BUFFER_LENGTH,tt.opt=Oe||{},tt.opt.lowercase=tt.opt.lowercase||tt.opt.lowercasetags,tt.looseCase=tt.opt.lowercase?"toLowerCase":"toUpperCase",tt.tags=[],tt.closed=tt.closedRoot=tt.sawRoot=!1,tt.tag=tt.error=null,tt.strict=!!Me,tt.noscript=!(!Me&&!tt.opt.noscript),tt.state=we.BEGIN,tt.strictEntities=tt.opt.strictEntities,tt.ENTITIES=tt.strictEntities?(0,Se.default)(ge.XML_ENTITIES):(0,Se.default)(ge.ENTITIES),tt.attribList=[],tt.opt.xmlns&&(tt.ns=(0,Se.default)(Be)),tt.trackPosition=tt.opt.position!==!1,tt.trackPosition&&(tt.position=tt.line=tt.column=0),Je(tt,"onready")}function Ce(Me){for(var Oe=Math.max(ge.MAX_BUFFER_LENGTH,10),tt=0,ot=0,st=Mt.length;ot<st;ot++){var ft=Me[Mt[ot]].length;if(ft>Oe)switch(Mt[ot]){case"textNode":ze(Me);break;case"cdata":He(Me,"oncdata",Me.cdata),Me.cdata="";break;case"script":He(Me,"onscript",Me.script),Me.script="";break;default:$e(Me,"Max buffer length exceeded: "+Mt[ot])}tt=Math.max(tt,ft)}var Ft=ge.MAX_BUFFER_LENGTH-tt;Me.bufferCheckPosition=Ft+Me.position}function he(Me){for(var Oe=0,tt=Mt.length;Oe<tt;Oe++)Me[Mt[Oe]]=""}function be(Me){ze(Me),Me.cdata!==""&&(He(Me,"oncdata",Me.cdata),Me.cdata=""),Me.script!==""&&(He(Me,"onscript",Me.script),Me.script="")}function Ee(Me,Oe){return new Ae(Me,Oe)}function Ae(Me,Oe){if(!(this instanceof Ae))return new Ae(Me,Oe);wt.apply(this),this._parser=new _e(Me,Oe),this.writable=!0,this.readable=!0;var tt=this;this._parser.onend=function(){tt.emit("end")},this._parser.onerror=function(ot){tt.emit("error",ot),tt._parser.error=null},this._decoder=null,bt.forEach(function(ot){(0,re.default)(tt,"on"+ot,{get:function(){return tt._parser["on"+ot]},set:function(st){if(!st)return tt.removeAllListeners(ot),tt._parser["on"+ot]=st,st;tt.on(ot,st)},enumerable:!0,configurable:!1})})}function De(Me){return Me===" "||Me===`
|
|
|
`||Me==="\r"||Me===" "}function je(Me){return Me==='"'||Me==="'"}function Fe(Me){return Me===">"||De(Me)}function Re(Me,Oe){return Me.test(Oe)}function qe(Me,Oe){return!Re(Me,Oe)}function Je(Me,Oe,tt){Me[Oe]&&Me[Oe](tt)}function He(Me,Oe,tt){Me.textNode&&ze(Me),Je(Me,Oe,tt)}function ze(Me){Me.textNode=Qe(Me.opt,Me.textNode),Me.textNode&&Je(Me,"ontext",Me.textNode),Me.textNode=""}function Qe(Me,Oe){return Me.trim&&(Oe=Oe.trim()),Me.normalize&&(Oe=Oe.replace(/\s+/g," ")),Oe}function $e(Me,Oe){return ze(Me),Me.trackPosition&&(Oe+=`
|
|
|
Line: `+Me.line+`
|
|
|
Column: `+Me.column+`
|
|
|
Char: `+Me.c),Oe=new Error(Oe),Me.error=Oe,Je(Me,"onerror",Oe),Me}function ht(Me){return Me.sawRoot&&!Me.closedRoot&&Ge(Me,"Unclosed root tag"),Me.state!==we.BEGIN&&Me.state!==we.BEGIN_WHITESPACE&&Me.state!==we.TEXT&&$e(Me,"Unexpected end"),ze(Me),Me.c="",Me.closed=!0,Je(Me,"onend"),_e.call(Me,Me.strict,Me.opt),Me}function Ge(Me,Oe){if((Me===void 0?"undefined":(0,ee.default)(Me))!=="object"||!(Me instanceof _e))throw new Error("bad call to strictFail");Me.strict&&$e(Me,Oe)}function Ue(Me){Me.strict||(Me.tagName=Me.tagName[Me.looseCase]());var Oe=Me.tags[Me.tags.length-1]||Me,tt=Me.tag={name:Me.tagName,attributes:{}};Me.opt.xmlns&&(tt.ns=Oe.ns),Me.attribList.length=0,He(Me,"onopentagstart",tt)}function Ke(Me,Oe){var tt=Me.indexOf(":"),ot=tt<0?["",Me]:Me.split(":"),st=ot[0],ft=ot[1];return Oe&&Me==="xmlns"&&(st="xmlns",ft=""),{prefix:st,local:ft}}function et(Me){if(Me.strict||(Me.attribName=Me.attribName[Me.looseCase]()),Me.attribList.indexOf(Me.attribName)!==-1||Me.tag.attributes.hasOwnProperty(Me.attribName))return void(Me.attribName=Me.attribValue="");if(Me.opt.xmlns){var Oe=Ke(Me.attribName,!0),tt=Oe.prefix,ot=Oe.local;if(tt==="xmlns")if(ot==="xml"&&Me.attribValue!==Ie)Ge(Me,"xml: prefix must be bound to "+Ie+`
|
|
|
Actual: `+Me.attribValue);else if(ot==="xmlns"&&Me.attribValue!==xe)Ge(Me,"xmlns: prefix must be bound to "+xe+`
|
|
|
Actual: `+Me.attribValue);else{var st=Me.tag,ft=Me.tags[Me.tags.length-1]||Me;st.ns===ft.ns&&(st.ns=(0,Se.default)(ft.ns)),st.ns[ot]=Me.attribValue}Me.attribList.push([Me.attribName,Me.attribValue])}else Me.tag.attributes[Me.attribName]=Me.attribValue,He(Me,"onattribute",{name:Me.attribName,value:Me.attribValue});Me.attribName=Me.attribValue=""}function rt(Me,Oe){if(Me.opt.xmlns){var tt=Me.tag,ot=Ke(Me.tagName);tt.prefix=ot.prefix,tt.local=ot.local,tt.uri=tt.ns[ot.prefix]||"",tt.prefix&&!tt.uri&&(Ge(Me,"Unbound namespace prefix: "+(0,x.default)(Me.tagName)),tt.uri=ot.prefix);var st=Me.tags[Me.tags.length-1]||Me;tt.ns&&st.ns!==tt.ns&&(0,le.default)(tt.ns).forEach(function(An){He(Me,"onopennamespace",{prefix:An,uri:tt.ns[An]})});for(var ft=0,Ft=Me.attribList.length;ft<Ft;ft++){var Bt=Me.attribList[ft],qt=Bt[0],$t=Bt[1],It=Ke(qt,!0),en=It.prefix,Pt=It.local,cn=en===""?"":tt.ns[en]||"",Sn={name:qt,value:$t,prefix:en,local:Pt,uri:cn};en&&en!=="xmlns"&&!cn&&(Ge(Me,"Unbound namespace prefix: "+(0,x.default)(en)),Sn.uri=en),Me.tag.attributes[qt]=Sn,He(Me,"onattribute",Sn)}Me.attribList.length=0}Me.tag.isSelfClosing=!!Oe,Me.sawRoot=!0,Me.tags.push(Me.tag),He(Me,"onopentag",Me.tag),Oe||(Me.noscript||Me.tagName.toLowerCase()!=="script"?Me.state=we.TEXT:Me.state=we.SCRIPT,Me.tag=null,Me.tagName=""),Me.attribName=Me.attribValue="",Me.attribList.length=0}function Xe(Me){if(!Me.tagName)return Ge(Me,"Weird empty close tag."),Me.textNode+="</>",void(Me.state=we.TEXT);if(Me.script){if(Me.tagName!=="script")return Me.script+="</"+Me.tagName+">",Me.tagName="",void(Me.state=we.SCRIPT);He(Me,"onscript",Me.script),Me.script=""}var Oe=Me.tags.length,tt=Me.tagName;Me.strict||(tt=tt[Me.looseCase]());for(var ot=tt;Oe--&&Me.tags[Oe].name!==ot;)Ge(Me,"Unexpected close tag");if(Oe<0)return Ge(Me,"Unmatched closing tag: "+Me.tagName),Me.textNode+="</"+Me.tagName+">",void(Me.state=we.TEXT);Me.tagName=tt;for(var st=Me.tags.length;st-- >Oe;){var ft=Me.tag=Me.tags.pop();Me.tagName=Me.tag.name,He(Me,"onclosetag",Me.tagName);var Ft={};for(var Bt in ft.ns)Ft[Bt]=ft.ns[Bt];var qt=Me.tags[Me.tags.length-1]||Me;Me.opt.xmlns&&ft.ns!==qt.ns&&(0,le.default)(ft.ns).forEach(function($t){var It=ft.ns[$t];He(Me,"onclosenamespace",{prefix:$t,uri:It})})}Oe===0&&(Me.closedRoot=!0),Me.tagName=Me.attribValue=Me.attribName="",Me.attribList.length=0,Me.state=we.TEXT}function ut(Me){var Oe,tt=Me.entity,ot=tt.toLowerCase(),st="";return Me.ENTITIES[tt]?Me.ENTITIES[tt]:Me.ENTITIES[ot]?Me.ENTITIES[ot]:(tt=ot,tt.charAt(0)==="#"&&(tt.charAt(1)==="x"?(tt=tt.slice(2),Oe=parseInt(tt,16),st=Oe.toString(16)):(tt=tt.slice(1),Oe=parseInt(tt,10),st=Oe.toString(10))),tt=tt.replace(/^0+/,""),isNaN(Oe)||st.toLowerCase()!==tt?(Ge(Me,"Invalid character entity"),"&"+Me.entity+";"):(0,te.default)(Oe))}function lt(Me,Oe){Oe==="<"?(Me.state=we.OPEN_WAKA,Me.startTagPosition=Me.position):De(Oe)||(Ge(Me,"Non-whitespace before first tag."),Me.textNode=Oe,Me.state=we.TEXT)}function kt(Me,Oe){var tt="";return Oe<Me.length&&(tt=Me.charAt(Oe)),tt}function pt(Me){var Oe=this;if(this.error)throw this.error;if(Oe.closed)return $e(Oe,"Cannot write after close. Assign an onready handler.");if(Me===null)return ht(Oe);(Me===void 0?"undefined":(0,ee.default)(Me))==="object"&&(Me=Me.toString());for(var tt=0,ot="";ot=kt(Me,tt++),Oe.c=ot,!!ot;)switch(Oe.trackPosition&&(Oe.position++,ot===`
|
|
|
`?(Oe.line++,Oe.column=0):Oe.column++),Oe.state){case we.BEGIN:if(Oe.state=we.BEGIN_WHITESPACE,ot==="\uFEFF")continue;lt(Oe,ot);continue;case we.BEGIN_WHITESPACE:lt(Oe,ot);continue;case we.TEXT:if(Oe.sawRoot&&!Oe.closedRoot){for(var st=tt-1;ot&&ot!=="<"&&ot!=="&";)(ot=kt(Me,tt++))&&Oe.trackPosition&&(Oe.position++,ot===`
|
|
|
`?(Oe.line++,Oe.column=0):Oe.column++);Oe.textNode+=Me.substring(st,tt-1)}ot!=="<"||Oe.sawRoot&&Oe.closedRoot&&!Oe.strict?(De(ot)||Oe.sawRoot&&!Oe.closedRoot||Ge(Oe,"Text data outside of root node."),ot==="&"?Oe.state=we.TEXT_ENTITY:Oe.textNode+=ot):(Oe.state=we.OPEN_WAKA,Oe.startTagPosition=Oe.position);continue;case we.SCRIPT:ot==="<"?Oe.state=we.SCRIPT_ENDING:Oe.script+=ot;continue;case we.SCRIPT_ENDING:ot==="/"?Oe.state=we.CLOSE_TAG:(Oe.script+="<"+ot,Oe.state=we.SCRIPT);continue;case we.OPEN_WAKA:if(ot==="!")Oe.state=we.SGML_DECL,Oe.sgmlDecl="";else if(!De(ot))if(Re(Ye,ot))Oe.state=we.OPEN_TAG,Oe.tagName=ot;else if(ot==="/")Oe.state=we.CLOSE_TAG,Oe.tagName="";else if(ot==="?")Oe.state=we.PROC_INST,Oe.procInstName=Oe.procInstBody="";else{if(Ge(Oe,"Unencoded <"),Oe.startTagPosition+1<Oe.position){var ft=Oe.position-Oe.startTagPosition;ot=new Array(ft).join(" ")+ot}Oe.textNode+="<"+ot,Oe.state=we.TEXT}continue;case we.SGML_DECL:(Oe.sgmlDecl+ot).toUpperCase()===gt?(He(Oe,"onopencdata"),Oe.state=we.CDATA,Oe.sgmlDecl="",Oe.cdata=""):Oe.sgmlDecl+ot==="--"?(Oe.state=we.COMMENT,Oe.comment="",Oe.sgmlDecl=""):(Oe.sgmlDecl+ot).toUpperCase()===We?(Oe.state=we.DOCTYPE,(Oe.doctype||Oe.sawRoot)&&Ge(Oe,"Inappropriately located doctype declaration"),Oe.doctype="",Oe.sgmlDecl=""):ot===">"?(He(Oe,"onsgmldeclaration",Oe.sgmlDecl),Oe.sgmlDecl="",Oe.state=we.TEXT):(je(ot)&&(Oe.state=we.SGML_DECL_QUOTED),Oe.sgmlDecl+=ot);continue;case we.SGML_DECL_QUOTED:ot===Oe.q&&(Oe.state=we.SGML_DECL,Oe.q=""),Oe.sgmlDecl+=ot;continue;case we.DOCTYPE:ot===">"?(Oe.state=we.TEXT,He(Oe,"ondoctype",Oe.doctype),Oe.doctype=!0):(Oe.doctype+=ot,ot==="["?Oe.state=we.DOCTYPE_DTD:je(ot)&&(Oe.state=we.DOCTYPE_QUOTED,Oe.q=ot));continue;case we.DOCTYPE_QUOTED:Oe.doctype+=ot,ot===Oe.q&&(Oe.q="",Oe.state=we.DOCTYPE);continue;case we.DOCTYPE_DTD:Oe.doctype+=ot,ot==="]"?Oe.state=we.DOCTYPE:je(ot)&&(Oe.state=we.DOCTYPE_DTD_QUOTED,Oe.q=ot);continue;case we.DOCTYPE_DTD_QUOTED:Oe.doctype+=ot,ot===Oe.q&&(Oe.state=we.DOCTYPE_DTD,Oe.q="");continue;case we.COMMENT:ot==="-"?Oe.state=we.COMMENT_ENDING:Oe.comment+=ot;continue;case we.COMMENT_ENDING:ot==="-"?(Oe.state=we.COMMENT_ENDED,Oe.comment=Qe(Oe.opt,Oe.comment),Oe.comment&&He(Oe,"oncomment",Oe.comment),Oe.comment=""):(Oe.comment+="-"+ot,Oe.state=we.COMMENT);continue;case we.COMMENT_ENDED:ot!==">"?(Ge(Oe,"Malformed comment"),Oe.comment+="--"+ot,Oe.state=we.COMMENT):Oe.state=we.TEXT;continue;case we.CDATA:ot==="]"?Oe.state=we.CDATA_ENDING:Oe.cdata+=ot;continue;case we.CDATA_ENDING:ot==="]"?Oe.state=we.CDATA_ENDING_2:(Oe.cdata+="]"+ot,Oe.state=we.CDATA);continue;case we.CDATA_ENDING_2:ot===">"?(Oe.cdata&&He(Oe,"oncdata",Oe.cdata),He(Oe,"onclosecdata"),Oe.cdata="",Oe.state=we.TEXT):ot==="]"?Oe.cdata+="]":(Oe.cdata+="]]"+ot,Oe.state=we.CDATA);continue;case we.PROC_INST:ot==="?"?Oe.state=we.PROC_INST_ENDING:De(ot)?Oe.state=we.PROC_INST_BODY:Oe.procInstName+=ot;continue;case we.PROC_INST_BODY:if(!Oe.procInstBody&&De(ot))continue;ot==="?"?Oe.state=we.PROC_INST_ENDING:Oe.procInstBody+=ot;continue;case we.PROC_INST_ENDING:ot===">"?(He(Oe,"onprocessinginstruction",{name:Oe.procInstName,body:Oe.procInstBody}),Oe.procInstName=Oe.procInstBody="",Oe.state=we.TEXT):(Oe.procInstBody+="?"+ot,Oe.state=we.PROC_INST_BODY);continue;case we.OPEN_TAG:Re(Pe,ot)?Oe.tagName+=ot:(Ue(Oe),ot===">"?rt(Oe):ot==="/"?Oe.state=we.OPEN_TAG_SLASH:(De(ot)||Ge(Oe,"Invalid character in tag name"),Oe.state=we.ATTRIB));continue;case we.OPEN_TAG_SLASH:ot===">"?(rt(Oe,!0),Xe(Oe)):(Ge(Oe,"Forward-slash in opening tag not followed by >"),Oe.state=we.ATTRIB);continue;case we.ATTRIB:if(De(ot))continue;ot===">"?rt(Oe):ot==="/"?Oe.state=we.OPEN_TAG_SLASH:Re(Ye,ot)?(Oe.attribName=ot,Oe.attribValue="",Oe.state=we.ATTRIB_NAME):Ge(Oe,"Invalid attribute name");continue;case we.ATTRIB_NAME:ot==="="?Oe.state=we.ATTRIB_VALUE:ot===">"?(Ge(Oe,"Attribute without value"),Oe.attribValue=Oe.attribName,et(Oe),rt(Oe)):De(ot)?Oe.state=we.ATTRIB_NAME_SAW_WHITE:Re(Pe,ot)?Oe.attribName+=ot:Ge(Oe,"Invalid attribute name");continue;case we.ATTRIB_NAME_SAW_WHITE:if(ot==="=")Oe.state=we.ATTRIB_VALUE;else{if(De(ot))continue;Ge(Oe,"Attribute without value"),Oe.tag.attributes[Oe.attribName]="",Oe.attribValue="",He(Oe,"onattribute",{name:Oe.attribName,value:""}),Oe.attribName="",ot===">"?rt(Oe):Re(Ye,ot)?(Oe.attribName=ot,Oe.state=we.ATTRIB_NAME):(Ge(Oe,"Invalid attribute name"),Oe.state=we.ATTRIB)}continue;case we.ATTRIB_VALUE:if(De(ot))continue;je(ot)?(Oe.q=ot,Oe.state=we.ATTRIB_VALUE_QUOTED):(Ge(Oe,"Unquoted attribute value"),Oe.state=we.ATTRIB_VALUE_UNQUOTED,Oe.attribValue=ot);continue;case we.ATTRIB_VALUE_QUOTED:if(ot!==Oe.q){ot==="&"?Oe.state=we.ATTRIB_VALUE_ENTITY_Q:Oe.attribValue+=ot;continue}et(Oe),Oe.q="",Oe.state=we.ATTRIB_VALUE_CLOSED;continue;case we.ATTRIB_VALUE_CLOSED:De(ot)?Oe.state=we.ATTRIB:ot===">"?rt(Oe):ot==="/"?Oe.state=we.OPEN_TAG_SLASH:Re(Ye,ot)?(Ge(Oe,"No whitespace between attributes"),Oe.attribName=ot,Oe.attribValue="",Oe.state=we.ATTRIB_NAME):Ge(Oe,"Invalid attribute name");continue;case we.ATTRIB_VALUE_UNQUOTED:if(!Fe(ot)){ot==="&"?Oe.state=we.ATTRIB_VALUE_ENTITY_U:Oe.attribValue+=ot;continue}et(Oe),ot===">"?rt(Oe):Oe.state=we.ATTRIB;continue;case we.CLOSE_TAG:if(Oe.tagName)ot===">"?Xe(Oe):Re(Pe,ot)?Oe.tagName+=ot:Oe.script?(Oe.script+="</"+Oe.tagName,Oe.tagName="",Oe.state=we.SCRIPT):(De(ot)||Ge(Oe,"Invalid tagname in closing tag"),Oe.state=we.CLOSE_TAG_SAW_WHITE);else{if(De(ot))continue;qe(Ye,ot)?Oe.script?(Oe.script+="</"+ot,Oe.state=we.SCRIPT):Ge(Oe,"Invalid tagname in closing tag."):Oe.tagName=ot}continue;case we.CLOSE_TAG_SAW_WHITE:if(De(ot))continue;ot===">"?Xe(Oe):Ge(Oe,"Invalid characters in closing tag");continue;case we.TEXT_ENTITY:case we.ATTRIB_VALUE_ENTITY_Q:case we.ATTRIB_VALUE_ENTITY_U:var Ft,Bt;switch(Oe.state){case we.TEXT_ENTITY:Ft=we.TEXT,Bt="textNode";break;case we.ATTRIB_VALUE_ENTITY_Q:Ft=we.ATTRIB_VALUE_QUOTED,Bt="attribValue";break;case we.ATTRIB_VALUE_ENTITY_U:Ft=we.ATTRIB_VALUE_UNQUOTED,Bt="attribValue"}ot===";"?(Oe[Bt]+=ut(Oe),Oe.entity="",Oe.state=Ft):Re(Oe.entity.length?pe:Le,ot)?Oe.entity+=ot:(Ge(Oe,"Invalid character in entity name"),Oe[Bt]+="&"+Oe.entity+ot,Oe.entity="",Oe.state=Ft);continue;default:throw new Error(Oe,"Unknown state: "+Oe.state)}return Oe.position>=Oe.bufferCheckPosition&&Ce(Oe),Oe}ge.parser=function(Me,Oe){return new _e(Me,Oe)},ge.SAXParser=_e,ge.SAXStream=Ae,ge.createStream=Ee,ge.MAX_BUFFER_LENGTH=65536;var Mt=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ge.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Se.default||(Object.create=function(Me){function Oe(){}return Oe.prototype=Me,new Oe}),le.default||(Object.keys=function(Me){var Oe=[];for(var tt in Me)Me.hasOwnProperty(tt)&&Oe.push(tt);return Oe}),_e.prototype={end:function(){ht(this)},write:pt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){be(this)}};var wt;try{wt=ie("stream").Stream}catch(Me){wt=function(){}}var bt=ge.EVENTS.filter(function(Me){return Me!=="error"&&Me!=="end"});Ae.prototype=(0,Se.default)(wt.prototype,{constructor:{value:Ae}}),Ae.prototype.write=function(Me){if(typeof ue=="function"&&typeof ue.isBuffer=="function"&&ue.isBuffer(Me)){if(!this._decoder){var Oe=ie("string_decoder").StringDecoder;this._decoder=new Oe("utf8")}Me=this._decoder.write(Me)}return this._parser.write(Me.toString()),this.emit("data",Me),!0},Ae.prototype.end=function(Me){return Me&&Me.length&&this.write(Me),this._parser.end(),!0},Ae.prototype.on=function(Me,Oe){var tt=this;return tt._parser["on"+Me]||bt.indexOf(Me)===-1||(tt._parser["on"+Me]=function(){var ot=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ot.splice(0,0,Me),tt.emit.apply(tt,ot)}),wt.prototype.on.call(tt,Me,Oe)};var gt="[CDATA[",We="DOCTYPE",Ie="http://www.w3.org/XML/1998/namespace",xe="http://www.w3.org/2000/xmlns/",Be={xml:Ie,xmlns:xe},Ye=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Pe=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Le=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,pe=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,we=0;ge.STATE={BEGIN:we++,BEGIN_WHITESPACE:we++,TEXT:we++,TEXT_ENTITY:we++,OPEN_WAKA:we++,SGML_DECL:we++,SGML_DECL_QUOTED:we++,DOCTYPE:we++,DOCTYPE_QUOTED:we++,DOCTYPE_DTD:we++,DOCTYPE_DTD_QUOTED:we++,COMMENT_STARTING:we++,COMMENT:we++,COMMENT_ENDING:we++,COMMENT_ENDED:we++,CDATA:we++,CDATA_ENDING:we++,CDATA_ENDING_2:we++,PROC_INST:we++,PROC_INST_BODY:we++,PROC_INST_ENDING:we++,OPEN_TAG:we++,OPEN_TAG_SLASH:we++,ATTRIB:we++,ATTRIB_NAME:we++,ATTRIB_NAME_SAW_WHITE:we++,ATTRIB_VALUE:we++,ATTRIB_VALUE_QUOTED:we++,ATTRIB_VALUE_CLOSED:we++,ATTRIB_VALUE_UNQUOTED:we++,ATTRIB_VALUE_ENTITY_Q:we++,ATTRIB_VALUE_ENTITY_U:we++,CLOSE_TAG:we++,CLOSE_TAG_SAW_WHITE:we++,SCRIPT:we++,SCRIPT_ENDING:we++},ge.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ge.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,le.default)(ge.ENTITIES).forEach(function(Me){var Oe=ge.ENTITIES[Me],tt=typeof Oe=="number"?String.fromCharCode(Oe):Oe;ge.ENTITIES[Me]=tt});for(var ke in ge.STATE)ge.STATE[ge.STATE[ke]]=ke;we=ge.STATE,te.default||function(){var Me=String.fromCharCode,Oe=Math.floor,tt=function(){var ot,st,ft=[],Ft=-1,Bt=arguments.length;if(!Bt)return"";for(var qt="";++Ft<Bt;){var $t=Number(arguments[Ft]);if(!isFinite($t)||$t<0||$t>1114111||Oe($t)!==$t)throw RangeError("Invalid code point: "+$t);$t<=65535?ft.push($t):($t-=65536,ot=55296+($t>>10),st=$t%1024+56320,ft.push(ot,st)),(Ft+1===Bt||ft.length>16384)&&(qt+=Me.apply(null,ft),ft.length=0)}return qt};re.default?Object.defineProperty(String,"fromCodePoint",{value:tt,configurable:!0,writable:!0}):String.fromCodePoint=tt}()})(de===void 0?(void 0).sax={}:de)}).call(this,ie("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(ie,fe,de){function ue(){ae.call(this)}fe.exports=ue;var ae=ie("events").EventEmitter;ie("inherits")(ue,ae),ue.Readable=ie("readable-stream/readable.js"),ue.Writable=ie("readable-stream/writable.js"),ue.Duplex=ie("readable-stream/duplex.js"),ue.Transform=ie("readable-stream/transform.js"),ue.PassThrough=ie("readable-stream/passthrough.js"),ue.Stream=ue,ue.prototype.pipe=function(se,te){function ne(ve){se.writable&&se.write(ve)===!1&&ce.pause&&ce.pause()}function x(){ce.readable&&ce.resume&&ce.resume()}function b(){le||(le=!0,se.end())}function ee(){le||(le=!0,typeof se.destroy=="function"&&se.destroy())}function E(ve){if(re(),ae.listenerCount(this,"error")===0)throw ve}function re(){ce.removeListener("data",ne),se.removeListener("drain",x),ce.removeListener("end",b),ce.removeListener("close",ee),ce.removeListener("error",E),se.removeListener("error",E),ce.removeListener("end",re),ce.removeListener("close",re),se.removeListener("close",re)}var ce=this;ce.on("data",ne),se.on("drain",x),se._isStdio||te&&te.end===!1||(ce.on("end",b),ce.on("close",ee));var le=!1;return ce.on("error",E),se.on("error",E),ce.on("end",re),ce.on("close",re),se.on("close",re),se.emit("pipe",ce),se}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(ie,fe,de){(function(ue){var ae=ie("./lib/request"),se=ie("./lib/response"),te=ie("xtend"),ne=ie("builtin-status-codes"),x=ie("url"),b=de;b.request=function(ee,E){ee=typeof ee=="string"?x.parse(ee):te(ee);var re=ue.location.protocol.search(/^https?:$/)===-1?"http:":"",ce=ee.protocol||re,le=ee.hostname||ee.host,ve=ee.port,Se=ee.path||"/";le&&le.indexOf(":")!==-1&&(le="["+le+"]"),ee.url=(le?ce+"//"+le:"")+(ve?":"+ve:"")+Se,ee.method=(ee.method||"GET").toUpperCase(),ee.headers=ee.headers||{};var ge=new ae(ee);return E&&ge.on("response",E),ge},b.get=function(ee,E){var re=b.request(ee,E);return re.end(),re},b.ClientRequest=ae,b.IncomingMessage=se.IncomingMessage,b.Agent=function(){},b.Agent.defaultMaxSockets=4,b.globalAgent=new b.Agent,b.STATUS_CODES=ne,b.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(ie,fe,de){(function(ue){"use strict";function ae(){if(ne!==void 0)return ne;if(ue.XMLHttpRequest){ne=new ue.XMLHttpRequest;try{ne.open("GET",ue.XDomainRequest?"/":"https://example.com")}catch(ee){ne=null}}else ne=null;return ne}function se(ee){var E=ae();if(!E)return!1;try{return E.responseType=ee,E.responseType===ee}catch(re){}return!1}function te(ee){return typeof ee=="function"}de.fetch=te(ue.fetch)&&te(ue.ReadableStream),de.writableStream=te(ue.WritableStream),de.abortController=te(ue.AbortController),de.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),de.blobConstructor=!0}catch(ee){}var ne,x=ue.ArrayBuffer!==void 0,b=x&&te(ue.ArrayBuffer.prototype.slice);de.arraybuffer=de.fetch||x&&se("arraybuffer"),de.msstream=!de.fetch&&b&&se("ms-stream"),de.mozchunkedarraybuffer=!de.fetch&&x&&se("moz-chunked-arraybuffer"),de.overrideMimeType=de.fetch||!!ae()&&te(ae().overrideMimeType),de.vbArray=te(ue.VBArray),ne=null}).call(this,typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(ie,fe,de){(function(ue,ae,se){"use strict";function te(Ce,he){return ee.fetch&&he?"fetch":ee.mozchunkedarraybuffer?"moz-chunked-arraybuffer":ee.msstream?"ms-stream":ee.arraybuffer&&Ce?"arraybuffer":ee.vbArray&&Ce?"text:vbarray":"text"}function ne(Ce){try{var he=Ce.status;return he!==null&&he!==0}catch(be){return!1}}var x=ie("babel-runtime/core-js/object/keys"),b=function(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}(x),ee=ie("./capability"),E=ie("inherits"),re=ie("./response"),ce=ie("readable-stream"),le=ie("to-arraybuffer"),ve=re.IncomingMessage,Se=re.readyStates,ge=fe.exports=function(Ce){var he=this;ce.Writable.call(he),he._opts=Ce,he._body=[],he._headers={},Ce.auth&&he.setHeader("Authorization","Basic "+new se(Ce.auth).toString("base64")),(0,b.default)(Ce.headers).forEach(function(Ae){he.setHeader(Ae,Ce.headers[Ae])});var be,Ee=!0;if(Ce.mode==="disable-fetch"||"requestTimeout"in Ce&&!ee.abortController)Ee=!1,be=!0;else if(Ce.mode==="prefer-streaming")be=!1;else if(Ce.mode==="allow-wrong-content-type")be=!ee.overrideMimeType;else{if(Ce.mode&&Ce.mode!=="default"&&Ce.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");be=!0}he._mode=te(be,Ee),he._fetchTimer=null,he.on("finish",function(){he._onFinish()})};E(ge,ce.Writable),ge.prototype.setHeader=function(Ce,he){var be=this,Ee=Ce.toLowerCase();_e.indexOf(Ee)===-1&&(be._headers[Ee]={name:Ce,value:he})},ge.prototype.getHeader=function(Ce){var he=this._headers[Ce.toLowerCase()];return he?he.value:null},ge.prototype.removeHeader=function(Ce){delete this._headers[Ce.toLowerCase()]},ge.prototype._onFinish=function(){var Ce=this;if(!Ce._destroyed){var he=Ce._opts,be=Ce._headers,Ee=null;he.method!=="GET"&&he.method!=="HEAD"&&(Ee=ee.arraybuffer?le(se.concat(Ce._body)):ee.blobConstructor?new ae.Blob(Ce._body.map(function(Re){return le(Re)}),{type:(be["content-type"]||{}).value||""}):se.concat(Ce._body).toString());var Ae=[];if((0,b.default)(be).forEach(function(Re){var qe=be[Re].name,Je=be[Re].value;Array.isArray(Je)?Je.forEach(function(He){Ae.push([qe,He])}):Ae.push([qe,Je])}),Ce._mode==="fetch"){var De=null;if(ee.abortController){var je=new AbortController;De=je.signal,Ce._fetchAbortController=je,"requestTimeout"in he&&he.requestTimeout!==0&&(Ce._fetchTimer=ae.setTimeout(function(){Ce.emit("requestTimeout"),Ce._fetchAbortController&&Ce._fetchAbortController.abort()},he.requestTimeout))}ae.fetch(Ce._opts.url,{method:Ce._opts.method,headers:Ae,body:Ee||void 0,mode:"cors",credentials:he.withCredentials?"include":"same-origin",signal:De}).then(function(Re){Ce._fetchResponse=Re,Ce._connect()},function(Re){ae.clearTimeout(Ce._fetchTimer),Ce._destroyed||Ce.emit("error",Re)})}else{var Fe=Ce._xhr=new ae.XMLHttpRequest;try{Fe.open(Ce._opts.method,Ce._opts.url,!0)}catch(Re){return void ue.nextTick(function(){Ce.emit("error",Re)})}"responseType"in Fe&&(Fe.responseType=Ce._mode.split(":")[0]),"withCredentials"in Fe&&(Fe.withCredentials=!!he.withCredentials),Ce._mode==="text"&&"overrideMimeType"in Fe&&Fe.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in he&&(Fe.timeout=he.requestTimeout,Fe.ontimeout=function(){Ce.emit("requestTimeout")}),Ae.forEach(function(Re){Fe.setRequestHeader(Re[0],Re[1])}),Ce._response=null,Fe.onreadystatechange=function(){switch(Fe.readyState){case Se.LOADING:case Se.DONE:Ce._onXHRProgress()}},Ce._mode==="moz-chunked-arraybuffer"&&(Fe.onprogress=function(){Ce._onXHRProgress()}),Fe.onerror=function(){Ce._destroyed||Ce.emit("error",new Error("XHR error"))};try{Fe.send(Ee)}catch(Re){return void ue.nextTick(function(){Ce.emit("error",Re)})}}}},ge.prototype._onXHRProgress=function(){var Ce=this;ne(Ce._xhr)&&!Ce._destroyed&&(Ce._response||Ce._connect(),Ce._response._onXHRProgress())},ge.prototype._connect=function(){var Ce=this;Ce._destroyed||(Ce._response=new ve(Ce._xhr,Ce._fetchResponse,Ce._mode,Ce._fetchTimer),Ce._response.on("error",function(he){Ce.emit("error",he)}),Ce.emit("response",Ce._response))},ge.prototype._write=function(Ce,he,be){this._body.push(Ce),be()},ge.prototype.abort=ge.prototype.destroy=function(){var Ce=this;Ce._destroyed=!0,ae.clearTimeout(Ce._fetchTimer),Ce._response&&(Ce._response._destroyed=!0),Ce._xhr?Ce._xhr.abort():Ce._fetchAbortController&&Ce._fetchAbortController.abort()},ge.prototype.end=function(Ce,he,be){var Ee=this;typeof Ce=="function"&&(be=Ce,Ce=void 0),ce.Writable.prototype.end.call(Ee,Ce,he,be)},ge.prototype.flushHeaders=function(){},ge.prototype.setTimeout=function(){},ge.prototype.setNoDelay=function(){},ge.prototype.setSocketKeepAlive=function(){};var _e=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,ie("_process"),typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},ie("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(ie,fe,de){(function(ue,ae,se){"use strict";var te=ie("babel-runtime/core-js/promise"),ne=function(ce){return ce&&ce.__esModule?ce:{default:ce}}(te),x=ie("./capability"),b=ie("inherits"),ee=ie("readable-stream"),E=de.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},re=de.IncomingMessage=function(ce,le,ve,Se){var ge=this;if(ee.Readable.call(ge),ge._mode=ve,ge.headers={},ge.rawHeaders=[],ge.trailers={},ge.rawTrailers=[],ge.on("end",function(){ue.nextTick(function(){ge.emit("close")})}),ve==="fetch"){if(ge._fetchResponse=le,ge.url=le.url,ge.statusCode=le.status,ge.statusMessage=le.statusText,le.headers.forEach(function(Ee,Ae){ge.headers[Ae.toLowerCase()]=Ee,ge.rawHeaders.push(Ae,Ee)}),x.writableStream){var _e=new WritableStream({write:function(Ee){return new ne.default(function(Ae,De){ge._destroyed?De():ge.push(new se(Ee))?Ae():ge._resumeFetch=Ae})},close:function(){ae.clearTimeout(Se),ge._destroyed||ge.push(null)},abort:function(Ee){ge._destroyed||ge.emit("error",Ee)}});try{return void le.body.pipeTo(_e).catch(function(Ee){ae.clearTimeout(Se),ge._destroyed||ge.emit("error",Ee)})}catch(Ee){}}var Ce=le.body.getReader();(function Ee(){Ce.read().then(function(Ae){if(!ge._destroyed){if(Ae.done)return ae.clearTimeout(Se),void ge.push(null);ge.push(new se(Ae.value)),Ee()}}).catch(function(Ae){ae.clearTimeout(Se),ge._destroyed||ge.emit("error",Ae)})})()}else if(ge._xhr=ce,ge._pos=0,ge.url=ce.responseURL,ge.statusCode=ce.status,ge.statusMessage=ce.statusText,ce.getAllResponseHeaders().split(/\r?\n/).forEach(function(Ee){var Ae=Ee.match(/^([^:]+):\s*(.*)/);if(Ae){var De=Ae[1].toLowerCase();De==="set-cookie"?(ge.headers[De]===void 0&&(ge.headers[De]=[]),ge.headers[De].push(Ae[2])):ge.headers[De]!==void 0?ge.headers[De]+=", "+Ae[2]:ge.headers[De]=Ae[2],ge.rawHeaders.push(Ae[1],Ae[2])}}),ge._charset="x-user-defined",!x.overrideMimeType){var he=ge.rawHeaders["mime-type"];if(he){var be=he.match(/;\s*charset=([^;])(;|$)/);be&&(ge._charset=be[1].toLowerCase())}ge._charset||(ge._charset="utf-8")}};b(re,ee.Readable),re.prototype._read=function(){var ce=this,le=ce._resumeFetch;le&&(ce._resumeFetch=null,le())},re.prototype._onXHRProgress=function(){var ce=this,le=ce._xhr,ve=null;switch(ce._mode){case"text:vbarray":if(le.readyState!==E.DONE)break;try{ve=new ae.VBArray(le.responseBody).toArray()}catch(he){}if(ve!==null){ce.push(new se(ve));break}case"text":try{ve=le.responseText}catch(he){ce._mode="text:vbarray";break}if(ve.length>ce._pos){var Se=ve.substr(ce._pos);if(ce._charset==="x-user-defined"){for(var ge=new se(Se.length),_e=0;_e<Se.length;_e++)ge[_e]=255&Se.charCodeAt(_e);ce.push(ge)}else ce.push(Se,ce._charset);ce._pos=ve.length}break;case"arraybuffer":if(le.readyState!==E.DONE||!le.response)break;ve=le.response,ce.push(new se(new Uint8Array(ve)));break;case"moz-chunked-arraybuffer":if(ve=le.response,le.readyState!==E.LOADING||!ve)break;ce.push(new se(new Uint8Array(ve)));break;case"ms-stream":if(ve=le.response,le.readyState!==E.LOADING)break;var Ce=new ae.MSStreamReader;Ce.onprogress=function(){Ce.result.byteLength>ce._pos&&(ce.push(new se(new Uint8Array(Ce.result.slice(ce._pos)))),ce._pos=Ce.result.byteLength)},Ce.onload=function(){ce.push(null)},Ce.readAsArrayBuffer(ve)}ce._xhr.readyState===E.DONE&&ce._mode!=="ms-stream"&&ce.push(null)}}).call(this,ie("_process"),typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},ie("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(ie,fe,de){"use strict";function ue(he){if(!he)return"utf8";for(var be;;)switch(he){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return he;default:if(be)return;he=(""+he).toLowerCase(),be=!0}}function ae(he){var be=ue(he);if(typeof be!="string"&&(_e.isEncoding===Ce||!Ce(he)))throw new Error("Unknown encoding: "+he);return be||he}function se(he){this.encoding=ae(he);var be;switch(this.encoding){case"utf16le":this.text=re,this.end=ce,be=4;break;case"utf8":this.fillLast=b,be=4;break;case"base64":this.text=le,this.end=ve,be=3;break;default:return this.write=Se,void(this.end=ge)}this.lastNeed=0,this.lastTotal=0,this.lastChar=_e.allocUnsafe(be)}function te(he){return he<=127?0:he>>5==6?2:he>>4==14?3:he>>3==30?4:he>>6==2?-1:-2}function ne(he,be,Ee){var Ae=be.length-1;if(Ae<Ee)return 0;var De=te(be[Ae]);return De>=0?(De>0&&(he.lastNeed=De-1),De):--Ae<Ee||De===-2?0:(De=te(be[Ae]))>=0?(De>0&&(he.lastNeed=De-2),De):--Ae<Ee||De===-2?0:(De=te(be[Ae]),De>=0?(De>0&&(De===2?De=0:he.lastNeed=De-3),De):0)}function x(he,be,Ee){if((192&be[0])!=128)return he.lastNeed=0,"\u951F\uFFFD";if(he.lastNeed>1&&be.length>1){if((192&be[1])!=128)return he.lastNeed=1,"\u951F\uFFFD";if(he.lastNeed>2&&be.length>2&&(192&be[2])!=128)return he.lastNeed=2,"\u951F\uFFFD"}}function b(he){var be=this.lastTotal-this.lastNeed,Ee=x(this,he,be);return Ee!==void 0?Ee:this.lastNeed<=he.length?(he.copy(this.lastChar,be,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(he.copy(this.lastChar,be,0,he.length),void(this.lastNeed-=he.length))}function ee(he,be){var Ee=ne(this,he,be);if(!this.lastNeed)return he.toString("utf8",be);this.lastTotal=Ee;var Ae=he.length-(Ee-this.lastNeed);return he.copy(this.lastChar,0,Ae),he.toString("utf8",be,Ae)}function E(he){var be=he&&he.length?this.write(he):"";return this.lastNeed?be+"\u951F\uFFFD":be}function re(he,be){if((he.length-be)%2==0){var Ee=he.toString("utf16le",be);if(Ee){var Ae=Ee.charCodeAt(Ee.length-1);if(Ae>=55296&&Ae<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=he[he.length-2],this.lastChar[1]=he[he.length-1],Ee.slice(0,-1)}return Ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=he[he.length-1],he.toString("utf16le",be,he.length-1)}function ce(he){var be=he&&he.length?this.write(he):"";if(this.lastNeed){var Ee=this.lastTotal-this.lastNeed;return be+this.lastChar.toString("utf16le",0,Ee)}return be}function le(he,be){var Ee=(he.length-be)%3;return Ee===0?he.toString("base64",be):(this.lastNeed=3-Ee,this.lastTotal=3,Ee===1?this.lastChar[0]=he[he.length-1]:(this.lastChar[0]=he[he.length-2],this.lastChar[1]=he[he.length-1]),he.toString("base64",be,he.length-Ee))}function ve(he){var be=he&&he.length?this.write(he):"";return this.lastNeed?be+this.lastChar.toString("base64",0,3-this.lastNeed):be}function Se(he){return he.toString(this.encoding)}function ge(he){return he&&he.length?this.write(he):""}var _e=ie("safe-buffer").Buffer,Ce=_e.isEncoding||function(he){switch((he=""+he)&&he.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};de.StringDecoder=se,se.prototype.write=function(he){if(he.length===0)return"";var be,Ee;if(this.lastNeed){if((be=this.fillLast(he))===void 0)return"";Ee=this.lastNeed,this.lastNeed=0}else Ee=0;return Ee<he.length?be?be+this.text(he,Ee):this.text(he,Ee):be||""},se.prototype.end=E,se.prototype.text=ee,se.prototype.fillLast=function(he){if(this.lastNeed<=he.length)return he.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);he.copy(this.lastChar,this.lastTotal-this.lastNeed,0,he.length),this.lastNeed-=he.length}},{"safe-buffer":193}],201:[function(ie,fe,de){(function(ue,ae){function se(E,re){this._id=E,this._clearFn=re}var te=ie("process/browser.js").nextTick,ne=Function.prototype.apply,x=Array.prototype.slice,b={},ee=0;de.setTimeout=function(){return new se(ne.call(setTimeout,window,arguments),clearTimeout)},de.setInterval=function(){return new se(ne.call(setInterval,window,arguments),clearInterval)},de.clearTimeout=de.clearInterval=function(E){E.close()},se.prototype.unref=se.prototype.ref=function(){},se.prototype.close=function(){this._clearFn.call(window,this._id)},de.enroll=function(E,re){clearTimeout(E._idleTimeoutId),E._idleTimeout=re},de.unenroll=function(E){clearTimeout(E._idleTimeoutId),E._idleTimeout=-1},de._unrefActive=de.active=function(E){clearTimeout(E._idleTimeoutId);var re=E._idleTimeout;re>=0&&(E._idleTimeoutId=setTimeout(function(){E._onTimeout&&E._onTimeout()},re))},de.setImmediate=typeof ue=="function"?ue:function(E){var re=ee++,ce=!(arguments.length<2)&&x.call(arguments,1);return b[re]=!0,te(function(){b[re]&&(ce?E.apply(null,ce):E.call(null),de.clearImmediate(re))}),re},de.clearImmediate=typeof ae=="function"?ae:function(E){delete b[E]}}).call(this,ie("timers").setImmediate,ie("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(ie,fe,de){var ue=ie("buffer").Buffer;fe.exports=function(ae){if(ae instanceof Uint8Array){if(ae.byteOffset===0&&ae.byteLength===ae.buffer.byteLength)return ae.buffer;if(typeof ae.buffer.slice=="function")return ae.buffer.slice(ae.byteOffset,ae.byteOffset+ae.byteLength)}if(ue.isBuffer(ae)){for(var se=new Uint8Array(ae.length),te=ae.length,ne=0;ne<te;ne++)se[ne]=ae[ne];return se.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(ie,fe,de){"use strict";function ue(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function ae(De,je,Fe){if(De&&b.isObject(De)&&De instanceof ue)return De;var Re=new ue;return Re.parse(De,je,Fe),Re}function se(De){return b.isString(De)&&(De=ae(De)),De instanceof ue?De.format():ue.prototype.format.call(De)}function te(De,je){return ae(De,!1,!0).resolve(je)}function ne(De,je){return De?ae(De,!1,!0).resolveObject(je):je}var x=ie("punycode"),b=ie("./util");de.parse=ae,de.resolve=te,de.resolveObject=ne,de.format=se,de.Url=ue;var ee=/^([a-z0-9.+-]+:)/i,E=/:[0-9]*$/,re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ce=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],le=["{","}","|","\\","^","`"].concat(ce),ve=["'"].concat(le),Se=["%","/","?",";","#"].concat(ve),ge=["/","?","#"],_e=/^[+a-z0-9A-Z_-]{0,63}$/,Ce=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,he={javascript:!0,"javascript:":!0},be={javascript:!0,"javascript:":!0},Ee={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ae=ie("querystring");ue.prototype.parse=function(De,je,Fe){if(!b.isString(De))throw new TypeError("Parameter 'url' must be a string, not "+typeof De);var Re=De.indexOf("?"),qe=Re!==-1&&Re<De.indexOf("#")?"?":"#",Je=De.split(qe),He=/\\/g;Je[0]=Je[0].replace(He,"/"),De=Je.join(qe);var ze=De;if(ze=ze.trim(),!Fe&&De.split("#").length===1){var Qe=re.exec(ze);if(Qe)return this.path=ze,this.href=ze,this.pathname=Qe[1],Qe[2]?(this.search=Qe[2],this.query=je?Ae.parse(this.search.substr(1)):this.search.substr(1)):je&&(this.search="",this.query={}),this}var $e=ee.exec(ze);if($e){$e=$e[0];var ht=$e.toLowerCase();this.protocol=ht,ze=ze.substr($e.length)}if(Fe||$e||ze.match(/^\/\/[^@\/]+@[^@\/]+/)){var Ge=ze.substr(0,2)==="//";!Ge||$e&&be[$e]||(ze=ze.substr(2),this.slashes=!0)}if(!be[$e]&&(Ge||$e&&!Ee[$e])){for(var Ue=-1,Ke=0;Ke<ge.length;Ke++){var et=ze.indexOf(ge[Ke]);et!==-1&&(Ue===-1||et<Ue)&&(Ue=et)}var rt,Xe;Xe=Ue===-1?ze.lastIndexOf("@"):ze.lastIndexOf("@",Ue),Xe!==-1&&(rt=ze.slice(0,Xe),ze=ze.slice(Xe+1),this.auth=decodeURIComponent(rt)),Ue=-1;for(var Ke=0;Ke<Se.length;Ke++){var et=ze.indexOf(Se[Ke]);et!==-1&&(Ue===-1||et<Ue)&&(Ue=et)}Ue===-1&&(Ue=ze.length),this.host=ze.slice(0,Ue),ze=ze.slice(Ue),this.parseHost(),this.hostname=this.hostname||"";var ut=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ut)for(var lt=this.hostname.split(/\./),Ke=0,kt=lt.length;Ke<kt;Ke++){var pt=lt[Ke];if(pt&&!pt.match(_e)){for(var Mt="",wt=0,bt=pt.length;wt<bt;wt++)pt.charCodeAt(wt)>127?Mt+="x":Mt+=pt[wt];if(!Mt.match(_e)){var gt=lt.slice(0,Ke),We=lt.slice(Ke+1),Ie=pt.match(Ce);Ie&&(gt.push(Ie[1]),We.unshift(Ie[2])),We.length&&(ze="/"+We.join(".")+ze),this.hostname=gt.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),ut||(this.hostname=x.toASCII(this.hostname));var xe=this.port?":"+this.port:"",Be=this.hostname||"";this.host=Be+xe,this.href+=this.host,ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ze[0]!=="/"&&(ze="/"+ze))}if(!he[ht])for(var Ke=0,kt=ve.length;Ke<kt;Ke++){var Ye=ve[Ke];if(ze.indexOf(Ye)!==-1){var Pe=encodeURIComponent(Ye);Pe===Ye&&(Pe=escape(Ye)),ze=ze.split(Ye).join(Pe)}}var Le=ze.indexOf("#");Le!==-1&&(this.hash=ze.substr(Le),ze=ze.slice(0,Le));var pe=ze.indexOf("?");if(pe!==-1?(this.search=ze.substr(pe),this.query=ze.substr(pe+1),je&&(this.query=Ae.parse(this.query)),ze=ze.slice(0,pe)):je&&(this.search="",this.query={}),ze&&(this.pathname=ze),Ee[ht]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var xe=this.pathname||"",we=this.search||"";this.path=xe+we}return this.href=this.format(),this},ue.prototype.format=function(){var De=this.auth||"";De&&(De=encodeURIComponent(De),De=De.replace(/%3A/i,":"),De+="@");var je=this.protocol||"",Fe=this.pathname||"",Re=this.hash||"",qe=!1,Je="";this.host?qe=De+this.host:this.hostname&&(qe=De+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(qe+=":"+this.port)),this.query&&b.isObject(this.query)&&Object.keys(this.query).length&&(Je=Ae.stringify(this.query));var He=this.search||Je&&"?"+Je||"";return je&&je.substr(-1)!==":"&&(je+=":"),this.slashes||(!je||Ee[je])&&qe!==!1?(qe="//"+(qe||""),Fe&&Fe.charAt(0)!=="/"&&(Fe="/"+Fe)):qe||(qe=""),Re&&Re.charAt(0)!=="#"&&(Re="#"+Re),He&&He.charAt(0)!=="?"&&(He="?"+He),Fe=Fe.replace(/[?#]/g,function(ze){return encodeURIComponent(ze)}),He=He.replace("#","%23"),je+qe+Fe+He+Re},ue.prototype.resolve=function(De){return this.resolveObject(ae(De,!1,!0)).format()},ue.prototype.resolveObject=function(De){if(b.isString(De)){var je=new ue;je.parse(De,!1,!0),De=je}for(var Fe=new ue,Re=Object.keys(this),qe=0;qe<Re.length;qe++){var Je=Re[qe];Fe[Je]=this[Je]}if(Fe.hash=De.hash,De.href==="")return Fe.href=Fe.format(),Fe;if(De.slashes&&!De.protocol){for(var He=Object.keys(De),ze=0;ze<He.length;ze++){var Qe=He[ze];Qe!=="protocol"&&(Fe[Qe]=De[Qe])}return Ee[Fe.protocol]&&Fe.hostname&&!Fe.pathname&&(Fe.path=Fe.pathname="/"),Fe.href=Fe.format(),Fe}if(De.protocol&&De.protocol!==Fe.protocol){if(!Ee[De.protocol]){for(var $e=Object.keys(De),ht=0;ht<$e.length;ht++){var Ge=$e[ht];Fe[Ge]=De[Ge]}return Fe.href=Fe.format(),Fe}if(Fe.protocol=De.protocol,De.host||be[De.protocol])Fe.pathname=De.pathname;else{for(var kt=(De.pathname||"").split("/");kt.length&&!(De.host=kt.shift()););De.host||(De.host=""),De.hostname||(De.hostname=""),kt[0]!==""&&kt.unshift(""),kt.length<2&&kt.unshift(""),Fe.pathname=kt.join("/")}if(Fe.search=De.search,Fe.query=De.query,Fe.host=De.host||"",Fe.auth=De.auth,Fe.hostname=De.hostname||De.host,Fe.port=De.port,Fe.pathname||Fe.search){var Ue=Fe.pathname||"",Ke=Fe.search||"";Fe.path=Ue+Ke}return Fe.slashes=Fe.slashes||De.slashes,Fe.href=Fe.format(),Fe}var et=Fe.pathname&&Fe.pathname.charAt(0)==="/",rt=De.host||De.pathname&&De.pathname.charAt(0)==="/",Xe=rt||et||Fe.host&&De.pathname,ut=Xe,lt=Fe.pathname&&Fe.pathname.split("/")||[],kt=De.pathname&&De.pathname.split("/")||[],pt=Fe.protocol&&!Ee[Fe.protocol];if(pt&&(Fe.hostname="",Fe.port=null,Fe.host&&(lt[0]===""?lt[0]=Fe.host:lt.unshift(Fe.host)),Fe.host="",De.protocol&&(De.hostname=null,De.port=null,De.host&&(kt[0]===""?kt[0]=De.host:kt.unshift(De.host)),De.host=null),Xe=Xe&&(kt[0]===""||lt[0]==="")),rt)Fe.host=De.host||De.host===""?De.host:Fe.host,Fe.hostname=De.hostname||De.hostname===""?De.hostname:Fe.hostname,Fe.search=De.search,Fe.query=De.query,lt=kt;else if(kt.length)lt||(lt=[]),lt.pop(),lt=lt.concat(kt),Fe.search=De.search,Fe.query=De.query;else if(!b.isNullOrUndefined(De.search)){if(pt){Fe.hostname=Fe.host=lt.shift();var Mt=!!(Fe.host&&Fe.host.indexOf("@")>0)&&Fe.host.split("@");Mt&&(Fe.auth=Mt.shift(),Fe.host=Fe.hostname=Mt.shift())}return Fe.search=De.search,Fe.query=De.query,b.isNull(Fe.pathname)&&b.isNull(Fe.search)||(Fe.path=(Fe.pathname?Fe.pathname:"")+(Fe.search?Fe.search:"")),Fe.href=Fe.format(),Fe}if(!lt.length)return Fe.pathname=null,Fe.search?Fe.path="/"+Fe.search:Fe.path=null,Fe.href=Fe.format(),Fe;for(var wt=lt.slice(-1)[0],bt=(Fe.host||De.host||lt.length>1)&&(wt==="."||wt==="..")||wt==="",gt=0,We=lt.length;We>=0;We--)wt=lt[We],wt==="."?lt.splice(We,1):wt===".."?(lt.splice(We,1),gt++):gt&&(lt.splice(We,1),gt--);if(!Xe&&!ut)for(;gt--;gt)lt.unshift("..");!Xe||lt[0]===""||lt[0]&<[0].charAt(0)==="/"||lt.unshift(""),bt&<.join("/").substr(-1)!=="/"&<.push("");var Ie=lt[0]===""||lt[0]&<[0].charAt(0)==="/";if(pt){Fe.hostname=Fe.host=Ie?"":lt.length?lt.shift():"";var Mt=!!(Fe.host&&Fe.host.indexOf("@")>0)&&Fe.host.split("@");Mt&&(Fe.auth=Mt.shift(),Fe.host=Fe.hostname=Mt.shift())}return Xe=Xe||Fe.host&<.length,Xe&&!Ie&<.unshift(""),lt.length?Fe.pathname=lt.join("/"):(Fe.pathname=null,Fe.path=null),b.isNull(Fe.pathname)&&b.isNull(Fe.search)||(Fe.path=(Fe.pathname?Fe.pathname:"")+(Fe.search?Fe.search:"")),Fe.auth=De.auth||Fe.auth,Fe.slashes=Fe.slashes||De.slashes,Fe.href=Fe.format(),Fe},ue.prototype.parseHost=function(){var De=this.host,je=E.exec(De);je&&(je=je[0],je!==":"&&(this.port=je.substr(1)),De=De.substr(0,De.length-je.length)),De&&(this.hostname=De)}},{"./util":204,punycode:174,querystring:177}],204:[function(ie,fe,de){"use strict";fe.exports={isString:function(ue){return typeof ue=="string"},isObject:function(ue){return typeof ue=="object"&&ue!==null},isNull:function(ue){return ue===null},isNullOrUndefined:function(ue){return ue==null}}},{}],205:[function(ie,fe,de){(function(ue){function ae(te,ne){function x(){if(!b){if(se("throwDeprecation"))throw new Error(ne);se("traceDeprecation")?console.trace(ne):console.warn(ne),b=!0}return te.apply(this,arguments)}if(se("noDeprecation"))return te;var b=!1;return x}function se(te){try{if(!ue.localStorage)return!1}catch(x){return!1}var ne=ue.localStorage[te];return ne!=null&&String(ne).toLowerCase()==="true"}fe.exports=ae}).call(this,typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(ie,fe,de){fe.exports=function(ue){return ue&&typeof ue=="object"&&typeof ue.copy=="function"&&typeof ue.fill=="function"&&typeof ue.readUInt8=="function"}},{}],207:[function(ie,fe,de){(function(ue,ae){function se(Ke,et){var rt={seen:[],stylize:ne};return arguments.length>=3&&(rt.depth=arguments[2]),arguments.length>=4&&(rt.colors=arguments[3]),Se(et)?rt.showHidden=et:et&&de._extend(rt,et),Ee(rt.showHidden)&&(rt.showHidden=!1),Ee(rt.depth)&&(rt.depth=2),Ee(rt.colors)&&(rt.colors=!1),Ee(rt.customInspect)&&(rt.customInspect=!0),rt.colors&&(rt.stylize=te),b(rt,Ke,rt.depth)}function te(Ke,et){var rt=se.styles[et];return rt?"\x1B["+se.colors[rt][0]+"m"+Ke+"\x1B["+se.colors[rt][1]+"m":Ke}function ne(Ke,et){return Ke}function x(Ke){var et={};return Ke.forEach(function(rt,Xe){et[rt]=!0}),et}function b(Ke,et,rt){if(Ke.customInspect&&et&&Re(et.inspect)&&et.inspect!==de.inspect&&(!et.constructor||et.constructor.prototype!==et)){var Xe=et.inspect(rt,Ke);return he(Xe)||(Xe=b(Ke,Xe,rt)),Xe}var ut=ee(Ke,et);if(ut)return ut;var lt=Object.keys(et),kt=x(lt);if(Ke.showHidden&&(lt=Object.getOwnPropertyNames(et)),Fe(et)&&(lt.indexOf("message")>=0||lt.indexOf("description")>=0))return E(et);if(lt.length===0){if(Re(et)){var pt=et.name?": "+et.name:"";return Ke.stylize("[Function"+pt+"]","special")}if(Ae(et))return Ke.stylize(RegExp.prototype.toString.call(et),"regexp");if(je(et))return Ke.stylize(Date.prototype.toString.call(et),"date");if(Fe(et))return E(et)}var Mt="",wt=!1,bt=["{","}"];if(ve(et)&&(wt=!0,bt=["[","]"]),Re(et)&&(Mt=" [Function"+(et.name?": "+et.name:"")+"]"),Ae(et)&&(Mt=" "+RegExp.prototype.toString.call(et)),je(et)&&(Mt=" "+Date.prototype.toUTCString.call(et)),Fe(et)&&(Mt=" "+E(et)),lt.length===0&&(!wt||et.length==0))return bt[0]+Mt+bt[1];if(rt<0)return Ae(et)?Ke.stylize(RegExp.prototype.toString.call(et),"regexp"):Ke.stylize("[Object]","special");Ke.seen.push(et);var gt;return gt=wt?re(Ke,et,rt,kt,lt):lt.map(function(We){return ce(Ke,et,rt,kt,We,wt)}),Ke.seen.pop(),le(gt,Mt,bt)}function ee(Ke,et){if(Ee(et))return Ke.stylize("undefined","undefined");if(he(et)){var rt="'"+JSON.stringify(et).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ke.stylize(rt,"string")}return Ce(et)?Ke.stylize(""+et,"number"):Se(et)?Ke.stylize(""+et,"boolean"):ge(et)?Ke.stylize("null","null"):void 0}function E(Ke){return"["+Error.prototype.toString.call(Ke)+"]"}function re(Ke,et,rt,Xe,ut){for(var lt=[],kt=0,pt=et.length;kt<pt;++kt)Qe(et,String(kt))?lt.push(ce(Ke,et,rt,Xe,String(kt),!0)):lt.push("");return ut.forEach(function(Mt){Mt.match(/^\d+$/)||lt.push(ce(Ke,et,rt,Xe,Mt,!0))}),lt}function ce(Ke,et,rt,Xe,ut,lt){var kt,pt,Mt;if(Mt=Object.getOwnPropertyDescriptor(et,ut)||{value:et[ut]},Mt.get?pt=Mt.set?Ke.stylize("[Getter/Setter]","special"):Ke.stylize("[Getter]","special"):Mt.set&&(pt=Ke.stylize("[Setter]","special")),Qe(Xe,ut)||(kt="["+ut+"]"),pt||(Ke.seen.indexOf(Mt.value)<0?(pt=ge(rt)?b(Ke,Mt.value,null):b(Ke,Mt.value,rt-1),pt.indexOf(`
|
|
|
`)>-1&&(pt=lt?pt.split(`
|
|
|
`).map(function(wt){return" "+wt}).join(`
|
|
|
`).substr(2):`
|
|
|
`+pt.split(`
|
|
|
`).map(function(wt){return" "+wt}).join(`
|
|
|
`))):pt=Ke.stylize("[Circular]","special")),Ee(kt)){if(lt&&ut.match(/^\d+$/))return pt;kt=JSON.stringify(""+ut),kt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(kt=kt.substr(1,kt.length-2),kt=Ke.stylize(kt,"name")):(kt=kt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),kt=Ke.stylize(kt,"string"))}return kt+": "+pt}function le(Ke,et,rt){var Xe=0;return Ke.reduce(function(ut,lt){return Xe++,lt.indexOf(`
|
|
|
`)>=0&&Xe++,ut+lt.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?rt[0]+(et===""?"":et+`
|
|
|
`)+" "+Ke.join(`,
|
|
|
`)+" "+rt[1]:rt[0]+et+" "+Ke.join(", ")+" "+rt[1]}function ve(Ke){return Array.isArray(Ke)}function Se(Ke){return typeof Ke=="boolean"}function ge(Ke){return Ke===null}function _e(Ke){return Ke==null}function Ce(Ke){return typeof Ke=="number"}function he(Ke){return typeof Ke=="string"}function be(Ke){return typeof Ke=="symbol"}function Ee(Ke){return Ke===void 0}function Ae(Ke){return De(Ke)&&Je(Ke)==="[object RegExp]"}function De(Ke){return typeof Ke=="object"&&Ke!==null}function je(Ke){return De(Ke)&&Je(Ke)==="[object Date]"}function Fe(Ke){return De(Ke)&&(Je(Ke)==="[object Error]"||Ke instanceof Error)}function Re(Ke){return typeof Ke=="function"}function qe(Ke){return Ke===null||typeof Ke=="boolean"||typeof Ke=="number"||typeof Ke=="string"||typeof Ke=="symbol"||Ke===void 0}function Je(Ke){return Object.prototype.toString.call(Ke)}function He(Ke){return Ke<10?"0"+Ke.toString(10):Ke.toString(10)}function ze(){var Ke=new Date,et=[He(Ke.getHours()),He(Ke.getMinutes()),He(Ke.getSeconds())].join(":");return[Ke.getDate(),Ue[Ke.getMonth()],et].join(" ")}function Qe(Ke,et){return Object.prototype.hasOwnProperty.call(Ke,et)}var $e=/%[sdj%]/g;de.format=function(Ke){if(!he(Ke)){for(var et=[],rt=0;rt<arguments.length;rt++)et.push(se(arguments[rt]));return et.join(" ")}for(var rt=1,Xe=arguments,ut=Xe.length,lt=String(Ke).replace($e,function(Mt){if(Mt==="%%")return"%";if(rt>=ut)return Mt;switch(Mt){case"%s":return String(Xe[rt++]);case"%d":return Number(Xe[rt++]);case"%j":try{return JSON.stringify(Xe[rt++])}catch(wt){return"[Circular]"}default:return Mt}}),kt=Xe[rt];rt<ut;kt=Xe[++rt])ge(kt)||!De(kt)?lt+=" "+kt:lt+=" "+se(kt);return lt},de.deprecate=function(Ke,et){function rt(){if(!Xe){if(ue.throwDeprecation)throw new Error(et);ue.traceDeprecation?console.trace(et):console.error(et),Xe=!0}return Ke.apply(this,arguments)}if(Ee(ae.process))return function(){return de.deprecate(Ke,et).apply(this,arguments)};if(ue.noDeprecation===!0)return Ke;var Xe=!1;return rt};var ht,Ge={};de.debuglog=function(Ke){if(Ee(ht)&&(ht=ue.env.NODE_DEBUG||""),Ke=Ke.toUpperCase(),!Ge[Ke])if(new RegExp("\\b"+Ke+"\\b","i").test(ht)){var et=ue.pid;Ge[Ke]=function(){var rt=de.format.apply(de,arguments);console.error("%s %d: %s",Ke,et,rt)}}else Ge[Ke]=function(){};return Ge[Ke]},de.inspect=se,se.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},se.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},de.isArray=ve,de.isBoolean=Se,de.isNull=ge,de.isNullOrUndefined=_e,de.isNumber=Ce,de.isString=he,de.isSymbol=be,de.isUndefined=Ee,de.isRegExp=Ae,de.isObject=De,de.isDate=je,de.isError=Fe,de.isFunction=Re,de.isPrimitive=qe,de.isBuffer=ie("./support/isBuffer");var Ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];de.log=function(){console.log("%s - %s",ze(),de.format.apply(de,arguments))},de.inherits=ie("inherits"),de._extend=function(Ke,et){if(!et||!De(et))return Ke;for(var rt=Object.keys(et),Xe=rt.length;Xe--;)Ke[rt[Xe]]=et[rt[Xe]];return Ke}}).call(this,ie("_process"),typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(ie,fe,de){"use strict";(function(){de.stripBOM=function(ue){return ue[0]==="\uFEFF"?ue.substring(1):ue}}).call(void 0)},{}],209:[function(ie,fe,de){"use strict";function ue(x){return x&&x.__esModule?x:{default:x}}var ae=ie("babel-runtime/helpers/typeof"),se=ue(ae),te=ie("babel-runtime/core-js/object/keys"),ne=ue(te);(function(){var x,b,ee,E,re,ce={}.hasOwnProperty;x=ie("xmlbuilder"),b=ie("./defaults").defaults,E=function(le){return typeof le=="string"&&(le.indexOf("&")>=0||le.indexOf(">")>=0||le.indexOf("<")>=0)},re=function(le){return"<![CDATA["+ee(le)+"]]>"},ee=function(le){return le.replace("]]>","]]]]><![CDATA[>")},de.Builder=function(){function le(ve){var Se,ge,_e;this.options={},ge=b[.2];for(Se in ge)ce.call(ge,Se)&&(_e=ge[Se],this.options[Se]=_e);for(Se in ve)ce.call(ve,Se)&&(_e=ve[Se],this.options[Se]=_e)}return le.prototype.buildObject=function(ve){var Se,ge,_e,Ce,he;return Se=this.options.attrkey,ge=this.options.charkey,(0,ne.default)(ve).length===1&&this.options.rootName===b[.2].rootName?(he=(0,ne.default)(ve)[0],ve=ve[he]):he=this.options.rootName,_e=function(be){return function(Ee,Ae){var De,je,Fe,Re,qe,Je;if((Ae===void 0?"undefined":(0,se.default)(Ae))!=="object")be.options.cdata&&E(Ae)?Ee.raw(re(Ae)):Ee.txt(Ae);else if(Array.isArray(Ae)){for(Re in Ae)if(ce.call(Ae,Re)){je=Ae[Re];for(qe in je)Fe=je[qe],Ee=_e(Ee.ele(qe),Fe).up()}}else for(qe in Ae)if(ce.call(Ae,qe))if(je=Ae[qe],qe===Se){if((je===void 0?"undefined":(0,se.default)(je))==="object")for(De in je)Je=je[De],Ee=Ee.att(De,Je)}else if(qe===ge)Ee=be.options.cdata&&E(je)?Ee.raw(re(je)):Ee.txt(je);else if(Array.isArray(je))for(Re in je)ce.call(je,Re)&&(Fe=je[Re],Ee=typeof Fe=="string"?be.options.cdata&&E(Fe)?Ee.ele(qe).raw(re(Fe)).up():Ee.ele(qe,Fe).up():_e(Ee.ele(qe),Fe).up());else(je===void 0?"undefined":(0,se.default)(je))==="object"?Ee=_e(Ee.ele(qe),je).up():typeof je=="string"&&be.options.cdata&&E(je)?Ee=Ee.ele(qe).raw(re(je)).up():(je==null&&(je=""),Ee=Ee.ele(qe,je.toString()).up());return Ee}}(this),Ce=x.create(he,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),_e(Ce,ve).end(this.options.renderOpts)},le}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(ie,fe,de){"use strict";(function(){de.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(ie,fe,de){"use strict";function ue(ee){return ee&&ee.__esModule?ee:{default:ee}}var ae=ie("babel-runtime/core-js/object/get-own-property-names"),se=ue(ae),te=ie("babel-runtime/core-js/object/keys"),ne=ue(te),x=ie("babel-runtime/helpers/typeof"),b=ue(x);(function(){var ee,E,re,ce,le,ve,Se,ge,_e=function(be,Ee){return function(){return be.apply(Ee,arguments)}},Ce=function(be,Ee){function Ae(){this.constructor=be}for(var De in Ee)he.call(Ee,De)&&(be[De]=Ee[De]);return Ae.prototype=Ee.prototype,be.prototype=new Ae,be.__super__=Ee.prototype,be},he={}.hasOwnProperty;Se=ie("sax"),re=ie("events"),ee=ie("./bom"),ve=ie("./processors"),ge=ie("timers").setImmediate,E=ie("./defaults").defaults,ce=function(be){return(be===void 0?"undefined":(0,b.default)(be))==="object"&&be!=null&&(0,ne.default)(be).length===0},le=function(be,Ee,Ae){var De,je,Fe;for(De=0,je=be.length;De<je;De++)Fe=be[De],Ee=Fe(Ee,Ae);return Ee},de.Parser=function(be){function Ee(Ae){this.parseString=_e(this.parseString,this),this.reset=_e(this.reset,this),this.assignOrPush=_e(this.assignOrPush,this),this.processAsync=_e(this.processAsync,this);var De,je,Fe;if(!(this instanceof de.Parser))return new de.Parser(Ae);this.options={},je=E[.2];for(De in je)he.call(je,De)&&(Fe=je[De],this.options[De]=Fe);for(De in Ae)he.call(Ae,De)&&(Fe=Ae[De],this.options[De]=Fe);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(ve.normalize)),this.reset()}return Ce(Ee,be),Ee.prototype.processAsync=function(){var Ae,De;try{return this.remaining.length<=this.options.chunkSize?(Ae=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(Ae),this.saxParser.close()):(Ae=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(Ae),ge(this.processAsync))}catch(je){if(De=je,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(De)}},Ee.prototype.assignOrPush=function(Ae,De,je){return De in Ae?(Ae[De]instanceof Array||(Ae[De]=[Ae[De]]),Ae[De].push(je)):this.options.explicitArray?Ae[De]=[je]:Ae[De]=je},Ee.prototype.reset=function(){var Ae,De,je,Fe;return this.removeAllListeners(),this.saxParser=Se.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Re){return function(qe){if(Re.saxParser.resume(),!Re.saxParser.errThrown)return Re.saxParser.errThrown=!0,Re.emit("error",qe)}}(this),this.saxParser.onend=function(Re){return function(){if(!Re.saxParser.ended)return Re.saxParser.ended=!0,Re.emit("end",Re.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Fe=[],Ae=this.options.attrkey,De=this.options.charkey,this.saxParser.onopentag=function(Re){return function(qe){var Je,He,ze,Qe,$e;if(ze={},ze[De]="",!Re.options.ignoreAttrs){$e=qe.attributes;for(Je in $e)he.call($e,Je)&&(Ae in ze||Re.options.mergeAttrs||(ze[Ae]={}),He=Re.options.attrValueProcessors?le(Re.options.attrValueProcessors,qe.attributes[Je],Je):qe.attributes[Je],Qe=Re.options.attrNameProcessors?le(Re.options.attrNameProcessors,Je):Je,Re.options.mergeAttrs?Re.assignOrPush(ze,Qe,He):ze[Ae][Qe]=He)}return ze["#name"]=Re.options.tagNameProcessors?le(Re.options.tagNameProcessors,qe.name):qe.name,Re.options.xmlns&&(ze[Re.options.xmlnskey]={uri:qe.uri,local:qe.local}),Fe.push(ze)}}(this),this.saxParser.onclosetag=function(Re){return function(){var qe,Je,He,ze,Qe,$e,ht,Ge,Ue,Ke;if($e=Fe.pop(),Qe=$e["#name"],Re.options.explicitChildren&&Re.options.preserveChildrenOrder||delete $e["#name"],$e.cdata===!0&&(qe=$e.cdata,delete $e.cdata),Ue=Fe[Fe.length-1],$e[De].match(/^\s*$/)&&!qe?(Je=$e[De],delete $e[De]):(Re.options.trim&&($e[De]=$e[De].trim()),Re.options.normalize&&($e[De]=$e[De].replace(/\s{2,}/g," ").trim()),$e[De]=Re.options.valueProcessors?le(Re.options.valueProcessors,$e[De],Qe):$e[De],(0,ne.default)($e).length===1&&De in $e&&!Re.EXPLICIT_CHARKEY&&($e=$e[De])),ce($e)&&($e=Re.options.emptyTag!==""?Re.options.emptyTag:Je),Re.options.validator!=null&&(Ke="/"+function(){var et,rt,Xe;for(Xe=[],et=0,rt=Fe.length;et<rt;et++)ze=Fe[et],Xe.push(ze["#name"]);return Xe}().concat(Qe).join("/"),function(){var et;try{$e=Re.options.validator(Ke,Ue&&Ue[Qe],$e)}catch(rt){return et=rt,Re.emit("error",et)}}()),Re.options.explicitChildren&&!Re.options.mergeAttrs&&($e===void 0?"undefined":(0,b.default)($e))==="object")if(Re.options.preserveChildrenOrder){if(Ue){Ue[Re.options.childkey]=Ue[Re.options.childkey]||[],ht={};for(He in $e)he.call($e,He)&&(ht[He]=$e[He]);Ue[Re.options.childkey].push(ht),delete $e["#name"],(0,ne.default)($e).length===1&&De in $e&&!Re.EXPLICIT_CHARKEY&&($e=$e[De])}}else ze={},Re.options.attrkey in $e&&(ze[Re.options.attrkey]=$e[Re.options.attrkey],delete $e[Re.options.attrkey]),!Re.options.charsAsChildren&&Re.options.charkey in $e&&(ze[Re.options.charkey]=$e[Re.options.charkey],delete $e[Re.options.charkey]),(0,se.default)($e).length>0&&(ze[Re.options.childkey]=$e),$e=ze;return Fe.length>0?Re.assignOrPush(Ue,Qe,$e):(Re.options.explicitRoot&&(Ge=$e,$e={},$e[Qe]=Ge),Re.resultObject=$e,Re.saxParser.ended=!0,Re.emit("end",Re.resultObject))}}(this),je=function(Re){return function(qe){var Je,He;if(He=Fe[Fe.length-1])return He[De]+=qe,Re.options.explicitChildren&&Re.options.preserveChildrenOrder&&Re.options.charsAsChildren&&(Re.options.includeWhiteChars||qe.replace(/\\n/g,"").trim()!=="")&&(He[Re.options.childkey]=He[Re.options.childkey]||[],Je={"#name":"__text__"},Je[De]=qe,Re.options.normalize&&(Je[De]=Je[De].replace(/\s{2,}/g," ").trim()),He[Re.options.childkey].push(Je)),He}}(this),this.saxParser.ontext=je,this.saxParser.oncdata=function(Re){return function(qe){var Je;if(Je=je(qe))return Je.cdata=!0}}()},Ee.prototype.parseString=function(Ae,De){var je;De!=null&&typeof De=="function"&&(this.on("end",function(Fe){return this.reset(),De(null,Fe)}),this.on("error",function(Fe){return this.reset(),De(Fe)}));try{return Ae=Ae.toString(),Ae.trim()===""?(this.emit("end",null),!0):(Ae=ee.stripBOM(Ae),this.options.async?(this.remaining=Ae,ge(this.processAsync),this.saxParser):this.saxParser.write(Ae).close())}catch(Fe){if(je=Fe,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",je),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw je}},Ee}(re.EventEmitter),de.parseString=function(be,Ee,Ae){var De,je,Fe;return Ae!=null?(typeof Ae=="function"&&(De=Ae),(Ee===void 0?"undefined":(0,b.default)(Ee))==="object"&&(je=Ee)):(typeof Ee=="function"&&(De=Ee),je={}),Fe=new de.Parser(je),Fe.parseString(be,De)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(ie,fe,de){"use strict";(function(){var ue;ue=new RegExp(/(?!xmlns)^.*:/),de.normalize=function(ae){return ae.toLowerCase()},de.firstCharLowerCase=function(ae){return ae.charAt(0).toLowerCase()+ae.slice(1)},de.stripPrefix=function(ae){return ae.replace(ue,"")},de.parseNumbers=function(ae){return isNaN(ae)||(ae=ae%1==0?parseInt(ae,10):parseFloat(ae)),ae},de.parseBooleans=function(ae){return/^(?:true|false)$/i.test(ae)&&(ae=ae.toLowerCase()==="true"),ae}}).call(void 0)},{}],213:[function(ie,fe,de){"use strict";(function(){var ue,ae,se,te,ne=function(b,ee){function E(){this.constructor=b}for(var re in ee)x.call(ee,re)&&(b[re]=ee[re]);return E.prototype=ee.prototype,b.prototype=new E,b.__super__=ee.prototype,b},x={}.hasOwnProperty;ae=ie("./defaults"),ue=ie("./builder"),se=ie("./parser"),te=ie("./processors"),de.defaults=ae.defaults,de.processors=te,de.ValidationError=function(b){function ee(E){this.message=E}return ne(ee,b),ee}(Error),de.Builder=ue.Builder,de.Parser=se.Parser,de.parseString=se.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(ie,fe,de){"use strict";function ue(ee){return ee&&ee.__esModule?ee:{default:ee}}var ae=ie("babel-runtime/core-js/object/get-prototype-of"),se=ue(ae),te=ie("babel-runtime/helpers/typeof"),ne=ue(te),x=ie("babel-runtime/core-js/object/assign"),b=ue(x);(function(){var ee,E,re,ce,le,ve,Se=[].slice,ge={}.hasOwnProperty;ee=function(){var _e,Ce,he,be,Ee,Ae;if(Ae=arguments[0],Ee=2<=arguments.length?Se.call(arguments,1):[],ce(b.default))b.default.apply(null,arguments);else for(_e=0,he=Ee.length;_e<he;_e++)if((be=Ee[_e])!=null)for(Ce in be)ge.call(be,Ce)&&(Ae[Ce]=be[Ce]);return Ae},ce=function(_e){return!!_e&&Object.prototype.toString.call(_e)==="[object Function]"},le=function(_e){var Ce;return!!_e&&((Ce=_e===void 0?"undefined":(0,ne.default)(_e))==="function"||Ce==="object")},E=function(_e){return ce(Array.isArray)?Array.isArray(_e):Object.prototype.toString.call(_e)==="[object Array]"},re=function(_e){var Ce;if(E(_e))return!_e.length;for(Ce in _e)if(ge.call(_e,Ce))return!1;return!0},ve=function(_e){var Ce,he;return le(_e)&&(he=(0,se.default)(_e))&&(Ce=he.constructor)&&typeof Ce=="function"&&Ce instanceof Ce&&Function.prototype.toString.call(Ce)===Function.prototype.toString.call(Object)},fe.exports.assign=ee,fe.exports.isFunction=ce,fe.exports.isObject=le,fe.exports.isArray=E,fe.exports.isEmpty=re,fe.exports.isPlainObject=ve}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/core-js/object/create"),ae=function(se){return se&&se.__esModule?se:{default:se}}(ue);(function(){fe.exports=function(){function se(te,ne,x){if(this.options=te.options,this.stringify=te.stringify,ne==null)throw new Error("Missing attribute name of element "+te.name);if(x==null)throw new Error("Missing attribute value for attribute "+ne+" of element "+te.name);this.name=this.stringify.attName(ne),this.value=this.stringify.attValue(x)}return se.prototype.clone=function(){return(0,ae.default)(this)},se.prototype.toString=function(te){return this.options.writer.set(te).attribute(this)},se}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/core-js/object/create"),ae=function(se){return se&&se.__esModule?se:{default:se}}(ue);(function(){var se,te=function(x,b){function ee(){this.constructor=x}for(var E in b)ne.call(b,E)&&(x[E]=b[E]);return ee.prototype=b.prototype,x.prototype=new ee,x.__super__=b.prototype,x},ne={}.hasOwnProperty;se=ie("./XMLNode"),fe.exports=function(x){function b(ee,E){if(b.__super__.constructor.call(this,ee),E==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(E)}return te(b,x),b.prototype.clone=function(){return(0,ae.default)(this)},b.prototype.toString=function(ee){return this.options.writer.set(ee).cdata(this)},b}(se)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/core-js/object/create"),ae=function(se){return se&&se.__esModule?se:{default:se}}(ue);(function(){var se,te=function(x,b){function ee(){this.constructor=x}for(var E in b)ne.call(b,E)&&(x[E]=b[E]);return ee.prototype=b.prototype,x.prototype=new ee,x.__super__=b.prototype,x},ne={}.hasOwnProperty;se=ie("./XMLNode"),fe.exports=function(x){function b(ee,E){if(b.__super__.constructor.call(this,ee),E==null)throw new Error("Missing comment text");this.text=this.stringify.comment(E)}return te(b,x),b.prototype.clone=function(){return(0,ae.default)(this)},b.prototype.toString=function(ee){return this.options.writer.set(ee).comment(this)},b}(se)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(ie,fe,de){"use strict";(function(){var ue,ae=function(te,ne){function x(){this.constructor=te}for(var b in ne)se.call(ne,b)&&(te[b]=ne[b]);return x.prototype=ne.prototype,te.prototype=new x,te.__super__=ne.prototype,te},se={}.hasOwnProperty;ue=ie("./XMLNode"),fe.exports=function(te){function ne(x,b,ee,E,re,ce){if(ne.__super__.constructor.call(this,x),b==null)throw new Error("Missing DTD element name");if(ee==null)throw new Error("Missing DTD attribute name");if(!E)throw new Error("Missing DTD attribute type");if(!re)throw new Error("Missing DTD attribute default");if(re.indexOf("#")!==0&&(re="#"+re),!re.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(ce&&!re.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(b),this.attributeName=this.stringify.attName(ee),this.attributeType=this.stringify.dtdAttType(E),this.defaultValue=this.stringify.dtdAttDefault(ce),this.defaultValueType=re}return ae(ne,te),ne.prototype.toString=function(x){return this.options.writer.set(x).dtdAttList(this)},ne}(ue)}).call(void 0)},{"./XMLNode":227}],219:[function(ie,fe,de){"use strict";(function(){var ue,ae=function(te,ne){function x(){this.constructor=te}for(var b in ne)se.call(ne,b)&&(te[b]=ne[b]);return x.prototype=ne.prototype,te.prototype=new x,te.__super__=ne.prototype,te},se={}.hasOwnProperty;ue=ie("./XMLNode"),fe.exports=function(te){function ne(x,b,ee){if(ne.__super__.constructor.call(this,x),b==null)throw new Error("Missing DTD element name");ee||(ee="(#PCDATA)"),Array.isArray(ee)&&(ee="("+ee.join(",")+")"),this.name=this.stringify.eleName(b),this.value=this.stringify.dtdElementValue(ee)}return ae(ne,te),ne.prototype.toString=function(x){return this.options.writer.set(x).dtdElement(this)},ne}(ue)}).call(void 0)},{"./XMLNode":227}],220:[function(ie,fe,de){"use strict";(function(){var ue,ae,se=function(ne,x){function b(){this.constructor=ne}for(var ee in x)te.call(x,ee)&&(ne[ee]=x[ee]);return b.prototype=x.prototype,ne.prototype=new b,ne.__super__=x.prototype,ne},te={}.hasOwnProperty;ae=ie("./Utility").isObject,ue=ie("./XMLNode"),fe.exports=function(ne){function x(b,ee,E,re){if(x.__super__.constructor.call(this,b),E==null)throw new Error("Missing entity name");if(re==null)throw new Error("Missing entity value");if(this.pe=!!ee,this.name=this.stringify.eleName(E),ae(re)){if(!re.pubID&&!re.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(re.pubID&&!re.sysID)throw new Error("System identifier is required for a public external entity");if(re.pubID!=null&&(this.pubID=this.stringify.dtdPubID(re.pubID)),re.sysID!=null&&(this.sysID=this.stringify.dtdSysID(re.sysID)),re.nData!=null&&(this.nData=this.stringify.dtdNData(re.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(re)}return se(x,ne),x.prototype.toString=function(b){return this.options.writer.set(b).dtdEntity(this)},x}(ue)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(ie,fe,de){"use strict";(function(){var ue,ae=function(te,ne){function x(){this.constructor=te}for(var b in ne)se.call(ne,b)&&(te[b]=ne[b]);return x.prototype=ne.prototype,te.prototype=new x,te.__super__=ne.prototype,te},se={}.hasOwnProperty;ue=ie("./XMLNode"),fe.exports=function(te){function ne(x,b,ee){if(ne.__super__.constructor.call(this,x),b==null)throw new Error("Missing notation name");if(!ee.pubID&&!ee.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(b),ee.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ee.pubID)),ee.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ee.sysID))}return ae(ne,te),ne.prototype.toString=function(x){return this.options.writer.set(x).dtdNotation(this)},ne}(ue)}).call(void 0)},{"./XMLNode":227}],222:[function(ie,fe,de){"use strict";(function(){var ue,ae,se=function(ne,x){function b(){this.constructor=ne}for(var ee in x)te.call(x,ee)&&(ne[ee]=x[ee]);return b.prototype=x.prototype,ne.prototype=new b,ne.__super__=x.prototype,ne},te={}.hasOwnProperty;ae=ie("./Utility").isObject,ue=ie("./XMLNode"),fe.exports=function(ne){function x(b,ee,E,re){var ce;x.__super__.constructor.call(this,b),ae(ee)&&(ce=ee,ee=ce.version,E=ce.encoding,re=ce.standalone),ee||(ee="1.0"),this.version=this.stringify.xmlVersion(ee),E!=null&&(this.encoding=this.stringify.xmlEncoding(E)),re!=null&&(this.standalone=this.stringify.xmlStandalone(re))}return se(x,ne),x.prototype.toString=function(b){return this.options.writer.set(b).declaration(this)},x}(ue)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(ie,fe,de){"use strict";(function(){var ue,ae,se,te,ne,x,b=function(E,re){function ce(){this.constructor=E}for(var le in re)ee.call(re,le)&&(E[le]=re[le]);return ce.prototype=re.prototype,E.prototype=new ce,E.__super__=re.prototype,E},ee={}.hasOwnProperty;x=ie("./Utility").isObject,ne=ie("./XMLNode"),ue=ie("./XMLDTDAttList"),se=ie("./XMLDTDEntity"),ae=ie("./XMLDTDElement"),te=ie("./XMLDTDNotation"),fe.exports=function(E){function re(ce,le,ve){var Se,ge;re.__super__.constructor.call(this,ce),this.documentObject=ce,x(le)&&(Se=le,le=Se.pubID,ve=Se.sysID),ve==null&&(ge=[le,ve],ve=ge[0],le=ge[1]),le!=null&&(this.pubID=this.stringify.dtdPubID(le)),ve!=null&&(this.sysID=this.stringify.dtdSysID(ve))}return b(re,E),re.prototype.element=function(ce,le){var ve;return ve=new ae(this,ce,le),this.children.push(ve),this},re.prototype.attList=function(ce,le,ve,Se,ge){var _e;return _e=new ue(this,ce,le,ve,Se,ge),this.children.push(_e),this},re.prototype.entity=function(ce,le){var ve;return ve=new se(this,!1,ce,le),this.children.push(ve),this},re.prototype.pEntity=function(ce,le){var ve;return ve=new se(this,!0,ce,le),this.children.push(ve),this},re.prototype.notation=function(ce,le){var ve;return ve=new te(this,ce,le),this.children.push(ve),this},re.prototype.toString=function(ce){return this.options.writer.set(ce).docType(this)},re.prototype.ele=function(ce,le){return this.element(ce,le)},re.prototype.att=function(ce,le,ve,Se,ge){return this.attList(ce,le,ve,Se,ge)},re.prototype.ent=function(ce,le){return this.entity(ce,le)},re.prototype.pent=function(ce,le){return this.pEntity(ce,le)},re.prototype.not=function(ce,le){return this.notation(ce,le)},re.prototype.up=function(){return this.root()||this.documentObject},re}(ne)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(ie,fe,de){"use strict";(function(){var ue,ae,se,te,ne=function(b,ee){function E(){this.constructor=b}for(var re in ee)x.call(ee,re)&&(b[re]=ee[re]);return E.prototype=ee.prototype,b.prototype=new E,b.__super__=ee.prototype,b},x={}.hasOwnProperty;te=ie("./Utility").isPlainObject,ue=ie("./XMLNode"),se=ie("./XMLStringifier"),ae=ie("./XMLStringWriter"),fe.exports=function(b){function ee(E){ee.__super__.constructor.call(this,null),E||(E={}),E.writer||(E.writer=new ae),this.options=E,this.stringify=new se(E),this.isDocument=!0}return ne(ee,b),ee.prototype.end=function(E){var re;return E?te(E)&&(re=E,E=this.options.writer.set(re)):E=this.options.writer,E.document(this)},ee.prototype.toString=function(E){return this.options.writer.set(E).document(this)},ee}(ue)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(ie,fe,de){"use strict";(function(){var ue,ae,se,te,ne,x,b,ee,E,re,ce,le,ve,Se,ge,_e,Ce,he,be,Ee={}.hasOwnProperty;be=ie("./Utility"),Ce=be.isObject,_e=be.isFunction,he=be.isPlainObject,re=ie("./XMLElement"),ae=ie("./XMLCData"),se=ie("./XMLComment"),le=ie("./XMLRaw"),ge=ie("./XMLText"),ce=ie("./XMLProcessingInstruction"),ee=ie("./XMLDeclaration"),E=ie("./XMLDocType"),te=ie("./XMLDTDAttList"),x=ie("./XMLDTDEntity"),ne=ie("./XMLDTDElement"),b=ie("./XMLDTDNotation"),ue=ie("./XMLAttribute"),Se=ie("./XMLStringifier"),ve=ie("./XMLStringWriter"),fe.exports=function(){function Ae(De,je,Fe){var Re;De||(De={}),De.writer?he(De.writer)&&(Re=De.writer,De.writer=new ve(Re)):De.writer=new ve(De),this.options=De,this.writer=De.writer,this.stringify=new Se(De),this.onDataCallback=je||function(){},this.onEndCallback=Fe||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ae.prototype.node=function(De,je,Fe){var Re;if(De==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),De=De.valueOf(),je==null&&(je={}),je=je.valueOf(),Ce(je)||(Re=[je,Fe],Fe=Re[0],je=Re[1]),this.currentNode=new re(this,De,je),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Fe!=null&&this.text(Fe),this},Ae.prototype.element=function(De,je,Fe){return this.currentNode&&this.currentNode instanceof E?this.dtdElement.apply(this,arguments):this.node(De,je,Fe)},Ae.prototype.attribute=function(De,je){var Fe,Re;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(De!=null&&(De=De.valueOf()),Ce(De))for(Fe in De)Ee.call(De,Fe)&&(Re=De[Fe],this.attribute(Fe,Re));else _e(je)&&(je=je.apply()),this.options.skipNullAttributes&&je==null||(this.currentNode.attributes[De]=new ue(this,De,je));return this},Ae.prototype.text=function(De){var je;return this.openCurrent(),je=new ge(this,De),this.onData(this.writer.text(je,this.currentLevel+1)),this},Ae.prototype.cdata=function(De){var je;return this.openCurrent(),je=new ae(this,De),this.onData(this.writer.cdata(je,this.currentLevel+1)),this},Ae.prototype.comment=function(De){var je;return this.openCurrent(),je=new se(this,De),this.onData(this.writer.comment(je,this.currentLevel+1)),this},Ae.prototype.raw=function(De){var je;return this.openCurrent(),je=new le(this,De),this.onData(this.writer.raw(je,this.currentLevel+1)),this},Ae.prototype.instruction=function(De,je){var Fe,Re,qe,Je,He;if(this.openCurrent(),De!=null&&(De=De.valueOf()),je!=null&&(je=je.valueOf()),Array.isArray(De))for(Fe=0,Je=De.length;Fe<Je;Fe++)Re=De[Fe],this.instruction(Re);else if(Ce(De))for(Re in De)Ee.call(De,Re)&&(qe=De[Re],this.instruction(Re,qe));else _e(je)&&(je=je.apply()),He=new ce(this,De,je),this.onData(this.writer.processingInstruction(He,this.currentLevel+1));return this},Ae.prototype.declaration=function(De,je,Fe){var Re;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return Re=new ee(this,De,je,Fe),this.onData(this.writer.declaration(Re,this.currentLevel+1)),this},Ae.prototype.doctype=function(De,je,Fe){if(this.openCurrent(),De==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new E(this,je,Fe),this.currentNode.rootNodeName=De,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ae.prototype.dtdElement=function(De,je){var Fe;return this.openCurrent(),Fe=new ne(this,De,je),this.onData(this.writer.dtdElement(Fe,this.currentLevel+1)),this},Ae.prototype.attList=function(De,je,Fe,Re,qe){var Je;return this.openCurrent(),Je=new te(this,De,je,Fe,Re,qe),this.onData(this.writer.dtdAttList(Je,this.currentLevel+1)),this},Ae.prototype.entity=function(De,je){var Fe;return this.openCurrent(),Fe=new x(this,!1,De,je),this.onData(this.writer.dtdEntity(Fe,this.currentLevel+1)),this},Ae.prototype.pEntity=function(De,je){var Fe;return this.openCurrent(),Fe=new x(this,!0,De,je),this.onData(this.writer.dtdEntity(Fe,this.currentLevel+1)),this},Ae.prototype.notation=function(De,je){var Fe;return this.openCurrent(),Fe=new b(this,De,je),this.onData(this.writer.dtdNotation(Fe,this.currentLevel+1)),this},Ae.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ae.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ae.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ae.prototype.openNode=function(De){if(!De.isOpen)return!this.root&&this.currentLevel===0&&De instanceof re&&(this.root=De),this.onData(this.writer.openNode(De,this.currentLevel)),De.isOpen=!0},Ae.prototype.closeNode=function(De){if(!De.isClosed)return this.onData(this.writer.closeNode(De,this.currentLevel)),De.isClosed=!0},Ae.prototype.onData=function(De){return this.documentStarted=!0,this.onDataCallback(De)},Ae.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ae.prototype.ele=function(){return this.element.apply(this,arguments)},Ae.prototype.nod=function(De,je,Fe){return this.node(De,je,Fe)},Ae.prototype.txt=function(De){return this.text(De)},Ae.prototype.dat=function(De){return this.cdata(De)},Ae.prototype.com=function(De){return this.comment(De)},Ae.prototype.ins=function(De,je){return this.instruction(De,je)},Ae.prototype.dec=function(De,je,Fe){return this.declaration(De,je,Fe)},Ae.prototype.dtd=function(De,je,Fe){return this.doctype(De,je,Fe)},Ae.prototype.e=function(De,je,Fe){return this.element(De,je,Fe)},Ae.prototype.n=function(De,je,Fe){return this.node(De,je,Fe)},Ae.prototype.t=function(De){return this.text(De)},Ae.prototype.d=function(De){return this.cdata(De)},Ae.prototype.c=function(De){return this.comment(De)},Ae.prototype.r=function(De){return this.raw(De)},Ae.prototype.i=function(De,je){return this.instruction(De,je)},Ae.prototype.att=function(){return this.currentNode&&this.currentNode instanceof E?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.a=function(){return this.currentNode&&this.currentNode instanceof E?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ae.prototype.ent=function(De,je){return this.entity(De,je)},Ae.prototype.pent=function(De,je){return this.pEntity(De,je)},Ae.prototype.not=function(De,je){return this.notation(De,je)},Ae}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/core-js/object/create"),ae=function(se){return se&&se.__esModule?se:{default:se}}(ue);(function(){var se,te,ne,x,b,ee=function(re,ce){function le(){this.constructor=re}for(var ve in ce)E.call(ce,ve)&&(re[ve]=ce[ve]);return le.prototype=ce.prototype,re.prototype=new le,re.__super__=ce.prototype,re},E={}.hasOwnProperty;b=ie("./Utility"),x=b.isObject,ne=b.isFunction,te=ie("./XMLNode"),se=ie("./XMLAttribute"),fe.exports=function(re){function ce(le,ve,Se){if(ce.__super__.constructor.call(this,le),ve==null)throw new Error("Missing element name");this.name=this.stringify.eleName(ve),this.attributes={},Se!=null&&this.attribute(Se),le.isDocument&&(this.isRoot=!0,this.documentObject=le,le.rootObject=this)}return ee(ce,re),ce.prototype.clone=function(){var le,ve,Se,ge;Se=(0,ae.default)(this),Se.isRoot&&(Se.documentObject=null),Se.attributes={},ge=this.attributes;for(ve in ge)E.call(ge,ve)&&(le=ge[ve],Se.attributes[ve]=le.clone());return Se.children=[],this.children.forEach(function(_e){var Ce;return Ce=_e.clone(),Ce.parent=Se,Se.children.push(Ce)}),Se},ce.prototype.attribute=function(le,ve){var Se,ge;if(le!=null&&(le=le.valueOf()),x(le))for(Se in le)E.call(le,Se)&&(ge=le[Se],this.attribute(Se,ge));else ne(ve)&&(ve=ve.apply()),this.options.skipNullAttributes&&ve==null||(this.attributes[le]=new se(this,le,ve));return this},ce.prototype.removeAttribute=function(le){var ve,Se,ge;if(le==null)throw new Error("Missing attribute name");if(le=le.valueOf(),Array.isArray(le))for(Se=0,ge=le.length;Se<ge;Se++)ve=le[Se],delete this.attributes[ve];else delete this.attributes[le];return this},ce.prototype.toString=function(le){return this.options.writer.set(le).element(this)},ce.prototype.att=function(le,ve){return this.attribute(le,ve)},ce.prototype.a=function(le,ve){return this.attribute(le,ve)},ce}(te)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(ie,fe,de){"use strict";(function(){var ue,ae,se,te,ne,x,b,ee,E,re,ce,le,ve={}.hasOwnProperty;le=ie("./Utility"),ce=le.isObject,re=le.isFunction,E=le.isEmpty,ne=null,ue=null,ae=null,se=null,te=null,b=null,ee=null,x=null,fe.exports=function(){function Se(ge){this.parent=ge,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],ne||(ne=ie("./XMLElement"),ue=ie("./XMLCData"),ae=ie("./XMLComment"),se=ie("./XMLDeclaration"),te=ie("./XMLDocType"),b=ie("./XMLRaw"),ee=ie("./XMLText"),x=ie("./XMLProcessingInstruction"))}return Se.prototype.element=function(ge,_e,Ce){var he,be,Ee,Ae,De,je,Fe,Re,qe,Je;if(je=null,_e==null&&(_e={}),_e=_e.valueOf(),ce(_e)||(qe=[_e,Ce],Ce=qe[0],_e=qe[1]),ge!=null&&(ge=ge.valueOf()),Array.isArray(ge))for(Ee=0,Fe=ge.length;Ee<Fe;Ee++)be=ge[Ee],je=this.element(be);else if(re(ge))je=this.element(ge.apply());else if(ce(ge)){for(De in ge)if(ve.call(ge,De))if(Je=ge[De],re(Je)&&(Je=Je.apply()),ce(Je)&&E(Je)&&(Je=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&De.indexOf(this.stringify.convertAttKey)===0)je=this.attribute(De.substr(this.stringify.convertAttKey.length),Je);else if(!this.options.separateArrayItems&&Array.isArray(Je))for(Ae=0,Re=Je.length;Ae<Re;Ae++)be=Je[Ae],he={},he[De]=be,je=this.element(he);else ce(Je)?(je=this.element(De),je.element(Je)):je=this.element(De,Je)}else je=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ge.indexOf(this.stringify.convertTextKey)===0?this.text(Ce):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&ge.indexOf(this.stringify.convertCDataKey)===0?this.cdata(Ce):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&ge.indexOf(this.stringify.convertCommentKey)===0?this.comment(Ce):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&ge.indexOf(this.stringify.convertRawKey)===0?this.raw(Ce):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&ge.indexOf(this.stringify.convertPIKey)===0?this.instruction(ge.substr(this.stringify.convertPIKey.length),Ce):this.node(ge,_e,Ce);if(je==null)throw new Error("Could not create any elements with: "+ge);return je},Se.prototype.insertBefore=function(ge,_e,Ce){var he,be,Ee;if(this.isRoot)throw new Error("Cannot insert elements at root level");return be=this.parent.children.indexOf(this),Ee=this.parent.children.splice(be),he=this.parent.element(ge,_e,Ce),Array.prototype.push.apply(this.parent.children,Ee),he},Se.prototype.insertAfter=function(ge,_e,Ce){var he,be,Ee;if(this.isRoot)throw new Error("Cannot insert elements at root level");return be=this.parent.children.indexOf(this),Ee=this.parent.children.splice(be+1),he=this.parent.element(ge,_e,Ce),Array.prototype.push.apply(this.parent.children,Ee),he},Se.prototype.remove=function(){var ge;if(this.isRoot)throw new Error("Cannot remove the root element");return ge=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[ge,ge-ge+1].concat([])),this.parent},Se.prototype.node=function(ge,_e,Ce){var he,be;return ge!=null&&(ge=ge.valueOf()),_e||(_e={}),_e=_e.valueOf(),ce(_e)||(be=[_e,Ce],Ce=be[0],_e=be[1]),he=new ne(this,ge,_e),Ce!=null&&he.text(Ce),this.children.push(he),he},Se.prototype.text=function(ge){var _e;return _e=new ee(this,ge),this.children.push(_e),this},Se.prototype.cdata=function(ge){var _e;return _e=new ue(this,ge),this.children.push(_e),this},Se.prototype.comment=function(ge){var _e;return _e=new ae(this,ge),this.children.push(_e),this},Se.prototype.commentBefore=function(ge){var _e,Ce;return _e=this.parent.children.indexOf(this),Ce=this.parent.children.splice(_e),this.parent.comment(ge),Array.prototype.push.apply(this.parent.children,Ce),this},Se.prototype.commentAfter=function(ge){var _e,Ce;return _e=this.parent.children.indexOf(this),Ce=this.parent.children.splice(_e+1),this.parent.comment(ge),Array.prototype.push.apply(this.parent.children,Ce),this},Se.prototype.raw=function(ge){var _e;return _e=new b(this,ge),this.children.push(_e),this},Se.prototype.instruction=function(ge,_e){var Ce,he,be,Ee,Ae;if(ge!=null&&(ge=ge.valueOf()),_e!=null&&(_e=_e.valueOf()),Array.isArray(ge))for(Ee=0,Ae=ge.length;Ee<Ae;Ee++)Ce=ge[Ee],this.instruction(Ce);else if(ce(ge))for(Ce in ge)ve.call(ge,Ce)&&(he=ge[Ce],this.instruction(Ce,he));else re(_e)&&(_e=_e.apply()),be=new x(this,ge,_e),this.children.push(be);return this},Se.prototype.instructionBefore=function(ge,_e){var Ce,he;return Ce=this.parent.children.indexOf(this),he=this.parent.children.splice(Ce),this.parent.instruction(ge,_e),Array.prototype.push.apply(this.parent.children,he),this},Se.prototype.instructionAfter=function(ge,_e){var Ce,he;return Ce=this.parent.children.indexOf(this),he=this.parent.children.splice(Ce+1),this.parent.instruction(ge,_e),Array.prototype.push.apply(this.parent.children,he),this},Se.prototype.declaration=function(ge,_e,Ce){var he,be;return he=this.document(),be=new se(he,ge,_e,Ce),he.children[0]instanceof se?he.children[0]=be:he.children.unshift(be),he.root()||he},Se.prototype.doctype=function(ge,_e){var Ce,he,be,Ee,Ae,De,je,Fe,Re,qe;for(he=this.document(),be=new te(he,ge,_e),Re=he.children,Ee=Ae=0,je=Re.length;Ae<je;Ee=++Ae)if((Ce=Re[Ee])instanceof te)return he.children[Ee]=be,be;for(qe=he.children,Ee=De=0,Fe=qe.length;De<Fe;Ee=++De)if(Ce=qe[Ee],Ce.isRoot)return he.children.splice(Ee,0,be),be;return he.children.push(be),be},Se.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},Se.prototype.root=function(){var ge;for(ge=this;ge;){if(ge.isDocument)return ge.rootObject;if(ge.isRoot)return ge;ge=ge.parent}},Se.prototype.document=function(){var ge;for(ge=this;ge;){if(ge.isDocument)return ge;ge=ge.parent}},Se.prototype.end=function(ge){return this.document().end(ge)},Se.prototype.prev=function(){var ge;if((ge=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[ge-1]},Se.prototype.next=function(){var ge;if((ge=this.parent.children.indexOf(this))===-1||ge===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[ge+1]},Se.prototype.importDocument=function(ge){var _e;return _e=ge.root().clone(),_e.parent=this,_e.isRoot=!1,this.children.push(_e),this},Se.prototype.ele=function(ge,_e,Ce){return this.element(ge,_e,Ce)},Se.prototype.nod=function(ge,_e,Ce){return this.node(ge,_e,Ce)},Se.prototype.txt=function(ge){return this.text(ge)},Se.prototype.dat=function(ge){return this.cdata(ge)},Se.prototype.com=function(ge){return this.comment(ge)},Se.prototype.ins=function(ge,_e){return this.instruction(ge,_e)},Se.prototype.doc=function(){return this.document()},Se.prototype.dec=function(ge,_e,Ce){return this.declaration(ge,_e,Ce)},Se.prototype.dtd=function(ge,_e){return this.doctype(ge,_e)},Se.prototype.e=function(ge,_e,Ce){return this.element(ge,_e,Ce)},Se.prototype.n=function(ge,_e,Ce){return this.node(ge,_e,Ce)},Se.prototype.t=function(ge){return this.text(ge)},Se.prototype.d=function(ge){return this.cdata(ge)},Se.prototype.c=function(ge){return this.comment(ge)},Se.prototype.r=function(ge){return this.raw(ge)},Se.prototype.i=function(ge,_e){return this.instruction(ge,_e)},Se.prototype.u=function(){return this.up()},Se.prototype.importXMLBuilder=function(ge){return this.importDocument(ge)},Se}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/core-js/object/create"),ae=function(se){return se&&se.__esModule?se:{default:se}}(ue);(function(){var se,te=function(x,b){function ee(){this.constructor=x}for(var E in b)ne.call(b,E)&&(x[E]=b[E]);return ee.prototype=b.prototype,x.prototype=new ee,x.__super__=b.prototype,x},ne={}.hasOwnProperty;se=ie("./XMLNode"),fe.exports=function(x){function b(ee,E,re){if(b.__super__.constructor.call(this,ee),E==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(E),re&&(this.value=this.stringify.insValue(re))}return te(b,x),b.prototype.clone=function(){return(0,ae.default)(this)},b.prototype.toString=function(ee){return this.options.writer.set(ee).processingInstruction(this)},b}(se)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/core-js/object/create"),ae=function(se){return se&&se.__esModule?se:{default:se}}(ue);(function(){var se,te=function(x,b){function ee(){this.constructor=x}for(var E in b)ne.call(b,E)&&(x[E]=b[E]);return ee.prototype=b.prototype,x.prototype=new ee,x.__super__=b.prototype,x},ne={}.hasOwnProperty;se=ie("./XMLNode"),fe.exports=function(x){function b(ee,E){if(b.__super__.constructor.call(this,ee),E==null)throw new Error("Missing raw text");this.value=this.stringify.raw(E)}return te(b,x),b.prototype.clone=function(){return(0,ae.default)(this)},b.prototype.toString=function(ee){return this.options.writer.set(ee).raw(this)},b}(se)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(ie,fe,de){"use strict";(function(){var ue,ae,se,te,ne,x,b,ee,E,re,ce,le,ve,Se=function(_e,Ce){function he(){this.constructor=_e}for(var be in Ce)ge.call(Ce,be)&&(_e[be]=Ce[be]);return he.prototype=Ce.prototype,_e.prototype=new he,_e.__super__=Ce.prototype,_e},ge={}.hasOwnProperty;b=ie("./XMLDeclaration"),ee=ie("./XMLDocType"),ue=ie("./XMLCData"),ae=ie("./XMLComment"),E=ie("./XMLElement"),ce=ie("./XMLRaw"),le=ie("./XMLText"),re=ie("./XMLProcessingInstruction"),se=ie("./XMLDTDAttList"),te=ie("./XMLDTDElement"),ne=ie("./XMLDTDEntity"),x=ie("./XMLDTDNotation"),ve=ie("./XMLWriterBase"),fe.exports=function(_e){function Ce(he,be){Ce.__super__.constructor.call(this,be),this.stream=he}return Se(Ce,_e),Ce.prototype.document=function(he){var be,Ee,Ae,De,je,Fe,Re,qe;for(Fe=he.children,Ee=0,De=Fe.length;Ee<De;Ee++)be=Fe[Ee],be.isLastRootNode=!1;for(he.children[he.children.length-1].isLastRootNode=!0,Re=he.children,qe=[],Ae=0,je=Re.length;Ae<je;Ae++)switch(be=Re[Ae],!1){case!(be instanceof b):qe.push(this.declaration(be));break;case!(be instanceof ee):qe.push(this.docType(be));break;case!(be instanceof ae):qe.push(this.comment(be));break;case!(be instanceof re):qe.push(this.processingInstruction(be));break;default:qe.push(this.element(be))}return qe},Ce.prototype.attribute=function(he){return this.stream.write(" "+he.name+'="'+he.value+'"')},Ce.prototype.cdata=function(he,be){return this.stream.write(this.space(be)+"<![CDATA["+he.text+"]]>"+this.endline(he))},Ce.prototype.comment=function(he,be){return this.stream.write(this.space(be)+"<!-- "+he.text+" -->"+this.endline(he))},Ce.prototype.declaration=function(he,be){return this.stream.write(this.space(be)),this.stream.write('<?xml version="'+he.version+'"'),he.encoding!=null&&this.stream.write(' encoding="'+he.encoding+'"'),he.standalone!=null&&this.stream.write(' standalone="'+he.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(he))},Ce.prototype.docType=function(he,be){var Ee,Ae,De,je;if(be||(be=0),this.stream.write(this.space(be)),this.stream.write("<!DOCTYPE "+he.root().name),he.pubID&&he.sysID?this.stream.write(' PUBLIC "'+he.pubID+'" "'+he.sysID+'"'):he.sysID&&this.stream.write(' SYSTEM "'+he.sysID+'"'),he.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(he)),je=he.children,Ae=0,De=je.length;Ae<De;Ae++)switch(Ee=je[Ae],!1){case!(Ee instanceof se):this.dtdAttList(Ee,be+1);break;case!(Ee instanceof te):this.dtdElement(Ee,be+1);break;case!(Ee instanceof ne):this.dtdEntity(Ee,be+1);break;case!(Ee instanceof x):this.dtdNotation(Ee,be+1);break;case!(Ee instanceof ue):this.cdata(Ee,be+1);break;case!(Ee instanceof ae):this.comment(Ee,be+1);break;case!(Ee instanceof re):this.processingInstruction(Ee,be+1);break;default:throw new Error("Unknown DTD node type: "+Ee.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(he))},Ce.prototype.element=function(he,be){var Ee,Ae,De,je,Fe,Re,qe,Je;be||(be=0),Je=this.space(be),this.stream.write(Je+"<"+he.name),Re=he.attributes;for(Fe in Re)ge.call(Re,Fe)&&(Ee=Re[Fe],this.attribute(Ee));if(he.children.length===0||he.children.every(function(He){return He.value===""}))this.allowEmpty?this.stream.write("></"+he.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&he.children.length===1&&he.children[0].value!=null)this.stream.write(">"),this.stream.write(he.children[0].value),this.stream.write("</"+he.name+">");else{for(this.stream.write(">"+this.newline),qe=he.children,De=0,je=qe.length;De<je;De++)switch(Ae=qe[De],!1){case!(Ae instanceof ue):this.cdata(Ae,be+1);break;case!(Ae instanceof ae):this.comment(Ae,be+1);break;case!(Ae instanceof E):this.element(Ae,be+1);break;case!(Ae instanceof ce):this.raw(Ae,be+1);break;case!(Ae instanceof le):this.text(Ae,be+1);break;case!(Ae instanceof re):this.processingInstruction(Ae,be+1);break;default:throw new Error("Unknown XML node type: "+Ae.constructor.name)}this.stream.write(Je+"</"+he.name+">")}return this.stream.write(this.endline(he))},Ce.prototype.processingInstruction=function(he,be){return this.stream.write(this.space(be)+"<?"+he.target),he.value&&this.stream.write(" "+he.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(he))},Ce.prototype.raw=function(he,be){return this.stream.write(this.space(be)+he.value+this.endline(he))},Ce.prototype.text=function(he,be){return this.stream.write(this.space(be)+he.value+this.endline(he))},Ce.prototype.dtdAttList=function(he,be){return this.stream.write(this.space(be)+"<!ATTLIST "+he.elementName+" "+he.attributeName+" "+he.attributeType),he.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+he.defaultValueType),he.defaultValue&&this.stream.write(' "'+he.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(he))},Ce.prototype.dtdElement=function(he,be){return this.stream.write(this.space(be)+"<!ELEMENT "+he.name+" "+he.value),this.stream.write(this.spacebeforeslash+">"+this.endline(he))},Ce.prototype.dtdEntity=function(he,be){return this.stream.write(this.space(be)+"<!ENTITY"),he.pe&&this.stream.write(" %"),this.stream.write(" "+he.name),he.value?this.stream.write(' "'+he.value+'"'):(he.pubID&&he.sysID?this.stream.write(' PUBLIC "'+he.pubID+'" "'+he.sysID+'"'):he.sysID&&this.stream.write(' SYSTEM "'+he.sysID+'"'),he.nData&&this.stream.write(" NDATA "+he.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(he))},Ce.prototype.dtdNotation=function(he,be){return this.stream.write(this.space(be)+"<!NOTATION "+he.name),he.pubID&&he.sysID?this.stream.write(' PUBLIC "'+he.pubID+'" "'+he.sysID+'"'):he.pubID?this.stream.write(' PUBLIC "'+he.pubID+'"'):he.sysID&&this.stream.write(' SYSTEM "'+he.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(he))},Ce.prototype.endline=function(he){return he.isLastRootNode?"":this.newline},Ce}(ve)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(ie,fe,de){"use strict";(function(){var ue,ae,se,te,ne,x,b,ee,E,re,ce,le,ve,Se=function(_e,Ce){function he(){this.constructor=_e}for(var be in Ce)ge.call(Ce,be)&&(_e[be]=Ce[be]);return he.prototype=Ce.prototype,_e.prototype=new he,_e.__super__=Ce.prototype,_e},ge={}.hasOwnProperty;b=ie("./XMLDeclaration"),ee=ie("./XMLDocType"),ue=ie("./XMLCData"),ae=ie("./XMLComment"),E=ie("./XMLElement"),ce=ie("./XMLRaw"),le=ie("./XMLText"),re=ie("./XMLProcessingInstruction"),se=ie("./XMLDTDAttList"),te=ie("./XMLDTDElement"),ne=ie("./XMLDTDEntity"),x=ie("./XMLDTDNotation"),ve=ie("./XMLWriterBase"),fe.exports=function(_e){function Ce(he){Ce.__super__.constructor.call(this,he)}return Se(Ce,_e),Ce.prototype.document=function(he){var be,Ee,Ae,De,je;for(this.textispresent=!1,De="",je=he.children,Ee=0,Ae=je.length;Ee<Ae;Ee++)be=je[Ee],De+=function(){switch(!1){case!(be instanceof b):return this.declaration(be);case!(be instanceof ee):return this.docType(be);case!(be instanceof ae):return this.comment(be);case!(be instanceof re):return this.processingInstruction(be);default:return this.element(be,0)}}.call(this);return this.pretty&&De.slice(-this.newline.length)===this.newline&&(De=De.slice(0,-this.newline.length)),De},Ce.prototype.attribute=function(he){return" "+he.name+'="'+he.value+'"'},Ce.prototype.cdata=function(he,be){return this.space(be)+"<![CDATA["+he.text+"]]>"+this.newline},Ce.prototype.comment=function(he,be){return this.space(be)+"<!-- "+he.text+" -->"+this.newline},Ce.prototype.declaration=function(he,be){var Ee;return Ee=this.space(be),Ee+='<?xml version="'+he.version+'"',he.encoding!=null&&(Ee+=' encoding="'+he.encoding+'"'),he.standalone!=null&&(Ee+=' standalone="'+he.standalone+'"'),Ee+=this.spacebeforeslash+"?>",Ee+=this.newline},Ce.prototype.docType=function(he,be){var Ee,Ae,De,je,Fe;if(be||(be=0),je=this.space(be),je+="<!DOCTYPE "+he.root().name,he.pubID&&he.sysID?je+=' PUBLIC "'+he.pubID+'" "'+he.sysID+'"':he.sysID&&(je+=' SYSTEM "'+he.sysID+'"'),he.children.length>0){for(je+=" [",je+=this.newline,Fe=he.children,Ae=0,De=Fe.length;Ae<De;Ae++)Ee=Fe[Ae],je+=function(){switch(!1){case!(Ee instanceof se):return this.dtdAttList(Ee,be+1);case!(Ee instanceof te):return this.dtdElement(Ee,be+1);case!(Ee instanceof ne):return this.dtdEntity(Ee,be+1);case!(Ee instanceof x):return this.dtdNotation(Ee,be+1);case!(Ee instanceof ue):return this.cdata(Ee,be+1);case!(Ee instanceof ae):return this.comment(Ee,be+1);case!(Ee instanceof re):return this.processingInstruction(Ee,be+1);default:throw new Error("Unknown DTD node type: "+Ee.constructor.name)}}.call(this);je+="]"}return je+=this.spacebeforeslash+">",je+=this.newline},Ce.prototype.element=function(he,be){var Ee,Ae,De,je,Fe,Re,qe,Je,He,ze,Qe,$e,ht;be||(be=0),ht=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),$e=this.space(be),Je="",Je+=$e+"<"+he.name,He=he.attributes;for(qe in He)ge.call(He,qe)&&(Ee=He[qe],Je+=this.attribute(Ee));if(he.children.length===0||he.children.every(function(Ge){return Ge.value===""}))this.allowEmpty?Je+="></"+he.name+">"+this.newline:Je+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&he.children.length===1&&he.children[0].value!=null)Je+=">",Je+=he.children[0].value,Je+="</"+he.name+">"+this.newline;else{if(this.dontprettytextnodes){for(ze=he.children,De=0,Fe=ze.length;De<Fe;De++)if(Ae=ze[De],Ae.value!=null){this.textispresent++,ht=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,$e=this.space(be)),Je+=">"+this.newline,Qe=he.children,je=0,Re=Qe.length;je<Re;je++)Ae=Qe[je],Je+=function(){switch(!1){case!(Ae instanceof ue):return this.cdata(Ae,be+1);case!(Ae instanceof ae):return this.comment(Ae,be+1);case!(Ae instanceof E):return this.element(Ae,be+1);case!(Ae instanceof ce):return this.raw(Ae,be+1);case!(Ae instanceof le):return this.text(Ae,be+1);case!(Ae instanceof re):return this.processingInstruction(Ae,be+1);default:throw new Error("Unknown XML node type: "+Ae.constructor.name)}}.call(this);ht&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),Je+=$e+"</"+he.name+">"+this.newline}return Je},Ce.prototype.processingInstruction=function(he,be){var Ee;return Ee=this.space(be)+"<?"+he.target,he.value&&(Ee+=" "+he.value),Ee+=this.spacebeforeslash+"?>"+this.newline},Ce.prototype.raw=function(he,be){return this.space(be)+he.value+this.newline},Ce.prototype.text=function(he,be){return this.space(be)+he.value+this.newline},Ce.prototype.dtdAttList=function(he,be){var Ee;return Ee=this.space(be)+"<!ATTLIST "+he.elementName+" "+he.attributeName+" "+he.attributeType,he.defaultValueType!=="#DEFAULT"&&(Ee+=" "+he.defaultValueType),he.defaultValue&&(Ee+=' "'+he.defaultValue+'"'),Ee+=this.spacebeforeslash+">"+this.newline},Ce.prototype.dtdElement=function(he,be){return this.space(be)+"<!ELEMENT "+he.name+" "+he.value+this.spacebeforeslash+">"+this.newline},Ce.prototype.dtdEntity=function(he,be){var Ee;return Ee=this.space(be)+"<!ENTITY",he.pe&&(Ee+=" %"),Ee+=" "+he.name,he.value?Ee+=' "'+he.value+'"':(he.pubID&&he.sysID?Ee+=' PUBLIC "'+he.pubID+'" "'+he.sysID+'"':he.sysID&&(Ee+=' SYSTEM "'+he.sysID+'"'),he.nData&&(Ee+=" NDATA "+he.nData)),Ee+=this.spacebeforeslash+">"+this.newline},Ce.prototype.dtdNotation=function(he,be){var Ee;return Ee=this.space(be)+"<!NOTATION "+he.name,he.pubID&&he.sysID?Ee+=' PUBLIC "'+he.pubID+'" "'+he.sysID+'"':he.pubID?Ee+=' PUBLIC "'+he.pubID+'"':he.sysID&&(Ee+=' SYSTEM "'+he.sysID+'"'),Ee+=this.spacebeforeslash+">"+this.newline},Ce.prototype.openNode=function(he,be){var Ee,Ae,De,je;if(be||(be=0),he instanceof E){De=this.space(be)+"<"+he.name,je=he.attributes;for(Ae in je)ge.call(je,Ae)&&(Ee=je[Ae],De+=this.attribute(Ee));return De+=(he.children?">":"/>")+this.newline}return De=this.space(be)+"<!DOCTYPE "+he.rootNodeName,he.pubID&&he.sysID?De+=' PUBLIC "'+he.pubID+'" "'+he.sysID+'"':he.sysID&&(De+=' SYSTEM "'+he.sysID+'"'),De+=(he.children?" [":">")+this.newline},Ce.prototype.closeNode=function(he,be){switch(be||(be=0),!1){case!(he instanceof E):return this.space(be)+"</"+he.name+">"+this.newline;case!(he instanceof ee):return this.space(be)+"]>"+this.newline}},Ce}(ve)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(ie,fe,de){"use strict";(function(){var ue=function(se,te){return function(){return se.apply(te,arguments)}},ae={}.hasOwnProperty;fe.exports=function(){function se(te){this.assertLegalChar=ue(this.assertLegalChar,this);var ne,x,b;te||(te={}),this.noDoubleEncoding=te.noDoubleEncoding,x=te.stringify||{};for(ne in x)ae.call(x,ne)&&(b=x[ne],this[ne]=b)}return se.prototype.eleName=function(te){return te=""+te||"",this.assertLegalChar(te)},se.prototype.eleText=function(te){return te=""+te||"",this.assertLegalChar(this.elEscape(te))},se.prototype.cdata=function(te){return te=""+te||"",te=te.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(te)},se.prototype.comment=function(te){if(te=""+te||"",te.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+te);return this.assertLegalChar(te)},se.prototype.raw=function(te){return""+te||""},se.prototype.attName=function(te){return te=""+te||""},se.prototype.attValue=function(te){return te=""+te||"",this.attEscape(te)},se.prototype.insTarget=function(te){return""+te||""},se.prototype.insValue=function(te){if(te=""+te||"",te.match(/\?>/))throw new Error("Invalid processing instruction value: "+te);return te},se.prototype.xmlVersion=function(te){if(te=""+te||"",!te.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+te);return te},se.prototype.xmlEncoding=function(te){if(te=""+te||"",!te.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+te);return te},se.prototype.xmlStandalone=function(te){return te?"yes":"no"},se.prototype.dtdPubID=function(te){return""+te||""},se.prototype.dtdSysID=function(te){return""+te||""},se.prototype.dtdElementValue=function(te){return""+te||""},se.prototype.dtdAttType=function(te){return""+te||""},se.prototype.dtdAttDefault=function(te){return te!=null?""+te||"":te},se.prototype.dtdEntityValue=function(te){return""+te||""},se.prototype.dtdNData=function(te){return""+te||""},se.prototype.convertAttKey="@",se.prototype.convertPIKey="?",se.prototype.convertTextKey="#text",se.prototype.convertCDataKey="#cdata",se.prototype.convertCommentKey="#comment",se.prototype.convertRawKey="#raw",se.prototype.assertLegalChar=function(te){var ne;if(ne=te.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+te+" at index "+ne.index);return te},se.prototype.elEscape=function(te){var ne;return ne=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,te.replace(ne,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},se.prototype.attEscape=function(te){var ne;return ne=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,te.replace(ne,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},se}()}).call(void 0)},{}],233:[function(ie,fe,de){"use strict";var ue=ie("babel-runtime/core-js/object/create"),ae=function(se){return se&&se.__esModule?se:{default:se}}(ue);(function(){var se,te=function(x,b){function ee(){this.constructor=x}for(var E in b)ne.call(b,E)&&(x[E]=b[E]);return ee.prototype=b.prototype,x.prototype=new ee,x.__super__=b.prototype,x},ne={}.hasOwnProperty;se=ie("./XMLNode"),fe.exports=function(x){function b(ee,E){if(b.__super__.constructor.call(this,ee),E==null)throw new Error("Missing element text");this.value=this.stringify.eleText(E)}return te(b,x),b.prototype.clone=function(){return(0,ae.default)(this)},b.prototype.toString=function(ee){return this.options.writer.set(ee).text(this)},b}(se)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(ie,fe,de){"use strict";(function(){var ue={}.hasOwnProperty;fe.exports=function(){function ae(se){var te,ne,x,b,ee,E,re,ce,le;se||(se={}),this.pretty=se.pretty||!1,this.allowEmpty=(ne=se.allowEmpty)!=null&&ne,this.pretty?(this.indent=(x=se.indent)!=null?x:" ",this.newline=(b=se.newline)!=null?b:`
|
|
|
`,this.offset=(ee=se.offset)!=null?ee:0,this.dontprettytextnodes=(E=se.dontprettytextnodes)!=null?E:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(re=se.spacebeforeslash)!=null?re:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,ce=se.writer||{};for(te in ce)ue.call(ce,te)&&(le=ce[te],this[te]=le)}return ae.prototype.set=function(se){var te,ne,x;se||(se={}),"pretty"in se&&(this.pretty=se.pretty),"allowEmpty"in se&&(this.allowEmpty=se.allowEmpty),this.pretty?(this.indent="indent"in se?se.indent:" ",this.newline="newline"in se?se.newline:`
|
|
|
`,this.offset="offset"in se?se.offset:0,this.dontprettytextnodes="dontprettytextnodes"in se?se.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in se?se.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,ne=se.writer||{};for(te in ne)ue.call(ne,te)&&(x=ne[te],this[te]=x);return this},ae.prototype.space=function(se){var te;return this.pretty?(te=(se||0)+this.offset+1,te>0?new Array(te).join(this.indent):""):""},ae}()}).call(void 0)},{}],235:[function(ie,fe,de){"use strict";(function(){var ue,ae,se,te,ne,x,b;b=ie("./Utility"),ne=b.assign,x=b.isFunction,ue=ie("./XMLDocument"),ae=ie("./XMLDocumentCB"),te=ie("./XMLStringWriter"),se=ie("./XMLStreamWriter"),fe.exports.create=function(ee,E,re,ce){var le,ve;if(ee==null)throw new Error("Root element needs a name");return ce=ne({},E,re,ce),le=new ue(ce),ve=le.element(ee),ce.headless||(le.declaration(ce),ce.pubID==null&&ce.sysID==null||le.doctype(ce)),ve},fe.exports.begin=function(ee,E,re){var ce;return x(ee)&&(ce=[ee,E],E=ce[0],re=ce[1],ee={}),E?new ae(ee,E,re):new ue(ee)},fe.exports.stringWriter=function(ee){return new te(ee)},fe.exports.streamWriter=function(ee,E){return new se(ee,E)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(ie,fe,de){function ue(){for(var se={},te=0;te<arguments.length;te++){var ne=arguments[te];for(var x in ne)ae.call(ne,x)&&(se[x]=ne[x])}return se}fe.exports=ue;var ae=Object.prototype.hasOwnProperty},{}],237:[function(ie,fe,de){"use strict";function ue(ce,le,ve){te.isBuffer(le)||(le=new te(le)),te.isBuffer(ve)||(ve=new te(ve)),le.length>E?le=ce(le):le.length<E&&(le=te.concat([le,re],E));for(var Se=new te(E),ge=new te(E),_e=0;_e<E;_e++)Se[_e]=54^le[_e],ge[_e]=92^le[_e];var Ce=ce(te.concat([Se,ve]));return ce(te.concat([ge,Ce]))}function ae(ce,le){ce=ce||"sha1";var ve=ee[ce],Se=[],ge=0;return ve||se("algorithm:",ce,"is not yet supported"),{update:function(_e){return te.isBuffer(_e)||(_e=new te(_e)),Se.push(_e),ge+=_e.length,this},digest:function(_e){var Ce=te.concat(Se),he=le?ue(ve,le,Ce):ve(Ce);return Se=null,_e?he.toString(_e):he}}}function se(){var ce=[].slice.call(arguments).join(" ");throw new Error([ce,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var te=ie("buffer").Buffer,ne=ie("./sha"),x=ie("./sha256"),b=ie("./md5"),ee={sha1:ne,sha256:x,md5:b},E=64,re=new te(E);re.fill(0),de.createHash=function(ce){return ae(ce)},de.createHmac=function(ce,le){return ae(ce,le)},function(ce,le){for(var ve in ce)le(ce[ve],ve)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(ce){de[ce]=function(){se("sorry,",ce,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(ie,fe,de){"use strict";function ue(ee,E){if(ee.length%ne!=0){var re=ee.length+(ne-ee.length%ne);ee=te.concat([ee,x],re)}for(var ce=[],le=E?ee.readInt32BE:ee.readInt32LE,ve=0;ve<ee.length;ve+=ne)ce.push(le.call(ee,ve));return ce}function ae(ee,E,re){for(var ce=new te(E),le=re?ce.writeInt32BE:ce.writeInt32LE,ve=0;ve<ee.length;ve++)le.call(ce,ee[ve],4*ve,!0);return ce}function se(ee,E,re,ce){return te.isBuffer(ee)||(ee=new te(ee)),ae(E(ue(ee,ce),ee.length*b),re,ce)}var te=ie("buffer").Buffer,ne=4,x=new te(ne);x.fill(0);var b=8;fe.exports={hash:se}},{buffer:38}],239:[function(ie,fe,de){"use strict";function ue(re,ce){re[ce>>5]|=128<<ce%32,re[14+(ce+64>>>9<<4)]=ce;for(var le=1732584193,ve=-271733879,Se=-1732584194,ge=271733878,_e=0;_e<re.length;_e+=16){var Ce=le,he=ve,be=Se,Ee=ge;le=se(le,ve,Se,ge,re[_e+0],7,-680876936),ge=se(ge,le,ve,Se,re[_e+1],12,-389564586),Se=se(Se,ge,le,ve,re[_e+2],17,606105819),ve=se(ve,Se,ge,le,re[_e+3],22,-1044525330),le=se(le,ve,Se,ge,re[_e+4],7,-176418897),ge=se(ge,le,ve,Se,re[_e+5],12,1200080426),Se=se(Se,ge,le,ve,re[_e+6],17,-1473231341),ve=se(ve,Se,ge,le,re[_e+7],22,-45705983),le=se(le,ve,Se,ge,re[_e+8],7,1770035416),ge=se(ge,le,ve,Se,re[_e+9],12,-1958414417),Se=se(Se,ge,le,ve,re[_e+10],17,-42063),ve=se(ve,Se,ge,le,re[_e+11],22,-1990404162),le=se(le,ve,Se,ge,re[_e+12],7,1804603682),ge=se(ge,le,ve,Se,re[_e+13],12,-40341101),Se=se(Se,ge,le,ve,re[_e+14],17,-1502002290),ve=se(ve,Se,ge,le,re[_e+15],22,1236535329),le=te(le,ve,Se,ge,re[_e+1],5,-165796510),ge=te(ge,le,ve,Se,re[_e+6],9,-1069501632),Se=te(Se,ge,le,ve,re[_e+11],14,643717713),ve=te(ve,Se,ge,le,re[_e+0],20,-373897302),le=te(le,ve,Se,ge,re[_e+5],5,-701558691),ge=te(ge,le,ve,Se,re[_e+10],9,38016083),Se=te(Se,ge,le,ve,re[_e+15],14,-660478335),ve=te(ve,Se,ge,le,re[_e+4],20,-405537848),le=te(le,ve,Se,ge,re[_e+9],5,568446438),ge=te(ge,le,ve,Se,re[_e+14],9,-1019803690),Se=te(Se,ge,le,ve,re[_e+3],14,-187363961),ve=te(ve,Se,ge,le,re[_e+8],20,1163531501),le=te(le,ve,Se,ge,re[_e+13],5,-1444681467),ge=te(ge,le,ve,Se,re[_e+2],9,-51403784),Se=te(Se,ge,le,ve,re[_e+7],14,1735328473),ve=te(ve,Se,ge,le,re[_e+12],20,-1926607734),le=ne(le,ve,Se,ge,re[_e+5],4,-378558),ge=ne(ge,le,ve,Se,re[_e+8],11,-2022574463),Se=ne(Se,ge,le,ve,re[_e+11],16,1839030562),ve=ne(ve,Se,ge,le,re[_e+14],23,-35309556),le=ne(le,ve,Se,ge,re[_e+1],4,-1530992060),ge=ne(ge,le,ve,Se,re[_e+4],11,1272893353),Se=ne(Se,ge,le,ve,re[_e+7],16,-155497632),ve=ne(ve,Se,ge,le,re[_e+10],23,-1094730640),le=ne(le,ve,Se,ge,re[_e+13],4,681279174),ge=ne(ge,le,ve,Se,re[_e+0],11,-358537222),Se=ne(Se,ge,le,ve,re[_e+3],16,-722521979),ve=ne(ve,Se,ge,le,re[_e+6],23,76029189),le=ne(le,ve,Se,ge,re[_e+9],4,-640364487),ge=ne(ge,le,ve,Se,re[_e+12],11,-421815835),Se=ne(Se,ge,le,ve,re[_e+15],16,530742520),ve=ne(ve,Se,ge,le,re[_e+2],23,-995338651),le=x(le,ve,Se,ge,re[_e+0],6,-198630844),ge=x(ge,le,ve,Se,re[_e+7],10,1126891415),Se=x(Se,ge,le,ve,re[_e+14],15,-1416354905),ve=x(ve,Se,ge,le,re[_e+5],21,-57434055),le=x(le,ve,Se,ge,re[_e+12],6,1700485571),ge=x(ge,le,ve,Se,re[_e+3],10,-1894986606),Se=x(Se,ge,le,ve,re[_e+10],15,-1051523),ve=x(ve,Se,ge,le,re[_e+1],21,-2054922799),le=x(le,ve,Se,ge,re[_e+8],6,1873313359),ge=x(ge,le,ve,Se,re[_e+15],10,-30611744),Se=x(Se,ge,le,ve,re[_e+6],15,-1560198380),ve=x(ve,Se,ge,le,re[_e+13],21,1309151649),le=x(le,ve,Se,ge,re[_e+4],6,-145523070),ge=x(ge,le,ve,Se,re[_e+11],10,-1120210379),Se=x(Se,ge,le,ve,re[_e+2],15,718787259),ve=x(ve,Se,ge,le,re[_e+9],21,-343485551),le=b(le,Ce),ve=b(ve,he),Se=b(Se,be),ge=b(ge,Ee)}return Array(le,ve,Se,ge)}function ae(re,ce,le,ve,Se,ge){return b(ee(b(b(ce,re),b(ve,ge)),Se),le)}function se(re,ce,le,ve,Se,ge,_e){return ae(ce&le|~ce&ve,re,ce,Se,ge,_e)}function te(re,ce,le,ve,Se,ge,_e){return ae(ce&ve|le&~ve,re,ce,Se,ge,_e)}function ne(re,ce,le,ve,Se,ge,_e){return ae(ce^le^ve,re,ce,Se,ge,_e)}function x(re,ce,le,ve,Se,ge,_e){return ae(le^(ce|~ve),re,ce,Se,ge,_e)}function b(re,ce){var le=(65535&re)+(65535&ce);return(re>>16)+(ce>>16)+(le>>16)<<16|65535&le}function ee(re,ce){return re<<ce|re>>>32-ce}var E=ie("./helpers");fe.exports=function(re){return E.hash(re,ue,16)}},{"./helpers":238}],240:[function(ie,fe,de){"use strict";function ue(b,ee){b[ee>>5]|=128<<24-ee%32,b[15+(ee+64>>9<<4)]=ee;for(var E=Array(80),re=1732584193,ce=-271733879,le=-1732584194,ve=271733878,Se=-1009589776,ge=0;ge<b.length;ge+=16){for(var _e=re,Ce=ce,he=le,be=ve,Ee=Se,Ae=0;Ae<80;Ae++){E[Ae]=Ae<16?b[ge+Ae]:ne(E[Ae-3]^E[Ae-8]^E[Ae-14]^E[Ae-16],1);var De=te(te(ne(re,5),ae(Ae,ce,le,ve)),te(te(Se,E[Ae]),se(Ae)));Se=ve,ve=le,le=ne(ce,30),ce=re,re=De}re=te(re,_e),ce=te(ce,Ce),le=te(le,he),ve=te(ve,be),Se=te(Se,Ee)}return Array(re,ce,le,ve,Se)}function ae(b,ee,E,re){return b<20?ee&E|~ee&re:b<40?ee^E^re:b<60?ee&E|ee&re|E&re:ee^E^re}function se(b){return b<20?1518500249:b<40?1859775393:b<60?-1894007588:-899497514}function te(b,ee){var E=(65535&b)+(65535&ee);return(b>>16)+(ee>>16)+(E>>16)<<16|65535&E}function ne(b,ee){return b<<ee|b>>>32-ee}var x=ie("./helpers");fe.exports=function(b){return x.hash(b,ue,20,!0)}},{"./helpers":238}],241:[function(ie,fe,de){"use strict";var ue=ie("./helpers"),ae=function(le,ve){var Se=(65535&le)+(65535&ve);return(le>>16)+(ve>>16)+(Se>>16)<<16|65535&Se},se=function(le,ve){return le>>>ve|le<<32-ve},te=function(le,ve){return le>>>ve},ne=function(le,ve,Se){return le&ve^~le&Se},x=function(le,ve,Se){return le&ve^le&Se^ve&Se},b=function(le){return se(le,2)^se(le,13)^se(le,22)},ee=function(le){return se(le,6)^se(le,11)^se(le,25)},E=function(le){return se(le,7)^se(le,18)^te(le,3)},re=function(le){return se(le,17)^se(le,19)^te(le,10)},ce=function(le,ve){var Se,ge,_e,Ce,he,be,Ee,Ae,De,je,Fe,Re,qe=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),Je=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),He=new Array(64);le[ve>>5]|=128<<24-ve%32,le[15+(ve+64>>9<<4)]=ve;for(var De=0;De<le.length;De+=16){Se=Je[0],ge=Je[1],_e=Je[2],Ce=Je[3],he=Je[4],be=Je[5],Ee=Je[6],Ae=Je[7];for(var je=0;je<64;je++)He[je]=je<16?le[je+De]:ae(ae(ae(re(He[je-2]),He[je-7]),E(He[je-15])),He[je-16]),Fe=ae(ae(ae(ae(Ae,ee(he)),ne(he,be,Ee)),qe[je]),He[je]),Re=ae(b(Se),x(Se,ge,_e)),Ae=Ee,Ee=be,be=he,he=ae(Ce,Fe),Ce=_e,_e=ge,ge=Se,Se=ae(Fe,Re);Je[0]=ae(Se,Je[0]),Je[1]=ae(ge,Je[1]),Je[2]=ae(_e,Je[2]),Je[3]=ae(Ce,Je[3]),Je[4]=ae(he,Je[4]),Je[5]=ae(be,Je[5]),Je[6]=ae(Ee,Je[6]),Je[7]=ae(Ae,Je[7])}return Je};fe.exports=function(le){return ue.hash(le,ce,32,!0)}},{"./helpers":238}],242:[function(ie,fe,de){(function(ue){"use strict";function ae(ce){return ce&&ce.__esModule?ce:{default:ce}}var se=ie("babel-runtime/core-js/object/create"),te=ae(se),ne=ie("babel-runtime/helpers/classCallCheck"),x=ae(ne),b=ie("babel-runtime/helpers/createClass"),ee=ae(b),E=ie("babel-runtime/helpers/typeof"),re=ae(E);(function(ce){if((de===void 0?"undefined":(0,re.default)(de))==="object"&&fe!==void 0)fe.exports=ce();else if(typeof y=="function"&&y.amd)y([],ce);else{var le;le=typeof window!="undefined"?window:ue!==void 0?ue:typeof self!="undefined"?self:this,le.mime=ce()}})(function(){return function ce(le,ve,Se){function ge(he,be){if(!ve[he]){if(!le[he]){var Ee=typeof ie=="function"&&ie;if(!be&&Ee)return Ee(he,!0);if(_e)return _e(he,!0);var Ae=new Error("Cannot find module '"+he+"'");throw Ae.code="MODULE_NOT_FOUND",Ae}var De=ve[he]={exports:{}};le[he][0].call(De.exports,function(je){var Fe=le[he][1][je];return ge(Fe||je)},De,De.exports,ce,le,ve,Se)}return ve[he].exports}for(var _e=typeof ie=="function"&&ie,Ce=0;Ce<Se.length;Ce++)ge(Se[Ce]);return ge}({1:[function(ce,le,ve){var Se=function(){function ge(){(0,x.default)(this,ge),this._types=(0,te.default)(null),this._extensions=(0,te.default)(null);for(var _e=0;_e<arguments.length;_e++)this.define(arguments[_e])}return(0,ee.default)(ge,[{key:"define",value:function(_e,Ce){for(var he in _e){for(var be=_e[he],Ee=0;Ee<be.length;Ee++){var Ae=be[Ee];if(!Ce&&Ae in this._types)throw new Error('Attempt to change mapping for "'+Ae+'" extension from "'+this._types[Ae]+'" to "'+he+'". Pass `force=true` to allow this, otherwise remove "'+Ae+'" from the list of extensions for "'+he+'".');this._types[Ae]=he}!Ce&&this._extensions[he]||(this._extensions[he]=be[0])}}},{key:"getType",value:function(_e){_e=String(_e);var Ce=_e.replace(/^.*[\/\\]/,"").toLowerCase(),he=Ce.replace(/^.*\./,"").toLowerCase(),be=Ce.length<_e.length;return(he.length<Ce.length-1||!be)&&this._types[he]||null}},{key:"getExtension",value:function(_e){return(_e=/^\s*([^;\s]*)/.test(_e)&&RegExp.$1)&&this._extensions[_e.toLowerCase()]||null}}]),ge}();le.exports=Se},{}],2:[function(ce,le,ve){var Se=ce("./Mime");le.exports=new Se(ce("./types/standard"),ce("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(ce,le,ve){le.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(ce,le,ve){le.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof oe.g!="undefined"?oe.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(ie,fe,de){"use strict";de.encodeURIComponent=function(ue){try{return encodeURIComponent(ue)}catch(ae){return ue}},de.escape=ie("escape-html"),de.timestamp=function(ue){if(ue){var ae=ue;return typeof ae=="string"&&(ae=Number(ae)),String(ue).length===10&&(ae*=1e3),new Date(ae)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(ie,fe,de){(function(ue,ae){"use strict";function se(Ae){return Ae&&Ae.__esModule?Ae:{default:Ae}}function te(Ae,De){return Ae===void 0?De:Ae}function ne(Ae,De){return function(je,Fe,Re){if(je)return De(je);Ae({data:Fe,status:Re.statusCode,headers:Re.headers,res:Re})}}var x,b=ie("babel-runtime/core-js/json/stringify"),ee=se(b),E=ie("babel-runtime/helpers/typeof"),re=se(E),ce=ie("util"),le=ie("url"),ve=ie("http"),Se=ie("https"),ge=ie("debug")("urllib"),_e=ie("humanize-ms"),Ce=0,he=Math.pow(2,31)-10,be=/^https?:\/\//i;de.TIMEOUTS=[_e("300s"),_e("300s")];var Ee=["json","text"];de.request=function(Ae,De,je){return arguments.length===2&&typeof De=="function"&&(je=De,De=null),typeof je=="function"?de.requestWithCallback(Ae,De,je):(x||(x=ie("any-promise")),new x(function(Fe,Re){de.requestWithCallback(Ae,De,ne(Fe,Re))}))},de.requestWithCallback=function(Ae,De,je){function Fe(){Pe&&(clearTimeout(Pe),Pe=null)}function Re(){Le&&(clearTimeout(Le),Le=null)}function qe(It,en,Pt){if(Re(),!je)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Ge,ue.pid,pt.method,Ae),void(It&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),Ge,ue.pid,It.name,It.message,It.stack));var cn=je;je=null;var Sn={};if(Pt&&(Oe=Pt.statusCode,Sn=Pt.headers),Oe===401&&Sn["www-authenticate"]&&(!De.headers||!De.headers.Authorization)&&De.digestAuth){var An=Sn["www-authenticate"];if(An.indexOf("Digest ")>=0)return ge("Request#%d %s: got digest auth header WWW-Authenticate: %s",Ge,Ae,An),De.headers=De.headers||{},De.headers.Authorization=digestAuthHeader(pt.method,pt.path,An,De.digestAuth),ge("Request#%d %s: auth with digest header: %s",Ge,Ae,De.headers.Authorization),Pt.headers["set-cookie"]&&(De.headers.Cookie=Pt.headers["set-cookie"].join(";")),de.requestWithCallback(Ae,De,cn)}var wn=Date.now()-et;ft&&(ft.contentDownload=wn),ge("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",wn,Me,Oe,pt.method,pt.host,pt.path,ke,ft);var At={status:Oe,statusCode:Oe,headers:Sn,size:Me,aborted:tt,rt:wn,keepAliveSocket:ke,data:en,requestUrls:De.requestUrls,timing:ft,remoteAddress:ot,remotePort:st};if(It){var Gt="";lt&&typeof lt.getCurrentStatus=="function"&&(Gt=", agent status: "+(0,ee.default)(lt.getCurrentStatus())),It.message+=", "+pt.method+" "+Ae+" "+Oe+" (connected: "+we+", keepalive socket: "+ke+Gt+`)
|
|
|
headers: `+(0,ee.default)(Sn),It.data=en,It.path=pt.path,It.status=Oe,It.headers=Sn,It.res=At}cn(It,en,De.streaming?Pt:At),De.emitter&&(Ue.url=Ae,Ue.socket=$t&&$t.connection,Ue.options=pt,Ue.size=Be,De.emitter.emit("response",{requestId:Ge,error:It,ctx:De.ctx,req:Ue,res:At}))}function Je(It){var en=null;if(De.followRedirect&&statuses.redirect[It.statusCode]){De._followRedirectCount=(De._followRedirectCount||0)+1;var Pt=It.headers.location;if(Pt){if(!(De._followRedirectCount>De.maxRedirects)){var cn=De.formatRedirectUrl?De.formatRedirectUrl(Ae,Pt):le.resolve(Ae,Pt);ge("Request#%d %s: `redirected` from %s to %s",Ge,pt.path,Ae,cn),Re(),De.headers&&De.headers.Host&&be.test(Pt)&&(De.headers.Host=null);var Sn=je;return je=null,de.requestWithCallback(cn,De,Sn),{redirect:!0,error:null}}en=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ae),en.name="MaxRedirectError"}else en=new Error("Got statusCode "+It.statusCode+" but cannot resolve next location from headers"),en.name="FollowRedirectError"}return{redirect:!1,error:en}}function He(It,en,Pt){return Pt(null,en,It.headers["content-encoding"])}function ze(It){if(ft&&(ft.waiting=Date.now()-et),ge("Request#%d %s `req response` event emit: status %d, headers: %j",Ge,Ae,It.statusCode,It.headers),De.streaming){var en=Je(It);return en.redirect?void It.resume():en.error?(It.resume(),qe(en.error,null,It)):qe(null,null,It)}if(It.on("close",function(){ge("Request#%d %s: `res close` event emit, total size %d",Ge,Ae,Me)}),It.on("error",function(){ge("Request#%d %s: `res error` event emit, total size %d",Ge,Ae,Me)}),It.on("aborted",function(){tt=!0,ge("Request#%d %s: `res aborted` event emit, total size %d",Ge,Ae,Me)}),Ft){var en=Je(It);return en.redirect?void It.resume():en.error?(It.resume(),Ft.end(),qe(en.error,null,It)):(De.consumeWriteStream===!1?It.on("end",qe.bind(null,null,null,It)):isNode010||isNode012?first([[Ft,"close"],[It,"aborted"]],function(Sn,An,wn){ge("Request#%d %s: writeStream or res %s event emitted",Ge,Ae,wn),qe(pe||null,null,It)}):Ft.on("close",function(){ge("Request#%d %s: writeStream close event emitted",Ge,Ae),qe(pe||null,null,It)}),It.pipe(Ft))}var Pt=[];It.on("data",function(cn){ge("Request#%d %s: `res data` event emit, size %d",Ge,Ae,cn.length),Me+=cn.length,Pt.push(cn)}),It.on("end",function(){var cn=ae.concat(Pt,Me);if(ge("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Ge,Ae,Me,It._dumped),pe)return qe(pe,cn,It);var Sn=Je(It);if(Sn.error)return qe(Sn.error,cn,It);Sn.redirect||He(It,cn,function(An,wn,At){if(An)return qe(An,cn,It);if(!At&&Ee.indexOf(De.dataType)>=0){try{wn=decodeBodyByCharset(wn,It)}catch(on){return ge("decodeBodyByCharset error: %s",on),qe(null,wn,It)}if(De.dataType==="json")if(Me===0)wn=null;else{var Gt=parseJSON(wn,kt);Gt.error?An=Gt.error:wn=Gt.data}}tt&&ge("Request#%d %s: Remote socket was terminated before `response.end()` was called",Ge,Ae),qe(An,wn,It)})})}function Qe(){ge("Response timer ticking, timeout: %d",qt),Le=setTimeout(function(){Le=null;var It="Response timeout for "+qt+"ms";pe=new Error(It),pe.name="ResponseTimeoutError",pe.requestId=Ge,ge("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Ge,Ae,pe.name,It,we),$e()},qt)}function $e(){ge("Request#%d %s abort, connected: %s",Ge,Ae,we),$t.socket||(pe.noSocket=!0,qe(pe)),$t.abort()}if(!Ae||typeof Ae!="string"&&(Ae===void 0?"undefined":(0,re.default)(Ae))!=="object"){var ht=ce.format("expect request url to be a string or a http request options, but got %j",Ae);throw new Error(ht)}arguments.length===2&&typeof De=="function"&&(je=De,De=null),De=De||{},Ce>=he&&(Ce=0);var Ge=++Ce;De.requestUrls=De.requestUrls||[];var Ue={requestId:Ge,url:Ae,args:De,ctx:De.ctx};De.emitter&&De.emitter.emit("request",Ue),De.timeout=De.timeout||de.TIMEOUTS,De.maxRedirects=De.maxRedirects||10,De.streaming=De.streaming||De.customResponse;var Ke,et=Date.now();typeof Ae=="string"?(be.test(Ae)||(Ae="http://"+Ae),Ke=le.parse(Ae)):Ke=Ae;var rt=(De.type||De.method||Ke.method||"GET").toUpperCase(),Xe=Ke.port||80,ut=ve,lt=te(De.agent,de.agent),kt=De.fixJSONCtlChars;Ke.protocol==="https:"&&(ut=Se,lt=te(De.httpsAgent,de.httpsAgent),Ke.port||(Xe=443));var pt={host:Ke.hostname||Ke.host||"localhost",path:Ke.path||"/",method:rt,port:Xe,agent:lt,headers:De.headers||{},lookup:De.lookup};Array.isArray(De.timeout)?pt.requestTimeout=De.timeout[De.timeout.length-1]:De.timeout!==void 0&&(pt.requestTimeout=De.timeout);for(var Mt=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],wt=0;wt<Mt.length;wt++){var bt=Mt[wt];De.hasOwnProperty(bt)&&(pt[bt]=De[bt])}pt.rejectUnauthorized!==!1||pt.hasOwnProperty("secureOptions")||(pt.secureOptions=ie("constants").SSL_OP_NO_TLSv1_2);var gt=De.auth||Ke.auth;gt&&(pt.auth=gt);var We=De.content||De.data,Ie=rt==="GET"||rt==="HEAD"||De.dataAsQueryString;if(!De.content&&We&&typeof We!="string"&&!ae.isBuffer(We))if(Ie)We=De.nestedQuerystring?qs.stringify(We):querystring.stringify(We);else{var xe=pt.headers["Content-Type"]||pt.headers["content-type"];xe||(xe=De.contentType==="json"?"application/json":"application/x-www-form-urlencoded",pt.headers["Content-Type"]=xe),We=parseContentType(xe).type==="application/json"?(0,ee.default)(We):De.nestedQuerystring?qs.stringify(We):querystring.stringify(We)}Ie&&We&&(pt.path+=(Ke.query?"&":"?")+We,We=null);var Be=0;if(We){var Ye=We.length;ae.isBuffer(We)||(Ye=ae.byteLength(We)),Be=pt.headers["Content-Length"]=Ye}De.dataType==="json"&&(pt.headers.Accept="application/json"),typeof De.beforeRequest=="function"&&De.beforeRequest(pt);var Pe=null,Le=null,pe=null,we=!1,ke=!1,Me=0,Oe=-1,tt=!1,ot="",st="",ft=null;De.timing&&(ft={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),pt.headers["User-Agent"]||pt.headers["user-agent"]||(pt.headers["User-Agent"]=navigator.userAgent),De.gzip&&(pt.headers["Accept-Encoding"]||pt.headers["accept-encoding"]||(pt.headers["Accept-Encoding"]="gzip"));var Ft=De.writeStream;ge("Request#%d %s %s with headers %j, options.path: %s",Ge,rt,Ae,pt.headers,pt.path),De.requestUrls.push(Ae);var Bt,qt;Array.isArray(De.timeout)?(Bt=_e(De.timeout[0]),qt=_e(De.timeout[1])):Bt=qt=_e(De.timeout),ge("ConnectTimeout: %d, ResponseTimeout: %d",Bt,qt);var $t;try{$t=ut.request(pt,ze)}catch(It){return qe(It)}return typeof window=="undefined"?function(){ge("Connect timer ticking, timeout: %d",Bt),Pe=setTimeout(function(){Pe=null,Oe===-1&&(Oe=-2);var It="Connect timeout for "+Bt+"ms",en="ConnectionTimeoutError";$t.socket||(en="SocketAssignTimeoutError",It+=", working sockets is full"),pe=new Error(It),pe.name=en,pe.requestId=Ge,ge("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Ge,Ae,pe.name,It,we),$e()},Bt)}():$t.on("requestTimeout",function(){Oe===-1&&(Oe=-2);var It="Connect timeout for "+Bt+"ms";pe=new Error(It),pe.name="ConnectionTimeoutError",pe.requestId=Ge,$e()}),ft&&$t.on("finish",function(){ft.requestSent=Date.now()-et}),$t.once("socket",function(It){ft&&(ft.queuing=Date.now()-et),isNode010&&It.socket&&(It=It.socket);var en=It.readyState;if(en==="opening")return It.once("lookup",function(Pt,cn,Sn){ge("Request#%d %s lookup: %s, %s, %s",Ge,Ae,Pt,cn,Sn),ft&&(ft.dnslookup=Date.now()-et),cn&&(ot=cn)}),void It.once("connect",function(){ft&&(ft.connected=Date.now()-et),Fe(),Qe(),ge("Request#%d %s new socket connected",Ge,Ae),we=!0,ot||(ot=It.remoteAddress),st=It.remotePort});ge("Request#%d %s reuse socket connected, readyState: %s",Ge,Ae,en),we=!0,ke=!0,ot||(ot=It.remoteAddress),st=It.remotePort,Fe(),Qe()}),$t.on("error",function(It){It.name!=="Error"&&It.name!=="TypeError"||(It.name=we?"ResponseError":"RequestError"),It.message+=' (req "error")',ge("Request#%d %s `req error` event emit, %s: %s",Ge,Ae,It.name,It.message),qe(pe||It)}),Ft&&Ft.once("error",function(It){It.message+=' (writeStream "error")',pe=It,ge("Request#%d %s `writeStream error` event emit, %s: %s",Ge,Ae,It.name,It.message),$e()}),De.stream?(De.stream.pipe($t),De.stream.once("error",function(It){It.message+=' (stream "error")',pe=It,ge("Request#%d %s `readStream error` event emit, %s: %s",Ge,Ae,It.name,It.message),$e()})):$t.end(We),$t.requestId=Ge,$t}}).call(this,ie("_process"),ie("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)}),function(y){function ie(de){if(fe[de])return fe[de].exports;var ue=fe[de]={i:de,l:!1,exports:{}};return y[de].call(ue.exports,ue,ue.exports,ie),ue.l=!0,ue.exports}var fe={};ie.m=y,ie.c=fe,ie.d=function(de,ue,ae){ie.o(de,ue)||Object.defineProperty(de,ue,{configurable:!1,enumerable:!0,get:ae})},ie.n=function(de){var ue=de&&de.__esModule?function(){return de.default}:function(){return de};return ie.d(ue,"a",ue),ue},ie.o=function(de,ue){return Object.prototype.hasOwnProperty.call(de,ue)},ie.p="",ie(ie.s=12)}([function(y,ie,fe){(function(de,ue){y.exports=ie=ue()})(0,function(){var de=de||function(ue,ae){var se=Object.create||function(){function Se(){}return function(ge){var _e;return Se.prototype=ge,_e=new Se,Se.prototype=null,_e}}(),te={},ne=te.lib={},x=ne.Base=function(){return{extend:function(Se){var ge=se(this);return Se&&ge.mixIn(Se),ge.hasOwnProperty("init")&&this.init!==ge.init||(ge.init=function(){ge.$super.init.apply(this,arguments)}),ge.init.prototype=ge,ge.$super=this,ge},create:function(){var Se=this.extend();return Se.init.apply(Se,arguments),Se},init:function(){},mixIn:function(Se){for(var ge in Se)Se.hasOwnProperty(ge)&&(this[ge]=Se[ge]);Se.hasOwnProperty("toString")&&(this.toString=Se.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),b=ne.WordArray=x.extend({init:function(Se,ge){Se=this.words=Se||[],this.sigBytes=ge!=null?ge:4*Se.length},toString:function(Se){return(Se||E).stringify(this)},concat:function(Se){var ge=this.words,_e=Se.words,Ce=this.sigBytes,he=Se.sigBytes;if(this.clamp(),Ce%4)for(var be=0;be<he;be++){var Ee=_e[be>>>2]>>>24-be%4*8&255;ge[Ce+be>>>2]|=Ee<<24-(Ce+be)%4*8}else for(var be=0;be<he;be+=4)ge[Ce+be>>>2]=_e[be>>>2];return this.sigBytes+=he,this},clamp:function(){var Se=this.words,ge=this.sigBytes;Se[ge>>>2]&=4294967295<<32-ge%4*8,Se.length=ue.ceil(ge/4)},clone:function(){var Se=x.clone.call(this);return Se.words=this.words.slice(0),Se},random:function(Se){for(var ge,_e=[],Ce=0;Ce<Se;Ce+=4){var he=function(Ee){var Ee=Ee,Ae=987654321,De=4294967295;return function(){Ae=36969*(65535&Ae)+(Ae>>16)&De,Ee=18e3*(65535&Ee)+(Ee>>16)&De;var je=(Ae<<16)+Ee&De;return je/=4294967296,(je+=.5)*(ue.random()>.5?1:-1)}}(4294967296*(ge||ue.random()));ge=987654071*he(),_e.push(4294967296*he()|0)}return new b.init(_e,Se)}}),ee=te.enc={},E=ee.Hex={stringify:function(Se){for(var ge=Se.words,_e=Se.sigBytes,Ce=[],he=0;he<_e;he++){var be=ge[he>>>2]>>>24-he%4*8&255;Ce.push((be>>>4).toString(16)),Ce.push((15&be).toString(16))}return Ce.join("")},parse:function(Se){for(var ge=Se.length,_e=[],Ce=0;Ce<ge;Ce+=2)_e[Ce>>>3]|=parseInt(Se.substr(Ce,2),16)<<24-Ce%8*4;return new b.init(_e,ge/2)}},re=ee.Latin1={stringify:function(Se){for(var ge=Se.words,_e=Se.sigBytes,Ce=[],he=0;he<_e;he++){var be=ge[he>>>2]>>>24-he%4*8&255;Ce.push(String.fromCharCode(be))}return Ce.join("")},parse:function(Se){for(var ge=Se.length,_e=[],Ce=0;Ce<ge;Ce++)_e[Ce>>>2]|=(255&Se.charCodeAt(Ce))<<24-Ce%4*8;return new b.init(_e,ge)}},ce=ee.Utf8={stringify:function(Se){try{return decodeURIComponent(escape(re.stringify(Se)))}catch(ge){throw new Error("Malformed UTF-8 data")}},parse:function(Se){return re.parse(unescape(encodeURIComponent(Se)))}},le=ne.BufferedBlockAlgorithm=x.extend({reset:function(){this._data=new b.init,this._nDataBytes=0},_append:function(Se){typeof Se=="string"&&(Se=ce.parse(Se)),this._data.concat(Se),this._nDataBytes+=Se.sigBytes},_process:function(Se){var ge=this._data,_e=ge.words,Ce=ge.sigBytes,he=this.blockSize,be=4*he,Ee=Ce/be;Ee=Se?ue.ceil(Ee):ue.max((0|Ee)-this._minBufferSize,0);var Ae=Ee*he,De=ue.min(4*Ae,Ce);if(Ae){for(var je=0;je<Ae;je+=he)this._doProcessBlock(_e,je);var Fe=_e.splice(0,Ae);ge.sigBytes-=De}return new b.init(Fe,De)},clone:function(){var Se=x.clone.call(this);return Se._data=this._data.clone(),Se},_minBufferSize:0}),ve=(ne.Hasher=le.extend({cfg:x.extend(),init:function(Se){this.cfg=this.cfg.extend(Se),this.reset()},reset:function(){le.reset.call(this),this._doReset()},update:function(Se){return this._append(Se),this._process(),this},finalize:function(Se){return Se&&this._append(Se),this._doFinalize()},blockSize:16,_createHelper:function(Se){return function(ge,_e){return new Se.init(_e).finalize(ge)}},_createHmacHelper:function(Se){return function(ge,_e){return new ve.HMAC.init(Se,_e).finalize(ge)}}}),te.algo={});return te}(Math);return de})},function(y,ie,fe){"use strict";function de(se,te){if(!(se instanceof te))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ue=function(){function se(te,ne){for(var x=0;x<ne.length;x++){var b=ne[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(te,b.key,b)}}return function(te,ne,x){return ne&&se(te.prototype,ne),x&&se(te,x),te}}(),ae=function(){function se(){de(this,se)}return ue(se,null,[{key:"detectIEVersion",value:function(){for(var te=4,ne=document.createElement("div"),x=ne.getElementsByTagName("i");ne.innerHTML="<!--[if gt IE "+te+"]><i></i><![endif]-->",x[0];)te++;return te>4&&te}},{key:"extend",value:function(te,ne){for(var x in ne)Object.prototype.hasOwnProperty.call(ne,x)&&ne[x]&&(te[x]=ne[x])}},{key:"isArray",value:function(te){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(te){return te=te.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(te)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(te)?"audio":/.bmp|.jpg|.jpeg|.png/.test(te)?"img":"other"}},{key:"isImage",value:function(te){return te=te.toLowerCase(),!!/.jpg|.jpeg|.png/.test(te)}},{key:"ISODateString",value:function(te){function ne(x){return x<10?"0"+x:x}return te.getUTCFullYear()+"-"+ne(te.getUTCMonth()+1)+"-"+ne(te.getUTCDate())+"T"+ne(te.getUTCHours())+":"+ne(te.getUTCMinutes())+":"+ne(te.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(te){return!!/^\d+$/.test(te)}}]),se}();ie.default=ae},function(y,ie,fe){(function(de,ue){y.exports=ie=ue(fe(0))})(0,function(de){return function(ue){function ae(ve,Se,ge,_e,Ce,he,be){var Ee=ve+(Se&ge|~Se&_e)+Ce+be;return(Ee<<he|Ee>>>32-he)+Se}function se(ve,Se,ge,_e,Ce,he,be){var Ee=ve+(Se&_e|ge&~_e)+Ce+be;return(Ee<<he|Ee>>>32-he)+Se}function te(ve,Se,ge,_e,Ce,he,be){var Ee=ve+(Se^ge^_e)+Ce+be;return(Ee<<he|Ee>>>32-he)+Se}function ne(ve,Se,ge,_e,Ce,he,be){var Ee=ve+(ge^(Se|~_e))+Ce+be;return(Ee<<he|Ee>>>32-he)+Se}var x=de,b=x.lib,ee=b.WordArray,E=b.Hasher,re=x.algo,ce=[];(function(){for(var ve=0;ve<64;ve++)ce[ve]=4294967296*ue.abs(ue.sin(ve+1))|0})();var le=re.MD5=E.extend({_doReset:function(){this._hash=new ee.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(ve,Se){for(var ge=0;ge<16;ge++){var _e=Se+ge,Ce=ve[_e];ve[_e]=16711935&(Ce<<8|Ce>>>24)|4278255360&(Ce<<24|Ce>>>8)}var he=this._hash.words,be=ve[Se+0],Ee=ve[Se+1],Ae=ve[Se+2],De=ve[Se+3],je=ve[Se+4],Fe=ve[Se+5],Re=ve[Se+6],qe=ve[Se+7],Je=ve[Se+8],He=ve[Se+9],ze=ve[Se+10],Qe=ve[Se+11],$e=ve[Se+12],ht=ve[Se+13],Ge=ve[Se+14],Ue=ve[Se+15],Ke=he[0],et=he[1],rt=he[2],Xe=he[3];Ke=ae(Ke,et,rt,Xe,be,7,ce[0]),Xe=ae(Xe,Ke,et,rt,Ee,12,ce[1]),rt=ae(rt,Xe,Ke,et,Ae,17,ce[2]),et=ae(et,rt,Xe,Ke,De,22,ce[3]),Ke=ae(Ke,et,rt,Xe,je,7,ce[4]),Xe=ae(Xe,Ke,et,rt,Fe,12,ce[5]),rt=ae(rt,Xe,Ke,et,Re,17,ce[6]),et=ae(et,rt,Xe,Ke,qe,22,ce[7]),Ke=ae(Ke,et,rt,Xe,Je,7,ce[8]),Xe=ae(Xe,Ke,et,rt,He,12,ce[9]),rt=ae(rt,Xe,Ke,et,ze,17,ce[10]),et=ae(et,rt,Xe,Ke,Qe,22,ce[11]),Ke=ae(Ke,et,rt,Xe,$e,7,ce[12]),Xe=ae(Xe,Ke,et,rt,ht,12,ce[13]),rt=ae(rt,Xe,Ke,et,Ge,17,ce[14]),et=ae(et,rt,Xe,Ke,Ue,22,ce[15]),Ke=se(Ke,et,rt,Xe,Ee,5,ce[16]),Xe=se(Xe,Ke,et,rt,Re,9,ce[17]),rt=se(rt,Xe,Ke,et,Qe,14,ce[18]),et=se(et,rt,Xe,Ke,be,20,ce[19]),Ke=se(Ke,et,rt,Xe,Fe,5,ce[20]),Xe=se(Xe,Ke,et,rt,ze,9,ce[21]),rt=se(rt,Xe,Ke,et,Ue,14,ce[22]),et=se(et,rt,Xe,Ke,je,20,ce[23]),Ke=se(Ke,et,rt,Xe,He,5,ce[24]),Xe=se(Xe,Ke,et,rt,Ge,9,ce[25]),rt=se(rt,Xe,Ke,et,De,14,ce[26]),et=se(et,rt,Xe,Ke,Je,20,ce[27]),Ke=se(Ke,et,rt,Xe,ht,5,ce[28]),Xe=se(Xe,Ke,et,rt,Ae,9,ce[29]),rt=se(rt,Xe,Ke,et,qe,14,ce[30]),et=se(et,rt,Xe,Ke,$e,20,ce[31]),Ke=te(Ke,et,rt,Xe,Fe,4,ce[32]),Xe=te(Xe,Ke,et,rt,Je,11,ce[33]),rt=te(rt,Xe,Ke,et,Qe,16,ce[34]),et=te(et,rt,Xe,Ke,Ge,23,ce[35]),Ke=te(Ke,et,rt,Xe,Ee,4,ce[36]),Xe=te(Xe,Ke,et,rt,je,11,ce[37]),rt=te(rt,Xe,Ke,et,qe,16,ce[38]),et=te(et,rt,Xe,Ke,ze,23,ce[39]),Ke=te(Ke,et,rt,Xe,ht,4,ce[40]),Xe=te(Xe,Ke,et,rt,be,11,ce[41]),rt=te(rt,Xe,Ke,et,De,16,ce[42]),et=te(et,rt,Xe,Ke,Re,23,ce[43]),Ke=te(Ke,et,rt,Xe,He,4,ce[44]),Xe=te(Xe,Ke,et,rt,$e,11,ce[45]),rt=te(rt,Xe,Ke,et,Ue,16,ce[46]),et=te(et,rt,Xe,Ke,Ae,23,ce[47]),Ke=ne(Ke,et,rt,Xe,be,6,ce[48]),Xe=ne(Xe,Ke,et,rt,qe,10,ce[49]),rt=ne(rt,Xe,Ke,et,Ge,15,ce[50]),et=ne(et,rt,Xe,Ke,Fe,21,ce[51]),Ke=ne(Ke,et,rt,Xe,$e,6,ce[52]),Xe=ne(Xe,Ke,et,rt,De,10,ce[53]),rt=ne(rt,Xe,Ke,et,ze,15,ce[54]),et=ne(et,rt,Xe,Ke,Ee,21,ce[55]),Ke=ne(Ke,et,rt,Xe,Je,6,ce[56]),Xe=ne(Xe,Ke,et,rt,Ue,10,ce[57]),rt=ne(rt,Xe,Ke,et,Re,15,ce[58]),et=ne(et,rt,Xe,Ke,ht,21,ce[59]),Ke=ne(Ke,et,rt,Xe,je,6,ce[60]),Xe=ne(Xe,Ke,et,rt,Qe,10,ce[61]),rt=ne(rt,Xe,Ke,et,Ae,15,ce[62]),et=ne(et,rt,Xe,Ke,He,21,ce[63]),he[0]=he[0]+Ke|0,he[1]=he[1]+et|0,he[2]=he[2]+rt|0,he[3]=he[3]+Xe|0},_doFinalize:function(){var ve=this._data,Se=ve.words,ge=8*this._nDataBytes,_e=8*ve.sigBytes;Se[_e>>>5]|=128<<24-_e%32;var Ce=ue.floor(ge/4294967296),he=ge;Se[15+(_e+64>>>9<<4)]=16711935&(Ce<<8|Ce>>>24)|4278255360&(Ce<<24|Ce>>>8),Se[14+(_e+64>>>9<<4)]=16711935&(he<<8|he>>>24)|4278255360&(he<<24|he>>>8),ve.sigBytes=4*(Se.length+1),this._process();for(var be=this._hash,Ee=be.words,Ae=0;Ae<4;Ae++){var De=Ee[Ae];Ee[Ae]=16711935&(De<<8|De>>>24)|4278255360&(De<<24|De>>>8)}return be},clone:function(){var ve=E.clone.call(this);return ve._hash=this._hash.clone(),ve}});x.MD5=E._createHelper(le),x.HmacMD5=E._createHmacHelper(le)}(Math),de.MD5})},function(y,ie,fe){"use strict";Object.defineProperty(ie,"__esModule",{value:!0}),ie.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},ie.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},ie.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(y,ie,fe){"use strict";function de(le){return le&&le.__esModule?le:{default:le}}function ue(le,ve){if(!(le instanceof ve))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ae=function(){function le(ve,Se){for(var ge=0;ge<Se.length;ge++){var _e=Se[ge];_e.enumerable=_e.enumerable||!1,_e.configurable=!0,"value"in _e&&(_e.writable=!0),Object.defineProperty(ve,_e.key,_e)}}return function(ve,Se,ge){return Se&&le(ve.prototype,Se),ge&&le(ve,ge),ve}}(),se=fe(5),te=de(se),ne=fe(25),x=de(ne),b=fe(6),ee=de(b),E=fe(7),re=de(E),ce=function(){function le(ve){ue(this,le);var Se=re.default.os.name,ge=re.default.os.version||"",_e=re.default.browser.name,Ce=re.default.browser.version||"",he=window.location.href,be="";he&&(be=re.default.getHost(he));var Ee="pc";re.default.os.ipad?Ee="pad":(re.default.os.iphone||re.default.os.android)&&(Ee="phone"),this._ri=te.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:ee.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:le.getUuid(),os:Se,ov:ge,et:_e,ev:Ce,uat:navigator.userAgent,app_n:be,tt:Ee,dm:"h5",ut:""}}return ae(le,[{key:"log",value:function(ve,Se){Se&&Se.ri?(this._ri=Se.ri,delete Se.ri):this._ri=te.default.create(),Se&&Se.ut&&(this.initParam.ut=Se.ut,delete Se.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=ve=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=ve;var ge=[];if(Se)for(var _e in Se)ge.push(_e+"="+Se[_e]);var Ce=ge.join("&");this.initParam.args=encodeURIComponent(Ce==""?"0":Ce);var he=[];for(var _e in this.initParam)he.push(_e+"="+this.initParam[_e]);var be=he.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(be):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+be}}],[{key:"getUuid",value:function(){var ve=x.default.get("p_h5_upload_u");return ve||(ve=te.default.create(),x.default.set("p_h5_upload_u",ve,730)),ve}},{key:"getClientId",value:function(){return x.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(ve){return ve||(ve=te.default.create()),x.default.set("p_h5_upload_clientId",ve,730),ve}}]),le}();ie.default=ce},function(y,ie,fe){"use strict";function de(se,te){if(!(se instanceof te))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ue=function(){function se(te,ne){for(var x=0;x<ne.length;x++){var b=ne[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(te,b.key,b)}}return function(te,ne,x){return ne&&se(te.prototype,ne),x&&se(te,x),te}}(),ae=function(){function se(){de(this,se)}return ue(se,null,[{key:"create",value:function(te,ne){var x,b="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),ee=[];if(ne=ne||b.length,te)for(x=0;x<te;x++)ee[x]=b[0|Math.random()*ne];else{var E;for(ee[8]=ee[13]=ee[18]=ee[23]="-",ee[14]="4",x=0;x<36;x++)ee[x]||(E=0|16*Math.random(),ee[x]=b[x==19?3&E|8:E])}return ee.join("")}}]),se}();ie.default=ae},function(y,ie,fe){"use strict";Object.defineProperty(ie,"__esModule",{value:!0});var de={version:"1.5.0"};ie.default=de},function(y,ie,fe){"use strict";function de(b,ee){if(!(b instanceof ee))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ue=function(){function b(ee,E){for(var re=0;re<E.length;re++){var ce=E[re];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(ee,ce.key,ce)}}return function(ee,E,re){return E&&b(ee.prototype,E),re&&b(ee,re),ee}}(),ae=function(b){var ee=navigator.userAgent,E="other";if(b.ios)return"iOS";if(b.android)return"android";if(ee.indexOf("Baiduspider")>-1)return"Baiduspider";if(ee.indexOf("PlayStation")>-1)return"PS4";var re=navigator.platform=="Win32"||navigator.platform=="Windows"||ee.indexOf("Windows")>-1,ce=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return ce&&(E="macOS"),navigator.platform=="X11"&&!re&&!ce&&(E="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(E="Linux"),re?"windows":E},se=function(){var b=navigator.userAgent,ee="";return(b.indexOf("Windows NT 5.0")>-1||b.indexOf("Windows 2000")>-1)&&(ee="2000"),(b.indexOf("Windows NT 5.1")>-1||b.indexOf("Windows XP")>-1)&&(ee="XP"),(b.indexOf("Windows NT 5.2")>-1||b.indexOf("Windows 2003")>-1)&&(ee="2003"),(b.indexOf("Windows NT 6.0")>-1||b.indexOf("Windows Vista")>-1)&&(ee="Vista"),(b.indexOf("Windows NT 6.1")>-1||b.indexOf("Windows 7")>-1)&&(ee="7"),(b.indexOf("Windows NT 6.2")>-1||b.indexOf("Windows 8")>-1)&&(ee="8"),(b.indexOf("Windows NT 6.3")>-1||b.indexOf("Windows 8.1")>-1)&&(ee="8.1"),(b.indexOf("Windows NT 10")>-1||b.indexOf("Windows 10")>-1)&&(ee="10"),ee},te=function(b){var ee=navigator.userAgent.toLowerCase();return b.chrome?"Chrome":b.firefox?"Firefox":b.safari?"Safari":b.webview?"webview":b.ie?/edge/.test(ee)?"Edge":"IE":/baiduspider/.test(ee)?"Baiduspider":/ucweb/.test(ee)||/UCBrowser/.test(ee)?"UC":/opera/.test(ee)?"Opera":/ucweb/.test(ee)?"UC":/360se/.test(ee)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(ee)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(ee)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(ee)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(ee)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(ee)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(ee)?"PS4\u6D4F\u89C8\u5668":void 0},ne=function(){var b={},ee={},E=navigator.userAgent,re=navigator.platform,ce=E.match(/Web[kK]it[\/]{0,1}([\d.]+)/),le=E.match(/(Android);?[\s\/]+([\d.]+)?/),ve=!!E.match(/\(Macintosh\; Intel /),Se=E.match(/(iPad).*OS\s([\d_]+)/),ge=E.match(/(iPod)(.*OS\s([\d_]+))?/),_e=!Se&&E.match(/(iPhone\sOS)\s([\d_]+)/),Ce=E.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),he=/Win\d{2}|Windows/.test(re),be=E.match(/Windows Phone ([\d.]+)/),Ee=Ce&&E.match(/TouchPad/),Ae=E.match(/Kindle\/([\d.]+)/),De=E.match(/Silk\/([\d._]+)/),je=E.match(/(BlackBerry).*Version\/([\d.]+)/),Fe=E.match(/(BB10).*Version\/([\d.]+)/),Re=E.match(/(RIM\sTablet\sOS)\s([\d.]+)/),qe=E.match(/PlayBook/),Je=E.match(/Chrome\/([\d.]+)/)||E.match(/CriOS\/([\d.]+)/),He=E.match(/Firefox\/([\d.]+)/),ze=E.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Qe=E.match(/MSIE\s([\d.]+)/)||E.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),$e=!Je&&E.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),ht=$e||E.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((ee.webkit=!!ce)&&(ee.version=ce[1]),le&&(b.android=!0,b.version=le[2]),_e&&!ge&&(b.ios=b.iphone=!0,b.version=_e[2].replace(/_/g,".")),Se&&(b.ios=b.ipad=!0,b.version=Se[2].replace(/_/g,".")),ge&&(b.ios=b.ipod=!0,b.version=ge[3]?ge[3].replace(/_/g,"."):null),be&&(b.wp=!0,b.version=be[1]),Ce&&(b.webos=!0,b.version=Ce[2]),Ee&&(b.touchpad=!0),je&&(b.blackberry=!0,b.version=je[2]),Fe&&(b.bb10=!0,b.version=Fe[2]),Re&&(b.rimtabletos=!0,b.version=Re[2]),qe&&(ee.playbook=!0),Ae&&(b.kindle=!0,b.version=Ae[1]),De&&(ee.silk=!0,ee.version=De[1]),!De&&b.android&&E.match(/Kindle Fire/)&&(ee.silk=!0),Je&&(ee.chrome=!0,ee.version=Je[1]),He&&(ee.firefox=!0,ee.version=He[1]),ze&&(b.firefoxos=!0,b.version=ze[1]),Qe&&(ee.ie=!0,ee.version=Qe[1]),ht&&(ve||b.ios||he||le)&&(ee.safari=!0,b.ios||(ee.version=ht[1])),$e&&(ee.webview=!0),ve){var Ge=E.match(/[\d]*_[\d]*_[\d]*/);Ge&&Ge.length>0&&Ge[0]&&(b.version=Ge[0].replace(/_/g,"."))}return b.tablet=!!(Se||qe||le&&!E.match(/Mobile/)||He&&E.match(/Tablet/)||Qe&&!E.match(/Phone/)&&E.match(/Touch/)),b.phone=!(b.tablet||b.ipod||!(le||_e||Ce||je||Fe||Je&&E.match(/Android/)||Je&&E.match(/CriOS\/([\d.]+)/)||He&&E.match(/Mobile/)||Qe&&E.match(/Touch/))),b.pc=!b.tablet&&!b.phone,ve?b.name="macOS":he?(b.name="windows",b.version=se()):b.name=ae(b),ee.name=te(ee),{os:b,browser:ee}}(),x=function(){function b(){de(this,b)}return ue(b,null,[{key:"getHost",value:function(ee){var ce="";if(ee===void 0||ee==null||ee=="")return"";var E=ee.indexOf("//"),re=ee;E>-1&&(re=ee.substring(E+2));var ce=re,le=re.split("/");return le&&le.length>0&&(ce=le[0]),le=ce.split(":"),le&&le.length>0&&(ce=le[0]),ce}},{key:"os",get:function(){return ne.os}},{key:"browser",get:function(){var ee=ne.browser;return ee.name||(ee.name=te()),ee}}]),b}();ie.default=x},function(y,ie,fe){"use strict";function de(se,te){if(!(se instanceof te))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ue=function(){function se(te,ne){for(var x=0;x<ne.length;x++){var b=ne[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(te,b.key,b)}}return function(te,ne,x){return ne&&se(te.prototype,ne),x&&se(te,x),te}}(),ae=function(){function se(){de(this,se)}return ue(se,null,[{key:"get",value:function(te,ne,x,b,ee){var E;x=x||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(re){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(re){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(re){}throw new Error("This browser does not support XMLHttpRequest.")}),E=new XMLHttpRequest,E.onreadystatechange=function(){E.readyState===4&&(E.status===200?ne(E.responseText):x(E.responseText))};try{b===void 0&&(b=!0),E.open("GET",te,b),ee&&(E.withCredentials=!0)}catch(re){return void x(re)}try{E.send()}catch(re){x(re)}}}]),se}();ie.default=ae},function(y,ie,fe){"use strict";function de(ne,x){if(!(ne instanceof x))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ue=function(){function ne(x,b){for(var ee=0;ee<b.length;ee++){var E=b[ee];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(x,E.key,E)}}return function(x,b,ee){return b&&ne(x.prototype,b),ee&&ne(x,ee),x}}(),ae=fe(27),se=fe(30),te=(fe(10),function(){function ne(){de(this,ne)}return ue(ne,null,[{key:"randomUUID",value:function(){for(var x=[],b="0123456789abcdef",ee=0;ee<36;ee++)x[ee]=b.substr(Math.floor(16*Math.random()),1);return x[14]="4",x[19]=b.substr(3&x[19]|8,1),x[8]=x[13]=x[18]=x[23]="-",x.join("")}},{key:"aliyunEncodeURI",value:function(x){var b=encodeURIComponent(x);return b=b.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(x,b,ee){if(!x)throw new Error("PrismPlayer Error: vid should not be null!");var E=[];for(var re in x)E.push(re);for(var ce=E.sort(),le="",ve=ce.length,re=0;re<ve;re++){var Se=ne.aliyunEncodeURI(ce[re]),ge=ne.aliyunEncodeURI(x[ce[re]]);le==""?le=Se+b+ge:le+=ee+Se+b+ge}return le}},{key:"makeChangeSiga",value:function(x,b){if(!x)throw new Error("PrismPlayer Error: vid should not be null!");return se.stringify(ae("GET&"+ne.aliyunEncodeURI("/")+"&"+ne.aliyunEncodeURI(ne.makeUTF8sort(x,"=","&")),b+"&"))}}]),ne}());ie.default=te},function(y,ie,fe){(function(de,ue){y.exports=ie=ue(fe(0))})(0,function(de){return de.enc.Utf8})},function(y,ie,fe){(function(de,ue){y.exports=ie=ue(fe(0))})(0,function(de){return de.enc.Hex})},function(y,ie,fe){y.exports=fe(13)},function(y,ie,fe){"use strict";var de,ue,ae=fe(14),se=function(ne){return ne&&ne.__esModule?ne:{default:ne}}(ae),te={Vod:se.default};de=[],(ue=function(){return te}.apply(ie,de))!==void 0&&(y.exports=ue),window.AliyunUpload=te,rn.exports=AliyunUpload},function(y,ie,fe){"use strict";function de(Fe){return Fe&&Fe.__esModule?Fe:{default:Fe}}function ue(Fe,Re){if(!(Fe instanceof Re))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ae=function(){function Fe(Re,qe){for(var Je=0;Je<qe.length;Je++){var He=qe[Je];He.enumerable=He.enumerable||!1,He.configurable=!0,"value"in He&&(He.writable=!0),Object.defineProperty(Re,He.key,He)}}return function(Re,qe,Je){return qe&&Fe(Re.prototype,qe),Je&&Fe(Re,Je),Re}}(),se=fe(15),te=fe(3),ne=fe(16),x=de(ne),b=fe(18),ee=de(b),E=fe(24),re=de(E),ce=fe(4),le=de(ce),ve=fe(1),Se=de(ve),ge=fe(5),_e=de(ge),Ce=fe(26),he=de(Ce),be=fe(31),Ee=de(be),Ae=fe(32),De=de(Ae),je=(fe(2),function(){function Fe(Re){ue(this,Fe),this.options=Re,this.options.partSize=this.options.partSize||te.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||te.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=se.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new le.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=se.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return ae(Fe,[{key:"init",value:function(Re,qe,Je,He){return this._retryCount=0,!(Je&&!He||!Je&&He)&&!(Re&&!qe||!Re&&qe)&&(this._ossCreditor.accessKeyId=Re,this._ossCreditor.accessKeySecret=qe,this._ossCreditor.securityToken=Je,this._ossCreditor.expireTime=He,!0)}},{key:"addFile",value:function(Re,qe,Je,He,ze,Qe){if(!Re)return!1;if(Re.size==0)try{this.options.onUploadFailed({file:Re},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(Ue){console.log(Ue)}for(var $e=(this.options,0);$e<this._uploadList.length;$e++)if(this._uploadList[$e].file==Re)return!1;var ht=new Object;if(ht.file=Re,ht._endpoint=qe,ht._bucket=Je,ht._object=He,ht.state=se.UPLOADSTATE.INIT,ht.isImage=Se.default.isImage(Re.name),!ht.isImage&&this.options.enableUploadProgress){var Ge=this;De.default.getMd5(Re,function(Ue){ht.fileHash=Ue;var Ke=Ge._getCheckoutpoint(ht);Ge.options.localCheckpoint||Ke||Ge._getCheckoutpointFromCloud(ht,function(et){if(et.UploadPoint){var rt=JSON.parse(et.UploadPoint);rt.loaded!=1&&(ht.checkpoint=rt.checkpoint,ht.loaded=rt.loaded,ht.videoId=et.VideoId,Ge._saveCheckoutpoint(ht,rt.checkpoint))}},function(et){try{if((et=JSON.parse(et))&&et.Code=="InvalidParameter"&&et.Message.indexOf("UserId")>0){Ge._invalidUserId=!0;var rt=et.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(rt)}}catch(Xe){console.log(Xe)}})})}ze&&(ht.videoInfo=ze?JSON.parse(ze).Vod:{},ht.userData=ee.default.encode(ze)),ht.ri=_e.default.create(),this._uploadList.push(ht),this._reportLog("20001",ht,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(ht)}catch(Ue){console.log(Ue)}return!0}},{key:"deleteFile",value:function(Re){return!!this.cancelFile(Re)&&(this._uploadList.splice(Re,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(Re){if(this.options,Re<0||Re>=this._uploadList.length)return!1;var qe=this._uploadList[Re];if(Re==this._curIndex&&qe.state==se.UPLOADSTATE.UPLOADING){qe.state=se.UPLOADSTATE.CANCELED;var Je=this._getCheckoutpoint(qe);Je&&Je.checkpoint&&(Je=Je.checkpoint),Je&&this._ossUpload.abort(qe),this._removeCheckoutpoint(qe),this.nextUpload()}else qe.state!=se.UPLOADSTATE.SUCCESS&&(qe.state=se.UPLOADSTATE.CANCELED);return this._reportLog("20008",qe),!0}},{key:"resumeFile",value:function(Re){if(this.options,Re<0||Re>=this._uploadList.length)return!1;var qe=this._uploadList[Re];return qe.state==se.UPLOADSTATE.CANCELED&&(qe.state=se.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(Re){return this._getCheckoutpoint({file:Re})}},{key:"startUpload",value:function(Re){if(this._retryCount=0,this.options,this._state==se.VODSTATE.START||this._state==se.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=se.VODSTATE.END);var qe=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(qe),this._state=se.VODSTATE.START}},{key:"nextUpload",value:function(){var Re=this.options;if(this._state==se.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var qe=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(qe)}else{this._state=se.VODSTATE.END;try{Re.onUploadEnd&&Re.onUploadEnd(qe)}catch(Je){console.log(Je)}}}},{key:"clear",value:function(Re){for(var qe=this.options,Je=0,He=0;He<this._uploadList.length;He++)qe.uploadList[He].state==se.UPLOADSTATE.SUCCESS&&Je++,this._uploadList[He].state==Re&&(qe.uploadList.splice(He,1),He--);qe.onClear&&qe.onClear(qe.uploadList.length,Je)}},{key:"stopUpload",value:function(){if((this._state==se.VODSTATE.START||this._state==se.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var Re=this._uploadList[this._curIndex];this._state=se.VODSTATE.STOP,Re.state=se.UPLOADSTATE.STOPED,this._changeState(Re,se.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(Re){var qe=this;if(!Re)return!1;var Je=JSON.parse(ee.default.decode(Re));return!!(Je.AccessKeyId&&Je.AccessKeySecret&&Je.SecurityToken&&Je.Expiration)&&qe.resumeUploadWithToken(Je.AccessKeyId,Je.AccessKeySecret,Je.SecurityToken,Je.Expiration)}},{key:"resumeUploadWithToken",value:function(Re,qe,Je,He){if(this.options,!(Re&&qe&&Je&&He)||this._state!=se.VODSTATE.EXPIRE||this._curIndex==-1)return!1;var ze="";return this._uploadList.length>this._curIndex&&(ze=this._uploadList[this._curIndex]),ze&&(this.init(Re,qe,Je,He),this._state=se.VODSTATE.START,this._ossUpload=null,this._uploadCore(ze,ze.retry),ze.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(Re,qe,Je){if(this._curIndex==-1||this._state!=se.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var He=this._uploadList[this._curIndex];He.object?this._refreshSTSTokenUpload(He,Re,qe,Je):this.setSTSToken(He,Re,qe,Je)}}},{key:"setSTSTokenDirectlyUpload",value:function(Re,qe,Je,He,ze){if(!(qe&&Je&&He&&ze))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var Qe=Re;this.init(qe,Je,He,ze),Qe.endpoint=Qe._endpoint,Qe.bucket=Qe._bucket,Qe.object=Qe._object,this._ossUpload=null,this._uploadCore(Qe,Re.retry),Re.retry=!1}},{key:"setSTSToken",value:function(Re,qe,Je,He){if(!qe||!Je||!He)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var ze=Re.videoInfo,Qe={accessKeyId:qe,securityToken:He,accessKeySecret:Je,fileName:Re.file.name,title:ze.Title,requestId:Re.ri,region:this.options.region};ze.ImageType&&(Qe.imageType=ze.ImageType),ze.ImageExt&&(Qe.imageExt=ze.ImageExt),ze.FileSize&&(Qe.fileSize=ze.FileSize),ze.Description&&(Qe.description=ze.Description),ze.CateId&&(Qe.cateId=ze.CateId),ze.Tags&&(Qe.tags=ze.Tags),ze.TemplateGroupId&&(Qe.templateGroupId=ze.TemplateGroupId),ze.StorageLocation&&(Qe.storageLocation=ze.StorageLocation),ze.CoverURL&&(Qe.coverUrl=ze.CoverURL),ze.TransCodeMode&&(Qe.transCodeMode=ze.TransCodeMode),ze.UserData&&(Qe.userData=ze.UserData);var $e=this,ht="getUploadAuth";Re.videoId?(Qe.videoId=Re.videoId,ht="refreshUploadAuth"):Re.isImage&&(ht="getImageUploadAuth"),he.default[ht](Qe,function(Ge){Re.videoId=Ge.VideoId?Ge.VideoId:Re.videoId,$e.setUploadAuthAndAddress(Re,Ge.UploadAuth,Ge.UploadAddress),$e._state=se.VODSTATE.START},function(Ge){$e._error(Re,{name:Ge.Code,code:Ge.Code,message:Ge.Message,requestId:Ge.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(Re,qe,Je,He){if(!Re||!qe||!Je)return!1;var ze=JSON.parse(ee.default.decode(qe));if(!(ze.AccessKeyId&&ze.AccessKeySecret&&ze.SecurityToken&&ze.Expiration))return console.error("uploadauth is invalid"),!1;var Qe={},$e=Re;if(Je){if(Qe=JSON.parse(ee.default.decode(Je)),!Qe.Endpoint||!Qe.Bucket||!Qe.FileName)return console.error("uploadAddress is invalid"),!1}else Qe.Endpoint=$e.endpoint,Qe.Bucket=$e.bucket,Qe.FileName=$e.object;this._ut="vod",this._uploadWay="vod",this.options.region=ze.Region||this.options.region,this.init(ze.AccessKeyId,ze.AccessKeySecret,ze.SecurityToken,ze.Expiration),$e.endpoint=$e._endpoint?$e._endpoint:Qe.Endpoint,$e.bucket=$e._bucket?$e._bucket:Qe.Bucket,$e.object=$e._object?$e._object:Qe.FileName,$e.region=this.options.region,He&&($e.videoId=He),this._ossUpload=null,this._uploadCore($e,Re.retry),Re.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(Re,qe,Je,He){if(!qe||!Je||!He)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var ze={accessKeyId:qe,securityToken:He,accessKeySecret:Je,videoId:Re.object,requestId:Re.ri,region:this.options.region},Qe=this,$e="refreshUploadAuth";Re.isImage&&($e="getImageUploadAuth"),he.default[$e](ze,function(ht){Qe.setUploadAuthAndAddress(Re,ht.UploadAuth,UploadAddress),Qe._state=se.VODSTATE.START},function(ht){Qe._error(Re,{name:ht.Code,code:ht.Code,message:ht.Message,requestId:ht.RequestId})})}},{key:"_upload",value:function(Re){var qe=arguments.length>1&&arguments[1]!==void 0&&arguments[1],Je=this.options;if(Re.retry=qe,Je.onUploadstarted&&!qe)try{var He=this._getCheckoutpoint(Re);He&&He.state!=se.UPLOADSTATE.UPLOADING&&(Re.checkpoint=He,Re.videoId=He.videoId),Je.onUploadstarted(Re)}catch(ze){console.log(ze)}}},{key:"_uploadCore",value:function(Re){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(Re.state=se.UPLOADSTATE.UPLOADING,!this._ossUpload){Re.endpoint=Re.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var qe=this;this._ossUpload=new x.default({bucket:Re.bucket,endpoint:Re.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(Ge,Ue){qe._error.call(qe,Ge,Ue)},oncomplete:function(Ge,Ue){qe._complete.call(qe,Ge,Ue)},onprogress:function(Ge,Ue,Ke){qe._progress.call(qe,Ge,Ue,Ke)}})}var Je=Se.default.getFileType(Re.file.name),He=this._getCheckoutpoint(Re),ze="",Qe="";He&&He.checkpoint&&(Qe=He.state,ze=He.videoId,He=He.checkpoint),He&&ze==Re.videoId&&Qe!=se.UPLOADSTATE.UPLOADING&&(He.file=Re.file,Re.checkpoint=He,He.uploadId);var $e=this._adjustPartSize(Re);this._reportLog("20002",Re,{ft:Je,fs:Re.file.size,bu:Re.bucket,ok:Re.object,vid:Re.videoId||"",fn:Re.file.name,fw:null,fh:null,ps:$e});var ht={headers:{"x-oss-notification":Re.userData?Re.userData:""},partSize:$e,parallel:this.options.parallel};this._ossUpload.upload(Re,ht)}},{key:"_findUploadIndex",value:function(){for(var Re=-1,qe=0;qe<this._uploadList.length;qe++)if(this._uploadList[qe].state==se.UPLOADSTATE.INIT){Re=qe;break}return Re}},{key:"_error",value:function(Re,qe){if(qe.name=="cancel")try{this.options.onUploadCanceled(Re,qe)}catch(He){console.log(He)}else{if(qe.message.indexOf("InvalidAccessKeyIdError")>0||qe.name=="SignatureDoesNotMatchError"||qe.code=="SecurityTokenExpired"||qe.code=="InvalidSecurityToken.Expired"||qe.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=se.VODSTATE.EXPIRE,Re.state=se.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(Re,qe)}catch(He){console.log(He)}}return}if((qe.name=="RequestTimeoutError"||qe.name=="ConnectionTimeout"||qe.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var Je=this;return setTimeout(function(){Je._uploadCore(Re,!0)},1e3*Je._retryDuration),void this._retryCount++}qe.name=="NoSuchUploadError"&&this._removeCheckoutpoint(Re),this._handleError(Re,qe)}}},{key:"_handleError",value:function(Re,qe){var Je=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],He=se.UPLOADSTATE.FAIlURE;if(Re.state!=se.UPLOADSTATE.CANCELED&&(Re.state=se.UPLOADSTATE.FAIlURE,this._state=se.VODSTATE.FAILURE,this.options.onUploadFailed&&qe&&qe.code&&qe.message))try{this.options.onUploadFailed(Re,qe.code,qe.message)}catch(Qe){console.log(Qe)}if(Je&&this._changeState(Re,He),this._reportLog("20006",Re,{code:qe.name,message:qe.message,requestId:qe.requestId,fs:Re.file.size,bu:Re.bucket,ok:Re.object,fn:Re.file.name}),this._reportLog("20004",Re,{requestId:qe.requestId,fs:Re.file.size,bu:Re.bucket,ok:Re.object,fn:Re.file.name}),Re.ri=_e.default.create(),this._findUploadIndex()!=-1){var ze=this;this._state=se.VODSTATE.START,setTimeout(function(){ze.nextUpload()},100)}}},{key:"_complete",value:function(Re,qe){if(Re.state=se.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(Re)}catch(ze){console.log(ze)}var Je=0;qe&&qe.res&&qe.res.headers&&(Je=qe.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(Re);var He=this;setTimeout(function(){He.nextUpload()},100),this._retryCount=0,this._reportLog("20003",Re,{requestId:Je})}},{key:"_progress",value:function(Re,qe,Je){if(this.options.onUploadProgress)try{Re.loaded=qe.loaded,this.options.onUploadProgress(Re,qe.total,qe.loaded)}catch(Ue){console.log(Ue)}var He=qe.checkpoint,ze=0;He&&(Re.checkpoint=He,this._saveCheckoutpoint(Re,He,se.UPLOADSTATE.UPLOADING),ze=He.uploadId),this._retryCount=0;var Qe=this._getPortNumber(He),$e=0;if(Je&&Je.headers&&($e=Je.headers["x-oss-request-id"]),qe.loaded!=0&&this._reportLog("20007",Re,{pn:Qe,requestId:$e}),qe.loaded!=1&&this._reportLog("20005",Re,{UploadId:ze,pn:Qe+1,pr:Re.retry?1:0,fs:Re.file.size,bu:Re.bucket,ok:Re.object,fn:Re.file.name}),!this._invalidUserId&&!Re.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var ht={file:Re.file,checkpoint:qe,userId:this.options.userId,videoId:Re.videoId,region:this.options.region,fileHash:Re.fileHash};try{var Ge=this;Ee.default.upload(ht,function(){},function(Ue){if((Ue=JSON.parse(Ue))&&Ue.Code=="InvalidParameter"&&Ue.Message.indexOf("UserId")>0){Ge._invalidUserId=!0;var Ke=Ue.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(Ke)}})}catch(Ue){console.log(Ue)}}}},{key:"_getPortNumber",value:function(Re){if(Re){var qe=Re.doneParts;if(qe&&qe.length>0)return qe[qe.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(Re){var qe=this._getCheckoutpointKey(Re);re.default.remove(qe)}},{key:"_getCheckoutpoint",value:function(Re){var qe=this._getCheckoutpointKey(Re),Je=re.default.get(qe);if(Je)try{return JSON.parse(Je)}catch(He){}return""}},{key:"_saveCheckoutpoint",value:function(Re,qe,Je){if(qe){var He=this._getCheckoutpointKey(Re),ze=Re.file,Qe={fileName:ze.name,lastModified:ze.lastModified,size:ze.size,object:Re.object,videoId:Re.videoId,bucket:Re.bucket,endpoint:Re.endpoint,checkpoint:qe,loaded:Re.loaded,state:Je};re.default.set(He,JSON.stringify(Qe))}}},{key:"_changeState",value:function(Re,qe){var Je=this._getCheckoutpoint(Re);Je&&((this._onbeforeunload=!0)&&(qe=se.UPLOADSTATE.STOPED),this._saveCheckoutpoint(Re,Je.checkpoint,qe))}},{key:"_getCheckoutpointKey",value:function(Re){return"upload_"+Re.file.lastModified+"_"+Re.file.name+"_"+Re.file.size}},{key:"_getCheckoutpointFromCloud",value:function(Re,qe,Je){var He={userId:this.options.userId,uploadInfoList:[{FileName:Re.file.name,FileSize:Re.file.size,FileCreateTime:Re.file.lastModified,FileHash:Re.fileHash}],region:this.options.region};Ee.default.get(He,function(ze){qe(ze)},Je)}},{key:"_reportLog",value:function(Re,qe,Je){Je||(Je={}),Je.ri=qe.ri,this._ut&&(Je.ut=this._ut),this._log.log(Re,Je)}},{key:"_initEvent",value:function(){var Re=this;window&&(window.onbeforeunload=function(qe){if(Re._onbeforeunload=!0,Re._curIndex!=-1&&Re._uploadList.length>Re._curIndex){var Je=Re._uploadList[Re._curIndex];Re._changeState(Je,se.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var Re=0;Re<this._uploadList.length;Re++){var qe=this._uploadList[Re];qe.state!=se.UPLOADSTATE.FAIlURE&&qe.state!=se.UPLOADSTATE.STOPED||(qe.state=se.UPLOADSTATE.INIT)}this._state=se.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(Re){return Re.file.size/this.options.partSize>1e4?Re.file.size/9999:this.options.partSize}}]),Fe}());ie.default=je},function(y,ie,fe){"use strict";Object.defineProperty(ie,"__esModule",{value:!0}),ie.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},ie.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(y,ie,fe){"use strict";function de(b){return b&&b.__esModule?b:{default:b}}function ue(b,ee){if(!(b instanceof ee))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ae=function(){function b(ee,E){for(var re=0;re<E.length;re++){var ce=E[re];ce.enumerable=ce.enumerable||!1,ce.configurable=!0,"value"in ce&&(ce.writable=!0),Object.defineProperty(ee,ce.key,ce)}}return function(ee,E,re){return E&&b(ee.prototype,E),re&&b(ee,re),ee}}(),se=fe(3),te=fe(17),ne=(de(te),fe(1)),x=(de(ne),function(){function b(ee,E){if(ue(this,b),ee){this._config=ee,this.create(this._config),this._uploadInfo=null,this._callback={};var re=function(){};this._callback.onerror=E.onerror||re,this._callback.oncomplete=E.oncomplete||re,this._callback.onprogress=E.onprogress||re}}return ae(b,[{key:"create",value:function(ee){if(ee.endpoint=ee.endpoint||this._config.endpoint,ee.bucket=ee.bucket||this._config.bucket,!(ee.AccessKeyId&&ee.AccessKeySecret&&ee.endpoint&&ee.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var E={accessKeyId:ee.AccessKeyId,accessKeySecret:ee.AccessKeySecret,stsToken:ee.SecurityToken,endpoint:ee.endpoint||this._config.endpoint,bucket:ee.bucket||this._config.bucket,secure:!0,cname:ee.cname};ee.timeout&&(E.timeout=ee.timeout),this.oss=new OSS.Wrapper(E)}},{key:"abort",value:function(ee){if(ee.checkpoint){var E=ee.checkpoint.uploadId;this.oss.abortMultipartUpload(ee.object,E)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(ee,E){this._uploadInfo=ee;var re=this,ce=function(ve,Se,ge){return function(_e){re._progress(ve,Se,ge),_e()}},le={parallel:E.parallel||this._config.parallel||se.UPLOADDEFAULT.PARALLEL,partSize:E.partSize||this._config.partSize||se.UPLOADDEFAULT.PARTSIZE,progress:ce};E.headers&&(le.headers=E.headers),ee.checkpoint&&(le.checkpoint=ee.checkpoint),ee.bucket||(this.oss.options.bucket=ee.bucket),ee.endpoint||(this.oss.options.endpoint=ee.endpoint),this.oss.multipartUpload(ee.object,ee.file,le).then(function(ve,Se){re._complete(ve)}).catch(function(ve){re.oss.cancel&&(re.oss&&re.oss.isCancel()?console.log("oss is cancel as error"):re.oss.cancel()),re._error(ve)})}},{key:"header",value:function(ee,E,re){this.oss.get(ee.object).then(function(ce){E(ce)}).catch(function(ce){re(ce)})}},{key:"_progress",value:function(ee,E,re){this._callback.onprogress(this._uploadInfo,{loaded:ee,total:this._uploadInfo.file.size,checkpoint:E},re)}},{key:"_error",value:function(ee){this._callback.onerror(this._uploadInfo,ee)}},{key:"_complete",value:function(ee){this._callback.oncomplete(this._uploadInfo,ee)}}]),b}());ie.default=x},function(y,ie,fe){"use strict";function de(se,te){if(!(se instanceof te))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ue=function(){function se(te,ne){for(var x=0;x<ne.length;x++){var b=ne[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(te,b.key,b)}}return function(te,ne,x){return ne&&se(te.prototype,ne),x&&se(te,x),te}}(),ae=function(){function se(){de(this,se)}return ue(se,null,[{key:"format",value:function(te){if(arguments.length<2)return null;for(var ne=arguments[1],x=1;x<arguments.length;x++){var b=new RegExp("\\{"+(x-1)+"\\}","gm");ne=ne.replace(b,arguments[x+1])}return{code:te,message:ne}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),se}();ie.default=ae},function(y,ie,fe){"use strict";(function(de){function ue(te,ne){if(!(te instanceof ne))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ae=function(){function te(ne,x){for(var b=0;b<x.length;b++){var ee=x[b];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(ne,ee.key,ee)}}return function(ne,x,b){return x&&te(ne.prototype,x),b&&te(ne,b),ne}}(),se=function(){function te(){ue(this,te)}return ae(te,null,[{key:"encode",value:function(ne){return new de(ne).toString("base64")}},{key:"decode",value:function(ne){return new de(ne,"base64").toString()}}]),te}();ie.default=se}).call(ie,fe(19).Buffer)},function(y,ie,fe){"use strict";(function(de){function ue(){return se.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function ae(Le,pe){if(ue()<pe)throw new RangeError("Invalid typed array length");return se.TYPED_ARRAY_SUPPORT?(Le=new Uint8Array(pe),Le.__proto__=se.prototype):(Le===null&&(Le=new se(pe)),Le.length=pe),Le}function se(Le,pe,we){if(!(se.TYPED_ARRAY_SUPPORT||this instanceof se))return new se(Le,pe,we);if(typeof Le=="number"){if(typeof pe=="string")throw new Error("If encoding is specified then the first argument must be a string");return b(this,Le)}return te(this,Le,pe,we)}function te(Le,pe,we,ke){if(typeof pe=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&pe instanceof ArrayBuffer?re(Le,pe,we,ke):typeof pe=="string"?ee(Le,pe,we):ce(Le,pe)}function ne(Le){if(typeof Le!="number")throw new TypeError('"size" argument must be a number');if(Le<0)throw new RangeError('"size" argument must not be negative')}function x(Le,pe,we,ke){return ne(pe),pe<=0?ae(Le,pe):we!==void 0?typeof ke=="string"?ae(Le,pe).fill(we,ke):ae(Le,pe).fill(we):ae(Le,pe)}function b(Le,pe){if(ne(pe),Le=ae(Le,pe<0?0:0|le(pe)),!se.TYPED_ARRAY_SUPPORT)for(var we=0;we<pe;++we)Le[we]=0;return Le}function ee(Le,pe,we){if(typeof we=="string"&&we!==""||(we="utf8"),!se.isEncoding(we))throw new TypeError('"encoding" must be a valid string encoding');var ke=0|Se(pe,we);Le=ae(Le,ke);var Me=Le.write(pe,we);return Me!==ke&&(Le=Le.slice(0,Me)),Le}function E(Le,pe){var we=pe.length<0?0:0|le(pe.length);Le=ae(Le,we);for(var ke=0;ke<we;ke+=1)Le[ke]=255&pe[ke];return Le}function re(Le,pe,we,ke){if(pe.byteLength,we<0||pe.byteLength<we)throw new RangeError("'offset' is out of bounds");if(pe.byteLength<we+(ke||0))throw new RangeError("'length' is out of bounds");return pe=we===void 0&&ke===void 0?new Uint8Array(pe):ke===void 0?new Uint8Array(pe,we):new Uint8Array(pe,we,ke),se.TYPED_ARRAY_SUPPORT?(Le=pe,Le.__proto__=se.prototype):Le=E(Le,pe),Le}function ce(Le,pe){if(se.isBuffer(pe)){var we=0|le(pe.length);return Le=ae(Le,we),Le.length===0||pe.copy(Le,0,0,we),Le}if(pe){if(typeof ArrayBuffer!="undefined"&&pe.buffer instanceof ArrayBuffer||"length"in pe)return typeof pe.length!="number"||We(pe.length)?ae(Le,0):E(Le,pe);if(pe.type==="Buffer"&&Be(pe.data))return E(Le,pe.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function le(Le){if(Le>=ue())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ue().toString(16)+" bytes");return 0|Le}function ve(Le){return+Le!=Le&&(Le=0),se.alloc(+Le)}function Se(Le,pe){if(se.isBuffer(Le))return Le.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Le)||Le instanceof ArrayBuffer))return Le.byteLength;typeof Le!="string"&&(Le=""+Le);var we=Le.length;if(we===0)return 0;for(var ke=!1;;)switch(pe){case"ascii":case"latin1":case"binary":return we;case"utf8":case"utf-8":case void 0:return pt(Le).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*we;case"hex":return we>>>1;case"base64":return bt(Le).length;default:if(ke)return pt(Le).length;pe=(""+pe).toLowerCase(),ke=!0}}function ge(Le,pe,we){var ke=!1;if((pe===void 0||pe<0)&&(pe=0),pe>this.length||((we===void 0||we>this.length)&&(we=this.length),we<=0)||(we>>>=0,pe>>>=0,we<=pe))return"";for(Le||(Le="utf8");;)switch(Le){case"hex":return Qe(this,pe,we);case"utf8":case"utf-8":return qe(this,pe,we);case"ascii":return He(this,pe,we);case"latin1":case"binary":return ze(this,pe,we);case"base64":return Re(this,pe,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $e(this,pe,we);default:if(ke)throw new TypeError("Unknown encoding: "+Le);Le=(Le+"").toLowerCase(),ke=!0}}function _e(Le,pe,we){var ke=Le[pe];Le[pe]=Le[we],Le[we]=ke}function Ce(Le,pe,we,ke,Me){if(Le.length===0)return-1;if(typeof we=="string"?(ke=we,we=0):we>2147483647?we=2147483647:we<-2147483648&&(we=-2147483648),we=+we,isNaN(we)&&(we=Me?0:Le.length-1),we<0&&(we=Le.length+we),we>=Le.length){if(Me)return-1;we=Le.length-1}else if(we<0){if(!Me)return-1;we=0}if(typeof pe=="string"&&(pe=se.from(pe,ke)),se.isBuffer(pe))return pe.length===0?-1:he(Le,pe,we,ke,Me);if(typeof pe=="number")return pe&=255,se.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Me?Uint8Array.prototype.indexOf.call(Le,pe,we):Uint8Array.prototype.lastIndexOf.call(Le,pe,we):he(Le,[pe],we,ke,Me);throw new TypeError("val must be string, number or Buffer")}function he(Le,pe,we,ke,Me){function Oe($t,It){return tt===1?$t[It]:$t.readUInt16BE(It*tt)}var tt=1,ot=Le.length,st=pe.length;if(ke!==void 0&&((ke=String(ke).toLowerCase())==="ucs2"||ke==="ucs-2"||ke==="utf16le"||ke==="utf-16le")){if(Le.length<2||pe.length<2)return-1;tt=2,ot/=2,st/=2,we/=2}var ft;if(Me){var Ft=-1;for(ft=we;ft<ot;ft++)if(Oe(Le,ft)===Oe(pe,Ft===-1?0:ft-Ft)){if(Ft===-1&&(Ft=ft),ft-Ft+1===st)return Ft*tt}else Ft!==-1&&(ft-=ft-Ft),Ft=-1}else for(we+st>ot&&(we=ot-st),ft=we;ft>=0;ft--){for(var Bt=!0,qt=0;qt<st;qt++)if(Oe(Le,ft+qt)!==Oe(pe,qt)){Bt=!1;break}if(Bt)return ft}return-1}function be(Le,pe,we,ke){we=Number(we)||0;var Me=Le.length-we;ke?(ke=Number(ke))>Me&&(ke=Me):ke=Me;var Oe=pe.length;if(Oe%2!=0)throw new TypeError("Invalid hex string");ke>Oe/2&&(ke=Oe/2);for(var tt=0;tt<ke;++tt){var ot=parseInt(pe.substr(2*tt,2),16);if(isNaN(ot))return tt;Le[we+tt]=ot}return tt}function Ee(Le,pe,we,ke){return gt(pt(pe,Le.length-we),Le,we,ke)}function Ae(Le,pe,we,ke){return gt(Mt(pe),Le,we,ke)}function De(Le,pe,we,ke){return Ae(Le,pe,we,ke)}function je(Le,pe,we,ke){return gt(bt(pe),Le,we,ke)}function Fe(Le,pe,we,ke){return gt(wt(pe,Le.length-we),Le,we,ke)}function Re(Le,pe,we){return pe===0&&we===Le.length?Ie.fromByteArray(Le):Ie.fromByteArray(Le.slice(pe,we))}function qe(Le,pe,we){we=Math.min(Le.length,we);for(var ke=[],Me=pe;Me<we;){var Oe=Le[Me],tt=null,ot=Oe>239?4:Oe>223?3:Oe>191?2:1;if(Me+ot<=we){var st,ft,Ft,Bt;switch(ot){case 1:Oe<128&&(tt=Oe);break;case 2:st=Le[Me+1],(192&st)==128&&(Bt=(31&Oe)<<6|63&st)>127&&(tt=Bt);break;case 3:st=Le[Me+1],ft=Le[Me+2],(192&st)==128&&(192&ft)==128&&(Bt=(15&Oe)<<12|(63&st)<<6|63&ft)>2047&&(Bt<55296||Bt>57343)&&(tt=Bt);break;case 4:st=Le[Me+1],ft=Le[Me+2],Ft=Le[Me+3],(192&st)==128&&(192&ft)==128&&(192&Ft)==128&&(Bt=(15&Oe)<<18|(63&st)<<12|(63&ft)<<6|63&Ft)>65535&&Bt<1114112&&(tt=Bt)}}tt===null?(tt=65533,ot=1):tt>65535&&(tt-=65536,ke.push(tt>>>10&1023|55296),tt=56320|1023&tt),ke.push(tt),Me+=ot}return Je(ke)}function Je(Le){var pe=Le.length;if(pe<=Ye)return String.fromCharCode.apply(String,Le);for(var we="",ke=0;ke<pe;)we+=String.fromCharCode.apply(String,Le.slice(ke,ke+=Ye));return we}function He(Le,pe,we){var ke="";we=Math.min(Le.length,we);for(var Me=pe;Me<we;++Me)ke+=String.fromCharCode(127&Le[Me]);return ke}function ze(Le,pe,we){var ke="";we=Math.min(Le.length,we);for(var Me=pe;Me<we;++Me)ke+=String.fromCharCode(Le[Me]);return ke}function Qe(Le,pe,we){var ke=Le.length;(!pe||pe<0)&&(pe=0),(!we||we<0||we>ke)&&(we=ke);for(var Me="",Oe=pe;Oe<we;++Oe)Me+=kt(Le[Oe]);return Me}function $e(Le,pe,we){for(var ke=Le.slice(pe,we),Me="",Oe=0;Oe<ke.length;Oe+=2)Me+=String.fromCharCode(ke[Oe]+256*ke[Oe+1]);return Me}function ht(Le,pe,we){if(Le%1!=0||Le<0)throw new RangeError("offset is not uint");if(Le+pe>we)throw new RangeError("Trying to access beyond buffer length")}function Ge(Le,pe,we,ke,Me,Oe){if(!se.isBuffer(Le))throw new TypeError('"buffer" argument must be a Buffer instance');if(pe>Me||pe<Oe)throw new RangeError('"value" argument is out of bounds');if(we+ke>Le.length)throw new RangeError("Index out of range")}function Ue(Le,pe,we,ke){pe<0&&(pe=65535+pe+1);for(var Me=0,Oe=Math.min(Le.length-we,2);Me<Oe;++Me)Le[we+Me]=(pe&255<<8*(ke?Me:1-Me))>>>8*(ke?Me:1-Me)}function Ke(Le,pe,we,ke){pe<0&&(pe=4294967295+pe+1);for(var Me=0,Oe=Math.min(Le.length-we,4);Me<Oe;++Me)Le[we+Me]=pe>>>8*(ke?Me:3-Me)&255}function et(Le,pe,we,ke,Me,Oe){if(we+ke>Le.length)throw new RangeError("Index out of range");if(we<0)throw new RangeError("Index out of range")}function rt(Le,pe,we,ke,Me){return Me||et(Le,pe,we,4,34028234663852886e22,-34028234663852886e22),xe.write(Le,pe,we,ke,23,4),we+4}function Xe(Le,pe,we,ke,Me){return Me||et(Le,pe,we,8,17976931348623157e292,-17976931348623157e292),xe.write(Le,pe,we,ke,52,8),we+8}function ut(Le){if(Le=lt(Le).replace(Pe,""),Le.length<2)return"";for(;Le.length%4!=0;)Le+="=";return Le}function lt(Le){return Le.trim?Le.trim():Le.replace(/^\s+|\s+$/g,"")}function kt(Le){return Le<16?"0"+Le.toString(16):Le.toString(16)}function pt(Le,pe){pe=pe||1/0;for(var we,ke=Le.length,Me=null,Oe=[],tt=0;tt<ke;++tt){if((we=Le.charCodeAt(tt))>55295&&we<57344){if(!Me){if(we>56319){(pe-=3)>-1&&Oe.push(239,191,189);continue}if(tt+1===ke){(pe-=3)>-1&&Oe.push(239,191,189);continue}Me=we;continue}if(we<56320){(pe-=3)>-1&&Oe.push(239,191,189),Me=we;continue}we=65536+(Me-55296<<10|we-56320)}else Me&&(pe-=3)>-1&&Oe.push(239,191,189);if(Me=null,we<128){if((pe-=1)<0)break;Oe.push(we)}else if(we<2048){if((pe-=2)<0)break;Oe.push(we>>6|192,63&we|128)}else if(we<65536){if((pe-=3)<0)break;Oe.push(we>>12|224,we>>6&63|128,63&we|128)}else{if(!(we<1114112))throw new Error("Invalid code point");if((pe-=4)<0)break;Oe.push(we>>18|240,we>>12&63|128,we>>6&63|128,63&we|128)}}return Oe}function Mt(Le){for(var pe=[],we=0;we<Le.length;++we)pe.push(255&Le.charCodeAt(we));return pe}function wt(Le,pe){for(var we,ke,Me,Oe=[],tt=0;tt<Le.length&&!((pe-=2)<0);++tt)we=Le.charCodeAt(tt),ke=we>>8,Me=we%256,Oe.push(Me),Oe.push(ke);return Oe}function bt(Le){return Ie.toByteArray(ut(Le))}function gt(Le,pe,we,ke){for(var Me=0;Me<ke&&!(Me+we>=pe.length||Me>=Le.length);++Me)pe[Me+we]=Le[Me];return Me}function We(Le){return Le!==Le}var Ie=fe(21),xe=fe(22),Be=fe(23);ie.Buffer=se,ie.SlowBuffer=ve,ie.INSPECT_MAX_BYTES=50,se.TYPED_ARRAY_SUPPORT=de.TYPED_ARRAY_SUPPORT!==void 0?de.TYPED_ARRAY_SUPPORT:function(){try{var Le=new Uint8Array(1);return Le.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Le.foo()===42&&typeof Le.subarray=="function"&&Le.subarray(1,1).byteLength===0}catch(pe){return!1}}(),ie.kMaxLength=ue(),se.poolSize=8192,se._augment=function(Le){return Le.__proto__=se.prototype,Le},se.from=function(Le,pe,we){return te(null,Le,pe,we)},se.TYPED_ARRAY_SUPPORT&&(se.prototype.__proto__=Uint8Array.prototype,se.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&se[Symbol.species]===se&&Object.defineProperty(se,Symbol.species,{value:null,configurable:!0})),se.alloc=function(Le,pe,we){return x(null,Le,pe,we)},se.allocUnsafe=function(Le){return b(null,Le)},se.allocUnsafeSlow=function(Le){return b(null,Le)},se.isBuffer=function(Le){return!(Le==null||!Le._isBuffer)},se.compare=function(Le,pe){if(!se.isBuffer(Le)||!se.isBuffer(pe))throw new TypeError("Arguments must be Buffers");if(Le===pe)return 0;for(var we=Le.length,ke=pe.length,Me=0,Oe=Math.min(we,ke);Me<Oe;++Me)if(Le[Me]!==pe[Me]){we=Le[Me],ke=pe[Me];break}return we<ke?-1:ke<we?1:0},se.isEncoding=function(Le){switch(String(Le).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},se.concat=function(Le,pe){if(!Be(Le))throw new TypeError('"list" argument must be an Array of Buffers');if(Le.length===0)return se.alloc(0);var we;if(pe===void 0)for(pe=0,we=0;we<Le.length;++we)pe+=Le[we].length;var ke=se.allocUnsafe(pe),Me=0;for(we=0;we<Le.length;++we){var Oe=Le[we];if(!se.isBuffer(Oe))throw new TypeError('"list" argument must be an Array of Buffers');Oe.copy(ke,Me),Me+=Oe.length}return ke},se.byteLength=Se,se.prototype._isBuffer=!0,se.prototype.swap16=function(){var Le=this.length;if(Le%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var pe=0;pe<Le;pe+=2)_e(this,pe,pe+1);return this},se.prototype.swap32=function(){var Le=this.length;if(Le%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var pe=0;pe<Le;pe+=4)_e(this,pe,pe+3),_e(this,pe+1,pe+2);return this},se.prototype.swap64=function(){var Le=this.length;if(Le%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var pe=0;pe<Le;pe+=8)_e(this,pe,pe+7),_e(this,pe+1,pe+6),_e(this,pe+2,pe+5),_e(this,pe+3,pe+4);return this},se.prototype.toString=function(){var Le=0|this.length;return Le===0?"":arguments.length===0?qe(this,0,Le):ge.apply(this,arguments)},se.prototype.equals=function(Le){if(!se.isBuffer(Le))throw new TypeError("Argument must be a Buffer");return this===Le||se.compare(this,Le)===0},se.prototype.inspect=function(){var Le="",pe=ie.INSPECT_MAX_BYTES;return this.length>0&&(Le=this.toString("hex",0,pe).match(/.{2}/g).join(" "),this.length>pe&&(Le+=" ... ")),"<Buffer "+Le+">"},se.prototype.compare=function(Le,pe,we,ke,Me){if(!se.isBuffer(Le))throw new TypeError("Argument must be a Buffer");if(pe===void 0&&(pe=0),we===void 0&&(we=Le?Le.length:0),ke===void 0&&(ke=0),Me===void 0&&(Me=this.length),pe<0||we>Le.length||ke<0||Me>this.length)throw new RangeError("out of range index");if(ke>=Me&&pe>=we)return 0;if(ke>=Me)return-1;if(pe>=we)return 1;if(pe>>>=0,we>>>=0,ke>>>=0,Me>>>=0,this===Le)return 0;for(var Oe=Me-ke,tt=we-pe,ot=Math.min(Oe,tt),st=this.slice(ke,Me),ft=Le.slice(pe,we),Ft=0;Ft<ot;++Ft)if(st[Ft]!==ft[Ft]){Oe=st[Ft],tt=ft[Ft];break}return Oe<tt?-1:tt<Oe?1:0},se.prototype.includes=function(Le,pe,we){return this.indexOf(Le,pe,we)!==-1},se.prototype.indexOf=function(Le,pe,we){return Ce(this,Le,pe,we,!0)},se.prototype.lastIndexOf=function(Le,pe,we){return Ce(this,Le,pe,we,!1)},se.prototype.write=function(Le,pe,we,ke){if(pe===void 0)ke="utf8",we=this.length,pe=0;else if(we===void 0&&typeof pe=="string")ke=pe,we=this.length,pe=0;else{if(!isFinite(pe))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");pe|=0,isFinite(we)?(we|=0,ke===void 0&&(ke="utf8")):(ke=we,we=void 0)}var Me=this.length-pe;if((we===void 0||we>Me)&&(we=Me),Le.length>0&&(we<0||pe<0)||pe>this.length)throw new RangeError("Attempt to write outside buffer bounds");ke||(ke="utf8");for(var Oe=!1;;)switch(ke){case"hex":return be(this,Le,pe,we);case"utf8":case"utf-8":return Ee(this,Le,pe,we);case"ascii":return Ae(this,Le,pe,we);case"latin1":case"binary":return De(this,Le,pe,we);case"base64":return je(this,Le,pe,we);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,Le,pe,we);default:if(Oe)throw new TypeError("Unknown encoding: "+ke);ke=(""+ke).toLowerCase(),Oe=!0}},se.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Ye=4096;se.prototype.slice=function(Le,pe){var we=this.length;Le=~~Le,pe=pe===void 0?we:~~pe,Le<0?(Le+=we)<0&&(Le=0):Le>we&&(Le=we),pe<0?(pe+=we)<0&&(pe=0):pe>we&&(pe=we),pe<Le&&(pe=Le);var ke;if(se.TYPED_ARRAY_SUPPORT)ke=this.subarray(Le,pe),ke.__proto__=se.prototype;else{var Me=pe-Le;ke=new se(Me,void 0);for(var Oe=0;Oe<Me;++Oe)ke[Oe]=this[Oe+Le]}return ke},se.prototype.readUIntLE=function(Le,pe,we){Le|=0,pe|=0,we||ht(Le,pe,this.length);for(var ke=this[Le],Me=1,Oe=0;++Oe<pe&&(Me*=256);)ke+=this[Le+Oe]*Me;return ke},se.prototype.readUIntBE=function(Le,pe,we){Le|=0,pe|=0,we||ht(Le,pe,this.length);for(var ke=this[Le+--pe],Me=1;pe>0&&(Me*=256);)ke+=this[Le+--pe]*Me;return ke},se.prototype.readUInt8=function(Le,pe){return pe||ht(Le,1,this.length),this[Le]},se.prototype.readUInt16LE=function(Le,pe){return pe||ht(Le,2,this.length),this[Le]|this[Le+1]<<8},se.prototype.readUInt16BE=function(Le,pe){return pe||ht(Le,2,this.length),this[Le]<<8|this[Le+1]},se.prototype.readUInt32LE=function(Le,pe){return pe||ht(Le,4,this.length),(this[Le]|this[Le+1]<<8|this[Le+2]<<16)+16777216*this[Le+3]},se.prototype.readUInt32BE=function(Le,pe){return pe||ht(Le,4,this.length),16777216*this[Le]+(this[Le+1]<<16|this[Le+2]<<8|this[Le+3])},se.prototype.readIntLE=function(Le,pe,we){Le|=0,pe|=0,we||ht(Le,pe,this.length);for(var ke=this[Le],Me=1,Oe=0;++Oe<pe&&(Me*=256);)ke+=this[Le+Oe]*Me;return Me*=128,ke>=Me&&(ke-=Math.pow(2,8*pe)),ke},se.prototype.readIntBE=function(Le,pe,we){Le|=0,pe|=0,we||ht(Le,pe,this.length);for(var ke=pe,Me=1,Oe=this[Le+--ke];ke>0&&(Me*=256);)Oe+=this[Le+--ke]*Me;return Me*=128,Oe>=Me&&(Oe-=Math.pow(2,8*pe)),Oe},se.prototype.readInt8=function(Le,pe){return pe||ht(Le,1,this.length),128&this[Le]?-1*(255-this[Le]+1):this[Le]},se.prototype.readInt16LE=function(Le,pe){pe||ht(Le,2,this.length);var we=this[Le]|this[Le+1]<<8;return 32768&we?4294901760|we:we},se.prototype.readInt16BE=function(Le,pe){pe||ht(Le,2,this.length);var we=this[Le+1]|this[Le]<<8;return 32768&we?4294901760|we:we},se.prototype.readInt32LE=function(Le,pe){return pe||ht(Le,4,this.length),this[Le]|this[Le+1]<<8|this[Le+2]<<16|this[Le+3]<<24},se.prototype.readInt32BE=function(Le,pe){return pe||ht(Le,4,this.length),this[Le]<<24|this[Le+1]<<16|this[Le+2]<<8|this[Le+3]},se.prototype.readFloatLE=function(Le,pe){return pe||ht(Le,4,this.length),xe.read(this,Le,!0,23,4)},se.prototype.readFloatBE=function(Le,pe){return pe||ht(Le,4,this.length),xe.read(this,Le,!1,23,4)},se.prototype.readDoubleLE=function(Le,pe){return pe||ht(Le,8,this.length),xe.read(this,Le,!0,52,8)},se.prototype.readDoubleBE=function(Le,pe){return pe||ht(Le,8,this.length),xe.read(this,Le,!1,52,8)},se.prototype.writeUIntLE=function(Le,pe,we,ke){Le=+Le,pe|=0,we|=0,!ke&&Ge(this,Le,pe,we,Math.pow(2,8*we)-1,0);var Me=1,Oe=0;for(this[pe]=255&Le;++Oe<we&&(Me*=256);)this[pe+Oe]=Le/Me&255;return pe+we},se.prototype.writeUIntBE=function(Le,pe,we,ke){Le=+Le,pe|=0,we|=0,!ke&&Ge(this,Le,pe,we,Math.pow(2,8*we)-1,0);var Me=we-1,Oe=1;for(this[pe+Me]=255&Le;--Me>=0&&(Oe*=256);)this[pe+Me]=Le/Oe&255;return pe+we},se.prototype.writeUInt8=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,1,255,0),se.TYPED_ARRAY_SUPPORT||(Le=Math.floor(Le)),this[pe]=255&Le,pe+1},se.prototype.writeUInt16LE=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,2,65535,0),se.TYPED_ARRAY_SUPPORT?(this[pe]=255&Le,this[pe+1]=Le>>>8):Ue(this,Le,pe,!0),pe+2},se.prototype.writeUInt16BE=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,2,65535,0),se.TYPED_ARRAY_SUPPORT?(this[pe]=Le>>>8,this[pe+1]=255&Le):Ue(this,Le,pe,!1),pe+2},se.prototype.writeUInt32LE=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,4,4294967295,0),se.TYPED_ARRAY_SUPPORT?(this[pe+3]=Le>>>24,this[pe+2]=Le>>>16,this[pe+1]=Le>>>8,this[pe]=255&Le):Ke(this,Le,pe,!0),pe+4},se.prototype.writeUInt32BE=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,4,4294967295,0),se.TYPED_ARRAY_SUPPORT?(this[pe]=Le>>>24,this[pe+1]=Le>>>16,this[pe+2]=Le>>>8,this[pe+3]=255&Le):Ke(this,Le,pe,!1),pe+4},se.prototype.writeIntLE=function(Le,pe,we,ke){if(Le=+Le,pe|=0,!ke){var Me=Math.pow(2,8*we-1);Ge(this,Le,pe,we,Me-1,-Me)}var Oe=0,tt=1,ot=0;for(this[pe]=255&Le;++Oe<we&&(tt*=256);)Le<0&&ot===0&&this[pe+Oe-1]!==0&&(ot=1),this[pe+Oe]=(Le/tt>>0)-ot&255;return pe+we},se.prototype.writeIntBE=function(Le,pe,we,ke){if(Le=+Le,pe|=0,!ke){var Me=Math.pow(2,8*we-1);Ge(this,Le,pe,we,Me-1,-Me)}var Oe=we-1,tt=1,ot=0;for(this[pe+Oe]=255&Le;--Oe>=0&&(tt*=256);)Le<0&&ot===0&&this[pe+Oe+1]!==0&&(ot=1),this[pe+Oe]=(Le/tt>>0)-ot&255;return pe+we},se.prototype.writeInt8=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,1,127,-128),se.TYPED_ARRAY_SUPPORT||(Le=Math.floor(Le)),Le<0&&(Le=255+Le+1),this[pe]=255&Le,pe+1},se.prototype.writeInt16LE=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,2,32767,-32768),se.TYPED_ARRAY_SUPPORT?(this[pe]=255&Le,this[pe+1]=Le>>>8):Ue(this,Le,pe,!0),pe+2},se.prototype.writeInt16BE=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,2,32767,-32768),se.TYPED_ARRAY_SUPPORT?(this[pe]=Le>>>8,this[pe+1]=255&Le):Ue(this,Le,pe,!1),pe+2},se.prototype.writeInt32LE=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,4,2147483647,-2147483648),se.TYPED_ARRAY_SUPPORT?(this[pe]=255&Le,this[pe+1]=Le>>>8,this[pe+2]=Le>>>16,this[pe+3]=Le>>>24):Ke(this,Le,pe,!0),pe+4},se.prototype.writeInt32BE=function(Le,pe,we){return Le=+Le,pe|=0,we||Ge(this,Le,pe,4,2147483647,-2147483648),Le<0&&(Le=4294967295+Le+1),se.TYPED_ARRAY_SUPPORT?(this[pe]=Le>>>24,this[pe+1]=Le>>>16,this[pe+2]=Le>>>8,this[pe+3]=255&Le):Ke(this,Le,pe,!1),pe+4},se.prototype.writeFloatLE=function(Le,pe,we){return rt(this,Le,pe,!0,we)},se.prototype.writeFloatBE=function(Le,pe,we){return rt(this,Le,pe,!1,we)},se.prototype.writeDoubleLE=function(Le,pe,we){return Xe(this,Le,pe,!0,we)},se.prototype.writeDoubleBE=function(Le,pe,we){return Xe(this,Le,pe,!1,we)},se.prototype.copy=function(Le,pe,we,ke){if(we||(we=0),ke||ke===0||(ke=this.length),pe>=Le.length&&(pe=Le.length),pe||(pe=0),ke>0&&ke<we&&(ke=we),ke===we||Le.length===0||this.length===0)return 0;if(pe<0)throw new RangeError("targetStart out of bounds");if(we<0||we>=this.length)throw new RangeError("sourceStart out of bounds");if(ke<0)throw new RangeError("sourceEnd out of bounds");ke>this.length&&(ke=this.length),Le.length-pe<ke-we&&(ke=Le.length-pe+we);var Me,Oe=ke-we;if(this===Le&&we<pe&&pe<ke)for(Me=Oe-1;Me>=0;--Me)Le[Me+pe]=this[Me+we];else if(Oe<1e3||!se.TYPED_ARRAY_SUPPORT)for(Me=0;Me<Oe;++Me)Le[Me+pe]=this[Me+we];else Uint8Array.prototype.set.call(Le,this.subarray(we,we+Oe),pe);return Oe},se.prototype.fill=function(Le,pe,we,ke){if(typeof Le=="string"){if(typeof pe=="string"?(ke=pe,pe=0,we=this.length):typeof we=="string"&&(ke=we,we=this.length),Le.length===1){var Me=Le.charCodeAt(0);Me<256&&(Le=Me)}if(ke!==void 0&&typeof ke!="string")throw new TypeError("encoding must be a string");if(typeof ke=="string"&&!se.isEncoding(ke))throw new TypeError("Unknown encoding: "+ke)}else typeof Le=="number"&&(Le&=255);if(pe<0||this.length<pe||this.length<we)throw new RangeError("Out of range index");if(we<=pe)return this;pe>>>=0,we=we===void 0?this.length:we>>>0,Le||(Le=0);var Oe;if(typeof Le=="number")for(Oe=pe;Oe<we;++Oe)this[Oe]=Le;else{var tt=se.isBuffer(Le)?Le:pt(new se(Le,ke).toString()),ot=tt.length;for(Oe=0;Oe<we-pe;++Oe)this[Oe+pe]=tt[Oe%ot]}return this};var Pe=/[^+\/0-9A-Za-z-_]/g}).call(ie,fe(20))},function(y,ie){var fe;fe=function(){return this}();try{fe=fe||Function("return this")()||(0,eval)("this")}catch(de){typeof window=="object"&&(fe=window)}y.exports=fe},function(y,ie,fe){"use strict";function de(le){var ve=le.length;if(ve%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return le[ve-2]==="="?2:le[ve-1]==="="?1:0}function ue(le){return 3*le.length/4-de(le)}function ae(le){var ve,Se,ge,_e,Ce,he=le.length;_e=de(le),Ce=new ee(3*he/4-_e),Se=_e>0?he-4:he;var be=0;for(ve=0;ve<Se;ve+=4)ge=b[le.charCodeAt(ve)]<<18|b[le.charCodeAt(ve+1)]<<12|b[le.charCodeAt(ve+2)]<<6|b[le.charCodeAt(ve+3)],Ce[be++]=ge>>16&255,Ce[be++]=ge>>8&255,Ce[be++]=255≥return _e===2?(ge=b[le.charCodeAt(ve)]<<2|b[le.charCodeAt(ve+1)]>>4,Ce[be++]=255&ge):_e===1&&(ge=b[le.charCodeAt(ve)]<<10|b[le.charCodeAt(ve+1)]<<4|b[le.charCodeAt(ve+2)]>>2,Ce[be++]=ge>>8&255,Ce[be++]=255&ge),Ce}function se(le){return x[le>>18&63]+x[le>>12&63]+x[le>>6&63]+x[63&le]}function te(le,ve,Se){for(var ge,_e=[],Ce=ve;Ce<Se;Ce+=3)ge=(le[Ce]<<16)+(le[Ce+1]<<8)+le[Ce+2],_e.push(se(ge));return _e.join("")}function ne(le){for(var ve,Se=le.length,ge=Se%3,_e="",Ce=[],he=0,be=Se-ge;he<be;he+=16383)Ce.push(te(le,he,he+16383>be?be:he+16383));return ge===1?(ve=le[Se-1],_e+=x[ve>>2],_e+=x[ve<<4&63],_e+="=="):ge===2&&(ve=(le[Se-2]<<8)+le[Se-1],_e+=x[ve>>10],_e+=x[ve>>4&63],_e+=x[ve<<2&63],_e+="="),Ce.push(_e),Ce.join("")}ie.byteLength=ue,ie.toByteArray=ae,ie.fromByteArray=ne;for(var x=[],b=[],ee=typeof Uint8Array!="undefined"?Uint8Array:Array,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",re=0,ce=E.length;re<ce;++re)x[re]=E[re],b[E.charCodeAt(re)]=re;b[45]=62,b[95]=63},function(y,ie){ie.read=function(fe,de,ue,ae,se){var te,ne,x=8*se-ae-1,b=(1<<x)-1,ee=b>>1,E=-7,re=ue?se-1:0,ce=ue?-1:1,le=fe[de+re];for(re+=ce,te=le&(1<<-E)-1,le>>=-E,E+=x;E>0;te=256*te+fe[de+re],re+=ce,E-=8);for(ne=te&(1<<-E)-1,te>>=-E,E+=ae;E>0;ne=256*ne+fe[de+re],re+=ce,E-=8);if(te===0)te=1-ee;else{if(te===b)return ne?NaN:1/0*(le?-1:1);ne+=Math.pow(2,ae),te-=ee}return(le?-1:1)*ne*Math.pow(2,te-ae)},ie.write=function(fe,de,ue,ae,se,te){var ne,x,b,ee=8*te-se-1,E=(1<<ee)-1,re=E>>1,ce=se===23?Math.pow(2,-24)-Math.pow(2,-77):0,le=ae?0:te-1,ve=ae?1:-1,Se=de<0||de===0&&1/de<0?1:0;for(de=Math.abs(de),isNaN(de)||de===1/0?(x=isNaN(de)?1:0,ne=E):(ne=Math.floor(Math.log(de)/Math.LN2),de*(b=Math.pow(2,-ne))<1&&(ne--,b*=2),de+=ne+re>=1?ce/b:ce*Math.pow(2,1-re),de*b>=2&&(ne++,b/=2),ne+re>=E?(x=0,ne=E):ne+re>=1?(x=(de*b-1)*Math.pow(2,se),ne+=re):(x=de*Math.pow(2,re-1)*Math.pow(2,se),ne=0));se>=8;fe[ue+le]=255&x,le+=ve,x/=256,se-=8);for(ne=ne<<se|x,ee+=se;ee>0;fe[ue+le]=255&ne,le+=ve,ne/=256,ee-=8);fe[ue+le-ve]|=128*Se}},function(y,ie){var fe={}.toString;y.exports=Array.isArray||function(de){return fe.call(de)=="[object Array]"}},function(y,ie,fe){"use strict";function de(se,te){if(!(se instanceof te))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ue=function(){function se(te,ne){for(var x=0;x<ne.length;x++){var b=ne[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(te,b.key,b)}}return function(te,ne,x){return ne&&se(te.prototype,ne),x&&se(te,x),te}}(),ae=function(){function se(){de(this,se)}return ue(se,null,[{key:"set",value:function(te,ne){try{window.localStorage&&localStorage.setItem(te,ne)}catch(x){window[te+"_localStorage"]=ne}}},{key:"get",value:function(te){try{if(window.localStorage)return localStorage.getItem(te)}catch(ne){return window[te+"_localStorage"]}return""}},{key:"remove",value:function(te){try{window.localStorage&&localStorage.removeItem(te)}catch(ne){delete window[te+"_localStorage"]}}}]),se}();ie.default=ae},function(y,ie,fe){"use strict";function de(se,te){if(!(se instanceof te))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ue=function(){function se(te,ne){for(var x=0;x<ne.length;x++){var b=ne[x];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(te,b.key,b)}}return function(te,ne,x){return ne&&se(te.prototype,ne),x&&se(te,x),te}}(),ae=function(){function se(){de(this,se)}return ue(se,null,[{key:"get",value:function(te){for(var ne=te+"",x=document.cookie.split(";"),b=0;b<x.length;b++){var ee=x[b].trim();if(ee.indexOf(ne)==0)return unescape(ee.substring(ne.length+1,ee.length))}return""}},{key:"set",value:function(te,ne,x){var b=new Date;b.setTime(b.getTime()+24*x*60*60*1e3);var ee="expires="+b.toGMTString();document.cookie=te+"="+escape(ne)+"; "+ee}}]),se}();ie.default=ae},function(y,ie,fe){"use strict";function de(ee){return ee&&ee.__esModule?ee:{default:ee}}function ue(ee,E){if(!(ee instanceof E))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ae=function(){function ee(E,re){for(var ce=0;ce<re.length;ce++){var le=re[ce];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(E,le.key,le)}}return function(E,re,ce){return re&&ee(E.prototype,re),ce&&ee(E,ce),E}}(),se=fe(8),te=de(se),ne=fe(9),x=de(ne),b=function(){function ee(){ue(this,ee)}return ae(ee,null,[{key:"refreshUploadAuth",value:function(E,re,ce){var le=(x.default.randomUUID(),x.default.randomUUID()),ve={AccessKeyId:E.accessKeyId,SecurityToken:E.securityToken,Action:"RefreshUploadVideo",VideoId:E.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:le,RequestId:E.requestId},Se=x.default.makeUTF8sort(ve,"=","&")+"&Signature="+x.default.aliyunEncodeURI(x.default.makeChangeSiga(ve,E.accessKeySecret)),ge="https://vod."+E.region+".aliyuncs.com/?"+Se;te.default.get(ge,function(Ce){var Ce=JSON.parse(Ce);re&&re(Ce)},function(_e){if(ce){var Ce=JSON.parse(_e);ce(Ce)}})}},{key:"getUploadAuth",value:function(E,re,ce){var le=(x.default.randomUUID(),x.default.randomUUID()),ve={AccessKeyId:E.accessKeyId,SecurityToken:E.securityToken,Action:"CreateUploadVideo",Title:E.title,FileName:E.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:le,RequestId:E.requestId};E.fileSize&&(ve.FileSize=E.fileSize),E.description&&(ve.Description=E.description),E.cateId&&(ve.CateId=E.cateId),E.tags&&(ve.Tags=E.tags),E.templateGroupId&&(ve.TemplateGroupId=E.templateGroupId),E.storageLocation&&(ve.StorageLocation=E.storageLocation),E.coverUrl&&(ve.CoverURL=E.coverUrl),E.transCodeMode&&(ve.TransCodeMode=E.transCodeMode),E.userData&&(ve.UserData=JSON.stringify(E.userData));var Se=x.default.makeUTF8sort(ve,"=","&")+"&Signature="+x.default.aliyunEncodeURI(x.default.makeChangeSiga(ve,E.accessKeySecret)),ge="https://vod."+E.region+".aliyuncs.com/?"+Se;te.default.get(ge,function(_e){try{_e=JSON.parse(_e)}catch(Ce){if(ce)return void ce({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}re&&re(_e)},function(_e){if(ce){var Ce={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{Ce=JSON.parse(_e)}catch(he){}ce(Ce)}})}},{key:"getImageUploadAuth",value:function(E,re,ce){var le=(x.default.randomUUID(),x.default.randomUUID()),ve={AccessKeyId:E.accessKeyId,SecurityToken:E.securityToken,Action:"CreateUploadImage",ImageType:E.imageType?E.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:le,RequestId:E.requestId};E.title&&(ve.Title=E.title),E.imageExt&&(ve.ImageExt=E.imageExt),E.tags&&(ve.Tags=E.tags),E.storageLocation&&(ve.StorageLocation=E.storageLocation);var Se=x.default.makeUTF8sort(ve,"=","&")+"&Signature="+x.default.aliyunEncodeURI(x.default.makeChangeSiga(ve,E.accessKeySecret)),ge="https://vod."+E.region+".aliyuncs.com/?"+Se;te.default.get(ge,function(_e){_e=JSON.parse(_e),re&&re(_e)},function(_e){if(ce){var Ce=JSON.parse(_e);ce(Ce)}})}}]),ee}();ie.default=b},function(y,ie,fe){(function(de,ue,ae){y.exports=ie=ue(fe(0),fe(28),fe(29))})(0,function(de){return de.HmacSHA1})},function(y,ie,fe){(function(de,ue){y.exports=ie=ue(fe(0))})(0,function(de){return function(){var ue=de,ae=ue.lib,se=ae.WordArray,te=ae.Hasher,ne=ue.algo,x=[],b=ne.SHA1=te.extend({_doReset:function(){this._hash=new se.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(ee,E){for(var re=this._hash.words,ce=re[0],le=re[1],ve=re[2],Se=re[3],ge=re[4],_e=0;_e<80;_e++){if(_e<16)x[_e]=0|ee[E+_e];else{var Ce=x[_e-3]^x[_e-8]^x[_e-14]^x[_e-16];x[_e]=Ce<<1|Ce>>>31}var he=(ce<<5|ce>>>27)+ge+x[_e];he+=_e<20?1518500249+(le&ve|~le&Se):_e<40?1859775393+(le^ve^Se):_e<60?(le&ve|le&Se|ve&Se)-1894007588:(le^ve^Se)-899497514,ge=Se,Se=ve,ve=le<<30|le>>>2,le=ce,ce=he}re[0]=re[0]+ce|0,re[1]=re[1]+le|0,re[2]=re[2]+ve|0,re[3]=re[3]+Se|0,re[4]=re[4]+ge|0},_doFinalize:function(){var ee=this._data,E=ee.words,re=8*this._nDataBytes,ce=8*ee.sigBytes;return E[ce>>>5]|=128<<24-ce%32,E[14+(ce+64>>>9<<4)]=Math.floor(re/4294967296),E[15+(ce+64>>>9<<4)]=re,ee.sigBytes=4*E.length,this._process(),this._hash},clone:function(){var ee=te.clone.call(this);return ee._hash=this._hash.clone(),ee}});ue.SHA1=te._createHelper(b),ue.HmacSHA1=te._createHmacHelper(b)}(),de.SHA1})},function(y,ie,fe){(function(de,ue){y.exports=ie=ue(fe(0))})(0,function(de){(function(){var ue=de,ae=ue.lib,se=ae.Base,te=ue.enc,ne=te.Utf8,x=ue.algo;x.HMAC=se.extend({init:function(b,ee){b=this._hasher=new b.init,typeof ee=="string"&&(ee=ne.parse(ee));var E=b.blockSize,re=4*E;ee.sigBytes>re&&(ee=b.finalize(ee)),ee.clamp();for(var ce=this._oKey=ee.clone(),le=this._iKey=ee.clone(),ve=ce.words,Se=le.words,ge=0;ge<E;ge++)ve[ge]^=1549556828,Se[ge]^=909522486;ce.sigBytes=le.sigBytes=re,this.reset()},reset:function(){var b=this._hasher;b.reset(),b.update(this._iKey)},update:function(b){return this._hasher.update(b),this},finalize:function(b){var ee=this._hasher,E=ee.finalize(b);return ee.reset(),ee.finalize(this._oKey.clone().concat(E))}})})()})},function(y,ie,fe){(function(de,ue){y.exports=ie=ue(fe(0))})(0,function(de){return function(){function ue(x,b,ee){for(var E=[],re=0,ce=0;ce<b;ce++)if(ce%4){var le=ee[x.charCodeAt(ce-1)]<<ce%4*2,ve=ee[x.charCodeAt(ce)]>>>6-ce%4*2;E[re>>>2]|=(le|ve)<<24-re%4*8,re++}return te.create(E,re)}var ae=de,se=ae.lib,te=se.WordArray,ne=ae.enc;ne.Base64={stringify:function(x){var b=x.words,ee=x.sigBytes,E=this._map;x.clamp();for(var re=[],ce=0;ce<ee;ce+=3)for(var le=b[ce>>>2]>>>24-ce%4*8&255,ve=b[ce+1>>>2]>>>24-(ce+1)%4*8&255,Se=b[ce+2>>>2]>>>24-(ce+2)%4*8&255,ge=le<<16|ve<<8|Se,_e=0;_e<4&&ce+.75*_e<ee;_e++)re.push(E.charAt(ge>>>6*(3-_e)&63));var Ce=E.charAt(64);if(Ce)for(;re.length%4;)re.push(Ce);return re.join("")},parse:function(x){var b=x.length,ee=this._map,E=this._reverseMap;if(!E){E=this._reverseMap=[];for(var re=0;re<ee.length;re++)E[ee.charCodeAt(re)]=re}var ce=ee.charAt(64);if(ce){var le=x.indexOf(ce);le!==-1&&(b=le)}return ue(x,b,E)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),de.enc.Base64})},function(y,ie,fe){"use strict";function de(be){return be&&be.__esModule?be:{default:be}}function ue(be,Ee){if(!(be instanceof Ee))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ae=function(){function be(Ee,Ae){for(var De=0;De<Ae.length;De++){var je=Ae[De];je.enumerable=je.enumerable||!1,je.configurable=!0,"value"in je&&(je.writable=!0),Object.defineProperty(Ee,je.key,je)}}return function(Ee,Ae,De){return Ae&&be(Ee.prototype,Ae),De&&be(Ee,De),Ee}}(),se=fe(8),te=de(se),ne=fe(7),x=de(ne),b=fe(4),ee=de(b),E=fe(6),re=de(E),ce=fe(1),le=de(ce),ve=fe(9),Se=de(ve),ge=fe(2),_e=fe(11),Ce=fe(10),he=function(){function be(){ue(this,be)}return ae(be,null,[{key:"getAuthInfo",value:function(Ee,Ae,De){var je=Ee+"|f#Ylm&^1TppeRhLg|"+De;return Ae&&(je=Ee+"|"+Ae+"|f#Ylm&^1TppeRhLg|"+De),ge(Ce.parse(je)).toString(_e)}},{key:"upload",value:function(Ee,Ae,De){var je=le.default.ISODateString(new Date),Fe=Math.floor(new Date().valueOf()/1e3),Re=ee.default.getClientId();Re=ee.default.setClientId(Re);var qe=be.getAuthInfo(Ee.userId,Re,Fe),Je=Se.default.randomUUID(),He={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:x.default.browser.name+(x.default.browser.version||""),AppVersion:re.default.version,AuthTimestamp:Fe,Timestamp:je,AuthInfo:qe,FileName:Ee.file.name,FileSize:Ee.file.size,FileCreateTime:Ee.file.lastModified,FileHash:Ee.fileHash,UploadId:Ee.checkpoint.checkpoint.uploadId,PartSize:Ee.checkpoint.checkpoint.partSize,DonePartsCount:Ee.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(Ee.checkpoint),UploadRatio:Ee.checkpoint.loaded,UserId:Ee.userId,VideoId:Ee.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:Je};Re&&(He.ClientId=Re);var ze=Se.default.makeUTF8sort(He,"=","&")+"&Signature="+Se.default.aliyunEncodeURI(Se.default.makeChangeSiga(He,Ee.accessKeySecret)),Qe="https://vod."+Ee.region+".aliyuncs.com/?"+ze;te.default.get(Qe,function($e){Ae&&Ae()},function($e){$e&&(De($e),console.log($e))})}},{key:"get",value:function(Ee,Ae,De){var je=le.default.ISODateString(new Date),Fe=Math.floor(new Date().valueOf()/1e3),Re=ee.default.getClientId(),qe=be.getAuthInfo(Ee.userId,Re,Fe),Je=Se.default.randomUUID(),He={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:x.default.browser.name+(x.default.browser.version||""),AppVersion:re.default.version,AuthTimestamp:Fe,Timestamp:je,AuthInfo:qe,UserId:Ee.userId,UploadInfoList:JSON.stringify(Ee.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:Je};Re&&(He.ClientId=Re);var ze=Se.default.makeUTF8sort(He,"=","&")+"&Signature="+Se.default.aliyunEncodeURI(Se.default.makeChangeSiga(He,Ee.accessKeySecret)),Qe="https://vod."+Ee.region+".aliyuncs.com/?"+ze;te.default.get(Qe,function($e){var ht={},Ge=Re;$e=$e?JSON.parse($e):{},$e.UploadProgress&&$e.UploadProgress.UploadProgressList&&$e.UploadProgress.UploadProgressList.length>0&&(ht=$e.UploadProgress.UploadProgressList[0],Ge=ht.ClientId),ee.default.setClientId(Ge),Ae&&Ae(ht)},function($e){$e&&(De($e),console.log($e))})}}]),be}();ie.default=he},function(y,ie,fe){"use strict";function de(ne,x){if(!(ne instanceof x))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(ie,"__esModule",{value:!0});var ue=function(){function ne(x,b){for(var ee=0;ee<b.length;ee++){var E=b[ee];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(x,E.key,E)}}return function(x,b,ee){return b&&ne(x.prototype,b),ee&&ne(x,ee),x}}(),ae=fe(2),se=fe(33),te=(fe(11),function(){function ne(){de(this,ne)}return ue(ne,null,[{key:"getMd5",value:function(x,b,ee){var E=new FileReader;E.onload=function(le){try{if(le&&le.target){var ve=ae(se.parse(le.target.result)),Se=ve.toString();b(Se)}}catch(ge){console.log(ge)}},E.onerror=function(le){console.log(le),errorCallback(le)};var re=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,ce=re.call(x,0,1024);E.readAsBinaryString(ce)}}]),ne}());ie.default=te},function(y,ie,fe){(function(de,ue){y.exports=ie=ue(fe(0))})(0,function(de){return de.enc.Latin1})}])},9981:function(rn,Tt){"use strict";const oe=function(){const y=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ie=1;ie<arguments.length;ie++){const fe=ie<0||arguments.length<=ie?void 0:arguments[ie];fe&&Object.keys(fe).forEach(de=>{const ue=fe[de];ue!==void 0&&(y[de]=ue)})}return y};Tt.Z=oe},86013:function(rn,Tt,oe){"use strict";var y=oe(59301),ie=oe(19248);const fe=de=>{let ue;return typeof de=="object"&&(de!=null&&de.clearIcon)?ue=de:de&&(ue={clearIcon:y.createElement(ie.Z,null)}),ue};Tt.Z=fe},97224:function(rn,Tt,oe){"use strict";oe.d(Tt,{F:function(){return y}});function y(fe){return fe!=null&&fe===fe.window}const ie=fe=>{var de,ue;if(typeof window=="undefined")return 0;let ae=0;return y(fe)?ae=fe.pageYOffset:fe instanceof Document?ae=fe.documentElement.scrollTop:(fe instanceof HTMLElement||fe)&&(ae=fe.scrollTop),fe&&!y(fe)&&typeof ae!="number"&&(ae=(ue=((de=fe.ownerDocument)!==null&&de!==void 0?de:fe).documentElement)===null||ue===void 0?void 0:ue.scrollTop),ae};Tt.Z=ie},83010:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return de}});var y=oe(16089);function ie(ue,ae,se,te){const ne=se-ae;return ue/=te/2,ue<1?ne/2*ue*ue*ue+ae:ne/2*((ue-=2)*ue*ue+2)+ae}var fe=oe(97224);function de(ue){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:se=()=>window,callback:te,duration:ne=450}=ae,x=se(),b=(0,fe.Z)(x),ee=Date.now(),E=()=>{const ce=Date.now()-ee,le=ie(ce>ne?ne:ce,b,ue,ne);(0,fe.F)(x)?x.scrollTo(window.pageXOffset,le):x instanceof Document||x.constructor.name==="HTMLDocument"?x.documentElement.scrollTop=le:x.scrollTop=le,ce<ne?(0,y.Z)(E):typeof te=="function"&&te()};(0,y.Z)(E)}},62673:function(rn,Tt,oe){"use strict";oe.d(Tt,{default:function(){return De}});var y=oe(59301),ie=oe(92310),fe=oe.n(ie),de=oe(16632),ue=oe(8654),ae=oe(12919),se=oe(63872),te=oe(48755),ne=oe(2171),x=oe(83397),b=oe(56553),E=y.createContext(null),re=oe(36170),ce=oe(74632),le=function(je,Fe){var Re={};for(var qe in je)Object.prototype.hasOwnProperty.call(je,qe)&&Fe.indexOf(qe)<0&&(Re[qe]=je[qe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,qe=Object.getOwnPropertySymbols(je);Je<qe.length;Je++)Fe.indexOf(qe[Je])<0&&Object.prototype.propertyIsEnumerable.call(je,qe[Je])&&(Re[qe[Je]]=je[qe[Je]]);return Re};const ve=(je,Fe)=>{var Re;const{prefixCls:qe,className:Je,rootClassName:He,children:ze,indeterminate:Qe=!1,style:$e,onMouseEnter:ht,onMouseLeave:Ge,skipGroup:Ue=!1,disabled:Ke}=je,et=le(je,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:rt,direction:Xe,checkbox:ut}=y.useContext(te.E_),lt=y.useContext(E),{isFormItemInput:kt}=y.useContext(b.aM),pt=y.useContext(ne.Z),Mt=(Re=(lt==null?void 0:lt.disabled)||Ke)!==null&&Re!==void 0?Re:pt,wt=y.useRef(et.value),bt=y.useRef(null),gt=(0,ue.sQ)(Fe,bt);y.useEffect(()=>{lt==null||lt.registerValue(et.value)},[]),y.useEffect(()=>{if(!Ue)return et.value!==wt.current&&(lt==null||lt.cancelValue(wt.current),lt==null||lt.registerValue(et.value),wt.current=et.value),()=>lt==null?void 0:lt.cancelValue(et.value)},[et.value]),y.useEffect(()=>{var Me;!((Me=bt.current)===null||Me===void 0)&&Me.input&&(bt.current.input.indeterminate=Qe)},[Qe]);const We=rt("checkbox",qe),Ie=(0,x.Z)(We),[xe,Be,Ye]=(0,re.ZP)(We,Ie),Pe=Object.assign({},et);lt&&!Ue&&(Pe.onChange=function(){et.onChange&&et.onChange.apply(et,arguments),lt.toggleOption&<.toggleOption({label:ze,value:et.value})},Pe.name=lt.name,Pe.checked=lt.value.includes(et.value));const Le=fe()(`${We}-wrapper`,{[`${We}-rtl`]:Xe==="rtl",[`${We}-wrapper-checked`]:Pe.checked,[`${We}-wrapper-disabled`]:Mt,[`${We}-wrapper-in-form-item`]:kt},ut==null?void 0:ut.className,Je,He,Ye,Ie,Be),pe=fe()({[`${We}-indeterminate`]:Qe},se.A,Be),[we,ke]=(0,ce.Z)(Pe.onClick);return xe(y.createElement(ae.Z,{component:"Checkbox",disabled:Mt},y.createElement("label",{className:Le,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),$e),onMouseEnter:ht,onMouseLeave:Ge,onClick:we},y.createElement(de.Z,Object.assign({},Pe,{onClick:ke,prefixCls:We,className:pe,disabled:Mt,ref:gt})),ze!==void 0&&y.createElement("span",{className:`${We}-label`},ze))))};var ge=y.forwardRef(ve),_e=oe(94480),Ce=oe(2738),he=function(je,Fe){var Re={};for(var qe in je)Object.prototype.hasOwnProperty.call(je,qe)&&Fe.indexOf(qe)<0&&(Re[qe]=je[qe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,qe=Object.getOwnPropertySymbols(je);Je<qe.length;Je++)Fe.indexOf(qe[Je])<0&&Object.prototype.propertyIsEnumerable.call(je,qe[Je])&&(Re[qe[Je]]=je[qe[Je]]);return Re},Ee=y.forwardRef((je,Fe)=>{const{defaultValue:Re,children:qe,options:Je=[],prefixCls:He,className:ze,rootClassName:Qe,style:$e,onChange:ht}=je,Ge=he(je,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ue,direction:Ke}=y.useContext(te.E_),[et,rt]=y.useState(Ge.value||Re||[]),[Xe,ut]=y.useState([]);y.useEffect(()=>{"value"in Ge&&rt(Ge.value||[])},[Ge.value]);const lt=y.useMemo(()=>Je.map(pe=>typeof pe=="string"||typeof pe=="number"?{label:pe,value:pe}:pe),[Je]),kt=pe=>{ut(we=>we.filter(ke=>ke!==pe))},pt=pe=>{ut(we=>[].concat((0,_e.Z)(we),[pe]))},Mt=pe=>{const we=et.indexOf(pe.value),ke=(0,_e.Z)(et);we===-1?ke.push(pe.value):ke.splice(we,1),"value"in Ge||rt(ke),ht==null||ht(ke.filter(Me=>Xe.includes(Me)).sort((Me,Oe)=>{const tt=lt.findIndex(st=>st.value===Me),ot=lt.findIndex(st=>st.value===Oe);return tt-ot}))},wt=Ue("checkbox",He),bt=`${wt}-group`,gt=(0,x.Z)(wt),[We,Ie,xe]=(0,re.ZP)(wt,gt),Be=(0,Ce.Z)(Ge,["value","disabled"]),Ye=Je.length?lt.map(pe=>y.createElement(ge,{prefixCls:wt,key:pe.value.toString(),disabled:"disabled"in pe?pe.disabled:Ge.disabled,value:pe.value,checked:et.includes(pe.value),onChange:pe.onChange,className:`${bt}-item`,style:pe.style,title:pe.title,id:pe.id,required:pe.required},pe.label)):qe,Pe={toggleOption:Mt,value:et,disabled:Ge.disabled,name:Ge.name,registerValue:pt,cancelValue:kt},Le=fe()(bt,{[`${bt}-rtl`]:Ke==="rtl"},ze,Qe,xe,gt,Ie);return We(y.createElement("div",Object.assign({className:Le,style:$e},Be,{ref:Fe}),y.createElement(E.Provider,{value:Pe},Ye)))});const Ae=ge;Ae.Group=Ee,Ae.__ANT_CHECKBOX=!0;var De=Ae},36170:function(rn,Tt,oe){"use strict";oe.d(Tt,{C2:function(){return ae}});var y=oe(36237),ie=oe(63356),fe=oe(51636),de=oe(16931);const ue=se=>{const{checkboxCls:te}=se,ne=`${te}-wrapper`;return[{[`${te}-group`]:Object.assign(Object.assign({},(0,ie.Wf)(se)),{display:"inline-flex",flexWrap:"wrap",columnGap:se.marginXS,[`> ${se.antCls}-row`]:{flex:1}}),[ne]:Object.assign(Object.assign({},(0,ie.Wf)(se)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${ne}`]:{marginInlineStart:0},[`&${ne}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[te]:Object.assign(Object.assign({},(0,ie.Wf)(se)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:se.borderRadiusSM,alignSelf:"center",[`${te}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${te}-inner`]:Object.assign({},(0,ie.oN)(se))},[`${te}-inner`]:{boxSizing:"border-box",display:"block",width:se.checkboxSize,height:se.checkboxSize,direction:"ltr",backgroundColor:se.colorBgContainer,border:`${(0,y.unit)(se.lineWidth)} ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusSM,borderCollapse:"separate",transition:`all ${se.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:se.calc(se.checkboxSize).div(14).mul(5).equal(),height:se.calc(se.checkboxSize).div(14).mul(8).equal(),border:`${(0,y.unit)(se.lineWidthBold)} solid ${se.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${se.motionDurationFast} ${se.motionEaseInBack}, opacity ${se.motionDurationFast}`}},"& + span":{paddingInlineStart:se.paddingXS,paddingInlineEnd:se.paddingXS}})},{[`
|
|
|
${ne}:not(${ne}-disabled),
|
|
|
${te}:not(${te}-disabled)
|
|
|
`]:{[`&:hover ${te}-inner`]:{borderColor:se.colorPrimary}},[`${ne}:not(${ne}-disabled)`]:{[`&:hover ${te}-checked:not(${te}-disabled) ${te}-inner`]:{backgroundColor:se.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${te}-checked:not(${te}-disabled):after`]:{borderColor:se.colorPrimaryHover}}},{[`${te}-checked`]:{[`${te}-inner`]:{backgroundColor:se.colorPrimary,borderColor:se.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${se.motionDurationMid} ${se.motionEaseOutBack} ${se.motionDurationFast}`}}},[`
|
|
|
${ne}-checked:not(${ne}-disabled),
|
|
|
${te}-checked:not(${te}-disabled)
|
|
|
`]:{[`&:hover ${te}-inner`]:{backgroundColor:se.colorPrimaryHover,borderColor:"transparent"}}},{[te]:{"&-indeterminate":{[`${te}-inner`]:{backgroundColor:`${se.colorBgContainer} !important`,borderColor:`${se.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:se.calc(se.fontSizeLG).div(2).equal(),height:se.calc(se.fontSizeLG).div(2).equal(),backgroundColor:se.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${te}-inner`]:{backgroundColor:`${se.colorBgContainer} !important`,borderColor:`${se.colorPrimary} !important`}}}},{[`${ne}-disabled`]:{cursor:"not-allowed"},[`${te}-disabled`]:{[`&, ${te}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${te}-inner`]:{background:se.colorBgContainerDisabled,borderColor:se.colorBorder,"&:after":{borderColor:se.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:se.colorTextDisabled},[`&${te}-indeterminate ${te}-inner::after`]:{background:se.colorTextDisabled}}}]};function ae(se,te){const ne=(0,fe.mergeToken)(te,{checkboxCls:`.${se}`,checkboxSize:te.controlInteractiveSize});return[ue(ne)]}Tt.ZP=(0,de.I$)("Checkbox",(se,te)=>{let{prefixCls:ne}=te;return[ae(ne,se)]})},38406:function(rn,Tt,oe){"use strict";var y=oe(59301),ie=oe(48755),fe=oe(584);const de=ue=>{const{componentName:ae}=ue,{getPrefixCls:se}=(0,y.useContext)(ie.E_),te=se("empty");switch(ae){case"Table":case"List":return y.createElement(fe.Z,{image:fe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return y.createElement(fe.Z,{image:fe.Z.PRESENTED_IMAGE_SIMPLE,className:`${te}-small`});case"Table.filter":return null;default:return y.createElement(fe.Z,null)}};Tt.Z=de},36207:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return we}});var y=oe(59301),ie=oe(92310),fe=oe.n(ie),de=oe(33885),ue=oe(42978),ae=oe(43403),se=oe(34280),te=y.createContext(null),ne=y.createContext({}),x=te,b=oe(20068),ee=oe(54476),E=oe(77900),re=oe(10228),ce=oe(26112),le=oe(75931),ve=oe(8654),Se=["prefixCls","className","containerRef"],ge=function(Me){var Oe=Me.prefixCls,tt=Me.className,ot=Me.containerRef,st=(0,le.Z)(Me,Se),ft=y.useContext(ne),Ft=ft.panel,Bt=(0,ve.x1)(Ft,ot);return y.createElement("div",(0,ee.Z)({className:fe()("".concat(Oe,"-content"),tt),role:"dialog",ref:Bt},(0,ce.Z)(Me,{aria:!0}),{"aria-modal":"true"},st))},_e=ge,Ce=oe(48736);function he(ke){return typeof ke=="string"&&String(Number(ke))===ke?((0,Ce.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ke)):ke}function be(ke){warning(!("wrapperClassName"in ke),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ke.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ee={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ae(ke,Me){var Oe,tt,ot,st=ke.prefixCls,ft=ke.open,Ft=ke.placement,Bt=ke.inline,qt=ke.push,$t=ke.forceRender,It=ke.autoFocus,en=ke.keyboard,Pt=ke.classNames,cn=ke.rootClassName,Sn=ke.rootStyle,An=ke.zIndex,wn=ke.className,At=ke.id,Gt=ke.style,on=ke.motion,vn=ke.width,Nn=ke.height,Yn=ke.children,Vn=ke.mask,ir=ke.maskClosable,Mn=ke.maskMotion,qn=ke.maskClassName,En=ke.maskStyle,Hn=ke.afterOpenChange,Qn=ke.onClose,dr=ke.onMouseEnter,On=ke.onMouseOver,$n=ke.onMouseLeave,Kn=ke.onClick,yn=ke.onKeyDown,Ne=ke.onKeyUp,Ve=ke.styles,nt=ke.drawerRender,mt=y.useRef(),_t=y.useRef(),Vt=y.useRef();y.useImperativeHandle(Me,function(){return mt.current});var Jt=function(tn){var ln=tn.keyCode,Rn=tn.shiftKey;switch(ln){case re.Z.TAB:{if(ln===re.Z.TAB){if(!Rn&&document.activeElement===Vt.current){var nr;(nr=_t.current)===null||nr===void 0||nr.focus({preventScroll:!0})}else if(Rn&&document.activeElement===_t.current){var rr;(rr=Vt.current)===null||rr===void 0||rr.focus({preventScroll:!0})}}break}case re.Z.ESC:{Qn&&en&&(tn.stopPropagation(),Qn(tn));break}}};y.useEffect(function(){if(ft&&It){var pn;(pn=mt.current)===null||pn===void 0||pn.focus({preventScroll:!0})}},[ft]);var Xt=y.useState(!1),dn=(0,ue.Z)(Xt,2),jn=dn[0],vr=dn[1],Nt=y.useContext(x),jt;typeof qt=="boolean"?jt=qt?{}:{distance:0}:jt=qt||{};var xt=(Oe=(tt=(ot=jt)===null||ot===void 0?void 0:ot.distance)!==null&&tt!==void 0?tt:Nt==null?void 0:Nt.pushDistance)!==null&&Oe!==void 0?Oe:180,Ot=y.useMemo(function(){return{pushDistance:xt,push:function(){vr(!0)},pull:function(){vr(!1)}}},[xt]);y.useEffect(function(){if(ft){var pn;Nt==null||(pn=Nt.push)===null||pn===void 0||pn.call(Nt)}else{var tn;Nt==null||(tn=Nt.pull)===null||tn===void 0||tn.call(Nt)}},[ft]),y.useEffect(function(){return function(){var pn;Nt==null||(pn=Nt.pull)===null||pn===void 0||pn.call(Nt)}},[]);var yt=Vn&&y.createElement(E.default,(0,ee.Z)({key:"mask"},Mn,{visible:ft}),function(pn,tn){var ln=pn.className,Rn=pn.style;return y.createElement("div",{className:fe()("".concat(st,"-mask"),ln,Pt==null?void 0:Pt.mask,qn),style:(0,de.Z)((0,de.Z)((0,de.Z)({},Rn),En),Ve==null?void 0:Ve.mask),onClick:ir&&ft?Qn:void 0,ref:tn})}),Lt=typeof on=="function"?on(Ft):on,Ut={};if(jn&&xt)switch(Ft){case"top":Ut.transform="translateY(".concat(xt,"px)");break;case"bottom":Ut.transform="translateY(".concat(-xt,"px)");break;case"left":Ut.transform="translateX(".concat(xt,"px)");break;default:Ut.transform="translateX(".concat(-xt,"px)");break}Ft==="left"||Ft==="right"?Ut.width=he(vn):Ut.height=he(Nn);var bn={onMouseEnter:dr,onMouseOver:On,onMouseLeave:$n,onClick:Kn,onKeyDown:yn,onKeyUp:Ne},Tn=y.createElement(E.default,(0,ee.Z)({key:"panel"},Lt,{visible:ft,forceRender:$t,onVisibleChanged:function(tn){Hn==null||Hn(tn)},removeOnLeave:!1,leavedClassName:"".concat(st,"-content-wrapper-hidden")}),function(pn,tn){var ln=pn.className,Rn=pn.style,nr=y.createElement(_e,(0,ee.Z)({id:At,containerRef:tn,prefixCls:st,className:fe()(wn,Pt==null?void 0:Pt.content),style:(0,de.Z)((0,de.Z)({},Gt),Ve==null?void 0:Ve.content)},(0,ce.Z)(ke,{aria:!0}),bn),Yn);return y.createElement("div",(0,ee.Z)({className:fe()("".concat(st,"-content-wrapper"),Pt==null?void 0:Pt.wrapper,ln),style:(0,de.Z)((0,de.Z)((0,de.Z)({},Ut),Rn),Ve==null?void 0:Ve.wrapper)},(0,ce.Z)(ke,{data:!0})),nt?nt(nr):nr)}),Gn=(0,de.Z)({},Sn);return An&&(Gn.zIndex=An),y.createElement(x.Provider,{value:Ot},y.createElement("div",{className:fe()(st,"".concat(st,"-").concat(Ft),cn,(0,b.Z)((0,b.Z)({},"".concat(st,"-open"),ft),"".concat(st,"-inline"),Bt)),style:Gn,tabIndex:-1,ref:mt,onKeyDown:Jt},yt,y.createElement("div",{tabIndex:0,ref:_t,style:Ee,"aria-hidden":"true","data-sentinel":"start"}),Tn,y.createElement("div",{tabIndex:0,ref:Vt,style:Ee,"aria-hidden":"true","data-sentinel":"end"})))}var De=y.forwardRef(Ae),je=De,Fe=function(Me){var Oe=Me.open,tt=Oe===void 0?!1:Oe,ot=Me.prefixCls,st=ot===void 0?"rc-drawer":ot,ft=Me.placement,Ft=ft===void 0?"right":ft,Bt=Me.autoFocus,qt=Bt===void 0?!0:Bt,$t=Me.keyboard,It=$t===void 0?!0:$t,en=Me.width,Pt=en===void 0?378:en,cn=Me.mask,Sn=cn===void 0?!0:cn,An=Me.maskClosable,wn=An===void 0?!0:An,At=Me.getContainer,Gt=Me.forceRender,on=Me.afterOpenChange,vn=Me.destroyOnClose,Nn=Me.onMouseEnter,Yn=Me.onMouseOver,Vn=Me.onMouseLeave,ir=Me.onClick,Mn=Me.onKeyDown,qn=Me.onKeyUp,En=Me.panelRef,Hn=y.useState(!1),Qn=(0,ue.Z)(Hn,2),dr=Qn[0],On=Qn[1],$n=y.useState(!1),Kn=(0,ue.Z)($n,2),yn=Kn[0],Ne=Kn[1];(0,se.Z)(function(){Ne(!0)},[]);var Ve=yn?tt:!1,nt=y.useRef(),mt=y.useRef();(0,se.Z)(function(){Ve&&(mt.current=document.activeElement)},[Ve]);var _t=function(jn){var vr;if(On(jn),on==null||on(jn),!jn&&mt.current&&!((vr=nt.current)!==null&&vr!==void 0&&vr.contains(mt.current))){var Nt;(Nt=mt.current)===null||Nt===void 0||Nt.focus({preventScroll:!0})}},Vt=y.useMemo(function(){return{panel:En}},[En]);if(!Gt&&!dr&&!Ve&&vn)return null;var Jt={onMouseEnter:Nn,onMouseOver:Yn,onMouseLeave:Vn,onClick:ir,onKeyDown:Mn,onKeyUp:qn},Xt=(0,de.Z)((0,de.Z)({},Me),{},{open:Ve,prefixCls:st,placement:Ft,autoFocus:qt,keyboard:It,width:Pt,mask:Sn,maskClosable:wn,inline:At===!1,afterOpenChange:_t,ref:nt},Jt);return y.createElement(ne.Provider,{value:Vt},y.createElement(ae.Z,{open:Ve||Gt||dr,autoDestroy:!1,getContainer:At,autoLock:Sn&&(Ve||dr)},y.createElement(je,Xt)))},Re=Fe,qe=Re,Je=oe(62487),He=oe(75030),ze=oe(86641),Qe=oe(55743),$e=oe(48755),ht=oe(91190),Ge=oe(78776),Ue=oe(458),et=ke=>{var Me,Oe;const{prefixCls:tt,title:ot,footer:st,extra:ft,loading:Ft,onClose:Bt,headerStyle:qt,bodyStyle:$t,footerStyle:It,children:en,classNames:Pt,styles:cn}=ke,Sn=(0,$e.dj)("drawer"),An=y.useCallback(vn=>y.createElement("button",{type:"button",onClick:Bt,"aria-label":"Close",className:`${tt}-close`},vn),[Bt]),[wn,At]=(0,Ge.Z)((0,Ge.w)(ke),(0,Ge.w)(Sn),{closable:!0,closeIconRender:An}),Gt=y.useMemo(()=>{var vn,Nn;return!ot&&!wn?null:y.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(vn=Sn.styles)===null||vn===void 0?void 0:vn.header),qt),cn==null?void 0:cn.header),className:fe()(`${tt}-header`,{[`${tt}-header-close-only`]:wn&&!ot&&!ft},(Nn=Sn.classNames)===null||Nn===void 0?void 0:Nn.header,Pt==null?void 0:Pt.header)},y.createElement("div",{className:`${tt}-header-title`},At,ot&&y.createElement("div",{className:`${tt}-title`},ot)),ft&&y.createElement("div",{className:`${tt}-extra`},ft))},[wn,At,ft,qt,tt,ot]),on=y.useMemo(()=>{var vn,Nn;if(!st)return null;const Yn=`${tt}-footer`;return y.createElement("div",{className:fe()(Yn,(vn=Sn.classNames)===null||vn===void 0?void 0:vn.footer,Pt==null?void 0:Pt.footer),style:Object.assign(Object.assign(Object.assign({},(Nn=Sn.styles)===null||Nn===void 0?void 0:Nn.footer),It),cn==null?void 0:cn.footer)},st)},[st,It,tt]);return y.createElement(y.Fragment,null,Gt,y.createElement("div",{className:fe()(`${tt}-body`,Pt==null?void 0:Pt.body,(Me=Sn.classNames)===null||Me===void 0?void 0:Me.body),style:Object.assign(Object.assign(Object.assign({},(Oe=Sn.styles)===null||Oe===void 0?void 0:Oe.body),$t),cn==null?void 0:cn.body)},Ft?y.createElement(Ue.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${tt}-body-skeleton`}):en),on)},rt=oe(36237),Xe=oe(63356),ut=oe(16931),lt=oe(51636);const kt=ke=>{const Me="100%";return{left:`translateX(-${Me})`,right:`translateX(${Me})`,top:`translateY(-${Me})`,bottom:`translateY(${Me})`}[ke]},pt=(ke,Me)=>({"&-enter, &-appear":Object.assign(Object.assign({},ke),{"&-active":Me}),"&-leave":Object.assign(Object.assign({},Me),{"&-active":ke})}),Mt=(ke,Me)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Me}`}}},pt({opacity:ke},{opacity:1})),wt=(ke,Me)=>[Mt(.7,Me),pt({transform:kt(ke)},{transform:"none"})];var gt=ke=>{const{componentCls:Me,motionDurationSlow:Oe}=ke;return{[Me]:{[`${Me}-mask-motion`]:Mt(0,Oe),[`${Me}-panel-motion`]:["left","right","top","bottom"].reduce((tt,ot)=>Object.assign(Object.assign({},tt),{[`&-${ot}`]:wt(ot,Oe)}),{})}}};const We=ke=>{const{borderRadiusSM:Me,componentCls:Oe,zIndexPopup:tt,colorBgMask:ot,colorBgElevated:st,motionDurationSlow:ft,motionDurationMid:Ft,paddingXS:Bt,padding:qt,paddingLG:$t,fontSizeLG:It,lineHeightLG:en,lineWidth:Pt,lineType:cn,colorSplit:Sn,marginXS:An,colorIcon:wn,colorIconHover:At,colorBgTextHover:Gt,colorBgTextActive:on,colorText:vn,fontWeightStrong:Nn,footerPaddingBlock:Yn,footerPaddingInline:Vn,calc:ir}=ke,Mn=`${Oe}-content-wrapper`;return{[Oe]:{position:"fixed",inset:0,zIndex:tt,pointerEvents:"none",color:vn,"&-pure":{position:"relative",background:st,display:"flex",flexDirection:"column",[`&${Oe}-left`]:{boxShadow:ke.boxShadowDrawerLeft},[`&${Oe}-right`]:{boxShadow:ke.boxShadowDrawerRight},[`&${Oe}-top`]:{boxShadow:ke.boxShadowDrawerUp},[`&${Oe}-bottom`]:{boxShadow:ke.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Oe}-mask`]:{position:"absolute",inset:0,zIndex:tt,background:ot,pointerEvents:"auto"},[Mn]:{position:"absolute",zIndex:tt,maxWidth:"100vw",transition:`all ${ft}`,"&-hidden":{display:"none"}},[`&-left > ${Mn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ke.boxShadowDrawerLeft},[`&-right > ${Mn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ke.boxShadowDrawerRight},[`&-top > ${Mn}`]:{top:0,insetInline:0,boxShadow:ke.boxShadowDrawerUp},[`&-bottom > ${Mn}`]:{bottom:0,insetInline:0,boxShadow:ke.boxShadowDrawerDown},[`${Oe}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:st,pointerEvents:"auto"},[`${Oe}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,rt.unit)(qt)} ${(0,rt.unit)($t)}`,fontSize:It,lineHeight:en,borderBottom:`${(0,rt.unit)(Pt)} ${cn} ${Sn}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Oe}-extra`]:{flex:"none"},[`${Oe}-close`]:Object.assign({display:"inline-flex",width:ir(It).add(Bt).equal(),height:ir(It).add(Bt).equal(),borderRadius:Me,justifyContent:"center",alignItems:"center",marginInlineEnd:An,color:wn,fontWeight:Nn,fontSize:It,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${Ft}`,textRendering:"auto","&:hover":{color:At,backgroundColor:Gt,textDecoration:"none"},"&:active":{backgroundColor:on}},(0,Xe.Qy)(ke)),[`${Oe}-title`]:{flex:1,margin:0,fontWeight:ke.fontWeightStrong,fontSize:It,lineHeight:en},[`${Oe}-body`]:{flex:1,minWidth:0,minHeight:0,padding:$t,overflow:"auto",[`${Oe}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${Oe}-footer`]:{flexShrink:0,padding:`${(0,rt.unit)(Yn)} ${(0,rt.unit)(Vn)}`,borderTop:`${(0,rt.unit)(Pt)} ${cn} ${Sn}`},"&-rtl":{direction:"rtl"}}}},Ie=ke=>({zIndexPopup:ke.zIndexPopupBase,footerPaddingBlock:ke.paddingXS,footerPaddingInline:ke.padding});var xe=(0,ut.I$)("Drawer",ke=>{const Me=(0,lt.mergeToken)(ke,{});return[We(Me),gt(Me)]},Ie),Be=function(ke,Me){var Oe={};for(var tt in ke)Object.prototype.hasOwnProperty.call(ke,tt)&&Me.indexOf(tt)<0&&(Oe[tt]=ke[tt]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,tt=Object.getOwnPropertySymbols(ke);ot<tt.length;ot++)Me.indexOf(tt[ot])<0&&Object.prototype.propertyIsEnumerable.call(ke,tt[ot])&&(Oe[tt[ot]]=ke[tt[ot]]);return Oe};const Ye=null,Pe={distance:180},Le=ke=>{var Me;const{rootClassName:Oe,width:tt,height:ot,size:st="default",mask:ft=!0,push:Ft=Pe,open:Bt,afterOpenChange:qt,onClose:$t,prefixCls:It,getContainer:en,style:Pt,className:cn,visible:Sn,afterVisibleChange:An,maskStyle:wn,drawerStyle:At,contentWrapperStyle:Gt}=ke,on=Be(ke,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:vn,getPrefixCls:Nn,direction:Yn,className:Vn,style:ir,classNames:Mn,styles:qn}=(0,$e.dj)("drawer"),En=Nn("drawer",It),[Hn,Qn,dr]=xe(En),On=en===void 0&&vn?()=>vn(document.body):en,$n=fe()({"no-mask":!ft,[`${En}-rtl`]:Yn==="rtl"},Oe,Qn,dr),Kn=y.useMemo(()=>tt!=null?tt:st==="large"?736:378,[tt,st]),yn=y.useMemo(()=>ot!=null?ot:st==="large"?736:378,[ot,st]),Ne={motionName:(0,ze.m)(En,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Ve=Xt=>({motionName:(0,ze.m)(En,`panel-motion-${Xt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),nt=(0,ht.H)(),[mt,_t]=(0,He.Cn)("Drawer",on.zIndex),{classNames:Vt={},styles:Jt={}}=on;return Hn(y.createElement(Je.Z,{form:!0,space:!0},y.createElement(Qe.Z.Provider,{value:_t},y.createElement(qe,Object.assign({prefixCls:En,onClose:$t,maskMotion:Ne,motion:Ve},on,{classNames:{mask:fe()(Vt.mask,Mn.mask),content:fe()(Vt.content,Mn.content),wrapper:fe()(Vt.wrapper,Mn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Jt.mask),wn),qn.mask),content:Object.assign(Object.assign(Object.assign({},Jt.content),At),qn.content),wrapper:Object.assign(Object.assign(Object.assign({},Jt.wrapper),Gt),qn.wrapper)},open:Bt!=null?Bt:Sn,mask:ft,push:Ft,width:Kn,height:yn,style:Object.assign(Object.assign({},ir),Pt),className:fe()(Vn,cn),rootClassName:$n,getContainer:On,afterOpenChange:qt!=null?qt:An,panelRef:nt,zIndex:mt}),y.createElement(et,Object.assign({prefixCls:En},on,{onClose:$t}))))))},pe=ke=>{const{prefixCls:Me,style:Oe,className:tt,placement:ot="right"}=ke,st=Be(ke,["prefixCls","style","className","placement"]),{getPrefixCls:ft}=y.useContext($e.E_),Ft=ft("drawer",Me),[Bt,qt,$t]=xe(Ft),It=fe()(Ft,`${Ft}-pure`,`${Ft}-${ot}`,qt,$t,tt);return Bt(y.createElement("div",{className:It,style:Oe},y.createElement(et,Object.assign({prefixCls:Ft},st))))};Le._InternalPanelDoNotUseOrYouWillBeFired=pe;var we=Le},19563:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return rt}});var y=oe(59301),ie=oe(33853),fe=oe(38819),de=oe(92310),ue=oe.n(de),ae=oe(96478),se=oe(6089),te=oe(18929),ne=oe(2738),x=oe(75030),ee=Xe=>typeof Xe!="object"&&typeof Xe!="function"||Xe===null,E=oe(52838),re=oe(45915),ce=oe(22703),le=oe(32383),ve=oe(55743),Se=oe(48755),ge=oe(83397),_e=oe(93041),Ce=oe(78857),he=oe(57700),be=oe(36237),Ee=oe(63356),Ae=oe(46e3),De=oe(93873),je=oe(34925),Fe=oe(37645),Re=oe(36305),qe=oe(16931),Je=oe(51636),ze=Xe=>{const{componentCls:ut,menuCls:lt,colorError:kt,colorTextLightSolid:pt}=Xe,Mt=`${lt}-item`;return{[`${ut}, ${ut}-menu-submenu`]:{[`${lt} ${Mt}`]:{[`&${Mt}-danger:not(${Mt}-disabled)`]:{color:kt,"&:hover":{color:pt,backgroundColor:kt}}}}}};const Qe=Xe=>{const{componentCls:ut,menuCls:lt,zIndexPopup:kt,dropdownArrowDistance:pt,sizePopupArrow:Mt,antCls:wt,iconCls:bt,motionDurationMid:gt,paddingBlock:We,fontSize:Ie,dropdownEdgeChildPadding:xe,colorTextDisabled:Be,fontSizeIcon:Ye,controlPaddingHorizontal:Pe,colorBgElevated:Le}=Xe;return[{[ut]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:kt,display:"block","&::before":{position:"absolute",insetBlock:Xe.calc(Mt).div(2).sub(pt).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${wt}-btn`]:{[`& > ${bt}-down, & > ${wt}-btn-icon > ${bt}-down`]:{fontSize:Ye}},[`${ut}-wrap`]:{position:"relative",[`${wt}-btn > ${bt}-down`]:{fontSize:Ye},[`${bt}-down::before`]:{transition:`transform ${gt}`}},[`${ut}-wrap-open`]:{[`${bt}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${wt}-slide-down-enter${wt}-slide-down-enter-active${ut}-placement-bottomLeft,
|
|
|
&${wt}-slide-down-appear${wt}-slide-down-appear-active${ut}-placement-bottomLeft,
|
|
|
&${wt}-slide-down-enter${wt}-slide-down-enter-active${ut}-placement-bottom,
|
|
|
&${wt}-slide-down-appear${wt}-slide-down-appear-active${ut}-placement-bottom,
|
|
|
&${wt}-slide-down-enter${wt}-slide-down-enter-active${ut}-placement-bottomRight,
|
|
|
&${wt}-slide-down-appear${wt}-slide-down-appear-active${ut}-placement-bottomRight`]:{animationName:Ae.fJ},[`&${wt}-slide-up-enter${wt}-slide-up-enter-active${ut}-placement-topLeft,
|
|
|
&${wt}-slide-up-appear${wt}-slide-up-appear-active${ut}-placement-topLeft,
|
|
|
&${wt}-slide-up-enter${wt}-slide-up-enter-active${ut}-placement-top,
|
|
|
&${wt}-slide-up-appear${wt}-slide-up-appear-active${ut}-placement-top,
|
|
|
&${wt}-slide-up-enter${wt}-slide-up-enter-active${ut}-placement-topRight,
|
|
|
&${wt}-slide-up-appear${wt}-slide-up-appear-active${ut}-placement-topRight`]:{animationName:Ae.Qt},[`&${wt}-slide-down-leave${wt}-slide-down-leave-active${ut}-placement-bottomLeft,
|
|
|
&${wt}-slide-down-leave${wt}-slide-down-leave-active${ut}-placement-bottom,
|
|
|
&${wt}-slide-down-leave${wt}-slide-down-leave-active${ut}-placement-bottomRight`]:{animationName:Ae.Uw},[`&${wt}-slide-up-leave${wt}-slide-up-leave-active${ut}-placement-topLeft,
|
|
|
&${wt}-slide-up-leave${wt}-slide-up-leave-active${ut}-placement-top,
|
|
|
&${wt}-slide-up-leave${wt}-slide-up-leave-active${ut}-placement-topRight`]:{animationName:Ae.ly}}},(0,Fe.ZP)(Xe,Le,{arrowPlacement:{top:!0,bottom:!0}}),{[`${ut} ${lt}`]:{position:"relative",margin:0},[`${lt}-submenu-popup`]:{position:"absolute",zIndex:kt,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${ut}, ${ut}-menu-submenu`]:Object.assign(Object.assign({},(0,Ee.Wf)(Xe)),{[lt]:Object.assign(Object.assign({padding:xe,listStyleType:"none",backgroundColor:Le,backgroundClip:"padding-box",borderRadius:Xe.borderRadiusLG,outline:"none",boxShadow:Xe.boxShadowSecondary},(0,Ee.Qy)(Xe)),{"&:empty":{padding:0,boxShadow:"none"},[`${lt}-item-group-title`]:{padding:`${(0,be.unit)(We)} ${(0,be.unit)(Pe)}`,color:Xe.colorTextDescription,transition:`all ${gt}`},[`${lt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${lt}-item-icon`]:{minWidth:Ie,marginInlineEnd:Xe.marginXS,fontSize:Xe.fontSizeSM},[`${lt}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${gt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${lt}-item-extra`]:{paddingInlineStart:Xe.padding,marginInlineStart:"auto",fontSize:Xe.fontSizeSM,color:Xe.colorTextDescription}},[`${lt}-item, ${lt}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,be.unit)(We)} ${(0,be.unit)(Pe)}`,color:Xe.colorText,fontWeight:"normal",fontSize:Ie,lineHeight:Xe.lineHeight,cursor:"pointer",transition:`all ${gt}`,borderRadius:Xe.borderRadiusSM,"&:hover, &-active":{backgroundColor:Xe.controlItemBgHover}},(0,Ee.Qy)(Xe)),{"&-selected":{color:Xe.colorPrimary,backgroundColor:Xe.controlItemBgActive,"&:hover, &-active":{backgroundColor:Xe.controlItemBgActiveHover}},"&-disabled":{color:Be,cursor:"not-allowed","&:hover":{color:Be,backgroundColor:Le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,be.unit)(Xe.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Xe.colorSplit},[`${ut}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Xe.paddingXS,[`${ut}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Xe.colorTextDescription,fontSize:Ye,fontStyle:"normal"}}}),[`${lt}-item-group-list`]:{margin:`0 ${(0,be.unit)(Xe.marginXS)}`,padding:0,listStyle:"none"},[`${lt}-submenu-title`]:{paddingInlineEnd:Xe.calc(Pe).add(Xe.fontSizeSM).equal()},[`${lt}-submenu-vertical`]:{position:"relative"},[`${lt}-submenu${lt}-submenu-disabled ${ut}-menu-submenu-title`]:{[`&, ${ut}-menu-submenu-arrow-icon`]:{color:Be,backgroundColor:Le,cursor:"not-allowed"}},[`${lt}-submenu-selected ${ut}-menu-submenu-title`]:{color:Xe.colorPrimary}})})},[(0,Ae.oN)(Xe,"slide-up"),(0,Ae.oN)(Xe,"slide-down"),(0,De.Fm)(Xe,"move-up"),(0,De.Fm)(Xe,"move-down"),(0,je._y)(Xe,"zoom-big")]]},$e=Xe=>Object.assign(Object.assign({zIndexPopup:Xe.zIndexPopupBase+50,paddingBlock:(Xe.controlHeight-Xe.fontSize*Xe.lineHeight)/2},(0,Fe.wZ)({contentRadius:Xe.borderRadiusLG,limitVerticalRadius:!0})),(0,Re.w)(Xe));var ht=(0,qe.I$)("Dropdown",Xe=>{const{marginXXS:ut,sizePopupArrow:lt,paddingXXS:kt,componentCls:pt}=Xe,Mt=(0,Je.mergeToken)(Xe,{menuCls:`${pt}-menu`,dropdownArrowDistance:Xe.calc(lt).div(2).add(ut).equal(),dropdownEdgeChildPadding:kt});return[Qe(Mt),ze(Mt)]},$e,{resetStyle:!1});const Ge=null,Ue=Xe=>{var ut;const{menu:lt,arrow:kt,prefixCls:pt,children:Mt,trigger:wt,disabled:bt,dropdownRender:gt,getPopupContainer:We,overlayClassName:Ie,rootClassName:xe,overlayStyle:Be,open:Ye,onOpenChange:Pe,visible:Le,onVisibleChange:pe,mouseEnterDelay:we=.15,mouseLeaveDelay:ke=.1,autoAdjustOverflow:Me=!0,placement:Oe="",overlay:tt,transitionName:ot}=Xe,{getPopupContainer:st,getPrefixCls:ft,direction:Ft,dropdown:Bt}=y.useContext(Se.E_),qt=(0,le.ln)("Dropdown"),$t=y.useMemo(()=>{const On=ft();return ot!==void 0?ot:Oe.includes("top")?`${On}-slide-down`:`${On}-slide-up`},[ft,Oe,ot]),It=y.useMemo(()=>Oe?Oe.includes("Center")?Oe.slice(0,Oe.indexOf("Center")):Oe:Ft==="rtl"?"bottomRight":"bottomLeft",[Oe,Ft]),en=ft("dropdown",pt),Pt=(0,ge.Z)(en),[cn,Sn,An]=ht(en,Pt),[,wn]=(0,he.ZP)(),At=y.Children.only(ee(Mt)?y.createElement("span",null,Mt):Mt),Gt=(0,ce.Tm)(At,{className:ue()(`${en}-trigger`,{[`${en}-rtl`]:Ft==="rtl"},At.props.className),disabled:(ut=At.props.disabled)!==null&&ut!==void 0?ut:bt}),on=bt?[]:wt,vn=!!(on!=null&&on.includes("contextMenu")),[Nn,Yn]=(0,te.Z)(!1,{value:Ye!=null?Ye:Le}),Vn=(0,se.Z)(On=>{Pe==null||Pe(On,{source:"trigger"}),pe==null||pe(On),Yn(On)}),ir=ue()(Ie,xe,Sn,An,Pt,Bt==null?void 0:Bt.className,{[`${en}-rtl`]:Ft==="rtl"}),Mn=(0,E.Z)({arrowPointAtCenter:typeof kt=="object"&&kt.pointAtCenter,autoAdjustOverflow:Me,offset:wn.marginXXS,arrowWidth:kt?wn.sizePopupArrow:0,borderRadius:wn.borderRadius}),qn=y.useCallback(()=>{lt!=null&<.selectable&&(lt!=null&<.multiple)||(Pe==null||Pe(!1,{source:"menu"}),Yn(!1))},[lt==null?void 0:lt.selectable,lt==null?void 0:lt.multiple]),En=()=>{let On;return lt!=null&<.items?On=y.createElement(_e.default,Object.assign({},lt)):typeof tt=="function"?On=tt():On=tt,gt&&(On=gt(On)),On=y.Children.only(typeof On=="string"?y.createElement("span",null,On):On),y.createElement(Ce.J,{prefixCls:`${en}-menu`,rootClassName:ue()(An,Pt),expandIcon:y.createElement("span",{className:`${en}-menu-submenu-arrow`},Ft==="rtl"?y.createElement(ie.Z,{className:`${en}-menu-submenu-arrow-icon`}):y.createElement(fe.Z,{className:`${en}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:qn,validator:$n=>{let{mode:Kn}=$n}},On)},[Hn,Qn]=(0,x.Cn)("Dropdown",Be==null?void 0:Be.zIndex);let dr=y.createElement(ae.Z,Object.assign({alignPoint:vn},(0,ne.Z)(Xe,["rootClassName"]),{mouseEnterDelay:we,mouseLeaveDelay:ke,visible:Nn,builtinPlacements:Mn,arrow:!!kt,overlayClassName:ir,prefixCls:en,getPopupContainer:We||st,transitionName:$t,trigger:on,overlay:En,placement:It,onVisibleChange:Vn,overlayStyle:Object.assign(Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Be),{zIndex:Hn})}),Gt);return Hn&&(dr=y.createElement(ve.Z.Provider,{value:Qn},dr)),cn(dr)},Ke=(0,re.Z)(Ue,"align",void 0,"dropdown",Xe=>Xe),et=Xe=>y.createElement(Ke,Object.assign({},Xe),y.createElement("span",null));Ue._InternalPanelDoNotUseOrYouWillBeFired=et;var rt=Ue},75727:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return re}});var y=oe(19563),ie=oe(59301),fe=oe(18785),de=oe(92310),ue=oe.n(de),ae=oe(7939),se=oe(48755),te=oe(44104),ne=oe(70045),x=function(ce,le){var ve={};for(var Se in ce)Object.prototype.hasOwnProperty.call(ce,Se)&&le.indexOf(Se)<0&&(ve[Se]=ce[Se]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,Se=Object.getOwnPropertySymbols(ce);ge<Se.length;ge++)le.indexOf(Se[ge])<0&&Object.prototype.propertyIsEnumerable.call(ce,Se[ge])&&(ve[Se[ge]]=ce[Se[ge]]);return ve};const b=ce=>{const{getPopupContainer:le,getPrefixCls:ve,direction:Se}=ie.useContext(se.E_),{prefixCls:ge,type:_e="default",danger:Ce,disabled:he,loading:be,onClick:Ee,htmlType:Ae,children:De,className:je,menu:Fe,arrow:Re,autoFocus:qe,overlay:Je,trigger:He,align:ze,open:Qe,onOpenChange:$e,placement:ht,getPopupContainer:Ge,href:Ue,icon:Ke=ie.createElement(fe.Z,null),title:et,buttonsRender:rt=we=>we,mouseEnterDelay:Xe,mouseLeaveDelay:ut,overlayClassName:lt,overlayStyle:kt,destroyPopupOnHide:pt,dropdownRender:Mt}=ce,wt=x(ce,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),bt=ve("dropdown",ge),gt=`${bt}-button`,We={menu:Fe,arrow:Re,autoFocus:qe,align:ze,disabled:he,trigger:he?[]:He,onOpenChange:$e,getPopupContainer:Ge||le,mouseEnterDelay:Xe,mouseLeaveDelay:ut,overlayClassName:lt,overlayStyle:kt,destroyPopupOnHide:pt,dropdownRender:Mt},{compactSize:Ie,compactItemClassnames:xe}=(0,ne.ri)(bt,Se),Be=ue()(gt,xe,je);"overlay"in ce&&(We.overlay=Je),"open"in ce&&(We.open=Qe),"placement"in ce?We.placement=ht:We.placement=Se==="rtl"?"bottomLeft":"bottomRight";const Ye=ie.createElement(ae.ZP,{type:_e,danger:Ce,disabled:he,loading:be,onClick:Ee,htmlType:Ae,href:Ue,title:et},De),Pe=ie.createElement(ae.ZP,{type:_e,danger:Ce,icon:Ke}),[Le,pe]=rt([Ye,Pe]);return ie.createElement(te.Z.Compact,Object.assign({className:Be,size:Ie,block:!0},wt),Le,ie.createElement(y.Z,Object.assign({},We),pe))};b.__ANT_BUTTON=!0;var ee=b;const E=y.Z;E.Button=ee;var re=E},584:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return _e}});var y=oe(59301),ie=oe(92310),fe=oe.n(ie),de=oe(9017),ue=oe(17835),ae=oe(57700),te=()=>{const[,Ce]=(0,ae.ZP)(),[he]=(0,de.Z)("Empty"),Ee=new ue.FastColor(Ce.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return y.createElement("svg",{style:Ee,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(he==null?void 0:he.description)||"Empty"),y.createElement("g",{fill:"none",fillRule:"evenodd"},y.createElement("g",{transform:"translate(24 31.67)"},y.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),y.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),y.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),y.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),y.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),y.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),y.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},y.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),y.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},x=()=>{const[,Ce]=(0,ae.ZP)(),[he]=(0,de.Z)("Empty"),{colorFill:be,colorFillTertiary:Ee,colorFillQuaternary:Ae,colorBgContainer:De}=Ce,{borderColor:je,shadowColor:Fe,contentColor:Re}=(0,y.useMemo)(()=>({borderColor:new ue.FastColor(be).onBackground(De).toHexString(),shadowColor:new ue.FastColor(Ee).onBackground(De).toHexString(),contentColor:new ue.FastColor(Ae).onBackground(De).toHexString()}),[be,Ee,Ae,De]);return y.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},y.createElement("title",null,(he==null?void 0:he.description)||"Empty"),y.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},y.createElement("ellipse",{fill:Fe,cx:"32",cy:"33",rx:"32",ry:"7"}),y.createElement("g",{fillRule:"nonzero",stroke:je},y.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),y.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Re}))))},b=oe(16931),ee=oe(51636);const E=Ce=>{const{componentCls:he,margin:be,marginXS:Ee,marginXL:Ae,fontSize:De,lineHeight:je}=Ce;return{[he]:{marginInline:Ee,fontSize:De,lineHeight:je,textAlign:"center",[`${he}-image`]:{height:Ce.emptyImgHeight,marginBottom:Ee,opacity:Ce.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${he}-description`]:{color:Ce.colorTextDescription},[`${he}-footer`]:{marginTop:be},"&-normal":{marginBlock:Ae,color:Ce.colorTextDescription,[`${he}-description`]:{color:Ce.colorTextDescription},[`${he}-image`]:{height:Ce.emptyImgHeightMD}},"&-small":{marginBlock:Ee,color:Ce.colorTextDescription,[`${he}-image`]:{height:Ce.emptyImgHeightSM}}}}};var re=(0,b.I$)("Empty",Ce=>{const{componentCls:he,controlHeightLG:be,calc:Ee}=Ce,Ae=(0,ee.mergeToken)(Ce,{emptyImgCls:`${he}-img`,emptyImgHeight:Ee(be).mul(2.5).equal(),emptyImgHeightMD:be,emptyImgHeightSM:Ee(be).mul(.875).equal()});return[E(Ae)]}),ce=oe(48755),le=function(Ce,he){var be={};for(var Ee in Ce)Object.prototype.hasOwnProperty.call(Ce,Ee)&&he.indexOf(Ee)<0&&(be[Ee]=Ce[Ee]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ee=Object.getOwnPropertySymbols(Ce);Ae<Ee.length;Ae++)he.indexOf(Ee[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Ee[Ae])&&(be[Ee[Ae]]=Ce[Ee[Ae]]);return be};const ve=y.createElement(te,null),Se=y.createElement(x,null),ge=Ce=>{const{className:he,rootClassName:be,prefixCls:Ee,image:Ae=ve,description:De,children:je,imageStyle:Fe,style:Re,classNames:qe,styles:Je}=Ce,He=le(Ce,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:ze,direction:Qe,className:$e,style:ht,classNames:Ge,styles:Ue}=(0,ce.dj)("empty"),Ke=ze("empty",Ee),[et,rt,Xe]=re(Ke),[ut]=(0,de.Z)("Empty"),lt=typeof De!="undefined"?De:ut==null?void 0:ut.description,kt=typeof lt=="string"?lt:"empty";let pt=null;return typeof Ae=="string"?pt=y.createElement("img",{alt:kt,src:Ae}):pt=Ae,et(y.createElement("div",Object.assign({className:fe()(rt,Xe,Ke,$e,{[`${Ke}-normal`]:Ae===Se,[`${Ke}-rtl`]:Qe==="rtl"},he,be,Ge.root,qe==null?void 0:qe.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},Ue.root),ht),Je==null?void 0:Je.root),Re)},He),y.createElement("div",{className:fe()(`${Ke}-image`,Ge.image,qe==null?void 0:qe.image),style:Object.assign(Object.assign(Object.assign({},Fe),Ue.image),Je==null?void 0:Je.image)},pt),lt&&y.createElement("div",{className:fe()(`${Ke}-description`,Ge.description,qe==null?void 0:qe.description),style:Object.assign(Object.assign({},Ue.description),Je==null?void 0:Je.description)},lt),je&&y.createElement("div",{className:fe()(`${Ke}-footer`,Ge.footer,qe==null?void 0:qe.footer),style:Object.assign(Object.assign({},Ue.footer),Je==null?void 0:Je.footer)},je)))};ge.PRESENTED_IMAGE_DEFAULT=ve,ge.PRESENTED_IMAGE_SIMPLE=Se;var _e=ge},28284:function(rn,Tt,oe){"use strict";oe.d(Tt,{default:function(){return jt}});var y=oe(56553),ie=oe(94480),fe=oe(59301),de=oe(92310),ue=oe.n(de),ae=oe(77900),se=oe(86641),te=oe(83397);function ne(xt){const[Ot,yt]=fe.useState(xt);return fe.useEffect(()=>{const Lt=setTimeout(()=>{yt(xt)},xt.length?0:10);return()=>{clearTimeout(Lt)}},[xt]),Ot}var x=oe(36237),b=oe(63356),ee=oe(34925),E=oe(34961),re=oe(51636),ce=oe(16931),ve=xt=>{const{componentCls:Ot}=xt,yt=`${Ot}-show-help`,Lt=`${Ot}-show-help-item`;return{[yt]:{transition:`opacity ${xt.motionDurationFast} ${xt.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Lt]:{overflow:"hidden",transition:`height ${xt.motionDurationFast} ${xt.motionEaseInOut},
|
|
|
opacity ${xt.motionDurationFast} ${xt.motionEaseInOut},
|
|
|
transform ${xt.motionDurationFast} ${xt.motionEaseInOut} !important`,[`&${Lt}-appear, &${Lt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Lt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Se=xt=>({legend:{display:"block",width:"100%",marginBottom:xt.marginLG,padding:0,color:xt.colorTextDescription,fontSize:xt.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,x.unit)(xt.lineWidth)} ${xt.lineType} ${xt.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,x.unit)(xt.controlOutlineWidth)} ${xt.controlOutline}`},output:{display:"block",paddingTop:15,color:xt.colorText,fontSize:xt.fontSize,lineHeight:xt.lineHeight}}),ge=(xt,Ot)=>{const{formItemCls:yt}=xt;return{[yt]:{[`${yt}-label > label`]:{height:Ot},[`${yt}-control-input`]:{minHeight:Ot}}}},_e=xt=>{const{componentCls:Ot}=xt;return{[xt.componentCls]:Object.assign(Object.assign(Object.assign({},(0,b.Wf)(xt)),Se(xt)),{[`${Ot}-text`]:{display:"inline-block",paddingInlineEnd:xt.paddingSM},"&-small":Object.assign({},ge(xt,xt.controlHeightSM)),"&-large":Object.assign({},ge(xt,xt.controlHeightLG))})}},Ce=xt=>{const{formItemCls:Ot,iconCls:yt,rootPrefixCls:Lt,antCls:Ut,labelRequiredMarkColor:bn,labelColor:Tn,labelFontSize:Gn,labelHeight:pn,labelColonMarginInlineStart:tn,labelColonMarginInlineEnd:ln,itemMarginBottom:Rn}=xt;return{[Ot]:Object.assign(Object.assign({},(0,b.Wf)(xt)),{marginBottom:Rn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Ut}-row`]:{display:"none"},"&-has-warning":{[`${Ot}-split`]:{color:xt.colorError}},"&-has-error":{[`${Ot}-split`]:{color:xt.colorWarning}},[`${Ot}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:xt.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:pn,color:Tn,fontSize:Gn,[`> ${yt}`]:{fontSize:xt.fontSize,verticalAlign:"top"},[`&${Ot}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:xt.marginXXS,color:bn,fontSize:xt.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Ot}-required-mark-hidden, &${Ot}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Ot}-optional`]:{display:"inline-block",marginInlineStart:xt.marginXXS,color:xt.colorTextDescription,[`&${Ot}-required-mark-hidden`]:{display:"none"}},[`${Ot}-tooltip`]:{color:xt.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:xt.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:tn,marginInlineEnd:ln},[`&${Ot}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ot}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Lt}-col-'"]):not([class*="' ${Lt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:xt.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ot]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:xt.colorTextDescription,fontSize:xt.fontSize,lineHeight:xt.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:xt.controlHeightSM,transition:`color ${xt.motionDurationMid} ${xt.motionEaseOut}`},"&-explain":{"&-error":{color:xt.colorError},"&-warning":{color:xt.colorWarning}}},[`&-with-help ${Ot}-explain`]:{height:"auto",opacity:1},[`${Ot}-feedback-icon`]:{fontSize:xt.fontSize,textAlign:"center",visibility:"visible",animationName:ee.kr,animationDuration:xt.motionDurationMid,animationTimingFunction:xt.motionEaseOutBack,pointerEvents:"none","&-success":{color:xt.colorSuccess},"&-error":{color:xt.colorError},"&-warning":{color:xt.colorWarning},"&-validating":{color:xt.colorPrimary}}})}},he=(xt,Ot)=>{const{formItemCls:yt}=xt;return{[`${Ot}-horizontal`]:{[`${yt}-label`]:{flexGrow:0},[`${yt}-control`]:{flex:"1 1 0",minWidth:0},[`${yt}-label[class$='-24'], ${yt}-label[class*='-24 ']`]:{[`& + ${yt}-control`]:{minWidth:"unset"}}}}},be=xt=>{const{componentCls:Ot,formItemCls:yt,inlineItemMarginBottom:Lt}=xt;return{[`${Ot}-inline`]:{display:"flex",flexWrap:"wrap",[yt]:{flex:"none",marginInlineEnd:xt.margin,marginBottom:Lt,"&-row":{flexWrap:"nowrap"},[`> ${yt}-label,
|
|
|
> ${yt}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${yt}-label`]:{flex:"none"},[`${Ot}-text`]:{display:"inline-block"},[`${yt}-has-feedback`]:{display:"inline-block"}}}}},Ee=xt=>({padding:xt.verticalLabelPadding,margin:xt.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ae=xt=>{const{componentCls:Ot,formItemCls:yt,rootPrefixCls:Lt}=xt;return{[`${yt} ${yt}-label`]:Ee(xt),[`${Ot}:not(${Ot}-inline)`]:{[yt]:{flexWrap:"wrap",[`${yt}-label, ${yt}-control`]:{[`&:not([class*=" ${Lt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},De=xt=>{const{componentCls:Ot,formItemCls:yt,antCls:Lt}=xt;return{[`${Ot}-vertical`]:{[`${yt}:not(${yt}-horizontal)`]:{[`${yt}-row`]:{flexDirection:"column"},[`${yt}-label > label`]:{height:"auto"},[`${yt}-control`]:{width:"100%"},[`${yt}-label,
|
|
|
${Lt}-col-24${yt}-label,
|
|
|
${Lt}-col-xl-24${yt}-label`]:Ee(xt)}},[`@media (max-width: ${(0,x.unit)(xt.screenXSMax)})`]:[Ae(xt),{[Ot]:{[`${yt}:not(${yt}-horizontal)`]:{[`${Lt}-col-xs-24${yt}-label`]:Ee(xt)}}}],[`@media (max-width: ${(0,x.unit)(xt.screenSMMax)})`]:{[Ot]:{[`${yt}:not(${yt}-horizontal)`]:{[`${Lt}-col-sm-24${yt}-label`]:Ee(xt)}}},[`@media (max-width: ${(0,x.unit)(xt.screenMDMax)})`]:{[Ot]:{[`${yt}:not(${yt}-horizontal)`]:{[`${Lt}-col-md-24${yt}-label`]:Ee(xt)}}},[`@media (max-width: ${(0,x.unit)(xt.screenLGMax)})`]:{[Ot]:{[`${yt}:not(${yt}-horizontal)`]:{[`${Lt}-col-lg-24${yt}-label`]:Ee(xt)}}}}},je=xt=>{const{formItemCls:Ot,antCls:yt}=xt;return{[`${Ot}-vertical`]:{[`${Ot}-row`]:{flexDirection:"column"},[`${Ot}-label > label`]:{height:"auto"},[`${Ot}-control`]:{width:"100%"}},[`${Ot}-vertical ${Ot}-label,
|
|
|
${yt}-col-24${Ot}-label,
|
|
|
${yt}-col-xl-24${Ot}-label`]:Ee(xt),[`@media (max-width: ${(0,x.unit)(xt.screenXSMax)})`]:[Ae(xt),{[Ot]:{[`${yt}-col-xs-24${Ot}-label`]:Ee(xt)}}],[`@media (max-width: ${(0,x.unit)(xt.screenSMMax)})`]:{[Ot]:{[`${yt}-col-sm-24${Ot}-label`]:Ee(xt)}},[`@media (max-width: ${(0,x.unit)(xt.screenMDMax)})`]:{[Ot]:{[`${yt}-col-md-24${Ot}-label`]:Ee(xt)}},[`@media (max-width: ${(0,x.unit)(xt.screenLGMax)})`]:{[Ot]:{[`${yt}-col-lg-24${Ot}-label`]:Ee(xt)}}}},Fe=xt=>({labelRequiredMarkColor:xt.colorError,labelColor:xt.colorTextHeading,labelFontSize:xt.fontSize,labelHeight:xt.controlHeight,labelColonMarginInlineStart:xt.marginXXS/2,labelColonMarginInlineEnd:xt.marginXS,itemMarginBottom:xt.marginLG,verticalLabelPadding:`0 0 ${xt.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Re=(xt,Ot)=>(0,re.mergeToken)(xt,{formItemCls:`${xt.componentCls}-item`,rootPrefixCls:Ot});var qe=(0,ce.I$)("Form",(xt,Ot)=>{let{rootPrefixCls:yt}=Ot;const Lt=Re(xt,yt);return[_e(Lt),Ce(Lt),ve(Lt),he(Lt,Lt.componentCls),he(Lt,Lt.formItemCls),be(Lt),De(Lt),je(Lt),(0,E.Z)(Lt),ee.kr]},Fe,{order:-1e3});const Je=[];function He(xt,Ot,yt){let Lt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof xt=="string"?xt:`${Ot}-${Lt}`,error:xt,errorStatus:yt}}var Qe=xt=>{let{help:Ot,helpStatus:yt,errors:Lt=Je,warnings:Ut=Je,className:bn,fieldId:Tn,onVisibleChanged:Gn}=xt;const{prefixCls:pn}=fe.useContext(y.Rk),tn=`${pn}-item-explain`,ln=(0,te.Z)(pn),[Rn,nr,rr]=qe(pn,ln),fr=fe.useMemo(()=>(0,se.Z)(pn),[pn]),ti=ne(Lt),fn=ne(Ut),Kt=fe.useMemo(()=>Ot!=null?[He(Ot,"help",yt)]:[].concat((0,ie.Z)(ti.map((Ln,Un)=>He(Ln,"error","error",Un))),(0,ie.Z)(fn.map((Ln,Un)=>He(Ln,"warning","warning",Un)))),[Ot,yt,ti,fn]),gn=fe.useMemo(()=>{const Ln={};return Kt.forEach(Un=>{let{key:hr}=Un;Ln[hr]=(Ln[hr]||0)+1}),Kt.map((Un,hr)=>Object.assign(Object.assign({},Un),{key:Ln[Un.key]>1?`${Un.key}-fallback-${hr}`:Un.key}))},[Kt]),xn={};return Tn&&(xn.id=`${Tn}_help`),Rn(fe.createElement(ae.default,{motionDeadline:fr.motionDeadline,motionName:`${pn}-show-help`,visible:!!gn.length,onVisibleChanged:Gn},Ln=>{const{className:Un,style:hr}=Ln;return fe.createElement("div",Object.assign({},xn,{className:ue()(tn,Un,rr,ln,bn,nr),style:hr}),fe.createElement(ae.CSSMotionList,Object.assign({keys:gn},(0,se.Z)(pn),{motionName:`${pn}-show-help-item`,component:!1}),ar=>{const{key:Sr,error:Cr,errorStatus:yr,className:pr,style:$r}=ar;return fe.createElement("div",{key:Sr,className:ue()(pr,{[`${tn}-${yr}`]:yr}),style:$r},Cr)}))}))},$e=oe(22001),ht=oe(48755),Ge=oe(2171),Ue=oe(31756),Ke=oe(23069),et=oe(76846),rt=oe(16722);const Xe=["parentNode"],ut="form_item";function lt(xt){return xt===void 0||xt===!1?[]:Array.isArray(xt)?xt:[xt]}function kt(xt,Ot){if(!xt.length)return;const yt=xt.join("_");return Ot?`${Ot}_${yt}`:Xe.includes(yt)?`${ut}_${yt}`:yt}function pt(xt,Ot,yt,Lt,Ut,bn){let Tn=Lt;return bn!==void 0?Tn=bn:yt.validating?Tn="validating":xt.length?Tn="error":Ot.length?Tn="warning":(yt.touched||Ut&&yt.validated)&&(Tn="success"),Tn}var Mt=function(xt,Ot){var yt={};for(var Lt in xt)Object.prototype.hasOwnProperty.call(xt,Lt)&&Ot.indexOf(Lt)<0&&(yt[Lt]=xt[Lt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Lt=Object.getOwnPropertySymbols(xt);Ut<Lt.length;Ut++)Ot.indexOf(Lt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(xt,Lt[Ut])&&(yt[Lt[Ut]]=xt[Lt[Ut]]);return yt};function wt(xt){return lt(xt).join("_")}function bt(xt,Ot){const yt=Ot.getFieldInstance(xt),Lt=(0,et.bn)(yt);if(Lt)return Lt;const Ut=kt(lt(xt),Ot.__INTERNAL__.name);if(Ut)return document.getElementById(Ut)}function gt(xt){const[Ot]=(0,$e.useForm)(),yt=fe.useRef({}),Lt=fe.useMemo(()=>xt!=null?xt:Object.assign(Object.assign({},Ot),{__INTERNAL__:{itemRef:Ut=>bn=>{const Tn=wt(Ut);bn?yt.current[Tn]=bn:delete yt.current[Tn]}},scrollToField:function(Ut){let bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Tn}=bn,Gn=Mt(bn,["focus"]),pn=bt(Ut,Lt);pn&&((0,rt.Z)(pn,Object.assign({scrollMode:"if-needed",block:"nearest"},Gn)),Tn&&Lt.focusField(Ut))},focusField:Ut=>{var bn,Tn;const Gn=Lt.getFieldInstance(Ut);typeof(Gn==null?void 0:Gn.focus)=="function"?Gn.focus():(Tn=(bn=bt(Ut,Lt))===null||bn===void 0?void 0:bn.focus)===null||Tn===void 0||Tn.call(bn)},getFieldInstance:Ut=>{const bn=wt(Ut);return yt.current[bn]}}),[xt,Ot]);return[Lt]}var We=oe(98350),Ie=function(xt,Ot){var yt={};for(var Lt in xt)Object.prototype.hasOwnProperty.call(xt,Lt)&&Ot.indexOf(Lt)<0&&(yt[Lt]=xt[Lt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Lt=Object.getOwnPropertySymbols(xt);Ut<Lt.length;Ut++)Ot.indexOf(Lt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(xt,Lt[Ut])&&(yt[Lt[Ut]]=xt[Lt[Ut]]);return yt};const xe=(xt,Ot)=>{const yt=fe.useContext(Ge.Z),{getPrefixCls:Lt,direction:Ut,requiredMark:bn,colon:Tn,scrollToFirstError:Gn,className:pn,style:tn}=(0,ht.dj)("form"),{prefixCls:ln,className:Rn,rootClassName:nr,size:rr,disabled:fr=yt,form:ti,colon:fn,labelAlign:Kt,labelWrap:gn,labelCol:xn,wrapperCol:Ln,hideRequiredMark:Un,layout:hr="horizontal",scrollToFirstError:ar,requiredMark:Sr,onFinishFailed:Cr,name:yr,style:pr,feedbackIcons:$r,variant:kr}=xt,Nr=Ie(xt,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Yr=(0,Ue.Z)(rr),ai=fe.useContext(We.Z),Rr=fe.useMemo(()=>Sr!==void 0?Sr:Un?!1:bn!==void 0?bn:!0,[Un,Sr,bn]),ii=fn!=null?fn:Tn,Dr=Lt("form",ln),fi=(0,te.Z)(Dr),[Lr,wi,Jr]=qe(Dr,fi),Zr=ue()(Dr,`${Dr}-${hr}`,{[`${Dr}-hide-required-mark`]:Rr===!1,[`${Dr}-rtl`]:Ut==="rtl",[`${Dr}-${Yr}`]:Yr},Jr,fi,wi,pn,Rn,nr),[si]=gt(ti),{__INTERNAL__:vi}=si;vi.name=yr;const pi=fe.useMemo(()=>({name:yr,labelAlign:Kt,labelCol:xn,labelWrap:gn,wrapperCol:Ln,vertical:hr==="vertical",colon:ii,requiredMark:Rr,itemRef:vi.itemRef,form:si,feedbackIcons:$r}),[yr,Kt,xn,Ln,hr,ii,Rr,si,$r]),ri=fe.useRef(null);fe.useImperativeHandle(Ot,()=>{var Xn;return Object.assign(Object.assign({},si),{nativeElement:(Xn=ri.current)===null||Xn===void 0?void 0:Xn.nativeElement})});const Er=(Xn,er)=>{if(Xn){let zn={block:"nearest"};typeof Xn=="object"&&(zn=Object.assign(Object.assign({},zn),Xn)),si.scrollToField(er,zn)}},kn=Xn=>{if(Cr==null||Cr(Xn),Xn.errorFields.length){const er=Xn.errorFields[0].name;if(ar!==void 0){Er(ar,er);return}Gn!==void 0&&Er(Gn,er)}};return Lr(fe.createElement(y.pg.Provider,{value:kr},fe.createElement(Ge.n,{disabled:fr},fe.createElement(Ke.Z.Provider,{value:Yr},fe.createElement(y.RV,{validateMessages:ai},fe.createElement(y.q3.Provider,{value:pi},fe.createElement($e.default,Object.assign({id:yr},Nr,{name:yr,onFinishFailed:kn,form:si,ref:ri,style:Object.assign(Object.assign({},tn),pr),className:Zr}))))))))};var Ye=fe.forwardRef(xe),Pe=oe(41799),Le=oe(8654),pe=oe(22703),we=oe(32383),ke=oe(11592);function Me(xt){if(typeof xt=="function")return xt;const Ot=(0,ke.Z)(xt);return Ot.length<=1?Ot[0]:Ot}const Oe=()=>{const{status:xt,errors:Ot=[],warnings:yt=[]}=fe.useContext(y.aM);return{status:xt,errors:Ot,warnings:yt}};Oe.Context=y.aM;var tt=Oe,ot=oe(16089);function st(xt){const[Ot,yt]=fe.useState(xt),Lt=fe.useRef(null),Ut=fe.useRef([]),bn=fe.useRef(!1);fe.useEffect(()=>(bn.current=!1,()=>{bn.current=!0,ot.Z.cancel(Lt.current),Lt.current=null}),[]);function Tn(Gn){bn.current||(Lt.current===null&&(Ut.current=[],Lt.current=(0,ot.Z)(()=>{Lt.current=null,yt(pn=>{let tn=pn;return Ut.current.forEach(ln=>{tn=ln(tn)}),tn})})),Ut.current.push(Gn))}return[Ot,Tn]}function ft(){const{itemRef:xt}=fe.useContext(y.q3),Ot=fe.useRef({});function yt(Lt,Ut){const bn=Ut&&typeof Ut=="object"&&(0,Le.C4)(Ut),Tn=Lt.join("_");return(Ot.current.name!==Tn||Ot.current.originRef!==bn)&&(Ot.current.name=Tn,Ot.current.originRef=bn,Ot.current.ref=(0,Le.sQ)(xt(Lt),bn)),Ot.current.ref}return yt}var Ft=oe(29194),Bt=oe(34280),qt=oe(2738),$t=oe(65970),It=oe(70425),en=oe(5472);const Pt=xt=>{const{formItemCls:Ot}=xt;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ot}-control`]:{display:"flex"}}}};var cn=(0,ce.bk)(["Form","item-item"],(xt,Ot)=>{let{rootPrefixCls:yt}=Ot;const Lt=Re(xt,yt);return[Pt(Lt)]}),Sn=function(xt,Ot){var yt={};for(var Lt in xt)Object.prototype.hasOwnProperty.call(xt,Lt)&&Ot.indexOf(Lt)<0&&(yt[Lt]=xt[Lt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Lt=Object.getOwnPropertySymbols(xt);Ut<Lt.length;Ut++)Ot.indexOf(Lt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(xt,Lt[Ut])&&(yt[Lt[Ut]]=xt[Lt[Ut]]);return yt};const An=24;var At=xt=>{const{prefixCls:Ot,status:yt,labelCol:Lt,wrapperCol:Ut,children:bn,errors:Tn,warnings:Gn,_internalItemRender:pn,extra:tn,help:ln,fieldId:Rn,marginBottom:nr,onErrorVisibleChanged:rr,label:fr}=xt,ti=`${Ot}-item`,fn=fe.useContext(y.q3),Kt=fe.useMemo(()=>{let Nr=Object.assign({},Ut||fn.wrapperCol||{});return fr===null&&!Lt&&!Ut&&fn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(ai=>{const Rr=ai?[ai]:[],ii=(0,It.U2)(fn.labelCol,Rr),Dr=typeof ii=="object"?ii:{},fi=(0,It.U2)(Nr,Rr),Lr=typeof fi=="object"?fi:{};"span"in Dr&&!("offset"in Lr)&&Dr.span<An&&(Nr=(0,It.t8)(Nr,[].concat(Rr,["offset"]),Dr.span))}),Nr},[Ut,fn]),gn=ue()(`${ti}-control`,Kt.className),xn=fe.useMemo(()=>{const{labelCol:Nr,wrapperCol:Yr}=fn;return Sn(fn,["labelCol","wrapperCol"])},[fn]),Ln=fe.useRef(null),[Un,hr]=fe.useState(0);(0,Bt.Z)(()=>{tn&&Ln.current?hr(Ln.current.clientHeight):hr(0)},[tn]);const ar=fe.createElement("div",{className:`${ti}-control-input`},fe.createElement("div",{className:`${ti}-control-input-content`},bn)),Sr=fe.useMemo(()=>({prefixCls:Ot,status:yt}),[Ot,yt]),Cr=nr!==null||Tn.length||Gn.length?fe.createElement(y.Rk.Provider,{value:Sr},fe.createElement(Qe,{fieldId:Rn,errors:Tn,warnings:Gn,help:ln,helpStatus:yt,className:`${ti}-explain-connected`,onVisibleChanged:rr})):null,yr={};Rn&&(yr.id=`${Rn}_extra`);const pr=tn?fe.createElement("div",Object.assign({},yr,{className:`${ti}-extra`,ref:Ln}),tn):null,$r=Cr||pr?fe.createElement("div",{className:`${ti}-additional`,style:nr?{minHeight:nr+Un}:{}},Cr,pr):null,kr=pn&&pn.mark==="pro_table_render"&&pn.render?pn.render(xt,{input:ar,errorList:Cr,extra:pr}):fe.createElement(fe.Fragment,null,ar,$r);return fe.createElement(y.q3.Provider,{value:xn},fe.createElement(en.Z,Object.assign({},Kt,{className:gn}),kr),fe.createElement(cn,{prefixCls:Ot}))},Gt=oe(61485),on=oe(9017),vn=oe(85981),Nn=oe(25399),Yn=function(xt,Ot){var yt={};for(var Lt in xt)Object.prototype.hasOwnProperty.call(xt,Lt)&&Ot.indexOf(Lt)<0&&(yt[Lt]=xt[Lt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Lt=Object.getOwnPropertySymbols(xt);Ut<Lt.length;Ut++)Ot.indexOf(Lt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(xt,Lt[Ut])&&(yt[Lt[Ut]]=xt[Lt[Ut]]);return yt};function Vn(xt){return xt?typeof xt=="object"&&!fe.isValidElement(xt)?xt:{title:xt}:null}var Mn=xt=>{let{prefixCls:Ot,label:yt,htmlFor:Lt,labelCol:Ut,labelAlign:bn,colon:Tn,required:Gn,requiredMark:pn,tooltip:tn,vertical:ln}=xt;var Rn;const[nr]=(0,on.Z)("Form"),{labelAlign:rr,labelCol:fr,labelWrap:ti,colon:fn}=fe.useContext(y.q3);if(!yt)return null;const Kt=Ut||fr||{},gn=bn||rr,xn=`${Ot}-item-label`,Ln=ue()(xn,gn==="left"&&`${xn}-left`,Kt.className,{[`${xn}-wrap`]:!!ti});let Un=yt;const hr=Tn===!0||fn!==!1&&Tn!==!1;hr&&!ln&&typeof yt=="string"&&yt.trim()&&(Un=yt.replace(/[:|:]\s*$/,""));const Sr=Vn(tn);if(Sr){const{icon:Nr=fe.createElement(Gt.Z,null)}=Sr,Yr=Yn(Sr,["icon"]),ai=fe.createElement(Nn.Z,Object.assign({},Yr),fe.cloneElement(Nr,{className:`${Ot}-item-tooltip`,title:"",onClick:Rr=>{Rr.preventDefault()},tabIndex:null}));Un=fe.createElement(fe.Fragment,null,Un,ai)}const Cr=pn==="optional",yr=typeof pn=="function",pr=pn===!1;yr?Un=pn(Un,{required:!!Gn}):Cr&&!Gn&&(Un=fe.createElement(fe.Fragment,null,Un,fe.createElement("span",{className:`${Ot}-item-optional`,title:""},(nr==null?void 0:nr.optional)||((Rn=vn.Z.Form)===null||Rn===void 0?void 0:Rn.optional))));let $r;pr?$r="hidden":(Cr||yr)&&($r="optional");const kr=ue()({[`${Ot}-item-required`]:Gn,[`${Ot}-item-required-mark-${$r}`]:$r,[`${Ot}-item-no-colon`]:!hr});return fe.createElement(en.Z,Object.assign({},Kt,{className:Ln}),fe.createElement("label",{htmlFor:Lt,className:kr,title:typeof yt=="string"?yt:""},Un))},qn=oe(29679),En=oe(19248),Hn=oe(96512),Qn=oe(58617);const dr={success:qn.Z,warning:Hn.Z,error:En.Z,validating:Qn.Z};function On(xt){let{children:Ot,errors:yt,warnings:Lt,hasFeedback:Ut,validateStatus:bn,prefixCls:Tn,meta:Gn,noStyle:pn}=xt;const tn=`${Tn}-item`,{feedbackIcons:ln}=fe.useContext(y.q3),Rn=pt(yt,Lt,Gn,null,!!Ut,bn),{isFormItemInput:nr,status:rr,hasFeedback:fr,feedbackIcon:ti}=fe.useContext(y.aM),fn=fe.useMemo(()=>{var Kt;let gn;if(Ut){const Ln=Ut!==!0&&Ut.icons||ln,Un=Rn&&((Kt=Ln==null?void 0:Ln({status:Rn,errors:yt,warnings:Lt}))===null||Kt===void 0?void 0:Kt[Rn]),hr=Rn&&dr[Rn];gn=Un!==!1&&hr?fe.createElement("span",{className:ue()(`${tn}-feedback-icon`,`${tn}-feedback-icon-${Rn}`)},Un||fe.createElement(hr,null)):null}const xn={status:Rn||"",errors:yt,warnings:Lt,hasFeedback:!!Ut,feedbackIcon:gn,isFormItemInput:!0};return pn&&(xn.status=(Rn!=null?Rn:rr)||"",xn.isFormItemInput=nr,xn.hasFeedback=!!(Ut!=null?Ut:fr),xn.feedbackIcon=Ut!==void 0?xn.feedbackIcon:ti),xn},[Rn,Ut,pn,nr,rr]);return fe.createElement(y.aM.Provider,{value:fn},Ot)}var $n=function(xt,Ot){var yt={};for(var Lt in xt)Object.prototype.hasOwnProperty.call(xt,Lt)&&Ot.indexOf(Lt)<0&&(yt[Lt]=xt[Lt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Lt=Object.getOwnPropertySymbols(xt);Ut<Lt.length;Ut++)Ot.indexOf(Lt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(xt,Lt[Ut])&&(yt[Lt[Ut]]=xt[Lt[Ut]]);return yt};function Kn(xt){const{prefixCls:Ot,className:yt,rootClassName:Lt,style:Ut,help:bn,errors:Tn,warnings:Gn,validateStatus:pn,meta:tn,hasFeedback:ln,hidden:Rn,children:nr,fieldId:rr,required:fr,isRequired:ti,onSubItemMetaChange:fn,layout:Kt}=xt,gn=$n(xt,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),xn=`${Ot}-item`,{requiredMark:Ln,vertical:Un}=fe.useContext(y.q3),hr=Un||Kt==="vertical",ar=fe.useRef(null),Sr=ne(Tn),Cr=ne(Gn),yr=bn!=null,pr=!!(yr||Tn.length||Gn.length),$r=!!ar.current&&(0,Ft.Z)(ar.current),[kr,Nr]=fe.useState(null);(0,Bt.Z)(()=>{if(pr&&ar.current){const Dr=getComputedStyle(ar.current);Nr(parseInt(Dr.marginBottom,10))}},[pr,$r]);const Yr=Dr=>{Dr||Nr(null)},Rr=function(){let Dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fi=Dr?Sr:tn.errors,Lr=Dr?Cr:tn.warnings;return pt(fi,Lr,tn,"",!!ln,pn)}(),ii=ue()(xn,yt,Lt,{[`${xn}-with-help`]:yr||Sr.length||Cr.length,[`${xn}-has-feedback`]:Rr&&ln,[`${xn}-has-success`]:Rr==="success",[`${xn}-has-warning`]:Rr==="warning",[`${xn}-has-error`]:Rr==="error",[`${xn}-is-validating`]:Rr==="validating",[`${xn}-hidden`]:Rn,[`${xn}-${Kt}`]:Kt});return fe.createElement("div",{className:ii,style:Ut,ref:ar},fe.createElement($t.Z,Object.assign({className:`${xn}-row`},(0,qt.Z)(gn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),fe.createElement(Mn,Object.assign({htmlFor:rr},xt,{requiredMark:Ln,required:fr!=null?fr:ti,prefixCls:Ot,vertical:hr})),fe.createElement(At,Object.assign({},xt,tn,{errors:Sr,warnings:Cr,prefixCls:Ot,status:Rr,help:bn,marginBottom:kr,onErrorVisibleChanged:Yr}),fe.createElement(y.qI.Provider,{value:fn},fe.createElement(On,{prefixCls:Ot,meta:tn,errors:tn.errors,warnings:tn.warnings,hasFeedback:ln,validateStatus:Rr},nr)))),!!kr&&fe.createElement("div",{className:`${xn}-margin-offset`,style:{marginBottom:-kr}}))}const yn="__SPLIT__",Ne=null;function Ve(xt,Ot){const yt=Object.keys(xt),Lt=Object.keys(Ot);return yt.length===Lt.length&&yt.every(Ut=>{const bn=xt[Ut],Tn=Ot[Ut];return bn===Tn||typeof bn=="function"||typeof Tn=="function"})}const nt=fe.memo(xt=>{let{children:Ot}=xt;return Ot},(xt,Ot)=>Ve(xt.control,Ot.control)&&xt.update===Ot.update&&xt.childProps.length===Ot.childProps.length&&xt.childProps.every((yt,Lt)=>yt===Ot.childProps[Lt]));function mt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function _t(xt){const{name:Ot,noStyle:yt,className:Lt,dependencies:Ut,prefixCls:bn,shouldUpdate:Tn,rules:Gn,children:pn,required:tn,label:ln,messageVariables:Rn,trigger:nr="onChange",validateTrigger:rr,hidden:fr,help:ti,layout:fn}=xt,{getPrefixCls:Kt}=fe.useContext(ht.E_),{name:gn}=fe.useContext(y.q3),xn=Me(pn),Ln=typeof xn=="function",Un=fe.useContext(y.qI),{validateTrigger:hr}=fe.useContext($e.FieldContext),ar=rr!==void 0?rr:hr,Sr=Ot!=null,Cr=Kt("form",bn),yr=(0,te.Z)(Cr),[pr,$r,kr]=qe(Cr,yr),Nr=(0,we.ln)("Form.Item"),Yr=fe.useContext($e.ListContext),ai=fe.useRef(null),[Rr,ii]=st({}),[Dr,fi]=(0,Pe.Z)(()=>mt()),Lr=ri=>{const Er=Yr==null?void 0:Yr.getKey(ri.name);if(fi(ri.destroy?mt():ri,!0),yt&&ti!==!1&&Un){let kn=ri.name;if(ri.destroy)kn=ai.current||kn;else if(Er!==void 0){const[Xn,er]=Er;kn=[Xn].concat((0,ie.Z)(er)),ai.current=kn}Un(ri,kn)}},wi=(ri,Er)=>{ii(kn=>{const Xn=Object.assign({},kn),zn=[].concat((0,ie.Z)(ri.name.slice(0,-1)),(0,ie.Z)(Er)).join(yn);return ri.destroy?delete Xn[zn]:Xn[zn]=ri,Xn})},[Jr,Zr]=fe.useMemo(()=>{const ri=(0,ie.Z)(Dr.errors),Er=(0,ie.Z)(Dr.warnings);return Object.values(Rr).forEach(kn=>{ri.push.apply(ri,(0,ie.Z)(kn.errors||[])),Er.push.apply(Er,(0,ie.Z)(kn.warnings||[]))}),[ri,Er]},[Rr,Dr.errors,Dr.warnings]),si=ft();function vi(ri,Er,kn){return yt&&!fr?fe.createElement(On,{prefixCls:Cr,hasFeedback:xt.hasFeedback,validateStatus:xt.validateStatus,meta:Dr,errors:Jr,warnings:Zr,noStyle:!0},ri):fe.createElement(Kn,Object.assign({key:"row"},xt,{className:ue()(Lt,kr,yr,$r),prefixCls:Cr,fieldId:Er,isRequired:kn,errors:Jr,warnings:Zr,meta:Dr,onSubItemMetaChange:wi,layout:fn}),ri)}if(!Sr&&!Ln&&!Ut)return pr(vi(xn));let pi={};return typeof ln=="string"?pi.label=ln:Ot&&(pi.label=String(Ot)),Rn&&(pi=Object.assign(Object.assign({},pi),Rn)),pr(fe.createElement($e.Field,Object.assign({},xt,{messageVariables:pi,trigger:nr,validateTrigger:ar,onMetaChange:Lr}),(ri,Er,kn)=>{const Xn=lt(Ot).length&&Er?Er.name:[],er=kt(Xn,gn),zn=tn!==void 0?tn:!!(Gn!=null&&Gn.some(Wn=>{if(Wn&&typeof Wn=="object"&&Wn.required&&!Wn.warningOnly)return!0;if(typeof Wn=="function"){const Jn=Wn(kn);return(Jn==null?void 0:Jn.required)&&!(Jn!=null&&Jn.warningOnly)}return!1})),xr=Object.assign({},ri);let Br=null;if(Array.isArray(xn)&&Sr)Br=xn;else if(!(Ln&&(!(Tn||Ut)||Sr))){if(!(Ut&&!Ln&&!Sr))if(fe.isValidElement(xn)){const Wn=Object.assign(Object.assign({},xn.props),xr);if(Wn.id||(Wn.id=er),ti||Jr.length>0||Zr.length>0||xt.extra){const br=[];(ti||Jr.length>0)&&br.push(`${er}_help`),xt.extra&&br.push(`${er}_extra`),Wn["aria-describedby"]=br.join(" ")}Jr.length>0&&(Wn["aria-invalid"]="true"),zn&&(Wn["aria-required"]="true"),(0,Le.Yr)(xn)&&(Wn.ref=si(Xn,xn)),new Set([].concat((0,ie.Z)(lt(nr)),(0,ie.Z)(lt(ar)))).forEach(br=>{Wn[br]=function(){for(var ui,Ri,gi,Hi,Oi,Pi=arguments.length,ki=new Array(Pi),Fi=0;Fi<Pi;Fi++)ki[Fi]=arguments[Fi];(gi=xr[br])===null||gi===void 0||(ui=gi).call.apply(ui,[xr].concat(ki)),(Oi=(Hi=xn.props)[br])===null||Oi===void 0||(Ri=Oi).call.apply(Ri,[Hi].concat(ki))}});const gr=[Wn["aria-required"],Wn["aria-invalid"],Wn["aria-describedby"]];Br=fe.createElement(nt,{control:xr,update:xn,childProps:gr},(0,pe.Tm)(xn,Wn))}else Ln&&(Tn||Ut)&&!Sr?Br=xn(kn):Br=xn}return vi(Br,er,zn)}))}const Vt=_t;Vt.useStatus=tt;var Jt=Vt,Xt=function(xt,Ot){var yt={};for(var Lt in xt)Object.prototype.hasOwnProperty.call(xt,Lt)&&Ot.indexOf(Lt)<0&&(yt[Lt]=xt[Lt]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Lt=Object.getOwnPropertySymbols(xt);Ut<Lt.length;Ut++)Ot.indexOf(Lt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(xt,Lt[Ut])&&(yt[Lt[Ut]]=xt[Lt[Ut]]);return yt},jn=xt=>{var{prefixCls:Ot,children:yt}=xt,Lt=Xt(xt,["prefixCls","children"]);const{getPrefixCls:Ut}=fe.useContext(ht.E_),bn=Ut("form",Ot),Tn=fe.useMemo(()=>({prefixCls:bn,status:"error"}),[bn]);return fe.createElement($e.List,Object.assign({},Lt),(Gn,pn,tn)=>fe.createElement(y.Rk.Provider,{value:Tn},yt(Gn.map(ln=>Object.assign(Object.assign({},ln),{fieldKey:ln.key})),pn,{errors:tn.errors,warnings:tn.warnings})))};function vr(){const{form:xt}=fe.useContext(y.q3);return xt}const Nt=Ye;Nt.Item=Jt,Nt.List=jn,Nt.ErrorList=Qe,Nt.useForm=gt,Nt.useFormInstance=vr,Nt.useWatch=$e.useWatch,Nt.Provider=y.RV,Nt.create=()=>{};var jt=Nt},75786:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return ti}});var y=oe(59301),ie=oe(15277),fe=oe(92310),de=oe.n(fe),ue=oe(54476),ae=oe(33885),se=oe(20068),te=oe(42978),ne=oe(76190),x=oe(75931),b=/margin|padding|width|height|max|min|offset/,ee={left:!0,top:!0},E={cssFloat:1,styleFloat:1,float:1};function re(fn){return fn.nodeType===1?fn.ownerDocument.defaultView.getComputedStyle(fn,null):{}}function ce(fn,Kt,gn){if(Kt=Kt.toLowerCase(),gn==="auto"){if(Kt==="height")return fn.offsetHeight;if(Kt==="width")return fn.offsetWidth}return Kt in ee||(ee[Kt]=b.test(Kt)),ee[Kt]?parseFloat(gn)||0:gn}function le(fn,Kt){var gn=arguments.length,xn=re(fn);return Kt=E[Kt]?"cssFloat"in fn.style?"cssFloat":"styleFloat":Kt,gn===1?xn:ce(fn,Kt,xn[Kt]||fn.style[Kt])}function ve(fn,Kt,gn){var xn=arguments.length;if(Kt=E[Kt]?"cssFloat"in fn.style?"cssFloat":"styleFloat":Kt,xn===3)return typeof gn=="number"&&b.test(Kt)&&(gn="".concat(gn,"px")),fn.style[Kt]=gn,gn;for(var Ln in Kt)Kt.hasOwnProperty(Ln)&&ve(fn,Ln,Kt[Ln]);return re(fn)}function Se(fn){return fn===document.body?document.documentElement.clientWidth:fn.offsetWidth}function ge(fn){return fn===document.body?window.innerHeight||document.documentElement.clientHeight:fn.offsetHeight}function _e(){var fn=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Kt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:fn,height:Kt}}function Ce(){var fn=document.documentElement.clientWidth,Kt=window.innerHeight||document.documentElement.clientHeight;return{width:fn,height:Kt}}function he(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(fn){var Kt=fn.getBoundingClientRect(),gn=document.documentElement;return{left:Kt.left+(window.pageXOffset||gn.scrollLeft)-(gn.clientLeft||document.body.clientLeft||0),top:Kt.top+(window.pageYOffset||gn.scrollTop)-(gn.clientTop||document.body.clientTop||0)}}var Ee=oe(18929),Ae=oe(55311),De=oe(8224),je=oe(10228),Fe=oe(43403),Re=oe(77900),qe=y.createContext(null),Je=function(Kt){var gn=Kt.visible,xn=Kt.maskTransitionName,Ln=Kt.getContainer,Un=Kt.prefixCls,hr=Kt.rootClassName,ar=Kt.icons,Sr=Kt.countRender,Cr=Kt.showSwitch,yr=Kt.showProgress,pr=Kt.current,$r=Kt.transform,kr=Kt.count,Nr=Kt.scale,Yr=Kt.minScale,ai=Kt.maxScale,Rr=Kt.closeIcon,ii=Kt.onActive,Dr=Kt.onClose,fi=Kt.onZoomIn,Lr=Kt.onZoomOut,wi=Kt.onRotateRight,Jr=Kt.onRotateLeft,Zr=Kt.onFlipX,si=Kt.onFlipY,vi=Kt.onReset,pi=Kt.toolbarRender,ri=Kt.zIndex,Er=Kt.image,kn=(0,y.useContext)(qe),Xn=ar.rotateLeft,er=ar.rotateRight,zn=ar.zoomIn,xr=ar.zoomOut,Br=ar.close,Wn=ar.left,Jn=ar.right,gr=ar.flipX,br=ar.flipY,ui="".concat(Un,"-operations-operation");y.useEffect(function(){var eo=function(oi){oi.keyCode===je.Z.ESC&&Dr()};return gn&&window.addEventListener("keydown",eo),function(){window.removeEventListener("keydown",eo)}},[gn]);var Ri=function(Yi,oi){Yi.preventDefault(),Yi.stopPropagation(),ii(oi)},gi=y.useCallback(function(eo){var Yi=eo.type,oi=eo.disabled,Xr=eo.onClick,$i=eo.icon;return y.createElement("div",{key:Yi,className:de()(ui,"".concat(Un,"-operations-operation-").concat(Yi),(0,se.Z)({},"".concat(Un,"-operations-operation-disabled"),!!oi)),onClick:Xr},$i)},[ui,Un]),Hi=Cr?gi({icon:Wn,onClick:function(Yi){return Ri(Yi,-1)},type:"prev",disabled:pr===0}):void 0,Oi=Cr?gi({icon:Jn,onClick:function(Yi){return Ri(Yi,1)},type:"next",disabled:pr===kr-1}):void 0,Pi=gi({icon:br,onClick:si,type:"flipY"}),ki=gi({icon:gr,onClick:Zr,type:"flipX"}),Fi=gi({icon:Xn,onClick:Jr,type:"rotateLeft"}),Ni=gi({icon:er,onClick:wi,type:"rotateRight"}),qi=gi({icon:xr,onClick:Lr,type:"zoomOut",disabled:Nr<=Yr}),So=gi({icon:zn,onClick:fi,type:"zoomIn",disabled:Nr===ai}),xo=y.createElement("div",{className:"".concat(Un,"-operations")},Pi,ki,Fi,Ni,qi,So);return y.createElement(Re.default,{visible:gn,motionName:xn},function(eo){var Yi=eo.className,oi=eo.style;return y.createElement(Fe.Z,{open:!0,getContainer:Ln!=null?Ln:document.body},y.createElement("div",{className:de()("".concat(Un,"-operations-wrapper"),Yi,hr),style:(0,ae.Z)((0,ae.Z)({},oi),{},{zIndex:ri})},Rr===null?null:y.createElement("button",{className:"".concat(Un,"-close"),onClick:Dr},Rr||Br),Cr&&y.createElement(y.Fragment,null,y.createElement("div",{className:de()("".concat(Un,"-switch-left"),(0,se.Z)({},"".concat(Un,"-switch-left-disabled"),pr===0)),onClick:function($i){return Ri($i,-1)}},Wn),y.createElement("div",{className:de()("".concat(Un,"-switch-right"),(0,se.Z)({},"".concat(Un,"-switch-right-disabled"),pr===kr-1)),onClick:function($i){return Ri($i,1)}},Jn)),y.createElement("div",{className:"".concat(Un,"-footer")},yr&&y.createElement("div",{className:"".concat(Un,"-progress")},Sr?Sr(pr+1,kr):"".concat(pr+1," / ").concat(kr)),pi?pi(xo,(0,ae.Z)((0,ae.Z)({icons:{prevIcon:Hi,nextIcon:Oi,flipYIcon:Pi,flipXIcon:ki,rotateLeftIcon:Fi,rotateRightIcon:Ni,zoomOutIcon:qi,zoomInIcon:So},actions:{onActive:ii,onFlipY:si,onFlipX:Zr,onRotateLeft:Jr,onRotateRight:wi,onZoomOut:Lr,onZoomIn:fi,onReset:vi,onClose:Dr},transform:$r},kn?{current:pr,total:kr}:{}),{},{image:Er})):xo)))})},He=Je,ze=oe(13697),Qe=oe(16089),$e={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function ht(fn,Kt,gn,xn){var Ln=(0,y.useRef)(null),Un=(0,y.useRef)([]),hr=(0,y.useState)($e),ar=(0,te.Z)(hr,2),Sr=ar[0],Cr=ar[1],yr=function(Nr){Cr($e),(0,ze.Z)($e,Sr)||xn==null||xn({transform:$e,action:Nr})},pr=function(Nr,Yr){Ln.current===null&&(Un.current=[],Ln.current=(0,Qe.Z)(function(){Cr(function(ai){var Rr=ai;return Un.current.forEach(function(ii){Rr=(0,ae.Z)((0,ae.Z)({},Rr),ii)}),Ln.current=null,xn==null||xn({transform:Rr,action:Yr}),Rr})})),Un.current.push((0,ae.Z)((0,ae.Z)({},Sr),Nr))},$r=function(Nr,Yr,ai,Rr,ii){var Dr=fn.current,fi=Dr.width,Lr=Dr.height,wi=Dr.offsetWidth,Jr=Dr.offsetHeight,Zr=Dr.offsetLeft,si=Dr.offsetTop,vi=Nr,pi=Sr.scale*Nr;pi>gn?(pi=gn,vi=gn/Sr.scale):pi<Kt&&(pi=ii?pi:Kt,vi=pi/Sr.scale);var ri=ai!=null?ai:innerWidth/2,Er=Rr!=null?Rr:innerHeight/2,kn=vi-1,Xn=kn*fi*.5,er=kn*Lr*.5,zn=kn*(ri-Sr.x-Zr),xr=kn*(Er-Sr.y-si),Br=Sr.x-(zn-Xn),Wn=Sr.y-(xr-er);if(Nr<1&&pi===1){var Jn=wi*pi,gr=Jr*pi,br=Ce(),ui=br.width,Ri=br.height;Jn<=ui&&gr<=Ri&&(Br=0,Wn=0)}pr({x:Br,y:Wn,scale:pi},Yr)};return{transform:Sr,resetTransform:yr,updateTransform:pr,dispatchZoomChange:$r}}var Ge=oe(48736);function Ue(fn,Kt,gn,xn){var Ln=Kt+gn,Un=(gn-xn)/2;if(gn>xn){if(Kt>0)return(0,se.Z)({},fn,Un);if(Kt<0&&Ln<xn)return(0,se.Z)({},fn,-Un)}else if(Kt<0||Ln>xn)return(0,se.Z)({},fn,Kt<0?Un:-Un);return{}}function Ke(fn,Kt,gn,xn){var Ln=Ce(),Un=Ln.width,hr=Ln.height,ar=null;return fn<=Un&&Kt<=hr?ar={x:0,y:0}:(fn>Un||Kt>hr)&&(ar=(0,ae.Z)((0,ae.Z)({},Ue("x",gn,fn,Un)),Ue("y",xn,Kt,hr))),ar}var et=1,rt=1;function Xe(fn,Kt,gn,xn,Ln,Un,hr){var ar=Ln.rotate,Sr=Ln.scale,Cr=Ln.x,yr=Ln.y,pr=(0,y.useState)(!1),$r=(0,te.Z)(pr,2),kr=$r[0],Nr=$r[1],Yr=(0,y.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),ai=function(Lr){!Kt||Lr.button!==0||(Lr.preventDefault(),Lr.stopPropagation(),Yr.current={diffX:Lr.pageX-Cr,diffY:Lr.pageY-yr,transformX:Cr,transformY:yr},Nr(!0))},Rr=function(Lr){gn&&kr&&Un({x:Lr.pageX-Yr.current.diffX,y:Lr.pageY-Yr.current.diffY},"move")},ii=function(){if(gn&&kr){Nr(!1);var Lr=Yr.current,wi=Lr.transformX,Jr=Lr.transformY,Zr=Cr!==wi&&yr!==Jr;if(!Zr)return;var si=fn.current.offsetWidth*Sr,vi=fn.current.offsetHeight*Sr,pi=fn.current.getBoundingClientRect(),ri=pi.left,Er=pi.top,kn=ar%180!==0,Xn=Ke(kn?vi:si,kn?si:vi,ri,Er);Xn&&Un((0,ae.Z)({},Xn),"dragRebound")}},Dr=function(Lr){if(!(!gn||Lr.deltaY==0)){var wi=Math.abs(Lr.deltaY/100),Jr=Math.min(wi,rt),Zr=et+Jr*xn;Lr.deltaY>0&&(Zr=et/Zr),hr(Zr,"wheel",Lr.clientX,Lr.clientY)}};return(0,y.useEffect)(function(){var fi,Lr,wi,Jr;if(Kt){wi=(0,De.Z)(window,"mouseup",ii,!1),Jr=(0,De.Z)(window,"mousemove",Rr,!1);try{window.top!==window.self&&(fi=(0,De.Z)(window.top,"mouseup",ii,!1),Lr=(0,De.Z)(window.top,"mousemove",Rr,!1))}catch(Zr){(0,Ge.Kp)(!1,"[rc-image] ".concat(Zr))}}return function(){var Zr,si,vi,pi;(Zr=wi)===null||Zr===void 0||Zr.remove(),(si=Jr)===null||si===void 0||si.remove(),(vi=fi)===null||vi===void 0||vi.remove(),(pi=Lr)===null||pi===void 0||pi.remove()}},[gn,kr,Cr,yr,ar,Kt]),{isMoving:kr,onMouseDown:ai,onMouseMove:Rr,onMouseUp:ii,onWheel:Dr}}function ut(fn){return new Promise(function(Kt){if(!fn){Kt(!1);return}var gn=document.createElement("img");gn.onerror=function(){return Kt(!1)},gn.onload=function(){return Kt(!0)},gn.src=fn})}function lt(fn){var Kt=fn.src,gn=fn.isCustomPlaceholder,xn=fn.fallback,Ln=(0,y.useState)(gn?"loading":"normal"),Un=(0,te.Z)(Ln,2),hr=Un[0],ar=Un[1],Sr=(0,y.useRef)(!1),Cr=hr==="error";(0,y.useEffect)(function(){var kr=!0;return ut(Kt).then(function(Nr){!Nr&&kr&&ar("error")}),function(){kr=!1}},[Kt]),(0,y.useEffect)(function(){gn&&!Sr.current?ar("loading"):Cr&&ar("normal")},[Kt]);var yr=function(){ar("normal")},pr=function(Nr){Sr.current=!1,hr==="loading"&&Nr!==null&&Nr!==void 0&&Nr.complete&&(Nr.naturalWidth||Nr.naturalHeight)&&(Sr.current=!0,yr())},$r=Cr&&xn?{src:xn}:{onLoad:yr,src:Kt};return[pr,$r,hr]}function kt(fn,Kt){var gn=fn.x-Kt.x,xn=fn.y-Kt.y;return Math.hypot(gn,xn)}function pt(fn,Kt,gn,xn){var Ln=kt(fn,gn),Un=kt(Kt,xn);if(Ln===0&&Un===0)return[fn.x,fn.y];var hr=Ln/(Ln+Un),ar=fn.x+hr*(Kt.x-fn.x),Sr=fn.y+hr*(Kt.y-fn.y);return[ar,Sr]}function Mt(fn,Kt,gn,xn,Ln,Un,hr){var ar=Ln.rotate,Sr=Ln.scale,Cr=Ln.x,yr=Ln.y,pr=(0,y.useState)(!1),$r=(0,te.Z)(pr,2),kr=$r[0],Nr=$r[1],Yr=(0,y.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),ai=function(Lr){Yr.current=(0,ae.Z)((0,ae.Z)({},Yr.current),Lr)},Rr=function(Lr){if(Kt){Lr.stopPropagation(),Nr(!0);var wi=Lr.touches,Jr=wi===void 0?[]:wi;Jr.length>1?ai({point1:{x:Jr[0].clientX,y:Jr[0].clientY},point2:{x:Jr[1].clientX,y:Jr[1].clientY},eventType:"touchZoom"}):ai({point1:{x:Jr[0].clientX-Cr,y:Jr[0].clientY-yr},eventType:"move"})}},ii=function(Lr){var wi=Lr.touches,Jr=wi===void 0?[]:wi,Zr=Yr.current,si=Zr.point1,vi=Zr.point2,pi=Zr.eventType;if(Jr.length>1&&pi==="touchZoom"){var ri={x:Jr[0].clientX,y:Jr[0].clientY},Er={x:Jr[1].clientX,y:Jr[1].clientY},kn=pt(si,vi,ri,Er),Xn=(0,te.Z)(kn,2),er=Xn[0],zn=Xn[1],xr=kt(ri,Er)/kt(si,vi);hr(xr,"touchZoom",er,zn,!0),ai({point1:ri,point2:Er,eventType:"touchZoom"})}else pi==="move"&&(Un({x:Jr[0].clientX-si.x,y:Jr[0].clientY-si.y},"move"),ai({eventType:"move"}))},Dr=function(){if(gn){if(kr&&Nr(!1),ai({eventType:"none"}),xn>Sr)return Un({x:0,y:0,scale:xn},"touchZoom");var Lr=fn.current.offsetWidth*Sr,wi=fn.current.offsetHeight*Sr,Jr=fn.current.getBoundingClientRect(),Zr=Jr.left,si=Jr.top,vi=ar%180!==0,pi=Ke(vi?wi:Lr,vi?Lr:wi,Zr,si);pi&&Un((0,ae.Z)({},pi),"dragRebound")}};return(0,y.useEffect)(function(){var fi;return gn&&Kt&&(fi=(0,De.Z)(window,"touchmove",function(Lr){return Lr.preventDefault()},{passive:!1})),function(){var Lr;(Lr=fi)===null||Lr===void 0||Lr.remove()}},[gn,Kt]),{isTouching:kr,onTouchStart:Rr,onTouchMove:ii,onTouchEnd:Dr}}var wt=["fallback","src","imgRef"],bt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],gt=function(Kt){var gn=Kt.fallback,xn=Kt.src,Ln=Kt.imgRef,Un=(0,x.Z)(Kt,wt),hr=lt({src:xn,fallback:gn}),ar=(0,te.Z)(hr,2),Sr=ar[0],Cr=ar[1];return y.createElement("img",(0,ue.Z)({ref:function(pr){Ln.current=pr,Sr(pr)}},Un,Cr))},We=function(Kt){var gn=Kt.prefixCls,xn=Kt.src,Ln=Kt.alt,Un=Kt.imageInfo,hr=Kt.fallback,ar=Kt.movable,Sr=ar===void 0?!0:ar,Cr=Kt.onClose,yr=Kt.visible,pr=Kt.icons,$r=pr===void 0?{}:pr,kr=Kt.rootClassName,Nr=Kt.closeIcon,Yr=Kt.getContainer,ai=Kt.current,Rr=ai===void 0?0:ai,ii=Kt.count,Dr=ii===void 0?1:ii,fi=Kt.countRender,Lr=Kt.scaleStep,wi=Lr===void 0?.5:Lr,Jr=Kt.minScale,Zr=Jr===void 0?1:Jr,si=Kt.maxScale,vi=si===void 0?50:si,pi=Kt.transitionName,ri=pi===void 0?"zoom":pi,Er=Kt.maskTransitionName,kn=Er===void 0?"fade":Er,Xn=Kt.imageRender,er=Kt.imgCommonProps,zn=Kt.toolbarRender,xr=Kt.onTransform,Br=Kt.onChange,Wn=(0,x.Z)(Kt,bt),Jn=(0,y.useRef)(),gr=(0,y.useContext)(qe),br=gr&&Dr>1,ui=gr&&Dr>=1,Ri=(0,y.useState)(!0),gi=(0,te.Z)(Ri,2),Hi=gi[0],Oi=gi[1],Pi=ht(Jn,Zr,vi,xr),ki=Pi.transform,Fi=Pi.resetTransform,Ni=Pi.updateTransform,qi=Pi.dispatchZoomChange,So=Xe(Jn,Sr,yr,wi,ki,Ni,qi),xo=So.isMoving,eo=So.onMouseDown,Yi=So.onWheel,oi=Mt(Jn,Sr,yr,Zr,ki,Ni,qi),Xr=oi.isTouching,$i=oi.onTouchStart,ro=oi.onTouchMove,ao=oi.onTouchEnd,la=ki.rotate,Vo=ki.scale,Ko=de()((0,se.Z)({},"".concat(gn,"-moving"),xo));(0,y.useEffect)(function(){Hi||Oi(!0)},[Hi]);var ha=function(){Fi("close")},wo=function(){qi(et+wi,"zoomIn")},Zo=function(){qi(et/(et+wi),"zoomOut")},pa=function(){Ni({rotate:la+90},"rotateRight")},xa=function(){Ni({rotate:la-90},"rotateLeft")},ko=function(){Ni({flipX:!ki.flipX},"flipX")},Za=function(){Ni({flipY:!ki.flipY},"flipY")},Va=function(){Fi("reset")},Ii=function(ea){var Wo=Rr+ea;!Number.isInteger(Wo)||Wo<0||Wo>Dr-1||(Oi(!1),Fi(ea<0?"prev":"next"),Br==null||Br(Wo,Rr))},Zi=function(ea){!yr||!br||(ea.keyCode===je.Z.LEFT?Ii(-1):ea.keyCode===je.Z.RIGHT&&Ii(1))},Ei=function(ea){yr&&(Vo!==1?Ni({x:0,y:0,scale:1},"doubleClick"):qi(et+wi,"doubleClick",ea.clientX,ea.clientY))};(0,y.useEffect)(function(){var to=(0,De.Z)(window,"keydown",Zi,!1);return function(){to.remove()}},[yr,br,Rr]);var Mi=y.createElement(gt,(0,ue.Z)({},er,{width:Kt.width,height:Kt.height,imgRef:Jn,className:"".concat(gn,"-img"),alt:Ln,style:{transform:"translate3d(".concat(ki.x,"px, ").concat(ki.y,"px, 0) scale3d(").concat(ki.flipX?"-":"").concat(Vo,", ").concat(ki.flipY?"-":"").concat(Vo,", 1) rotate(").concat(la,"deg)"),transitionDuration:(!Hi||Xr)&&"0s"},fallback:hr,src:xn,onWheel:Yi,onMouseDown:eo,onDoubleClick:Ei,onTouchStart:$i,onTouchMove:ro,onTouchEnd:ao,onTouchCancel:ao})),io=(0,ae.Z)({url:xn,alt:Ln},Un);return y.createElement(y.Fragment,null,y.createElement(Ae.Z,(0,ue.Z)({transitionName:ri,maskTransitionName:kn,closable:!1,keyboard:!0,prefixCls:gn,onClose:Cr,visible:yr,classNames:{wrapper:Ko},rootClassName:kr,getContainer:Yr},Wn,{afterClose:ha}),y.createElement("div",{className:"".concat(gn,"-img-wrapper")},Xn?Xn(Mi,(0,ae.Z)({transform:ki,image:io},gr?{current:Rr}:{})):Mi)),y.createElement(He,{visible:yr,transform:ki,maskTransitionName:kn,closeIcon:Nr,getContainer:Yr,prefixCls:gn,rootClassName:kr,icons:$r,countRender:fi,showSwitch:br,showProgress:ui,current:Rr,count:Dr,scale:Vo,minScale:Zr,maxScale:vi,toolbarRender:zn,onActive:Ii,onZoomIn:wo,onZoomOut:Zo,onRotateRight:pa,onRotateLeft:xa,onFlipX:ko,onFlipY:Za,onClose:Cr,onReset:Va,zIndex:Wn.zIndex!==void 0?Wn.zIndex+1:void 0,image:io}))},Ie=We,xe=oe(94480),Be=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function Ye(fn){var Kt=y.useState({}),gn=(0,te.Z)(Kt,2),xn=gn[0],Ln=gn[1],Un=y.useCallback(function(ar,Sr){return Ln(function(Cr){return(0,ae.Z)((0,ae.Z)({},Cr),{},(0,se.Z)({},ar,Sr))}),function(){Ln(function(Cr){var yr=(0,ae.Z)({},Cr);return delete yr[ar],yr})}},[]),hr=y.useMemo(function(){return fn?fn.map(function(ar){if(typeof ar=="string")return{data:{src:ar}};var Sr={};return Object.keys(ar).forEach(function(Cr){["src"].concat((0,xe.Z)(Be)).includes(Cr)&&(Sr[Cr]=ar[Cr])}),{data:Sr}}):Object.keys(xn).reduce(function(ar,Sr){var Cr=xn[Sr],yr=Cr.canPreview,pr=Cr.data;return yr&&ar.push({data:pr,id:Sr}),ar},[])},[fn,xn]);return[hr,Un,!!fn]}var Pe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Le=["src"],pe=function(Kt){var gn,xn=Kt.previewPrefixCls,Ln=xn===void 0?"rc-image-preview":xn,Un=Kt.children,hr=Kt.icons,ar=hr===void 0?{}:hr,Sr=Kt.items,Cr=Kt.preview,yr=Kt.fallback,pr=(0,ne.Z)(Cr)==="object"?Cr:{},$r=pr.visible,kr=pr.onVisibleChange,Nr=pr.getContainer,Yr=pr.current,ai=pr.movable,Rr=pr.minScale,ii=pr.maxScale,Dr=pr.countRender,fi=pr.closeIcon,Lr=pr.onChange,wi=pr.onTransform,Jr=pr.toolbarRender,Zr=pr.imageRender,si=(0,x.Z)(pr,Pe),vi=Ye(Sr),pi=(0,te.Z)(vi,3),ri=pi[0],Er=pi[1],kn=pi[2],Xn=(0,Ee.Z)(0,{value:Yr}),er=(0,te.Z)(Xn,2),zn=er[0],xr=er[1],Br=(0,y.useState)(!1),Wn=(0,te.Z)(Br,2),Jn=Wn[0],gr=Wn[1],br=((gn=ri[zn])===null||gn===void 0?void 0:gn.data)||{},ui=br.src,Ri=(0,x.Z)(br,Le),gi=(0,Ee.Z)(!!$r,{value:$r,onChange:function(Xr,$i){kr==null||kr(Xr,$i,zn)}}),Hi=(0,te.Z)(gi,2),Oi=Hi[0],Pi=Hi[1],ki=(0,y.useState)(null),Fi=(0,te.Z)(ki,2),Ni=Fi[0],qi=Fi[1],So=y.useCallback(function(oi,Xr,$i,ro){var ao=kn?ri.findIndex(function(la){return la.data.src===Xr}):ri.findIndex(function(la){return la.id===oi});xr(ao<0?0:ao),Pi(!0),qi({x:$i,y:ro}),gr(!0)},[ri,kn]);y.useEffect(function(){Oi?Jn||xr(0):gr(!1)},[Oi]);var xo=function(Xr,$i){xr(Xr),Lr==null||Lr(Xr,$i)},eo=function(){Pi(!1),qi(null)},Yi=y.useMemo(function(){return{register:Er,onPreview:So}},[Er,So]);return y.createElement(qe.Provider,{value:Yi},Un,y.createElement(Ie,(0,ue.Z)({"aria-hidden":!Oi,movable:ai,visible:Oi,prefixCls:Ln,closeIcon:fi,onClose:eo,mousePosition:Ni,imgCommonProps:Ri,src:ui,fallback:yr,icons:ar,minScale:Rr,maxScale:ii,getContainer:Nr,current:zn,count:ri.length,countRender:Dr,onTransform:wi,toolbarRender:Jr,imageRender:Zr,onChange:xo},si)))},we=pe,ke=0;function Me(fn,Kt){var gn=y.useState(function(){return ke+=1,String(ke)}),xn=(0,te.Z)(gn,1),Ln=xn[0],Un=y.useContext(qe),hr={data:Kt,canPreview:fn};return y.useEffect(function(){if(Un)return Un.register(Ln,hr)},[]),y.useEffect(function(){Un&&Un.register(Ln,hr)},[fn,Kt]),Ln}var Oe=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],tt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],ot=function(Kt){var gn=Kt.src,xn=Kt.alt,Ln=Kt.onPreviewClose,Un=Kt.prefixCls,hr=Un===void 0?"rc-image":Un,ar=Kt.previewPrefixCls,Sr=ar===void 0?"".concat(hr,"-preview"):ar,Cr=Kt.placeholder,yr=Kt.fallback,pr=Kt.width,$r=Kt.height,kr=Kt.style,Nr=Kt.preview,Yr=Nr===void 0?!0:Nr,ai=Kt.className,Rr=Kt.onClick,ii=Kt.onError,Dr=Kt.wrapperClassName,fi=Kt.wrapperStyle,Lr=Kt.rootClassName,wi=(0,x.Z)(Kt,Oe),Jr=Cr&&Cr!==!0,Zr=(0,ne.Z)(Yr)==="object"?Yr:{},si=Zr.src,vi=Zr.visible,pi=vi===void 0?void 0:vi,ri=Zr.onVisibleChange,Er=ri===void 0?Ln:ri,kn=Zr.getContainer,Xn=kn===void 0?void 0:kn,er=Zr.mask,zn=Zr.maskClassName,xr=Zr.movable,Br=Zr.icons,Wn=Zr.scaleStep,Jn=Zr.minScale,gr=Zr.maxScale,br=Zr.imageRender,ui=Zr.toolbarRender,Ri=(0,x.Z)(Zr,tt),gi=si!=null?si:gn,Hi=(0,Ee.Z)(!!pi,{value:pi,onChange:Er}),Oi=(0,te.Z)(Hi,2),Pi=Oi[0],ki=Oi[1],Fi=lt({src:gn,isCustomPlaceholder:Jr,fallback:yr}),Ni=(0,te.Z)(Fi,3),qi=Ni[0],So=Ni[1],xo=Ni[2],eo=(0,y.useState)(null),Yi=(0,te.Z)(eo,2),oi=Yi[0],Xr=Yi[1],$i=(0,y.useContext)(qe),ro=!!Yr,ao=function(){ki(!1),Xr(null)},la=de()(hr,Dr,Lr,(0,se.Z)({},"".concat(hr,"-error"),xo==="error")),Vo=(0,y.useMemo)(function(){var Zo={};return Be.forEach(function(pa){Kt[pa]!==void 0&&(Zo[pa]=Kt[pa])}),Zo},Be.map(function(Zo){return Kt[Zo]})),Ko=(0,y.useMemo)(function(){return(0,ae.Z)((0,ae.Z)({},Vo),{},{src:gi})},[gi,Vo]),ha=Me(ro,Ko),wo=function(pa){var xa=be(pa.target),ko=xa.left,Za=xa.top;$i?$i.onPreview(ha,gi,ko,Za):(Xr({x:ko,y:Za}),ki(!0)),Rr==null||Rr(pa)};return y.createElement(y.Fragment,null,y.createElement("div",(0,ue.Z)({},wi,{className:la,onClick:ro?wo:Rr,style:(0,ae.Z)({width:pr,height:$r},fi)}),y.createElement("img",(0,ue.Z)({},Vo,{className:de()("".concat(hr,"-img"),(0,se.Z)({},"".concat(hr,"-img-placeholder"),Cr===!0),ai),style:(0,ae.Z)({height:$r},kr),ref:qi},So,{width:pr,height:$r,onError:ii})),xo==="loading"&&y.createElement("div",{"aria-hidden":"true",className:"".concat(hr,"-placeholder")},Cr),er&&ro&&y.createElement("div",{className:de()("".concat(hr,"-mask"),zn),style:{display:(kr==null?void 0:kr.display)==="none"?"none":void 0}},er)),!$i&&ro&&y.createElement(Ie,(0,ue.Z)({"aria-hidden":!Pi,visible:Pi,prefixCls:Sr,onClose:ao,mousePosition:oi,src:gi,alt:xn,imageInfo:{width:pr,height:$r},fallback:yr,getContainer:Xn,icons:Br,movable:xr,scaleStep:Wn,minScale:Jn,maxScale:gr,rootClassName:Lr,imageRender:br,imgCommonProps:Vo,toolbarRender:ui},Ri)))};ot.PreviewGroup=we;var st=ot,ft=st,Ft=oe(75030),Bt=oe(86641),qt=oe(48755),$t=oe(83397),It=oe(9017),en=oe(99267),Pt=oe(33853),cn=oe(38819),Sn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},An=Sn,wn=oe(7657),At=function(Kt,gn){return y.createElement(wn.Z,(0,ue.Z)({},Kt,{ref:gn,icon:An}))},Gt=y.forwardRef(At),on=Gt,vn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Nn=vn,Yn=function(Kt,gn){return y.createElement(wn.Z,(0,ue.Z)({},Kt,{ref:gn,icon:Nn}))},Vn=y.forwardRef(Yn),ir=Vn,Mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},qn=Mn,En=function(Kt,gn){return y.createElement(wn.Z,(0,ue.Z)({},Kt,{ref:gn,icon:qn}))},Hn=y.forwardRef(En),Qn=Hn,dr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},On=dr,$n=function(Kt,gn){return y.createElement(wn.Z,(0,ue.Z)({},Kt,{ref:gn,icon:On}))},Kn=y.forwardRef($n),yn=Kn,Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Ve=Ne,nt=function(Kt,gn){return y.createElement(wn.Z,(0,ue.Z)({},Kt,{ref:gn,icon:Ve}))},mt=y.forwardRef(nt),_t=mt,Vt=oe(36237),Jt=oe(17835),Xt=oe(64427),dn=oe(63356),jn=oe(34925),vr=oe(99495),Nt=oe(16931),jt=oe(51636);const xt=fn=>({position:fn||"absolute",inset:0}),Ot=fn=>{const{iconCls:Kt,motionDurationSlow:gn,paddingXXS:xn,marginXXS:Ln,prefixCls:Un,colorTextLightSolid:hr}=fn;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:hr,background:new Jt.FastColor("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${gn}`,[`.${Un}-mask-info`]:Object.assign(Object.assign({},dn.vS),{padding:`0 ${(0,Vt.unit)(xn)}`,[Kt]:{marginInlineEnd:Ln,svg:{verticalAlign:"baseline"}}})}},yt=fn=>{const{previewCls:Kt,modalMaskBg:gn,paddingSM:xn,marginXL:Ln,margin:Un,paddingLG:hr,previewOperationColorDisabled:ar,previewOperationHoverColor:Sr,motionDurationSlow:Cr,iconCls:yr,colorTextLightSolid:pr}=fn,$r=new Jt.FastColor(gn).setA(.1),kr=$r.clone().setA(.2);return{[`${Kt}-footer`]:{position:"fixed",bottom:Ln,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:fn.previewOperationColor,transform:"translateX(-50%)"},[`${Kt}-progress`]:{marginBottom:Un},[`${Kt}-close`]:{position:"fixed",top:Ln,right:{_skip_check_:!0,value:Ln},display:"flex",color:pr,backgroundColor:$r.toRgbString(),borderRadius:"50%",padding:xn,outline:0,border:0,cursor:"pointer",transition:`all ${Cr}`,"&:hover":{backgroundColor:kr.toRgbString()},[`& > ${yr}`]:{fontSize:fn.previewOperationSize}},[`${Kt}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${(0,Vt.unit)(hr)}`,backgroundColor:$r.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:xn,padding:xn,cursor:"pointer",transition:`all ${Cr}`,userSelect:"none",[`&:not(${Kt}-operations-operation-disabled):hover > ${yr}`]:{color:Sr},"&-disabled":{color:ar,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${yr}`]:{fontSize:fn.previewOperationSize}}}}},Lt=fn=>{const{modalMaskBg:Kt,iconCls:gn,previewOperationColorDisabled:xn,previewCls:Ln,zIndexPopup:Un,motionDurationSlow:hr}=fn,ar=new Jt.FastColor(Kt).setA(.1),Sr=ar.clone().setA(.2);return{[`${Ln}-switch-left, ${Ln}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:fn.calc(Un).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:fn.imagePreviewSwitchSize,height:fn.imagePreviewSwitchSize,marginTop:fn.calc(fn.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:fn.previewOperationColor,background:ar.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${hr}`,userSelect:"none","&:hover":{background:Sr.toRgbString()},"&-disabled":{"&, &:hover":{color:xn,background:"transparent",cursor:"not-allowed",[`> ${gn}`]:{cursor:"not-allowed"}}},[`> ${gn}`]:{fontSize:fn.previewOperationSize}},[`${Ln}-switch-left`]:{insetInlineStart:fn.marginSM},[`${Ln}-switch-right`]:{insetInlineEnd:fn.marginSM}}},Ut=fn=>{const{motionEaseOut:Kt,previewCls:gn,motionDurationSlow:xn,componentCls:Ln}=fn;return[{[`${Ln}-preview-root`]:{[gn]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${gn}-body`]:Object.assign(Object.assign({},xt()),{overflow:"hidden"}),[`${gn}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${xn} ${Kt} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},xt()),{transition:`transform ${xn} ${Kt} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${gn}-moving`]:{[`${gn}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ln}-preview-root`]:{[`${gn}-wrap`]:{zIndex:fn.zIndexPopup}}},{[`${Ln}-preview-operations-wrapper`]:{position:"fixed",zIndex:fn.calc(fn.zIndexPopup).add(1).equal()},"&":[yt(fn),Lt(fn)]}]},bn=fn=>{const{componentCls:Kt}=fn;return{[Kt]:{position:"relative",display:"inline-block",[`${Kt}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Kt}-img-placeholder`]:{backgroundColor:fn.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Kt}-mask`]:Object.assign({},Ot(fn)),[`${Kt}-mask:hover`]:{opacity:1},[`${Kt}-placeholder`]:Object.assign({},xt())}}},Tn=fn=>{const{previewCls:Kt}=fn;return{[`${Kt}-root`]:(0,jn._y)(fn,"zoom"),"&":(0,vr.J$)(fn,!0)}},Gn=fn=>({zIndexPopup:fn.zIndexPopupBase+80,previewOperationColor:new Jt.FastColor(fn.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new Jt.FastColor(fn.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new Jt.FastColor(fn.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:fn.fontSizeIcon*1.5});var pn=(0,Nt.I$)("Image",fn=>{const Kt=`${fn.componentCls}-preview`,gn=(0,jt.mergeToken)(fn,{previewCls:Kt,modalMaskBg:new Jt.FastColor("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:fn.controlHeightLG});return[bn(gn),Ut(gn),(0,Xt.QA)((0,jt.mergeToken)(gn,{componentCls:Kt})),Tn(gn)]},Gn),tn=function(fn,Kt){var gn={};for(var xn in fn)Object.prototype.hasOwnProperty.call(fn,xn)&&Kt.indexOf(xn)<0&&(gn[xn]=fn[xn]);if(fn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ln=0,xn=Object.getOwnPropertySymbols(fn);Ln<xn.length;Ln++)Kt.indexOf(xn[Ln])<0&&Object.prototype.propertyIsEnumerable.call(fn,xn[Ln])&&(gn[xn[Ln]]=fn[xn[Ln]]);return gn};const ln={rotateLeft:y.createElement(on,null),rotateRight:y.createElement(ir,null),zoomIn:y.createElement(yn,null),zoomOut:y.createElement(_t,null),close:y.createElement(en.Z,null),left:y.createElement(Pt.Z,null),right:y.createElement(cn.Z,null),flipX:y.createElement(Qn,null),flipY:y.createElement(Qn,{rotate:90})};var nr=fn=>{var{previewPrefixCls:Kt,preview:gn}=fn,xn=tn(fn,["previewPrefixCls","preview"]);const{getPrefixCls:Ln}=y.useContext(qt.E_),Un=Ln("image",Kt),hr=`${Un}-preview`,ar=Ln(),Sr=(0,$t.Z)(Un),[Cr,yr,pr]=pn(Un,Sr),[$r]=(0,Ft.Cn)("ImagePreview",typeof gn=="object"?gn.zIndex:void 0),kr=y.useMemo(()=>{var Nr;if(gn===!1)return gn;const Yr=typeof gn=="object"?gn:{},ai=de()(yr,pr,Sr,(Nr=Yr.rootClassName)!==null&&Nr!==void 0?Nr:"");return Object.assign(Object.assign({},Yr),{transitionName:(0,Bt.m)(ar,"zoom",Yr.transitionName),maskTransitionName:(0,Bt.m)(ar,"fade",Yr.maskTransitionName),rootClassName:ai,zIndex:$r})},[gn]);return Cr(y.createElement(ft.PreviewGroup,Object.assign({preview:kr,previewPrefixCls:hr,icons:ln},xn)))},rr=function(fn,Kt){var gn={};for(var xn in fn)Object.prototype.hasOwnProperty.call(fn,xn)&&Kt.indexOf(xn)<0&&(gn[xn]=fn[xn]);if(fn!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ln=0,xn=Object.getOwnPropertySymbols(fn);Ln<xn.length;Ln++)Kt.indexOf(xn[Ln])<0&&Object.prototype.propertyIsEnumerable.call(fn,xn[Ln])&&(gn[xn[Ln]]=fn[xn[Ln]]);return gn};const fr=fn=>{const{prefixCls:Kt,preview:gn,className:xn,rootClassName:Ln,style:Un}=fn,hr=rr(fn,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:ar,getPopupContainer:Sr,className:Cr,style:yr,preview:pr}=(0,qt.dj)("image"),[$r]=(0,It.Z)("Image"),kr=ar("image",Kt),Nr=ar(),Yr=(0,$t.Z)(kr),[ai,Rr,ii]=pn(kr,Yr),Dr=de()(Ln,Rr,ii,Yr),fi=de()(xn,Rr,Cr),[Lr]=(0,Ft.Cn)("ImagePreview",typeof gn=="object"?gn.zIndex:void 0),wi=y.useMemo(()=>{if(gn===!1)return gn;const Zr=typeof gn=="object"?gn:{},{getContainer:si,closeIcon:vi,rootClassName:pi}=Zr,ri=rr(Zr,["getContainer","closeIcon","rootClassName"]);return Object.assign(Object.assign({mask:y.createElement("div",{className:`${kr}-mask-info`},y.createElement(ie.Z,null),$r==null?void 0:$r.preview),icons:ln},ri),{rootClassName:de()(Dr,pi),getContainer:si!=null?si:Sr,transitionName:(0,Bt.m)(Nr,"zoom",Zr.transitionName),maskTransitionName:(0,Bt.m)(Nr,"fade",Zr.maskTransitionName),zIndex:Lr,closeIcon:vi!=null?vi:pr==null?void 0:pr.closeIcon})},[gn,$r,pr==null?void 0:pr.closeIcon]),Jr=Object.assign(Object.assign({},yr),Un);return ai(y.createElement(ft,Object.assign({prefixCls:kr,preview:wi,rootClassName:Dr,className:fi,style:Jr},hr)))};fr.PreviewGroup=nr;var ti=fr},4875:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return wn}});var y=oe(59301),ie=oe(84105),fe=oe(87395),de=oe(92310),ue=oe.n(de),ae=oe(54476),se=oe(20068),te=oe(76190),ne=oe(42978),x=oe(75931),b=oe(67732),ee=oe(83652);function E(){return typeof BigInt=="function"}function re(At){return!At&&At!==0&&!Number.isNaN(At)||!String(At).trim()}function ce(At){var Gt=At.trim(),on=Gt.startsWith("-");on&&(Gt=Gt.slice(1)),Gt=Gt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Gt.startsWith(".")&&(Gt="0".concat(Gt));var vn=Gt||"0",Nn=vn.split("."),Yn=Nn[0]||"0",Vn=Nn[1]||"0";Yn==="0"&&Vn==="0"&&(on=!1);var ir=on?"-":"";return{negative:on,negativeStr:ir,trimStr:vn,integerStr:Yn,decimalStr:Vn,fullStr:"".concat(ir).concat(vn)}}function le(At){var Gt=String(At);return!Number.isNaN(Number(Gt))&&Gt.includes("e")}function ve(At){var Gt=String(At);if(le(At)){var on=Number(Gt.slice(Gt.indexOf("e-")+2)),vn=Gt.match(/\.(\d+)/);return vn!=null&&vn[1]&&(on+=vn[1].length),on}return Gt.includes(".")&&ge(Gt)?Gt.length-Gt.indexOf(".")-1:0}function Se(At){var Gt=String(At);if(le(At)){if(At>Number.MAX_SAFE_INTEGER)return String(E()?BigInt(At).toString():Number.MAX_SAFE_INTEGER);if(At<Number.MIN_SAFE_INTEGER)return String(E()?BigInt(At).toString():Number.MIN_SAFE_INTEGER);Gt=At.toFixed(ve(Gt))}return ce(Gt).fullStr}function ge(At){return typeof At=="number"?!Number.isNaN(At):At?/^\s*-?\d+(\.\d+)?\s*$/.test(At)||/^\s*-?\d+\.\s*$/.test(At)||/^\s*-?\.\d+\s*$/.test(At):!1}var _e=function(){function At(Gt){if((0,b.Z)(this,At),(0,se.Z)(this,"origin",""),(0,se.Z)(this,"negative",void 0),(0,se.Z)(this,"integer",void 0),(0,se.Z)(this,"decimal",void 0),(0,se.Z)(this,"decimalLen",void 0),(0,se.Z)(this,"empty",void 0),(0,se.Z)(this,"nan",void 0),re(Gt)){this.empty=!0;return}if(this.origin=String(Gt),Gt==="-"||Number.isNaN(Gt)){this.nan=!0;return}var on=Gt;if(le(on)&&(on=Number(on)),on=typeof on=="string"?on:Se(on),ge(on)){var vn=ce(on);this.negative=vn.negative;var Nn=vn.trimStr.split(".");this.integer=BigInt(Nn[0]);var Yn=Nn[1]||"0";this.decimal=BigInt(Yn),this.decimalLen=Yn.length}else this.nan=!0}return(0,ee.Z)(At,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(on){var vn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(on,"0"));return BigInt(vn)}},{key:"negate",value:function(){var on=new At(this.toString());return on.negative=!on.negative,on}},{key:"cal",value:function(on,vn,Nn){var Yn=Math.max(this.getDecimalStr().length,on.getDecimalStr().length),Vn=this.alignDecimal(Yn),ir=on.alignDecimal(Yn),Mn=vn(Vn,ir).toString(),qn=Nn(Yn),En=ce(Mn),Hn=En.negativeStr,Qn=En.trimStr,dr="".concat(Hn).concat(Qn.padStart(qn+1,"0"));return new At("".concat(dr.slice(0,-qn),".").concat(dr.slice(-qn)))}},{key:"add",value:function(on){if(this.isInvalidate())return new At(on);var vn=new At(on);return vn.isInvalidate()?this:this.cal(vn,function(Nn,Yn){return Nn+Yn},function(Nn){return Nn})}},{key:"multi",value:function(on){var vn=new At(on);return this.isInvalidate()||vn.isInvalidate()?new At(NaN):this.cal(vn,function(Nn,Yn){return Nn*Yn},function(Nn){return Nn*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(on){return this.toString()===(on==null?void 0:on.toString())}},{key:"lessEquals",value:function(on){return this.add(on.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return on?this.isInvalidate()?"":ce("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),At}(),Ce=function(){function At(Gt){if((0,b.Z)(this,At),(0,se.Z)(this,"origin",""),(0,se.Z)(this,"number",void 0),(0,se.Z)(this,"empty",void 0),re(Gt)){this.empty=!0;return}this.origin=String(Gt),this.number=Number(Gt)}return(0,ee.Z)(At,[{key:"negate",value:function(){return new At(-this.toNumber())}},{key:"add",value:function(on){if(this.isInvalidate())return new At(on);var vn=Number(on);if(Number.isNaN(vn))return this;var Nn=this.number+vn;if(Nn>Number.MAX_SAFE_INTEGER)return new At(Number.MAX_SAFE_INTEGER);if(Nn<Number.MIN_SAFE_INTEGER)return new At(Number.MIN_SAFE_INTEGER);var Yn=Math.max(ve(this.number),ve(vn));return new At(Nn.toFixed(Yn))}},{key:"multi",value:function(on){var vn=Number(on);if(this.isInvalidate()||Number.isNaN(vn))return new At(NaN);var Nn=this.number*vn;if(Nn>Number.MAX_SAFE_INTEGER)return new At(Number.MAX_SAFE_INTEGER);if(Nn<Number.MIN_SAFE_INTEGER)return new At(Number.MIN_SAFE_INTEGER);var Yn=Math.max(ve(this.number),ve(vn));return new At(Nn.toFixed(Yn))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(on){return this.toNumber()===(on==null?void 0:on.toNumber())}},{key:"lessEquals",value:function(on){return this.add(on.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return on?this.isInvalidate()?"":Se(this.number):this.origin}}]),At}();function he(At){return E()?new _e(At):new Ce(At)}function be(At,Gt,on){var vn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(At==="")return"";var Nn=ce(At),Yn=Nn.negativeStr,Vn=Nn.integerStr,ir=Nn.decimalStr,Mn="".concat(Gt).concat(ir),qn="".concat(Yn).concat(Vn);if(on>=0){var En=Number(ir[on]);if(En>=5&&!vn){var Hn=he(At).add("".concat(Yn,"0.").concat("0".repeat(on)).concat(10-En));return be(Hn.toString(),Gt,on,vn)}return on===0?qn:"".concat(qn).concat(Gt).concat(ir.padEnd(on,"0").slice(0,on))}return Mn===".0"?qn:"".concat(qn).concat(Mn)}var Ee=he,Ae=oe(36901),De=oe(34280);function je(At,Gt){return typeof Proxy!="undefined"&&At?new Proxy(At,{get:function(vn,Nn){if(Gt[Nn])return Gt[Nn];var Yn=vn[Nn];return typeof Yn=="function"?Yn.bind(vn):Yn}}):At}var Fe=oe(8654),Re=oe(48736);function qe(At,Gt){var on=(0,y.useRef)(null);function vn(){try{var Yn=At.selectionStart,Vn=At.selectionEnd,ir=At.value,Mn=ir.substring(0,Yn),qn=ir.substring(Vn);on.current={start:Yn,end:Vn,value:ir,beforeTxt:Mn,afterTxt:qn}}catch(En){}}function Nn(){if(At&&on.current&&Gt)try{var Yn=At.value,Vn=on.current,ir=Vn.beforeTxt,Mn=Vn.afterTxt,qn=Vn.start,En=Yn.length;if(Yn.startsWith(ir))En=ir.length;else if(Yn.endsWith(Mn))En=Yn.length-on.current.afterTxt.length;else{var Hn=ir[qn-1],Qn=Yn.indexOf(Hn,qn-1);Qn!==-1&&(En=Qn+1)}At.setSelectionRange(En,En)}catch(dr){(0,Re.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(dr.message))}}return[vn,Nn]}var Je=oe(49658),He=function(){var Gt=(0,y.useState)(!1),on=(0,ne.Z)(Gt,2),vn=on[0],Nn=on[1];return(0,De.Z)(function(){Nn((0,Je.Z)())},[]),vn},ze=He,Qe=oe(16089),$e=200,ht=600;function Ge(At){var Gt=At.prefixCls,on=At.upNode,vn=At.downNode,Nn=At.upDisabled,Yn=At.downDisabled,Vn=At.onStep,ir=y.useRef(),Mn=y.useRef([]),qn=y.useRef();qn.current=Vn;var En=function(){clearTimeout(ir.current)},Hn=function(Ve,nt){Ve.preventDefault(),En(),qn.current(nt);function mt(){qn.current(nt),ir.current=setTimeout(mt,$e)}ir.current=setTimeout(mt,ht)};y.useEffect(function(){return function(){En(),Mn.current.forEach(function(Ne){return Qe.Z.cancel(Ne)})}},[]);var Qn=ze();if(Qn)return null;var dr="".concat(Gt,"-handler"),On=ue()(dr,"".concat(dr,"-up"),(0,se.Z)({},"".concat(dr,"-up-disabled"),Nn)),$n=ue()(dr,"".concat(dr,"-down"),(0,se.Z)({},"".concat(dr,"-down-disabled"),Yn)),Kn=function(){return Mn.current.push((0,Qe.Z)(En))},yn={unselectable:"on",role:"button",onMouseUp:Kn,onMouseLeave:Kn};return y.createElement("div",{className:"".concat(dr,"-wrap")},y.createElement("span",(0,ae.Z)({},yn,{onMouseDown:function(Ve){Hn(Ve,!0)},"aria-label":"Increase Value","aria-disabled":Nn,className:On}),on||y.createElement("span",{unselectable:"on",className:"".concat(Gt,"-handler-up-inner")})),y.createElement("span",(0,ae.Z)({},yn,{onMouseDown:function(Ve){Hn(Ve,!1)},"aria-label":"Decrease Value","aria-disabled":Yn,className:$n}),vn||y.createElement("span",{unselectable:"on",className:"".concat(Gt,"-handler-down-inner")})))}function Ue(At){var Gt=typeof At=="number"?Se(At):ce(At).fullStr,on=Gt.includes(".");return on?ce(Gt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:At+"0"}var Ke=oe(30292),et=function(){var At=(0,y.useRef)(0),Gt=function(){Qe.Z.cancel(At.current)};return(0,y.useEffect)(function(){return Gt},[]),function(on){Gt(),At.current=(0,Qe.Z)(function(){on()})}},rt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Xe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ut=function(Gt,on){return Gt||on.isEmpty()?on.toString():on.toNumber()},lt=function(Gt){var on=Ee(Gt);return on.isInvalidate()?null:on},kt=y.forwardRef(function(At,Gt){var on=At.prefixCls,vn=At.className,Nn=At.style,Yn=At.min,Vn=At.max,ir=At.step,Mn=ir===void 0?1:ir,qn=At.defaultValue,En=At.value,Hn=At.disabled,Qn=At.readOnly,dr=At.upHandler,On=At.downHandler,$n=At.keyboard,Kn=At.changeOnWheel,yn=Kn===void 0?!1:Kn,Ne=At.controls,Ve=Ne===void 0?!0:Ne,nt=At.classNames,mt=At.stringMode,_t=At.parser,Vt=At.formatter,Jt=At.precision,Xt=At.decimalSeparator,dn=At.onChange,jn=At.onInput,vr=At.onPressEnter,Nt=At.onStep,jt=At.changeOnBlur,xt=jt===void 0?!0:jt,Ot=At.domRef,yt=(0,x.Z)(At,rt),Lt="".concat(on,"-input"),Ut=y.useRef(null),bn=y.useState(!1),Tn=(0,ne.Z)(bn,2),Gn=Tn[0],pn=Tn[1],tn=y.useRef(!1),ln=y.useRef(!1),Rn=y.useRef(!1),nr=y.useState(function(){return Ee(En!=null?En:qn)}),rr=(0,ne.Z)(nr,2),fr=rr[0],ti=rr[1];function fn(er){En===void 0&&ti(er)}var Kt=y.useCallback(function(er,zn){if(!zn)return Jt>=0?Jt:Math.max(ve(er),ve(Mn))},[Jt,Mn]),gn=y.useCallback(function(er){var zn=String(er);if(_t)return _t(zn);var xr=zn;return Xt&&(xr=xr.replace(Xt,".")),xr.replace(/[^\w.-]+/g,"")},[_t,Xt]),xn=y.useRef(""),Ln=y.useCallback(function(er,zn){if(Vt)return Vt(er,{userTyping:zn,input:String(xn.current)});var xr=typeof er=="number"?Se(er):er;if(!zn){var Br=Kt(xr,zn);if(ge(xr)&&(Xt||Br>=0)){var Wn=Xt||".";xr=be(xr,Wn,Br)}}return xr},[Vt,Kt,Xt]),Un=y.useState(function(){var er=qn!=null?qn:En;return fr.isInvalidate()&&["string","number"].includes((0,te.Z)(er))?Number.isNaN(er)?"":er:Ln(fr.toString(),!1)}),hr=(0,ne.Z)(Un,2),ar=hr[0],Sr=hr[1];xn.current=ar;function Cr(er,zn){Sr(Ln(er.isInvalidate()?er.toString(!1):er.toString(!zn),zn))}var yr=y.useMemo(function(){return lt(Vn)},[Vn,Jt]),pr=y.useMemo(function(){return lt(Yn)},[Yn,Jt]),$r=y.useMemo(function(){return!yr||!fr||fr.isInvalidate()?!1:yr.lessEquals(fr)},[yr,fr]),kr=y.useMemo(function(){return!pr||!fr||fr.isInvalidate()?!1:fr.lessEquals(pr)},[pr,fr]),Nr=qe(Ut.current,Gn),Yr=(0,ne.Z)(Nr,2),ai=Yr[0],Rr=Yr[1],ii=function(zn){return yr&&!zn.lessEquals(yr)?yr:pr&&!pr.lessEquals(zn)?pr:null},Dr=function(zn){return!ii(zn)},fi=function(zn,xr){var Br=zn,Wn=Dr(Br)||Br.isEmpty();if(!Br.isEmpty()&&!xr&&(Br=ii(Br)||Br,Wn=!0),!Qn&&!Hn&&Wn){var Jn=Br.toString(),gr=Kt(Jn,xr);return gr>=0&&(Br=Ee(be(Jn,".",gr)),Dr(Br)||(Br=Ee(be(Jn,".",gr,!0)))),Br.equals(fr)||(fn(Br),dn==null||dn(Br.isEmpty()?null:ut(mt,Br)),En===void 0&&Cr(Br,xr)),Br}return fr},Lr=et(),wi=function er(zn){if(ai(),xn.current=zn,Sr(zn),!ln.current){var xr=gn(zn),Br=Ee(xr);Br.isNaN()||fi(Br,!0)}jn==null||jn(zn),Lr(function(){var Wn=zn;_t||(Wn=zn.replace(/。/g,".")),Wn!==zn&&er(Wn)})},Jr=function(){ln.current=!0},Zr=function(){ln.current=!1,wi(Ut.current.value)},si=function(zn){wi(zn.target.value)},vi=function(zn){var xr;if(!(zn&&$r||!zn&&kr)){tn.current=!1;var Br=Ee(Rn.current?Ue(Mn):Mn);zn||(Br=Br.negate());var Wn=(fr||Ee(0)).add(Br.toString()),Jn=fi(Wn,!1);Nt==null||Nt(ut(mt,Jn),{offset:Rn.current?Ue(Mn):Mn,type:zn?"up":"down"}),(xr=Ut.current)===null||xr===void 0||xr.focus()}},pi=function(zn){var xr=Ee(gn(ar)),Br;xr.isNaN()?Br=fi(fr,zn):Br=fi(xr,zn),En!==void 0?Cr(fr,!1):Br.isNaN()||Cr(Br,!1)},ri=function(){tn.current=!0},Er=function(zn){var xr=zn.key,Br=zn.shiftKey;tn.current=!0,Rn.current=Br,xr==="Enter"&&(ln.current||(tn.current=!1),pi(!1),vr==null||vr(zn)),$n!==!1&&!ln.current&&["Up","ArrowUp","Down","ArrowDown"].includes(xr)&&(vi(xr==="Up"||xr==="ArrowUp"),zn.preventDefault())},kn=function(){tn.current=!1,Rn.current=!1};y.useEffect(function(){if(yn&&Gn){var er=function(Br){vi(Br.deltaY<0),Br.preventDefault()},zn=Ut.current;if(zn)return zn.addEventListener("wheel",er,{passive:!1}),function(){return zn.removeEventListener("wheel",er)}}});var Xn=function(){xt&&pi(!1),pn(!1),tn.current=!1};return(0,De.o)(function(){fr.isInvalidate()||Cr(fr,!1)},[Jt,Vt]),(0,De.o)(function(){var er=Ee(En);ti(er);var zn=Ee(gn(ar));(!er.equals(zn)||!tn.current||Vt)&&Cr(er,tn.current)},[En]),(0,De.o)(function(){Vt&&Rr()},[ar]),y.createElement("div",{ref:Ot,className:ue()(on,vn,(0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)({},"".concat(on,"-focused"),Gn),"".concat(on,"-disabled"),Hn),"".concat(on,"-readonly"),Qn),"".concat(on,"-not-a-number"),fr.isNaN()),"".concat(on,"-out-of-range"),!fr.isInvalidate()&&!Dr(fr))),style:Nn,onFocus:function(){pn(!0)},onBlur:Xn,onKeyDown:Er,onKeyUp:kn,onCompositionStart:Jr,onCompositionEnd:Zr,onBeforeInput:ri},Ve&&y.createElement(Ge,{prefixCls:on,upNode:dr,downNode:On,upDisabled:$r,downDisabled:kr,onStep:vi}),y.createElement("div",{className:"".concat(Lt,"-wrap")},y.createElement("input",(0,ae.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Yn,"aria-valuemax":Vn,"aria-valuenow":fr.isInvalidate()?null:fr.toString(),step:Mn},yt,{ref:(0,Fe.sQ)(Ut,Gt),className:Lt,value:ar,onChange:si,disabled:Hn,readOnly:Qn}))))}),pt=y.forwardRef(function(At,Gt){var on=At.disabled,vn=At.style,Nn=At.prefixCls,Yn=Nn===void 0?"rc-input-number":Nn,Vn=At.value,ir=At.prefix,Mn=At.suffix,qn=At.addonBefore,En=At.addonAfter,Hn=At.className,Qn=At.classNames,dr=(0,x.Z)(At,Xe),On=y.useRef(null),$n=y.useRef(null),Kn=y.useRef(null),yn=function(Ve){Kn.current&&(0,Ke.nH)(Kn.current,Ve)};return y.useImperativeHandle(Gt,function(){return je(Kn.current,{focus:yn,nativeElement:On.current.nativeElement||$n.current})}),y.createElement(Ae.BaseInput,{className:Hn,triggerFocus:yn,prefixCls:Yn,value:Vn,disabled:on,style:vn,prefix:ir,suffix:Mn,addonAfter:En,addonBefore:qn,classNames:Qn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:On},y.createElement(kt,(0,ae.Z)({prefixCls:Yn,disabled:on,ref:Kn,domRef:$n,className:Qn==null?void 0:Qn.input},dr)))}),Mt=pt,wt=Mt,bt=oe(62487),gt=oe(82855),We=oe(48755),Ie=oe(60840),xe=oe(2171),Be=oe(83397),Ye=oe(31756),Pe=oe(56553),Le=oe(24971),pe=oe(70045),we=oe(36237),ke=oe(53075),Me=oe(64910),Oe=oe(39082),tt=oe(63356),ot=oe(56119),st=oe(16931),ft=oe(51636),Ft=oe(17835);const Bt=At=>{var Gt;const on=(Gt=At.handleVisible)!==null&&Gt!==void 0?Gt:"auto",vn=At.controlHeightSM-At.lineWidth*2;return Object.assign(Object.assign({},(0,Me.T)(At)),{controlWidth:90,handleWidth:vn,handleFontSize:At.fontSize/2,handleVisible:on,handleActiveBg:At.colorFillAlter,handleBg:At.colorBgContainer,filledHandleBg:new Ft.FastColor(At.colorFillSecondary).onBackground(At.colorBgContainer).toHexString(),handleHoverColor:At.colorPrimary,handleBorderColor:At.colorBorder,handleOpacity:on===!0?1:0,handleVisibleWidth:on===!0?vn:0})},qt=(At,Gt)=>{let{componentCls:on,borderRadiusSM:vn,borderRadiusLG:Nn}=At;const Yn=Gt==="lg"?Nn:vn;return{[`&-${Gt}`]:{[`${on}-handler-wrap`]:{borderStartEndRadius:Yn,borderEndEndRadius:Yn},[`${on}-handler-up`]:{borderStartEndRadius:Yn},[`${on}-handler-down`]:{borderEndEndRadius:Yn}}}},$t=At=>{const{componentCls:Gt,lineWidth:on,lineType:vn,borderRadius:Nn,inputFontSizeSM:Yn,inputFontSizeLG:Vn,controlHeightLG:ir,controlHeightSM:Mn,colorError:qn,paddingInlineSM:En,paddingBlockSM:Hn,paddingBlockLG:Qn,paddingInlineLG:dr,colorTextDescription:On,motionDurationMid:$n,handleHoverColor:Kn,handleOpacity:yn,paddingInline:Ne,paddingBlock:Ve,handleBg:nt,handleActiveBg:mt,colorTextDisabled:_t,borderRadiusSM:Vt,borderRadiusLG:Jt,controlWidth:Xt,handleBorderColor:dn,filledHandleBg:jn,lineHeightLG:vr,calc:Nt}=At;return[{[Gt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(At)),(0,ke.ik)(At)),{display:"inline-block",width:Xt,margin:0,padding:0,borderRadius:Nn}),(0,Oe.qG)(At,{[`${Gt}-handler-wrap`]:{background:nt,[`${Gt}-handler-down`]:{borderBlockStart:`${(0,we.unit)(on)} ${vn} ${dn}`}}})),(0,Oe.H8)(At,{[`${Gt}-handler-wrap`]:{background:jn,[`${Gt}-handler-down`]:{borderBlockStart:`${(0,we.unit)(on)} ${vn} ${dn}`}},"&:focus-within":{[`${Gt}-handler-wrap`]:{background:nt}}})),(0,Oe.vc)(At,{[`${Gt}-handler-wrap`]:{background:nt,[`${Gt}-handler-down`]:{borderBlockStart:`${(0,we.unit)(on)} ${vn} ${dn}`}}})),(0,Oe.Mu)(At)),{"&-rtl":{direction:"rtl",[`${Gt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Vn,lineHeight:vr,borderRadius:Jt,[`input${Gt}-input`]:{height:Nt(ir).sub(Nt(on).mul(2)).equal(),padding:`${(0,we.unit)(Qn)} ${(0,we.unit)(dr)}`}},"&-sm":{padding:0,fontSize:Yn,borderRadius:Vt,[`input${Gt}-input`]:{height:Nt(Mn).sub(Nt(on).mul(2)).equal(),padding:`${(0,we.unit)(Hn)} ${(0,we.unit)(En)}`}},"&-out-of-range":{[`${Gt}-input-wrap`]:{input:{color:qn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(At)),(0,ke.s7)(At)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Gt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Gt}-group-addon`]:{borderRadius:Jt,fontSize:At.fontSizeLG}},"&-sm":{[`${Gt}-group-addon`]:{borderRadius:Vt}}},(0,Oe.ir)(At)),(0,Oe.S5)(At)),{[`&:not(${Gt}-compact-first-item):not(${Gt}-compact-last-item)${Gt}-compact-item`]:{[`${Gt}, ${Gt}-group-addon`]:{borderRadius:0}},[`&:not(${Gt}-compact-last-item)${Gt}-compact-first-item`]:{[`${Gt}, ${Gt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Gt}-compact-first-item)${Gt}-compact-last-item`]:{[`${Gt}, ${Gt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Gt}-input`]:{cursor:"not-allowed"},[Gt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,tt.Wf)(At)),{width:"100%",padding:`${(0,we.unit)(Ve)} ${(0,we.unit)(Ne)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Nn,outline:0,transition:`all ${$n} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ke.nz)(At.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Gt}-handler-wrap, &-focused ${Gt}-handler-wrap`]:{width:At.handleWidth,opacity:1}})},{[Gt]:Object.assign(Object.assign(Object.assign({[`${Gt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:At.handleVisibleWidth,opacity:yn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Nn,borderEndEndRadius:Nn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${$n}`,overflow:"hidden",[`${Gt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Gt}-handler-up-inner,
|
|
|
${Gt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:At.handleFontSize}}},[`${Gt}-handler`]:{height:"50%",overflow:"hidden",color:On,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,we.unit)(on)} ${vn} ${dn}`,transition:`all ${$n} linear`,"&:active":{background:mt},"&:hover":{height:"60%",[`
|
|
|
${Gt}-handler-up-inner,
|
|
|
${Gt}-handler-down-inner
|
|
|
`]:{color:Kn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,tt.Ro)()),{color:On,transition:`all ${$n} linear`,userSelect:"none"})},[`${Gt}-handler-up`]:{borderStartEndRadius:Nn},[`${Gt}-handler-down`]:{borderEndEndRadius:Nn}},qt(At,"lg")),qt(At,"sm")),{"&-disabled, &-readonly":{[`${Gt}-handler-wrap`]:{display:"none"},[`${Gt}-input`]:{color:"inherit"}},[`
|
|
|
${Gt}-handler-up-disabled,
|
|
|
${Gt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Gt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Gt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:_t}})}]},It=At=>{const{componentCls:Gt,paddingBlock:on,paddingInline:vn,inputAffixPadding:Nn,controlWidth:Yn,borderRadiusLG:Vn,borderRadiusSM:ir,paddingInlineLG:Mn,paddingInlineSM:qn,paddingBlockLG:En,paddingBlockSM:Hn,motionDurationMid:Qn}=At;return{[`${Gt}-affix-wrapper`]:Object.assign(Object.assign({[`input${Gt}-input`]:{padding:`${(0,we.unit)(on)} 0`}},(0,ke.ik)(At)),{position:"relative",display:"inline-flex",alignItems:"center",width:Yn,padding:0,paddingInlineStart:vn,"&-lg":{borderRadius:Vn,paddingInlineStart:Mn,[`input${Gt}-input`]:{padding:`${(0,we.unit)(En)} 0`}},"&-sm":{borderRadius:ir,paddingInlineStart:qn,[`input${Gt}-input`]:{padding:`${(0,we.unit)(Hn)} 0`}},[`&:not(${Gt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Gt}-disabled`]:{background:"transparent"},[`> div${Gt}`]:{width:"100%",border:"none",outline:"none",[`&${Gt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Gt}-handler-wrap`]:{zIndex:2},[Gt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Nn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:vn,marginInlineStart:Nn,transition:`margin ${Qn}`}},[`&:hover ${Gt}-handler-wrap, &-focused ${Gt}-handler-wrap`]:{width:At.handleWidth,opacity:1},[`&:not(${Gt}-affix-wrapper-without-controls):hover ${Gt}-suffix`]:{marginInlineEnd:At.calc(At.handleWidth).add(vn).equal()}})}};var en=(0,st.I$)("InputNumber",At=>{const Gt=(0,ft.mergeToken)(At,(0,Me.e)(At));return[$t(Gt),It(Gt),(0,ot.c)(Gt)]},Bt,{unitless:{handleOpacity:!0}}),Pt=function(At,Gt){var on={};for(var vn in At)Object.prototype.hasOwnProperty.call(At,vn)&&Gt.indexOf(vn)<0&&(on[vn]=At[vn]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nn=0,vn=Object.getOwnPropertySymbols(At);Nn<vn.length;Nn++)Gt.indexOf(vn[Nn])<0&&Object.prototype.propertyIsEnumerable.call(At,vn[Nn])&&(on[vn[Nn]]=At[vn[Nn]]);return on};const cn=y.forwardRef((At,Gt)=>{const{getPrefixCls:on,direction:vn}=y.useContext(We.E_),Nn=y.useRef(null);y.useImperativeHandle(Gt,()=>Nn.current);const{className:Yn,rootClassName:Vn,size:ir,disabled:Mn,prefixCls:qn,addonBefore:En,addonAfter:Hn,prefix:Qn,suffix:dr,bordered:On,readOnly:$n,status:Kn,controls:yn,variant:Ne}=At,Ve=Pt(At,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),nt=on("input-number",qn),mt=(0,Be.Z)(nt),[_t,Vt,Jt]=en(nt,mt),{compactSize:Xt,compactItemClassnames:dn}=(0,pe.ri)(nt,vn);let jn=y.createElement(fe.Z,{className:`${nt}-handler-up-inner`}),vr=y.createElement(ie.Z,{className:`${nt}-handler-down-inner`});const Nt=typeof yn=="boolean"?yn:void 0;typeof yn=="object"&&(jn=typeof yn.upIcon=="undefined"?jn:y.createElement("span",{className:`${nt}-handler-up-inner`},yn.upIcon),vr=typeof yn.downIcon=="undefined"?vr:y.createElement("span",{className:`${nt}-handler-down-inner`},yn.downIcon));const{hasFeedback:jt,status:xt,isFormItemInput:Ot,feedbackIcon:yt}=y.useContext(Pe.aM),Lt=(0,gt.F)(xt,Kn),Ut=(0,Ye.Z)(rr=>{var fr;return(fr=ir!=null?ir:Xt)!==null&&fr!==void 0?fr:rr}),bn=y.useContext(xe.Z),Tn=Mn!=null?Mn:bn,[Gn,pn]=(0,Le.Z)("inputNumber",Ne,On),tn=jt&&y.createElement(y.Fragment,null,yt),ln=ue()({[`${nt}-lg`]:Ut==="large",[`${nt}-sm`]:Ut==="small",[`${nt}-rtl`]:vn==="rtl",[`${nt}-in-form-item`]:Ot},Vt),Rn=`${nt}-group`,nr=y.createElement(wt,Object.assign({ref:Nn,disabled:Tn,className:ue()(Jt,mt,Yn,Vn,dn),upHandler:jn,downHandler:vr,prefixCls:nt,readOnly:$n,controls:Nt,prefix:Qn,suffix:tn||dr,addonBefore:En&&y.createElement(bt.Z,{form:!0,space:!0},En),addonAfter:Hn&&y.createElement(bt.Z,{form:!0,space:!0},Hn),classNames:{input:ln,variant:ue()({[`${nt}-${Gn}`]:pn},(0,gt.Z)(nt,Lt,jt)),affixWrapper:ue()({[`${nt}-affix-wrapper-sm`]:Ut==="small",[`${nt}-affix-wrapper-lg`]:Ut==="large",[`${nt}-affix-wrapper-rtl`]:vn==="rtl",[`${nt}-affix-wrapper-without-controls`]:yn===!1||Tn},Vt),wrapper:ue()({[`${Rn}-rtl`]:vn==="rtl"},Vt),groupWrapper:ue()({[`${nt}-group-wrapper-sm`]:Ut==="small",[`${nt}-group-wrapper-lg`]:Ut==="large",[`${nt}-group-wrapper-rtl`]:vn==="rtl",[`${nt}-group-wrapper-${Gn}`]:pn},(0,gt.Z)(`${nt}-group-wrapper`,Lt,jt),Vt)}},Ve));return _t(nr)}),Sn=cn,An=At=>y.createElement(Ie.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},y.createElement(cn,Object.assign({},At)));Sn._InternalPanelDoNotUseOrYouWillBeFired=An;var wn=Sn},49397:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return Ce}});var y=oe(59301),ie=oe(92310),fe=oe.n(ie),de=oe(36901),ue=oe(8654),ae=oe(62487),se=oe(86013),te=oe(82855),ne=oe(48755),x=oe(2171),b=oe(83397),ee=oe(31756),E=oe(56553),re=oe(24971),ce=oe(70045),le=oe(23826),ve=oe(53075);function Se(he){return!!(he.prefix||he.suffix||he.allowClear||he.showCount)}var ge=function(he,be){var Ee={};for(var Ae in he)Object.prototype.hasOwnProperty.call(he,Ae)&&be.indexOf(Ae)<0&&(Ee[Ae]=he[Ae]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,Ae=Object.getOwnPropertySymbols(he);De<Ae.length;De++)be.indexOf(Ae[De])<0&&Object.prototype.propertyIsEnumerable.call(he,Ae[De])&&(Ee[Ae[De]]=he[Ae[De]]);return Ee},Ce=(0,y.forwardRef)((he,be)=>{const{prefixCls:Ee,bordered:Ae=!0,status:De,size:je,disabled:Fe,onBlur:Re,onFocus:qe,suffix:Je,allowClear:He,addonAfter:ze,addonBefore:Qe,className:$e,style:ht,styles:Ge,rootClassName:Ue,onChange:Ke,classNames:et,variant:rt}=he,Xe=ge(he,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:ut,direction:lt,allowClear:kt,autoComplete:pt,className:Mt,style:wt,classNames:bt,styles:gt}=(0,ne.dj)("input"),We=ut("input",Ee),Ie=(0,y.useRef)(null),xe=(0,b.Z)(We),[Be,Ye,Pe]=(0,ve.TI)(We,Ue),[Le]=(0,ve.ZP)(We,xe),{compactSize:pe,compactItemClassnames:we}=(0,ce.ri)(We,lt),ke=(0,ee.Z)(wn=>{var At;return(At=je!=null?je:pe)!==null&&At!==void 0?At:wn}),Me=y.useContext(x.Z),Oe=Fe!=null?Fe:Me,{status:tt,hasFeedback:ot,feedbackIcon:st}=(0,y.useContext)(E.aM),ft=(0,te.F)(tt,De),Ft=Se(he)||!!ot,Bt=(0,y.useRef)(Ft),qt=(0,le.Z)(Ie,!0),$t=wn=>{qt(),Re==null||Re(wn)},It=wn=>{qt(),qe==null||qe(wn)},en=wn=>{qt(),Ke==null||Ke(wn)},Pt=(ot||Je)&&y.createElement(y.Fragment,null,Je,ot&&st),cn=(0,se.Z)(He!=null?He:kt),[Sn,An]=(0,re.Z)("input",rt,Ae);return Be(Le(y.createElement(de.default,Object.assign({ref:(0,ue.sQ)(be,Ie),prefixCls:We,autoComplete:pt},Xe,{disabled:Oe,onBlur:$t,onFocus:It,style:Object.assign(Object.assign({},wt),ht),styles:Object.assign(Object.assign({},gt),Ge),suffix:Pt,allowClear:cn,className:fe()($e,Ue,Pe,xe,we,Mt),onChange:en,addonBefore:Qe&&y.createElement(ae.Z,{form:!0,space:!0},Qe),addonAfter:ze&&y.createElement(ae.Z,{form:!0,space:!0},ze),classNames:Object.assign(Object.assign(Object.assign({},et),bt),{input:fe()({[`${We}-sm`]:ke==="small",[`${We}-lg`]:ke==="large",[`${We}-rtl`]:lt==="rtl"},et==null?void 0:et.input,bt.input,Ye),variant:fe()({[`${We}-${Sn}`]:An},(0,te.Z)(We,ft)),affixWrapper:fe()({[`${We}-affix-wrapper-sm`]:ke==="small",[`${We}-affix-wrapper-lg`]:ke==="large",[`${We}-affix-wrapper-rtl`]:lt==="rtl"},Ye),wrapper:fe()({[`${We}-group-rtl`]:lt==="rtl"},Ye),groupWrapper:fe()({[`${We}-group-wrapper-sm`]:ke==="small",[`${We}-group-wrapper-lg`]:ke==="large",[`${We}-group-wrapper-rtl`]:lt==="rtl",[`${We}-group-wrapper-${Sn}`]:An},(0,te.Z)(`${We}-group-wrapper`,ft,ot),Ye)})}))))})},79809:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return be}});var y=oe(59301),ie=oe(92310),fe=oe.n(ie),de=oe(22711),ue=oe(86013),ae=oe(82855),se=oe(48755),te=oe(2171),ne=oe(83397),x=oe(31756),b=oe(56553),ee=oe(24971),E=oe(70045),re=oe(30292),ce=oe(53075),le=oe(16931),ve=oe(51636),Se=oe(64910);const ge=Ee=>{const{componentCls:Ae,paddingLG:De}=Ee,je=`${Ae}-textarea`;return{[`textarea${Ae}`]:{maxWidth:"100%",height:"auto",minHeight:Ee.controlHeight,lineHeight:Ee.lineHeight,verticalAlign:"bottom",transition:`all ${Ee.motionDurationSlow}`,resize:"vertical",[`&${Ae}-mouse-active`]:{transition:`all ${Ee.motionDurationSlow}, height 0s, width 0s`}},[`${Ae}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[je]:{position:"relative","&-show-count":{[`> ${Ae}`]:{height:"100%"},[`${Ae}-data-count`]:{position:"absolute",bottom:Ee.calc(Ee.fontSize).mul(Ee.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ee.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${Ae},
|
|
|
&-affix-wrapper${je}-has-feedback ${Ae}
|
|
|
`]:{paddingInlineEnd:De},[`&-affix-wrapper${Ae}-affix-wrapper`]:{padding:0,[`> textarea${Ae}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ee.calc(Ee.controlHeight).sub(Ee.calc(Ee.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${Ae}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${Ae}-clear-icon`]:{position:"absolute",insetInlineEnd:Ee.paddingInline,insetBlockStart:Ee.paddingXS},[`${je}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ee.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${Ae}-affix-wrapper-sm`]:{[`${Ae}-suffix`]:{[`${Ae}-clear-icon`]:{insetInlineEnd:Ee.paddingInlineSM}}}}}};var _e=(0,le.I$)(["Input","TextArea"],Ee=>{const Ae=(0,ve.mergeToken)(Ee,(0,Se.e)(Ee));return[ge(Ae)]},Se.T,{resetFont:!1}),Ce=function(Ee,Ae){var De={};for(var je in Ee)Object.prototype.hasOwnProperty.call(Ee,je)&&Ae.indexOf(je)<0&&(De[je]=Ee[je]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,je=Object.getOwnPropertySymbols(Ee);Fe<je.length;Fe++)Ae.indexOf(je[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,je[Fe])&&(De[je[Fe]]=Ee[je[Fe]]);return De},be=(0,y.forwardRef)((Ee,Ae)=>{var De;const{prefixCls:je,bordered:Fe=!0,size:Re,disabled:qe,status:Je,allowClear:He,classNames:ze,rootClassName:Qe,className:$e,style:ht,styles:Ge,variant:Ue,showCount:Ke,onMouseDown:et,onResize:rt}=Ee,Xe=Ce(Ee,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:ut,direction:lt,allowClear:kt,autoComplete:pt,className:Mt,style:wt,classNames:bt,styles:gt}=(0,se.dj)("textArea"),We=y.useContext(te.Z),Ie=qe!=null?qe:We,{status:xe,hasFeedback:Be,feedbackIcon:Ye}=y.useContext(b.aM),Pe=(0,ae.F)(xe,Je),Le=y.useRef(null);y.useImperativeHandle(Ae,()=>{var An;return{resizableTextArea:(An=Le.current)===null||An===void 0?void 0:An.resizableTextArea,focus:wn=>{var At,Gt;(0,re.nH)((Gt=(At=Le.current)===null||At===void 0?void 0:At.resizableTextArea)===null||Gt===void 0?void 0:Gt.textArea,wn)},blur:()=>{var wn;return(wn=Le.current)===null||wn===void 0?void 0:wn.blur()}}});const pe=ut("input",je),we=(0,ne.Z)(pe),[ke,Me,Oe]=(0,ce.TI)(pe,Qe),[tt]=_e(pe,we),{compactSize:ot,compactItemClassnames:st}=(0,E.ri)(pe,lt),ft=(0,x.Z)(An=>{var wn;return(wn=Re!=null?Re:ot)!==null&&wn!==void 0?wn:An}),[Ft,Bt]=(0,ee.Z)("textArea",Ue,Fe),qt=(0,ue.Z)(He!=null?He:kt),[$t,It]=y.useState(!1),[en,Pt]=y.useState(!1),cn=An=>{It(!0),et==null||et(An);const wn=()=>{It(!1),document.removeEventListener("mouseup",wn)};document.addEventListener("mouseup",wn)},Sn=An=>{var wn,At;if(rt==null||rt(An),$t&&typeof getComputedStyle=="function"){const Gt=(At=(wn=Le.current)===null||wn===void 0?void 0:wn.nativeElement)===null||At===void 0?void 0:At.querySelector("textarea");Gt&&getComputedStyle(Gt).resize==="both"&&Pt(!0)}};return ke(tt(y.createElement(de.default,Object.assign({autoComplete:pt},Xe,{style:Object.assign(Object.assign({},wt),ht),styles:Object.assign(Object.assign({},gt),Ge),disabled:Ie,allowClear:qt,className:fe()(Oe,we,$e,Qe,st,Mt,en&&`${pe}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},ze),bt),{textarea:fe()({[`${pe}-sm`]:ft==="small",[`${pe}-lg`]:ft==="large"},Me,ze==null?void 0:ze.textarea,bt.textarea,$t&&`${pe}-mouse-active`),variant:fe()({[`${pe}-${Ft}`]:Bt},(0,ae.Z)(pe,Pe)),affixWrapper:fe()(`${pe}-textarea-affix-wrapper`,{[`${pe}-affix-wrapper-rtl`]:lt==="rtl",[`${pe}-affix-wrapper-sm`]:ft==="small",[`${pe}-affix-wrapper-lg`]:ft==="large",[`${pe}-textarea-show-count`]:Ke||((De=Ee.count)===null||De===void 0?void 0:De.show)},Me)}),prefixCls:pe,suffix:Be&&y.createElement("span",{className:`${pe}-textarea-suffix`},Ye),showCount:Ke,ref:Le,onResize:Sn,onMouseDown:cn}))))})},23826:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return ie}});var y=oe(59301);function ie(fe,de){const ue=(0,y.useRef)([]),ae=()=>{ue.current.push(setTimeout(()=>{var se,te,ne,x;!((se=fe.current)===null||se===void 0)&&se.input&&((te=fe.current)===null||te===void 0?void 0:te.input.getAttribute("type"))==="password"&&(!((ne=fe.current)===null||ne===void 0)&&ne.input.hasAttribute("value"))&&((x=fe.current)===null||x===void 0||x.input.removeAttribute("value"))}))};return(0,y.useEffect)(()=>(de&&ae(),()=>ue.current.forEach(se=>{se&&clearTimeout(se)})),[]),ae}},37568:function(rn,Tt,oe){"use strict";oe.d(Tt,{default:function(){return bt}});var y=oe(59301),ie=oe(92310),fe=oe.n(ie),de=oe(48755),ue=oe(56553),ae=oe(53075),te=gt=>{const{getPrefixCls:We,direction:Ie}=(0,y.useContext)(de.E_),{prefixCls:xe,className:Be}=gt,Ye=We("input-group",xe),Pe=We("input"),[Le,pe,we]=(0,ae.ZP)(Pe),ke=fe()(Ye,we,{[`${Ye}-lg`]:gt.size==="large",[`${Ye}-sm`]:gt.size==="small",[`${Ye}-compact`]:gt.compact,[`${Ye}-rtl`]:Ie==="rtl"},pe,Be),Me=(0,y.useContext)(ue.aM),Oe=(0,y.useMemo)(()=>Object.assign(Object.assign({},Me),{isFormItemInput:!1}),[Me]);return Le(y.createElement("span",{className:ke,style:gt.style,onMouseEnter:gt.onMouseEnter,onMouseLeave:gt.onMouseLeave,onFocus:gt.onFocus,onBlur:gt.onBlur},y.createElement(ue.aM.Provider,{value:Oe},gt.children)))},ne=oe(49397),x=oe(94480),b=oe(6089),ee=oe(26112),E=oe(82855),re=oe(31756),ce=oe(16931),le=oe(51636),ve=oe(64910);const Se=gt=>{const{componentCls:We,paddingXS:Ie}=gt;return{[We]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:Ie,"&-rtl":{direction:"rtl"},[`${We}-input`]:{textAlign:"center",paddingInline:gt.paddingXXS},[`&${We}-sm ${We}-input`]:{paddingInline:gt.calc(gt.paddingXXS).div(2).equal()},[`&${We}-lg ${We}-input`]:{paddingInline:gt.paddingXS}}}};var ge=(0,ce.I$)(["Input","OTP"],gt=>{const We=(0,le.mergeToken)(gt,(0,ve.e)(gt));return[Se(We)]},ve.T),_e=oe(16089),Ce=function(gt,We){var Ie={};for(var xe in gt)Object.prototype.hasOwnProperty.call(gt,xe)&&We.indexOf(xe)<0&&(Ie[xe]=gt[xe]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,xe=Object.getOwnPropertySymbols(gt);Be<xe.length;Be++)We.indexOf(xe[Be])<0&&Object.prototype.propertyIsEnumerable.call(gt,xe[Be])&&(Ie[xe[Be]]=gt[xe[Be]]);return Ie},be=y.forwardRef((gt,We)=>{const{value:Ie,onChange:xe,onActiveChange:Be,index:Ye,mask:Pe}=gt,Le=Ce(gt,["value","onChange","onActiveChange","index","mask"]),pe=Ie&&typeof Pe=="string"?Pe:Ie,we=ot=>{xe(Ye,ot.target.value)},ke=y.useRef(null);y.useImperativeHandle(We,()=>ke.current);const Me=()=>{(0,_e.Z)(()=>{var ot;const st=(ot=ke.current)===null||ot===void 0?void 0:ot.input;document.activeElement===st&&st&&st.select()})},Oe=ot=>{const{key:st,ctrlKey:ft,metaKey:Ft}=ot;st==="ArrowLeft"?Be(Ye-1):st==="ArrowRight"?Be(Ye+1):st==="z"&&(ft||Ft)&&ot.preventDefault(),Me()},tt=ot=>{ot.key==="Backspace"&&!Ie&&Be(Ye-1),Me()};return y.createElement(ne.Z,Object.assign({type:Pe===!0?"password":"text"},Le,{ref:ke,value:pe,onInput:we,onFocus:Me,onKeyDown:Oe,onKeyUp:tt,onMouseDown:Me,onMouseUp:Me}))}),Ee=function(gt,We){var Ie={};for(var xe in gt)Object.prototype.hasOwnProperty.call(gt,xe)&&We.indexOf(xe)<0&&(Ie[xe]=gt[xe]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,xe=Object.getOwnPropertySymbols(gt);Be<xe.length;Be++)We.indexOf(xe[Be])<0&&Object.prototype.propertyIsEnumerable.call(gt,xe[Be])&&(Ie[xe[Be]]=gt[xe[Be]]);return Ie};function Ae(gt){return(gt||"").split("")}const De=gt=>{const{index:We,prefixCls:Ie,separator:xe}=gt,Be=typeof xe=="function"?xe(We):xe;return Be?y.createElement("span",{className:`${Ie}-separator`},Be):null};var Fe=y.forwardRef((gt,We)=>{const{prefixCls:Ie,length:xe=6,size:Be,defaultValue:Ye,value:Pe,onChange:Le,formatter:pe,separator:we,variant:ke,disabled:Me,status:Oe,autoFocus:tt,mask:ot,type:st,onInput:ft,inputMode:Ft}=gt,Bt=Ee(gt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:qt,direction:$t}=y.useContext(de.E_),It=qt("otp",Ie),en=(0,ee.Z)(Bt,{aria:!0,data:!0,attr:!0}),[Pt,cn,Sn]=ge(It),An=(0,re.Z)(Qn=>Be!=null?Be:Qn),wn=y.useContext(ue.aM),At=(0,E.F)(wn.status,Oe),Gt=y.useMemo(()=>Object.assign(Object.assign({},wn),{status:At,hasFeedback:!1,feedbackIcon:null}),[wn,At]),on=y.useRef(null),vn=y.useRef({});y.useImperativeHandle(We,()=>({focus:()=>{var Qn;(Qn=vn.current[0])===null||Qn===void 0||Qn.focus()},blur:()=>{var Qn;for(let dr=0;dr<xe;dr+=1)(Qn=vn.current[dr])===null||Qn===void 0||Qn.blur()},nativeElement:on.current}));const Nn=Qn=>pe?pe(Qn):Qn,[Yn,Vn]=y.useState(()=>Ae(Nn(Ye||"")));y.useEffect(()=>{Pe!==void 0&&Vn(Ae(Pe))},[Pe]);const ir=(0,b.Z)(Qn=>{Vn(Qn),ft&&ft(Qn),Le&&Qn.length===xe&&Qn.every(dr=>dr)&&Qn.some((dr,On)=>Yn[On]!==dr)&&Le(Qn.join(""))}),Mn=(0,b.Z)((Qn,dr)=>{let On=(0,x.Z)(Yn);for(let Kn=0;Kn<Qn;Kn+=1)On[Kn]||(On[Kn]="");dr.length<=1?On[Qn]=dr:On=On.slice(0,Qn).concat(Ae(dr)),On=On.slice(0,xe);for(let Kn=On.length-1;Kn>=0&&!On[Kn];Kn-=1)On.pop();const $n=Nn(On.map(Kn=>Kn||" ").join(""));return On=Ae($n).map((Kn,yn)=>Kn===" "&&!On[yn]?On[yn]:Kn),On}),qn=(Qn,dr)=>{var On;const $n=Mn(Qn,dr),Kn=Math.min(Qn+dr.length,xe-1);Kn!==Qn&&$n[Qn]!==void 0&&((On=vn.current[Kn])===null||On===void 0||On.focus()),ir($n)},En=Qn=>{var dr;(dr=vn.current[Qn])===null||dr===void 0||dr.focus()},Hn={variant:ke,disabled:Me,status:At,mask:ot,type:st,inputMode:Ft};return Pt(y.createElement("div",Object.assign({},en,{ref:on,className:fe()(It,{[`${It}-sm`]:An==="small",[`${It}-lg`]:An==="large",[`${It}-rtl`]:$t==="rtl"},Sn,cn)}),y.createElement(ue.aM.Provider,{value:Gt},Array.from({length:xe}).map((Qn,dr)=>{const On=`otp-${dr}`,$n=Yn[dr]||"";return y.createElement(y.Fragment,{key:On},y.createElement(be,Object.assign({ref:Kn=>{vn.current[dr]=Kn},index:dr,size:An,htmlSize:1,className:`${It}-input`,onChange:qn,value:$n,onActiveChange:En,autoFocus:dr===0&&tt},Hn)),dr<xe-1&&y.createElement(De,{separator:we,index:dr,prefixCls:It}))}))))}),Re=oe(73331),qe=oe(15277),Je=oe(2738),He=oe(8654),ze=oe(2171),Qe=oe(23826),$e=function(gt,We){var Ie={};for(var xe in gt)Object.prototype.hasOwnProperty.call(gt,xe)&&We.indexOf(xe)<0&&(Ie[xe]=gt[xe]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,xe=Object.getOwnPropertySymbols(gt);Be<xe.length;Be++)We.indexOf(xe[Be])<0&&Object.prototype.propertyIsEnumerable.call(gt,xe[Be])&&(Ie[xe[Be]]=gt[xe[Be]]);return Ie};const ht=gt=>gt?y.createElement(qe.Z,null):y.createElement(Re.Z,null),Ge={click:"onClick",hover:"onMouseOver"};var Ke=y.forwardRef((gt,We)=>{const{disabled:Ie,action:xe="click",visibilityToggle:Be=!0,iconRender:Ye=ht}=gt,Pe=y.useContext(ze.Z),Le=Ie!=null?Ie:Pe,pe=typeof Be=="object"&&Be.visible!==void 0,[we,ke]=(0,y.useState)(()=>pe?Be.visible:!1),Me=(0,y.useRef)(null);y.useEffect(()=>{pe&&ke(Be.visible)},[pe,Be]);const Oe=(0,Qe.Z)(Me),tt=()=>{var An;if(Le)return;we&&Oe();const wn=!we;ke(wn),typeof Be=="object"&&((An=Be.onVisibleChange)===null||An===void 0||An.call(Be,wn))},ot=An=>{const wn=Ge[xe]||"",At=Ye(we),Gt={[wn]:tt,className:`${An}-icon`,key:"passwordIcon",onMouseDown:on=>{on.preventDefault()},onMouseUp:on=>{on.preventDefault()}};return y.cloneElement(y.isValidElement(At)?At:y.createElement("span",null,At),Gt)},{className:st,prefixCls:ft,inputPrefixCls:Ft,size:Bt}=gt,qt=$e(gt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$t}=y.useContext(de.E_),It=$t("input",Ft),en=$t("input-password",ft),Pt=Be&&ot(en),cn=fe()(en,st,{[`${en}-${Bt}`]:!!Bt}),Sn=Object.assign(Object.assign({},(0,Je.Z)(qt,["suffix","iconRender","visibilityToggle"])),{type:we?"text":"password",className:cn,prefixCls:It,suffix:Pt});return Bt&&(Sn.size=Bt),y.createElement(ne.Z,Object.assign({ref:(0,He.sQ)(We,Me)},Sn))}),et=oe(47472),rt=oe(22703),Xe=oe(7939),ut=oe(70045),lt=function(gt,We){var Ie={};for(var xe in gt)Object.prototype.hasOwnProperty.call(gt,xe)&&We.indexOf(xe)<0&&(Ie[xe]=gt[xe]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,xe=Object.getOwnPropertySymbols(gt);Be<xe.length;Be++)We.indexOf(xe[Be])<0&&Object.prototype.propertyIsEnumerable.call(gt,xe[Be])&&(Ie[xe[Be]]=gt[xe[Be]]);return Ie},pt=y.forwardRef((gt,We)=>{const{prefixCls:Ie,inputPrefixCls:xe,className:Be,size:Ye,suffix:Pe,enterButton:Le=!1,addonAfter:pe,loading:we,disabled:ke,onSearch:Me,onChange:Oe,onCompositionStart:tt,onCompositionEnd:ot}=gt,st=lt(gt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ft,direction:Ft}=y.useContext(de.E_),Bt=y.useRef(!1),qt=ft("input-search",Ie),$t=ft("input",xe),{compactSize:It}=(0,ut.ri)(qt,Ft),en=(0,re.Z)(qn=>{var En;return(En=Ye!=null?Ye:It)!==null&&En!==void 0?En:qn}),Pt=y.useRef(null),cn=qn=>{qn!=null&&qn.target&&qn.type==="click"&&Me&&Me(qn.target.value,qn,{source:"clear"}),Oe==null||Oe(qn)},Sn=qn=>{var En;document.activeElement===((En=Pt.current)===null||En===void 0?void 0:En.input)&&qn.preventDefault()},An=qn=>{var En,Hn;Me&&Me((Hn=(En=Pt.current)===null||En===void 0?void 0:En.input)===null||Hn===void 0?void 0:Hn.value,qn,{source:"input"})},wn=qn=>{Bt.current||we||An(qn)},At=typeof Le=="boolean"?y.createElement(et.Z,null):null,Gt=`${qt}-button`;let on;const vn=Le||{},Nn=vn.type&&vn.type.__ANT_BUTTON===!0;Nn||vn.type==="button"?on=(0,rt.Tm)(vn,Object.assign({onMouseDown:Sn,onClick:qn=>{var En,Hn;(Hn=(En=vn==null?void 0:vn.props)===null||En===void 0?void 0:En.onClick)===null||Hn===void 0||Hn.call(En,qn),An(qn)},key:"enterButton"},Nn?{className:Gt,size:en}:{})):on=y.createElement(Xe.ZP,{className:Gt,type:Le?"primary":void 0,size:en,disabled:ke,key:"enterButton",onMouseDown:Sn,onClick:An,loading:we,icon:At},Le),pe&&(on=[on,(0,rt.Tm)(pe,{key:"addonAfter"})]);const Yn=fe()(qt,{[`${qt}-rtl`]:Ft==="rtl",[`${qt}-${en}`]:!!en,[`${qt}-with-button`]:!!Le},Be),Vn=Object.assign(Object.assign({},st),{className:Yn,prefixCls:$t,type:"search"}),ir=qn=>{Bt.current=!0,tt==null||tt(qn)},Mn=qn=>{Bt.current=!1,ot==null||ot(qn)};return y.createElement(ne.Z,Object.assign({ref:(0,He.sQ)(Pt,We),onPressEnter:wn},Vn,{size:en,onCompositionStart:ir,onCompositionEnd:Mn,addonAfter:on,suffix:Pe,onChange:cn,disabled:ke}))}),Mt=oe(79809);const wt=ne.Z;wt.Group=te,wt.Search=pt,wt.TextArea=Mt.Z,wt.Password=Ke,wt.OTP=Fe;var bt=wt},24303:function(rn,Tt,oe){"use strict";oe.d(Tt,{D:function(){return Ee},Z:function(){return je}});var y=oe(59301),ie=oe(54476),fe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},de=fe,ue=oe(7657),ae=function(Re,qe){return y.createElement(ue.Z,(0,ie.Z)({},Re,{ref:qe,icon:de}))},se=y.forwardRef(ae),te=se,ne=oe(33853),x=oe(38819),b=oe(92310),ee=oe.n(b),E=oe(2738),re=oe(48755),ce=oe(6989),le=oe(36237),ve=oe(48923),Se=oe(16931);const ge=Fe=>{const{componentCls:Re,siderBg:qe,motionDurationMid:Je,motionDurationSlow:He,antCls:ze,triggerHeight:Qe,triggerColor:$e,triggerBg:ht,headerHeight:Ge,zeroTriggerWidth:Ue,zeroTriggerHeight:Ke,borderRadiusLG:et,lightSiderBg:rt,lightTriggerColor:Xe,lightTriggerBg:ut,bodyBg:lt}=Fe;return{[Re]:{position:"relative",minWidth:0,background:qe,transition:`all ${Je}, background 0s`,"&-has-trigger":{paddingBottom:Qe},"&-right":{order:1},[`${Re}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${ze}-menu${ze}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Re}-children`]:{overflow:"hidden"},[`${Re}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Qe,color:$e,lineHeight:(0,le.unit)(Qe),textAlign:"center",background:ht,cursor:"pointer",transition:`all ${Je}`},[`${Re}-zero-width-trigger`]:{position:"absolute",top:Ge,insetInlineEnd:Fe.calc(Ue).mul(-1).equal(),zIndex:1,width:Ue,height:Ke,color:$e,fontSize:Fe.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:qe,borderRadius:`0 ${(0,le.unit)(et)} ${(0,le.unit)(et)} 0`,cursor:"pointer",transition:`background ${He} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${He}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Fe.calc(Ue).mul(-1).equal(),borderRadius:`${(0,le.unit)(et)} 0 0 ${(0,le.unit)(et)}`}},"&-light":{background:rt,[`${Re}-trigger`]:{color:Xe,background:ut},[`${Re}-zero-width-trigger`]:{color:Xe,background:ut,border:`1px solid ${lt}`,borderInlineStart:0}}}}};var _e=(0,Se.I$)(["Layout","Sider"],Fe=>[ge(Fe)],ve.eh,{deprecatedTokens:ve.jn}),Ce=function(Fe,Re){var qe={};for(var Je in Fe)Object.prototype.hasOwnProperty.call(Fe,Je)&&Re.indexOf(Je)<0&&(qe[Je]=Fe[Je]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Je=Object.getOwnPropertySymbols(Fe);He<Je.length;He++)Re.indexOf(Je[He])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Je[He])&&(qe[Je[He]]=Fe[Je[He]]);return qe};const he={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},be=Fe=>!Number.isNaN(Number.parseFloat(Fe))&&isFinite(Fe),Ee=y.createContext({}),Ae=(()=>{let Fe=0;return function(){let Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Fe+=1,`${Re}${Fe}`}})();var je=y.forwardRef((Fe,Re)=>{const{prefixCls:qe,className:Je,trigger:He,children:ze,defaultCollapsed:Qe=!1,theme:$e="dark",style:ht={},collapsible:Ge=!1,reverseArrow:Ue=!1,width:Ke=200,collapsedWidth:et=80,zeroWidthTriggerStyle:rt,breakpoint:Xe,onCollapse:ut,onBreakpoint:lt}=Fe,kt=Ce(Fe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:pt}=(0,y.useContext)(ce.V),[Mt,wt]=(0,y.useState)("collapsed"in Fe?Fe.collapsed:Qe),[bt,gt]=(0,y.useState)(!1);(0,y.useEffect)(()=>{"collapsed"in Fe&&wt(Fe.collapsed)},[Fe.collapsed]);const We=(en,Pt)=>{"collapsed"in Fe||wt(en),ut==null||ut(en,Pt)},{getPrefixCls:Ie,direction:xe}=(0,y.useContext)(re.E_),Be=Ie("layout-sider",qe),[Ye,Pe,Le]=_e(Be),pe=(0,y.useRef)(null);pe.current=en=>{gt(en.matches),lt==null||lt(en.matches),Mt!==en.matches&&We(en.matches,"responsive")},(0,y.useEffect)(()=>{function en(cn){return pe.current(cn)}let Pt;if(typeof window!="undefined"){const{matchMedia:cn}=window;if(cn&&Xe&&Xe in he){Pt=cn(`screen and (max-width: ${he[Xe]})`);try{Pt.addEventListener("change",en)}catch(Sn){Pt.addListener(en)}en(Pt)}}return()=>{try{Pt==null||Pt.removeEventListener("change",en)}catch(cn){Pt==null||Pt.removeListener(en)}}},[Xe]),(0,y.useEffect)(()=>{const en=Ae("ant-sider-");return pt.addSider(en),()=>pt.removeSider(en)},[]);const we=()=>{We(!Mt,"clickTrigger")},ke=(0,E.Z)(kt,["collapsed"]),Me=Mt?et:Ke,Oe=be(Me)?`${Me}px`:String(Me),tt=parseFloat(String(et||0))===0?y.createElement("span",{onClick:we,className:ee()(`${Be}-zero-width-trigger`,`${Be}-zero-width-trigger-${Ue?"right":"left"}`),style:rt},He||y.createElement(te,null)):null,ot=xe==="rtl"==!Ue,Ft={expanded:ot?y.createElement(x.Z,null):y.createElement(ne.Z,null),collapsed:ot?y.createElement(ne.Z,null):y.createElement(x.Z,null)}[Mt?"collapsed":"expanded"],Bt=He!==null?tt||y.createElement("div",{className:`${Be}-trigger`,onClick:we,style:{width:Oe}},He||Ft):null,qt=Object.assign(Object.assign({},ht),{flex:`0 0 ${Oe}`,maxWidth:Oe,minWidth:Oe,width:Oe}),$t=ee()(Be,`${Be}-${$e}`,{[`${Be}-collapsed`]:!!Mt,[`${Be}-has-trigger`]:Ge&&He!==null&&!tt,[`${Be}-below`]:!!bt,[`${Be}-zero-width`]:parseFloat(Oe)===0},Je,Pe,Le),It=y.useMemo(()=>({siderCollapsed:Mt}),[Mt]);return Ye(y.createElement(Ee.Provider,{value:It},y.createElement("aside",Object.assign({className:$t},ke,{style:qt,ref:Re}),y.createElement("div",{className:`${Be}-children`},ze),Ge||bt&&tt?Bt:null)))})},6989:function(rn,Tt,oe){"use strict";oe.d(Tt,{V:function(){return ie}});var y=oe(59301);const ie=y.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(rn,Tt,oe){"use strict";oe.d(Tt,{eh:function(){return de},jn:function(){return ue}});var y=oe(36237),ie=oe(16931);const fe=ae=>{const{antCls:se,componentCls:te,colorText:ne,footerBg:x,headerHeight:b,headerPadding:ee,headerColor:E,footerPadding:re,fontSize:ce,bodyBg:le,headerBg:ve}=ae;return{[te]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:le,"&, *":{boxSizing:"border-box"},[`&${te}-has-sider`]:{flexDirection:"row",[`> ${te}, > ${te}-content`]:{width:0}},[`${te}-header, &${te}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${te}-header`]:{height:b,padding:ee,color:E,lineHeight:(0,y.unit)(b),background:ve,[`${se}-menu`]:{lineHeight:"inherit"}},[`${te}-footer`]:{padding:re,color:ne,fontSize:ce,background:x},[`${te}-content`]:{flex:"auto",color:ne,minHeight:0}}},de=ae=>{const{colorBgLayout:se,controlHeight:te,controlHeightLG:ne,colorText:x,controlHeightSM:b,marginXXS:ee,colorTextLightSolid:E,colorBgContainer:re}=ae,ce=ne*1.25;return{colorBgHeader:"#001529",colorBgBody:se,colorBgTrigger:"#002140",bodyBg:se,headerBg:"#001529",headerHeight:te*2,headerPadding:`0 ${ce}px`,headerColor:x,footerPadding:`${b}px ${ce}px`,footerBg:se,siderBg:"#001529",triggerHeight:ne+ee*2,triggerBg:"#002140",triggerColor:E,zeroTriggerWidth:ne,zeroTriggerHeight:ne,lightSiderBg:re,lightTriggerBg:re,lightTriggerColor:x}},ue=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Tt.ZP=(0,ie.I$)("Layout",ae=>[fe(ae)],de,{deprecatedTokens:ue})},78857:function(rn,Tt,oe){"use strict";oe.d(Tt,{J:function(){return ae}});var y=oe(59301),ie=oe(8654),fe=oe(62487),de=function(se,te){var ne={};for(var x in se)Object.prototype.hasOwnProperty.call(se,x)&&te.indexOf(x)<0&&(ne[x]=se[x]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,x=Object.getOwnPropertySymbols(se);b<x.length;b++)te.indexOf(x[b])<0&&Object.prototype.propertyIsEnumerable.call(se,x[b])&&(ne[x[b]]=se[x[b]]);return ne};const ue=y.createContext(null),ae=y.forwardRef((se,te)=>{const{children:ne}=se,x=de(se,["children"]),b=y.useContext(ue),ee=y.useMemo(()=>Object.assign(Object.assign({},b),x),[b,x.prefixCls,x.mode,x.selectable,x.rootClassName]),E=(0,ie.t4)(ne),re=(0,ie.x1)(te,E?(0,ie.C4)(ne):null);return y.createElement(ue.Provider,{value:ee},y.createElement(fe.Z,{space:!0},E?y.cloneElement(ne,{ref:re}):ne))});Tt.Z=ue},93041:function(rn,Tt,oe){"use strict";oe.d(Tt,{default:function(){return Ye}});var y=oe(59301),ie=oe(28321),fe=oe(24303),de=oe(18785),ue=oe(92310),ae=oe.n(ue),se=oe(6089),te=oe(2738),ne=oe(86641),x=oe(22703),b=oe(48755),ee=oe(83397),re=(0,y.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ce=function(Pe,Le){var pe={};for(var we in Pe)Object.prototype.hasOwnProperty.call(Pe,we)&&Le.indexOf(we)<0&&(pe[we]=Pe[we]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,we=Object.getOwnPropertySymbols(Pe);ke<we.length;ke++)Le.indexOf(we[ke])<0&&Object.prototype.propertyIsEnumerable.call(Pe,we[ke])&&(pe[we[ke]]=Pe[we[ke]]);return pe},ve=Pe=>{const{prefixCls:Le,className:pe,dashed:we}=Pe,ke=ce(Pe,["prefixCls","className","dashed"]),{getPrefixCls:Me}=y.useContext(b.E_),Oe=Me("menu",Le),tt=ae()({[`${Oe}-item-divider-dashed`]:!!we},pe);return y.createElement(ie.iz,Object.assign({className:tt},ke))},Se=oe(11592),ge=oe(25399),Ce=Pe=>{var Le;const{className:pe,children:we,icon:ke,title:Me,danger:Oe,extra:tt}=Pe,{prefixCls:ot,firstLevel:st,direction:ft,disableMenuItemTitleTooltip:Ft,inlineCollapsed:Bt}=y.useContext(re),qt=Sn=>{const An=we==null?void 0:we[0],wn=y.createElement("span",{className:ae()(`${ot}-title-content`,{[`${ot}-title-content-with-extra`]:!!tt||tt===0})},we);return(!ke||y.isValidElement(we)&&we.type==="span")&&we&&Sn&&st&&typeof An=="string"?y.createElement("div",{className:`${ot}-inline-collapsed-noicon`},An.charAt(0)):wn},{siderCollapsed:$t}=y.useContext(fe.D);let It=Me;typeof Me=="undefined"?It=st?we:"":Me===!1&&(It="");const en={title:It};!$t&&!Bt&&(en.title=null,en.open=!1);const Pt=(0,Se.Z)(we).length;let cn=y.createElement(ie.ck,Object.assign({},(0,te.Z)(Pe,["title","icon","danger"]),{className:ae()({[`${ot}-item-danger`]:Oe,[`${ot}-item-only-child`]:(ke?Pt+1:Pt)===1},pe),title:typeof Me=="string"?Me:void 0}),(0,x.Tm)(ke,{className:ae()(y.isValidElement(ke)?(Le=ke.props)===null||Le===void 0?void 0:Le.className:"",`${ot}-item-icon`)}),qt(Bt));return Ft||(cn=y.createElement(ge.Z,Object.assign({},en,{placement:ft==="rtl"?"left":"right",classNames:{root:`${ot}-inline-collapsed-tooltip`}}),cn)),cn},he=oe(78857),be=oe(36237),Ee=oe(17835),Ae=oe(63356),De=oe(34961),je=oe(46e3),Fe=oe(34925),Re=oe(16931),qe=oe(51636),He=Pe=>{const{componentCls:Le,motionDurationSlow:pe,horizontalLineHeight:we,colorSplit:ke,lineWidth:Me,lineType:Oe,itemPaddingInline:tt}=Pe;return{[`${Le}-horizontal`]:{lineHeight:we,border:0,borderBottom:`${(0,be.unit)(Me)} ${Oe} ${ke}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:tt},[`> ${Le}-item:hover,
|
|
|
> ${Le}-item-active,
|
|
|
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},Qe=Pe=>{let{componentCls:Le,menuArrowOffset:pe,calc:we}=Pe;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
|
|
|
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,be.unit)(we(pe).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,be.unit)(pe)})`}}}}};const $e=Pe=>Object.assign({},(0,Ae.oN)(Pe));var Ge=(Pe,Le)=>{const{componentCls:pe,itemColor:we,itemSelectedColor:ke,subMenuItemSelectedColor:Me,groupTitleColor:Oe,itemBg:tt,subMenuItemBg:ot,itemSelectedBg:st,activeBarHeight:ft,activeBarWidth:Ft,activeBarBorderWidth:Bt,motionDurationSlow:qt,motionEaseInOut:$t,motionEaseOut:It,itemPaddingInline:en,motionDurationMid:Pt,itemHoverColor:cn,lineType:Sn,colorSplit:An,itemDisabledColor:wn,dangerItemColor:At,dangerItemHoverColor:Gt,dangerItemSelectedColor:on,dangerItemActiveBg:vn,dangerItemSelectedBg:Nn,popupBg:Yn,itemHoverBg:Vn,itemActiveBg:ir,menuSubMenuBg:Mn,horizontalItemSelectedColor:qn,horizontalItemSelectedBg:En,horizontalItemBorderRadius:Hn,horizontalItemHoverBg:Qn}=Pe;return{[`${pe}-${Le}, ${pe}-${Le} > ${pe}`]:{color:we,background:tt,[`&${pe}-root:focus-visible`]:Object.assign({},$e(Pe)),[`${pe}-item`]:{"&-group-title, &-extra":{color:Oe}},[`${pe}-submenu-selected > ${pe}-submenu-title`]:{color:Me},[`${pe}-item, ${pe}-submenu-title`]:{color:we,[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},$e(Pe))},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${wn} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:cn}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Vn},"&:active":{backgroundColor:ir}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Vn},"&:active":{backgroundColor:ir}}},[`${pe}-item-danger`]:{color:At,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Gt}},[`&${pe}-item:active`]:{background:vn}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:ke,[`&${pe}-item-danger`]:{color:on},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:st,[`&${pe}-item-danger`]:{backgroundColor:Nn}},[`&${pe}-submenu > ${pe}`]:{backgroundColor:Mn},[`&${pe}-popup > ${pe}`]:{backgroundColor:Yn},[`&${pe}-submenu-popup > ${pe}`]:{backgroundColor:Yn},[`&${pe}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:Bt,marginTop:Pe.calc(Bt).mul(-1).equal(),marginBottom:0,borderRadius:Hn,"&::after":{position:"absolute",insetInline:en,bottom:0,borderBottom:`${(0,be.unit)(ft)} solid transparent`,transition:`border-color ${qt} ${$t}`,content:'""'},"&:hover, &-active, &-open":{background:Qn,"&::after":{borderBottomWidth:ft,borderBottomColor:qn}},"&-selected":{color:qn,backgroundColor:En,"&:hover":{backgroundColor:En},"&::after":{borderBottomWidth:ft,borderBottomColor:qn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${(0,be.unit)(Bt)} ${Sn} ${An}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:ot},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,be.unit)(Ft)} solid ${ke}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Pt} ${It}`,`opacity ${Pt} ${It}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:on}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Pt} ${$t}`,`opacity ${Pt} ${$t}`].join(",")}}}}}};const Ue=Pe=>{const{componentCls:Le,itemHeight:pe,itemMarginInline:we,padding:ke,menuArrowSize:Me,marginXS:Oe,itemMarginBlock:tt,itemWidth:ot,itemPaddingInline:st}=Pe,ft=Pe.calc(Me).add(ke).add(Oe).equal();return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:pe,lineHeight:(0,be.unit)(pe),paddingInline:st,overflow:"hidden",textOverflow:"ellipsis",marginInline:we,marginBlock:tt,width:ot},[`> ${Le}-item,
|
|
|
> ${Le}-submenu > ${Le}-submenu-title`]:{height:pe,lineHeight:(0,be.unit)(pe)},[`${Le}-item-group-list ${Le}-submenu-title,
|
|
|
${Le}-submenu-title`]:{paddingInlineEnd:ft}}};var et=Pe=>{const{componentCls:Le,iconCls:pe,itemHeight:we,colorTextLightSolid:ke,dropdownWidth:Me,controlHeightLG:Oe,motionEaseOut:tt,paddingXL:ot,itemMarginInline:st,fontSizeLG:ft,motionDurationFast:Ft,motionDurationSlow:Bt,paddingXS:qt,boxShadowSecondary:$t,collapsedWidth:It,collapsedIconSize:en}=Pe,Pt={height:we,lineHeight:(0,be.unit)(we),listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Ue(Pe))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Ue(Pe)),{boxShadow:$t})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:Me,maxHeight:`calc(100vh - ${(0,be.unit)(Pe.calc(Oe).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Bt}`,`background ${Bt}`,`padding ${Ft} ${tt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:Pt,[`& ${Le}-item-group-title`]:{paddingInlineStart:ot}},[`${Le}-item`]:Pt}},{[`${Le}-inline-collapsed`]:{width:It,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:ft,textAlign:"center"}}},[`> ${Le}-item,
|
|
|
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
|
|
|
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
|
|
|
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,be.unit)(Pe.calc(en).div(2).equal())} - ${(0,be.unit)(st)})`,textOverflow:"clip",[`
|
|
|
${Le}-submenu-arrow,
|
|
|
${Le}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Le}-item-icon, ${pe}`]:{margin:0,fontSize:en,lineHeight:(0,be.unit)(we),"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:ke}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},Ae.vS),{paddingInline:qt})}}]};const rt=Pe=>{const{componentCls:Le,motionDurationSlow:pe,motionDurationMid:we,motionEaseInOut:ke,motionEaseOut:Me,iconCls:Oe,iconSize:tt,iconMarginInlineEnd:ot}=Pe;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding calc(${pe} + 0.1s) ${ke}`].join(","),[`${Le}-item-icon, ${Oe}`]:{minWidth:tt,fontSize:tt,transition:[`font-size ${we} ${Me}`,`margin ${pe} ${ke}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:ot,opacity:1,transition:[`opacity ${pe} ${ke}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,Ae.Ro)()),[`&${Le}-item-only-child`]:{[`> ${Oe}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Xe=Pe=>{const{componentCls:Le,motionDurationSlow:pe,motionEaseInOut:we,borderRadius:ke,menuArrowSize:Me,menuArrowOffset:Oe}=Pe;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Pe.margin,width:Me,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${we}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Pe.calc(Me).mul(.6).equal(),height:Pe.calc(Me).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:ke,transition:[`background ${pe} ${we}`,`transform ${pe} ${we}`,`top ${pe} ${we}`,`color ${pe} ${we}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,be.unit)(Pe.calc(Oe).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,be.unit)(Oe)})`}}}}},ut=Pe=>{const{antCls:Le,componentCls:pe,fontSize:we,motionDurationSlow:ke,motionDurationMid:Me,motionEaseInOut:Oe,paddingXS:tt,padding:ot,colorSplit:st,lineWidth:ft,zIndexPopup:Ft,borderRadiusLG:Bt,subMenuItemBorderRadius:qt,menuArrowSize:$t,menuArrowOffset:It,lineType:en,groupTitleLineHeight:Pt,groupTitleFontSize:cn}=Pe;return[{"":{[pe]:Object.assign(Object.assign({},(0,Ae.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ae.Wf)(Pe)),(0,Ae.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:we,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ke} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:Pe.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${(0,be.unit)(tt)} ${(0,be.unit)(ot)}`,fontSize:cn,lineHeight:Pt,transition:`all ${ke}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${ke} ${Oe}`,`background ${ke} ${Oe}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${ke} ${Oe}`,`background ${ke} ${Oe}`,`padding ${Me} ${Oe}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${ke} ${Oe}`,`padding ${ke} ${Oe}`].join(",")},[`${pe}-title-content`]:{transition:`color ${ke}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${Le}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${pe}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:Pe.padding}},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:st,borderStyle:en,borderWidth:0,borderTopWidth:ft,marginBlock:ft,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rt(Pe)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${(0,be.unit)(Pe.calc(we).mul(2).equal())} ${(0,be.unit)(ot)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ft,borderRadius:Bt,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Bt},rt(Pe)),Xe(Pe)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:qt},[`${pe}-submenu-title::after`]:{transition:`transform ${ke} ${Oe}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Pe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Pe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Pe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Pe.paddingXS}}}),Xe(Pe)),{[`&-inline-collapsed ${pe}-submenu-arrow,
|
|
|
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,be.unit)(It)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,be.unit)(Pe.calc(It).mul(-1).equal())})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(${(0,be.unit)(Pe.calc($t).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,be.unit)(Pe.calc(It).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,be.unit)(It)})`}}})},{[`${Le}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]},lt=Pe=>{var Le,pe,we;const{colorPrimary:ke,colorError:Me,colorTextDisabled:Oe,colorErrorBg:tt,colorText:ot,colorTextDescription:st,colorBgContainer:ft,colorFillAlter:Ft,colorFillContent:Bt,lineWidth:qt,lineWidthBold:$t,controlItemBgActive:It,colorBgTextHover:en,controlHeightLG:Pt,lineHeight:cn,colorBgElevated:Sn,marginXXS:An,padding:wn,fontSize:At,controlHeightSM:Gt,fontSizeLG:on,colorTextLightSolid:vn,colorErrorHover:Nn}=Pe,Yn=(Le=Pe.activeBarWidth)!==null&&Le!==void 0?Le:0,Vn=(pe=Pe.activeBarBorderWidth)!==null&&pe!==void 0?pe:qt,ir=(we=Pe.itemMarginInline)!==null&&we!==void 0?we:Pe.marginXXS,Mn=new Ee.FastColor(vn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Pe.zIndexPopupBase+50,radiusItem:Pe.borderRadiusLG,itemBorderRadius:Pe.borderRadiusLG,radiusSubMenuItem:Pe.borderRadiusSM,subMenuItemBorderRadius:Pe.borderRadiusSM,colorItemText:ot,itemColor:ot,colorItemTextHover:ot,itemHoverColor:ot,colorItemTextHoverHorizontal:ke,horizontalItemHoverColor:ke,colorGroupTitle:st,groupTitleColor:st,colorItemTextSelected:ke,itemSelectedColor:ke,subMenuItemSelectedColor:ke,colorItemTextSelectedHorizontal:ke,horizontalItemSelectedColor:ke,colorItemBg:ft,itemBg:ft,colorItemBgHover:en,itemHoverBg:en,colorItemBgActive:Bt,itemActiveBg:It,colorSubItemBg:Ft,subMenuItemBg:Ft,colorItemBgSelected:It,itemSelectedBg:It,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:Yn,colorActiveBarHeight:$t,activeBarHeight:$t,colorActiveBarBorderSize:qt,activeBarBorderWidth:Vn,colorItemTextDisabled:Oe,itemDisabledColor:Oe,colorDangerItemText:Me,dangerItemColor:Me,colorDangerItemTextHover:Me,dangerItemHoverColor:Me,colorDangerItemTextSelected:Me,dangerItemSelectedColor:Me,colorDangerItemBgActive:tt,dangerItemActiveBg:tt,colorDangerItemBgSelected:tt,dangerItemSelectedBg:tt,itemMarginInline:ir,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pt,groupTitleLineHeight:cn,collapsedWidth:Pt*2,popupBg:Sn,itemMarginBlock:An,itemPaddingInline:wn,horizontalLineHeight:`${Pt*1.15}px`,iconSize:At,iconMarginInlineEnd:Gt-At,collapsedIconSize:on,groupTitleFontSize:At,darkItemDisabledColor:new Ee.FastColor(vn).setA(.25).toRgbString(),darkItemColor:Mn,darkDangerItemColor:Me,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:vn,darkItemSelectedBg:ke,darkDangerItemSelectedBg:Me,darkItemHoverBg:"transparent",darkGroupTitleColor:Mn,darkItemHoverColor:vn,darkDangerItemHoverColor:Nn,darkDangerItemSelectedColor:vn,darkDangerItemActiveBg:Me,itemWidth:Yn?`calc(100% + ${Vn}px)`:`calc(100% - ${ir*2}px)`}};var kt=function(Pe){let Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Pe,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Re.I$)("Menu",ke=>{const{colorBgElevated:Me,controlHeightLG:Oe,fontSize:tt,darkItemColor:ot,darkDangerItemColor:st,darkItemBg:ft,darkSubMenuItemBg:Ft,darkItemSelectedColor:Bt,darkItemSelectedBg:qt,darkDangerItemSelectedBg:$t,darkItemHoverBg:It,darkGroupTitleColor:en,darkItemHoverColor:Pt,darkItemDisabledColor:cn,darkDangerItemHoverColor:Sn,darkDangerItemSelectedColor:An,darkDangerItemActiveBg:wn,popupBg:At,darkPopupBg:Gt}=ke,on=ke.calc(tt).div(7).mul(5).equal(),vn=(0,qe.mergeToken)(ke,{menuArrowSize:on,menuHorizontalHeight:ke.calc(Oe).mul(1.15).equal(),menuArrowOffset:ke.calc(on).mul(.25).equal(),menuSubMenuBg:Me,calc:ke.calc,popupBg:At}),Nn=(0,qe.mergeToken)(vn,{itemColor:ot,itemHoverColor:Pt,groupTitleColor:en,itemSelectedColor:Bt,subMenuItemSelectedColor:Bt,itemBg:ft,popupBg:Gt,subMenuItemBg:Ft,itemActiveBg:"transparent",itemSelectedBg:qt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:It,itemDisabledColor:cn,dangerItemColor:st,dangerItemHoverColor:Sn,dangerItemSelectedColor:An,dangerItemActiveBg:wn,dangerItemSelectedBg:$t,menuSubMenuBg:Ft,horizontalItemSelectedColor:Bt,horizontalItemSelectedBg:qt});return[ut(vn),He(vn),et(vn),Ge(vn,"light"),Ge(Nn,"dark"),Qe(vn),(0,De.Z)(vn),(0,je.oN)(vn,"slide-up"),(0,je.oN)(vn,"slide-down"),(0,Fe._y)(vn,"zoom-big")]},lt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:pe,unitless:{groupTitleLineHeight:!0}})(Pe,Le)},pt=oe(75030),wt=Pe=>{var Le;const{popupClassName:pe,icon:we,title:ke,theme:Me}=Pe,Oe=y.useContext(re),{prefixCls:tt,inlineCollapsed:ot,theme:st}=Oe,ft=(0,ie.Xl)();let Ft;if(!we)Ft=ot&&!ft.length&&ke&&typeof ke=="string"?y.createElement("div",{className:`${tt}-inline-collapsed-noicon`},ke.charAt(0)):y.createElement("span",{className:`${tt}-title-content`},ke);else{const $t=y.isValidElement(ke)&&ke.type==="span";Ft=y.createElement(y.Fragment,null,(0,x.Tm)(we,{className:ae()(y.isValidElement(we)?(Le=we.props)===null||Le===void 0?void 0:Le.className:"",`${tt}-item-icon`)}),$t?ke:y.createElement("span",{className:`${tt}-title-content`},ke))}const Bt=y.useMemo(()=>Object.assign(Object.assign({},Oe),{firstLevel:!1}),[Oe]),[qt]=(0,pt.Cn)("Menu");return y.createElement(re.Provider,{value:Bt},y.createElement(ie.Wd,Object.assign({},(0,te.Z)(Pe,["icon"]),{title:Ft,popupClassName:ae()(tt,pe,`${tt}-${Me||st}`),popupStyle:Object.assign({zIndex:qt},Pe.popupStyle)})))},bt=function(Pe,Le){var pe={};for(var we in Pe)Object.prototype.hasOwnProperty.call(Pe,we)&&Le.indexOf(we)<0&&(pe[we]=Pe[we]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,we=Object.getOwnPropertySymbols(Pe);ke<we.length;ke++)Le.indexOf(we[ke])<0&&Object.prototype.propertyIsEnumerable.call(Pe,we[ke])&&(pe[we[ke]]=Pe[we[ke]]);return pe};function gt(Pe){return Pe===null||Pe===!1}const We={item:Ce,submenu:wt,divider:ve};var xe=(0,y.forwardRef)((Pe,Le)=>{var pe;const we=y.useContext(he.Z),ke=we||{},{getPrefixCls:Me,getPopupContainer:Oe,direction:tt,menu:ot}=y.useContext(b.E_),st=Me(),{prefixCls:ft,className:Ft,style:Bt,theme:qt="light",expandIcon:$t,_internalDisableMenuItemTitleTooltip:It,inlineCollapsed:en,siderCollapsed:Pt,rootClassName:cn,mode:Sn,selectable:An,onClick:wn,overflowedIndicatorPopupClassName:At}=Pe,Gt=bt(Pe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),on=(0,te.Z)(Gt,["collapsedWidth"]);(pe=ke.validator)===null||pe===void 0||pe.call(ke,{mode:Sn});const vn=(0,se.Z)(function(){var Kn;wn==null||wn.apply(void 0,arguments),(Kn=ke.onClick)===null||Kn===void 0||Kn.call(ke)}),Nn=ke.mode||Sn,Yn=An!=null?An:ke.selectable,Vn=en!=null?en:Pt,ir={horizontal:{motionName:`${st}-slide-up`},inline:(0,ne.Z)(st),other:{motionName:`${st}-zoom-big`}},Mn=Me("menu",ft||ke.prefixCls),qn=(0,ee.Z)(Mn),[En,Hn,Qn]=kt(Mn,qn,!we),dr=ae()(`${Mn}-${qt}`,ot==null?void 0:ot.className,Ft),On=y.useMemo(()=>{var Kn,yn;if(typeof $t=="function"||gt($t))return $t||null;if(typeof ke.expandIcon=="function"||gt(ke.expandIcon))return ke.expandIcon||null;if(typeof(ot==null?void 0:ot.expandIcon)=="function"||gt(ot==null?void 0:ot.expandIcon))return(ot==null?void 0:ot.expandIcon)||null;const Ne=(Kn=$t!=null?$t:ke==null?void 0:ke.expandIcon)!==null&&Kn!==void 0?Kn:ot==null?void 0:ot.expandIcon;return(0,x.Tm)(Ne,{className:ae()(`${Mn}-submenu-expand-icon`,y.isValidElement(Ne)?(yn=Ne.props)===null||yn===void 0?void 0:yn.className:void 0)})},[$t,ke==null?void 0:ke.expandIcon,ot==null?void 0:ot.expandIcon,Mn]),$n=y.useMemo(()=>({prefixCls:Mn,inlineCollapsed:Vn||!1,direction:tt,firstLevel:!0,theme:qt,mode:Nn,disableMenuItemTitleTooltip:It}),[Mn,Vn,tt,It,qt]);return En(y.createElement(he.Z.Provider,{value:null},y.createElement(re.Provider,{value:$n},y.createElement(ie.ZP,Object.assign({getPopupContainer:Oe,overflowedIndicator:y.createElement(de.Z,null),overflowedIndicatorPopupClassName:ae()(Mn,`${Mn}-${qt}`,At),mode:Nn,selectable:Yn,onClick:vn},on,{inlineCollapsed:Vn,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Bt),className:dr,prefixCls:Mn,direction:tt,defaultMotions:ir,expandIcon:On,ref:Le,rootClassName:ae()(cn,Hn,ke.rootClassName,Qn,qn),_internalComponents:We})))))});const Be=(0,y.forwardRef)((Pe,Le)=>{const pe=(0,y.useRef)(null),we=y.useContext(fe.D);return(0,y.useImperativeHandle)(Le,()=>({menu:pe.current,focus:ke=>{var Me;(Me=pe.current)===null||Me===void 0||Me.focus(ke)}})),y.createElement(xe,Object.assign({ref:pe},Pe,we))});Be.Item=Ce,Be.SubMenu=wt,Be.Divider=ve,Be.ItemGroup=ie.BW;var Ye=Be},31709:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return ot}});var y=oe(59301),ie=oe(54476),fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},de=fe,ue=oe(7657),ae=function(ft,Ft){return y.createElement(ue.Z,(0,ie.Z)({},ft,{ref:Ft,icon:de}))},se=y.forwardRef(ae),te=se,ne=oe(49198),x=oe(33853),b=oe(38819),ee=oe(92310),E=oe.n(ee),re=oe(20068),ce=oe(76190),le=oe(33885),ve=oe(42978),Se=oe(18929),ge=oe(10228),_e=oe(26112),Ce=oe(48736),he=oe(17119),be=[10,20,50,100],Ee=function(ft){var Ft=ft.pageSizeOptions,Bt=Ft===void 0?be:Ft,qt=ft.locale,$t=ft.changeSize,It=ft.pageSize,en=ft.goButton,Pt=ft.quickGo,cn=ft.rootPrefixCls,Sn=ft.disabled,An=ft.buildOptionText,wn=ft.showSizeChanger,At=ft.sizeChangerRender,Gt=y.useState(""),on=(0,ve.Z)(Gt,2),vn=on[0],Nn=on[1],Yn=function(){return!vn||Number.isNaN(vn)?void 0:Number(vn)},Vn=typeof An=="function"?An:function($n){return"".concat($n," ").concat(qt.items_per_page)},ir=function(Kn){Nn(Kn.target.value)},Mn=function(Kn){en||vn===""||(Nn(""),!(Kn.relatedTarget&&(Kn.relatedTarget.className.indexOf("".concat(cn,"-item-link"))>=0||Kn.relatedTarget.className.indexOf("".concat(cn,"-item"))>=0))&&(Pt==null||Pt(Yn())))},qn=function(Kn){vn!==""&&(Kn.keyCode===ge.Z.ENTER||Kn.type==="click")&&(Nn(""),Pt==null||Pt(Yn()))},En=function(){return Bt.some(function(Kn){return Kn.toString()===It.toString()})?Bt:Bt.concat([It]).sort(function(Kn,yn){var Ne=Number.isNaN(Number(Kn))?0:Number(Kn),Ve=Number.isNaN(Number(yn))?0:Number(yn);return Ne-Ve})},Hn="".concat(cn,"-options");if(!wn&&!Pt)return null;var Qn=null,dr=null,On=null;return wn&&At&&(Qn=At({disabled:Sn,size:It,onSizeChange:function(Kn){$t==null||$t(Number(Kn))},"aria-label":qt.page_size,className:"".concat(Hn,"-size-changer"),options:En().map(function($n){return{label:Vn($n),value:$n}})})),Pt&&(en&&(On=typeof en=="boolean"?y.createElement("button",{type:"button",onClick:qn,onKeyUp:qn,disabled:Sn,className:"".concat(Hn,"-quick-jumper-button")},qt.jump_to_confirm):y.createElement("span",{onClick:qn,onKeyUp:qn},en)),dr=y.createElement("div",{className:"".concat(Hn,"-quick-jumper")},qt.jump_to,y.createElement("input",{disabled:Sn,type:"text",value:vn,onChange:ir,onKeyUp:qn,onBlur:Mn,"aria-label":qt.page}),qt.page,On)),y.createElement("li",{className:Hn},Qn,dr)},Ae=Ee,De=function(ft){var Ft=ft.rootPrefixCls,Bt=ft.page,qt=ft.active,$t=ft.className,It=ft.showTitle,en=ft.onClick,Pt=ft.onKeyPress,cn=ft.itemRender,Sn="".concat(Ft,"-item"),An=E()(Sn,"".concat(Sn,"-").concat(Bt),(0,re.Z)((0,re.Z)({},"".concat(Sn,"-active"),qt),"".concat(Sn,"-disabled"),!Bt),$t),wn=function(){en(Bt)},At=function(vn){Pt(vn,en,Bt)},Gt=cn(Bt,"page",y.createElement("a",{rel:"nofollow"},Bt));return Gt?y.createElement("li",{title:It?String(Bt):null,className:An,onClick:wn,onKeyDown:At,tabIndex:0},Gt):null},je=De,Fe=function(ft,Ft,Bt){return Bt};function Re(){}function qe(st){var ft=Number(st);return typeof ft=="number"&&!Number.isNaN(ft)&&isFinite(ft)&&Math.floor(ft)===ft}function Je(st,ft,Ft){var Bt=typeof st=="undefined"?ft:st;return Math.floor((Ft-1)/Bt)+1}var He=function(ft){var Ft=ft.prefixCls,Bt=Ft===void 0?"rc-pagination":Ft,qt=ft.selectPrefixCls,$t=qt===void 0?"rc-select":qt,It=ft.className,en=ft.current,Pt=ft.defaultCurrent,cn=Pt===void 0?1:Pt,Sn=ft.total,An=Sn===void 0?0:Sn,wn=ft.pageSize,At=ft.defaultPageSize,Gt=At===void 0?10:At,on=ft.onChange,vn=on===void 0?Re:on,Nn=ft.hideOnSinglePage,Yn=ft.align,Vn=ft.showPrevNextJumpers,ir=Vn===void 0?!0:Vn,Mn=ft.showQuickJumper,qn=ft.showLessItems,En=ft.showTitle,Hn=En===void 0?!0:En,Qn=ft.onShowSizeChange,dr=Qn===void 0?Re:Qn,On=ft.locale,$n=On===void 0?he.Z:On,Kn=ft.style,yn=ft.totalBoundaryShowSizeChanger,Ne=yn===void 0?50:yn,Ve=ft.disabled,nt=ft.simple,mt=ft.showTotal,_t=ft.showSizeChanger,Vt=_t===void 0?An>Ne:_t,Jt=ft.sizeChangerRender,Xt=ft.pageSizeOptions,dn=ft.itemRender,jn=dn===void 0?Fe:dn,vr=ft.jumpPrevIcon,Nt=ft.jumpNextIcon,jt=ft.prevIcon,xt=ft.nextIcon,Ot=y.useRef(null),yt=(0,Se.Z)(10,{value:wn,defaultValue:Gt}),Lt=(0,ve.Z)(yt,2),Ut=Lt[0],bn=Lt[1],Tn=(0,Se.Z)(1,{value:en,defaultValue:cn,postState:function(Xr){return Math.max(1,Math.min(Xr,Je(void 0,Ut,An)))}}),Gn=(0,ve.Z)(Tn,2),pn=Gn[0],tn=Gn[1],ln=y.useState(pn),Rn=(0,ve.Z)(ln,2),nr=Rn[0],rr=Rn[1];(0,y.useEffect)(function(){rr(pn)},[pn]);var fr=vn!==Re,ti="current"in ft,fn=Math.max(1,pn-(qn?3:5)),Kt=Math.min(Je(void 0,Ut,An),pn+(qn?3:5));function gn(oi,Xr){var $i=oi||y.createElement("button",{type:"button","aria-label":Xr,className:"".concat(Bt,"-item-link")});return typeof oi=="function"&&($i=y.createElement(oi,(0,le.Z)({},ft))),$i}function xn(oi){var Xr=oi.target.value,$i=Je(void 0,Ut,An),ro;return Xr===""?ro=Xr:Number.isNaN(Number(Xr))?ro=nr:Xr>=$i?ro=$i:ro=Number(Xr),ro}function Ln(oi){return qe(oi)&&oi!==pn&&qe(An)&&An>0}var Un=An>Ut?Mn:!1;function hr(oi){(oi.keyCode===ge.Z.UP||oi.keyCode===ge.Z.DOWN)&&oi.preventDefault()}function ar(oi){var Xr=xn(oi);switch(Xr!==nr&&rr(Xr),oi.keyCode){case ge.Z.ENTER:yr(Xr);break;case ge.Z.UP:yr(Xr-1);break;case ge.Z.DOWN:yr(Xr+1);break;default:break}}function Sr(oi){yr(xn(oi))}function Cr(oi){var Xr=Je(oi,Ut,An),$i=pn>Xr&&Xr!==0?Xr:pn;bn(oi),rr($i),dr==null||dr(pn,oi),tn($i),vn==null||vn($i,oi)}function yr(oi){if(Ln(oi)&&!Ve){var Xr=Je(void 0,Ut,An),$i=oi;return oi>Xr?$i=Xr:oi<1&&($i=1),$i!==nr&&rr($i),tn($i),vn==null||vn($i,Ut),$i}return pn}var pr=pn>1,$r=pn<Je(void 0,Ut,An);function kr(){pr&&yr(pn-1)}function Nr(){$r&&yr(pn+1)}function Yr(){yr(fn)}function ai(){yr(Kt)}function Rr(oi,Xr){if(oi.key==="Enter"||oi.charCode===ge.Z.ENTER||oi.keyCode===ge.Z.ENTER){for(var $i=arguments.length,ro=new Array($i>2?$i-2:0),ao=2;ao<$i;ao++)ro[ao-2]=arguments[ao];Xr.apply(void 0,ro)}}function ii(oi){Rr(oi,kr)}function Dr(oi){Rr(oi,Nr)}function fi(oi){Rr(oi,Yr)}function Lr(oi){Rr(oi,ai)}function wi(oi){var Xr=jn(oi,"prev",gn(jt,"prev page"));return y.isValidElement(Xr)?y.cloneElement(Xr,{disabled:!pr}):Xr}function Jr(oi){var Xr=jn(oi,"next",gn(xt,"next page"));return y.isValidElement(Xr)?y.cloneElement(Xr,{disabled:!$r}):Xr}function Zr(oi){(oi.type==="click"||oi.keyCode===ge.Z.ENTER)&&yr(nr)}var si=null,vi=(0,_e.Z)(ft,{aria:!0,data:!0}),pi=mt&&y.createElement("li",{className:"".concat(Bt,"-total-text")},mt(An,[An===0?0:(pn-1)*Ut+1,pn*Ut>An?An:pn*Ut])),ri=null,Er=Je(void 0,Ut,An);if(Nn&&An<=Ut)return null;var kn=[],Xn={rootPrefixCls:Bt,onClick:yr,onKeyPress:Rr,showTitle:Hn,itemRender:jn,page:-1},er=pn-1>0?pn-1:0,zn=pn+1<Er?pn+1:Er,xr=Mn&&Mn.goButton,Br=(0,ce.Z)(nt)==="object"?nt.readOnly:!nt,Wn=xr,Jn=null;nt&&(xr&&(typeof xr=="boolean"?Wn=y.createElement("button",{type:"button",onClick:Zr,onKeyUp:Zr},$n.jump_to_confirm):Wn=y.createElement("span",{onClick:Zr,onKeyUp:Zr},xr),Wn=y.createElement("li",{title:Hn?"".concat($n.jump_to).concat(pn,"/").concat(Er):null,className:"".concat(Bt,"-simple-pager")},Wn)),Jn=y.createElement("li",{title:Hn?"".concat(pn,"/").concat(Er):null,className:"".concat(Bt,"-simple-pager")},Br?nr:y.createElement("input",{type:"text","aria-label":$n.jump_to,value:nr,disabled:Ve,onKeyDown:hr,onKeyUp:ar,onChange:ar,onBlur:Sr,size:3}),y.createElement("span",{className:"".concat(Bt,"-slash")},"/"),Er));var gr=qn?1:2;if(Er<=3+gr*2){Er||kn.push(y.createElement(je,(0,ie.Z)({},Xn,{key:"noPager",page:1,className:"".concat(Bt,"-item-disabled")})));for(var br=1;br<=Er;br+=1)kn.push(y.createElement(je,(0,ie.Z)({},Xn,{key:br,page:br,active:pn===br})))}else{var ui=qn?$n.prev_3:$n.prev_5,Ri=qn?$n.next_3:$n.next_5,gi=jn(fn,"jump-prev",gn(vr,"prev page")),Hi=jn(Kt,"jump-next",gn(Nt,"next page"));ir&&(si=gi?y.createElement("li",{title:Hn?ui:null,key:"prev",onClick:Yr,tabIndex:0,onKeyDown:fi,className:E()("".concat(Bt,"-jump-prev"),(0,re.Z)({},"".concat(Bt,"-jump-prev-custom-icon"),!!vr))},gi):null,ri=Hi?y.createElement("li",{title:Hn?Ri:null,key:"next",onClick:ai,tabIndex:0,onKeyDown:Lr,className:E()("".concat(Bt,"-jump-next"),(0,re.Z)({},"".concat(Bt,"-jump-next-custom-icon"),!!Nt))},Hi):null);var Oi=Math.max(1,pn-gr),Pi=Math.min(pn+gr,Er);pn-1<=gr&&(Pi=1+gr*2),Er-pn<=gr&&(Oi=Er-gr*2);for(var ki=Oi;ki<=Pi;ki+=1)kn.push(y.createElement(je,(0,ie.Z)({},Xn,{key:ki,page:ki,active:pn===ki})));if(pn-1>=gr*2&&pn!==3&&(kn[0]=y.cloneElement(kn[0],{className:E()("".concat(Bt,"-item-after-jump-prev"),kn[0].props.className)}),kn.unshift(si)),Er-pn>=gr*2&&pn!==Er-2){var Fi=kn[kn.length-1];kn[kn.length-1]=y.cloneElement(Fi,{className:E()("".concat(Bt,"-item-before-jump-next"),Fi.props.className)}),kn.push(ri)}Oi!==1&&kn.unshift(y.createElement(je,(0,ie.Z)({},Xn,{key:1,page:1}))),Pi!==Er&&kn.push(y.createElement(je,(0,ie.Z)({},Xn,{key:Er,page:Er})))}var Ni=wi(er);if(Ni){var qi=!pr||!Er;Ni=y.createElement("li",{title:Hn?$n.prev_page:null,onClick:kr,tabIndex:qi?null:0,onKeyDown:ii,className:E()("".concat(Bt,"-prev"),(0,re.Z)({},"".concat(Bt,"-disabled"),qi)),"aria-disabled":qi},Ni)}var So=Jr(zn);if(So){var xo,eo;nt?(xo=!$r,eo=pr?0:null):(xo=!$r||!Er,eo=xo?null:0),So=y.createElement("li",{title:Hn?$n.next_page:null,onClick:Nr,tabIndex:eo,onKeyDown:Dr,className:E()("".concat(Bt,"-next"),(0,re.Z)({},"".concat(Bt,"-disabled"),xo)),"aria-disabled":xo},So)}var Yi=E()(Bt,It,(0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)({},"".concat(Bt,"-start"),Yn==="start"),"".concat(Bt,"-center"),Yn==="center"),"".concat(Bt,"-end"),Yn==="end"),"".concat(Bt,"-simple"),nt),"".concat(Bt,"-disabled"),Ve));return y.createElement("ul",(0,ie.Z)({className:Yi,style:Kn,ref:Ot},vi),pi,Ni,nt?Jn:kn,So,y.createElement(Ae,{locale:$n,rootPrefixCls:Bt,disabled:Ve,selectPrefixCls:$t,changeSize:Cr,pageSize:Ut,pageSizeOptions:Xt,quickGo:Un?yr:null,goButton:Wn,showSizeChanger:Vt,sizeChangerRender:Jt}))},ze=He,Qe=oe(61852),$e=oe(48755),ht=oe(31756),Ge=oe(13783),Ue=oe(9017),Ke=oe(82326),et=oe(57700),rt=oe(36237),Xe=oe(53075),ut=oe(64910),lt=oe(39082),kt=oe(63356),pt=oe(51636),Mt=oe(16931);const wt=st=>{const{componentCls:ft}=st;return{[`${ft}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ft}-item-link`]:{color:st.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ft}-item-link`]:{color:st.colorTextDisabled,cursor:"not-allowed"}}},[`&${ft}-disabled`]:{cursor:"not-allowed",[`${ft}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:st.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:st.colorBorder,backgroundColor:st.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:st.itemActiveBgDisabled},a:{color:st.itemActiveColorDisabled}}},[`${ft}-item-link`]:{color:st.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ft}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ft}-simple-pager`]:{color:st.colorTextDisabled},[`${ft}-jump-prev, ${ft}-jump-next`]:{[`${ft}-item-link-icon`]:{opacity:0},[`${ft}-item-ellipsis`]:{opacity:1}}},[`&${ft}-simple`]:{[`${ft}-prev, ${ft}-next`]:{[`&${ft}-disabled ${ft}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},bt=st=>{const{componentCls:ft}=st;return{[`&${ft}-mini ${ft}-total-text, &${ft}-mini ${ft}-simple-pager`]:{height:st.itemSizeSM,lineHeight:(0,rt.unit)(st.itemSizeSM)},[`&${ft}-mini ${ft}-item`]:{minWidth:st.itemSizeSM,height:st.itemSizeSM,margin:0,lineHeight:(0,rt.unit)(st.calc(st.itemSizeSM).sub(2).equal())},[`&${ft}-mini ${ft}-prev, &${ft}-mini ${ft}-next`]:{minWidth:st.itemSizeSM,height:st.itemSizeSM,margin:0,lineHeight:(0,rt.unit)(st.itemSizeSM)},[`&${ft}-mini:not(${ft}-disabled)`]:{[`${ft}-prev, ${ft}-next`]:{[`&:hover ${ft}-item-link`]:{backgroundColor:st.colorBgTextHover},[`&:active ${ft}-item-link`]:{backgroundColor:st.colorBgTextActive},[`&${ft}-disabled:hover ${ft}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${ft}-mini ${ft}-prev ${ft}-item-link,
|
|
|
&${ft}-mini ${ft}-next ${ft}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:st.itemSizeSM,lineHeight:(0,rt.unit)(st.itemSizeSM)}},[`&${ft}-mini ${ft}-jump-prev, &${ft}-mini ${ft}-jump-next`]:{height:st.itemSizeSM,marginInlineEnd:0,lineHeight:(0,rt.unit)(st.itemSizeSM)},[`&${ft}-mini ${ft}-options`]:{marginInlineStart:st.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:st.miniOptionsSizeChangerTop},"&-quick-jumper":{height:st.itemSizeSM,lineHeight:(0,rt.unit)(st.itemSizeSM),input:Object.assign(Object.assign({},(0,Xe.x0)(st)),{width:st.paginationMiniQuickJumperInputWidth,height:st.controlHeightSM})}}}},gt=st=>{const{componentCls:ft}=st;return{[`
|
|
|
&${ft}-simple ${ft}-prev,
|
|
|
&${ft}-simple ${ft}-next
|
|
|
`]:{height:st.itemSizeSM,lineHeight:(0,rt.unit)(st.itemSizeSM),verticalAlign:"top",[`${ft}-item-link`]:{height:st.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:st.colorBgTextHover},"&:active":{backgroundColor:st.colorBgTextActive},"&::after":{height:st.itemSizeSM,lineHeight:(0,rt.unit)(st.itemSizeSM)}}},[`&${ft}-simple ${ft}-simple-pager`]:{display:"inline-block",height:st.itemSizeSM,marginInlineEnd:st.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${(0,rt.unit)(st.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:st.itemInputBg,border:`${(0,rt.unit)(st.lineWidth)} ${st.lineType} ${st.colorBorder}`,borderRadius:st.borderRadius,outline:"none",transition:`border-color ${st.motionDurationMid}`,color:"inherit","&:hover":{borderColor:st.colorPrimary},"&:focus":{borderColor:st.colorPrimaryHover,boxShadow:`${(0,rt.unit)(st.inputOutlineOffset)} 0 ${(0,rt.unit)(st.controlOutlineWidth)} ${st.controlOutline}`},"&[disabled]":{color:st.colorTextDisabled,backgroundColor:st.colorBgContainerDisabled,borderColor:st.colorBorder,cursor:"not-allowed"}}}}},We=st=>{const{componentCls:ft}=st;return{[`${ft}-jump-prev, ${ft}-jump-next`]:{outline:0,[`${ft}-item-container`]:{position:"relative",[`${ft}-item-link-icon`]:{color:st.colorPrimary,fontSize:st.fontSizeSM,opacity:0,transition:`all ${st.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ft}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:st.colorTextDisabled,letterSpacing:st.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:st.paginationEllipsisTextIndent,opacity:1,transition:`all ${st.motionDurationMid}`}},"&:hover":{[`${ft}-item-link-icon`]:{opacity:1},[`${ft}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${ft}-prev,
|
|
|
${ft}-jump-prev,
|
|
|
${ft}-jump-next
|
|
|
`]:{marginInlineEnd:st.marginXS},[`
|
|
|
${ft}-prev,
|
|
|
${ft}-next,
|
|
|
${ft}-jump-prev,
|
|
|
${ft}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:st.itemSize,height:st.itemSize,color:st.colorText,fontFamily:st.fontFamily,lineHeight:(0,rt.unit)(st.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:st.borderRadius,cursor:"pointer",transition:`all ${st.motionDurationMid}`},[`${ft}-prev, ${ft}-next`]:{outline:0,button:{color:st.colorText,cursor:"pointer",userSelect:"none"},[`${ft}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:st.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${(0,rt.unit)(st.lineWidth)} ${st.lineType} transparent`,borderRadius:st.borderRadius,outline:"none",transition:`all ${st.motionDurationMid}`},[`&:hover ${ft}-item-link`]:{backgroundColor:st.colorBgTextHover},[`&:active ${ft}-item-link`]:{backgroundColor:st.colorBgTextActive},[`&${ft}-disabled:hover`]:{[`${ft}-item-link`]:{backgroundColor:"transparent"}}},[`${ft}-slash`]:{marginInlineEnd:st.paginationSlashMarginInlineEnd,marginInlineStart:st.paginationSlashMarginInlineStart},[`${ft}-options`]:{display:"inline-block",marginInlineStart:st.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:st.controlHeight,marginInlineStart:st.marginXS,lineHeight:(0,rt.unit)(st.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,Xe.ik)(st)),(0,lt.$U)(st,{borderColor:st.colorBorder,hoverBorderColor:st.colorPrimaryHover,activeBorderColor:st.colorPrimary,activeShadow:st.activeShadow})),{"&[disabled]":Object.assign({},(0,lt.Xy)(st)),width:st.calc(st.controlHeightLG).mul(1.25).equal(),height:st.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:st.marginXS,marginInlineEnd:st.marginXS})}}}},Ie=st=>{const{componentCls:ft}=st;return{[`${ft}-item`]:{display:"inline-block",minWidth:st.itemSize,height:st.itemSize,marginInlineEnd:st.marginXS,fontFamily:st.fontFamily,lineHeight:(0,rt.unit)(st.calc(st.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:st.itemBg,border:`${(0,rt.unit)(st.lineWidth)} ${st.lineType} transparent`,borderRadius:st.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${(0,rt.unit)(st.paginationItemPaddingInline)}`,color:st.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ft}-item-active)`]:{"&:hover":{transition:`all ${st.motionDurationMid}`,backgroundColor:st.colorBgTextHover},"&:active":{backgroundColor:st.colorBgTextActive}},"&-active":{fontWeight:st.fontWeightStrong,backgroundColor:st.itemActiveBg,borderColor:st.colorPrimary,a:{color:st.colorPrimary},"&:hover":{borderColor:st.colorPrimaryHover},"&:hover a":{color:st.colorPrimaryHover}}}}},xe=st=>{const{componentCls:ft}=st;return{[ft]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(st)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ft}-total-text`]:{display:"inline-block",height:st.itemSize,marginInlineEnd:st.marginXS,lineHeight:(0,rt.unit)(st.calc(st.itemSize).sub(2).equal()),verticalAlign:"middle"}}),Ie(st)),We(st)),gt(st)),bt(st)),wt(st)),{[`@media only screen and (max-width: ${st.screenLG}px)`]:{[`${ft}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${st.screenSM}px)`]:{[`${ft}-options`]:{display:"none"}}}),[`&${st.componentCls}-rtl`]:{direction:"rtl"}}},Be=st=>{const{componentCls:ft}=st;return{[`${ft}:not(${ft}-disabled)`]:{[`${ft}-item`]:Object.assign({},(0,kt.Qy)(st)),[`${ft}-jump-prev, ${ft}-jump-next`]:{"&:focus-visible":Object.assign({[`${ft}-item-link-icon`]:{opacity:1},[`${ft}-item-ellipsis`]:{opacity:0}},(0,kt.oN)(st))},[`${ft}-prev, ${ft}-next`]:{[`&:focus-visible ${ft}-item-link`]:Object.assign({},(0,kt.oN)(st))}}}},Ye=st=>Object.assign({itemBg:st.colorBgContainer,itemSize:st.controlHeight,itemSizeSM:st.controlHeightSM,itemActiveBg:st.colorBgContainer,itemLinkBg:st.colorBgContainer,itemActiveColorDisabled:st.colorTextDisabled,itemActiveBgDisabled:st.controlItemBgActiveDisabled,itemInputBg:st.colorBgContainer,miniOptionsSizeChangerTop:0},(0,ut.T)(st)),Pe=st=>(0,pt.mergeToken)(st,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:st.calc(st.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:st.calc(st.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:st.calc(st.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:st.calc(st.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:st.marginSM,paginationSlashMarginInlineEnd:st.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ut.e)(st));var Le=(0,Mt.I$)("Pagination",st=>{const ft=Pe(st);return[xe(ft),Be(ft)]},Ye);const pe=st=>{const{componentCls:ft}=st;return{[`${ft}${ft}-bordered${ft}-disabled:not(${ft}-mini)`]:{"&, &:hover":{[`${ft}-item-link`]:{borderColor:st.colorBorder}},"&:focus-visible":{[`${ft}-item-link`]:{borderColor:st.colorBorder}},[`${ft}-item, ${ft}-item-link`]:{backgroundColor:st.colorBgContainerDisabled,borderColor:st.colorBorder,[`&:hover:not(${ft}-item-active)`]:{backgroundColor:st.colorBgContainerDisabled,borderColor:st.colorBorder,a:{color:st.colorTextDisabled}},[`&${ft}-item-active`]:{backgroundColor:st.itemActiveBgDisabled}},[`${ft}-prev, ${ft}-next`]:{"&:hover button":{backgroundColor:st.colorBgContainerDisabled,borderColor:st.colorBorder,color:st.colorTextDisabled},[`${ft}-item-link`]:{backgroundColor:st.colorBgContainerDisabled,borderColor:st.colorBorder}}},[`${ft}${ft}-bordered:not(${ft}-mini)`]:{[`${ft}-prev, ${ft}-next`]:{"&:hover button":{borderColor:st.colorPrimaryHover,backgroundColor:st.itemBg},[`${ft}-item-link`]:{backgroundColor:st.itemLinkBg,borderColor:st.colorBorder},[`&:hover ${ft}-item-link`]:{borderColor:st.colorPrimary,backgroundColor:st.itemBg,color:st.colorPrimary},[`&${ft}-disabled`]:{[`${ft}-item-link`]:{borderColor:st.colorBorder,color:st.colorTextDisabled}}},[`${ft}-item`]:{backgroundColor:st.itemBg,border:`${(0,rt.unit)(st.lineWidth)} ${st.lineType} ${st.colorBorder}`,[`&:hover:not(${ft}-item-active)`]:{borderColor:st.colorPrimary,backgroundColor:st.itemBg,a:{color:st.colorPrimary}},"&-active":{borderColor:st.colorPrimary}}}}};var we=(0,Mt.bk)(["Pagination","bordered"],st=>{const ft=Pe(st);return[pe(ft)]},Ye);function ke(st){return(0,y.useMemo)(()=>typeof st=="boolean"?[st,{}]:st&&typeof st=="object"?[!0,st]:[void 0,void 0],[st])}var Me=function(st,ft){var Ft={};for(var Bt in st)Object.prototype.hasOwnProperty.call(st,Bt)&&ft.indexOf(Bt)<0&&(Ft[Bt]=st[Bt]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qt=0,Bt=Object.getOwnPropertySymbols(st);qt<Bt.length;qt++)ft.indexOf(Bt[qt])<0&&Object.prototype.propertyIsEnumerable.call(st,Bt[qt])&&(Ft[Bt[qt]]=st[Bt[qt]]);return Ft},tt=st=>{const{align:ft,prefixCls:Ft,selectPrefixCls:Bt,className:qt,rootClassName:$t,style:It,size:en,locale:Pt,responsive:cn,showSizeChanger:Sn,selectComponentClass:An,pageSizeOptions:wn}=st,At=Me(st,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:Gt}=(0,Ge.Z)(cn),[,on]=(0,et.ZP)(),{getPrefixCls:vn,direction:Nn,showSizeChanger:Yn,className:Vn,style:ir}=(0,$e.dj)("pagination"),Mn=vn("pagination",Ft),[qn,En,Hn]=Le(Mn),Qn=(0,ht.Z)(en),dr=Qn==="small"||!!(Gt&&!Qn&&cn),[On]=(0,Ue.Z)("Pagination",Qe.Z),$n=Object.assign(Object.assign({},On),Pt),[Kn,yn]=ke(Sn),[Ne,Ve]=ke(Yn),nt=Kn!=null?Kn:Ne,mt=yn!=null?yn:Ve,_t=An||Ke.default,Vt=y.useMemo(()=>wn?wn.map(Nt=>Number(Nt)):void 0,[wn]),Jt=Nt=>{var jt;const{disabled:xt,size:Ot,onSizeChange:yt,"aria-label":Lt,className:Ut,options:bn}=Nt,{className:Tn,onChange:Gn}=mt||{},pn=(jt=bn.find(tn=>String(tn.value)===String(Ot)))===null||jt===void 0?void 0:jt.value;return y.createElement(_t,Object.assign({disabled:xt,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:tn=>tn.parentNode,"aria-label":Lt,options:bn},mt,{value:pn,onChange:(tn,ln)=>{yt==null||yt(tn),Gn==null||Gn(tn,ln)},size:dr?"small":"middle",className:E()(Ut,Tn)}))},Xt=y.useMemo(()=>{const Nt=y.createElement("span",{className:`${Mn}-item-ellipsis`},"\u2022\u2022\u2022"),jt=y.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},Nn==="rtl"?y.createElement(b.Z,null):y.createElement(x.Z,null)),xt=y.createElement("button",{className:`${Mn}-item-link`,type:"button",tabIndex:-1},Nn==="rtl"?y.createElement(x.Z,null):y.createElement(b.Z,null)),Ot=y.createElement("a",{className:`${Mn}-item-link`},y.createElement("div",{className:`${Mn}-item-container`},Nn==="rtl"?y.createElement(ne.Z,{className:`${Mn}-item-link-icon`}):y.createElement(te,{className:`${Mn}-item-link-icon`}),Nt)),yt=y.createElement("a",{className:`${Mn}-item-link`},y.createElement("div",{className:`${Mn}-item-container`},Nn==="rtl"?y.createElement(te,{className:`${Mn}-item-link-icon`}):y.createElement(ne.Z,{className:`${Mn}-item-link-icon`}),Nt));return{prevIcon:jt,nextIcon:xt,jumpPrevIcon:Ot,jumpNextIcon:yt}},[Nn,Mn]),dn=vn("select",Bt),jn=E()({[`${Mn}-${ft}`]:!!ft,[`${Mn}-mini`]:dr,[`${Mn}-rtl`]:Nn==="rtl",[`${Mn}-bordered`]:on.wireframe},Vn,qt,$t,En,Hn),vr=Object.assign(Object.assign({},ir),It);return qn(y.createElement(y.Fragment,null,on.wireframe&&y.createElement(we,{prefixCls:Mn}),y.createElement(ze,Object.assign({},Xt,At,{style:vr,prefixCls:Mn,selectPrefixCls:dn,className:jn,locale:$n,pageSizeOptions:Vt,showSizeChanger:nt,sizeChangerRender:Jt}))))},ot=tt},82326:function(rn,Tt,oe){"use strict";var y=oe(59301),ie=oe(92310),fe=oe.n(ie),de=oe(37463),ue=oe(2738),ae=oe(75030),se=oe(86641),te=oe(45915),ne=oe(82855),x=oe(48755),b=oe(38406),ee=oe(2171),E=oe(83397),re=oe(31756),ce=oe(56553),le=oe(24971),ve=oe(70045),Se=oe(57700),ge=oe(1722),_e=oe(90376),Ce=oe(68525),he=oe(90005),be=function(Fe,Re){var qe={};for(var Je in Fe)Object.prototype.hasOwnProperty.call(Fe,Je)&&Re.indexOf(Je)<0&&(qe[Je]=Fe[Je]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Je=Object.getOwnPropertySymbols(Fe);He<Je.length;He++)Re.indexOf(Je[He])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Je[He])&&(qe[Je[He]]=Fe[Je[He]]);return qe};const Ee="SECRET_COMBOBOX_MODE_DO_NOT_USE",Ae=(Fe,Re)=>{var qe;const{prefixCls:Je,bordered:He,className:ze,rootClassName:Qe,getPopupContainer:$e,popupClassName:ht,dropdownClassName:Ge,listHeight:Ue=256,placement:Ke,listItemHeight:et,size:rt,disabled:Xe,notFoundContent:ut,status:lt,builtinPlacements:kt,dropdownMatchSelectWidth:pt,popupMatchSelectWidth:Mt,direction:wt,style:bt,allowClear:gt,variant:We,dropdownStyle:Ie,transitionName:xe,tagRender:Be,maxCount:Ye,prefix:Pe}=Fe,Le=be(Fe,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:pe,getPrefixCls:we,renderEmpty:ke,direction:Me,virtual:Oe,popupMatchSelectWidth:tt,popupOverflow:ot}=y.useContext(x.E_),st=(0,x.dj)("select"),[,ft]=(0,Se.ZP)(),Ft=et!=null?et:ft==null?void 0:ft.controlHeight,Bt=we("select",Je),qt=we(),$t=wt!=null?wt:Me,{compactSize:It,compactItemClassnames:en}=(0,ve.ri)(Bt,$t),[Pt,cn]=(0,le.Z)("select",We,He),Sn=(0,E.Z)(Bt),[An,wn,At]=(0,_e.Z)(Bt,Sn),Gt=y.useMemo(()=>{const{mode:Jt}=Fe;if(Jt!=="combobox")return Jt===Ee?"combobox":Jt},[Fe.mode]),on=Gt==="multiple"||Gt==="tags",vn=(0,he.Z)(Fe.suffixIcon,Fe.showArrow),Nn=(qe=Mt!=null?Mt:pt)!==null&&qe!==void 0?qe:tt,{status:Yn,hasFeedback:Vn,isFormItemInput:ir,feedbackIcon:Mn}=y.useContext(ce.aM),qn=(0,ne.F)(Yn,lt);let En;ut!==void 0?En=ut:Gt==="combobox"?En=null:En=(ke==null?void 0:ke("Select"))||y.createElement(b.Z,{componentName:"Select"});const{suffixIcon:Hn,itemIcon:Qn,removeIcon:dr,clearIcon:On}=(0,Ce.Z)(Object.assign(Object.assign({},Le),{multiple:on,hasFeedback:Vn,feedbackIcon:Mn,showSuffixIcon:vn,prefixCls:Bt,componentName:"Select"})),$n=gt===!0?{clearIcon:On}:gt,Kn=(0,ue.Z)(Le,["suffixIcon","itemIcon"]),yn=fe()(ht||Ge,{[`${Bt}-dropdown-${$t}`]:$t==="rtl"},Qe,At,Sn,wn),Ne=(0,re.Z)(Jt=>{var Xt;return(Xt=rt!=null?rt:It)!==null&&Xt!==void 0?Xt:Jt}),Ve=y.useContext(ee.Z),nt=Xe!=null?Xe:Ve,mt=fe()({[`${Bt}-lg`]:Ne==="large",[`${Bt}-sm`]:Ne==="small",[`${Bt}-rtl`]:$t==="rtl",[`${Bt}-${Pt}`]:cn,[`${Bt}-in-form-item`]:ir},(0,ne.Z)(Bt,qn,Vn),en,st.className,ze,Qe,At,Sn,wn),_t=y.useMemo(()=>Ke!==void 0?Ke:$t==="rtl"?"bottomRight":"bottomLeft",[Ke,$t]),[Vt]=(0,ae.Cn)("SelectLike",Ie==null?void 0:Ie.zIndex);return An(y.createElement(de.ZP,Object.assign({ref:Re,virtual:Oe,showSearch:st.showSearch},Kn,{style:Object.assign(Object.assign({},st.style),bt),dropdownMatchSelectWidth:Nn,transitionName:(0,se.m)(qt,"slide-up",xe),builtinPlacements:(0,ge.Z)(kt,ot),listHeight:Ue,listItemHeight:Ft,mode:Gt,prefixCls:Bt,placement:_t,direction:$t,prefix:Pe,suffixIcon:Hn,menuItemSelectedIcon:Qn,removeIcon:dr,allowClear:$n,notFoundContent:En,className:mt,getPopupContainer:$e||pe,dropdownClassName:yn,disabled:nt,dropdownStyle:Object.assign(Object.assign({},Ie),{zIndex:Vt}),maxCount:on?Ye:void 0,tagRender:on?Be:void 0})))},De=y.forwardRef(Ae),je=(0,te.Z)(De,"dropdownAlign");De.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ee,De.Option=de.Wx,De.OptGroup=de.Xo,De._InternalPanelDoNotUseOrYouWillBeFired=je,Tt.default=De},1722:function(rn,Tt){"use strict";const oe=ie=>{const de={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:ie==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},de),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},de),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},de),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},de),{points:["br","tr"],offset:[0,-4]})}};function y(ie,fe){return ie||oe(fe)}Tt.Z=y},90376:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return Je}});var y=oe(63356),ie=oe(56119),fe=oe(16931),de=oe(51636),ue=oe(46e3),ae=oe(93873);const se=He=>{const{optionHeight:ze,optionFontSize:Qe,optionLineHeight:$e,optionPadding:ht}=He;return{position:"relative",display:"block",minHeight:ze,padding:ht,color:He.colorText,fontWeight:"normal",fontSize:Qe,lineHeight:$e,boxSizing:"border-box"}};var ne=He=>{const{antCls:ze,componentCls:Qe}=He,$e=`${Qe}-item`,ht=`&${ze}-slide-up-enter${ze}-slide-up-enter-active`,Ge=`&${ze}-slide-up-appear${ze}-slide-up-appear-active`,Ue=`&${ze}-slide-up-leave${ze}-slide-up-leave-active`,Ke=`${Qe}-dropdown-placement-`,et=`${$e}-option-selected`;return[{[`${Qe}-dropdown`]:Object.assign(Object.assign({},(0,y.Wf)(He)),{position:"absolute",top:-9999,zIndex:He.zIndexPopup,boxSizing:"border-box",padding:He.paddingXXS,overflow:"hidden",fontSize:He.fontSize,fontVariant:"initial",backgroundColor:He.colorBgElevated,borderRadius:He.borderRadiusLG,outline:"none",boxShadow:He.boxShadowSecondary,[`
|
|
|
${ht}${Ke}bottomLeft,
|
|
|
${Ge}${Ke}bottomLeft
|
|
|
`]:{animationName:ue.fJ},[`
|
|
|
${ht}${Ke}topLeft,
|
|
|
${Ge}${Ke}topLeft,
|
|
|
${ht}${Ke}topRight,
|
|
|
${Ge}${Ke}topRight
|
|
|
`]:{animationName:ue.Qt},[`${Ue}${Ke}bottomLeft`]:{animationName:ue.Uw},[`
|
|
|
${Ue}${Ke}topLeft,
|
|
|
${Ue}${Ke}topRight
|
|
|
`]:{animationName:ue.ly},"&-hidden":{display:"none"},[$e]:Object.assign(Object.assign({},se(He)),{cursor:"pointer",transition:`background ${He.motionDurationSlow} ease`,borderRadius:He.borderRadiusSM,"&-group":{color:He.colorTextDescription,fontSize:He.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},y.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${$e}-option-disabled)`]:{backgroundColor:He.optionActiveBg},[`&-selected:not(${$e}-option-disabled)`]:{color:He.optionSelectedColor,fontWeight:He.optionSelectedFontWeight,backgroundColor:He.optionSelectedBg,[`${$e}-option-state`]:{color:He.colorPrimary}},"&-disabled":{[`&${$e}-option-selected`]:{backgroundColor:He.colorBgContainerDisabled},color:He.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:He.calc(He.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},se(He)),{color:He.colorTextDisabled})}),[`${et}:has(+ ${et})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${et}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ue.oN)(He,"slide-up"),(0,ue.oN)(He,"slide-down"),(0,ae.Fm)(He,"move-up"),(0,ae.Fm)(He,"move-down")]},x=oe(26743),b=oe(36237);function ee(He,ze){const{componentCls:Qe,inputPaddingHorizontalBase:$e,borderRadius:ht}=He,Ge=He.calc(He.controlHeight).sub(He.calc(He.lineWidth).mul(2)).equal(),Ue=ze?`${Qe}-${ze}`:"";return{[`${Qe}-single${Ue}`]:{fontSize:He.fontSize,height:He.controlHeight,[`${Qe}-selector`]:Object.assign(Object.assign({},(0,y.Wf)(He,!0)),{display:"flex",borderRadius:ht,flex:"1 1 auto",[`${Qe}-selection-wrap:after`]:{lineHeight:(0,b.unit)(Ge)},[`${Qe}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${Qe}-selection-item,
|
|
|
${Qe}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,b.unit)(Ge),transition:`all ${He.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Qe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Qe}-selection-item:empty:after`,`${Qe}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Qe}-show-arrow ${Qe}-selection-item,
|
|
|
&${Qe}-show-arrow ${Qe}-selection-search,
|
|
|
&${Qe}-show-arrow ${Qe}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:He.showArrowPaddingInlineEnd},[`&${Qe}-open ${Qe}-selection-item`]:{color:He.colorTextPlaceholder},[`&:not(${Qe}-customize-input)`]:{[`${Qe}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,b.unit)($e)}`,[`${Qe}-selection-search-input`]:{height:Ge,fontSize:He.fontSize},"&:after":{lineHeight:(0,b.unit)(Ge)}}},[`&${Qe}-customize-input`]:{[`${Qe}-selector`]:{"&:after":{display:"none"},[`${Qe}-selection-search`]:{position:"static",width:"100%"},[`${Qe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,b.unit)($e)}`,"&:after":{display:"none"}}}}}}}function E(He){const{componentCls:ze}=He,Qe=He.calc(He.controlPaddingHorizontalSM).sub(He.lineWidth).equal();return[ee(He),ee((0,de.mergeToken)(He,{controlHeight:He.controlHeightSM,borderRadius:He.borderRadiusSM}),"sm"),{[`${ze}-single${ze}-sm`]:{[`&:not(${ze}-customize-input)`]:{[`${ze}-selector`]:{padding:`0 ${(0,b.unit)(Qe)}`},[`&${ze}-show-arrow ${ze}-selection-search`]:{insetInlineEnd:He.calc(Qe).add(He.calc(He.fontSize).mul(1.5)).equal()},[`
|
|
|
&${ze}-show-arrow ${ze}-selection-item,
|
|
|
&${ze}-show-arrow ${ze}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:He.calc(He.fontSize).mul(1.5).equal()}}}},ee((0,de.mergeToken)(He,{controlHeight:He.singleItemHeightLG,fontSize:He.fontSizeLG,borderRadius:He.borderRadiusLG}),"lg")]}const re=He=>{const{fontSize:ze,lineHeight:Qe,lineWidth:$e,controlHeight:ht,controlHeightSM:Ge,controlHeightLG:Ue,paddingXXS:Ke,controlPaddingHorizontal:et,zIndexPopupBase:rt,colorText:Xe,fontWeightStrong:ut,controlItemBgActive:lt,controlItemBgHover:kt,colorBgContainer:pt,colorFillSecondary:Mt,colorBgContainerDisabled:wt,colorTextDisabled:bt,colorPrimaryHover:gt,colorPrimary:We,controlOutline:Ie}=He,xe=Ke*2,Be=$e*2,Ye=Math.min(ht-xe,ht-Be),Pe=Math.min(Ge-xe,Ge-Be),Le=Math.min(Ue-xe,Ue-Be);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ke/2),zIndexPopup:rt+50,optionSelectedColor:Xe,optionSelectedFontWeight:ut,optionSelectedBg:lt,optionActiveBg:kt,optionPadding:`${(ht-ze*Qe)/2}px ${et}px`,optionFontSize:ze,optionLineHeight:Qe,optionHeight:ht,selectorBg:pt,clearBg:pt,singleItemHeightLG:Ue,multipleItemBg:Mt,multipleItemBorderColor:"transparent",multipleItemHeight:Ye,multipleItemHeightSM:Pe,multipleItemHeightLG:Le,multipleSelectorBgDisabled:wt,multipleItemColorDisabled:bt,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(He.fontSize*1.25),hoverBorderColor:gt,activeBorderColor:We,activeOutlineColor:Ie,selectAffixPadding:Ke}},ce=(He,ze)=>{const{componentCls:Qe,antCls:$e,controlOutlineWidth:ht}=He;return{[`&:not(${Qe}-customize-input) ${Qe}-selector`]:{border:`${(0,b.unit)(He.lineWidth)} ${He.lineType} ${ze.borderColor}`,background:He.selectorBg},[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${$e}-pagination-size-changer)`]:{[`&:hover ${Qe}-selector`]:{borderColor:ze.hoverBorderHover},[`${Qe}-focused& ${Qe}-selector`]:{borderColor:ze.activeBorderColor,boxShadow:`0 0 0 ${(0,b.unit)(ht)} ${ze.activeOutlineColor}`,outline:0},[`${Qe}-prefix`]:{color:ze.color}}}},le=(He,ze)=>({[`&${He.componentCls}-status-${ze.status}`]:Object.assign({},ce(He,ze))}),ve=He=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ce(He,{borderColor:He.colorBorder,hoverBorderHover:He.hoverBorderColor,activeBorderColor:He.activeBorderColor,activeOutlineColor:He.activeOutlineColor,color:He.colorText})),le(He,{status:"error",borderColor:He.colorError,hoverBorderHover:He.colorErrorHover,activeBorderColor:He.colorError,activeOutlineColor:He.colorErrorOutline,color:He.colorError})),le(He,{status:"warning",borderColor:He.colorWarning,hoverBorderHover:He.colorWarningHover,activeBorderColor:He.colorWarning,activeOutlineColor:He.colorWarningOutline,color:He.colorWarning})),{[`&${He.componentCls}-disabled`]:{[`&:not(${He.componentCls}-customize-input) ${He.componentCls}-selector`]:{background:He.colorBgContainerDisabled,color:He.colorTextDisabled}},[`&${He.componentCls}-multiple ${He.componentCls}-selection-item`]:{background:He.multipleItemBg,border:`${(0,b.unit)(He.lineWidth)} ${He.lineType} ${He.multipleItemBorderColor}`}})}),Se=(He,ze)=>{const{componentCls:Qe,antCls:$e}=He;return{[`&:not(${Qe}-customize-input) ${Qe}-selector`]:{background:ze.bg,border:`${(0,b.unit)(He.lineWidth)} ${He.lineType} transparent`,color:ze.color},[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${$e}-pagination-size-changer)`]:{[`&:hover ${Qe}-selector`]:{background:ze.hoverBg},[`${Qe}-focused& ${Qe}-selector`]:{background:He.selectorBg,borderColor:ze.activeBorderColor,outline:0}}}},ge=(He,ze)=>({[`&${He.componentCls}-status-${ze.status}`]:Object.assign({},Se(He,ze))}),_e=He=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Se(He,{bg:He.colorFillTertiary,hoverBg:He.colorFillSecondary,activeBorderColor:He.activeBorderColor,color:He.colorText})),ge(He,{status:"error",bg:He.colorErrorBg,hoverBg:He.colorErrorBgHover,activeBorderColor:He.colorError,color:He.colorError})),ge(He,{status:"warning",bg:He.colorWarningBg,hoverBg:He.colorWarningBgHover,activeBorderColor:He.colorWarning,color:He.colorWarning})),{[`&${He.componentCls}-disabled`]:{[`&:not(${He.componentCls}-customize-input) ${He.componentCls}-selector`]:{borderColor:He.colorBorder,background:He.colorBgContainerDisabled,color:He.colorTextDisabled}},[`&${He.componentCls}-multiple ${He.componentCls}-selection-item`]:{background:He.colorBgContainer,border:`${(0,b.unit)(He.lineWidth)} ${He.lineType} ${He.colorSplit}`}})}),Ce=He=>({"&-borderless":{[`${He.componentCls}-selector`]:{background:"transparent",border:`${(0,b.unit)(He.lineWidth)} ${He.lineType} transparent`},[`&${He.componentCls}-disabled`]:{[`&:not(${He.componentCls}-customize-input) ${He.componentCls}-selector`]:{color:He.colorTextDisabled}},[`&${He.componentCls}-multiple ${He.componentCls}-selection-item`]:{background:He.multipleItemBg,border:`${(0,b.unit)(He.lineWidth)} ${He.lineType} ${He.multipleItemBorderColor}`},[`&${He.componentCls}-status-error`]:{[`${He.componentCls}-prefix, ${He.componentCls}-selection-item`]:{color:He.colorError}},[`&${He.componentCls}-status-warning`]:{[`${He.componentCls}-prefix, ${He.componentCls}-selection-item`]:{color:He.colorWarning}}}}),he=(He,ze)=>{const{componentCls:Qe,antCls:$e}=He;return{[`&:not(${Qe}-customize-input) ${Qe}-selector`]:{borderWidth:`0 0 ${(0,b.unit)(He.lineWidth)} 0`,borderStyle:`none none ${He.lineType} none`,borderColor:ze.borderColor,background:He.selectorBg,borderRadius:0},[`&:not(${Qe}-disabled):not(${Qe}-customize-input):not(${$e}-pagination-size-changer)`]:{[`&:hover ${Qe}-selector`]:{borderColor:ze.hoverBorderHover},[`${Qe}-focused& ${Qe}-selector`]:{borderColor:ze.activeBorderColor,outline:0},[`${Qe}-prefix`]:{color:ze.color}}}},be=(He,ze)=>({[`&${He.componentCls}-status-${ze.status}`]:Object.assign({},he(He,ze))}),Ee=He=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},he(He,{borderColor:He.colorBorder,hoverBorderHover:He.hoverBorderColor,activeBorderColor:He.activeBorderColor,activeOutlineColor:He.activeOutlineColor,color:He.colorText})),be(He,{status:"error",borderColor:He.colorError,hoverBorderHover:He.colorErrorHover,activeBorderColor:He.colorError,activeOutlineColor:He.colorErrorOutline,color:He.colorError})),be(He,{status:"warning",borderColor:He.colorWarning,hoverBorderHover:He.colorWarningHover,activeBorderColor:He.colorWarning,activeOutlineColor:He.colorWarningOutline,color:He.colorWarning})),{[`&${He.componentCls}-disabled`]:{[`&:not(${He.componentCls}-customize-input) ${He.componentCls}-selector`]:{color:He.colorTextDisabled}},[`&${He.componentCls}-multiple ${He.componentCls}-selection-item`]:{background:He.multipleItemBg,border:`${(0,b.unit)(He.lineWidth)} ${He.lineType} ${He.multipleItemBorderColor}`}})});var De=He=>({[He.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ve(He)),_e(He)),Ce(He)),Ee(He))});const je=He=>{const{componentCls:ze}=He;return{position:"relative",transition:`all ${He.motionDurationMid} ${He.motionEaseInOut}`,input:{cursor:"pointer"},[`${ze}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${ze}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Fe=He=>{const{componentCls:ze}=He;return{[`${ze}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Re=He=>{const{antCls:ze,componentCls:Qe,inputPaddingHorizontalBase:$e,iconCls:ht}=He;return{[Qe]:Object.assign(Object.assign({},(0,y.Wf)(He)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Qe}-customize-input) ${Qe}-selector`]:Object.assign(Object.assign({},je(He)),Fe(He)),[`${Qe}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},y.vS),{[`> ${ze}-typography`]:{display:"inline"}}),[`${Qe}-selection-placeholder`]:Object.assign(Object.assign({},y.vS),{flex:1,color:He.colorTextPlaceholder,pointerEvents:"none"}),[`${Qe}-arrow`]:Object.assign(Object.assign({},(0,y.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,height:He.fontSizeIcon,marginTop:He.calc(He.fontSizeIcon).mul(-1).div(2).equal(),color:He.colorTextQuaternary,fontSize:He.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${He.motionDurationSlow} ease`,[ht]:{verticalAlign:"top",transition:`transform ${He.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Qe}-suffix)`]:{pointerEvents:"auto"}},[`${Qe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Qe}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Qe}-prefix`]:{flex:"none",marginInlineEnd:He.selectAffixPadding},[`${Qe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:$e,zIndex:1,display:"inline-block",width:He.fontSizeIcon,height:He.fontSizeIcon,marginTop:He.calc(He.fontSizeIcon).mul(-1).div(2).equal(),color:He.colorTextQuaternary,fontSize:He.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${He.motionDurationMid} ease, opacity ${He.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:He.colorTextTertiary}},[`&:hover ${Qe}-clear`]:{opacity:1,background:He.colorBgBase,borderRadius:"50%"}}),[`${Qe}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Qe}-has-feedback`]:{[`${Qe}-clear`]:{insetInlineEnd:He.calc($e).add(He.fontSize).add(He.paddingXS).equal()}}}}}},qe=He=>{const{componentCls:ze}=He;return[{[ze]:{[`&${ze}-in-form-item`]:{width:"100%"}}},Re(He),E(He),(0,x.ZP)(He),ne(He),{[`${ze}-rtl`]:{direction:"rtl"}},(0,ie.c)(He,{borderElCls:`${ze}-selector`,focusElCls:`${ze}-focused`})]};var Je=(0,fe.I$)("Select",(He,ze)=>{let{rootPrefixCls:Qe}=ze;const $e=(0,de.mergeToken)(He,{rootPrefixCls:Qe,inputPaddingHorizontalBase:He.calc(He.paddingSM).sub(1).equal(),multipleSelectItemHeight:He.multipleItemHeight,selectHeight:He.controlHeight});return[qe($e),De($e)]},re,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(rn,Tt,oe){"use strict";oe.d(Tt,{_z:function(){return ae},gp:function(){return de}});var y=oe(36237),ie=oe(63356),fe=oe(51636);const de=x=>{const{multipleSelectItemHeight:b,paddingXXS:ee,lineWidth:E,INTERNAL_FIXED_ITEM_MARGIN:re}=x,ce=x.max(x.calc(ee).sub(E).equal(),0),le=x.max(x.calc(ce).sub(re).equal(),0);return{basePadding:ce,containerPadding:le,itemHeight:(0,y.unit)(b),itemLineHeight:(0,y.unit)(x.calc(b).sub(x.calc(x.lineWidth).mul(2)).equal())}},ue=x=>{const{multipleSelectItemHeight:b,selectHeight:ee,lineWidth:E}=x;return x.calc(ee).sub(b).div(2).sub(E).equal()},ae=x=>{const{componentCls:b,iconCls:ee,borderRadiusSM:E,motionDurationSlow:re,paddingXS:ce,multipleItemColorDisabled:le,multipleItemBorderColorDisabled:ve,colorIcon:Se,colorIconHover:ge,INTERNAL_FIXED_ITEM_MARGIN:_e}=x;return{[`${b}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${b}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:_e,borderRadius:E,cursor:"default",transition:`font-size ${re}, line-height ${re}, height ${re}`,marginInlineEnd:x.calc(_e).mul(2).equal(),paddingInlineStart:ce,paddingInlineEnd:x.calc(ce).div(2).equal(),[`${b}-disabled&`]:{color:le,borderColor:ve,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:x.calc(ce).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ie.Ro)()),{display:"inline-flex",alignItems:"center",color:Se,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ee}`]:{verticalAlign:"-0.2em"},"&:hover":{color:ge}})}}}},se=(x,b)=>{const{componentCls:ee,INTERNAL_FIXED_ITEM_MARGIN:E}=x,re=`${ee}-selection-overflow`,ce=x.multipleSelectItemHeight,le=ue(x),ve=b?`${ee}-${b}`:"",Se=de(x);return{[`${ee}-multiple${ve}`]:Object.assign(Object.assign({},ae(x)),{[`${ee}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:Se.basePadding,paddingBlock:Se.containerPadding,borderRadius:x.borderRadius,[`${ee}-disabled&`]:{background:x.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,y.unit)(E)} 0`,lineHeight:(0,y.unit)(ce),visibility:"hidden",content:'"\\a0"'}},[`${ee}-selection-item`]:{height:Se.itemHeight,lineHeight:(0,y.unit)(Se.itemLineHeight)},[`${ee}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,y.unit)(ce),marginBlock:E}},[`${ee}-prefix`]:{marginInlineStart:x.calc(x.inputPaddingHorizontalBase).sub(Se.basePadding).equal()},[`${re}-item + ${re}-item,
|
|
|
${ee}-prefix + ${ee}-selection-wrap
|
|
|
`]:{[`${ee}-selection-search`]:{marginInlineStart:0},[`${ee}-selection-placeholder`]:{insetInlineStart:0}},[`${re}-item-suffix`]:{minHeight:Se.itemHeight,marginBlock:E},[`${ee}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:x.calc(x.inputPaddingHorizontalBase).sub(le).equal(),"\n &-input,\n &-mirror\n ":{height:ce,fontFamily:x.fontFamily,lineHeight:(0,y.unit)(ce),transition:`all ${x.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ee}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:x.calc(x.inputPaddingHorizontalBase).sub(Se.basePadding).equal(),insetInlineEnd:x.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${x.motionDurationSlow}`}})}};function te(x,b){const{componentCls:ee}=x,E=b?`${ee}-${b}`:"",re={[`${ee}-multiple${E}`]:{fontSize:x.fontSize,[`${ee}-selector`]:{[`${ee}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${ee}-show-arrow ${ee}-selector,
|
|
|
&${ee}-allow-clear ${ee}-selector
|
|
|
`]:{paddingInlineEnd:x.calc(x.fontSizeIcon).add(x.controlPaddingHorizontal).equal()}}};return[se(x,b),re]}const ne=x=>{const{componentCls:b}=x,ee=(0,fe.mergeToken)(x,{selectHeight:x.controlHeightSM,multipleSelectItemHeight:x.multipleItemHeightSM,borderRadius:x.borderRadiusSM,borderRadiusSM:x.borderRadiusXS}),E=(0,fe.mergeToken)(x,{fontSize:x.fontSizeLG,selectHeight:x.controlHeightLG,multipleSelectItemHeight:x.multipleItemHeightLG,borderRadius:x.borderRadiusLG,borderRadiusSM:x.borderRadius});return[te(x),te(ee,"sm"),{[`${b}-multiple${b}-sm`]:{[`${b}-selection-placeholder`]:{insetInline:x.calc(x.controlPaddingHorizontalSM).sub(x.lineWidth).equal()},[`${b}-selection-search`]:{marginInlineStart:2}}},te(E,"lg")]};Tt.ZP=ne},68525:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});var y=oe(59301),ie=oe(40001),fe=oe(19248),de=oe(99267),ue=oe(84105),ae=oe(58617),se=oe(47472);function te(ne){let{suffixIcon:x,clearIcon:b,menuItemSelectedIcon:ee,removeIcon:E,loading:re,multiple:ce,hasFeedback:le,prefixCls:ve,showSuffixIcon:Se,feedbackIcon:ge,showArrow:_e,componentName:Ce}=ne;const he=b!=null?b:y.createElement(fe.Z,null),be=je=>x===null&&!le&&!_e?null:y.createElement(y.Fragment,null,Se!==!1&&je,le&&ge);let Ee=null;if(x!==void 0)Ee=be(x);else if(re)Ee=be(y.createElement(ae.Z,{spin:!0}));else{const je=`${ve}-suffix`;Ee=Fe=>{let{open:Re,showSearch:qe}=Fe;return be(Re&&qe?y.createElement(se.Z,{className:je}):y.createElement(ue.Z,{className:je}))}}let Ae=null;ee!==void 0?Ae=ee:ce?Ae=y.createElement(ie.Z,null):Ae=null;let De=null;return E!==void 0?De=E:De=y.createElement(de.Z,null),{clearIcon:he,suffixIcon:Ee,itemIcon:Ae,removeIcon:De}}},90005:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return y}});function y(ie,fe){return fe!==void 0?fe:ie!==null}},11938:function(rn,Tt,oe){"use strict";oe.d(Tt,{default:function(){return Fe}});var y=oe(59301),ie=oe(40192),fe=oe(22703),de=oe(92310),ue=oe.n(de),ae=oe(26112),se=oe(48755),te=oe(458),x=Re=>{const{value:qe,formatter:Je,precision:He,decimalSeparator:ze,groupSeparator:Qe="",prefixCls:$e}=Re;let ht;if(typeof Je=="function")ht=Je(qe);else{const Ge=String(qe),Ue=Ge.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ue||Ge==="-")ht=Ge;else{const Ke=Ue[1];let et=Ue[2]||"0",rt=Ue[4]||"";et=et.replace(/\B(?=(\d{3})+(?!\d))/g,Qe),typeof He=="number"&&(rt=rt.padEnd(He,"0").slice(0,He>0?He:0)),rt&&(rt=`${ze}${rt}`),ht=[y.createElement("span",{key:"int",className:`${$e}-content-value-int`},Ke,et),rt&&y.createElement("span",{key:"decimal",className:`${$e}-content-value-decimal`},rt)]}}return y.createElement("span",{className:`${$e}-content-value`},ht)},b=oe(63356),ee=oe(16931),E=oe(51636);const re=Re=>{const{componentCls:qe,marginXXS:Je,padding:He,colorTextDescription:ze,titleFontSize:Qe,colorTextHeading:$e,contentFontSize:ht,fontFamily:Ge}=Re;return{[qe]:Object.assign(Object.assign({},(0,b.Wf)(Re)),{[`${qe}-title`]:{marginBottom:Je,color:ze,fontSize:Qe},[`${qe}-skeleton`]:{paddingTop:He},[`${qe}-content`]:{color:$e,fontSize:ht,fontFamily:Ge,[`${qe}-content-value`]:{display:"inline-block",direction:"ltr"},[`${qe}-content-prefix, ${qe}-content-suffix`]:{display:"inline-block"},[`${qe}-content-prefix`]:{marginInlineEnd:Je},[`${qe}-content-suffix`]:{marginInlineStart:Je}}})}},ce=Re=>{const{fontSizeHeading3:qe,fontSize:Je}=Re;return{titleFontSize:Je,contentFontSize:qe}};var le=(0,ee.I$)("Statistic",Re=>{const qe=(0,E.mergeToken)(Re,{});return[re(qe)]},ce),ve=function(Re,qe){var Je={};for(var He in Re)Object.prototype.hasOwnProperty.call(Re,He)&&qe.indexOf(He)<0&&(Je[He]=Re[He]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,He=Object.getOwnPropertySymbols(Re);ze<He.length;ze++)qe.indexOf(He[ze])<0&&Object.prototype.propertyIsEnumerable.call(Re,He[ze])&&(Je[He[ze]]=Re[He[ze]]);return Je},ge=Re=>{const{prefixCls:qe,className:Je,rootClassName:He,style:ze,valueStyle:Qe,value:$e=0,title:ht,valueRender:Ge,prefix:Ue,suffix:Ke,loading:et=!1,formatter:rt,precision:Xe,decimalSeparator:ut=".",groupSeparator:lt=",",onMouseEnter:kt,onMouseLeave:pt}=Re,Mt=ve(Re,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:wt,direction:bt,className:gt,style:We}=(0,se.dj)("statistic"),Ie=wt("statistic",qe),[xe,Be,Ye]=le(Ie),Pe=y.createElement(x,{decimalSeparator:ut,groupSeparator:lt,prefixCls:Ie,formatter:rt,precision:Xe,value:$e}),Le=ue()(Ie,{[`${Ie}-rtl`]:bt==="rtl"},gt,Je,He,Be,Ye),pe=(0,ae.Z)(Mt,{aria:!0,data:!0});return xe(y.createElement("div",Object.assign({},pe,{className:Le,style:Object.assign(Object.assign({},We),ze),onMouseEnter:kt,onMouseLeave:pt}),ht&&y.createElement("div",{className:`${Ie}-title`},ht),y.createElement(te.Z,{paragraph:!1,loading:et,className:`${Ie}-skeleton`},y.createElement("div",{style:Qe,className:`${Ie}-content`},Ue&&y.createElement("span",{className:`${Ie}-content-prefix`},Ue),Ge?Ge(Pe):Pe,Ke&&y.createElement("span",{className:`${Ie}-content-suffix`},Ke)))))};const _e=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Ce(Re,qe){let Je=Re;const He=/\[[^\]]*]/g,ze=(qe.match(He)||[]).map(Ge=>Ge.slice(1,-1)),Qe=qe.replace(He,"[]"),$e=_e.reduce((Ge,Ue)=>{let[Ke,et]=Ue;if(Ge.includes(Ke)){const rt=Math.floor(Je/et);return Je-=rt*et,Ge.replace(new RegExp(`${Ke}+`,"g"),Xe=>{const ut=Xe.length;return rt.toString().padStart(ut,"0")})}return Ge},Qe);let ht=0;return $e.replace(He,()=>{const Ge=ze[ht];return ht+=1,Ge})}function he(Re,qe){const{format:Je=""}=qe,He=new Date(Re).getTime(),ze=Date.now(),Qe=Math.max(He-ze,0);return Ce(Qe,Je)}var be=function(Re,qe){var Je={};for(var He in Re)Object.prototype.hasOwnProperty.call(Re,He)&&qe.indexOf(He)<0&&(Je[He]=Re[He]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,He=Object.getOwnPropertySymbols(Re);ze<He.length;ze++)qe.indexOf(He[ze])<0&&Object.prototype.propertyIsEnumerable.call(Re,He[ze])&&(Je[He[ze]]=Re[He[ze]]);return Je};const Ee=1e3/30;function Ae(Re){return new Date(Re).getTime()}const De=Re=>{const{value:qe,format:Je="HH:mm:ss",onChange:He,onFinish:ze}=Re,Qe=be(Re,["value","format","onChange","onFinish"]),$e=(0,ie.Z)(),ht=y.useRef(null),Ge=()=>{ze==null||ze(),ht.current&&(clearInterval(ht.current),ht.current=null)},Ue=()=>{const rt=Ae(qe);rt>=Date.now()&&(ht.current=setInterval(()=>{$e(),He==null||He(rt-Date.now()),rt<Date.now()&&Ge()},Ee))};y.useEffect(()=>(Ue(),()=>{ht.current&&(clearInterval(ht.current),ht.current=null)}),[qe]);const Ke=(rt,Xe)=>he(rt,Object.assign(Object.assign({},Xe),{format:Je})),et=rt=>(0,fe.Tm)(rt,{title:void 0});return y.createElement(ge,Object.assign({},Qe,{value:qe,valueRender:et,formatter:Ke}))};var je=y.memo(De);ge.Countdown=je;var Fe=ge},58755:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return ze}});var y=oe(59301),ie=oe(58617),fe=oe(92310),de=oe.n(fe),ue=oe(54476),ae=oe(20068),se=oe(42978),te=oe(75931),ne=oe(18929),x=oe(10228),b=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ee=y.forwardRef(function(Qe,$e){var ht,Ge=Qe.prefixCls,Ue=Ge===void 0?"rc-switch":Ge,Ke=Qe.className,et=Qe.checked,rt=Qe.defaultChecked,Xe=Qe.disabled,ut=Qe.loadingIcon,lt=Qe.checkedChildren,kt=Qe.unCheckedChildren,pt=Qe.onClick,Mt=Qe.onChange,wt=Qe.onKeyDown,bt=(0,te.Z)(Qe,b),gt=(0,ne.Z)(!1,{value:et,defaultValue:rt}),We=(0,se.Z)(gt,2),Ie=We[0],xe=We[1];function Be(pe,we){var ke=Ie;return Xe||(ke=pe,xe(ke),Mt==null||Mt(ke,we)),ke}function Ye(pe){pe.which===x.Z.LEFT?Be(!1,pe):pe.which===x.Z.RIGHT&&Be(!0,pe),wt==null||wt(pe)}function Pe(pe){var we=Be(!Ie,pe);pt==null||pt(we,pe)}var Le=de()(Ue,Ke,(ht={},(0,ae.Z)(ht,"".concat(Ue,"-checked"),Ie),(0,ae.Z)(ht,"".concat(Ue,"-disabled"),Xe),ht));return y.createElement("button",(0,ue.Z)({},bt,{type:"button",role:"switch","aria-checked":Ie,disabled:Xe,className:Le,ref:$e,onKeyDown:Ye,onClick:Pe}),ut,y.createElement("span",{className:"".concat(Ue,"-inner")},y.createElement("span",{className:"".concat(Ue,"-inner-checked")},lt),y.createElement("span",{className:"".concat(Ue,"-inner-unchecked")},kt)))});ee.displayName="Switch";var E=ee,re=oe(12919),ce=oe(48755),le=oe(2171),ve=oe(31756),Se=oe(36237),ge=oe(17835),_e=oe(63356),Ce=oe(16931),he=oe(51636);const be=Qe=>{const{componentCls:$e,trackHeightSM:ht,trackPadding:Ge,trackMinWidthSM:Ue,innerMinMarginSM:Ke,innerMaxMarginSM:et,handleSizeSM:rt,calc:Xe}=Qe,ut=`${$e}-inner`,lt=(0,Se.unit)(Xe(rt).add(Xe(Ge).mul(2)).equal()),kt=(0,Se.unit)(Xe(et).mul(2).equal());return{[$e]:{[`&${$e}-small`]:{minWidth:Ue,height:ht,lineHeight:(0,Se.unit)(ht),[`${$e}-inner`]:{paddingInlineStart:et,paddingInlineEnd:Ke,[`${ut}-checked, ${ut}-unchecked`]:{minHeight:ht},[`${ut}-checked`]:{marginInlineStart:`calc(-100% + ${lt} - ${kt})`,marginInlineEnd:`calc(100% - ${lt} + ${kt})`},[`${ut}-unchecked`]:{marginTop:Xe(ht).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${$e}-handle`]:{width:rt,height:rt},[`${$e}-loading-icon`]:{top:Xe(Xe(rt).sub(Qe.switchLoadingIconSize)).div(2).equal(),fontSize:Qe.switchLoadingIconSize},[`&${$e}-checked`]:{[`${$e}-inner`]:{paddingInlineStart:Ke,paddingInlineEnd:et,[`${ut}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ut}-unchecked`]:{marginInlineStart:`calc(100% - ${lt} + ${kt})`,marginInlineEnd:`calc(-100% + ${lt} - ${kt})`}},[`${$e}-handle`]:{insetInlineStart:`calc(100% - ${(0,Se.unit)(Xe(rt).add(Ge).equal())})`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${ut}`]:{[`${ut}-unchecked`]:{marginInlineStart:Xe(Qe.marginXXS).div(2).equal(),marginInlineEnd:Xe(Qe.marginXXS).mul(-1).div(2).equal()}},[`&${$e}-checked ${ut}`]:{[`${ut}-checked`]:{marginInlineStart:Xe(Qe.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Xe(Qe.marginXXS).div(2).equal()}}}}}}},Ee=Qe=>{const{componentCls:$e,handleSize:ht,calc:Ge}=Qe;return{[$e]:{[`${$e}-loading-icon${Qe.iconCls}`]:{position:"relative",top:Ge(Ge(ht).sub(Qe.fontSize)).div(2).equal(),color:Qe.switchLoadingIconColor,verticalAlign:"top"},[`&${$e}-checked ${$e}-loading-icon`]:{color:Qe.switchColor}}}},Ae=Qe=>{const{componentCls:$e,trackPadding:ht,handleBg:Ge,handleShadow:Ue,handleSize:Ke,calc:et}=Qe,rt=`${$e}-handle`;return{[$e]:{[rt]:{position:"absolute",top:ht,insetInlineStart:ht,width:Ke,height:Ke,transition:`all ${Qe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ge,borderRadius:et(Ke).div(2).equal(),boxShadow:Ue,transition:`all ${Qe.switchDuration} ease-in-out`,content:'""'}},[`&${$e}-checked ${rt}`]:{insetInlineStart:`calc(100% - ${(0,Se.unit)(et(Ke).add(ht).equal())})`},[`&:not(${$e}-disabled):active`]:{[`${rt}::before`]:{insetInlineEnd:Qe.switchHandleActiveInset,insetInlineStart:0},[`&${$e}-checked ${rt}::before`]:{insetInlineEnd:0,insetInlineStart:Qe.switchHandleActiveInset}}}}},De=Qe=>{const{componentCls:$e,trackHeight:ht,trackPadding:Ge,innerMinMargin:Ue,innerMaxMargin:Ke,handleSize:et,calc:rt}=Qe,Xe=`${$e}-inner`,ut=(0,Se.unit)(rt(et).add(rt(Ge).mul(2)).equal()),lt=(0,Se.unit)(rt(Ke).mul(2).equal());return{[$e]:{[Xe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ke,paddingInlineEnd:Ue,transition:`padding-inline-start ${Qe.switchDuration} ease-in-out, padding-inline-end ${Qe.switchDuration} ease-in-out`,[`${Xe}-checked, ${Xe}-unchecked`]:{display:"block",color:Qe.colorTextLightSolid,fontSize:Qe.fontSizeSM,transition:`margin-inline-start ${Qe.switchDuration} ease-in-out, margin-inline-end ${Qe.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:ht},[`${Xe}-checked`]:{marginInlineStart:`calc(-100% + ${ut} - ${lt})`,marginInlineEnd:`calc(100% - ${ut} + ${lt})`},[`${Xe}-unchecked`]:{marginTop:rt(ht).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${$e}-checked ${Xe}`]:{paddingInlineStart:Ue,paddingInlineEnd:Ke,[`${Xe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Xe}-unchecked`]:{marginInlineStart:`calc(100% - ${ut} + ${lt})`,marginInlineEnd:`calc(-100% + ${ut} - ${lt})`}},[`&:not(${$e}-disabled):active`]:{[`&:not(${$e}-checked) ${Xe}`]:{[`${Xe}-unchecked`]:{marginInlineStart:rt(Ge).mul(2).equal(),marginInlineEnd:rt(Ge).mul(-1).mul(2).equal()}},[`&${$e}-checked ${Xe}`]:{[`${Xe}-checked`]:{marginInlineStart:rt(Ge).mul(-1).mul(2).equal(),marginInlineEnd:rt(Ge).mul(2).equal()}}}}}},je=Qe=>{const{componentCls:$e,trackHeight:ht,trackMinWidth:Ge}=Qe;return{[$e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,_e.Wf)(Qe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ge,height:ht,lineHeight:(0,Se.unit)(ht),verticalAlign:"middle",background:Qe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Qe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$e}-disabled)`]:{background:Qe.colorTextTertiary}}),(0,_e.Qy)(Qe)),{[`&${$e}-checked`]:{background:Qe.switchColor,[`&:hover:not(${$e}-disabled)`]:{background:Qe.colorPrimaryHover}},[`&${$e}-loading, &${$e}-disabled`]:{cursor:"not-allowed",opacity:Qe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$e}-rtl`]:{direction:"rtl"}})}},Fe=Qe=>{const{fontSize:$e,lineHeight:ht,controlHeight:Ge,colorWhite:Ue}=Qe,Ke=$e*ht,et=Ge/2,rt=2,Xe=Ke-rt*2,ut=et-rt*2;return{trackHeight:Ke,trackHeightSM:et,trackMinWidth:Xe*2+rt*4,trackMinWidthSM:ut*2+rt*2,trackPadding:rt,handleBg:Ue,handleSize:Xe,handleSizeSM:ut,handleShadow:`0 2px 4px 0 ${new ge.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Xe/2,innerMaxMargin:Xe+rt+rt*2,innerMinMarginSM:ut/2,innerMaxMarginSM:ut+rt+rt*2}};var Re=(0,Ce.I$)("Switch",Qe=>{const $e=(0,he.mergeToken)(Qe,{switchDuration:Qe.motionDurationMid,switchColor:Qe.colorPrimary,switchDisabledOpacity:Qe.opacityLoading,switchLoadingIconSize:Qe.calc(Qe.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Qe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[je($e),De($e),Ae($e),Ee($e),be($e)]},Fe),qe=function(Qe,$e){var ht={};for(var Ge in Qe)Object.prototype.hasOwnProperty.call(Qe,Ge)&&$e.indexOf(Ge)<0&&(ht[Ge]=Qe[Ge]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ge=Object.getOwnPropertySymbols(Qe);Ue<Ge.length;Ue++)$e.indexOf(Ge[Ue])<0&&Object.prototype.propertyIsEnumerable.call(Qe,Ge[Ue])&&(ht[Ge[Ue]]=Qe[Ge[Ue]]);return ht};const He=y.forwardRef((Qe,$e)=>{const{prefixCls:ht,size:Ge,disabled:Ue,loading:Ke,className:et,rootClassName:rt,style:Xe,checked:ut,value:lt,defaultChecked:kt,defaultValue:pt,onChange:Mt}=Qe,wt=qe(Qe,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[bt,gt]=(0,ne.Z)(!1,{value:ut!=null?ut:lt,defaultValue:kt!=null?kt:pt}),{getPrefixCls:We,direction:Ie,switch:xe}=y.useContext(ce.E_),Be=y.useContext(le.Z),Ye=(Ue!=null?Ue:Be)||Ke,Pe=We("switch",ht),Le=y.createElement("div",{className:`${Pe}-handle`},Ke&&y.createElement(ie.Z,{className:`${Pe}-loading-icon`})),[pe,we,ke]=Re(Pe),Me=(0,ve.Z)(Ge),Oe=de()(xe==null?void 0:xe.className,{[`${Pe}-small`]:Me==="small",[`${Pe}-loading`]:Ke,[`${Pe}-rtl`]:Ie==="rtl"},et,rt,we,ke),tt=Object.assign(Object.assign({},xe==null?void 0:xe.style),Xe),ot=function(){gt(arguments.length<=0?void 0:arguments[0]),Mt==null||Mt.apply(void 0,arguments)};return pe(y.createElement(re.Z,{component:"Switch"},y.createElement(E,Object.assign({},wt,{checked:bt,onChange:ot,prefixCls:Pe,className:Oe,style:tt,disabled:Ye,ref:$e,loadingIcon:Le}))))});He.__ANT_SWITCH=!0;var ze=He},70858:function(rn,Tt,oe){"use strict";oe.d(Tt,{default:function(){return Ti}});var y=oe(59301),ie={},fe="rc-table-internal-hook",de=oe(42978),ue=oe(6089),ae=oe(34280),se=oe(13697),te=oe(4676);function ne(ct){var at=y.createContext(void 0),Et=function(Ht){var Wt=Ht.value,Zt=Ht.children,Qt=y.useRef(Wt);Qt.current=Wt;var sn=y.useState(function(){return{getValue:function(){return Qt.current},listeners:new Set}}),un=(0,de.Z)(sn,1),Bn=un[0];return(0,ae.Z)(function(){(0,te.unstable_batchedUpdates)(function(){Bn.listeners.forEach(function(an){an(Wt)})})},[Wt]),y.createElement(at.Provider,{value:Bn},Zt)};return{Context:at,Provider:Et,defaultValue:ct}}function x(ct,at){var Et=(0,ue.Z)(typeof at=="function"?at:function(an){if(at===void 0)return an;if(!Array.isArray(at))return an[at];var _n={};return at.forEach(function(mn){_n[mn]=an[mn]}),_n}),Rt=y.useContext(ct==null?void 0:ct.Context),Ht=Rt||{},Wt=Ht.listeners,Zt=Ht.getValue,Qt=y.useRef();Qt.current=Et(Rt?Zt():ct==null?void 0:ct.defaultValue);var sn=y.useState({}),un=(0,de.Z)(sn,2),Bn=un[1];return(0,ae.Z)(function(){if(!Rt)return;function an(_n){var mn=Et(_n);(0,se.Z)(Qt.current,mn,!0)||Bn({})}return Wt.add(an),function(){Wt.delete(an)}},[Rt]),Qt.current}var b=oe(54476),ee=oe(8654);function E(){var ct=y.createContext(null);function at(){return y.useContext(ct)}function Et(Ht,Wt){var Zt=(0,ee.Yr)(Ht),Qt=function(un,Bn){var an=Zt?{ref:Bn}:{},_n=y.useRef(0),mn=y.useRef(un),hn=at();return hn!==null?y.createElement(Ht,(0,b.Z)({},un,an)):((!Wt||Wt(mn.current,un))&&(_n.current+=1),mn.current=un,y.createElement(ct.Provider,{value:_n.current},y.createElement(Ht,(0,b.Z)({},un,an))))};return Zt?y.forwardRef(Qt):Qt}function Rt(Ht,Wt){var Zt=(0,ee.Yr)(Ht),Qt=function(un,Bn){var an=Zt?{ref:Bn}:{};return at(),y.createElement(Ht,(0,b.Z)({},un,an))};return Zt?y.memo(y.forwardRef(Qt),Wt):y.memo(Qt,Wt)}return{makeImmutable:Et,responseImmutable:Rt,useImmutableMark:at}}var re=E(),ce=re.makeImmutable,le=re.responseImmutable,ve=re.useImmutableMark,Se=E(),ge=Se.makeImmutable,_e=Se.responseImmutable,Ce=Se.useImmutableMark,he=ne(),be=he;function Ee(ct,at){var Et=React.useRef(0);Et.current+=1;var Rt=React.useRef(ct),Ht=[];Object.keys(ct||{}).map(function(Zt){var Qt;(ct==null?void 0:ct[Zt])!==((Qt=Rt.current)===null||Qt===void 0?void 0:Qt[Zt])&&Ht.push(Zt)}),Rt.current=ct;var Wt=React.useRef([]);return Ht.length&&(Wt.current=Ht),React.useDebugValue(Et.current),React.useDebugValue(Wt.current.join(", ")),at&&console.log("".concat(at,":"),Et.current,Wt.current),Et.current}var Ae=null,De=null,je=oe(76190),Fe=oe(33885),Re=oe(20068),qe=oe(92310),Je=oe.n(qe),He=oe(80547),ze=oe(97938),Qe=oe(48736),$e=y.createContext({renderWithProps:!1}),ht=$e,Ge="RC_TABLE_KEY";function Ue(ct){return ct==null?[]:Array.isArray(ct)?ct:[ct]}function Ke(ct){var at=[],Et={};return ct.forEach(function(Rt){for(var Ht=Rt||{},Wt=Ht.key,Zt=Ht.dataIndex,Qt=Wt||Ue(Zt).join("-")||Ge;Et[Qt];)Qt="".concat(Qt,"_next");Et[Qt]=!0,at.push(Qt)}),at}function et(ct){return ct!=null}function rt(ct){return typeof ct=="number"&&!Number.isNaN(ct)}function Xe(ct){return ct&&(0,je.Z)(ct)==="object"&&!Array.isArray(ct)&&!y.isValidElement(ct)}function ut(ct,at,Et,Rt,Ht,Wt){var Zt=y.useContext(ht),Qt=Ce(),sn=(0,He.Z)(function(){if(et(Rt))return[Rt];var un=at==null||at===""?[]:Array.isArray(at)?at:[at],Bn=(0,ze.Z)(ct,un),an=Bn,_n=void 0;if(Ht){var mn=Ht(Bn,ct,Et);Xe(mn)?(an=mn.children,_n=mn.props,Zt.renderWithProps=!0):an=mn}return[an,_n]},[Qt,ct,Rt,at,Ht,Et],function(un,Bn){if(Wt){var an=(0,de.Z)(un,2),_n=an[1],mn=(0,de.Z)(Bn,2),hn=mn[1];return Wt(hn,_n)}return Zt.renderWithProps?!0:!(0,se.Z)(un,Bn,!0)});return sn}function lt(ct,at,Et,Rt){var Ht=ct+at-1;return ct<=Rt&&Ht>=Et}function kt(ct,at){return x(be,function(Et){var Rt=lt(ct,at||1,Et.hoverStartRow,Et.hoverEndRow);return[Rt,Et.onHover]})}var pt=oe(70425),Mt=function(at){var Et=at.ellipsis,Rt=at.rowType,Ht=at.children,Wt,Zt=Et===!0?{showTitle:!0}:Et;return Zt&&(Zt.showTitle||Rt==="header")&&(typeof Ht=="string"||typeof Ht=="number"?Wt=Ht.toString():y.isValidElement(Ht)&&typeof Ht.props.children=="string"&&(Wt=Ht.props.children)),Wt};function wt(ct){var at,Et,Rt,Ht,Wt,Zt,Qt,sn,un=ct.component,Bn=ct.children,an=ct.ellipsis,_n=ct.scope,mn=ct.prefixCls,hn=ct.className,Fn=ct.align,Dn=ct.record,Pn=ct.render,wr=ct.dataIndex,ur=ct.renderIndex,Tr=ct.shouldCellUpdate,zr=ct.index,Wr=ct.rowType,Gr=ct.colSpan,Ar=ct.rowSpan,Ir=ct.fixLeft,Vr=ct.fixRight,xi=ct.firstFixLeft,Hr=ct.lastFixLeft,ei=ct.firstFixRight,Or=ct.lastFixRight,mr=ct.appendNode,Kr=ct.additionalProps,ci=Kr===void 0?{}:Kr,yi=ct.isSticky,Ur="".concat(mn,"-cell"),jr=x(be,["supportSticky","allColumnsFixedLeft","rowHoverable"]),bi=jr.supportSticky,no=jr.allColumnsFixedLeft,po=jr.rowHoverable,Ui=ut(Dn,wr,ur,Bn,Pn,Tr),mo=(0,de.Z)(Ui,2),Io=mo[0],Vi=mo[1],Xi={},To=typeof Ir=="number"&&bi,Go=typeof Vr=="number"&&bi;To&&(Xi.position="sticky",Xi.left=Ir),Go&&(Xi.position="sticky",Xi.right=Vr);var di=(at=(Et=(Rt=Vi==null?void 0:Vi.colSpan)!==null&&Rt!==void 0?Rt:ci.colSpan)!==null&&Et!==void 0?Et:Gr)!==null&&at!==void 0?at:1,ji=(Ht=(Wt=(Zt=Vi==null?void 0:Vi.rowSpan)!==null&&Zt!==void 0?Zt:ci.rowSpan)!==null&&Wt!==void 0?Wt:Ar)!==null&&Ht!==void 0?Ht:1,mi=kt(zr,ji),ni=(0,de.Z)(mi,2),lo=ni[0],vo=ni[1],Ro=(0,pt.zX)(function(Eo){var Co;Dn&&vo(zr,zr+ji-1),ci==null||(Co=ci.onMouseEnter)===null||Co===void 0||Co.call(ci,Eo)}),Lo=(0,pt.zX)(function(Eo){var Co;Dn&&vo(-1,-1),ci==null||(Co=ci.onMouseLeave)===null||Co===void 0||Co.call(ci,Eo)});if(di===0||ji===0)return null;var Xo=(Qt=ci.title)!==null&&Qt!==void 0?Qt:Mt({rowType:Wr,ellipsis:an,children:Io}),oa=Je()(Ur,hn,(sn={},(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)(sn,"".concat(Ur,"-fix-left"),To&&bi),"".concat(Ur,"-fix-left-first"),xi&&bi),"".concat(Ur,"-fix-left-last"),Hr&&bi),"".concat(Ur,"-fix-left-all"),Hr&&no&&bi),"".concat(Ur,"-fix-right"),Go&&bi),"".concat(Ur,"-fix-right-first"),ei&&bi),"".concat(Ur,"-fix-right-last"),Or&&bi),"".concat(Ur,"-ellipsis"),an),"".concat(Ur,"-with-append"),mr),"".concat(Ur,"-fix-sticky"),(To||Go)&&yi&&bi),(0,Re.Z)(sn,"".concat(Ur,"-row-hover"),!Vi&&lo)),ci.className,Vi==null?void 0:Vi.className),_i={};Fn&&(_i.textAlign=Fn);var Di=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},Vi==null?void 0:Vi.style),Xi),_i),ci.style),bo=Io;return(0,je.Z)(bo)==="object"&&!Array.isArray(bo)&&!y.isValidElement(bo)&&(bo=null),an&&(Hr||ei)&&(bo=y.createElement("span",{className:"".concat(Ur,"-content")},bo)),y.createElement(un,(0,b.Z)({},Vi,ci,{className:oa,style:Di,title:Xo,scope:_n,onMouseEnter:po?Ro:void 0,onMouseLeave:po?Lo:void 0,colSpan:di!==1?di:null,rowSpan:ji!==1?ji:null}),mr,bo)}var bt=y.memo(wt);function gt(ct,at,Et,Rt,Ht){var Wt=Et[ct]||{},Zt=Et[at]||{},Qt,sn;Wt.fixed==="left"?Qt=Rt.left[Ht==="rtl"?at:ct]:Zt.fixed==="right"&&(sn=Rt.right[Ht==="rtl"?ct:at]);var un=!1,Bn=!1,an=!1,_n=!1,mn=Et[at+1],hn=Et[ct-1],Fn=mn&&!mn.fixed||hn&&!hn.fixed||Et.every(function(Tr){return Tr.fixed==="left"});if(Ht==="rtl"){if(Qt!==void 0){var Dn=hn&&hn.fixed==="left";_n=!Dn&&Fn}else if(sn!==void 0){var Pn=mn&&mn.fixed==="right";an=!Pn&&Fn}}else if(Qt!==void 0){var wr=mn&&mn.fixed==="left";un=!wr&&Fn}else if(sn!==void 0){var ur=hn&&hn.fixed==="right";Bn=!ur&&Fn}return{fixLeft:Qt,fixRight:sn,lastFixLeft:un,firstFixRight:Bn,lastFixRight:an,firstFixLeft:_n,isSticky:Rt.isSticky}}var We=y.createContext({}),Ie=We;function xe(ct){var at=ct.className,Et=ct.index,Rt=ct.children,Ht=ct.colSpan,Wt=Ht===void 0?1:Ht,Zt=ct.rowSpan,Qt=ct.align,sn=x(be,["prefixCls","direction"]),un=sn.prefixCls,Bn=sn.direction,an=y.useContext(Ie),_n=an.scrollColumnIndex,mn=an.stickyOffsets,hn=an.flattenColumns,Fn=Et+Wt-1,Dn=Fn+1===_n?Wt+1:Wt,Pn=gt(Et,Et+Dn-1,hn,mn,Bn);return y.createElement(bt,(0,b.Z)({className:at,index:Et,component:"td",prefixCls:un,record:null,dataIndex:null,align:Qt,colSpan:Dn,rowSpan:Zt,render:function(){return Rt}},Pn))}var Be=oe(75931),Ye=["children"];function Pe(ct){var at=ct.children,Et=(0,Be.Z)(ct,Ye);return y.createElement("tr",Et,at)}function Le(ct){var at=ct.children;return at}Le.Row=Pe,Le.Cell=xe;var pe=Le;function we(ct){var at=ct.children,Et=ct.stickyOffsets,Rt=ct.flattenColumns,Ht=x(be,"prefixCls"),Wt=Rt.length-1,Zt=Rt[Wt],Qt=y.useMemo(function(){return{stickyOffsets:Et,flattenColumns:Rt,scrollColumnIndex:Zt!=null&&Zt.scrollbar?Wt:null}},[Zt,Rt,Wt,Et]);return y.createElement(Ie.Provider,{value:Qt},y.createElement("tfoot",{className:"".concat(Ht,"-summary")},at))}var ke=_e(we),Me=pe,Oe=oe(29301),tt=oe(3465),ot=oe(75152),st=oe(26112);function ft(ct,at,Et,Rt,Ht,Wt,Zt){ct.push({record:at,indent:Et,index:Zt});var Qt=Wt(at),sn=Ht==null?void 0:Ht.has(Qt);if(at&&Array.isArray(at[Rt])&&sn)for(var un=0;un<at[Rt].length;un+=1)ft(ct,at[Rt][un],Et+1,Rt,Ht,Wt,un)}function Ft(ct,at,Et,Rt){var Ht=y.useMemo(function(){if(Et!=null&&Et.size){for(var Wt=[],Zt=0;Zt<(ct==null?void 0:ct.length);Zt+=1){var Qt=ct[Zt];ft(Wt,Qt,0,at,Et,Rt,Zt)}return Wt}return ct==null?void 0:ct.map(function(sn,un){return{record:sn,indent:0,index:un}})},[ct,at,Et,Rt]);return Ht}function Bt(ct,at,Et,Rt){var Ht=x(be,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Wt=Ht.flattenColumns,Zt=Ht.expandableType,Qt=Ht.expandedKeys,sn=Ht.childrenColumnName,un=Ht.onTriggerExpand,Bn=Ht.rowExpandable,an=Ht.onRow,_n=Ht.expandRowByClick,mn=Ht.rowClassName,hn=Zt==="nest",Fn=Zt==="row"&&(!Bn||Bn(ct)),Dn=Fn||hn,Pn=Qt&&Qt.has(at),wr=sn&&ct&&ct[sn],ur=(0,pt.zX)(un),Tr=an==null?void 0:an(ct,Et),zr=Tr==null?void 0:Tr.onClick,Wr=function(Vr){_n&&Dn&&un(ct,Vr);for(var xi=arguments.length,Hr=new Array(xi>1?xi-1:0),ei=1;ei<xi;ei++)Hr[ei-1]=arguments[ei];zr==null||zr.apply(void 0,[Vr].concat(Hr))},Gr;typeof mn=="string"?Gr=mn:typeof mn=="function"&&(Gr=mn(ct,Et,Rt));var Ar=Ke(Wt);return(0,Fe.Z)((0,Fe.Z)({},Ht),{},{columnsKey:Ar,nestExpandable:hn,expanded:Pn,hasNestChildren:wr,record:ct,onTriggerExpand:ur,rowSupportExpand:Fn,expandable:Dn,rowProps:(0,Fe.Z)((0,Fe.Z)({},Tr),{},{className:Je()(Gr,Tr==null?void 0:Tr.className),onClick:Wr})})}function qt(ct){var at=ct.prefixCls,Et=ct.children,Rt=ct.component,Ht=ct.cellComponent,Wt=ct.className,Zt=ct.expanded,Qt=ct.colSpan,sn=ct.isEmpty,un=x(be,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Bn=un.scrollbarSize,an=un.fixHeader,_n=un.fixColumn,mn=un.componentWidth,hn=un.horizonScroll,Fn=Et;return(sn?hn&&mn:_n)&&(Fn=y.createElement("div",{style:{width:mn-(an&&!sn?Bn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(at,"-expanded-row-fixed")},Fn)),y.createElement(Rt,{className:Wt,style:{display:Zt?null:"none"}},y.createElement(bt,{component:Ht,prefixCls:at,colSpan:Qt},Fn))}var $t=qt;function It(ct){var at=ct.prefixCls,Et=ct.record,Rt=ct.onExpand,Ht=ct.expanded,Wt=ct.expandable,Zt="".concat(at,"-row-expand-icon");if(!Wt)return y.createElement("span",{className:Je()(Zt,"".concat(at,"-row-spaced"))});var Qt=function(un){Rt(Et,un),un.stopPropagation()};return y.createElement("span",{className:Je()(Zt,(0,Re.Z)((0,Re.Z)({},"".concat(at,"-row-expanded"),Ht),"".concat(at,"-row-collapsed"),!Ht)),onClick:Qt})}function en(ct,at,Et){var Rt=[];function Ht(Wt){(Wt||[]).forEach(function(Zt,Qt){Rt.push(at(Zt,Qt)),Ht(Zt[Et])})}return Ht(ct),Rt}function Pt(ct,at,Et,Rt){return typeof ct=="string"?ct:typeof ct=="function"?ct(at,Et,Rt):""}function cn(ct,at,Et,Rt,Ht){var Wt=ct.record,Zt=ct.prefixCls,Qt=ct.columnsKey,sn=ct.fixedInfoList,un=ct.expandIconColumnIndex,Bn=ct.nestExpandable,an=ct.indentSize,_n=ct.expandIcon,mn=ct.expanded,hn=ct.hasNestChildren,Fn=ct.onTriggerExpand,Dn=Qt[Et],Pn=sn[Et],wr;Et===(un||0)&&Bn&&(wr=y.createElement(y.Fragment,null,y.createElement("span",{style:{paddingLeft:"".concat(an*Rt,"px")},className:"".concat(Zt,"-row-indent indent-level-").concat(Rt)}),_n({prefixCls:Zt,expanded:mn,expandable:hn,record:Wt,onExpand:Fn})));var ur;return at.onCell&&(ur=at.onCell(Wt,Ht)),{key:Dn,fixedInfo:Pn,appendCellNode:wr,additionalCellProps:ur||{}}}function Sn(ct){var at=ct.className,Et=ct.style,Rt=ct.record,Ht=ct.index,Wt=ct.renderIndex,Zt=ct.rowKey,Qt=ct.indent,sn=Qt===void 0?0:Qt,un=ct.rowComponent,Bn=ct.cellComponent,an=ct.scopeCellComponent,_n=Bt(Rt,Zt,Ht,sn),mn=_n.prefixCls,hn=_n.flattenColumns,Fn=_n.expandedRowClassName,Dn=_n.expandedRowRender,Pn=_n.rowProps,wr=_n.expanded,ur=_n.rowSupportExpand,Tr=y.useRef(!1);Tr.current||(Tr.current=wr);var zr=Pt(Fn,Rt,Ht,sn),Wr=y.createElement(un,(0,b.Z)({},Pn,{"data-row-key":Zt,className:Je()(at,"".concat(mn,"-row"),"".concat(mn,"-row-level-").concat(sn),Pn==null?void 0:Pn.className,(0,Re.Z)({},zr,sn>=1)),style:(0,Fe.Z)((0,Fe.Z)({},Et),Pn==null?void 0:Pn.style)}),hn.map(function(Ir,Vr){var xi=Ir.render,Hr=Ir.dataIndex,ei=Ir.className,Or=cn(_n,Ir,Vr,sn,Ht),mr=Or.key,Kr=Or.fixedInfo,ci=Or.appendCellNode,yi=Or.additionalCellProps;return y.createElement(bt,(0,b.Z)({className:ei,ellipsis:Ir.ellipsis,align:Ir.align,scope:Ir.rowScope,component:Ir.rowScope?an:Bn,prefixCls:mn,key:mr,record:Rt,index:Ht,renderIndex:Wt,dataIndex:Hr,render:xi,shouldCellUpdate:Ir.shouldCellUpdate},Kr,{appendNode:ci,additionalProps:yi}))})),Gr;if(ur&&(Tr.current||wr)){var Ar=Dn(Rt,Ht,sn+1,wr);Gr=y.createElement($t,{expanded:wr,className:Je()("".concat(mn,"-expanded-row"),"".concat(mn,"-expanded-row-level-").concat(sn+1),zr),prefixCls:mn,component:un,cellComponent:Bn,colSpan:hn.length,isEmpty:!1},Ar)}return y.createElement(y.Fragment,null,Wr,Gr)}var An=_e(Sn);function wn(ct){var at=ct.columnKey,Et=ct.onColumnResize,Rt=y.useRef();return(0,ae.Z)(function(){Rt.current&&Et(at,Rt.current.offsetWidth)},[]),y.createElement(Oe.Z,{data:at},y.createElement("td",{ref:Rt,style:{padding:0,border:0,height:0}},y.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var At=oe(29194);function Gt(ct){var at=ct.prefixCls,Et=ct.columnsKey,Rt=ct.onColumnResize,Ht=y.useRef(null);return y.createElement("tr",{"aria-hidden":"true",className:"".concat(at,"-measure-row"),style:{height:0,fontSize:0},ref:Ht},y.createElement(Oe.Z.Collection,{onBatchResize:function(Zt){(0,At.Z)(Ht.current)&&Zt.forEach(function(Qt){var sn=Qt.data,un=Qt.size;Rt(sn,un.offsetWidth)})}},Et.map(function(Wt){return y.createElement(wn,{key:Wt,columnKey:Wt,onColumnResize:Rt})})))}function on(ct){var at=ct.data,Et=ct.measureColumnWidth,Rt=x(be,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ht=Rt.prefixCls,Wt=Rt.getComponent,Zt=Rt.onColumnResize,Qt=Rt.flattenColumns,sn=Rt.getRowKey,un=Rt.expandedKeys,Bn=Rt.childrenColumnName,an=Rt.emptyNode,_n=Ft(at,Bn,un,sn),mn=y.useRef({renderWithProps:!1}),hn=Wt(["body","wrapper"],"tbody"),Fn=Wt(["body","row"],"tr"),Dn=Wt(["body","cell"],"td"),Pn=Wt(["body","cell"],"th"),wr;at.length?wr=_n.map(function(Tr,zr){var Wr=Tr.record,Gr=Tr.indent,Ar=Tr.index,Ir=sn(Wr,zr);return y.createElement(An,{key:Ir,rowKey:Ir,record:Wr,index:zr,renderIndex:Ar,rowComponent:Fn,cellComponent:Dn,scopeCellComponent:Pn,indent:Gr})}):wr=y.createElement($t,{expanded:!0,className:"".concat(Ht,"-placeholder"),prefixCls:Ht,component:Fn,cellComponent:Dn,colSpan:Qt.length,isEmpty:!0},an);var ur=Ke(Qt);return y.createElement(ht.Provider,{value:mn.current},y.createElement(hn,{className:"".concat(Ht,"-tbody")},Et&&y.createElement(Gt,{prefixCls:Ht,columnsKey:ur,onColumnResize:Zt}),wr))}var vn=_e(on),Nn=["expandable"],Yn="RC_TABLE_INTERNAL_COL_DEFINE";function Vn(ct){var at=ct.expandable,Et=(0,Be.Z)(ct,Nn),Rt;return"expandable"in ct?Rt=(0,Fe.Z)((0,Fe.Z)({},Et),at):Rt=Et,Rt.showExpandColumn===!1&&(Rt.expandIconColumnIndex=-1),Rt}var ir=["columnType"];function Mn(ct){for(var at=ct.colWidths,Et=ct.columns,Rt=ct.columCount,Ht=x(be,["tableLayout"]),Wt=Ht.tableLayout,Zt=[],Qt=Rt||Et.length,sn=!1,un=Qt-1;un>=0;un-=1){var Bn=at[un],an=Et&&Et[un],_n=void 0,mn=void 0;if(an&&(_n=an[Yn],Wt==="auto"&&(mn=an.minWidth)),Bn||mn||_n||sn){var hn=_n||{},Fn=hn.columnType,Dn=(0,Be.Z)(hn,ir);Zt.unshift(y.createElement("col",(0,b.Z)({key:un,style:{width:Bn,minWidth:mn}},Dn))),sn=!0}}return y.createElement("colgroup",null,Zt)}var qn=Mn,En=oe(94480),Hn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Qn(ct,at){return(0,y.useMemo)(function(){for(var Et=[],Rt=0;Rt<at;Rt+=1){var Ht=ct[Rt];if(Ht!==void 0)Et[Rt]=Ht;else return null}return Et},[ct.join("_"),at])}var dr=y.forwardRef(function(ct,at){var Et=ct.className,Rt=ct.noData,Ht=ct.columns,Wt=ct.flattenColumns,Zt=ct.colWidths,Qt=ct.columCount,sn=ct.stickyOffsets,un=ct.direction,Bn=ct.fixHeader,an=ct.stickyTopOffset,_n=ct.stickyBottomOffset,mn=ct.stickyClassName,hn=ct.onScroll,Fn=ct.maxContentScroll,Dn=ct.children,Pn=(0,Be.Z)(ct,Hn),wr=x(be,["prefixCls","scrollbarSize","isSticky","getComponent"]),ur=wr.prefixCls,Tr=wr.scrollbarSize,zr=wr.isSticky,Wr=wr.getComponent,Gr=Wr(["header","table"],"table"),Ar=zr&&!Bn?0:Tr,Ir=y.useRef(null),Vr=y.useCallback(function(yi){(0,ee.mH)(at,yi),(0,ee.mH)(Ir,yi)},[]);y.useEffect(function(){var yi;function Ur(jr){var bi=jr,no=bi.currentTarget,po=bi.deltaX;po&&(hn({currentTarget:no,scrollLeft:no.scrollLeft+po}),jr.preventDefault())}return(yi=Ir.current)===null||yi===void 0||yi.addEventListener("wheel",Ur,{passive:!1}),function(){var jr;(jr=Ir.current)===null||jr===void 0||jr.removeEventListener("wheel",Ur)}},[]);var xi=y.useMemo(function(){return Wt.every(function(yi){return yi.width})},[Wt]),Hr=Wt[Wt.length-1],ei={fixed:Hr?Hr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(ur,"-cell-scrollbar")}}},Or=(0,y.useMemo)(function(){return Ar?[].concat((0,En.Z)(Ht),[ei]):Ht},[Ar,Ht]),mr=(0,y.useMemo)(function(){return Ar?[].concat((0,En.Z)(Wt),[ei]):Wt},[Ar,Wt]),Kr=(0,y.useMemo)(function(){var yi=sn.right,Ur=sn.left;return(0,Fe.Z)((0,Fe.Z)({},sn),{},{left:un==="rtl"?[].concat((0,En.Z)(Ur.map(function(jr){return jr+Ar})),[0]):Ur,right:un==="rtl"?yi:[].concat((0,En.Z)(yi.map(function(jr){return jr+Ar})),[0]),isSticky:zr})},[Ar,sn,zr]),ci=Qn(Zt,Qt);return y.createElement("div",{style:(0,Fe.Z)({overflow:"hidden"},zr?{top:an,bottom:_n}:{}),ref:Vr,className:Je()(Et,(0,Re.Z)({},mn,!!mn))},y.createElement(Gr,{style:{tableLayout:"fixed",visibility:Rt||ci?null:"hidden"}},(!Rt||!Fn||xi)&&y.createElement(qn,{colWidths:ci?[].concat((0,En.Z)(ci),[Ar]):[],columCount:Qt+1,columns:mr}),Dn((0,Fe.Z)((0,Fe.Z)({},Pn),{},{stickyOffsets:Kr,columns:Or,flattenColumns:mr}))))}),On=y.memo(dr),$n=function(at){var Et=at.cells,Rt=at.stickyOffsets,Ht=at.flattenColumns,Wt=at.rowComponent,Zt=at.cellComponent,Qt=at.onHeaderRow,sn=at.index,un=x(be,["prefixCls","direction"]),Bn=un.prefixCls,an=un.direction,_n;Qt&&(_n=Qt(Et.map(function(hn){return hn.column}),sn));var mn=Ke(Et.map(function(hn){return hn.column}));return y.createElement(Wt,_n,Et.map(function(hn,Fn){var Dn=hn.column,Pn=gt(hn.colStart,hn.colEnd,Ht,Rt,an),wr;return Dn&&Dn.onHeaderCell&&(wr=hn.column.onHeaderCell(Dn)),y.createElement(bt,(0,b.Z)({},hn,{scope:Dn.title?hn.colSpan>1?"colgroup":"col":null,ellipsis:Dn.ellipsis,align:Dn.align,component:Zt,prefixCls:Bn,key:mn[Fn]},Pn,{additionalProps:wr,rowType:"header"}))}))},Kn=$n;function yn(ct){var at=[];function Et(Zt,Qt){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;at[sn]=at[sn]||[];var un=Qt,Bn=Zt.filter(Boolean).map(function(an){var _n={key:an.key,className:an.className||"",children:an.title,column:an,colStart:un},mn=1,hn=an.children;return hn&&hn.length>0&&(mn=Et(hn,un,sn+1).reduce(function(Fn,Dn){return Fn+Dn},0),_n.hasSubColumns=!0),"colSpan"in an&&(mn=an.colSpan),"rowSpan"in an&&(_n.rowSpan=an.rowSpan),_n.colSpan=mn,_n.colEnd=_n.colStart+mn-1,at[sn].push(_n),un+=mn,mn});return Bn}Et(ct,0);for(var Rt=at.length,Ht=function(Qt){at[Qt].forEach(function(sn){!("rowSpan"in sn)&&!sn.hasSubColumns&&(sn.rowSpan=Rt-Qt)})},Wt=0;Wt<Rt;Wt+=1)Ht(Wt);return at}var Ne=function(at){var Et=at.stickyOffsets,Rt=at.columns,Ht=at.flattenColumns,Wt=at.onHeaderRow,Zt=x(be,["prefixCls","getComponent"]),Qt=Zt.prefixCls,sn=Zt.getComponent,un=y.useMemo(function(){return yn(Rt)},[Rt]),Bn=sn(["header","wrapper"],"thead"),an=sn(["header","row"],"tr"),_n=sn(["header","cell"],"th");return y.createElement(Bn,{className:"".concat(Qt,"-thead")},un.map(function(mn,hn){var Fn=y.createElement(Kn,{key:hn,flattenColumns:Ht,cells:mn,stickyOffsets:Et,rowComponent:an,cellComponent:_n,onHeaderRow:Wt,index:hn});return Fn}))},Ve=_e(Ne),nt=oe(11592);function mt(ct){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof at=="number"?at:at.endsWith("%")?ct*parseFloat(at)/100:null}function _t(ct,at,Et){return y.useMemo(function(){if(at&&at>0){var Rt=0,Ht=0;ct.forEach(function(_n){var mn=mt(at,_n.width);mn?Rt+=mn:Ht+=1});var Wt=Math.max(at,Et),Zt=Math.max(Wt-Rt,Ht),Qt=Ht,sn=Zt/Ht,un=0,Bn=ct.map(function(_n){var mn=(0,Fe.Z)({},_n),hn=mt(at,mn.width);if(hn)mn.width=hn;else{var Fn=Math.floor(sn);mn.width=Qt===1?Zt:Fn,Zt-=Fn,Qt-=1}return un+=mn.width,mn});if(un<Wt){var an=Wt/un;Zt=Wt,Bn.forEach(function(_n,mn){var hn=Math.floor(_n.width*an);_n.width=mn===Bn.length-1?Zt:hn,Zt-=hn})}return[Bn,Math.max(un,Wt)]}return[ct,at]},[ct,at,Et])}var Vt=["children"],Jt=["fixed"];function Xt(ct){return(0,nt.Z)(ct).filter(function(at){return y.isValidElement(at)}).map(function(at){var Et=at.key,Rt=at.props,Ht=Rt.children,Wt=(0,Be.Z)(Rt,Vt),Zt=(0,Fe.Z)({key:Et},Wt);return Ht&&(Zt.children=Xt(Ht)),Zt})}function dn(ct){return ct.filter(function(at){return at&&(0,je.Z)(at)==="object"&&!at.hidden}).map(function(at){var Et=at.children;return Et&&Et.length>0?(0,Fe.Z)((0,Fe.Z)({},at),{},{children:dn(Et)}):at})}function jn(ct){var at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ct.filter(function(Et){return Et&&(0,je.Z)(Et)==="object"}).reduce(function(Et,Rt,Ht){var Wt=Rt.fixed,Zt=Wt===!0?"left":Wt,Qt="".concat(at,"-").concat(Ht),sn=Rt.children;return sn&&sn.length>0?[].concat((0,En.Z)(Et),(0,En.Z)(jn(sn,Qt).map(function(un){return(0,Fe.Z)({fixed:Zt},un)}))):[].concat((0,En.Z)(Et),[(0,Fe.Z)((0,Fe.Z)({key:Qt},Rt),{},{fixed:Zt})])},[])}function vr(ct){return ct.map(function(at){var Et=at.fixed,Rt=(0,Be.Z)(at,Jt),Ht=Et;return Et==="left"?Ht="right":Et==="right"&&(Ht="left"),(0,Fe.Z)({fixed:Ht},Rt)})}function Nt(ct,at){var Et=ct.prefixCls,Rt=ct.columns,Ht=ct.children,Wt=ct.expandable,Zt=ct.expandedKeys,Qt=ct.columnTitle,sn=ct.getRowKey,un=ct.onTriggerExpand,Bn=ct.expandIcon,an=ct.rowExpandable,_n=ct.expandIconColumnIndex,mn=ct.direction,hn=ct.expandRowByClick,Fn=ct.columnWidth,Dn=ct.fixed,Pn=ct.scrollWidth,wr=ct.clientWidth,ur=y.useMemo(function(){var Hr=Rt||Xt(Ht)||[];return dn(Hr.slice())},[Rt,Ht]),Tr=y.useMemo(function(){if(Wt){var Hr=ur.slice();if(!Hr.includes(ie)){var ei=_n||0;ei>=0&&(ei||Dn==="left"||!Dn)&&Hr.splice(ei,0,ie),Dn==="right"&&Hr.splice(ur.length,0,ie)}var Or=Hr.indexOf(ie);Hr=Hr.filter(function(yi,Ur){return yi!==ie||Ur===Or});var mr=ur[Or],Kr;Dn?Kr=Dn:Kr=mr?mr.fixed:null;var ci=(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},Yn,{className:"".concat(Et,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Qt),"fixed",Kr),"className","".concat(Et,"-row-expand-icon-cell")),"width",Fn),"render",function(Ur,jr,bi){var no=sn(jr,bi),po=Zt.has(no),Ui=an?an(jr):!0,mo=Bn({prefixCls:Et,expanded:po,expandable:Ui,record:jr,onExpand:un});return hn?y.createElement("span",{onClick:function(Vi){return Vi.stopPropagation()}},mo):mo});return Hr.map(function(yi){return yi===ie?ci:yi})}return ur.filter(function(yi){return yi!==ie})},[Wt,ur,sn,Zt,Bn,mn]),zr=y.useMemo(function(){var Hr=Tr;return at&&(Hr=at(Hr)),Hr.length||(Hr=[{render:function(){return null}}]),Hr},[at,Tr,mn]),Wr=y.useMemo(function(){return mn==="rtl"?vr(jn(zr)):jn(zr)},[zr,mn,Pn]),Gr=y.useMemo(function(){for(var Hr=-1,ei=Wr.length-1;ei>=0;ei-=1){var Or=Wr[ei].fixed;if(Or==="left"||Or===!0){Hr=ei;break}}if(Hr>=0)for(var mr=0;mr<=Hr;mr+=1){var Kr=Wr[mr].fixed;if(Kr!=="left"&&Kr!==!0)return!0}var ci=Wr.findIndex(function(jr){var bi=jr.fixed;return bi==="right"});if(ci>=0)for(var yi=ci;yi<Wr.length;yi+=1){var Ur=Wr[yi].fixed;if(Ur!=="right")return!0}return!1},[Wr]),Ar=_t(Wr,Pn,wr),Ir=(0,de.Z)(Ar,2),Vr=Ir[0],xi=Ir[1];return[zr,Vr,xi,Gr]}var jt=Nt;function xt(ct,at,Et){var Rt=Vn(ct),Ht=Rt.expandIcon,Wt=Rt.expandedRowKeys,Zt=Rt.defaultExpandedRowKeys,Qt=Rt.defaultExpandAllRows,sn=Rt.expandedRowRender,un=Rt.onExpand,Bn=Rt.onExpandedRowsChange,an=Rt.childrenColumnName,_n=Ht||It,mn=an||"children",hn=y.useMemo(function(){return sn?"row":ct.expandable&&ct.internalHooks===fe&&ct.expandable.__PARENT_RENDER_ICON__||at.some(function(zr){return zr&&(0,je.Z)(zr)==="object"&&zr[mn]})?"nest":!1},[!!sn,at]),Fn=y.useState(function(){return Zt||(Qt?en(at,Et,mn):[])}),Dn=(0,de.Z)(Fn,2),Pn=Dn[0],wr=Dn[1],ur=y.useMemo(function(){return new Set(Wt||Pn||[])},[Wt,Pn]),Tr=y.useCallback(function(zr){var Wr=Et(zr,at.indexOf(zr)),Gr,Ar=ur.has(Wr);Ar?(ur.delete(Wr),Gr=(0,En.Z)(ur)):Gr=[].concat((0,En.Z)(ur),[Wr]),wr(Gr),un&&un(!Ar,zr),Bn&&Bn(Gr)},[Et,ur,at,un,Bn]);return[Rt,hn,ur,_n,mn,Tr]}function Ot(ct,at,Et){var Rt=ct.map(function(Ht,Wt){return gt(Wt,Wt,ct,at,Et)});return(0,He.Z)(function(){return Rt},[Rt],function(Ht,Wt){return!(0,se.Z)(Ht,Wt)})}function yt(ct){var at=(0,y.useRef)(ct),Et=(0,y.useState)({}),Rt=(0,de.Z)(Et,2),Ht=Rt[1],Wt=(0,y.useRef)(null),Zt=(0,y.useRef)([]);function Qt(sn){Zt.current.push(sn);var un=Promise.resolve();Wt.current=un,un.then(function(){if(Wt.current===un){var Bn=Zt.current,an=at.current;Zt.current=[],Bn.forEach(function(_n){at.current=_n(at.current)}),Wt.current=null,an!==at.current&&Ht({})}})}return(0,y.useEffect)(function(){return function(){Wt.current=null}},[]),[at.current,Qt]}function Lt(ct){var at=(0,y.useRef)(ct||null),Et=(0,y.useRef)();function Rt(){window.clearTimeout(Et.current)}function Ht(Zt){at.current=Zt,Rt(),Et.current=window.setTimeout(function(){at.current=null,Et.current=void 0},100)}function Wt(){return at.current}return(0,y.useEffect)(function(){return Rt},[]),[Ht,Wt]}function Ut(){var ct=y.useState(-1),at=(0,de.Z)(ct,2),Et=at[0],Rt=at[1],Ht=y.useState(-1),Wt=(0,de.Z)(Ht,2),Zt=Wt[0],Qt=Wt[1],sn=y.useCallback(function(un,Bn){Rt(un),Qt(Bn)},[]);return[Et,Zt,sn]}var bn=oe(47273),Tn=(0,bn.Z)()?window:null;function Gn(ct,at){var Et=(0,je.Z)(ct)==="object"?ct:{},Rt=Et.offsetHeader,Ht=Rt===void 0?0:Rt,Wt=Et.offsetSummary,Zt=Wt===void 0?0:Wt,Qt=Et.offsetScroll,sn=Qt===void 0?0:Qt,un=Et.getContainer,Bn=un===void 0?function(){return Tn}:un,an=Bn()||Tn,_n=!!ct;return y.useMemo(function(){return{isSticky:_n,stickyClassName:_n?"".concat(at,"-sticky-holder"):"",offsetHeader:Ht,offsetSummary:Zt,offsetScroll:sn,container:an}},[_n,sn,Ht,Zt,at,an])}function pn(ct,at,Et){var Rt=(0,y.useMemo)(function(){var Ht=at.length,Wt=function(un,Bn,an){for(var _n=[],mn=0,hn=un;hn!==Bn;hn+=an)_n.push(mn),at[hn].fixed&&(mn+=ct[hn]||0);return _n},Zt=Wt(0,Ht,1),Qt=Wt(Ht-1,-1,-1).reverse();return Et==="rtl"?{left:Qt,right:Zt}:{left:Zt,right:Qt}},[ct,at,Et]);return Rt}var tn=pn;function ln(ct){var at=ct.className,Et=ct.children;return y.createElement("div",{className:at},Et)}var Rn=ln,nr=oe(8224),rr=oe(16089),fr=oe(76846);function ti(ct){var at=(0,fr.bn)(ct),Et=at.getBoundingClientRect(),Rt=document.documentElement;return{left:Et.left+(window.pageXOffset||Rt.scrollLeft)-(Rt.clientLeft||document.body.clientLeft||0),top:Et.top+(window.pageYOffset||Rt.scrollTop)-(Rt.clientTop||document.body.clientTop||0)}}var fn=function(at,Et){var Rt,Ht,Wt=at.scrollBodyRef,Zt=at.onScroll,Qt=at.offsetScroll,sn=at.container,un=at.direction,Bn=x(be,"prefixCls"),an=((Rt=Wt.current)===null||Rt===void 0?void 0:Rt.scrollWidth)||0,_n=((Ht=Wt.current)===null||Ht===void 0?void 0:Ht.clientWidth)||0,mn=an&&_n*(_n/an),hn=y.useRef(),Fn=yt({scrollLeft:0,isHiddenScrollBar:!0}),Dn=(0,de.Z)(Fn,2),Pn=Dn[0],wr=Dn[1],ur=y.useRef({delta:0,x:0}),Tr=y.useState(!1),zr=(0,de.Z)(Tr,2),Wr=zr[0],Gr=zr[1],Ar=y.useRef(null);y.useEffect(function(){return function(){rr.Z.cancel(Ar.current)}},[]);var Ir=function(){Gr(!1)},Vr=function(mr){mr.persist(),ur.current.delta=mr.pageX-Pn.scrollLeft,ur.current.x=0,Gr(!0),mr.preventDefault()},xi=function(mr){var Kr,ci=mr||((Kr=window)===null||Kr===void 0?void 0:Kr.event),yi=ci.buttons;if(!Wr||yi===0){Wr&&Gr(!1);return}var Ur=ur.current.x+mr.pageX-ur.current.x-ur.current.delta,jr=un==="rtl";Ur=Math.max(jr?mn-_n:0,Math.min(jr?0:_n-mn,Ur));var bi=!jr||Math.abs(Ur)+Math.abs(mn)<_n;bi&&(Zt({scrollLeft:Ur/_n*(an+2)}),ur.current.x=mr.pageX)},Hr=function(){rr.Z.cancel(Ar.current),Ar.current=(0,rr.Z)(function(){if(Wt.current){var mr=ti(Wt.current).top,Kr=mr+Wt.current.offsetHeight,ci=sn===window?document.documentElement.scrollTop+window.innerHeight:ti(sn).top+sn.clientHeight;Kr-(0,ot.Z)()<=ci||mr>=ci-Qt?wr(function(yi){return(0,Fe.Z)((0,Fe.Z)({},yi),{},{isHiddenScrollBar:!0})}):wr(function(yi){return(0,Fe.Z)((0,Fe.Z)({},yi),{},{isHiddenScrollBar:!1})})}})},ei=function(mr){wr(function(Kr){return(0,Fe.Z)((0,Fe.Z)({},Kr),{},{scrollLeft:mr/an*_n||0})})};return y.useImperativeHandle(Et,function(){return{setScrollLeft:ei,checkScrollBarVisible:Hr}}),y.useEffect(function(){var Or=(0,nr.Z)(document.body,"mouseup",Ir,!1),mr=(0,nr.Z)(document.body,"mousemove",xi,!1);return Hr(),function(){Or.remove(),mr.remove()}},[mn,Wr]),y.useEffect(function(){if(Wt.current){for(var Or=[],mr=(0,fr.bn)(Wt.current);mr;)Or.push(mr),mr=mr.parentElement;return Or.forEach(function(Kr){return Kr.addEventListener("scroll",Hr,!1)}),window.addEventListener("resize",Hr,!1),window.addEventListener("scroll",Hr,!1),sn.addEventListener("scroll",Hr,!1),function(){Or.forEach(function(Kr){return Kr.removeEventListener("scroll",Hr)}),window.removeEventListener("resize",Hr),window.removeEventListener("scroll",Hr),sn.removeEventListener("scroll",Hr)}}},[sn]),y.useEffect(function(){Pn.isHiddenScrollBar||wr(function(Or){var mr=Wt.current;return mr?(0,Fe.Z)((0,Fe.Z)({},Or),{},{scrollLeft:mr.scrollLeft/mr.scrollWidth*mr.clientWidth}):Or})},[Pn.isHiddenScrollBar]),an<=_n||!mn||Pn.isHiddenScrollBar?null:y.createElement("div",{style:{height:(0,ot.Z)(),width:_n,bottom:Qt},className:"".concat(Bn,"-sticky-scroll")},y.createElement("div",{onMouseDown:Vr,ref:hn,className:Je()("".concat(Bn,"-sticky-scroll-bar"),(0,Re.Z)({},"".concat(Bn,"-sticky-scroll-bar-active"),Wr)),style:{width:"".concat(mn,"px"),transform:"translate3d(".concat(Pn.scrollLeft,"px, 0, 0)")}}))},Kt=y.forwardRef(fn);function gn(ct){return null}var xn=gn;function Ln(ct){return null}var Un=Ln,hr="rc-table",ar=[],Sr={};function Cr(){return"No Data"}function yr(ct,at){var Et=(0,Fe.Z)({rowKey:"key",prefixCls:hr,emptyText:Cr},ct),Rt=Et.prefixCls,Ht=Et.className,Wt=Et.rowClassName,Zt=Et.style,Qt=Et.data,sn=Et.rowKey,un=Et.scroll,Bn=Et.tableLayout,an=Et.direction,_n=Et.title,mn=Et.footer,hn=Et.summary,Fn=Et.caption,Dn=Et.id,Pn=Et.showHeader,wr=Et.components,ur=Et.emptyText,Tr=Et.onRow,zr=Et.onHeaderRow,Wr=Et.onScroll,Gr=Et.internalHooks,Ar=Et.transformColumns,Ir=Et.internalRefs,Vr=Et.tailor,xi=Et.getContainerWidth,Hr=Et.sticky,ei=Et.rowHoverable,Or=ei===void 0?!0:ei,mr=Qt||ar,Kr=!!mr.length,ci=Gr===fe,yi=y.useCallback(function(ho,go){return(0,ze.Z)(wr,ho)||go},[wr]),Ur=y.useMemo(function(){return typeof sn=="function"?sn:function(ho){var go=ho&&ho[sn];return go}},[sn]),jr=yi(["body"]),bi=Ut(),no=(0,de.Z)(bi,3),po=no[0],Ui=no[1],mo=no[2],Io=xt(Et,mr,Ur),Vi=(0,de.Z)(Io,6),Xi=Vi[0],To=Vi[1],Go=Vi[2],di=Vi[3],ji=Vi[4],mi=Vi[5],ni=un==null?void 0:un.x,lo=y.useState(0),vo=(0,de.Z)(lo,2),Ro=vo[0],Lo=vo[1],Xo=jt((0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},Et),Xi),{},{expandable:!!Xi.expandedRowRender,columnTitle:Xi.columnTitle,expandedKeys:Go,getRowKey:Ur,onTriggerExpand:mi,expandIcon:di,expandIconColumnIndex:Xi.expandIconColumnIndex,direction:an,scrollWidth:ci&&Vr&&typeof ni=="number"?ni:null,clientWidth:Ro}),ci?Ar:null),oa=(0,de.Z)(Xo,4),_i=oa[0],Di=oa[1],bo=oa[2],Eo=oa[3],Co=bo!=null?bo:ni,ua=y.useMemo(function(){return{columns:_i,flattenColumns:Di}},[_i,Di]),Jo=y.useRef(),Fa=y.useRef(),No=y.useRef(),uo=y.useRef();y.useImperativeHandle(at,function(){return{nativeElement:Jo.current,scrollTo:function(go){var Ea;if(No.current instanceof HTMLElement){var ts=go.index,Ta=go.top,ul=go.key;if(rt(Ta)){var Zs;(Zs=No.current)===null||Zs===void 0||Zs.scrollTo({top:Ta})}else{var Ms,dl=ul!=null?ul:Ur(mr[ts]);(Ms=No.current.querySelector('[data-row-key="'.concat(dl,'"]')))===null||Ms===void 0||Ms.scrollIntoView()}}else(Ea=No.current)!==null&&Ea!==void 0&&Ea.scrollTo&&No.current.scrollTo(go)}}});var Ao=y.useRef(),Do=y.useState(!1),aa=(0,de.Z)(Do,2),Uo=aa[0],fo=aa[1],Bo=y.useState(!1),_o=(0,de.Z)(Bo,2),_a=_o[0],ta=_o[1],ka=y.useState(new Map),za=(0,de.Z)(ka,2),Cs=za[0],Mo=za[1],Sl=Ke(Di),Ra=Sl.map(function(ho){return Cs.get(ho)}),fs=y.useMemo(function(){return Ra},[Ra.join("_")]),qa=tn(fs,Di,an),Ha=un&&et(un.y),Oo=un&&et(Co)||!!Xi.fixed,es=Oo&&Di.some(function(ho){var go=ho.fixed;return go}),Hs=y.useRef(),xs=Gn(Hr,Rt),ws=xs.isSticky,kl=xs.offsetHeader,Rl=xs.offsetSummary,Pl=xs.offsetScroll,Nl=xs.stickyClassName,Xl=xs.container,Ki=y.useMemo(function(){return hn==null?void 0:hn(mr)},[hn,mr]),oo=(Ha||ws)&&y.isValidElement(Ki)&&Ki.type===pe&&Ki.props.fixed,Fo,Qo,ma;Ha&&(Qo={overflowY:Kr?"scroll":"auto",maxHeight:un.y}),Oo&&(Fo={overflowX:"auto"},Ha||(Qo={overflowY:"hidden"}),ma={width:Co===!0?"auto":Co,minWidth:"100%"});var da=y.useCallback(function(ho,go){Mo(function(Ea){if(Ea.get(ho)!==go){var ts=new Map(Ea);return ts.set(ho,go),ts}return Ea})},[]),ms=Lt(null),wa=(0,de.Z)(ms,2),ll=wa[0],Jl=wa[1];function _l(ho,go){go&&(typeof go=="function"?go(ho):go.scrollLeft!==ho&&(go.scrollLeft=ho,go.scrollLeft!==ho&&setTimeout(function(){go.scrollLeft=ho},0)))}var el=(0,ue.Z)(function(ho){var go=ho.currentTarget,Ea=ho.scrollLeft,ts=an==="rtl",Ta=typeof Ea=="number"?Ea:go.scrollLeft,ul=go||Sr;if(!Jl()||Jl()===ul){var Zs;ll(ul),_l(Ta,Fa.current),_l(Ta,No.current),_l(Ta,Ao.current),_l(Ta,(Zs=Hs.current)===null||Zs===void 0?void 0:Zs.setScrollLeft)}var Ms=go||Fa.current;if(Ms){var dl=ci&&Vr&&typeof Co=="number"?Co:Ms.scrollWidth,cc=Ms.clientWidth;if(dl===cc){fo(!1),ta(!1);return}ts?(fo(-Ta<dl-cc),ta(-Ta>0)):(fo(Ta>0),ta(Ta<dl-cc))}}),Bl=(0,ue.Z)(function(ho){el(ho),Wr==null||Wr(ho)}),tl=function(){if(Oo&&No.current){var go;el({currentTarget:(0,fr.bn)(No.current),scrollLeft:(go=No.current)===null||go===void 0?void 0:go.scrollLeft})}else fo(!1),ta(!1)},Ql=function(go){var Ea,ts=go.width;(Ea=Hs.current)===null||Ea===void 0||Ea.checkScrollBarVisible();var Ta=Jo.current?Jo.current.offsetWidth:ts;ci&&xi&&Jo.current&&(Ta=xi(Jo.current,Ta)||Ta),Ta!==Ro&&(tl(),Lo(Ta))},jl=y.useRef(!1);y.useEffect(function(){jl.current&&tl()},[Oo,Qt,_i.length]),y.useEffect(function(){jl.current=!0},[]);var ql=y.useState(0),gc=(0,de.Z)(ql,2),Us=gc[0],ec=gc[1],xc=y.useState(!0),tc=(0,de.Z)(xc,2),Cl=tc[0],wc=tc[1];(0,ae.Z)(function(){(!Vr||!ci)&&(No.current instanceof Element?ec((0,ot.o)(No.current).width):ec((0,ot.o)(uo.current).width)),wc((0,tt.G)("position","sticky"))},[]),y.useEffect(function(){ci&&Ir&&(Ir.body.current=No.current)});var Ec=y.useCallback(function(ho){return y.createElement(y.Fragment,null,y.createElement(Ve,ho),oo==="top"&&y.createElement(ke,ho,Ki))},[oo,Ki]),xl=y.useCallback(function(ho){return y.createElement(ke,ho,Ki)},[Ki]),nc=yi(["table"],"table"),wl=y.useMemo(function(){return Bn||(es?Co==="max-content"?"auto":"fixed":Ha||ws||Di.some(function(ho){var go=ho.ellipsis;return go})?"fixed":"auto")},[Ha,es,Di,Bn,ws]),rc,El={colWidths:fs,columCount:Di.length,stickyOffsets:qa,onHeaderRow:zr,fixHeader:Ha,scroll:un},ic=y.useMemo(function(){return Kr?null:typeof ur=="function"?ur():ur},[Kr,ur]),yc=y.createElement(vn,{data:mr,measureColumnWidth:Ha||Oo||ws}),oc=y.createElement(qn,{colWidths:Di.map(function(ho){var go=ho.width;return go}),columns:Di}),ac=Fn!=null?y.createElement("caption",{className:"".concat(Rt,"-caption")},Fn):void 0,Tc=(0,st.Z)(Et,{data:!0}),Fl=(0,st.Z)(Et,{aria:!0});if(Ha||ws){var nl;typeof jr=="function"?(nl=jr(mr,{scrollbarSize:Us,ref:No,onScroll:el}),El.colWidths=Di.map(function(ho,go){var Ea=ho.width,ts=go===Di.length-1?Ea-Us:Ea;return typeof ts=="number"&&!Number.isNaN(ts)?ts:0})):nl=y.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},Fo),Qo),onScroll:Bl,ref:No,className:Je()("".concat(Rt,"-body"))},y.createElement(nc,(0,b.Z)({style:(0,Fe.Z)((0,Fe.Z)({},ma),{},{tableLayout:wl})},Fl),ac,oc,yc,!oo&&Ki&&y.createElement(ke,{stickyOffsets:qa,flattenColumns:Di},Ki)));var cl=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({noData:!mr.length,maxContentScroll:Oo&&Co==="max-content"},El),ua),{},{direction:an,stickyClassName:Nl,onScroll:el});rc=y.createElement(y.Fragment,null,Pn!==!1&&y.createElement(On,(0,b.Z)({},cl,{stickyTopOffset:kl,className:"".concat(Rt,"-header"),ref:Fa}),Ec),nl,oo&&oo!=="top"&&y.createElement(On,(0,b.Z)({},cl,{stickyBottomOffset:Rl,className:"".concat(Rt,"-summary"),ref:Ao}),xl),ws&&No.current&&No.current instanceof Element&&y.createElement(Kt,{ref:Hs,offsetScroll:Pl,scrollBodyRef:No,onScroll:el,container:Xl,direction:an}))}else rc=y.createElement("div",{style:(0,Fe.Z)((0,Fe.Z)({},Fo),Qo),className:Je()("".concat(Rt,"-content")),onScroll:el,ref:No},y.createElement(nc,(0,b.Z)({style:(0,Fe.Z)((0,Fe.Z)({},ma),{},{tableLayout:wl})},Fl),ac,oc,Pn!==!1&&y.createElement(Ve,(0,b.Z)({},El,ua)),yc,Ki&&y.createElement(ke,{stickyOffsets:qa,flattenColumns:Di},Ki)));var sc=y.createElement("div",(0,b.Z)({className:Je()(Rt,Ht,(0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)((0,Re.Z)({},"".concat(Rt,"-rtl"),an==="rtl"),"".concat(Rt,"-ping-left"),Uo),"".concat(Rt,"-ping-right"),_a),"".concat(Rt,"-layout-fixed"),Bn==="fixed"),"".concat(Rt,"-fixed-header"),Ha),"".concat(Rt,"-fixed-column"),es),"".concat(Rt,"-fixed-column-gapped"),es&&Eo),"".concat(Rt,"-scroll-horizontal"),Oo),"".concat(Rt,"-has-fix-left"),Di[0]&&Di[0].fixed),"".concat(Rt,"-has-fix-right"),Di[Di.length-1]&&Di[Di.length-1].fixed==="right")),style:Zt,id:Dn,ref:Jo},Tc),_n&&y.createElement(Rn,{className:"".concat(Rt,"-title")},_n(mr)),y.createElement("div",{ref:uo,className:"".concat(Rt,"-container")},rc),mn&&y.createElement(Rn,{className:"".concat(Rt,"-footer")},mn(mr)));Oo&&(sc=y.createElement(Oe.Z,{onResize:Ql},sc));var lc=Ot(Di,qa,an),Ic=y.useMemo(function(){return{scrollX:Co,prefixCls:Rt,getComponent:yi,scrollbarSize:Us,direction:an,fixedInfoList:lc,isSticky:ws,supportSticky:Cl,componentWidth:Ro,fixHeader:Ha,fixColumn:es,horizonScroll:Oo,tableLayout:wl,rowClassName:Wt,expandedRowClassName:Xi.expandedRowClassName,expandIcon:di,expandableType:To,expandRowByClick:Xi.expandRowByClick,expandedRowRender:Xi.expandedRowRender,onTriggerExpand:mi,expandIconColumnIndex:Xi.expandIconColumnIndex,indentSize:Xi.indentSize,allColumnsFixedLeft:Di.every(function(ho){return ho.fixed==="left"}),emptyNode:ic,columns:_i,flattenColumns:Di,onColumnResize:da,hoverStartRow:po,hoverEndRow:Ui,onHover:mo,rowExpandable:Xi.rowExpandable,onRow:Tr,getRowKey:Ur,expandedKeys:Go,childrenColumnName:ji,rowHoverable:Or}},[Co,Rt,yi,Us,an,lc,ws,Cl,Ro,Ha,es,Oo,wl,Wt,Xi.expandedRowClassName,di,To,Xi.expandRowByClick,Xi.expandedRowRender,mi,Xi.expandIconColumnIndex,Xi.indentSize,ic,_i,Di,da,po,Ui,mo,Xi.rowExpandable,Tr,Ur,Go,ji,Or]);return y.createElement(be.Provider,{value:Ic},sc)}var pr=y.forwardRef(yr);function $r(ct){return ge(pr,ct)}var kr=$r();kr.EXPAND_COLUMN=ie,kr.INTERNAL_HOOKS=fe,kr.Column=xn,kr.ColumnGroup=Un,kr.Summary=Me;var Nr=kr,Yr=oe(48911),ai=ne(null),Rr=ne(null);function ii(ct,at,Et){var Rt=at||1;return Et[ct+Rt]-(Et[ct]||0)}function Dr(ct){var at=ct.rowInfo,Et=ct.column,Rt=ct.colIndex,Ht=ct.indent,Wt=ct.index,Zt=ct.component,Qt=ct.renderIndex,sn=ct.record,un=ct.style,Bn=ct.className,an=ct.inverse,_n=ct.getHeight,mn=Et.render,hn=Et.dataIndex,Fn=Et.className,Dn=Et.width,Pn=x(Rr,["columnsOffset"]),wr=Pn.columnsOffset,ur=cn(at,Et,Rt,Ht,Wt),Tr=ur.key,zr=ur.fixedInfo,Wr=ur.appendCellNode,Gr=ur.additionalCellProps,Ar=Gr.style,Ir=Gr.colSpan,Vr=Ir===void 0?1:Ir,xi=Gr.rowSpan,Hr=xi===void 0?1:xi,ei=Rt-1,Or=ii(ei,Vr,wr),mr=Vr>1?Dn-Or:0,Kr=(0,Fe.Z)((0,Fe.Z)((0,Fe.Z)({},Ar),un),{},{flex:"0 0 ".concat(Or,"px"),width:"".concat(Or,"px"),marginRight:mr,pointerEvents:"auto"}),ci=y.useMemo(function(){return an?Hr<=1:Vr===0||Hr===0||Hr>1},[Hr,Vr,an]);ci?Kr.visibility="hidden":an&&(Kr.height=_n==null?void 0:_n(Hr));var yi=ci?function(){return null}:mn,Ur={};return(Hr===0||Vr===0)&&(Ur.rowSpan=1,Ur.colSpan=1),y.createElement(bt,(0,b.Z)({className:Je()(Fn,Bn),ellipsis:Et.ellipsis,align:Et.align,scope:Et.rowScope,component:Zt,prefixCls:at.prefixCls,key:Tr,record:sn,index:Wt,renderIndex:Qt,dataIndex:hn,render:yi,shouldCellUpdate:Et.shouldCellUpdate},zr,{appendNode:Wr,additionalProps:(0,Fe.Z)((0,Fe.Z)({},Gr),{},{style:Kr},Ur)}))}var fi=Dr,Lr=["data","index","className","rowKey","style","extra","getHeight"],wi=y.forwardRef(function(ct,at){var Et=ct.data,Rt=ct.index,Ht=ct.className,Wt=ct.rowKey,Zt=ct.style,Qt=ct.extra,sn=ct.getHeight,un=(0,Be.Z)(ct,Lr),Bn=Et.record,an=Et.indent,_n=Et.index,mn=x(be,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),hn=mn.scrollX,Fn=mn.flattenColumns,Dn=mn.prefixCls,Pn=mn.fixColumn,wr=mn.componentWidth,ur=x(ai,["getComponent"]),Tr=ur.getComponent,zr=Bt(Bn,Wt,Rt,an),Wr=Tr(["body","row"],"div"),Gr=Tr(["body","cell"],"div"),Ar=zr.rowSupportExpand,Ir=zr.expanded,Vr=zr.rowProps,xi=zr.expandedRowRender,Hr=zr.expandedRowClassName,ei;if(Ar&&Ir){var Or=xi(Bn,Rt,an+1,Ir),mr=Pt(Hr,Bn,Rt,an),Kr={};Pn&&(Kr={style:(0,Re.Z)({},"--virtual-width","".concat(wr,"px"))});var ci="".concat(Dn,"-expanded-row-cell");ei=y.createElement(Wr,{className:Je()("".concat(Dn,"-expanded-row"),"".concat(Dn,"-expanded-row-level-").concat(an+1),mr)},y.createElement(bt,{component:Gr,prefixCls:Dn,className:Je()(ci,(0,Re.Z)({},"".concat(ci,"-fixed"),Pn)),additionalProps:Kr},Or))}var yi=(0,Fe.Z)((0,Fe.Z)({},Zt),{},{width:hn});Qt&&(yi.position="absolute",yi.pointerEvents="none");var Ur=y.createElement(Wr,(0,b.Z)({},Vr,un,{"data-row-key":Wt,ref:Ar?null:at,className:Je()(Ht,"".concat(Dn,"-row"),Vr==null?void 0:Vr.className,(0,Re.Z)({},"".concat(Dn,"-row-extra"),Qt)),style:(0,Fe.Z)((0,Fe.Z)({},yi),Vr==null?void 0:Vr.style)}),Fn.map(function(jr,bi){return y.createElement(fi,{key:bi,component:Gr,rowInfo:zr,column:jr,colIndex:bi,indent:an,index:Rt,renderIndex:_n,record:Bn,inverse:Qt,getHeight:sn})}));return Ar?y.createElement("div",{ref:at},Ur,ei):Ur}),Jr=_e(wi),Zr=Jr,si=y.forwardRef(function(ct,at){var Et=ct.data,Rt=ct.onScroll,Ht=x(be,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Wt=Ht.flattenColumns,Zt=Ht.onColumnResize,Qt=Ht.getRowKey,sn=Ht.expandedKeys,un=Ht.prefixCls,Bn=Ht.childrenColumnName,an=Ht.scrollX,_n=Ht.direction,mn=x(ai),hn=mn.sticky,Fn=mn.scrollY,Dn=mn.listItemHeight,Pn=mn.getComponent,wr=mn.onScroll,ur=y.useRef(),Tr=Ft(Et,Bn,sn,Qt),zr=y.useMemo(function(){var ei=0;return Wt.map(function(Or){var mr=Or.width,Kr=Or.key;return ei+=mr,[Kr,mr,ei]})},[Wt]),Wr=y.useMemo(function(){return zr.map(function(ei){return ei[2]})},[zr]);y.useEffect(function(){zr.forEach(function(ei){var Or=(0,de.Z)(ei,2),mr=Or[0],Kr=Or[1];Zt(mr,Kr)})},[zr]),y.useImperativeHandle(at,function(){var ei,Or={scrollTo:function(Kr){var ci;(ci=ur.current)===null||ci===void 0||ci.scrollTo(Kr)},nativeElement:(ei=ur.current)===null||ei===void 0?void 0:ei.nativeElement};return Object.defineProperty(Or,"scrollLeft",{get:function(){var Kr;return((Kr=ur.current)===null||Kr===void 0?void 0:Kr.getScrollInfo().x)||0},set:function(Kr){var ci;(ci=ur.current)===null||ci===void 0||ci.scrollTo({left:Kr})}}),Or});var Gr=function(Or,mr){var Kr,ci=(Kr=Tr[mr])===null||Kr===void 0?void 0:Kr.record,yi=Or.onCell;if(yi){var Ur,jr=yi(ci,mr);return(Ur=jr==null?void 0:jr.rowSpan)!==null&&Ur!==void 0?Ur:1}return 1},Ar=function(Or){var mr=Or.start,Kr=Or.end,ci=Or.getSize,yi=Or.offsetY;if(Kr<0)return null;for(var Ur=Wt.filter(function(di){return Gr(di,mr)===0}),jr=mr,bi=function(ji){if(Ur=Ur.filter(function(mi){return Gr(mi,ji)===0}),!Ur.length)return jr=ji,1},no=mr;no>=0&&!bi(no);no-=1);for(var po=Wt.filter(function(di){return Gr(di,Kr)!==1}),Ui=Kr,mo=function(ji){if(po=po.filter(function(mi){return Gr(mi,ji)!==1}),!po.length)return Ui=Math.max(ji-1,Kr),1},Io=Kr;Io<Tr.length&&!mo(Io);Io+=1);for(var Vi=[],Xi=function(ji){var mi=Tr[ji];if(!mi)return 1;Wt.some(function(ni){return Gr(ni,ji)>1})&&Vi.push(ji)},To=jr;To<=Ui;To+=1)Xi(To);var Go=Vi.map(function(di){var ji=Tr[di],mi=Qt(ji.record,di),ni=function(Ro){var Lo=di+Ro-1,Xo=Qt(Tr[Lo].record,Lo),oa=ci(mi,Xo);return oa.bottom-oa.top},lo=ci(mi);return y.createElement(Zr,{key:di,data:ji,rowKey:mi,index:di,style:{top:-yi+lo.top},extra:!0,getHeight:ni})});return Go},Ir=y.useMemo(function(){return{columnsOffset:Wr}},[Wr]),Vr="".concat(un,"-tbody"),xi=Pn(["body","wrapper"]),Hr={};return hn&&(Hr.position="sticky",Hr.bottom=0,(0,je.Z)(hn)==="object"&&hn.offsetScroll&&(Hr.bottom=hn.offsetScroll)),y.createElement(Rr.Provider,{value:Ir},y.createElement(Yr.Z,{fullHeight:!1,ref:ur,prefixCls:"".concat(Vr,"-virtual"),styles:{horizontalScrollBar:Hr},className:Vr,height:Fn,itemHeight:Dn||24,data:Tr,itemKey:function(Or){return Qt(Or.record)},component:xi,scrollWidth:an,direction:_n,onVirtualScroll:function(Or){var mr,Kr=Or.x;Rt({currentTarget:(mr=ur.current)===null||mr===void 0?void 0:mr.nativeElement,scrollLeft:Kr})},onScroll:wr,extraRender:Ar},function(ei,Or,mr){var Kr=Qt(ei.record,Or);return y.createElement(Zr,{data:ei,rowKey:Kr,index:Or,style:mr.style})}))}),vi=_e(si),pi=vi,ri=function(at,Et){var Rt=Et.ref,Ht=Et.onScroll;return y.createElement(pi,{ref:Rt,data:at,onScroll:Ht})};function Er(ct,at){var Et=ct.data,Rt=ct.columns,Ht=ct.scroll,Wt=ct.sticky,Zt=ct.prefixCls,Qt=Zt===void 0?hr:Zt,sn=ct.className,un=ct.listItemHeight,Bn=ct.components,an=ct.onScroll,_n=Ht||{},mn=_n.x,hn=_n.y;typeof mn!="number"&&(mn=1),typeof hn!="number"&&(hn=500);var Fn=(0,pt.zX)(function(wr,ur){return(0,ze.Z)(Bn,wr)||ur}),Dn=(0,pt.zX)(an),Pn=y.useMemo(function(){return{sticky:Wt,scrollY:hn,listItemHeight:un,getComponent:Fn,onScroll:Dn}},[Wt,hn,un,Fn,Dn]);return y.createElement(ai.Provider,{value:Pn},y.createElement(Nr,(0,b.Z)({},ct,{className:Je()(sn,"".concat(Qt,"-virtual")),scroll:(0,Fe.Z)((0,Fe.Z)({},Ht),{},{x:mn}),components:(0,Fe.Z)((0,Fe.Z)({},Bn),{},{body:Et!=null&&Et.length?ri:void 0}),columns:Rt,internalHooks:fe,tailor:!0,ref:at})))}var kn=y.forwardRef(Er);function Xn(ct){return ge(kn,ct)}var er=Xn(),zn=null,Br=ct=>null,Jn=ct=>null,gr=oe(84105),br=oe(82661),ui=oe(34643),Ri=oe(34061),gi=oe(18929);function Hi(ct){const[at,Et]=(0,y.useState)(null);return[(0,y.useCallback)((Wt,Zt,Qt)=>{const sn=at!=null?at:Wt,un=Math.min(sn||0,Wt),Bn=Math.max(sn||0,Wt),an=Zt.slice(un,Bn+1).map(hn=>ct(hn)),_n=an.some(hn=>!Qt.has(hn)),mn=[];return an.forEach(hn=>{_n?(Qt.has(hn)||mn.push(hn),Qt.add(hn)):(Qt.delete(hn),mn.push(hn))}),Et(_n?Bn:null),mn},[at]),Wt=>{Et(Wt)}]}var Oi=oe(32383),Pi=oe(62673),ki=oe(75727),Fi=oe(47889);const Ni={},qi="SELECT_ALL",So="SELECT_INVERT",xo="SELECT_NONE",eo=[],Yi=(ct,at)=>{let Et=[];return(at||[]).forEach(Rt=>{Et.push(Rt),Rt&&typeof Rt=="object"&&ct in Rt&&(Et=[].concat((0,En.Z)(Et),(0,En.Z)(Yi(ct,Rt[ct]))))}),Et};var Xr=(ct,at)=>{const{preserveSelectedRowKeys:Et,selectedRowKeys:Rt,defaultSelectedRowKeys:Ht,getCheckboxProps:Wt,onChange:Zt,onSelect:Qt,onSelectAll:sn,onSelectInvert:un,onSelectNone:Bn,onSelectMultiple:an,columnWidth:_n,type:mn,selections:hn,fixed:Fn,renderCell:Dn,hideSelectAll:Pn,checkStrictly:wr=!0}=at||{},{prefixCls:ur,data:Tr,pageData:zr,getRecordByKey:Wr,getRowKey:Gr,expandType:Ar,childrenColumnName:Ir,locale:Vr,getPopupContainer:xi}=ct,Hr=(0,Oi.ln)("Table"),[ei,Or]=Hi(di=>di),[mr,Kr]=(0,gi.Z)(Rt||Ht||eo,{value:Rt}),ci=y.useRef(new Map),yi=(0,y.useCallback)(di=>{if(Et){const ji=new Map;di.forEach(mi=>{let ni=Wr(mi);!ni&&ci.current.has(mi)&&(ni=ci.current.get(mi)),ji.set(mi,ni)}),ci.current=ji}},[Wr,Et]);y.useEffect(()=>{yi(mr)},[mr]);const Ur=(0,y.useMemo)(()=>Yi(Ir,zr),[Ir,zr]),{keyEntities:jr}=(0,y.useMemo)(()=>{if(wr)return{keyEntities:null};let di=Tr;if(Et){const ji=new Set(Ur.map((ni,lo)=>Gr(ni,lo))),mi=Array.from(ci.current).reduce((ni,lo)=>{let[vo,Ro]=lo;return ji.has(vo)?ni:ni.concat(Ro)},[]);di=[].concat((0,En.Z)(di),(0,En.Z)(mi))}return(0,Ri.I8)(di,{externalGetKey:Gr,childrenPropName:Ir})},[Tr,Gr,wr,Ir,Et,Ur]),bi=(0,y.useMemo)(()=>{const di=new Map;return Ur.forEach((ji,mi)=>{const ni=Gr(ji,mi),lo=(Wt?Wt(ji):null)||{};di.set(ni,lo)}),di},[Ur,Gr,Wt]),no=(0,y.useCallback)(di=>{const ji=Gr(di);let mi;return bi.has(ji)?mi=bi.get(Gr(di)):mi=Wt?Wt(di):void 0,!!(mi!=null&&mi.disabled)},[bi,Gr]),[po,Ui]=(0,y.useMemo)(()=>{if(wr)return[mr||[],[]];const{checkedKeys:di,halfCheckedKeys:ji}=(0,ui.S)(mr,!0,jr,no);return[di||[],ji]},[mr,wr,jr,no]),mo=(0,y.useMemo)(()=>{const di=mn==="radio"?po.slice(0,1):po;return new Set(di)},[po,mn]),Io=(0,y.useMemo)(()=>mn==="radio"?new Set:new Set(Ui),[Ui,mn]);y.useEffect(()=>{at||Kr(eo)},[!!at]);const Vi=(0,y.useCallback)((di,ji)=>{let mi,ni;yi(di),Et?(mi=di,ni=di.map(lo=>ci.current.get(lo))):(mi=[],ni=[],di.forEach(lo=>{const vo=Wr(lo);vo!==void 0&&(mi.push(lo),ni.push(vo))})),Kr(mi),Zt==null||Zt(mi,ni,{type:ji})},[Kr,Wr,Zt,Et]),Xi=(0,y.useCallback)((di,ji,mi,ni)=>{if(Qt){const lo=mi.map(vo=>Wr(vo));Qt(Wr(di),ji,lo,ni)}Vi(mi,"single")},[Qt,Wr,Vi]),To=(0,y.useMemo)(()=>!hn||Pn?null:(hn===!0?[qi,So,xo]:hn).map(ji=>ji===qi?{key:"all",text:Vr.selectionAll,onSelect(){Vi(Tr.map((mi,ni)=>Gr(mi,ni)).filter(mi=>{const ni=bi.get(mi);return!(ni!=null&&ni.disabled)||mo.has(mi)}),"all")}}:ji===So?{key:"invert",text:Vr.selectInvert,onSelect(){const mi=new Set(mo);zr.forEach((lo,vo)=>{const Ro=Gr(lo,vo),Lo=bi.get(Ro);Lo!=null&&Lo.disabled||(mi.has(Ro)?mi.delete(Ro):mi.add(Ro))});const ni=Array.from(mi);un&&(Hr.deprecated(!1,"onSelectInvert","onChange"),un(ni)),Vi(ni,"invert")}}:ji===xo?{key:"none",text:Vr.selectNone,onSelect(){Bn==null||Bn(),Vi(Array.from(mo).filter(mi=>{const ni=bi.get(mi);return ni==null?void 0:ni.disabled}),"none")}}:ji).map(ji=>Object.assign(Object.assign({},ji),{onSelect:function(){for(var mi,ni,lo=arguments.length,vo=new Array(lo),Ro=0;Ro<lo;Ro++)vo[Ro]=arguments[Ro];(ni=ji.onSelect)===null||ni===void 0||(mi=ni).call.apply(mi,[ji].concat(vo)),Or(null)}})),[hn,mo,zr,Gr,un,Vi]);return[(0,y.useCallback)(di=>{var ji;if(!at)return di.filter(uo=>uo!==Ni);let mi=(0,En.Z)(di);const ni=new Set(mo),lo=Ur.map(Gr).filter(uo=>!bi.get(uo).disabled),vo=lo.every(uo=>ni.has(uo)),Ro=lo.some(uo=>ni.has(uo)),Lo=()=>{const uo=[];vo?lo.forEach(Do=>{ni.delete(Do),uo.push(Do)}):lo.forEach(Do=>{ni.has(Do)||(ni.add(Do),uo.push(Do))});const Ao=Array.from(ni);sn==null||sn(!vo,Ao.map(Do=>Wr(Do)),uo.map(Do=>Wr(Do))),Vi(Ao,"all"),Or(null)};let Xo,oa;if(mn!=="radio"){let uo;if(To){const fo={getPopupContainer:xi,items:To.map((Bo,_o)=>{const{key:_a,text:ta,onSelect:ka}=Bo;return{key:_a!=null?_a:_o,onClick:()=>{ka==null||ka(lo)},label:ta}})};uo=y.createElement("div",{className:`${ur}-selection-extra`},y.createElement(ki.Z,{menu:fo,getPopupContainer:xi},y.createElement("span",null,y.createElement(gr.Z,null))))}const Ao=Ur.map((fo,Bo)=>{const _o=Gr(fo,Bo),_a=bi.get(_o)||{};return Object.assign({checked:ni.has(_o)},_a)}).filter(fo=>{let{disabled:Bo}=fo;return Bo}),Do=!!Ao.length&&Ao.length===Ur.length,aa=Do&&Ao.every(fo=>{let{checked:Bo}=fo;return Bo}),Uo=Do&&Ao.some(fo=>{let{checked:Bo}=fo;return Bo});oa=y.createElement(Pi.default,{checked:Do?aa:!!Ur.length&&vo,indeterminate:Do?!aa&&Uo:!vo&&Ro,onChange:Lo,disabled:Ur.length===0||Do,"aria-label":uo?"Custom selection":"Select all",skipGroup:!0}),Xo=!Pn&&y.createElement("div",{className:`${ur}-selection`},oa,uo)}let _i;mn==="radio"?_i=(uo,Ao,Do)=>{const aa=Gr(Ao,Do),Uo=ni.has(aa),fo=bi.get(aa);return{node:y.createElement(Fi.ZP,Object.assign({},fo,{checked:Uo,onClick:Bo=>{var _o;Bo.stopPropagation(),(_o=fo==null?void 0:fo.onClick)===null||_o===void 0||_o.call(fo,Bo)},onChange:Bo=>{var _o;ni.has(aa)||Xi(aa,!0,[aa],Bo.nativeEvent),(_o=fo==null?void 0:fo.onChange)===null||_o===void 0||_o.call(fo,Bo)}})),checked:Uo}}:_i=(uo,Ao,Do)=>{var aa;const Uo=Gr(Ao,Do),fo=ni.has(Uo),Bo=Io.has(Uo),_o=bi.get(Uo);let _a;return Ar==="nest"?_a=Bo:_a=(aa=_o==null?void 0:_o.indeterminate)!==null&&aa!==void 0?aa:Bo,{node:y.createElement(Pi.default,Object.assign({},_o,{indeterminate:_a,checked:fo,skipGroup:!0,onClick:ta=>{var ka;ta.stopPropagation(),(ka=_o==null?void 0:_o.onClick)===null||ka===void 0||ka.call(_o,ta)},onChange:ta=>{var ka;const{nativeEvent:za}=ta,{shiftKey:Cs}=za,Mo=lo.findIndex(Ra=>Ra===Uo),Sl=po.some(Ra=>lo.includes(Ra));if(Cs&&wr&&Sl){const Ra=ei(Mo,lo,ni),fs=Array.from(ni);an==null||an(!fo,fs.map(qa=>Wr(qa)),Ra.map(qa=>Wr(qa))),Vi(fs,"multiple")}else{const Ra=po;if(wr){const fs=fo?(0,br._5)(Ra,Uo):(0,br.L0)(Ra,Uo);Xi(Uo,!fo,fs,za)}else{const fs=(0,ui.S)([].concat((0,En.Z)(Ra),[Uo]),!0,jr,no),{checkedKeys:qa,halfCheckedKeys:Ha}=fs;let Oo=qa;if(fo){const es=new Set(qa);es.delete(Uo),Oo=(0,ui.S)(Array.from(es),{checked:!1,halfCheckedKeys:Ha},jr,no).checkedKeys}Xi(Uo,!fo,Oo,za)}}Or(fo?null:Mo),(ka=_o==null?void 0:_o.onChange)===null||ka===void 0||ka.call(_o,ta)}})),checked:fo}};const Di=(uo,Ao,Do)=>{const{node:aa,checked:Uo}=_i(uo,Ao,Do);return Dn?Dn(Uo,Ao,Do,aa):aa};if(!mi.includes(Ni))if(mi.findIndex(uo=>{var Ao;return((Ao=uo[Yn])===null||Ao===void 0?void 0:Ao.columnType)==="EXPAND_COLUMN"})===0){const[uo,...Ao]=mi;mi=[uo,Ni].concat((0,En.Z)(Ao))}else mi=[Ni].concat((0,En.Z)(mi));const bo=mi.indexOf(Ni);mi=mi.filter((uo,Ao)=>uo!==Ni||Ao===bo);const Eo=mi[bo-1],Co=mi[bo+1];let ua=Fn;ua===void 0&&((Co==null?void 0:Co.fixed)!==void 0?ua=Co.fixed:(Eo==null?void 0:Eo.fixed)!==void 0&&(ua=Eo.fixed)),ua&&Eo&&((ji=Eo[Yn])===null||ji===void 0?void 0:ji.columnType)==="EXPAND_COLUMN"&&Eo.fixed===void 0&&(Eo.fixed=ua);const Jo=Je()(`${ur}-selection-col`,{[`${ur}-selection-col-with-dropdown`]:hn&&mn==="checkbox"}),Fa=()=>at!=null&&at.columnTitle?typeof at.columnTitle=="function"?at.columnTitle(oa):at.columnTitle:Xo,No={fixed:ua,width:_n,className:`${ur}-selection-column`,title:Fa(),render:Di,onCell:at.onCell,[Yn]:{className:Jo}};return mi.map(uo=>uo===Ni?No:uo)},[Gr,Ur,at,po,mo,Io,_n,To,Ar,bi,an,Xi,no]),mo]},$i=oe(2738);function ro(ct,at){return ct._antProxy=ct._antProxy||{},Object.keys(at).forEach(Et=>{if(!(Et in ct._antProxy)){const Rt=ct[Et];ct._antProxy[Et]=Rt,ct[Et]=at[Et]}}),ct}function ao(ct,at){return(0,y.useImperativeHandle)(ct,()=>{const Et=at(),{nativeElement:Rt}=Et;return typeof Proxy!="undefined"?new Proxy(Rt,{get(Ht,Wt){return Et[Wt]?Et[Wt]:Reflect.get(Ht,Wt)}}):ro(Rt,Et)})}var la=oe(83010),Vo=oe(48755),Ko=oe(38406),ha=oe(83397),wo=oe(31756),Zo=oe(13783),pa=oe(85981),xa=oe(31709),ko=oe(29787),Za=oe(57700);function Va(ct){return at=>{const{prefixCls:Et,onExpand:Rt,record:Ht,expanded:Wt,expandable:Zt}=at,Qt=`${Et}-row-expand-icon`;return y.createElement("button",{type:"button",onClick:sn=>{Rt(Ht,sn),sn.stopPropagation()},className:Je()(Qt,{[`${Qt}-spaced`]:!Zt,[`${Qt}-expanded`]:Zt&&Wt,[`${Qt}-collapsed`]:Zt&&!Wt}),"aria-label":Wt?ct.collapse:ct.expand,"aria-expanded":Wt})}}var Ii=Va;function Zi(ct){return(Et,Rt)=>{const Ht=Et.querySelector(`.${ct}-container`);let Wt=Rt;if(Ht){const Zt=getComputedStyle(Ht),Qt=parseInt(Zt.borderLeftWidth,10),sn=parseInt(Zt.borderRightWidth,10);Wt=Rt-Qt-sn}return Wt}}const Ei=(ct,at)=>"key"in ct&&ct.key!==void 0&&ct.key!==null?ct.key:ct.dataIndex?Array.isArray(ct.dataIndex)?ct.dataIndex.join("."):ct.dataIndex:at;function Mi(ct,at){return at?`${at}-${ct}`:`${ct}`}const io=(ct,at)=>typeof ct=="function"?ct(at):ct,to=(ct,at)=>{const Et=io(ct,at);return Object.prototype.toString.call(Et)==="[object Object]"?"":Et};var ea={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Wo=ea,ca=oe(7657),$o=function(at,Et){return y.createElement(ca.Z,(0,b.Z)({},at,{ref:Et,icon:Wo}))},Na=y.forwardRef($o),os=Na,Aa=oe(9981),Ka=oe(40192);function Ya(ct){const at=y.useRef(ct),Et=(0,Ka.Z)();return[()=>at.current,Rt=>{at.current=Rt,Et()}]}var Ba=oe(7939),as=oe(584),Xa=oe(93041),il=oe(78857),Ja=oe(18287),vs=oe(47472),Wa=oe(49397),$s=ct=>{const{value:at,filterSearch:Et,tablePrefixCls:Rt,locale:Ht,onChange:Wt}=ct;return Et?y.createElement("div",{className:`${Rt}-filter-dropdown-search`},y.createElement(Wa.Z,{prefix:y.createElement(vs.Z,null),placeholder:Ht.filterSearchPlaceholder,onChange:Wt,value:at,htmlSize:1,className:`${Rt}-filter-dropdown-search-input`})):null},Es=oe(10228);const hl=ct=>{const{keyCode:at}=ct;at===Es.Z.ENTER&&ct.stopPropagation()};var Gs=y.forwardRef((ct,at)=>y.createElement("div",{className:ct.className,onClick:Et=>Et.stopPropagation(),onKeyDown:hl,ref:at},ct.children));function ss(ct){let at=[];return(ct||[]).forEach(Et=>{let{value:Rt,children:Ht}=Et;at.push(Rt),Ht&&(at=[].concat((0,En.Z)(at),(0,En.Z)(ss(Ht))))}),at}function gs(ct){return ct.some(at=>{let{children:Et}=at;return Et})}function ks(ct,at){return typeof at=="string"||typeof at=="number"?at==null?void 0:at.toString().toLowerCase().includes(ct.trim().toLowerCase()):!1}function Vs(ct){let{filters:at,prefixCls:Et,filteredKeys:Rt,filterMultiple:Ht,searchValue:Wt,filterSearch:Zt}=ct;return at.map((Qt,sn)=>{const un=String(Qt.value);if(Qt.children)return{key:un||sn,label:Qt.text,popupClassName:`${Et}-dropdown-submenu`,children:Vs({filters:Qt.children,prefixCls:Et,filteredKeys:Rt,filterMultiple:Ht,searchValue:Wt,filterSearch:Zt})};const Bn=Ht?Pi.default:Fi.ZP,an={key:Qt.value!==void 0?un:sn,label:y.createElement(y.Fragment,null,y.createElement(Bn,{checked:Rt.includes(un)}),y.createElement("span",null,Qt.text))};return Wt.trim()?typeof Zt=="function"?Zt(Wt,Qt)?an:null:ks(Wt,Qt.text)?an:null:an})}function ys(ct){return ct||[]}var Rs=ct=>{var at,Et,Rt,Ht;const{tablePrefixCls:Wt,prefixCls:Zt,column:Qt,dropdownPrefixCls:sn,columnKey:un,filterOnClose:Bn,filterMultiple:an,filterMode:_n="menu",filterSearch:mn=!1,filterState:hn,triggerFilter:Fn,locale:Dn,children:Pn,getPopupContainer:wr,rootClassName:ur}=ct,{filterResetToDefaultFilteredValue:Tr,defaultFilteredValue:zr,filterDropdownProps:Wr={},filterDropdownOpen:Gr,filterDropdownVisible:Ar,onFilterDropdownVisibleChange:Ir,onFilterDropdownOpenChange:Vr}=Qt,[xi,Hr]=y.useState(!1),ei=!!(hn&&(!((at=hn.filteredKeys)===null||at===void 0)&&at.length||hn.forceFiltered)),Or=_i=>{var Di;Hr(_i),(Di=Wr.onOpenChange)===null||Di===void 0||Di.call(Wr,_i),Vr==null||Vr(_i),Ir==null||Ir(_i)},mr=(Ht=(Rt=(Et=Wr.open)!==null&&Et!==void 0?Et:Gr)!==null&&Rt!==void 0?Rt:Ar)!==null&&Ht!==void 0?Ht:xi,Kr=hn==null?void 0:hn.filteredKeys,[ci,yi]=Ya(ys(Kr)),Ur=_i=>{let{selectedKeys:Di}=_i;yi(Di)},jr=(_i,Di)=>{let{node:bo,checked:Eo}=Di;Ur(an?{selectedKeys:_i}:{selectedKeys:Eo&&bo.key?[bo.key]:[]})};y.useEffect(()=>{xi&&Ur({selectedKeys:ys(Kr)})},[Kr]);const[bi,no]=y.useState([]),po=_i=>{no(_i)},[Ui,mo]=y.useState(""),Io=_i=>{const{value:Di}=_i.target;mo(Di)};y.useEffect(()=>{xi||mo("")},[xi]);const Vi=_i=>{const Di=_i!=null&&_i.length?_i:null;if(Di===null&&(!hn||!hn.filteredKeys)||(0,se.Z)(Di,hn==null?void 0:hn.filteredKeys,!0))return null;Fn({column:Qt,key:un,filteredKeys:Di})},Xi=()=>{Or(!1),Vi(ci())},To=function(){let{confirm:_i,closeDropdown:Di}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};_i&&Vi([]),Di&&Or(!1),mo(""),yi(Tr?(zr||[]).map(bo=>String(bo)):[])},Go=function(){let{closeDropdown:_i}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};_i&&Or(!1),Vi(ci())},di=(_i,Di)=>{Di.source==="trigger"&&(_i&&Kr!==void 0&&yi(ys(Kr)),Or(_i),!_i&&!Qt.filterDropdown&&Bn&&Xi())},ji=Je()({[`${sn}-menu-without-submenu`]:!gs(Qt.filters||[])}),mi=_i=>{if(_i.target.checked){const Di=ss(Qt==null?void 0:Qt.filters).map(bo=>String(bo));yi(Di)}else yi([])},ni=_i=>{let{filters:Di}=_i;return(Di||[]).map((bo,Eo)=>{const Co=String(bo.value),ua={title:bo.text,key:bo.value!==void 0?Co:String(Eo)};return bo.children&&(ua.children=ni({filters:bo.children})),ua})},lo=_i=>{var Di;return Object.assign(Object.assign({},_i),{text:_i.title,value:_i.key,children:((Di=_i.children)===null||Di===void 0?void 0:Di.map(bo=>lo(bo)))||[]})};let vo;const{direction:Ro,renderEmpty:Lo}=y.useContext(Vo.E_);if(typeof Qt.filterDropdown=="function")vo=Qt.filterDropdown({prefixCls:`${sn}-custom`,setSelectedKeys:_i=>Ur({selectedKeys:_i}),selectedKeys:ci(),confirm:Go,clearFilters:To,filters:Qt.filters,visible:mr,close:()=>{Or(!1)}});else if(Qt.filterDropdown)vo=Qt.filterDropdown;else{const _i=ci()||[],Di=()=>{var Eo,Co;const ua=(Eo=Lo==null?void 0:Lo("Table.filter"))!==null&&Eo!==void 0?Eo:y.createElement(as.Z,{image:as.Z.PRESENTED_IMAGE_SIMPLE,description:Dn.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((Qt.filters||[]).length===0)return ua;if(_n==="tree")return y.createElement(y.Fragment,null,y.createElement($s,{filterSearch:mn,value:Ui,onChange:Io,tablePrefixCls:Wt,locale:Dn}),y.createElement("div",{className:`${Wt}-filter-dropdown-tree`},an?y.createElement(Pi.default,{checked:_i.length===ss(Qt.filters).length,indeterminate:_i.length>0&&_i.length<ss(Qt.filters).length,className:`${Wt}-filter-dropdown-checkall`,onChange:mi},(Co=Dn==null?void 0:Dn.filterCheckall)!==null&&Co!==void 0?Co:Dn==null?void 0:Dn.filterCheckAll):null,y.createElement(Ja.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:an,checkStrictly:!an,className:`${sn}-menu`,onCheck:jr,checkedKeys:_i,selectedKeys:_i,showIcon:!1,treeData:ni({filters:Qt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ui.trim()?No=>typeof mn=="function"?mn(Ui,lo(No)):ks(Ui,No.title):void 0})));const Jo=Vs({filters:Qt.filters||[],filterSearch:mn,prefixCls:Zt,filteredKeys:ci(),filterMultiple:an,searchValue:Ui}),Fa=Jo.every(No=>No===null);return y.createElement(y.Fragment,null,y.createElement($s,{filterSearch:mn,value:Ui,onChange:Io,tablePrefixCls:Wt,locale:Dn}),Fa?ua:y.createElement(Xa.default,{selectable:!0,multiple:an,prefixCls:`${sn}-menu`,className:ji,onSelect:Ur,onDeselect:Ur,selectedKeys:_i,getPopupContainer:wr,openKeys:bi,onOpenChange:po,items:Jo}))},bo=()=>Tr?(0,se.Z)((zr||[]).map(Eo=>String(Eo)),_i,!0):_i.length===0;vo=y.createElement(y.Fragment,null,Di(),y.createElement("div",{className:`${Zt}-dropdown-btns`},y.createElement(Ba.ZP,{type:"link",size:"small",disabled:bo(),onClick:()=>To()},Dn.filterReset),y.createElement(Ba.ZP,{type:"primary",size:"small",onClick:Xi},Dn.filterConfirm)))}Qt.filterDropdown&&(vo=y.createElement(il.J,{selectable:void 0},vo)),vo=y.createElement(Gs,{className:`${Zt}-dropdown`},vo);const Xo=()=>{let _i;return typeof Qt.filterIcon=="function"?_i=Qt.filterIcon(ei):Qt.filterIcon?_i=Qt.filterIcon:_i=y.createElement(os,null),y.createElement("span",{role:"button",tabIndex:-1,className:Je()(`${Zt}-trigger`,{active:ei}),onClick:Di=>{Di.stopPropagation()}},_i)},oa=(0,Aa.Z)({trigger:["click"],placement:Ro==="rtl"?"bottomLeft":"bottomRight",children:Xo(),getPopupContainer:wr},Object.assign(Object.assign({},Wr),{rootClassName:Je()(ur,Wr.rootClassName),open:mr,onOpenChange:di,dropdownRender:()=>typeof(Wr==null?void 0:Wr.dropdownRender)=="function"?Wr.dropdownRender(vo):vo}));return y.createElement("div",{className:`${Zt}-column`},y.createElement("span",{className:`${Wt}-column-title`},Pn),y.createElement(ki.Z,Object.assign({},oa)))};const Ts=(ct,at,Et)=>{let Rt=[];return(ct||[]).forEach((Ht,Wt)=>{var Zt;const Qt=Mi(Wt,Et);if(Ht.filters||"filterDropdown"in Ht||"onFilter"in Ht)if("filteredValue"in Ht){let sn=Ht.filteredValue;"filterDropdown"in Ht||(sn=(Zt=sn==null?void 0:sn.map(String))!==null&&Zt!==void 0?Zt:sn),Rt.push({column:Ht,key:Ei(Ht,Qt),filteredKeys:sn,forceFiltered:Ht.filtered})}else Rt.push({column:Ht,key:Ei(Ht,Qt),filteredKeys:at&&Ht.defaultFilteredValue?Ht.defaultFilteredValue:void 0,forceFiltered:Ht.filtered});"children"in Ht&&(Rt=[].concat((0,En.Z)(Rt),(0,En.Z)(Ts(Ht.children,at,Qt))))}),Rt};function ya(ct,at,Et,Rt,Ht,Wt,Zt,Qt,sn){return Et.map((un,Bn)=>{const an=Mi(Bn,Qt),{filterOnClose:_n=!0,filterMultiple:mn=!0,filterMode:hn,filterSearch:Fn}=un;let Dn=un;if(Dn.filters||Dn.filterDropdown){const Pn=Ei(Dn,an),wr=Rt.find(ur=>{let{key:Tr}=ur;return Pn===Tr});Dn=Object.assign(Object.assign({},Dn),{title:ur=>y.createElement(Rs,{tablePrefixCls:ct,prefixCls:`${ct}-filter`,dropdownPrefixCls:at,column:Dn,columnKey:Pn,filterState:wr,filterOnClose:_n,filterMultiple:mn,filterMode:hn,filterSearch:Fn,triggerFilter:Wt,locale:Ht,getPopupContainer:Zt,rootClassName:sn},io(un.title,ur))})}return"children"in Dn&&(Dn=Object.assign(Object.assign({},Dn),{children:ya(ct,at,Dn.children,Rt,Ht,Wt,Zt,an,sn)})),Dn})}const so=ct=>{const at={};return ct.forEach(Et=>{let{key:Rt,filteredKeys:Ht,column:Wt}=Et;const Zt=Rt,{filters:Qt,filterDropdown:sn}=Wt;if(sn)at[Zt]=Ht||null;else if(Array.isArray(Ht)){const un=ss(Qt);at[Zt]=un.filter(Bn=>Ht.includes(String(Bn)))}else at[Zt]=null}),at},Gi=(ct,at,Et)=>at.reduce((Ht,Wt)=>{const{column:{onFilter:Zt,filters:Qt},filteredKeys:sn}=Wt;return Zt&&sn&&sn.length?Ht.map(un=>Object.assign({},un)).filter(un=>sn.some(Bn=>{const an=ss(Qt),_n=an.findIndex(hn=>String(hn)===String(Bn)),mn=_n!==-1?an[_n]:Bn;return un[Et]&&(un[Et]=Gi(un[Et],at,Et)),Zt(mn,un)})):Ht},ct),ra=ct=>ct.flatMap(at=>"children"in at?[at].concat((0,En.Z)(ra(at.children||[]))):[at]);var Ho=ct=>{const{prefixCls:at,dropdownPrefixCls:Et,mergedColumns:Rt,onFilterChange:Ht,getPopupContainer:Wt,locale:Zt,rootClassName:Qt}=ct,sn=(0,Oi.ln)("Table"),un=y.useMemo(()=>ra(Rt||[]),[Rt]),[Bn,an]=y.useState(()=>Ts(un,!0)),_n=y.useMemo(()=>{const Dn=Ts(un,!1);if(Dn.length===0)return Dn;let Pn=!0,wr=!0;if(Dn.forEach(ur=>{let{filteredKeys:Tr}=ur;Tr!==void 0?Pn=!1:wr=!1}),Pn){const ur=(un||[]).map((Tr,zr)=>Ei(Tr,Mi(zr)));return Bn.filter(Tr=>{let{key:zr}=Tr;return ur.includes(zr)}).map(Tr=>{const zr=un[ur.findIndex(Wr=>Wr===Tr.key)];return Object.assign(Object.assign({},Tr),{column:Object.assign(Object.assign({},Tr.column),zr),forceFiltered:zr.filtered})})}return Dn},[un,Bn]),mn=y.useMemo(()=>so(_n),[_n]),hn=Dn=>{const Pn=_n.filter(wr=>{let{key:ur}=wr;return ur!==Dn.key});Pn.push(Dn),an(Pn),Ht(so(Pn),Pn)};return[Dn=>ya(at,Et,Dn,_n,Zt,hn,Wt,void 0,Qt),_n,mn]},ls=(ct,at,Et)=>{const Rt=y.useRef({});function Ht(Wt){var Zt;if(!Rt.current||Rt.current.data!==ct||Rt.current.childrenColumnName!==at||Rt.current.getRowKey!==Et){let sn=function(un){un.forEach((Bn,an)=>{const _n=Et(Bn,an);Qt.set(_n,Bn),Bn&&typeof Bn=="object"&&at in Bn&&sn(Bn[at]||[])})};const Qt=new Map;sn(ct),Rt.current={data:ct,childrenColumnName:at,kvMap:Qt,getRowKey:Et}}return(Zt=Rt.current.kvMap)===null||Zt===void 0?void 0:Zt.get(Wt)}return[Ht]},$a=function(ct,at){var Et={};for(var Rt in ct)Object.prototype.hasOwnProperty.call(ct,Rt)&&at.indexOf(Rt)<0&&(Et[Rt]=ct[Rt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ht=0,Rt=Object.getOwnPropertySymbols(ct);Ht<Rt.length;Ht++)at.indexOf(Rt[Ht])<0&&Object.prototype.propertyIsEnumerable.call(ct,Rt[Ht])&&(Et[Rt[Ht]]=ct[Rt[Ht]]);return Et};const cs=10;function Da(ct,at){const Et={current:ct.current,pageSize:ct.pageSize};return Object.keys(at&&typeof at=="object"?at:{}).forEach(Ht=>{const Wt=ct[Ht];typeof Wt!="function"&&(Et[Ht]=Wt)}),Et}function Ma(ct,at,Et){const Rt=Et&&typeof Et=="object"?Et:{},{total:Ht=0}=Rt,Wt=$a(Rt,["total"]),[Zt,Qt]=(0,y.useState)(()=>({current:"defaultCurrent"in Wt?Wt.defaultCurrent:1,pageSize:"defaultPageSize"in Wt?Wt.defaultPageSize:cs})),sn=(0,Aa.Z)(Zt,Wt,{total:Ht>0?Ht:ct}),un=Math.ceil((Ht||ct)/sn.pageSize);sn.current>un&&(sn.current=un||1);const Bn=(_n,mn)=>{Qt({current:_n!=null?_n:1,pageSize:mn||sn.pageSize})},an=(_n,mn)=>{var hn;Et&&((hn=Et.onChange)===null||hn===void 0||hn.call(Et,_n,mn)),Bn(_n,mn),at(_n,mn||(sn==null?void 0:sn.pageSize))};return Et===!1?[{},()=>{}]:[Object.assign(Object.assign({},sn),{onChange:an}),Bn]}var Qa=Ma,bs=oe(89489),ol=oe(59477),pl=oe(25399);const Ps="ascend",us="descend",Yo=ct=>typeof ct.sorter=="object"&&typeof ct.sorter.multiple=="number"?ct.sorter.multiple:!1,Sa=ct=>typeof ct=="function"?ct:ct&&typeof ct=="object"&&ct.compare?ct.compare:!1,ja=(ct,at)=>at?ct[ct.indexOf(at)+1]:ct[0],ps=(ct,at,Et)=>{let Rt=[];const Ht=(Wt,Zt)=>{Rt.push({column:Wt,key:Ei(Wt,Zt),multiplePriority:Yo(Wt),sortOrder:Wt.sortOrder})};return(ct||[]).forEach((Wt,Zt)=>{const Qt=Mi(Zt,Et);Wt.children?("sortOrder"in Wt&&Ht(Wt,Qt),Rt=[].concat((0,En.Z)(Rt),(0,En.Z)(ps(Wt.children,at,Qt)))):Wt.sorter&&("sortOrder"in Wt?Ht(Wt,Qt):at&&Wt.defaultSortOrder&&Rt.push({column:Wt,key:Ei(Wt,Qt),multiplePriority:Yo(Wt),sortOrder:Wt.defaultSortOrder}))}),Rt},Ys=(ct,at,Et,Rt,Ht,Wt,Zt,Qt)=>(at||[]).map((un,Bn)=>{const an=Mi(Bn,Qt);let _n=un;if(_n.sorter){const mn=_n.sortDirections||Ht,hn=_n.showSorterTooltip===void 0?Zt:_n.showSorterTooltip,Fn=Ei(_n,an),Dn=Et.find(Ir=>{let{key:Vr}=Ir;return Vr===Fn}),Pn=Dn?Dn.sortOrder:null,wr=ja(mn,Pn);let ur;if(un.sortIcon)ur=un.sortIcon({sortOrder:Pn});else{const Ir=mn.includes(Ps)&&y.createElement(ol.Z,{className:Je()(`${ct}-column-sorter-up`,{active:Pn===Ps})}),Vr=mn.includes(us)&&y.createElement(bs.Z,{className:Je()(`${ct}-column-sorter-down`,{active:Pn===us})});ur=y.createElement("span",{className:Je()(`${ct}-column-sorter`,{[`${ct}-column-sorter-full`]:!!(Ir&&Vr)})},y.createElement("span",{className:`${ct}-column-sorter-inner`,"aria-hidden":"true"},Ir,Vr))}const{cancelSort:Tr,triggerAsc:zr,triggerDesc:Wr}=Wt||{};let Gr=Tr;wr===us?Gr=Wr:wr===Ps&&(Gr=zr);const Ar=typeof hn=="object"?Object.assign({title:Gr},hn):{title:Gr};_n=Object.assign(Object.assign({},_n),{className:Je()(_n.className,{[`${ct}-column-sort`]:Pn}),title:Ir=>{const Vr=`${ct}-column-sorters`,xi=y.createElement("span",{className:`${ct}-column-title`},io(un.title,Ir)),Hr=y.createElement("div",{className:Vr},xi,ur);return hn?typeof hn!="boolean"&&(hn==null?void 0:hn.target)==="sorter-icon"?y.createElement("div",{className:`${Vr} ${ct}-column-sorters-tooltip-target-sorter`},xi,y.createElement(pl.Z,Object.assign({},Ar),ur)):y.createElement(pl.Z,Object.assign({},Ar),Hr):Hr},onHeaderCell:Ir=>{var Vr;const xi=((Vr=un.onHeaderCell)===null||Vr===void 0?void 0:Vr.call(un,Ir))||{},Hr=xi.onClick,ei=xi.onKeyDown;xi.onClick=Kr=>{Rt({column:un,key:Fn,sortOrder:wr,multiplePriority:Yo(un)}),Hr==null||Hr(Kr)},xi.onKeyDown=Kr=>{Kr.keyCode===Es.Z.ENTER&&(Rt({column:un,key:Fn,sortOrder:wr,multiplePriority:Yo(un)}),ei==null||ei(Kr))};const Or=to(un.title,{}),mr=Or==null?void 0:Or.toString();return Pn&&(xi["aria-sort"]=Pn==="ascend"?"ascending":"descending"),xi["aria-label"]=mr||"",xi.className=Je()(xi.className,`${ct}-column-has-sorters`),xi.tabIndex=0,un.ellipsis&&(xi.title=(Or!=null?Or:"").toString()),xi}})}return"children"in _n&&(_n=Object.assign(Object.assign({},_n),{children:Ys(ct,_n.children,Et,Rt,Ht,Wt,Zt,an)})),_n}),Is=ct=>{const{column:at,sortOrder:Et}=ct;return{column:at,order:Et,field:at.dataIndex,columnKey:at.key}},ml=ct=>{const at=ct.filter(Et=>{let{sortOrder:Rt}=Et;return Rt}).map(Is);if(at.length===0&&ct.length){const Et=ct.length-1;return Object.assign(Object.assign({},Is(ct[Et])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return at.length<=1?at[0]||{}:at},Ls=(ct,at,Et)=>{const Rt=at.slice().sort((Zt,Qt)=>Qt.multiplePriority-Zt.multiplePriority),Ht=ct.slice(),Wt=Rt.filter(Zt=>{let{column:{sorter:Qt},sortOrder:sn}=Zt;return Sa(Qt)&&sn});return Wt.length?Ht.sort((Zt,Qt)=>{for(let sn=0;sn<Wt.length;sn+=1){const un=Wt[sn],{column:{sorter:Bn},sortOrder:an}=un,_n=Sa(Bn);if(_n&&an){const mn=_n(Zt,Qt,an);if(mn!==0)return an===Ps?mn:-mn}}return 0}).map(Zt=>{const Qt=Zt[Et];return Qt?Object.assign(Object.assign({},Zt),{[Et]:Ls(Qt,at,Et)}):Zt}):Ht};var vl=ct=>{const{prefixCls:at,mergedColumns:Et,sortDirections:Rt,tableLocale:Ht,showSorterTooltip:Wt,onSorterChange:Zt}=ct,[Qt,sn]=y.useState(ps(Et,!0)),un=(Fn,Dn)=>{const Pn=[];return Fn.forEach((wr,ur)=>{const Tr=Mi(ur,Dn);if(Pn.push(Ei(wr,Tr)),Array.isArray(wr.children)){const zr=un(wr.children,Tr);Pn.push.apply(Pn,(0,En.Z)(zr))}}),Pn},Bn=y.useMemo(()=>{let Fn=!0;const Dn=ps(Et,!1);if(!Dn.length){const Tr=un(Et);return Qt.filter(zr=>{let{key:Wr}=zr;return Tr.includes(Wr)})}const Pn=[];function wr(Tr){Fn?Pn.push(Tr):Pn.push(Object.assign(Object.assign({},Tr),{sortOrder:null}))}let ur=null;return Dn.forEach(Tr=>{ur===null?(wr(Tr),Tr.sortOrder&&(Tr.multiplePriority===!1?Fn=!1:ur=!0)):(ur&&Tr.multiplePriority!==!1||(Fn=!1),wr(Tr))}),Pn},[Et,Qt]),an=y.useMemo(()=>{var Fn,Dn;const Pn=Bn.map(wr=>{let{column:ur,sortOrder:Tr}=wr;return{column:ur,order:Tr}});return{sortColumns:Pn,sortColumn:(Fn=Pn[0])===null||Fn===void 0?void 0:Fn.column,sortOrder:(Dn=Pn[0])===null||Dn===void 0?void 0:Dn.order}},[Bn]),_n=Fn=>{let Dn;Fn.multiplePriority===!1||!Bn.length||Bn[0].multiplePriority===!1?Dn=[Fn]:Dn=[].concat((0,En.Z)(Bn.filter(Pn=>{let{key:wr}=Pn;return wr!==Fn.key})),[Fn]),sn(Dn),Zt(ml(Dn),Dn)};return[Fn=>Ys(at,Fn,Bn,_n,Rt,Ht,Wt),Bn,an,()=>ml(Bn)]};const Xs=(ct,at)=>ct.map(Rt=>{const Ht=Object.assign({},Rt);return Ht.title=io(Rt.title,at),"children"in Ht&&(Ht.children=Xs(Ht.children,at)),Ht});var al=ct=>[y.useCallback(Et=>Xs(Et,ct),[ct])],sl=$r((ct,at)=>{const{_renderTimes:Et}=ct,{_renderTimes:Rt}=at;return Et!==Rt}),Js=Xn((ct,at)=>{const{_renderTimes:Et}=ct,{_renderTimes:Rt}=at;return Et!==Rt}),Ai=oe(36237),Bs=oe(17835),_s=oe(63356),$l=oe(16931),Gl=oe(51636),gl=ct=>{const{componentCls:at,lineWidth:Et,lineType:Rt,tableBorderColor:Ht,tableHeaderBg:Wt,tablePaddingVertical:Zt,tablePaddingHorizontal:Qt,calc:sn}=ct,un=`${(0,Ai.unit)(Et)} ${Rt} ${Ht}`,Bn=(an,_n,mn)=>({[`&${at}-${an}`]:{[`> ${at}-container`]:{[`> ${at}-content, > ${at}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${at}-expanded-row-fixed`]:{margin:`${(0,Ai.unit)(sn(_n).mul(-1).equal())}
|
|
|
${(0,Ai.unit)(sn(sn(mn).add(Et)).mul(-1).equal())}`}}}}}});return{[`${at}-wrapper`]:{[`${at}${at}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${at}-title`]:{border:un,borderBottom:0},[`> ${at}-container`]:{borderInlineStart:un,borderTop:un,[`
|
|
|
> ${at}-content,
|
|
|
> ${at}-header,
|
|
|
> ${at}-body,
|
|
|
> ${at}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:un},"> thead":{"> tr:not(:last-child) > th":{borderBottom:un},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${at}-cell-fix-right-first::after`]:{borderInlineEnd:un}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${at}-expanded-row-fixed`]:{margin:`${(0,Ai.unit)(sn(Zt).mul(-1).equal())} ${(0,Ai.unit)(sn(sn(Qt).add(Et)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:Et,bottom:0,borderInlineEnd:un,content:'""'}}}}}},[`&${at}-scroll-horizontal`]:{[`> ${at}-container > ${at}-body`]:{"> table > tbody":{[`
|
|
|
> tr${at}-expanded-row,
|
|
|
> tr${at}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Bn("middle",ct.tablePaddingVerticalMiddle,ct.tablePaddingHorizontalMiddle)),Bn("small",ct.tablePaddingVerticalSmall,ct.tablePaddingHorizontalSmall)),{[`> ${at}-footer`]:{border:un,borderTop:0}}),[`${at}-cell`]:{[`${at}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${(0,Ai.unit)(Et)} 0 ${(0,Ai.unit)(Et)} ${Wt}`}},[`${at}-bordered ${at}-cell-scrollbar`]:{borderInlineEnd:un}}}},js=ct=>{const{componentCls:at}=ct;return{[`${at}-wrapper`]:{[`${at}-cell-ellipsis`]:Object.assign(Object.assign({},_s.vS),{wordBreak:"keep-all",[`
|
|
|
&${at}-cell-fix-left-last,
|
|
|
&${at}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${at}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${at}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Vl=ct=>{const{componentCls:at}=ct;return{[`${at}-wrapper`]:{[`${at}-tbody > tr${at}-placeholder`]:{textAlign:"center",color:ct.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ct.colorBgContainer}}}}},Ml=ct=>{const{componentCls:at,antCls:Et,motionDurationSlow:Rt,lineWidth:Ht,paddingXS:Wt,lineType:Zt,tableBorderColor:Qt,tableExpandIconBg:sn,tableExpandColumnWidth:un,borderRadius:Bn,tablePaddingVertical:an,tablePaddingHorizontal:_n,tableExpandedRowBg:mn,paddingXXS:hn,expandIconMarginTop:Fn,expandIconSize:Dn,expandIconHalfInner:Pn,expandIconScale:wr,calc:ur}=ct,Tr=`${(0,Ai.unit)(Ht)} ${Zt} ${Qt}`,zr=ur(hn).sub(Ht).equal();return{[`${at}-wrapper`]:{[`${at}-expand-icon-col`]:{width:un},[`${at}-row-expand-icon-cell`]:{textAlign:"center",[`${at}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${at}-row-indent`]:{height:1,float:"left"},[`${at}-row-expand-icon`]:Object.assign(Object.assign({},(0,_s.Nd)(ct)),{position:"relative",float:"left",width:Dn,height:Dn,color:"inherit",lineHeight:(0,Ai.unit)(Dn),background:sn,border:Tr,borderRadius:Bn,transform:`scale(${wr})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Rt} ease-out`,content:'""'},"&::before":{top:Pn,insetInlineEnd:zr,insetInlineStart:zr,height:Ht},"&::after":{top:zr,bottom:zr,insetInlineStart:Pn,width:Ht,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${at}-row-indent + ${at}-row-expand-icon`]:{marginTop:Fn,marginInlineEnd:Wt},[`tr${at}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:mn}},[`${Et}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${at}-expanded-row-fixed`]:{position:"relative",margin:`${(0,Ai.unit)(ur(an).mul(-1).equal())} ${(0,Ai.unit)(ur(_n).mul(-1).equal())}`,padding:`${(0,Ai.unit)(an)} ${(0,Ai.unit)(_n)}`}}}},bl=ct=>{const{componentCls:at,antCls:Et,iconCls:Rt,tableFilterDropdownWidth:Ht,tableFilterDropdownSearchWidth:Wt,paddingXXS:Zt,paddingXS:Qt,colorText:sn,lineWidth:un,lineType:Bn,tableBorderColor:an,headerIconColor:_n,fontSizeSM:mn,tablePaddingHorizontal:hn,borderRadius:Fn,motionDurationSlow:Dn,colorTextDescription:Pn,colorPrimary:wr,tableHeaderFilterActiveBg:ur,colorTextDisabled:Tr,tableFilterDropdownBg:zr,tableFilterDropdownHeight:Wr,controlItemBgHover:Gr,controlItemBgActive:Ar,boxShadowSecondary:Ir,filterDropdownMenuBg:Vr,calc:xi}=ct,Hr=`${Et}-dropdown`,ei=`${at}-filter-dropdown`,Or=`${Et}-tree`,mr=`${(0,Ai.unit)(un)} ${Bn} ${an}`;return[{[`${at}-wrapper`]:{[`${at}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${at}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:xi(Zt).mul(-1).equal(),marginInline:`${(0,Ai.unit)(Zt)} ${(0,Ai.unit)(xi(hn).div(2).mul(-1).equal())}`,padding:`0 ${(0,Ai.unit)(Zt)}`,color:_n,fontSize:mn,borderRadius:Fn,cursor:"pointer",transition:`all ${Dn}`,"&:hover":{color:Pn,background:ur},"&.active":{color:wr}}}},{[`${Et}-dropdown`]:{[ei]:Object.assign(Object.assign({},(0,_s.Wf)(ct)),{minWidth:Ht,backgroundColor:zr,borderRadius:Fn,boxShadow:Ir,overflow:"hidden",[`${Hr}-menu`]:{maxHeight:Wr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Vr,"&:empty::after":{display:"block",padding:`${(0,Ai.unit)(Qt)} 0`,color:Tr,fontSize:mn,textAlign:"center",content:'"Not Found"'}},[`${ei}-tree`]:{paddingBlock:`${(0,Ai.unit)(Qt)} 0`,paddingInline:Qt,[Or]:{padding:0},[`${Or}-treenode ${Or}-node-content-wrapper:hover`]:{backgroundColor:Gr},[`${Or}-treenode-checkbox-checked ${Or}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Ar}}},[`${ei}-search`]:{padding:Qt,borderBottom:mr,"&-input":{input:{minWidth:Wt},[Rt]:{color:Tr}}},[`${ei}-checkall`]:{width:"100%",marginBottom:Zt,marginInlineStart:Zt},[`${ei}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${(0,Ai.unit)(xi(Qt).sub(un).equal())} ${(0,Ai.unit)(Qt)}`,overflow:"hidden",borderTop:mr}})}},{[`${Et}-dropdown ${ei}, ${ei}-submenu`]:{[`${Et}-checkbox-wrapper + span`]:{paddingInlineStart:Qt,color:sn},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Fs=ct=>{const{componentCls:at,lineWidth:Et,colorSplit:Rt,motionDurationSlow:Ht,zIndexTableFixed:Wt,tableBg:Zt,zIndexTableSticky:Qt,calc:sn}=ct,un=Rt;return{[`${at}-wrapper`]:{[`
|
|
|
${at}-cell-fix-left,
|
|
|
${at}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Wt,background:Zt},[`
|
|
|
${at}-cell-fix-left-first::after,
|
|
|
${at}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:sn(Et).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${Ht}`,content:'""',pointerEvents:"none"},[`${at}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${at}-cell-fix-right-first::after,
|
|
|
${at}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:sn(Et).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ht}`,content:'""',pointerEvents:"none"},[`${at}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:sn(Qt).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${Ht}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${at}-ping-left`]:{[`&:not(${at}-has-fix-left) ${at}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${un}`},[`
|
|
|
${at}-cell-fix-left-first::after,
|
|
|
${at}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${un}`},[`${at}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${at}-ping-right`]:{[`&:not(${at}-has-fix-right) ${at}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${un}`},[`
|
|
|
${at}-cell-fix-right-first::after,
|
|
|
${at}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${un}`}},[`${at}-fixed-column-gapped`]:{[`
|
|
|
${at}-cell-fix-left-first::after,
|
|
|
${at}-cell-fix-left-last::after,
|
|
|
${at}-cell-fix-right-first::after,
|
|
|
${at}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:"none"}}}}},jo=ct=>{const{componentCls:at,antCls:Et,margin:Rt}=ct;return{[`${at}-wrapper`]:{[`${at}-pagination${Et}-pagination`]:{margin:`${(0,Ai.unit)(Rt)} 0`},[`${at}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ct.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Oa=ct=>{const{componentCls:at,tableRadius:Et}=ct;return{[`${at}-wrapper`]:{[at]:{[`${at}-title, ${at}-header`]:{borderRadius:`${(0,Ai.unit)(Et)} ${(0,Ai.unit)(Et)} 0 0`},[`${at}-title + ${at}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${at}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Et,borderStartEndRadius:Et,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Et},"> *:last-child":{borderStartEndRadius:Et}}},"&-footer":{borderRadius:`0 0 ${(0,Ai.unit)(Et)} ${(0,Ai.unit)(Et)}`}}}}},Ol=ct=>{const{componentCls:at}=ct;return{[`${at}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${at}-pagination-left`]:{justifyContent:"flex-end"},[`${at}-pagination-right`]:{justifyContent:"flex-start"},[`${at}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${at}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${at}-row-indent`]:{float:"right"}}}}},ds=ct=>{const{componentCls:at,antCls:Et,iconCls:Rt,fontSizeIcon:Ht,padding:Wt,paddingXS:Zt,headerIconColor:Qt,headerIconHoverColor:sn,tableSelectionColumnWidth:un,tableSelectedRowBg:Bn,tableSelectedRowHoverBg:an,tableRowHoverBg:_n,tablePaddingHorizontal:mn,calc:hn}=ct;return{[`${at}-wrapper`]:{[`${at}-selection-col`]:{width:un,[`&${at}-selection-col-with-dropdown`]:{width:hn(un).add(Ht).add(hn(Wt).div(4)).equal()}},[`${at}-bordered ${at}-selection-col`]:{width:hn(un).add(hn(Zt).mul(2)).equal(),[`&${at}-selection-col-with-dropdown`]:{width:hn(un).add(Ht).add(hn(Wt).div(4)).add(hn(Zt).mul(2)).equal()}},[`
|
|
|
table tr th${at}-selection-column,
|
|
|
table tr td${at}-selection-column,
|
|
|
${at}-selection-column
|
|
|
`]:{paddingInlineEnd:ct.paddingXS,paddingInlineStart:ct.paddingXS,textAlign:"center",[`${Et}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${at}-selection-column${at}-cell-fix-left`]:{zIndex:hn(ct.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${at}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${at}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${at}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ct.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:(0,Ai.unit)(hn(mn).div(4).equal()),[Rt]:{color:Qt,fontSize:Ht,verticalAlign:"baseline","&:hover":{color:sn}}},[`${at}-tbody`]:{[`${at}-row`]:{[`&${at}-row-selected`]:{[`> ${at}-cell`]:{background:Bn,"&-row-hover":{background:an}}},[`> ${at}-cell-row-hover`]:{background:_n}}}}}},Kl=ct=>{const{componentCls:at,tableExpandColumnWidth:Et,calc:Rt}=ct,Ht=(Wt,Zt,Qt,sn)=>({[`${at}${at}-${Wt}`]:{fontSize:sn,[`
|
|
|
${at}-title,
|
|
|
${at}-footer,
|
|
|
${at}-cell,
|
|
|
${at}-thead > tr > th,
|
|
|
${at}-tbody > tr > th,
|
|
|
${at}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${(0,Ai.unit)(Zt)} ${(0,Ai.unit)(Qt)}`},[`${at}-filter-trigger`]:{marginInlineEnd:(0,Ai.unit)(Rt(Qt).div(2).mul(-1).equal())},[`${at}-expanded-row-fixed`]:{margin:`${(0,Ai.unit)(Rt(Zt).mul(-1).equal())} ${(0,Ai.unit)(Rt(Qt).mul(-1).equal())}`},[`${at}-tbody`]:{[`${at}-wrapper:only-child ${at}`]:{marginBlock:(0,Ai.unit)(Rt(Zt).mul(-1).equal()),marginInline:`${(0,Ai.unit)(Rt(Et).sub(Qt).equal())} ${(0,Ai.unit)(Rt(Qt).mul(-1).equal())}`}},[`${at}-selection-extra`]:{paddingInlineStart:(0,Ai.unit)(Rt(Qt).div(4).equal())}}});return{[`${at}-wrapper`]:Object.assign(Object.assign({},Ht("middle",ct.tablePaddingVerticalMiddle,ct.tablePaddingHorizontalMiddle,ct.tableFontSizeMiddle)),Ht("small",ct.tablePaddingVerticalSmall,ct.tablePaddingHorizontalSmall,ct.tableFontSizeSmall))}},Yl=ct=>{const{componentCls:at,marginXXS:Et,fontSizeIcon:Rt,headerIconColor:Ht,headerIconHoverColor:Wt}=ct;return{[`${at}-wrapper`]:{[`${at}-thead th${at}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ct.motionDurationSlow}, left 0s`,"&:hover":{background:ct.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ct.colorPrimary},[`
|
|
|
&${at}-cell-fix-left:hover,
|
|
|
&${at}-cell-fix-right:hover
|
|
|
`]:{background:ct.tableFixedHeaderSortActiveBg}},[`${at}-thead th${at}-column-sort`]:{background:ct.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${at}-column-sort`]:{background:ct.tableBodySortBg},[`${at}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${at}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${at}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${at}-column-sorter`]:{marginInlineStart:Et,color:Ht,fontSize:0,transition:`color ${ct.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Rt,"&.active":{color:ct.colorPrimary}},[`${at}-column-sorter-up + ${at}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${at}-column-sorters:hover ${at}-column-sorter`]:{color:Wt}}}},St=ct=>{const{componentCls:at,opacityLoading:Et,tableScrollThumbBg:Rt,tableScrollThumbBgHover:Ht,tableScrollThumbSize:Wt,tableScrollBg:Zt,zIndexTableSticky:Qt,stickyScrollBarBorderRadius:sn,lineWidth:un,lineType:Bn,tableBorderColor:an}=ct,_n=`${(0,Ai.unit)(un)} ${Bn} ${an}`;return{[`${at}-wrapper`]:{[`${at}-sticky`]:{"&-holder":{position:"sticky",zIndex:Qt,background:ct.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${(0,Ai.unit)(Wt)} !important`,zIndex:Qt,display:"flex",alignItems:"center",background:Zt,borderTop:_n,opacity:Et,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Wt,backgroundColor:Rt,borderRadius:sn,transition:`all ${ct.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ht}}}}}}},zt=ct=>{const{componentCls:at,lineWidth:Et,tableBorderColor:Rt,calc:Ht}=ct,Wt=`${(0,Ai.unit)(Et)} ${ct.lineType} ${Rt}`;return{[`${at}-wrapper`]:{[`${at}-summary`]:{position:"relative",zIndex:ct.zIndexTableFixed,background:ct.tableBg,"> tr":{"> th, > td":{borderBottom:Wt}}},[`div${at}-summary`]:{boxShadow:`0 ${(0,Ai.unit)(Ht(Et).mul(-1).equal())} 0 ${Rt}`}}}},lr=ct=>{const{componentCls:at,motionDurationMid:Et,lineWidth:Rt,lineType:Ht,tableBorderColor:Wt,calc:Zt}=ct,Qt=`${(0,Ai.unit)(Rt)} ${Ht} ${Wt}`,sn=`${at}-expanded-row-cell`;return{[`${at}-wrapper`]:{[`${at}-tbody-virtual`]:{[`${at}-tbody-virtual-holder-inner`]:{[`
|
|
|
& > ${at}-row,
|
|
|
& > div:not(${at}-row) > ${at}-row
|
|
|
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${at}-cell`]:{borderBottom:Qt,transition:`background ${Et}`},[`${at}-expanded-row`]:{[`${sn}${sn}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${(0,Ai.unit)(Rt)})`,borderInlineEnd:"none"}}},[`${at}-bordered`]:{[`${at}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Qt,position:"absolute"},[`${at}-cell`]:{borderInlineEnd:Qt,[`&${at}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:Zt(Rt).mul(-1).equal(),borderInlineStart:Qt}}},[`&${at}-virtual`]:{[`${at}-placeholder ${at}-cell`]:{borderInlineEnd:Qt,borderBottom:Qt}}}}}};const Zn=ct=>{const{componentCls:at,fontWeightStrong:Et,tablePaddingVertical:Rt,tablePaddingHorizontal:Ht,tableExpandColumnWidth:Wt,lineWidth:Zt,lineType:Qt,tableBorderColor:sn,tableFontSize:un,tableBg:Bn,tableRadius:an,tableHeaderTextColor:_n,motionDurationMid:mn,tableHeaderBg:hn,tableHeaderCellSplitColor:Fn,tableFooterTextColor:Dn,tableFooterBg:Pn,calc:wr}=ct,ur=`${(0,Ai.unit)(Zt)} ${Qt} ${sn}`;return{[`${at}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,_s.dF)()),{[at]:Object.assign(Object.assign({},(0,_s.Wf)(ct)),{fontSize:un,background:Bn,borderRadius:`${(0,Ai.unit)(an)} ${(0,Ai.unit)(an)} 0 0`,scrollbarColor:`${ct.tableScrollThumbBg} ${ct.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${(0,Ai.unit)(an)} ${(0,Ai.unit)(an)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${at}-cell,
|
|
|
${at}-thead > tr > th,
|
|
|
${at}-tbody > tr > th,
|
|
|
${at}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${(0,Ai.unit)(Rt)} ${(0,Ai.unit)(Ht)}`,overflowWrap:"break-word"},[`${at}-title`]:{padding:`${(0,Ai.unit)(Rt)} ${(0,Ai.unit)(Ht)}`},[`${at}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:_n,fontWeight:Et,textAlign:"start",background:hn,borderBottom:ur,transition:`background ${mn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${at}-selection-column):not(${at}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Fn,transform:"translateY(-50%)",transition:`background-color ${mn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${at}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${mn}, border-color ${mn}`,borderBottom:ur,[`
|
|
|
> ${at}-wrapper:only-child,
|
|
|
> ${at}-expanded-row-fixed > ${at}-wrapper:only-child
|
|
|
`]:{[at]:{marginBlock:(0,Ai.unit)(wr(Rt).mul(-1).equal()),marginInline:`${(0,Ai.unit)(wr(Wt).sub(Ht).equal())}
|
|
|
${(0,Ai.unit)(wr(Ht).mul(-1).equal())}`,[`${at}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:_n,fontWeight:Et,textAlign:"start",background:hn,borderBottom:ur,transition:`background ${mn} ease`}}},[`${at}-footer`]:{padding:`${(0,Ai.unit)(Rt)} ${(0,Ai.unit)(Ht)}`,color:Dn,background:Pn}})}},or=ct=>{const{colorFillAlter:at,colorBgContainer:Et,colorTextHeading:Rt,colorFillSecondary:Ht,colorFillContent:Wt,controlItemBgActive:Zt,controlItemBgActiveHover:Qt,padding:sn,paddingSM:un,paddingXS:Bn,colorBorderSecondary:an,borderRadiusLG:_n,controlHeight:mn,colorTextPlaceholder:hn,fontSize:Fn,fontSizeSM:Dn,lineHeight:Pn,lineWidth:wr,colorIcon:ur,colorIconHover:Tr,opacityLoading:zr,controlInteractiveSize:Wr}=ct,Gr=new Bs.FastColor(Ht).onBackground(Et).toHexString(),Ar=new Bs.FastColor(Wt).onBackground(Et).toHexString(),Ir=new Bs.FastColor(at).onBackground(Et).toHexString(),Vr=new Bs.FastColor(ur),xi=new Bs.FastColor(Tr),Hr=Wr/2-wr,ei=Hr*2+wr*3;return{headerBg:Ir,headerColor:Rt,headerSortActiveBg:Gr,headerSortHoverBg:Ar,bodySortBg:Ir,rowHoverBg:Ir,rowSelectedBg:Zt,rowSelectedHoverBg:Qt,rowExpandedBg:at,cellPaddingBlock:sn,cellPaddingInline:sn,cellPaddingBlockMD:un,cellPaddingInlineMD:Bn,cellPaddingBlockSM:Bn,cellPaddingInlineSM:Bn,borderColor:an,headerBorderRadius:_n,footerBg:Ir,footerColor:Rt,cellFontSize:Fn,cellFontSizeMD:Fn,cellFontSizeSM:Fn,headerSplitColor:an,fixedHeaderSortActiveBg:Gr,headerFilterHoverBg:Wt,filterDropdownMenuBg:Et,filterDropdownBg:Et,expandIconBg:Et,selectionColumnWidth:mn,stickyScrollBarBg:hn,stickyScrollBarBorderRadius:100,expandIconMarginTop:(Fn*Pn-wr*3)/2-Math.ceil((Dn*1.4-wr*3)/2),headerIconColor:Vr.clone().setA(Vr.a*zr).toRgbString(),headerIconHoverColor:xi.clone().setA(xi.a*zr).toRgbString(),expandIconHalfInner:Hr,expandIconSize:ei,expandIconScale:Wr/ei}},tr=2;var cr=(0,$l.I$)("Table",ct=>{const{colorTextHeading:at,colorSplit:Et,colorBgContainer:Rt,controlInteractiveSize:Ht,headerBg:Wt,headerColor:Zt,headerSortActiveBg:Qt,headerSortHoverBg:sn,bodySortBg:un,rowHoverBg:Bn,rowSelectedBg:an,rowSelectedHoverBg:_n,rowExpandedBg:mn,cellPaddingBlock:hn,cellPaddingInline:Fn,cellPaddingBlockMD:Dn,cellPaddingInlineMD:Pn,cellPaddingBlockSM:wr,cellPaddingInlineSM:ur,borderColor:Tr,footerBg:zr,footerColor:Wr,headerBorderRadius:Gr,cellFontSize:Ar,cellFontSizeMD:Ir,cellFontSizeSM:Vr,headerSplitColor:xi,fixedHeaderSortActiveBg:Hr,headerFilterHoverBg:ei,filterDropdownBg:Or,expandIconBg:mr,selectionColumnWidth:Kr,stickyScrollBarBg:ci,calc:yi}=ct,Ur=(0,Gl.mergeToken)(ct,{tableFontSize:Ar,tableBg:Rt,tableRadius:Gr,tablePaddingVertical:hn,tablePaddingHorizontal:Fn,tablePaddingVerticalMiddle:Dn,tablePaddingHorizontalMiddle:Pn,tablePaddingVerticalSmall:wr,tablePaddingHorizontalSmall:ur,tableBorderColor:Tr,tableHeaderTextColor:Zt,tableHeaderBg:Wt,tableFooterTextColor:Wr,tableFooterBg:zr,tableHeaderCellSplitColor:xi,tableHeaderSortBg:Qt,tableHeaderSortHoverBg:sn,tableBodySortBg:un,tableFixedHeaderSortActiveBg:Hr,tableHeaderFilterActiveBg:ei,tableFilterDropdownBg:Or,tableRowHoverBg:Bn,tableSelectedRowBg:an,tableSelectedRowHoverBg:_n,zIndexTableFixed:tr,zIndexTableSticky:yi(tr).add(1).equal({unit:!1}),tableFontSizeMiddle:Ir,tableFontSizeSmall:Vr,tableSelectionColumnWidth:Kr,tableExpandIconBg:mr,tableExpandColumnWidth:yi(Ht).add(yi(ct.padding).mul(2)).equal(),tableExpandedRowBg:mn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:ci,tableScrollThumbBgHover:at,tableScrollBg:Et});return[Zn(Ur),jo(Ur),zt(Ur),Yl(Ur),bl(Ur),gl(Ur),Oa(Ur),Ml(Ur),zt(Ur),Vl(Ur),ds(Ur),Fs(Ur),St(Ur),js(Ur),Kl(Ur),Ol(Ur),lr(Ur)]},or,{unitless:{expandIconScale:!0}});const Pr=[],Wi=(ct,at)=>{var Et,Rt;const{prefixCls:Ht,className:Wt,rootClassName:Zt,style:Qt,size:sn,bordered:un,dropdownPrefixCls:Bn,dataSource:an,pagination:_n,rowSelection:mn,rowKey:hn="key",rowClassName:Fn,columns:Dn,children:Pn,childrenColumnName:wr,onChange:ur,getPopupContainer:Tr,loading:zr,expandIcon:Wr,expandable:Gr,expandedRowRender:Ar,expandIconColumnIndex:Ir,indentSize:Vr,scroll:xi,sortDirections:Hr,locale:ei,showSorterTooltip:Or={target:"full-header"},virtual:mr}=ct,Kr=(0,Oi.ln)("Table"),ci=y.useMemo(()=>Dn||Xt(Pn),[Dn,Pn]),yi=y.useMemo(()=>ci.some(Ki=>Ki.responsive),[ci]),Ur=(0,Zo.Z)(yi),jr=y.useMemo(()=>{const Ki=new Set(Object.keys(Ur).filter(oo=>Ur[oo]));return ci.filter(oo=>!oo.responsive||oo.responsive.some(Fo=>Ki.has(Fo)))},[ci,Ur]),bi=(0,$i.Z)(ct,["className","style","columns"]),{locale:no=pa.Z,direction:po,table:Ui,renderEmpty:mo,getPrefixCls:Io,getPopupContainer:Vi}=y.useContext(Vo.E_),Xi=(0,wo.Z)(sn),To=Object.assign(Object.assign({},no.Table),ei),Go=an||Pr,di=Io("table",Ht),ji=Io("dropdown",Bn),[,mi]=(0,Za.ZP)(),ni=(0,ha.Z)(di),[lo,vo,Ro]=cr(di,ni),Lo=Object.assign(Object.assign({childrenColumnName:wr,expandIconColumnIndex:Ir},Gr),{expandIcon:(Et=Gr==null?void 0:Gr.expandIcon)!==null&&Et!==void 0?Et:(Rt=Ui==null?void 0:Ui.expandable)===null||Rt===void 0?void 0:Rt.expandIcon}),{childrenColumnName:Xo="children"}=Lo,oa=y.useMemo(()=>Go.some(Ki=>Ki==null?void 0:Ki[Xo])?"nest":Ar||Gr!=null&&Gr.expandedRowRender?"row":null,[Go]),_i={body:y.useRef(null)},Di=Zi(di),bo=y.useRef(null),Eo=y.useRef(null);ao(at,()=>Object.assign(Object.assign({},Eo.current),{nativeElement:bo.current}));const Co=y.useMemo(()=>typeof hn=="function"?hn:Ki=>Ki==null?void 0:Ki[hn],[hn]),[ua]=ls(Go,Xo,Co),Jo={},Fa=function(Ki,oo){let Fo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Qo,ma,da,ms;const wa=Object.assign(Object.assign({},Jo),Ki);Fo&&((Qo=Jo.resetPagination)===null||Qo===void 0||Qo.call(Jo),!((ma=wa.pagination)===null||ma===void 0)&&ma.current&&(wa.pagination.current=1),_n&&((da=_n.onChange)===null||da===void 0||da.call(_n,1,(ms=wa.pagination)===null||ms===void 0?void 0:ms.pageSize))),xi&&xi.scrollToFirstRowOnChange!==!1&&_i.body.current&&(0,la.Z)(0,{getContainer:()=>_i.body.current}),ur==null||ur(wa.pagination,wa.filters,wa.sorter,{currentDataSource:Gi(Ls(Go,wa.sorterStates,Xo),wa.filterStates,Xo),action:oo})},No=(Ki,oo)=>{Fa({sorter:Ki,sorterStates:oo},"sort",!1)},[uo,Ao,Do,aa]=vl({prefixCls:di,mergedColumns:jr,onSorterChange:No,sortDirections:Hr||["ascend","descend"],tableLocale:To,showSorterTooltip:Or}),Uo=y.useMemo(()=>Ls(Go,Ao,Xo),[Go,Ao]);Jo.sorter=aa(),Jo.sorterStates=Ao;const fo=(Ki,oo)=>{Fa({filters:Ki,filterStates:oo},"filter",!0)},[Bo,_o,_a]=Ho({prefixCls:di,locale:To,dropdownPrefixCls:ji,mergedColumns:jr,onFilterChange:fo,getPopupContainer:Tr||Vi,rootClassName:Je()(Zt,ni)}),ta=Gi(Uo,_o,Xo);Jo.filters=_a,Jo.filterStates=_o;const ka=y.useMemo(()=>{const Ki={};return Object.keys(_a).forEach(oo=>{_a[oo]!==null&&(Ki[oo]=_a[oo])}),Object.assign(Object.assign({},Do),{filters:Ki})},[Do,_a]),[za]=al(ka),Cs=(Ki,oo)=>{Fa({pagination:Object.assign(Object.assign({},Jo.pagination),{current:Ki,pageSize:oo})},"paginate")},[Mo,Sl]=Qa(ta.length,Cs,_n);Jo.pagination=_n===!1?{}:Da(Mo,_n),Jo.resetPagination=Sl;const Ra=y.useMemo(()=>{if(_n===!1||!Mo.pageSize)return ta;const{current:Ki=1,total:oo,pageSize:Fo=cs}=Mo;return ta.length<oo?ta.length>Fo?ta.slice((Ki-1)*Fo,Ki*Fo):ta:ta.slice((Ki-1)*Fo,Ki*Fo)},[!!_n,ta,Mo==null?void 0:Mo.current,Mo==null?void 0:Mo.pageSize,Mo==null?void 0:Mo.total]),[fs,qa]=Xr({prefixCls:di,data:ta,pageData:Ra,getRowKey:Co,getRecordByKey:ua,expandType:oa,childrenColumnName:Xo,locale:To,getPopupContainer:Tr||Vi},mn),Ha=(Ki,oo,Fo)=>{let Qo;return typeof Fn=="function"?Qo=Je()(Fn(Ki,oo,Fo)):Qo=Je()(Fn),Je()({[`${di}-row-selected`]:qa.has(Co(Ki,oo))},Qo)};Lo.__PARENT_RENDER_ICON__=Lo.expandIcon,Lo.expandIcon=Lo.expandIcon||Wr||Ii(To),oa==="nest"&&Lo.expandIconColumnIndex===void 0?Lo.expandIconColumnIndex=mn?1:0:Lo.expandIconColumnIndex>0&&mn&&(Lo.expandIconColumnIndex-=1),typeof Lo.indentSize!="number"&&(Lo.indentSize=typeof Vr=="number"?Vr:15);const Oo=y.useCallback(Ki=>za(fs(Bo(uo(Ki)))),[uo,Bo,fs]);let es,Hs;if(_n!==!1&&(Mo!=null&&Mo.total)){let Ki;Mo.size?Ki=Mo.size:Ki=Xi==="small"||Xi==="middle"?"small":void 0;const oo=ma=>y.createElement(xa.Z,Object.assign({},Mo,{className:Je()(`${di}-pagination ${di}-pagination-${ma}`,Mo.className),size:Ki})),Fo=po==="rtl"?"left":"right",{position:Qo}=Mo;if(Qo!==null&&Array.isArray(Qo)){const ma=Qo.find(wa=>wa.includes("top")),da=Qo.find(wa=>wa.includes("bottom")),ms=Qo.every(wa=>`${wa}`=="none");!ma&&!da&&!ms&&(Hs=oo(Fo)),ma&&(es=oo(ma.toLowerCase().replace("top",""))),da&&(Hs=oo(da.toLowerCase().replace("bottom","")))}else Hs=oo(Fo)}let xs;typeof zr=="boolean"?xs={spinning:zr}:typeof zr=="object"&&(xs=Object.assign({spinning:!0},zr));const ws=Je()(Ro,ni,`${di}-wrapper`,Ui==null?void 0:Ui.className,{[`${di}-wrapper-rtl`]:po==="rtl"},Wt,Zt,vo),kl=Object.assign(Object.assign({},Ui==null?void 0:Ui.style),Qt),Rl=typeof(ei==null?void 0:ei.emptyText)!="undefined"?ei.emptyText:(mo==null?void 0:mo("Table"))||y.createElement(Ko.Z,{componentName:"Table"}),Pl=mr?Js:sl,Nl={},Xl=y.useMemo(()=>{const{fontSize:Ki,lineHeight:oo,lineWidth:Fo,padding:Qo,paddingXS:ma,paddingSM:da}=mi,ms=Math.floor(Ki*oo);switch(Xi){case"middle":return da*2+ms+Fo;case"small":return ma*2+ms+Fo;default:return Qo*2+ms+Fo}},[mi,Xi]);return mr&&(Nl.listItemHeight=Xl),lo(y.createElement("div",{ref:bo,className:ws,style:kl},y.createElement(ko.Z,Object.assign({spinning:!1},xs),es,y.createElement(Pl,Object.assign({},Nl,bi,{ref:Eo,columns:jr,direction:po,expandable:Lo,prefixCls:di,className:Je()({[`${di}-middle`]:Xi==="middle",[`${di}-small`]:Xi==="small",[`${di}-bordered`]:un,[`${di}-empty`]:Go.length===0},Ro,ni,vo),data:Ra,rowKey:Co,rowClassName:Ha,emptyText:Rl,internalHooks:fe,internalRefs:_i,transformColumns:Oo,getContainerWidth:Di})),Hs)))};var Ci=y.forwardRef(Wi);const Ji=(ct,at)=>{const Et=y.useRef(0);return Et.current+=1,y.createElement(Ci,Object.assign({},ct,{ref:at,_renderTimes:Et.current}))},li=y.forwardRef(Ji);li.SELECTION_COLUMN=Ni,li.EXPAND_COLUMN=ie,li.SELECTION_ALL=qi,li.SELECTION_INVERT=So,li.SELECTION_NONE=xo,li.Column=Br,li.ColumnGroup=Jn,li.Summary=Me;var Qi=li,Ti=Qi},96599:function(rn,Tt,oe){"use strict";oe.d(Tt,{default:function(){return Je}});var y=oe(59301),ie=oe(92310),fe=oe.n(ie),de=oe(2738),ue=oe(29509),ae=oe(78776),se=oe(22703),te=oe(12919),ne=oe(48755),x=oe(36237),b=oe(17835),ee=oe(63356),E=oe(51636),re=oe(16931);const ce=He=>{const{paddingXXS:ze,lineWidth:Qe,tagPaddingHorizontal:$e,componentCls:ht,calc:Ge}=He,Ue=Ge($e).sub(Qe).equal(),Ke=Ge(ze).sub(Qe).equal();return{[ht]:Object.assign(Object.assign({},(0,ee.Wf)(He)),{display:"inline-block",height:"auto",marginInlineEnd:He.marginXS,paddingInline:Ue,fontSize:He.tagFontSize,lineHeight:He.tagLineHeight,whiteSpace:"nowrap",background:He.defaultBg,border:`${(0,x.unit)(He.lineWidth)} ${He.lineType} ${He.colorBorder}`,borderRadius:He.borderRadiusSM,opacity:1,transition:`all ${He.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ht}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:He.defaultColor},[`${ht}-close-icon`]:{marginInlineStart:Ke,fontSize:He.tagIconSize,color:He.colorTextDescription,cursor:"pointer",transition:`all ${He.motionDurationMid}`,"&:hover":{color:He.colorTextHeading}},[`&${ht}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${He.iconCls}-close, ${He.iconCls}-close:hover`]:{color:He.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ht}-checkable-checked):hover`]:{color:He.colorPrimary,backgroundColor:He.colorFillSecondary},"&:active, &-checked":{color:He.colorTextLightSolid},"&-checked":{backgroundColor:He.colorPrimary,"&:hover":{backgroundColor:He.colorPrimaryHover}},"&:active":{backgroundColor:He.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${He.iconCls} + span, > span + ${He.iconCls}`]:{marginInlineStart:Ue}}),[`${ht}-borderless`]:{borderColor:"transparent",background:He.tagBorderlessBg}}},le=He=>{const{lineWidth:ze,fontSizeIcon:Qe,calc:$e}=He,ht=He.fontSizeSM;return(0,E.mergeToken)(He,{tagFontSize:ht,tagLineHeight:(0,x.unit)($e(He.lineHeightSM).mul(ht).equal()),tagIconSize:$e(Qe).sub($e(ze).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:He.defaultBg})},ve=He=>({defaultBg:new b.FastColor(He.colorFillQuaternary).onBackground(He.colorBgContainer).toHexString(),defaultColor:He.colorText});var Se=(0,re.I$)("Tag",He=>{const ze=le(He);return ce(ze)},ve),ge=function(He,ze){var Qe={};for(var $e in He)Object.prototype.hasOwnProperty.call(He,$e)&&ze.indexOf($e)<0&&(Qe[$e]=He[$e]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,$e=Object.getOwnPropertySymbols(He);ht<$e.length;ht++)ze.indexOf($e[ht])<0&&Object.prototype.propertyIsEnumerable.call(He,$e[ht])&&(Qe[$e[ht]]=He[$e[ht]]);return Qe},Ce=y.forwardRef((He,ze)=>{const{prefixCls:Qe,style:$e,className:ht,checked:Ge,onChange:Ue,onClick:Ke}=He,et=ge(He,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:rt,tag:Xe}=y.useContext(ne.E_),ut=bt=>{Ue==null||Ue(!Ge),Ke==null||Ke(bt)},lt=rt("tag",Qe),[kt,pt,Mt]=Se(lt),wt=fe()(lt,`${lt}-checkable`,{[`${lt}-checkable-checked`]:Ge},Xe==null?void 0:Xe.className,ht,pt,Mt);return kt(y.createElement("span",Object.assign({},et,{ref:ze,style:Object.assign(Object.assign({},$e),Xe==null?void 0:Xe.style),className:wt,onClick:ut})))}),he=oe(93427);const be=He=>(0,he.Z)(He,(ze,Qe)=>{let{textColor:$e,lightBorderColor:ht,lightColor:Ge,darkColor:Ue}=Qe;return{[`${He.componentCls}${He.componentCls}-${ze}`]:{color:$e,background:Ge,borderColor:ht,"&-inverse":{color:He.colorTextLightSolid,background:Ue,borderColor:Ue},[`&${He.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ee=(0,re.bk)(["Tag","preset"],He=>{const ze=le(He);return be(ze)},ve);function Ae(He){return typeof He!="string"?He:He.charAt(0).toUpperCase()+He.slice(1)}const De=(He,ze,Qe)=>{const $e=Ae(Qe);return{[`${He.componentCls}${He.componentCls}-${ze}`]:{color:He[`color${Qe}`],background:He[`color${$e}Bg`],borderColor:He[`color${$e}Border`],[`&${He.componentCls}-borderless`]:{borderColor:"transparent"}}}};var je=(0,re.bk)(["Tag","status"],He=>{const ze=le(He);return[De(ze,"success","Success"),De(ze,"processing","Info"),De(ze,"error","Error"),De(ze,"warning","Warning")]},ve),Fe=function(He,ze){var Qe={};for(var $e in He)Object.prototype.hasOwnProperty.call(He,$e)&&ze.indexOf($e)<0&&(Qe[$e]=He[$e]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,$e=Object.getOwnPropertySymbols(He);ht<$e.length;ht++)ze.indexOf($e[ht])<0&&Object.prototype.propertyIsEnumerable.call(He,$e[ht])&&(Qe[$e[ht]]=He[$e[ht]]);return Qe};const qe=y.forwardRef((He,ze)=>{const{prefixCls:Qe,className:$e,rootClassName:ht,style:Ge,children:Ue,icon:Ke,color:et,onClose:rt,bordered:Xe=!0,visible:ut}=He,lt=Fe(He,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:kt,direction:pt,tag:Mt}=y.useContext(ne.E_),[wt,bt]=y.useState(!0),gt=(0,de.Z)(lt,["closeIcon","closable"]);y.useEffect(()=>{ut!==void 0&&bt(ut)},[ut]);const We=(0,ue.o2)(et),Ie=(0,ue.yT)(et),xe=We||Ie,Be=Object.assign(Object.assign({backgroundColor:et&&!xe?et:void 0},Mt==null?void 0:Mt.style),Ge),Ye=kt("tag",Qe),[Pe,Le,pe]=Se(Ye),we=fe()(Ye,Mt==null?void 0:Mt.className,{[`${Ye}-${et}`]:xe,[`${Ye}-has-color`]:et&&!xe,[`${Ye}-hidden`]:!wt,[`${Ye}-rtl`]:pt==="rtl",[`${Ye}-borderless`]:!Xe},$e,ht,Le,pe),ke=ft=>{ft.stopPropagation(),rt==null||rt(ft),!ft.defaultPrevented&&bt(!1)},[,Me]=(0,ae.Z)((0,ae.w)(He),(0,ae.w)(Mt),{closable:!1,closeIconRender:ft=>{const Ft=y.createElement("span",{className:`${Ye}-close-icon`,onClick:ke},ft);return(0,se.wm)(ft,Ft,Bt=>({onClick:qt=>{var $t;($t=Bt==null?void 0:Bt.onClick)===null||$t===void 0||$t.call(Bt,qt),ke(qt)},className:fe()(Bt==null?void 0:Bt.className,`${Ye}-close-icon`)}))}}),Oe=typeof lt.onClick=="function"||Ue&&Ue.type==="a",tt=Ke||null,ot=tt?y.createElement(y.Fragment,null,tt,Ue&&y.createElement("span",null,Ue)):Ue,st=y.createElement("span",Object.assign({},gt,{ref:ze,className:we,style:Be}),ot,Me,We&&y.createElement(Ee,{key:"preset",prefixCls:Ye}),Ie&&y.createElement(je,{key:"status",prefixCls:Ye}));return Pe(Oe?y.createElement(te.Z,{component:"Tag"},st):st)});qe.CheckableTag=Ce;var Je=qe},18287:function(rn,Tt,oe){"use strict";oe.d(Tt,{default:function(){return rt}});var y=oe(3741),ie=oe(94480),fe=oe(59301),de=oe(52671),ue=oe(8657),ae=oe(54476),se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},te=se,ne=oe(7657),x=function(ut,lt){return fe.createElement(ne.Z,(0,ae.Z)({},ut,{ref:lt,icon:te}))},b=fe.forwardRef(x),ee=b,E=oe(92310),re=oe.n(E),ce=oe(82661),le=oe(34061),ve=oe(48755),Se=oe(56082),ge=oe(86641),_e=oe(57700),Ce=oe(12425);const he=4;function be(Xe){const{dropPosition:ut,dropLevelOffset:lt,prefixCls:kt,indent:pt,direction:Mt="ltr"}=Xe,wt=Mt==="ltr"?"left":"right",bt=Mt==="ltr"?"right":"left",gt={[wt]:-lt*pt+he,[bt]:0};switch(ut){case-1:gt.top=-3;break;case 1:gt.bottom=-3;break;default:gt.bottom=-3,gt[wt]=pt+he;break}return fe.createElement("div",{style:gt,className:`${kt}-drop-indicator`})}var Ee=be,Ae=oe(85278),je=fe.forwardRef((Xe,ut)=>{var lt;const{getPrefixCls:kt,direction:pt,virtual:Mt,tree:wt}=fe.useContext(ve.E_),{prefixCls:bt,className:gt,showIcon:We=!1,showLine:Ie,switcherIcon:xe,switcherLoadingIcon:Be,blockNode:Ye=!1,children:Pe,checkable:Le=!1,selectable:pe=!0,draggable:we,motion:ke,style:Me}=Xe,Oe=kt("tree",bt),tt=kt(),ot=ke!=null?ke:Object.assign(Object.assign({},(0,ge.Z)(tt)),{motionAppear:!1}),st=Object.assign(Object.assign({},Xe),{checkable:Le,selectable:pe,showIcon:We,motion:ot,blockNode:Ye,showLine:!!Ie,dropIndicatorRender:Ee}),[ft,Ft,Bt]=(0,Ce.ZP)(Oe),[,qt]=(0,_e.ZP)(),$t=qt.paddingXS/2+(((lt=qt.Tree)===null||lt===void 0?void 0:lt.titleHeight)||qt.controlHeightSM),It=fe.useMemo(()=>{if(!we)return!1;let Pt={};switch(typeof we){case"function":Pt.nodeDraggable=we;break;case"object":Pt=Object.assign({},we);break;default:break}return Pt.icon!==!1&&(Pt.icon=Pt.icon||fe.createElement(Se.Z,null)),Pt},[we]),en=Pt=>fe.createElement(Ae.Z,{prefixCls:Oe,switcherIcon:xe,switcherLoadingIcon:Be,treeNodeProps:Pt,showLine:Ie});return ft(fe.createElement(y.ZP,Object.assign({itemHeight:$t,ref:ut,virtual:Mt},st,{style:Object.assign(Object.assign({},wt==null?void 0:wt.style),Me),prefixCls:Oe,className:re()({[`${Oe}-icon-hide`]:!We,[`${Oe}-block-node`]:Ye,[`${Oe}-unselectable`]:!pe,[`${Oe}-rtl`]:pt==="rtl"},wt==null?void 0:wt.className,gt,Ft,Bt),direction:pt,checkable:Le&&fe.createElement("span",{className:`${Oe}-checkbox-inner`}),selectable:pe,switcherIcon:en,draggable:It}),Pe))});const Fe=0,Re=1,qe=2;function Je(Xe,ut,lt){const{key:kt,children:pt}=lt;function Mt(wt){const bt=wt[kt],gt=wt[pt];ut(bt,wt)!==!1&&Je(gt||[],ut,lt)}Xe.forEach(Mt)}function He(Xe){let{treeData:ut,expandedKeys:lt,startKey:kt,endKey:pt,fieldNames:Mt}=Xe;const wt=[];let bt=Fe;if(kt&&kt===pt)return[kt];if(!kt||!pt)return[];function gt(We){return We===kt||We===pt}return Je(ut,We=>{if(bt===qe)return!1;if(gt(We)){if(wt.push(We),bt===Fe)bt=Re;else if(bt===Re)return bt=qe,!1}else bt===Re&&wt.push(We);return lt.includes(We)},(0,le.w$)(Mt)),wt}function ze(Xe,ut,lt){const kt=(0,ie.Z)(ut),pt=[];return Je(Xe,(Mt,wt)=>{const bt=kt.indexOf(Mt);return bt!==-1&&(pt.push(wt),kt.splice(bt,1)),!!kt.length},(0,le.w$)(lt)),pt}var Qe=function(Xe,ut){var lt={};for(var kt in Xe)Object.prototype.hasOwnProperty.call(Xe,kt)&&ut.indexOf(kt)<0&&(lt[kt]=Xe[kt]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,kt=Object.getOwnPropertySymbols(Xe);pt<kt.length;pt++)ut.indexOf(kt[pt])<0&&Object.prototype.propertyIsEnumerable.call(Xe,kt[pt])&&(lt[kt[pt]]=Xe[kt[pt]]);return lt};function $e(Xe){const{isLeaf:ut,expanded:lt}=Xe;return ut?fe.createElement(de.Z,null):lt?fe.createElement(ue.Z,null):fe.createElement(ee,null)}function ht(Xe){let{treeData:ut,children:lt}=Xe;return ut||(0,le.zn)(lt)}const Ge=(Xe,ut)=>{var{defaultExpandAll:lt,defaultExpandParent:kt,defaultExpandedKeys:pt}=Xe,Mt=Qe(Xe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const wt=fe.useRef(null),bt=fe.useRef(null),gt=()=>{const{keyEntities:ft}=(0,le.I8)(ht(Mt));let Ft;return lt?Ft=Object.keys(ft):kt?Ft=(0,ce.r7)(Mt.expandedKeys||pt||[],ft):Ft=Mt.expandedKeys||pt||[],Ft},[We,Ie]=fe.useState(Mt.selectedKeys||Mt.defaultSelectedKeys||[]),[xe,Be]=fe.useState(()=>gt());fe.useEffect(()=>{"selectedKeys"in Mt&&Ie(Mt.selectedKeys)},[Mt.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Mt&&Be(Mt.expandedKeys)},[Mt.expandedKeys]);const Ye=(ft,Ft)=>{var Bt;return"expandedKeys"in Mt||Be(ft),(Bt=Mt.onExpand)===null||Bt===void 0?void 0:Bt.call(Mt,ft,Ft)},Pe=(ft,Ft)=>{var Bt;const{multiple:qt,fieldNames:$t}=Mt,{node:It,nativeEvent:en}=Ft,{key:Pt=""}=It,cn=ht(Mt),Sn=Object.assign(Object.assign({},Ft),{selected:!0}),An=(en==null?void 0:en.ctrlKey)||(en==null?void 0:en.metaKey),wn=en==null?void 0:en.shiftKey;let At;qt&&An?(At=ft,wt.current=Pt,bt.current=At,Sn.selectedNodes=ze(cn,At,$t)):qt&&wn?(At=Array.from(new Set([].concat((0,ie.Z)(bt.current||[]),(0,ie.Z)(He({treeData:cn,expandedKeys:xe,startKey:Pt,endKey:wt.current,fieldNames:$t}))))),Sn.selectedNodes=ze(cn,At,$t)):(At=[Pt],wt.current=Pt,bt.current=At,Sn.selectedNodes=ze(cn,At,$t)),(Bt=Mt.onSelect)===null||Bt===void 0||Bt.call(Mt,At,Sn),"selectedKeys"in Mt||Ie(At)},{getPrefixCls:Le,direction:pe}=fe.useContext(ve.E_),{prefixCls:we,className:ke,showIcon:Me=!0,expandAction:Oe="click"}=Mt,tt=Qe(Mt,["prefixCls","className","showIcon","expandAction"]),ot=Le("tree",we),st=re()(`${ot}-directory`,{[`${ot}-directory-rtl`]:pe==="rtl"},ke);return fe.createElement(je,Object.assign({icon:$e,ref:ut,blockNode:!0},tt,{showIcon:Me,expandAction:Oe,prefixCls:ot,className:st,expandedKeys:xe,selectedKeys:We,onSelect:Pe,onExpand:Ye}))};var Ke=fe.forwardRef(Ge);const et=je;et.DirectoryTree=Ke,et.TreeNode=y.OF;var rt=et},12425:function(rn,Tt,oe){"use strict";oe.d(Tt,{ZP:function(){return ce},Yk:function(){return ee},TM:function(){return E}});var y=oe(36237),ie=oe(36170),fe=oe(63356),de=oe(34961),ue=oe(51636),ae=oe(16931);const se=le=>{let{treeCls:ve,treeNodeCls:Se,directoryNodeSelectedBg:ge,directoryNodeSelectedColor:_e,motionDurationMid:Ce,borderRadius:he,controlItemBgHover:be}=le;return{[`${ve}${ve}-directory ${Se}`]:{[`${ve}-node-content-wrapper`]:{position:"static",[`> *:not(${ve}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${Ce}`,content:'""',borderRadius:he},"&:hover:before":{background:be}},[`${ve}-switcher, ${ve}-checkbox, ${ve}-draggable-icon`]:{zIndex:1},"&-selected":{[`${ve}-switcher, ${ve}-draggable-icon`]:{color:_e},[`${ve}-node-content-wrapper`]:{color:_e,background:"transparent","&:before, &:hover:before":{background:ge}}}}}},te=new y.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ne=(le,ve)=>({[`.${le}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ve.motionDurationSlow}`}}}),x=(le,ve)=>({[`.${le}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ve.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${(0,y.unit)(ve.lineWidthBold)} solid ${ve.colorPrimary}`,borderRadius:"50%",content:'""'}}}),b=(le,ve)=>{const{treeCls:Se,treeNodeCls:ge,treeNodePadding:_e,titleHeight:Ce,indentSize:he,nodeSelectedBg:be,nodeHoverBg:Ee,colorTextQuaternary:Ae,controlItemBgActiveDisabled:De}=ve;return{[Se]:Object.assign(Object.assign({},(0,fe.Wf)(ve)),{background:ve.colorBgContainer,borderRadius:ve.borderRadius,transition:`background-color ${ve.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${Se}-rtl ${Se}-switcher_close ${Se}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${Se}-active-focused)`]:Object.assign({},(0,fe.oN)(ve)),[`${Se}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Se}-block-node`]:{[`${Se}-list-holder-inner`]:{alignItems:"stretch",[`${Se}-node-content-wrapper`]:{flex:"auto"},[`${ge}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${ve.colorPrimary}`,opacity:0,animationName:te,animationDuration:ve.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:ve.borderRadius}}},[ge]:{display:"flex",alignItems:"flex-start",marginBottom:_e,lineHeight:(0,y.unit)(Ce),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:_e},[`&-disabled ${Se}-node-content-wrapper`]:{color:ve.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${Se}-checkbox-disabled + ${Se}-node-selected,&${ge}-disabled${ge}-selected ${Se}-node-content-wrapper`]:{backgroundColor:De},[`${Se}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${ge}-disabled)`]:{[`${Se}-node-content-wrapper`]:{"&:hover":{color:ve.nodeHoverColor}}},[`&-active ${Se}-node-content-wrapper`]:{background:ve.controlItemBgHover},[`&:not(${ge}-disabled).filter-node ${Se}-title`]:{color:ve.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${Se}-draggable-icon`]:{flexShrink:0,width:Ce,textAlign:"center",visibility:"visible",color:Ae},[`&${ge}-disabled ${Se}-draggable-icon`]:{visibility:"hidden"}}},[`${Se}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:he}},[`${Se}-draggable-icon`]:{visibility:"hidden"},[`${Se}-switcher, ${Se}-checkbox`]:{marginInlineEnd:ve.calc(ve.calc(Ce).sub(ve.controlInteractiveSize)).div(2).equal()},[`${Se}-switcher`]:Object.assign(Object.assign({},ne(le,ve)),{position:"relative",flex:"none",alignSelf:"stretch",width:Ce,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${ve.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:Ce,height:Ce,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:ve.borderRadius,transition:`all ${ve.motionDurationSlow}`},[`&:not(${Se}-switcher-noop):hover:before`]:{backgroundColor:ve.colorBgTextHover},[`&_close ${Se}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:ve.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ve.calc(Ce).div(2).equal(),bottom:ve.calc(_e).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${ve.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ve.calc(ve.calc(Ce).div(2).equal()).mul(.8).equal(),height:ve.calc(Ce).div(2).equal(),borderBottom:`1px solid ${ve.colorBorder}`,content:'""'}}}),[`${Se}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:Ce,paddingBlock:0,paddingInline:ve.paddingXS,background:"transparent",borderRadius:ve.borderRadius,cursor:"pointer",transition:`all ${ve.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},x(le,ve)),{"&:hover":{backgroundColor:Ee},[`&${Se}-node-selected`]:{color:ve.nodeSelectedColor,backgroundColor:be},[`${Se}-iconEle`]:{display:"inline-block",width:Ce,height:Ce,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${Se}-unselectable ${Se}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ge}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${ve.colorPrimary}`},"&-show-line":{[`${Se}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ve.calc(Ce).div(2).equal(),bottom:ve.calc(_e).mul(-1).equal(),borderInlineEnd:`1px solid ${ve.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${Se}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ge}-leaf-last ${Se}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${(0,y.unit)(ve.calc(Ce).div(2).equal())} !important`}})}},ee=function(le,ve){let Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const ge=`.${le}`,_e=`${ge}-treenode`,Ce=ve.calc(ve.paddingXS).div(2).equal(),he=(0,ue.mergeToken)(ve,{treeCls:ge,treeNodeCls:_e,treeNodePadding:Ce});return[b(le,he),Se&&se(he)].filter(Boolean)},E=le=>{const{controlHeightSM:ve,controlItemBgHover:Se,controlItemBgActive:ge}=le,_e=ve;return{titleHeight:_e,indentSize:_e,nodeHoverBg:Se,nodeHoverColor:le.colorText,nodeSelectedBg:ge,nodeSelectedColor:le.colorText}},re=le=>{const{colorTextLightSolid:ve,colorPrimary:Se}=le;return Object.assign(Object.assign({},E(le)),{directoryNodeSelectedColor:ve,directoryNodeSelectedBg:Se})};var ce=(0,ae.I$)("Tree",(le,ve)=>{let{prefixCls:Se}=ve;return[{[le.componentCls]:(0,ie.C2)(`${Se}-checkbox`,le)},ee(Se,le),(0,de.Z)(le)]},re)},85278:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return ve}});var y=oe(59301),ie=oe(54476),fe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},de=fe,ue=oe(7657),ae=function(ge,_e){return y.createElement(ue.Z,(0,ie.Z)({},ge,{ref:_e,icon:de}))},se=y.forwardRef(ae),te=se,ne=oe(52671),x=oe(58617),b=oe(15075),ee=oe(43531),E=oe(92310),re=oe.n(E),ce=oe(22703),ve=Se=>{const{prefixCls:ge,switcherIcon:_e,treeNodeProps:Ce,showLine:he,switcherLoadingIcon:be}=Se,{isLeaf:Ee,expanded:Ae,loading:De}=Ce;if(De)return y.isValidElement(be)?be:y.createElement(x.Z,{className:`${ge}-switcher-loading-icon`});let je;if(he&&typeof he=="object"&&(je=he.showLeafIcon),Ee){if(!he)return null;if(typeof je!="boolean"&&je){const qe=typeof je=="function"?je(Ce):je,Je=`${ge}-switcher-line-custom-icon`;return y.isValidElement(qe)?(0,ce.Tm)(qe,{className:re()(qe.props.className||"",Je)}):qe}return je?y.createElement(ne.Z,{className:`${ge}-switcher-line-icon`}):y.createElement("span",{className:`${ge}-switcher-leaf-line`})}const Fe=`${ge}-switcher-icon`,Re=typeof _e=="function"?_e(Ce):_e;return y.isValidElement(Re)?(0,ce.Tm)(Re,{className:re()(Re.props.className||"",Fe)}):Re!==void 0?Re:he?Ae?y.createElement(b.Z,{className:`${ge}-switcher-line-icon`}):y.createElement(ee.Z,{className:`${ge}-switcher-line-icon`}):y.createElement(te,{className:Fe})}},99498:function(rn,Tt,oe){(function(y){y(oe(89780))})(function(y){y.defineOption("placeholder","",function(te,ne,x){var b=x&&x!=y.Init;if(ne&&!b)te.on("blur",ue),te.on("change",ae),te.on("swapDoc",ae),y.on(te.getInputField(),"compositionupdate",te.state.placeholderCompose=function(){de(te)}),ae(te);else if(!ne&&b){te.off("blur",ue),te.off("change",ae),te.off("swapDoc",ae),y.off(te.getInputField(),"compositionupdate",te.state.placeholderCompose),ie(te);var ee=te.getWrapperElement();ee.className=ee.className.replace(" CodeMirror-empty","")}ne&&!te.hasFocus()&&ue(te)});function ie(te){te.state.placeholder&&(te.state.placeholder.parentNode.removeChild(te.state.placeholder),te.state.placeholder=null)}function fe(te){ie(te);var ne=te.state.placeholder=document.createElement("pre");ne.style.cssText="height: 0; overflow: visible",ne.style.direction=te.getOption("direction"),ne.className="CodeMirror-placeholder CodeMirror-line-like";var x=te.getOption("placeholder");typeof x=="string"&&(x=document.createTextNode(x)),ne.appendChild(x),te.display.lineSpace.insertBefore(ne,te.display.lineSpace.firstChild)}function de(te){setTimeout(function(){var ne=!1,x=te.getInputField();x.nodeName=="TEXTAREA"?ne=!x.value:te.lineCount()==1&&(ne=!/[^\u200b]/.test(x.querySelector(".CodeMirror-line").textContent)),ne?fe(te):ie(te)},20)}function ue(te){se(te)&&fe(te)}function ae(te){var ne=te.getWrapperElement(),x=se(te);ne.className=ne.className.replace(" CodeMirror-empty","")+(x?" CodeMirror-empty":""),x?fe(te):ie(te)}function se(te){return te.lineCount()===1&&te.getLine(0)===""}})},25717:function(rn,Tt,oe){(function(y){y(oe(89780))})(function(y){var ie={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},fe=y.Pos;y.defineOption("autoCloseBrackets",!1,function(ce,le,ve){ve&&ve!=y.Init&&(ce.removeKeyMap(ue),ce.state.closeBrackets=null),le&&(ae(de(le,"pairs")),ce.state.closeBrackets=le,ce.addKeyMap(ue))});function de(ce,le){return le=="pairs"&&typeof ce=="string"?ce:typeof ce=="object"&&ce[le]!=null?ce[le]:ie[le]}var ue={Backspace:ne,Enter:x};function ae(ce){for(var le=0;le<ce.length;le++){var ve=ce.charAt(le),Se="'"+ve+"'";ue[Se]||(ue[Se]=se(ve))}}ae(ie.pairs+"`");function se(ce){return function(le){return ee(le,ce)}}function te(ce){var le=ce.state.closeBrackets;if(!le||le.override)return le;var ve=ce.getModeAt(ce.getCursor());return ve.closeBrackets||le}function ne(ce){var le=te(ce);if(!le||ce.getOption("disableInput"))return y.Pass;for(var ve=de(le,"pairs"),Se=ce.listSelections(),ge=0;ge<Se.length;ge++){if(!Se[ge].empty())return y.Pass;var _e=E(ce,Se[ge].head);if(!_e||ve.indexOf(_e)%2!=0)return y.Pass}for(var ge=Se.length-1;ge>=0;ge--){var Ce=Se[ge].head;ce.replaceRange("",fe(Ce.line,Ce.ch-1),fe(Ce.line,Ce.ch+1),"+delete")}}function x(ce){var le=te(ce),ve=le&&de(le,"explode");if(!ve||ce.getOption("disableInput"))return y.Pass;for(var Se=ce.listSelections(),ge=0;ge<Se.length;ge++){if(!Se[ge].empty())return y.Pass;var _e=E(ce,Se[ge].head);if(!_e||ve.indexOf(_e)%2!=0)return y.Pass}ce.operation(function(){var Ce=ce.lineSeparator()||`
|
|
|
`;ce.replaceSelection(Ce+Ce,null),ce.execCommand("goCharLeft"),Se=ce.listSelections();for(var he=0;he<Se.length;he++){var be=Se[he].head.line;ce.indentLine(be,null,!0),ce.indentLine(be+1,null,!0)}})}function b(ce){var le=y.cmpPos(ce.anchor,ce.head)>0;return{anchor:new fe(ce.anchor.line,ce.anchor.ch+(le?-1:1)),head:new fe(ce.head.line,ce.head.ch+(le?1:-1))}}function ee(ce,le){var ve=te(ce);if(!ve||ce.getOption("disableInput"))return y.Pass;var Se=de(ve,"pairs"),ge=Se.indexOf(le);if(ge==-1)return y.Pass;for(var _e=de(ve,"closeBefore"),Ce=de(ve,"triples"),he=Se.charAt(ge+1)==le,be=ce.listSelections(),Ee=ge%2==0,Ae,De=0;De<be.length;De++){var je=be[De],Fe=je.head,Re,qe=ce.getRange(Fe,fe(Fe.line,Fe.ch+1));if(Ee&&!je.empty())Re="surround";else if((he||!Ee)&&qe==le)he&&re(ce,Fe)?Re="both":Ce.indexOf(le)>=0&&ce.getRange(Fe,fe(Fe.line,Fe.ch+3))==le+le+le?Re="skipThree":Re="skip";else if(he&&Fe.ch>1&&Ce.indexOf(le)>=0&&ce.getRange(fe(Fe.line,Fe.ch-2),Fe)==le+le){if(Fe.ch>2&&/\bstring/.test(ce.getTokenTypeAt(fe(Fe.line,Fe.ch-2))))return y.Pass;Re="addFour"}else if(he){var Je=Fe.ch==0?" ":ce.getRange(fe(Fe.line,Fe.ch-1),Fe);if(!y.isWordChar(qe)&&Je!=le&&!y.isWordChar(Je))Re="both";else return y.Pass}else if(Ee&&(qe.length===0||/\s/.test(qe)||_e.indexOf(qe)>-1))Re="both";else return y.Pass;if(!Ae)Ae=Re;else if(Ae!=Re)return y.Pass}var He=ge%2?Se.charAt(ge-1):le,ze=ge%2?le:Se.charAt(ge+1);ce.operation(function(){if(Ae=="skip")ce.execCommand("goCharRight");else if(Ae=="skipThree")for(var Qe=0;Qe<3;Qe++)ce.execCommand("goCharRight");else if(Ae=="surround"){for(var $e=ce.getSelections(),Qe=0;Qe<$e.length;Qe++)$e[Qe]=He+$e[Qe]+ze;ce.replaceSelections($e,"around"),$e=ce.listSelections().slice();for(var Qe=0;Qe<$e.length;Qe++)$e[Qe]=b($e[Qe]);ce.setSelections($e)}else Ae=="both"?(ce.replaceSelection(He+ze,null),ce.triggerElectric(He+ze),ce.execCommand("goCharLeft")):Ae=="addFour"&&(ce.replaceSelection(He+He+He+He,"before"),ce.execCommand("goCharRight"))})}function E(ce,le){var ve=ce.getRange(fe(le.line,le.ch-1),fe(le.line,le.ch+1));return ve.length==2?ve:null}function re(ce,le){var ve=ce.getTokenAt(fe(le.line,le.ch+1));return/\bstring/.test(ve.type)&&ve.start==le.ch&&(le.ch==0||!/\bstring/.test(ce.getTokenTypeAt(le)))}})},6313:function(rn,Tt,oe){(function(y){y(oe(89780),oe(32855))})(function(y){y.defineOption("autoCloseTags",!1,function(ne,x,b){if(b!=y.Init&&b&&ne.removeKeyMap("autoCloseTags"),!!x){var ee={name:"autoCloseTags"};(typeof x!="object"||x.whenClosing!==!1)&&(ee["'/'"]=function(E){return ae(E)}),(typeof x!="object"||x.whenOpening!==!1)&&(ee["'>'"]=function(E){return de(E)}),ne.addKeyMap(ee)}});var ie=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],fe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function de(ne){if(ne.getOption("disableInput"))return y.Pass;for(var x=ne.listSelections(),b=[],ee=ne.getOption("autoCloseTags"),E=0;E<x.length;E++){if(!x[E].empty())return y.Pass;var re=x[E].head,ce=ne.getTokenAt(re),le=y.innerMode(ne.getMode(),ce.state),ve=le.state,Se=le.mode.xmlCurrentTag&&le.mode.xmlCurrentTag(ve),ge=Se&&Se.name;if(!ge)return y.Pass;var _e=le.mode.configuration=="html",Ce=typeof ee=="object"&&ee.dontCloseTags||_e&&ie,he=typeof ee=="object"&&ee.indentTags||_e&&fe;ce.end>re.ch&&(ge=ge.slice(0,ge.length-ce.end+re.ch));var be=ge.toLowerCase();if(!ge||ce.type=="string"&&(ce.end!=re.ch||!/[\"\']/.test(ce.string.charAt(ce.string.length-1))||ce.string.length==1)||ce.type=="tag"&&Se.close||ce.string.indexOf("/")==re.ch-ce.start-1||Ce&&se(Ce,be)>-1||te(ne,le.mode.xmlCurrentContext&&le.mode.xmlCurrentContext(ve)||[],ge,re,!0))return y.Pass;var Ee=typeof ee=="object"&&ee.emptyTags;if(Ee&&se(Ee,ge)>-1){b[E]={text:"/>",newPos:y.Pos(re.line,re.ch+2)};continue}var Ae=he&&se(he,be)>-1;b[E]={indent:Ae,text:">"+(Ae?`
|
|
|
|
|
|
`:"")+"</"+ge+">",newPos:Ae?y.Pos(re.line+1,0):y.Pos(re.line,re.ch+1)}}for(var De=typeof ee=="object"&&ee.dontIndentOnAutoClose,E=x.length-1;E>=0;E--){var je=b[E];ne.replaceRange(je.text,x[E].head,x[E].anchor,"+insert");var Fe=ne.listSelections().slice(0);Fe[E]={head:je.newPos,anchor:je.newPos},ne.setSelections(Fe),!De&&je.indent&&(ne.indentLine(je.newPos.line,null,!0),ne.indentLine(je.newPos.line+1,null,!0))}}function ue(ne,x){for(var b=ne.listSelections(),ee=[],E=x?"/":"</",re=ne.getOption("autoCloseTags"),ce=typeof re=="object"&&re.dontIndentOnSlash,le=0;le<b.length;le++){if(!b[le].empty())return y.Pass;var ve=b[le].head,Se=ne.getTokenAt(ve),ge=y.innerMode(ne.getMode(),Se.state),_e=ge.state;if(x&&(Se.type=="string"||Se.string.charAt(0)!="<"||Se.start!=ve.ch-1))return y.Pass;var Ce,he=ge.mode.name!="xml"&&ne.getMode().name=="htmlmixed";if(he&&ge.mode.name=="javascript")Ce=E+"script";else if(he&&ge.mode.name=="css")Ce=E+"style";else{var be=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(_e);if(!be||be.length&&te(ne,be,be[be.length-1],ve))return y.Pass;Ce=E+be[be.length-1]}ne.getLine(ve.line).charAt(Se.end)!=">"&&(Ce+=">"),ee[le]=Ce}if(ne.replaceSelections(ee),b=ne.listSelections(),!ce)for(var le=0;le<b.length;le++)(le==b.length-1||b[le].head.line<b[le+1].head.line)&&ne.indentLine(b[le].head.line)}function ae(ne){return ne.getOption("disableInput")?y.Pass:ue(ne,!0)}y.commands.closeTag=function(ne){return ue(ne)};function se(ne,x){if(ne.indexOf)return ne.indexOf(x);for(var b=0,ee=ne.length;b<ee;++b)if(ne[b]==x)return b;return-1}function te(ne,x,b,ee,E){if(!y.scanForClosingTag)return!1;var re=Math.min(ne.lastLine()+1,ee.line+500),ce=y.scanForClosingTag(ne,ee,null,re);if(!ce||ce.tag!=b)return!1;for(var le=E?1:0,ve=x.length-1;ve>=0&&x[ve]==b;ve--)++le;ee=ce.to;for(var ve=1;ve<le;ve++){var Se=y.scanForClosingTag(ne,ee,null,re);if(!Se||Se.tag!=b)return!1;ee=Se.to}return!0}})},32855:function(rn,Tt,oe){(function(y){y(oe(89780))})(function(y){"use strict";var ie=y.Pos;function fe(ve,Se){return ve.line-Se.line||ve.ch-Se.ch}var de="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",ue=de+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ae=new RegExp("<(/?)(["+de+"]["+ue+"]*)","g");function se(ve,Se,ge,_e){this.line=Se,this.ch=ge,this.cm=ve,this.text=ve.getLine(Se),this.min=_e?Math.max(_e.from,ve.firstLine()):ve.firstLine(),this.max=_e?Math.min(_e.to-1,ve.lastLine()):ve.lastLine()}function te(ve,Se){var ge=ve.cm.getTokenTypeAt(ie(ve.line,Se));return ge&&/\btag\b/.test(ge)}function ne(ve){if(!(ve.line>=ve.max))return ve.ch=0,ve.text=ve.cm.getLine(++ve.line),!0}function x(ve){if(!(ve.line<=ve.min))return ve.text=ve.cm.getLine(--ve.line),ve.ch=ve.text.length,!0}function b(ve){for(;;){var Se=ve.text.indexOf(">",ve.ch);if(Se==-1){if(ne(ve))continue;return}if(!te(ve,Se+1)){ve.ch=Se+1;continue}var ge=ve.text.lastIndexOf("/",Se),_e=ge>-1&&!/\S/.test(ve.text.slice(ge+1,Se));return ve.ch=Se+1,_e?"selfClose":"regular"}}function ee(ve){for(;;){var Se=ve.ch?ve.text.lastIndexOf("<",ve.ch-1):-1;if(Se==-1){if(x(ve))continue;return}if(!te(ve,Se+1)){ve.ch=Se;continue}ae.lastIndex=Se,ve.ch=Se;var ge=ae.exec(ve.text);if(ge&&ge.index==Se)return ge}}function E(ve){for(;;){ae.lastIndex=ve.ch;var Se=ae.exec(ve.text);if(!Se){if(ne(ve))continue;return}if(!te(ve,Se.index+1)){ve.ch=Se.index+1;continue}return ve.ch=Se.index+Se[0].length,Se}}function re(ve){for(;;){var Se=ve.ch?ve.text.lastIndexOf(">",ve.ch-1):-1;if(Se==-1){if(x(ve))continue;return}if(!te(ve,Se+1)){ve.ch=Se;continue}var ge=ve.text.lastIndexOf("/",Se),_e=ge>-1&&!/\S/.test(ve.text.slice(ge+1,Se));return ve.ch=Se+1,_e?"selfClose":"regular"}}function ce(ve,Se){for(var ge=[];;){var _e=E(ve),Ce,he=ve.line,be=ve.ch-(_e?_e[0].length:0);if(!_e||!(Ce=b(ve)))return;if(Ce!="selfClose")if(_e[1]){for(var Ee=ge.length-1;Ee>=0;--Ee)if(ge[Ee]==_e[2]){ge.length=Ee;break}if(Ee<0&&(!Se||Se==_e[2]))return{tag:_e[2],from:ie(he,be),to:ie(ve.line,ve.ch)}}else ge.push(_e[2])}}function le(ve,Se){for(var ge=[];;){var _e=re(ve);if(!_e)return;if(_e=="selfClose"){ee(ve);continue}var Ce=ve.line,he=ve.ch,be=ee(ve);if(!be)return;if(be[1])ge.push(be[2]);else{for(var Ee=ge.length-1;Ee>=0;--Ee)if(ge[Ee]==be[2]){ge.length=Ee;break}if(Ee<0&&(!Se||Se==be[2]))return{tag:be[2],from:ie(ve.line,ve.ch),to:ie(Ce,he)}}}}y.registerHelper("fold","xml",function(ve,Se){for(var ge=new se(ve,Se.line,0);;){var _e=E(ge);if(!_e||ge.line!=Se.line)return;var Ce=b(ge);if(!Ce)return;if(!_e[1]&&Ce!="selfClose"){var he=ie(ge.line,ge.ch),be=ce(ge,_e[2]);return be&&fe(be.from,he)>0?{from:he,to:be.from}:null}}}),y.findMatchingTag=function(ve,Se,ge){var _e=new se(ve,Se.line,Se.ch,ge);if(!(_e.text.indexOf(">")==-1&&_e.text.indexOf("<")==-1)){var Ce=b(_e),he=Ce&&ie(_e.line,_e.ch),be=Ce&&ee(_e);if(!(!Ce||!be||fe(_e,Se)>0)){var Ee={from:ie(_e.line,_e.ch),to:he,tag:be[2]};return Ce=="selfClose"?{open:Ee,close:null,at:"open"}:be[1]?{open:le(_e,be[2]),close:Ee,at:"close"}:(_e=new se(ve,he.line,he.ch,ge),{open:Ee,close:ce(_e,be[2]),at:"open"})}}},y.findEnclosingTag=function(ve,Se,ge,_e){for(var Ce=new se(ve,Se.line,Se.ch,ge);;){var he=le(Ce,_e);if(!he)break;var be=new se(ve,Se.line,Se.ch,ge),Ee=ce(be,he.tag);if(Ee)return{open:he,close:Ee}}},y.scanForClosingTag=function(ve,Se,ge,_e){var Ce=new se(ve,Se.line,Se.ch,_e?{from:0,to:_e}:null);return ce(Ce,ge)}})},89780:function(rn){(function(Tt,oe){rn.exports=oe()})(this,function(){"use strict";var Tt=navigator.userAgent,oe=navigator.platform,y=/gecko\/\d/i.test(Tt),ie=/MSIE \d/.test(Tt),fe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Tt),de=/Edge\/(\d+)/.exec(Tt),ue=ie||fe||de,ae=ue&&(ie?document.documentMode||6:+(de||fe)[1]),se=!de&&/WebKit\//.test(Tt),te=se&&/Qt\/\d+\.\d+/.test(Tt),ne=!de&&/Chrome\//.test(Tt),x=/Opera\//.test(Tt),b=/Apple Computer/.test(navigator.vendor),ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Tt),E=/PhantomJS/.test(Tt),re=!de&&/AppleWebKit/.test(Tt)&&/Mobile\/\w+/.test(Tt),ce=/Android/.test(Tt),le=re||ce||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Tt),ve=re||/Mac/.test(oe),Se=/\bCrOS\b/.test(Tt),ge=/win/i.test(oe),_e=x&&Tt.match(/Version\/(\d*\.\d*)/);_e&&(_e=Number(_e[1])),_e&&_e>=15&&(x=!1,se=!0);var Ce=ve&&(te||x&&(_e==null||_e<12.11)),he=y||ue&&ae>=9;function be(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ee=function(a,z){var ye=a.className,me=be(z).exec(ye);if(me){var Te=ye.slice(me.index+me[0].length);a.className=ye.slice(0,me.index)+(Te?me[1]+Te:"")}};function Ae(a){for(var z=a.childNodes.length;z>0;--z)a.removeChild(a.firstChild);return a}function De(a,z){return Ae(a).appendChild(z)}function je(a,z,ye,me){var Te=document.createElement(a);if(ye&&(Te.className=ye),me&&(Te.style.cssText=me),typeof z=="string")Te.appendChild(document.createTextNode(z));else if(z)for(var Ze=0;Ze<z.length;++Ze)Te.appendChild(z[Ze]);return Te}function Fe(a,z,ye,me){var Te=je(a,z,ye,me);return Te.setAttribute("role","presentation"),Te}var Re;document.createRange?Re=function(a,z,ye,me){var Te=document.createRange();return Te.setEnd(me||a,ye),Te.setStart(a,z),Te}:Re=function(a,z,ye){var me=document.body.createTextRange();try{me.moveToElementText(a.parentNode)}catch(Te){return me}return me.collapse(!0),me.moveEnd("character",ye),me.moveStart("character",z),me};function qe(a,z){if(z.nodeType==3&&(z=z.parentNode),a.contains)return a.contains(z);do if(z.nodeType==11&&(z=z.host),z==a)return!0;while(z=z.parentNode)}function Je(){var a;try{a=document.activeElement}catch(z){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function He(a,z){var ye=a.className;be(z).test(ye)||(a.className+=(ye?" ":"")+z)}function ze(a,z){for(var ye=a.split(" "),me=0;me<ye.length;me++)ye[me]&&!be(ye[me]).test(z)&&(z+=" "+ye[me]);return z}var Qe=function(a){a.select()};re?Qe=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ue&&(Qe=function(a){try{a.select()}catch(z){}});function $e(a){var z=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,z)}}function ht(a,z,ye){z||(z={});for(var me in a)a.hasOwnProperty(me)&&(ye!==!1||!z.hasOwnProperty(me))&&(z[me]=a[me]);return z}function Ge(a,z,ye,me,Te){z==null&&(z=a.search(/[^\s\u00a0]/),z==-1&&(z=a.length));for(var Ze=me||0,it=Te||0;;){var dt=a.indexOf(" ",Ze);if(dt<0||dt>=z)return it+(z-Ze);it+=dt-Ze,it+=ye-it%ye,Ze=dt+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=$e(this.onTimeout,this)};Ue.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},Ue.prototype.set=function(a,z){this.f=z;var ye=+new Date+a;(!this.id||ye<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ye)};function Ke(a,z){for(var ye=0;ye<a.length;++ye)if(a[ye]==z)return ye;return-1}var et=50,rt={toString:function(){return"CodeMirror.Pass"}},Xe={scroll:!1},ut={origin:"*mouse"},lt={origin:"+move"};function kt(a,z,ye){for(var me=0,Te=0;;){var Ze=a.indexOf(" ",me);Ze==-1&&(Ze=a.length);var it=Ze-me;if(Ze==a.length||Te+it>=z)return me+Math.min(it,z-Te);if(Te+=Ze-me,Te+=ye-Te%ye,me=Ze+1,Te>=z)return me}}var pt=[""];function Mt(a){for(;pt.length<=a;)pt.push(wt(pt)+" ");return pt[a]}function wt(a){return a[a.length-1]}function bt(a,z){for(var ye=[],me=0;me<a.length;me++)ye[me]=z(a[me],me);return ye}function gt(a,z,ye){for(var me=0,Te=ye(z);me<a.length&&ye(a[me])<=Te;)me++;a.splice(me,0,z)}function We(){}function Ie(a,z){var ye;return Object.create?ye=Object.create(a):(We.prototype=a,ye=new We),z&&ht(z,ye),ye}var xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Be(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||xe.test(a))}function Ye(a,z){return z?z.source.indexOf("\\w")>-1&&Be(a)?!0:z.test(a):Be(a)}function Pe(a){for(var z in a)if(a.hasOwnProperty(z)&&a[z])return!1;return!0}var Le=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function pe(a){return a.charCodeAt(0)>=768&&Le.test(a)}function we(a,z,ye){for(;(ye<0?z>0:z<a.length)&&pe(a.charAt(z));)z+=ye;return z}function ke(a,z,ye){for(var me=z>ye?-1:1;;){if(z==ye)return z;var Te=(z+ye)/2,Ze=me<0?Math.ceil(Te):Math.floor(Te);if(Ze==z)return a(Ze)?z:ye;a(Ze)?ye=Ze:z=Ze+me}}function Me(a,z,ye,me){if(!a)return me(z,ye,"ltr",0);for(var Te=!1,Ze=0;Ze<a.length;++Ze){var it=a[Ze];(it.from<ye&&it.to>z||z==ye&&it.to==z)&&(me(Math.max(it.from,z),Math.min(it.to,ye),it.level==1?"rtl":"ltr",Ze),Te=!0)}Te||me(z,ye,"ltr")}var Oe=null;function tt(a,z,ye){var me;Oe=null;for(var Te=0;Te<a.length;++Te){var Ze=a[Te];if(Ze.from<z&&Ze.to>z)return Te;Ze.to==z&&(Ze.from!=Ze.to&&ye=="before"?me=Te:Oe=Te),Ze.from==z&&(Ze.from!=Ze.to&&ye!="before"?me=Te:Oe=Te)}return me!=null?me:Oe}var ot=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",z="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ye(Ct){return Ct<=247?a.charAt(Ct):1424<=Ct&&Ct<=1524?"R":1536<=Ct&&Ct<=1785?z.charAt(Ct-1536):1774<=Ct&&Ct<=2220?"r":8192<=Ct&&Ct<=8203?"w":Ct==8204?"b":"L"}var me=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Te=/[stwN]/,Ze=/[LRr]/,it=/[Lb1n]/,dt=/[1n]/;function vt(Ct,Yt,nn){this.level=Ct,this.from=Yt,this.to=nn}return function(Ct,Yt){var nn=Yt=="ltr"?"L":"R";if(Ct.length==0||Yt=="ltr"&&!me.test(Ct))return!1;for(var In=Ct.length,Cn=[],sr=0;sr<In;++sr)Cn.push(ye(Ct.charCodeAt(sr)));for(var _r=0,Fr=nn;_r<In;++_r){var Qr=Cn[_r];Qr=="m"?Cn[_r]=Fr:Fr=Qr}for(var hi=0,qr=nn;hi<In;++hi){var Si=Cn[hi];Si=="1"&&qr=="r"?Cn[hi]="n":Ze.test(Si)&&(qr=Si,Si=="r"&&(Cn[hi]="R"))}for(var zi=1,Bi=Cn[0];zi<In-1;++zi){var co=Cn[zi];co=="+"&&Bi=="1"&&Cn[zi+1]=="1"?Cn[zi]="1":co==","&&Bi==Cn[zi+1]&&(Bi=="1"||Bi=="n")&&(Cn[zi]=Bi),Bi=co}for(var zo=0;zo<In;++zo){var Ia=Cn[zo];if(Ia==",")Cn[zo]="N";else if(Ia=="%"){var na=void 0;for(na=zo+1;na<In&&Cn[na]=="%";++na);for(var hs=zo&&Cn[zo-1]=="!"||na<In&&Cn[na]=="1"?"1":"N",ns=zo;ns<na;++ns)Cn[ns]=hs;zo=na-1}}for(var va=0,rs=nn;va<In;++va){var Pa=Cn[va];rs=="L"&&Pa=="1"?Cn[va]="L":Ze.test(Pa)&&(rs=Pa)}for(var Ca=0;Ca<In;++Ca)if(Te.test(Cn[Ca])){var ga=void 0;for(ga=Ca+1;ga<In&&Te.test(Cn[ga]);++ga);for(var sa=(Ca?Cn[Ca-1]:nn)=="L",is=(ga<In?Cn[ga]:nn)=="L",Ul=sa==is?sa?"L":"R":nn,fl=Ca;fl<ga;++fl)Cn[fl]=Ul;Ca=ga-1}for(var Ua=[],Ws,La=0;La<In;)if(it.test(Cn[La])){var Mc=La;for(++La;La<In&&it.test(Cn[La]);++La);Ua.push(new vt(0,Mc,La))}else{var rl=La,Tl=Ua.length,Il=Yt=="rtl"?1:0;for(++La;La<In&&Cn[La]!="L";++La);for(var Ga=rl;Ga<La;)if(dt.test(Cn[Ga])){rl<Ga&&(Ua.splice(Tl,0,new vt(1,rl,Ga)),Tl+=Il);var Zl=Ga;for(++Ga;Ga<La&&dt.test(Cn[Ga]);++Ga);Ua.splice(Tl,0,new vt(2,Zl,Ga)),Tl+=Il,rl=Ga}else++Ga;rl<La&&Ua.splice(Tl,0,new vt(1,rl,La))}return Yt=="ltr"&&(Ua[0].level==1&&(Ws=Ct.match(/^\s+/))&&(Ua[0].from=Ws[0].length,Ua.unshift(new vt(0,0,Ws[0].length))),wt(Ua).level==1&&(Ws=Ct.match(/\s+$/))&&(wt(Ua).to-=Ws[0].length,Ua.push(new vt(0,In-Ws[0].length,In)))),Yt=="rtl"?Ua.reverse():Ua}}();function st(a,z){var ye=a.order;return ye==null&&(ye=a.order=ot(a.text,z)),ye}var ft=[],Ft=function(a,z,ye){if(a.addEventListener)a.addEventListener(z,ye,!1);else if(a.attachEvent)a.attachEvent("on"+z,ye);else{var me=a._handlers||(a._handlers={});me[z]=(me[z]||ft).concat(ye)}};function Bt(a,z){return a._handlers&&a._handlers[z]||ft}function qt(a,z,ye){if(a.removeEventListener)a.removeEventListener(z,ye,!1);else if(a.detachEvent)a.detachEvent("on"+z,ye);else{var me=a._handlers,Te=me&&me[z];if(Te){var Ze=Ke(Te,ye);Ze>-1&&(me[z]=Te.slice(0,Ze).concat(Te.slice(Ze+1)))}}}function $t(a,z){var ye=Bt(a,z);if(ye.length)for(var me=Array.prototype.slice.call(arguments,2),Te=0;Te<ye.length;++Te)ye[Te].apply(null,me)}function It(a,z,ye){return typeof z=="string"&&(z={type:z,preventDefault:function(){this.defaultPrevented=!0}}),$t(a,ye||z.type,a,z),wn(z)||z.codemirrorIgnore}function en(a){var z=a._handlers&&a._handlers.cursorActivity;if(z)for(var ye=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),me=0;me<z.length;++me)Ke(ye,z[me])==-1&&ye.push(z[me])}function Pt(a,z){return Bt(a,z).length>0}function cn(a){a.prototype.on=function(z,ye){Ft(this,z,ye)},a.prototype.off=function(z,ye){qt(this,z,ye)}}function Sn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function An(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function wn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function At(a){Sn(a),An(a)}function Gt(a){return a.target||a.srcElement}function on(a){var z=a.which;return z==null&&(a.button&1?z=1:a.button&2?z=3:a.button&4&&(z=2)),ve&&a.ctrlKey&&z==1&&(z=3),z}var vn=function(){if(ue&&ae<9)return!1;var a=je("div");return"draggable"in a||"dragDrop"in a}(),Nn;function Yn(a){if(Nn==null){var z=je("span","\u200B");De(a,je("span",[z,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Nn=z.offsetWidth<=1&&z.offsetHeight>2&&!(ue&&ae<8))}var ye=Nn?je("span","\u200B"):je("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ye.setAttribute("cm-text",""),ye}var Vn;function ir(a){if(Vn!=null)return Vn;var z=De(a,document.createTextNode("A\u062EA")),ye=Re(z,0,1).getBoundingClientRect(),me=Re(z,1,2).getBoundingClientRect();return Ae(a),!ye||ye.left==ye.right?!1:Vn=me.right-ye.right<3}var Mn=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var z=0,ye=[],me=a.length;z<=me;){var Te=a.indexOf(`
|
|
|
`,z);Te==-1&&(Te=a.length);var Ze=a.slice(z,a.charAt(Te-1)=="\r"?Te-1:Te),it=Ze.indexOf("\r");it!=-1?(ye.push(Ze.slice(0,it)),z+=it+1):(ye.push(Ze),z=Te+1)}return ye}:function(a){return a.split(/\r\n?|\n/)},qn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(z){return!1}}:function(a){var z;try{z=a.ownerDocument.selection.createRange()}catch(ye){}return!z||z.parentElement()!=a?!1:z.compareEndPoints("StartToEnd",z)!=0},En=function(){var a=je("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Hn=null;function Qn(a){if(Hn!=null)return Hn;var z=De(a,je("span","x")),ye=z.getBoundingClientRect(),me=Re(z,0,1).getBoundingClientRect();return Hn=Math.abs(ye.left-me.left)>1}var dr={},On={};function $n(a,z){arguments.length>2&&(z.dependencies=Array.prototype.slice.call(arguments,2)),dr[a]=z}function Kn(a,z){On[a]=z}function yn(a){if(typeof a=="string"&&On.hasOwnProperty(a))a=On[a];else if(a&&typeof a.name=="string"&&On.hasOwnProperty(a.name)){var z=On[a.name];typeof z=="string"&&(z={name:z}),a=Ie(z,a),a.name=z.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return yn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return yn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Ne(a,z){z=yn(z);var ye=dr[z.name];if(!ye)return Ne(a,"text/plain");var me=ye(a,z);if(Ve.hasOwnProperty(z.name)){var Te=Ve[z.name];for(var Ze in Te)Te.hasOwnProperty(Ze)&&(me.hasOwnProperty(Ze)&&(me["_"+Ze]=me[Ze]),me[Ze]=Te[Ze])}if(me.name=z.name,z.helperType&&(me.helperType=z.helperType),z.modeProps)for(var it in z.modeProps)me[it]=z.modeProps[it];return me}var Ve={};function nt(a,z){var ye=Ve.hasOwnProperty(a)?Ve[a]:Ve[a]={};ht(z,ye)}function mt(a,z){if(z===!0)return z;if(a.copyState)return a.copyState(z);var ye={};for(var me in z){var Te=z[me];Te instanceof Array&&(Te=Te.concat([])),ye[me]=Te}return ye}function _t(a,z){for(var ye;a.innerMode&&(ye=a.innerMode(z),!(!ye||ye.mode==a));)z=ye.state,a=ye.mode;return ye||{mode:a,state:z}}function Vt(a,z,ye){return a.startState?a.startState(z,ye):!0}var Jt=function(a,z,ye){this.pos=this.start=0,this.string=a,this.tabSize=z||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ye};Jt.prototype.eol=function(){return this.pos>=this.string.length},Jt.prototype.sol=function(){return this.pos==this.lineStart},Jt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Jt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Jt.prototype.eat=function(a){var z=this.string.charAt(this.pos),ye;if(typeof a=="string"?ye=z==a:ye=z&&(a.test?a.test(z):a(z)),ye)return++this.pos,z},Jt.prototype.eatWhile=function(a){for(var z=this.pos;this.eat(a););return this.pos>z},Jt.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Jt.prototype.skipToEnd=function(){this.pos=this.string.length},Jt.prototype.skipTo=function(a){var z=this.string.indexOf(a,this.pos);if(z>-1)return this.pos=z,!0},Jt.prototype.backUp=function(a){this.pos-=a},Jt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},Jt.prototype.indentation=function(){return Ge(this.string,null,this.tabSize)-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},Jt.prototype.match=function(a,z,ye){if(typeof a=="string"){var me=function(it){return ye?it.toLowerCase():it},Te=this.string.substr(this.pos,a.length);if(me(Te)==me(a))return z!==!1&&(this.pos+=a.length),!0}else{var Ze=this.string.slice(this.pos).match(a);return Ze&&Ze.index>0?null:(Ze&&z!==!1&&(this.pos+=Ze[0].length),Ze)}},Jt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Jt.prototype.hideFirstChars=function(a,z){this.lineStart+=a;try{return z()}finally{this.lineStart-=a}},Jt.prototype.lookAhead=function(a){var z=this.lineOracle;return z&&z.lookAhead(a)},Jt.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Xt(a,z){if(z-=a.first,z<0||z>=a.size)throw new Error("There is no line "+(z+a.first)+" in the document.");for(var ye=a;!ye.lines;)for(var me=0;;++me){var Te=ye.children[me],Ze=Te.chunkSize();if(z<Ze){ye=Te;break}z-=Ze}return ye.lines[z]}function dn(a,z,ye){var me=[],Te=z.line;return a.iter(z.line,ye.line+1,function(Ze){var it=Ze.text;Te==ye.line&&(it=it.slice(0,ye.ch)),Te==z.line&&(it=it.slice(z.ch)),me.push(it),++Te}),me}function jn(a,z,ye){var me=[];return a.iter(z,ye,function(Te){me.push(Te.text)}),me}function vr(a,z){var ye=z-a.height;if(ye)for(var me=a;me;me=me.parent)me.height+=ye}function Nt(a){if(a.parent==null)return null;for(var z=a.parent,ye=Ke(z.lines,a),me=z.parent;me;z=me,me=me.parent)for(var Te=0;me.children[Te]!=z;++Te)ye+=me.children[Te].chunkSize();return ye+z.first}function jt(a,z){var ye=a.first;e:do{for(var me=0;me<a.children.length;++me){var Te=a.children[me],Ze=Te.height;if(z<Ze){a=Te;continue e}z-=Ze,ye+=Te.chunkSize()}return ye}while(!a.lines);for(var it=0;it<a.lines.length;++it){var dt=a.lines[it],vt=dt.height;if(z<vt)break;z-=vt}return ye+it}function xt(a,z){return z>=a.first&&z<a.first+a.size}function Ot(a,z){return String(a.lineNumberFormatter(z+a.firstLineNumber))}function yt(a,z,ye){if(ye===void 0&&(ye=null),!(this instanceof yt))return new yt(a,z,ye);this.line=a,this.ch=z,this.sticky=ye}function Lt(a,z){return a.line-z.line||a.ch-z.ch}function Ut(a,z){return a.sticky==z.sticky&&Lt(a,z)==0}function bn(a){return yt(a.line,a.ch)}function Tn(a,z){return Lt(a,z)<0?z:a}function Gn(a,z){return Lt(a,z)<0?a:z}function pn(a,z){return Math.max(a.first,Math.min(z,a.first+a.size-1))}function tn(a,z){if(z.line<a.first)return yt(a.first,0);var ye=a.first+a.size-1;return z.line>ye?yt(ye,Xt(a,ye).text.length):ln(z,Xt(a,z.line).text.length)}function ln(a,z){var ye=a.ch;return ye==null||ye>z?yt(a.line,z):ye<0?yt(a.line,0):a}function Rn(a,z){for(var ye=[],me=0;me<z.length;me++)ye[me]=tn(a,z[me]);return ye}var nr=function(a,z){this.state=a,this.lookAhead=z},rr=function(a,z,ye,me){this.state=z,this.doc=a,this.line=ye,this.maxLookAhead=me||0,this.baseTokens=null,this.baseTokenPos=1};rr.prototype.lookAhead=function(a){var z=this.doc.getLine(this.line+a);return z!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),z},rr.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var z=this.baseTokens[this.baseTokenPos+1];return{type:z&&z.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},rr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},rr.fromSaved=function(a,z,ye){return z instanceof nr?new rr(a,mt(a.mode,z.state),ye,z.lookAhead):new rr(a,mt(a.mode,z),ye)},rr.prototype.save=function(a){var z=a!==!1?mt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new nr(z,this.maxLookAhead):z};function fr(a,z,ye,me){var Te=[a.state.modeGen],Ze={};ar(a,z.text,a.doc.mode,ye,function(Ct,Yt){return Te.push(Ct,Yt)},Ze,me);for(var it=ye.state,dt=function(Ct){ye.baseTokens=Te;var Yt=a.state.overlays[Ct],nn=1,In=0;ye.state=!0,ar(a,z.text,Yt.mode,ye,function(Cn,sr){for(var _r=nn;In<Cn;){var Fr=Te[nn];Fr>Cn&&Te.splice(nn,1,Cn,Te[nn+1],Fr),nn+=2,In=Math.min(Cn,Fr)}if(sr)if(Yt.opaque)Te.splice(_r,nn-_r,Cn,"overlay "+sr),nn=_r+2;else for(;_r<nn;_r+=2){var Qr=Te[_r+1];Te[_r+1]=(Qr?Qr+" ":"")+"overlay "+sr}},Ze),ye.state=it,ye.baseTokens=null,ye.baseTokenPos=1},vt=0;vt<a.state.overlays.length;++vt)dt(vt);return{styles:Te,classes:Ze.bgClass||Ze.textClass?Ze:null}}function ti(a,z,ye){if(!z.styles||z.styles[0]!=a.state.modeGen){var me=fn(a,Nt(z)),Te=z.text.length>a.options.maxHighlightLength&&mt(a.doc.mode,me.state),Ze=fr(a,z,me);Te&&(me.state=Te),z.stateAfter=me.save(!Te),z.styles=Ze.styles,Ze.classes?z.styleClasses=Ze.classes:z.styleClasses&&(z.styleClasses=null),ye===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return z.styles}function fn(a,z,ye){var me=a.doc,Te=a.display;if(!me.mode.startState)return new rr(me,!0,z);var Ze=Sr(a,z,ye),it=Ze>me.first&&Xt(me,Ze-1).stateAfter,dt=it?rr.fromSaved(me,it,Ze):new rr(me,Vt(me.mode),Ze);return me.iter(Ze,z,function(vt){Kt(a,vt.text,dt);var Ct=dt.line;vt.stateAfter=Ct==z-1||Ct%5==0||Ct>=Te.viewFrom&&Ct<Te.viewTo?dt.save():null,dt.nextLine()}),ye&&(me.modeFrontier=dt.line),dt}function Kt(a,z,ye,me){var Te=a.doc.mode,Ze=new Jt(z,a.options.tabSize,ye);for(Ze.start=Ze.pos=me||0,z==""&&gn(Te,ye.state);!Ze.eol();)xn(Te,Ze,ye.state),Ze.start=Ze.pos}function gn(a,z){if(a.blankLine)return a.blankLine(z);if(a.innerMode){var ye=_t(a,z);if(ye.mode.blankLine)return ye.mode.blankLine(ye.state)}}function xn(a,z,ye,me){for(var Te=0;Te<10;Te++){me&&(me[0]=_t(a,ye).mode);var Ze=a.token(z,ye);if(z.pos>z.start)return Ze}throw new Error("Mode "+a.name+" failed to advance stream.")}var Ln=function(a,z,ye){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=z||null,this.state=ye};function Un(a,z,ye,me){var Te=a.doc,Ze=Te.mode,it;z=tn(Te,z);var dt=Xt(Te,z.line),vt=fn(a,z.line,ye),Ct=new Jt(dt.text,a.options.tabSize,vt),Yt;for(me&&(Yt=[]);(me||Ct.pos<z.ch)&&!Ct.eol();)Ct.start=Ct.pos,it=xn(Ze,Ct,vt.state),me&&Yt.push(new Ln(Ct,it,mt(Te.mode,vt.state)));return me?Yt:new Ln(Ct,it,vt.state)}function hr(a,z){if(a)for(;;){var ye=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ye)break;a=a.slice(0,ye.index)+a.slice(ye.index+ye[0].length);var me=ye[1]?"bgClass":"textClass";z[me]==null?z[me]=ye[2]:new RegExp("(?:^|\\s)"+ye[2]+"(?:$|\\s)").test(z[me])||(z[me]+=" "+ye[2])}return a}function ar(a,z,ye,me,Te,Ze,it){var dt=ye.flattenSpans;dt==null&&(dt=a.options.flattenSpans);var vt=0,Ct=null,Yt=new Jt(z,a.options.tabSize,me),nn,In=a.options.addModeClass&&[null];for(z==""&&hr(gn(ye,me.state),Ze);!Yt.eol();){if(Yt.pos>a.options.maxHighlightLength?(dt=!1,it&&Kt(a,z,me,Yt.pos),Yt.pos=z.length,nn=null):nn=hr(xn(ye,Yt,me.state,In),Ze),In){var Cn=In[0].name;Cn&&(nn="m-"+(nn?Cn+" "+nn:Cn))}if(!dt||Ct!=nn){for(;vt<Yt.start;)vt=Math.min(Yt.start,vt+5e3),Te(vt,Ct);Ct=nn}Yt.start=Yt.pos}for(;vt<Yt.pos;){var sr=Math.min(Yt.pos,vt+5e3);Te(sr,Ct),vt=sr}}function Sr(a,z,ye){for(var me,Te,Ze=a.doc,it=ye?-1:z-(a.doc.mode.innerMode?1e3:100),dt=z;dt>it;--dt){if(dt<=Ze.first)return Ze.first;var vt=Xt(Ze,dt-1),Ct=vt.stateAfter;if(Ct&&(!ye||dt+(Ct instanceof nr?Ct.lookAhead:0)<=Ze.modeFrontier))return dt;var Yt=Ge(vt.text,null,a.options.tabSize);(Te==null||me>Yt)&&(Te=dt-1,me=Yt)}return Te}function Cr(a,z){if(a.modeFrontier=Math.min(a.modeFrontier,z),!(a.highlightFrontier<z-10)){for(var ye=a.first,me=z-1;me>ye;me--){var Te=Xt(a,me).stateAfter;if(Te&&(!(Te instanceof nr)||me+Te.lookAhead<z)){ye=me+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ye)}}var yr=!1,pr=!1;function $r(){yr=!0}function kr(){pr=!0}function Nr(a,z,ye){this.marker=a,this.from=z,this.to=ye}function Yr(a,z){if(a)for(var ye=0;ye<a.length;++ye){var me=a[ye];if(me.marker==z)return me}}function ai(a,z){for(var ye,me=0;me<a.length;++me)a[me]!=z&&(ye||(ye=[])).push(a[me]);return ye}function Rr(a,z){a.markedSpans=a.markedSpans?a.markedSpans.concat([z]):[z],z.marker.attachLine(a)}function ii(a,z,ye){var me;if(a)for(var Te=0;Te<a.length;++Te){var Ze=a[Te],it=Ze.marker,dt=Ze.from==null||(it.inclusiveLeft?Ze.from<=z:Ze.from<z);if(dt||Ze.from==z&&it.type=="bookmark"&&(!ye||!Ze.marker.insertLeft)){var vt=Ze.to==null||(it.inclusiveRight?Ze.to>=z:Ze.to>z);(me||(me=[])).push(new Nr(it,Ze.from,vt?null:Ze.to))}}return me}function Dr(a,z,ye){var me;if(a)for(var Te=0;Te<a.length;++Te){var Ze=a[Te],it=Ze.marker,dt=Ze.to==null||(it.inclusiveRight?Ze.to>=z:Ze.to>z);if(dt||Ze.from==z&&it.type=="bookmark"&&(!ye||Ze.marker.insertLeft)){var vt=Ze.from==null||(it.inclusiveLeft?Ze.from<=z:Ze.from<z);(me||(me=[])).push(new Nr(it,vt?null:Ze.from-z,Ze.to==null?null:Ze.to-z))}}return me}function fi(a,z){if(z.full)return null;var ye=xt(a,z.from.line)&&Xt(a,z.from.line).markedSpans,me=xt(a,z.to.line)&&Xt(a,z.to.line).markedSpans;if(!ye&&!me)return null;var Te=z.from.ch,Ze=z.to.ch,it=Lt(z.from,z.to)==0,dt=ii(ye,Te,it),vt=Dr(me,Ze,it),Ct=z.text.length==1,Yt=wt(z.text).length+(Ct?Te:0);if(dt)for(var nn=0;nn<dt.length;++nn){var In=dt[nn];if(In.to==null){var Cn=Yr(vt,In.marker);Cn?Ct&&(In.to=Cn.to==null?null:Cn.to+Yt):In.to=Te}}if(vt)for(var sr=0;sr<vt.length;++sr){var _r=vt[sr];if(_r.to!=null&&(_r.to+=Yt),_r.from==null){var Fr=Yr(dt,_r.marker);Fr||(_r.from=Yt,Ct&&(dt||(dt=[])).push(_r))}else _r.from+=Yt,Ct&&(dt||(dt=[])).push(_r)}dt&&(dt=Lr(dt)),vt&&vt!=dt&&(vt=Lr(vt));var Qr=[dt];if(!Ct){var hi=z.text.length-2,qr;if(hi>0&&dt)for(var Si=0;Si<dt.length;++Si)dt[Si].to==null&&(qr||(qr=[])).push(new Nr(dt[Si].marker,null,null));for(var zi=0;zi<hi;++zi)Qr.push(qr);Qr.push(vt)}return Qr}function Lr(a){for(var z=0;z<a.length;++z){var ye=a[z];ye.from!=null&&ye.from==ye.to&&ye.marker.clearWhenEmpty!==!1&&a.splice(z--,1)}return a.length?a:null}function wi(a,z,ye){var me=null;if(a.iter(z.line,ye.line+1,function(Cn){if(Cn.markedSpans)for(var sr=0;sr<Cn.markedSpans.length;++sr){var _r=Cn.markedSpans[sr].marker;_r.readOnly&&(!me||Ke(me,_r)==-1)&&(me||(me=[])).push(_r)}}),!me)return null;for(var Te=[{from:z,to:ye}],Ze=0;Ze<me.length;++Ze)for(var it=me[Ze],dt=it.find(0),vt=0;vt<Te.length;++vt){var Ct=Te[vt];if(!(Lt(Ct.to,dt.from)<0||Lt(Ct.from,dt.to)>0)){var Yt=[vt,1],nn=Lt(Ct.from,dt.from),In=Lt(Ct.to,dt.to);(nn<0||!it.inclusiveLeft&&!nn)&&Yt.push({from:Ct.from,to:dt.from}),(In>0||!it.inclusiveRight&&!In)&&Yt.push({from:dt.to,to:Ct.to}),Te.splice.apply(Te,Yt),vt+=Yt.length-3}}return Te}function Jr(a){var z=a.markedSpans;if(z){for(var ye=0;ye<z.length;++ye)z[ye].marker.detachLine(a);a.markedSpans=null}}function Zr(a,z){if(z){for(var ye=0;ye<z.length;++ye)z[ye].marker.attachLine(a);a.markedSpans=z}}function si(a){return a.inclusiveLeft?-1:0}function vi(a){return a.inclusiveRight?1:0}function pi(a,z){var ye=a.lines.length-z.lines.length;if(ye!=0)return ye;var me=a.find(),Te=z.find(),Ze=Lt(me.from,Te.from)||si(a)-si(z);if(Ze)return-Ze;var it=Lt(me.to,Te.to)||vi(a)-vi(z);return it||z.id-a.id}function ri(a,z){var ye=pr&&a.markedSpans,me;if(ye)for(var Te=void 0,Ze=0;Ze<ye.length;++Ze)Te=ye[Ze],Te.marker.collapsed&&(z?Te.from:Te.to)==null&&(!me||pi(me,Te.marker)<0)&&(me=Te.marker);return me}function Er(a){return ri(a,!0)}function kn(a){return ri(a,!1)}function Xn(a,z){var ye=pr&&a.markedSpans,me;if(ye)for(var Te=0;Te<ye.length;++Te){var Ze=ye[Te];Ze.marker.collapsed&&(Ze.from==null||Ze.from<z)&&(Ze.to==null||Ze.to>z)&&(!me||pi(me,Ze.marker)<0)&&(me=Ze.marker)}return me}function er(a,z,ye,me,Te){var Ze=Xt(a,z),it=pr&&Ze.markedSpans;if(it)for(var dt=0;dt<it.length;++dt){var vt=it[dt];if(vt.marker.collapsed){var Ct=vt.marker.find(0),Yt=Lt(Ct.from,ye)||si(vt.marker)-si(Te),nn=Lt(Ct.to,me)||vi(vt.marker)-vi(Te);if(!(Yt>=0&&nn<=0||Yt<=0&&nn>=0)&&(Yt<=0&&(vt.marker.inclusiveRight&&Te.inclusiveLeft?Lt(Ct.to,ye)>=0:Lt(Ct.to,ye)>0)||Yt>=0&&(vt.marker.inclusiveRight&&Te.inclusiveLeft?Lt(Ct.from,me)<=0:Lt(Ct.from,me)<0)))return!0}}}function zn(a){for(var z;z=Er(a);)a=z.find(-1,!0).line;return a}function xr(a){for(var z;z=kn(a);)a=z.find(1,!0).line;return a}function Br(a){for(var z,ye;z=kn(a);)a=z.find(1,!0).line,(ye||(ye=[])).push(a);return ye}function Wn(a,z){var ye=Xt(a,z),me=zn(ye);return ye==me?z:Nt(me)}function Jn(a,z){if(z>a.lastLine())return z;var ye=Xt(a,z),me;if(!gr(a,ye))return z;for(;me=kn(ye);)ye=me.find(1,!0).line;return Nt(ye)+1}function gr(a,z){var ye=pr&&z.markedSpans;if(ye){for(var me=void 0,Te=0;Te<ye.length;++Te)if(me=ye[Te],!!me.marker.collapsed){if(me.from==null)return!0;if(!me.marker.widgetNode&&me.from==0&&me.marker.inclusiveLeft&&br(a,z,me))return!0}}}function br(a,z,ye){if(ye.to==null){var me=ye.marker.find(1,!0);return br(a,me.line,Yr(me.line.markedSpans,ye.marker))}if(ye.marker.inclusiveRight&&ye.to==z.text.length)return!0;for(var Te=void 0,Ze=0;Ze<z.markedSpans.length;++Ze)if(Te=z.markedSpans[Ze],Te.marker.collapsed&&!Te.marker.widgetNode&&Te.from==ye.to&&(Te.to==null||Te.to!=ye.from)&&(Te.marker.inclusiveLeft||ye.marker.inclusiveRight)&&br(a,z,Te))return!0}function ui(a){a=zn(a);for(var z=0,ye=a.parent,me=0;me<ye.lines.length;++me){var Te=ye.lines[me];if(Te==a)break;z+=Te.height}for(var Ze=ye.parent;Ze;ye=Ze,Ze=ye.parent)for(var it=0;it<Ze.children.length;++it){var dt=Ze.children[it];if(dt==ye)break;z+=dt.height}return z}function Ri(a){if(a.height==0)return 0;for(var z=a.text.length,ye,me=a;ye=Er(me);){var Te=ye.find(0,!0);me=Te.from.line,z+=Te.from.ch-Te.to.ch}for(me=a;ye=kn(me);){var Ze=ye.find(0,!0);z-=me.text.length-Ze.from.ch,me=Ze.to.line,z+=me.text.length-Ze.to.ch}return z}function gi(a){var z=a.display,ye=a.doc;z.maxLine=Xt(ye,ye.first),z.maxLineLength=Ri(z.maxLine),z.maxLineChanged=!0,ye.iter(function(me){var Te=Ri(me);Te>z.maxLineLength&&(z.maxLineLength=Te,z.maxLine=me)})}var Hi=function(a,z,ye){this.text=a,Zr(this,z),this.height=ye?ye(this):1};Hi.prototype.lineNo=function(){return Nt(this)},cn(Hi);function Oi(a,z,ye,me){a.text=z,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Jr(a),Zr(a,ye);var Te=me?me(a):1;Te!=a.height&&vr(a,Te)}function Pi(a){a.parent=null,Jr(a)}var ki={},Fi={};function Ni(a,z){if(!a||/^\s*$/.test(a))return null;var ye=z.addModeClass?Fi:ki;return ye[a]||(ye[a]=a.replace(/\S+/g,"cm-$&"))}function qi(a,z){var ye=Fe("span",null,null,se?"padding-right: .1px":null),me={pre:Fe("pre",[ye],"CodeMirror-line"),content:ye,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};z.measure={};for(var Te=0;Te<=(z.rest?z.rest.length:0);Te++){var Ze=Te?z.rest[Te-1]:z.line,it=void 0;me.pos=0,me.addToken=xo,ir(a.display.measure)&&(it=st(Ze,a.doc.direction))&&(me.addToken=Yi(me.addToken,it)),me.map=[];var dt=z!=a.display.externalMeasured&&Nt(Ze);Xr(Ze,me,ti(a,Ze,dt)),Ze.styleClasses&&(Ze.styleClasses.bgClass&&(me.bgClass=ze(Ze.styleClasses.bgClass,me.bgClass||"")),Ze.styleClasses.textClass&&(me.textClass=ze(Ze.styleClasses.textClass,me.textClass||""))),me.map.length==0&&me.map.push(0,0,me.content.appendChild(Yn(a.display.measure))),Te==0?(z.measure.map=me.map,z.measure.cache={}):((z.measure.maps||(z.measure.maps=[])).push(me.map),(z.measure.caches||(z.measure.caches=[])).push({}))}if(se){var vt=me.content.lastChild;(/\bcm-tab\b/.test(vt.className)||vt.querySelector&&vt.querySelector(".cm-tab"))&&(me.content.className="cm-tab-wrap-hack")}return $t(a,"renderLine",a,z.line,me.pre),me.pre.className&&(me.textClass=ze(me.pre.className,me.textClass||"")),me}function So(a){var z=je("span","\u2022","cm-invalidchar");return z.title="\\u"+a.charCodeAt(0).toString(16),z.setAttribute("aria-label",z.title),z}function xo(a,z,ye,me,Te,Ze,it){if(z){var dt=a.splitSpaces?eo(z,a.trailingSpace):z,vt=a.cm.state.specialChars,Ct=!1,Yt;if(!vt.test(z))a.col+=z.length,Yt=document.createTextNode(dt),a.map.push(a.pos,a.pos+z.length,Yt),ue&&ae<9&&(Ct=!0),a.pos+=z.length;else{Yt=document.createDocumentFragment();for(var nn=0;;){vt.lastIndex=nn;var In=vt.exec(z),Cn=In?In.index-nn:z.length-nn;if(Cn){var sr=document.createTextNode(dt.slice(nn,nn+Cn));ue&&ae<9?Yt.appendChild(je("span",[sr])):Yt.appendChild(sr),a.map.push(a.pos,a.pos+Cn,sr),a.col+=Cn,a.pos+=Cn}if(!In)break;nn+=Cn+1;var _r=void 0;if(In[0]==" "){var Fr=a.cm.options.tabSize,Qr=Fr-a.col%Fr;_r=Yt.appendChild(je("span",Mt(Qr),"cm-tab")),_r.setAttribute("role","presentation"),_r.setAttribute("cm-text"," "),a.col+=Qr}else In[0]=="\r"||In[0]==`
|
|
|
`?(_r=Yt.appendChild(je("span",In[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),_r.setAttribute("cm-text",In[0]),a.col+=1):(_r=a.cm.options.specialCharPlaceholder(In[0]),_r.setAttribute("cm-text",In[0]),ue&&ae<9?Yt.appendChild(je("span",[_r])):Yt.appendChild(_r),a.col+=1);a.map.push(a.pos,a.pos+1,_r),a.pos++}}if(a.trailingSpace=dt.charCodeAt(z.length-1)==32,ye||me||Te||Ct||Ze||it){var hi=ye||"";me&&(hi+=me),Te&&(hi+=Te);var qr=je("span",[Yt],hi,Ze);if(it)for(var Si in it)it.hasOwnProperty(Si)&&Si!="style"&&Si!="class"&&qr.setAttribute(Si,it[Si]);return a.content.appendChild(qr)}a.content.appendChild(Yt)}}function eo(a,z){if(a.length>1&&!/ /.test(a))return a;for(var ye=z,me="",Te=0;Te<a.length;Te++){var Ze=a.charAt(Te);Ze==" "&&ye&&(Te==a.length-1||a.charCodeAt(Te+1)==32)&&(Ze="\xA0"),me+=Ze,ye=Ze==" "}return me}function Yi(a,z){return function(ye,me,Te,Ze,it,dt,vt){Te=Te?Te+" cm-force-border":"cm-force-border";for(var Ct=ye.pos,Yt=Ct+me.length;;){for(var nn=void 0,In=0;In<z.length&&(nn=z[In],!(nn.to>Ct&&nn.from<=Ct));In++);if(nn.to>=Yt)return a(ye,me,Te,Ze,it,dt,vt);a(ye,me.slice(0,nn.to-Ct),Te,Ze,null,dt,vt),Ze=null,me=me.slice(nn.to-Ct),Ct=nn.to}}}function oi(a,z,ye,me){var Te=!me&&ye.widgetNode;Te&&a.map.push(a.pos,a.pos+z,Te),!me&&a.cm.display.input.needsContentAttribute&&(Te||(Te=a.content.appendChild(document.createElement("span"))),Te.setAttribute("cm-marker",ye.id)),Te&&(a.cm.display.input.setUneditable(Te),a.content.appendChild(Te)),a.pos+=z,a.trailingSpace=!1}function Xr(a,z,ye){var me=a.markedSpans,Te=a.text,Ze=0;if(!me){for(var it=1;it<ye.length;it+=2)z.addToken(z,Te.slice(Ze,Ze=ye[it]),Ni(ye[it+1],z.cm.options));return}for(var dt=Te.length,vt=0,Ct=1,Yt="",nn,In,Cn=0,sr,_r,Fr,Qr,hi;;){if(Cn==vt){sr=_r=Fr=In="",hi=null,Qr=null,Cn=1/0;for(var qr=[],Si=void 0,zi=0;zi<me.length;++zi){var Bi=me[zi],co=Bi.marker;if(co.type=="bookmark"&&Bi.from==vt&&co.widgetNode)qr.push(co);else if(Bi.from<=vt&&(Bi.to==null||Bi.to>vt||co.collapsed&&Bi.to==vt&&Bi.from==vt)){if(Bi.to!=null&&Bi.to!=vt&&Cn>Bi.to&&(Cn=Bi.to,_r=""),co.className&&(sr+=" "+co.className),co.css&&(In=(In?In+";":"")+co.css),co.startStyle&&Bi.from==vt&&(Fr+=" "+co.startStyle),co.endStyle&&Bi.to==Cn&&(Si||(Si=[])).push(co.endStyle,Bi.to),co.title&&((hi||(hi={})).title=co.title),co.attributes)for(var zo in co.attributes)(hi||(hi={}))[zo]=co.attributes[zo];co.collapsed&&(!Qr||pi(Qr.marker,co)<0)&&(Qr=Bi)}else Bi.from>vt&&Cn>Bi.from&&(Cn=Bi.from)}if(Si)for(var Ia=0;Ia<Si.length;Ia+=2)Si[Ia+1]==Cn&&(_r+=" "+Si[Ia]);if(!Qr||Qr.from==vt)for(var na=0;na<qr.length;++na)oi(z,0,qr[na]);if(Qr&&(Qr.from||0)==vt){if(oi(z,(Qr.to==null?dt+1:Qr.to)-vt,Qr.marker,Qr.from==null),Qr.to==null)return;Qr.to==vt&&(Qr=!1)}}if(vt>=dt)break;for(var hs=Math.min(dt,Cn);;){if(Yt){var ns=vt+Yt.length;if(!Qr){var va=ns>hs?Yt.slice(0,hs-vt):Yt;z.addToken(z,va,nn?nn+sr:sr,Fr,vt+va.length==Cn?_r:"",In,hi)}if(ns>=hs){Yt=Yt.slice(hs-vt),vt=hs;break}vt=ns,Fr=""}Yt=Te.slice(Ze,Ze=ye[Ct++]),nn=Ni(ye[Ct++],z.cm.options)}}}function $i(a,z,ye){this.line=z,this.rest=Br(z),this.size=this.rest?Nt(wt(this.rest))-ye+1:1,this.node=this.text=null,this.hidden=gr(a,z)}function ro(a,z,ye){for(var me=[],Te,Ze=z;Ze<ye;Ze=Te){var it=new $i(a.doc,Xt(a.doc,Ze),Ze);Te=Ze+it.size,me.push(it)}return me}var ao=null;function la(a){ao?ao.ops.push(a):a.ownsGroup=ao={ops:[a],delayedCallbacks:[]}}function Vo(a){var z=a.delayedCallbacks,ye=0;do{for(;ye<z.length;ye++)z[ye].call(null);for(var me=0;me<a.ops.length;me++){var Te=a.ops[me];if(Te.cursorActivityHandlers)for(;Te.cursorActivityCalled<Te.cursorActivityHandlers.length;)Te.cursorActivityHandlers[Te.cursorActivityCalled++].call(null,Te.cm)}}while(ye<z.length)}function Ko(a,z){var ye=a.ownsGroup;if(ye)try{Vo(ye)}finally{ao=null,z(ye)}}var ha=null;function wo(a,z){var ye=Bt(a,z);if(ye.length){var me=Array.prototype.slice.call(arguments,2),Te;ao?Te=ao.delayedCallbacks:ha?Te=ha:(Te=ha=[],setTimeout(Zo,0));for(var Ze=function(dt){Te.push(function(){return ye[dt].apply(null,me)})},it=0;it<ye.length;++it)Ze(it)}}function Zo(){var a=ha;ha=null;for(var z=0;z<a.length;++z)a[z]()}function pa(a,z,ye,me){for(var Te=0;Te<z.changes.length;Te++){var Ze=z.changes[Te];Ze=="text"?Va(a,z):Ze=="gutter"?Zi(a,z,ye,me):Ze=="class"?Ii(a,z):Ze=="widget"&&Ei(a,z,me)}z.changes=null}function xa(a){return a.node==a.text&&(a.node=je("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ue&&ae<8&&(a.node.style.zIndex=2)),a.node}function ko(a,z){var ye=z.bgClass?z.bgClass+" "+(z.line.bgClass||""):z.line.bgClass;if(ye&&(ye+=" CodeMirror-linebackground"),z.background)ye?z.background.className=ye:(z.background.parentNode.removeChild(z.background),z.background=null);else if(ye){var me=xa(z);z.background=me.insertBefore(je("div",null,ye),me.firstChild),a.display.input.setUneditable(z.background)}}function Za(a,z){var ye=a.display.externalMeasured;return ye&&ye.line==z.line?(a.display.externalMeasured=null,z.measure=ye.measure,ye.built):qi(a,z)}function Va(a,z){var ye=z.text.className,me=Za(a,z);z.text==z.node&&(z.node=me.pre),z.text.parentNode.replaceChild(me.pre,z.text),z.text=me.pre,me.bgClass!=z.bgClass||me.textClass!=z.textClass?(z.bgClass=me.bgClass,z.textClass=me.textClass,Ii(a,z)):ye&&(z.text.className=ye)}function Ii(a,z){ko(a,z),z.line.wrapClass?xa(z).className=z.line.wrapClass:z.node!=z.text&&(z.node.className="");var ye=z.textClass?z.textClass+" "+(z.line.textClass||""):z.line.textClass;z.text.className=ye||""}function Zi(a,z,ye,me){if(z.gutter&&(z.node.removeChild(z.gutter),z.gutter=null),z.gutterBackground&&(z.node.removeChild(z.gutterBackground),z.gutterBackground=null),z.line.gutterClass){var Te=xa(z);z.gutterBackground=je("div",null,"CodeMirror-gutter-background "+z.line.gutterClass,"left: "+(a.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px; width: "+me.gutterTotalWidth+"px"),a.display.input.setUneditable(z.gutterBackground),Te.insertBefore(z.gutterBackground,z.text)}var Ze=z.line.gutterMarkers;if(a.options.lineNumbers||Ze){var it=xa(z),dt=z.gutter=je("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?me.fixedPos:-me.gutterTotalWidth)+"px");if(a.display.input.setUneditable(dt),it.insertBefore(dt,z.text),z.line.gutterClass&&(dt.className+=" "+z.line.gutterClass),a.options.lineNumbers&&(!Ze||!Ze["CodeMirror-linenumbers"])&&(z.lineNumber=dt.appendChild(je("div",Ot(a.options,ye),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+me.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Ze)for(var vt=0;vt<a.display.gutterSpecs.length;++vt){var Ct=a.display.gutterSpecs[vt].className,Yt=Ze.hasOwnProperty(Ct)&&Ze[Ct];Yt&&dt.appendChild(je("div",[Yt],"CodeMirror-gutter-elt","left: "+me.gutterLeft[Ct]+"px; width: "+me.gutterWidth[Ct]+"px"))}}}function Ei(a,z,ye){z.alignable&&(z.alignable=null);for(var me=be("CodeMirror-linewidget"),Te=z.node.firstChild,Ze=void 0;Te;Te=Ze)Ze=Te.nextSibling,me.test(Te.className)&&z.node.removeChild(Te);io(a,z,ye)}function Mi(a,z,ye,me){var Te=Za(a,z);return z.text=z.node=Te.pre,Te.bgClass&&(z.bgClass=Te.bgClass),Te.textClass&&(z.textClass=Te.textClass),Ii(a,z),Zi(a,z,ye,me),io(a,z,me),z.node}function io(a,z,ye){if(to(a,z.line,z,ye,!0),z.rest)for(var me=0;me<z.rest.length;me++)to(a,z.rest[me],z,ye,!1)}function to(a,z,ye,me,Te){if(z.widgets)for(var Ze=xa(ye),it=0,dt=z.widgets;it<dt.length;++it){var vt=dt[it],Ct=je("div",[vt.node],"CodeMirror-linewidget"+(vt.className?" "+vt.className:""));vt.handleMouseEvents||Ct.setAttribute("cm-ignore-events","true"),ea(vt,Ct,ye,me),a.display.input.setUneditable(Ct),Te&&vt.above?Ze.insertBefore(Ct,ye.gutter||ye.text):Ze.appendChild(Ct),wo(vt,"redraw")}}function ea(a,z,ye,me){if(a.noHScroll){(ye.alignable||(ye.alignable=[])).push(z);var Te=me.wrapperWidth;z.style.left=me.fixedPos+"px",a.coverGutter||(Te-=me.gutterTotalWidth,z.style.paddingLeft=me.gutterTotalWidth+"px"),z.style.width=Te+"px"}a.coverGutter&&(z.style.zIndex=5,z.style.position="relative",a.noHScroll||(z.style.marginLeft=-me.gutterTotalWidth+"px"))}function Wo(a){if(a.height!=null)return a.height;var z=a.doc.cm;if(!z)return 0;if(!qe(document.body,a.node)){var ye="position: relative;";a.coverGutter&&(ye+="margin-left: -"+z.display.gutters.offsetWidth+"px;"),a.noHScroll&&(ye+="width: "+z.display.wrapper.clientWidth+"px;"),De(z.display.measure,je("div",[a.node],null,ye))}return a.height=a.node.parentNode.offsetHeight}function ca(a,z){for(var ye=Gt(z);ye!=a.wrapper;ye=ye.parentNode)if(!ye||ye.nodeType==1&&ye.getAttribute("cm-ignore-events")=="true"||ye.parentNode==a.sizer&&ye!=a.mover)return!0}function $o(a){return a.lineSpace.offsetTop}function Na(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function os(a){if(a.cachedPaddingH)return a.cachedPaddingH;var z=De(a.measure,je("pre","x","CodeMirror-line-like")),ye=window.getComputedStyle?window.getComputedStyle(z):z.currentStyle,me={left:parseInt(ye.paddingLeft),right:parseInt(ye.paddingRight)};return!isNaN(me.left)&&!isNaN(me.right)&&(a.cachedPaddingH=me),me}function Aa(a){return et-a.display.nativeBarWidth}function Ka(a){return a.display.scroller.clientWidth-Aa(a)-a.display.barWidth}function Ya(a){return a.display.scroller.clientHeight-Aa(a)-a.display.barHeight}function Ba(a,z,ye){var me=a.options.lineWrapping,Te=me&&Ka(a);if(!z.measure.heights||me&&z.measure.width!=Te){var Ze=z.measure.heights=[];if(me){z.measure.width=Te;for(var it=z.text.firstChild.getClientRects(),dt=0;dt<it.length-1;dt++){var vt=it[dt],Ct=it[dt+1];Math.abs(vt.bottom-Ct.bottom)>2&&Ze.push((vt.bottom+Ct.top)/2-ye.top)}}Ze.push(ye.bottom-ye.top)}}function as(a,z,ye){if(a.line==z)return{map:a.measure.map,cache:a.measure.cache};for(var me=0;me<a.rest.length;me++)if(a.rest[me]==z)return{map:a.measure.maps[me],cache:a.measure.caches[me]};for(var Te=0;Te<a.rest.length;Te++)if(Nt(a.rest[Te])>ye)return{map:a.measure.maps[Te],cache:a.measure.caches[Te],before:!0}}function Xa(a,z){z=zn(z);var ye=Nt(z),me=a.display.externalMeasured=new $i(a.doc,z,ye);me.lineN=ye;var Te=me.built=qi(a,me);return me.text=Te.pre,De(a.display.lineMeasure,Te.pre),me}function il(a,z,ye,me){return Wa(a,vs(a,z),ye,me)}function Ja(a,z){if(z>=a.display.viewFrom&&z<a.display.viewTo)return a.display.view[Yo(a,z)];var ye=a.display.externalMeasured;if(ye&&z>=ye.lineN&&z<ye.lineN+ye.size)return ye}function vs(a,z){var ye=Nt(z),me=Ja(a,ye);me&&!me.text?me=null:me&&me.changes&&(pa(a,me,ye,bs(a)),a.curOp.forceUpdate=!0),me||(me=Xa(a,z));var Te=as(me,z,ye);return{line:z,view:me,rect:null,map:Te.map,cache:Te.cache,before:Te.before,hasHeights:!1}}function Wa(a,z,ye,me,Te){z.before&&(ye=-1);var Ze=ye+(me||""),it;return z.cache.hasOwnProperty(Ze)?it=z.cache[Ze]:(z.rect||(z.rect=z.view.text.getBoundingClientRect()),z.hasHeights||(Ba(a,z.view,z.rect),z.hasHeights=!0),it=hl(a,z,ye,me),it.bogus||(z.cache[Ze]=it)),{left:it.left,right:it.right,top:Te?it.rtop:it.top,bottom:Te?it.rbottom:it.bottom}}var Ll={left:0,right:0,top:0,bottom:0};function $s(a,z,ye){for(var me,Te,Ze,it,dt,vt,Ct=0;Ct<a.length;Ct+=3)if(dt=a[Ct],vt=a[Ct+1],z<dt?(Te=0,Ze=1,it="left"):z<vt?(Te=z-dt,Ze=Te+1):(Ct==a.length-3||z==vt&&a[Ct+3]>z)&&(Ze=vt-dt,Te=Ze-1,z>=vt&&(it="right")),Te!=null){if(me=a[Ct+2],dt==vt&&ye==(me.insertLeft?"left":"right")&&(it=ye),ye=="left"&&Te==0)for(;Ct&&a[Ct-2]==a[Ct-3]&&a[Ct-1].insertLeft;)me=a[(Ct-=3)+2],it="left";if(ye=="right"&&Te==vt-dt)for(;Ct<a.length-3&&a[Ct+3]==a[Ct+4]&&!a[Ct+5].insertLeft;)me=a[(Ct+=3)+2],it="right";break}return{node:me,start:Te,end:Ze,collapse:it,coverStart:dt,coverEnd:vt}}function Es(a,z){var ye=Ll;if(z=="left")for(var me=0;me<a.length&&(ye=a[me]).left==ye.right;me++);else for(var Te=a.length-1;Te>=0&&(ye=a[Te]).left==ye.right;Te--);return ye}function hl(a,z,ye,me){var Te=$s(z.map,ye,me),Ze=Te.node,it=Te.start,dt=Te.end,vt=Te.collapse,Ct;if(Ze.nodeType==3){for(var Yt=0;Yt<4;Yt++){for(;it&&pe(z.line.text.charAt(Te.coverStart+it));)--it;for(;Te.coverStart+dt<Te.coverEnd&&pe(z.line.text.charAt(Te.coverStart+dt));)++dt;if(ue&&ae<9&&it==0&&dt==Te.coverEnd-Te.coverStart?Ct=Ze.parentNode.getBoundingClientRect():Ct=Es(Re(Ze,it,dt).getClientRects(),me),Ct.left||Ct.right||it==0)break;dt=it,it=it-1,vt="right"}ue&&ae<11&&(Ct=Al(a.display.measure,Ct))}else{it>0&&(vt=me="right");var nn;a.options.lineWrapping&&(nn=Ze.getClientRects()).length>1?Ct=nn[me=="right"?nn.length-1:0]:Ct=Ze.getBoundingClientRect()}if(ue&&ae<9&&!it&&(!Ct||!Ct.left&&!Ct.right)){var In=Ze.parentNode.getClientRects()[0];In?Ct={left:In.left,right:In.left+Qa(a.display),top:In.top,bottom:In.bottom}:Ct=Ll}for(var Cn=Ct.top-z.rect.top,sr=Ct.bottom-z.rect.top,_r=(Cn+sr)/2,Fr=z.view.measure.heights,Qr=0;Qr<Fr.length-1&&!(_r<Fr[Qr]);Qr++);var hi=Qr?Fr[Qr-1]:0,qr=Fr[Qr],Si={left:(vt=="right"?Ct.right:Ct.left)-z.rect.left,right:(vt=="left"?Ct.left:Ct.right)-z.rect.left,top:hi,bottom:qr};return!Ct.left&&!Ct.right&&(Si.bogus=!0),a.options.singleCursorHeightPerLine||(Si.rtop=Cn,Si.rbottom=sr),Si}function Al(a,z){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Qn(a))return z;var ye=screen.logicalXDPI/screen.deviceXDPI,me=screen.logicalYDPI/screen.deviceYDPI;return{left:z.left*ye,right:z.right*ye,top:z.top*me,bottom:z.bottom*me}}function Gs(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var z=0;z<a.rest.length;z++)a.measure.caches[z]={}}function ss(a){a.display.externalMeasure=null,Ae(a.display.lineMeasure);for(var z=0;z<a.display.view.length;z++)Gs(a.display.view[z])}function gs(a){ss(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function ks(){return ne&&ce?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Vs(){return ne&&ce?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ys(a){var z=0;if(a.widgets)for(var ye=0;ye<a.widgets.length;++ye)a.widgets[ye].above&&(z+=Wo(a.widgets[ye]));return z}function Ks(a,z,ye,me,Te){if(!Te){var Ze=ys(z);ye.top+=Ze,ye.bottom+=Ze}if(me=="line")return ye;me||(me="local");var it=ui(z);if(me=="local"?it+=$o(a.display):it-=a.display.viewOffset,me=="page"||me=="window"){var dt=a.display.lineSpace.getBoundingClientRect();it+=dt.top+(me=="window"?0:Vs());var vt=dt.left+(me=="window"?0:ks());ye.left+=vt,ye.right+=vt}return ye.top+=it,ye.bottom+=it,ye}function Rs(a,z,ye){if(ye=="div")return z;var me=z.left,Te=z.top;if(ye=="page")me-=ks(),Te-=Vs();else if(ye=="local"||!ye){var Ze=a.display.sizer.getBoundingClientRect();me+=Ze.left,Te+=Ze.top}var it=a.display.lineSpace.getBoundingClientRect();return{left:me-it.left,top:Te-it.top}}function Ts(a,z,ye,me,Te){return me||(me=Xt(a.doc,z.line)),Ks(a,me,il(a,me,z.ch,Te),ye)}function ya(a,z,ye,me,Te,Ze){me=me||Xt(a.doc,z.line),Te||(Te=vs(a,me));function it(sr,_r){var Fr=Wa(a,Te,sr,_r?"right":"left",Ze);return _r?Fr.left=Fr.right:Fr.right=Fr.left,Ks(a,me,Fr,ye)}var dt=st(me,a.doc.direction),vt=z.ch,Ct=z.sticky;if(vt>=me.text.length?(vt=me.text.length,Ct="before"):vt<=0&&(vt=0,Ct="after"),!dt)return it(Ct=="before"?vt-1:vt,Ct=="before");function Yt(sr,_r,Fr){var Qr=dt[_r],hi=Qr.level==1;return it(Fr?sr-1:sr,hi!=Fr)}var nn=tt(dt,vt,Ct),In=Oe,Cn=Yt(vt,nn,Ct=="before");return In!=null&&(Cn.other=Yt(vt,In,Ct!="before")),Cn}function so(a,z){var ye=0;z=tn(a.doc,z),a.options.lineWrapping||(ye=Qa(a.display)*z.ch);var me=Xt(a.doc,z.line),Te=ui(me)+$o(a.display);return{left:ye,right:ye,top:Te,bottom:Te+me.height}}function Gi(a,z,ye,me,Te){var Ze=yt(a,z,ye);return Ze.xRel=Te,me&&(Ze.outside=me),Ze}function ra(a,z,ye){var me=a.doc;if(ye+=a.display.viewOffset,ye<0)return Gi(me.first,0,null,-1,-1);var Te=jt(me,ye),Ze=me.first+me.size-1;if(Te>Ze)return Gi(me.first+me.size-1,Xt(me,Ze).text.length,null,1,1);z<0&&(z=0);for(var it=Xt(me,Te);;){var dt=ls(a,it,Te,z,ye),vt=Xn(it,dt.ch+(dt.xRel>0||dt.outside>0?1:0));if(!vt)return dt;var Ct=vt.find(1);if(Ct.line==Te)return Ct;it=Xt(me,Te=Ct.line)}}function ba(a,z,ye,me){me-=ys(z);var Te=z.text.length,Ze=ke(function(it){return Wa(a,ye,it-1).bottom<=me},Te,0);return Te=ke(function(it){return Wa(a,ye,it).top>me},Ze,Te),{begin:Ze,end:Te}}function Ho(a,z,ye,me){ye||(ye=vs(a,z));var Te=Ks(a,z,Wa(a,ye,me),"line").top;return ba(a,z,ye,Te)}function ia(a,z,ye,me){return a.bottom<=ye?!1:a.top>ye?!0:(me?a.left:a.right)>z}function ls(a,z,ye,me,Te){Te-=ui(z);var Ze=vs(a,z),it=ys(z),dt=0,vt=z.text.length,Ct=!0,Yt=st(z,a.doc.direction);if(Yt){var nn=(a.options.lineWrapping?cs:$a)(a,z,ye,Ze,Yt,me,Te);Ct=nn.level!=1,dt=Ct?nn.from:nn.to-1,vt=Ct?nn.to:nn.from-1}var In=null,Cn=null,sr=ke(function(zi){var Bi=Wa(a,Ze,zi);return Bi.top+=it,Bi.bottom+=it,ia(Bi,me,Te,!1)?(Bi.top<=Te&&Bi.left<=me&&(In=zi,Cn=Bi),!0):!1},dt,vt),_r,Fr,Qr=!1;if(Cn){var hi=me-Cn.left<Cn.right-me,qr=hi==Ct;sr=In+(qr?0:1),Fr=qr?"after":"before",_r=hi?Cn.left:Cn.right}else{!Ct&&(sr==vt||sr==dt)&&sr++,Fr=sr==0?"after":sr==z.text.length?"before":Wa(a,Ze,sr-(Ct?1:0)).bottom+it<=Te==Ct?"after":"before";var Si=ya(a,yt(ye,sr,Fr),"line",z,Ze);_r=Si.left,Qr=Te<Si.top?-1:Te>=Si.bottom?1:0}return sr=we(z.text,sr,1),Gi(ye,sr,Fr,Qr,me-_r)}function $a(a,z,ye,me,Te,Ze,it){var dt=ke(function(nn){var In=Te[nn],Cn=In.level!=1;return ia(ya(a,yt(ye,Cn?In.to:In.from,Cn?"before":"after"),"line",z,me),Ze,it,!0)},0,Te.length-1),vt=Te[dt];if(dt>0){var Ct=vt.level!=1,Yt=ya(a,yt(ye,Ct?vt.from:vt.to,Ct?"after":"before"),"line",z,me);ia(Yt,Ze,it,!0)&&Yt.top>it&&(vt=Te[dt-1])}return vt}function cs(a,z,ye,me,Te,Ze,it){var dt=ba(a,z,me,it),vt=dt.begin,Ct=dt.end;/\s/.test(z.text.charAt(Ct-1))&&Ct--;for(var Yt=null,nn=null,In=0;In<Te.length;In++){var Cn=Te[In];if(!(Cn.from>=Ct||Cn.to<=vt)){var sr=Cn.level!=1,_r=Wa(a,me,sr?Math.min(Ct,Cn.to)-1:Math.max(vt,Cn.from)).right,Fr=_r<Ze?Ze-_r+1e9:_r-Ze;(!Yt||nn>Fr)&&(Yt=Cn,nn=Fr)}}return Yt||(Yt=Te[Te.length-1]),Yt.from<vt&&(Yt={from:vt,to:Yt.to,level:Yt.level}),Yt.to>Ct&&(Yt={from:Yt.from,to:Ct,level:Yt.level}),Yt}var Da;function Ma(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Da==null){Da=je("pre",null,"CodeMirror-line-like");for(var z=0;z<49;++z)Da.appendChild(document.createTextNode("x")),Da.appendChild(je("br"));Da.appendChild(document.createTextNode("x"))}De(a.measure,Da);var ye=Da.offsetHeight/50;return ye>3&&(a.cachedTextHeight=ye),Ae(a.measure),ye||1}function Qa(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var z=je("span","xxxxxxxxxx"),ye=je("pre",[z],"CodeMirror-line-like");De(a.measure,ye);var me=z.getBoundingClientRect(),Te=(me.right-me.left)/10;return Te>2&&(a.cachedCharWidth=Te),Te||10}function bs(a){for(var z=a.display,ye={},me={},Te=z.gutters.clientLeft,Ze=z.gutters.firstChild,it=0;Ze;Ze=Ze.nextSibling,++it){var dt=a.display.gutterSpecs[it].className;ye[dt]=Ze.offsetLeft+Ze.clientLeft+Te,me[dt]=Ze.clientWidth}return{fixedPos:ol(z),gutterTotalWidth:z.gutters.offsetWidth,gutterLeft:ye,gutterWidth:me,wrapperWidth:z.wrapper.clientWidth}}function ol(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function pl(a){var z=Ma(a.display),ye=a.options.lineWrapping,me=ye&&Math.max(5,a.display.scroller.clientWidth/Qa(a.display)-3);return function(Te){if(gr(a.doc,Te))return 0;var Ze=0;if(Te.widgets)for(var it=0;it<Te.widgets.length;it++)Te.widgets[it].height&&(Ze+=Te.widgets[it].height);return ye?Ze+(Math.ceil(Te.text.length/me)||1)*z:Ze+z}}function Ps(a){var z=a.doc,ye=pl(a);z.iter(function(me){var Te=ye(me);Te!=me.height&&vr(me,Te)})}function us(a,z,ye,me){var Te=a.display;if(!ye&&Gt(z).getAttribute("cm-not-content")=="true")return null;var Ze,it,dt=Te.lineSpace.getBoundingClientRect();try{Ze=z.clientX-dt.left,it=z.clientY-dt.top}catch(nn){return null}var vt=ra(a,Ze,it),Ct;if(me&&vt.xRel>0&&(Ct=Xt(a.doc,vt.line).text).length==vt.ch){var Yt=Ge(Ct,Ct.length,a.options.tabSize)-Ct.length;vt=yt(vt.line,Math.max(0,Math.round((Ze-os(a.display).left)/Qa(a.display))-Yt))}return vt}function Yo(a,z){if(z>=a.display.viewTo||(z-=a.display.viewFrom,z<0))return null;for(var ye=a.display.view,me=0;me<ye.length;me++)if(z-=ye[me].size,z<0)return me}function Sa(a,z,ye,me){z==null&&(z=a.doc.first),ye==null&&(ye=a.doc.first+a.doc.size),me||(me=0);var Te=a.display;if(me&&ye<Te.viewTo&&(Te.updateLineNumbers==null||Te.updateLineNumbers>z)&&(Te.updateLineNumbers=z),a.curOp.viewChanged=!0,z>=Te.viewTo)pr&&Wn(a.doc,z)<Te.viewTo&&ps(a);else if(ye<=Te.viewFrom)pr&&Jn(a.doc,ye+me)>Te.viewFrom?ps(a):(Te.viewFrom+=me,Te.viewTo+=me);else if(z<=Te.viewFrom&&ye>=Te.viewTo)ps(a);else if(z<=Te.viewFrom){var Ze=Ys(a,ye,ye+me,1);Ze?(Te.view=Te.view.slice(Ze.index),Te.viewFrom=Ze.lineN,Te.viewTo+=me):ps(a)}else if(ye>=Te.viewTo){var it=Ys(a,z,z,-1);it?(Te.view=Te.view.slice(0,it.index),Te.viewTo=it.lineN):ps(a)}else{var dt=Ys(a,z,z,-1),vt=Ys(a,ye,ye+me,1);dt&&vt?(Te.view=Te.view.slice(0,dt.index).concat(ro(a,dt.lineN,vt.lineN)).concat(Te.view.slice(vt.index)),Te.viewTo+=me):ps(a)}var Ct=Te.externalMeasured;Ct&&(ye<Ct.lineN?Ct.lineN+=me:z<Ct.lineN+Ct.size&&(Te.externalMeasured=null))}function ja(a,z,ye){a.curOp.viewChanged=!0;var me=a.display,Te=a.display.externalMeasured;if(Te&&z>=Te.lineN&&z<Te.lineN+Te.size&&(me.externalMeasured=null),!(z<me.viewFrom||z>=me.viewTo)){var Ze=me.view[Yo(a,z)];if(Ze.node!=null){var it=Ze.changes||(Ze.changes=[]);Ke(it,ye)==-1&&it.push(ye)}}}function ps(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ys(a,z,ye,me){var Te=Yo(a,z),Ze,it=a.display.view;if(!pr||ye==a.doc.first+a.doc.size)return{index:Te,lineN:ye};for(var dt=a.display.viewFrom,vt=0;vt<Te;vt++)dt+=it[vt].size;if(dt!=z){if(me>0){if(Te==it.length-1)return null;Ze=dt+it[Te].size-z,Te++}else Ze=dt-z;z+=Ze,ye+=Ze}for(;Wn(a.doc,ye)!=ye;){if(Te==(me<0?0:it.length-1))return null;ye+=me*it[Te-(me<0?1:0)].size,Te+=me}return{index:Te,lineN:ye}}function Is(a,z,ye){var me=a.display,Te=me.view;Te.length==0||z>=me.viewTo||ye<=me.viewFrom?(me.view=ro(a,z,ye),me.viewFrom=z):(me.viewFrom>z?me.view=ro(a,z,me.viewFrom).concat(me.view):me.viewFrom<z&&(me.view=me.view.slice(Yo(a,z))),me.viewFrom=z,me.viewTo<ye?me.view=me.view.concat(ro(a,me.viewTo,ye)):me.viewTo>ye&&(me.view=me.view.slice(0,Yo(a,ye)))),me.viewTo=ye}function ml(a){for(var z=a.display.view,ye=0,me=0;me<z.length;me++){var Te=z[me];!Te.hidden&&(!Te.node||Te.changes)&&++ye}return ye}function Ls(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Wl(a,z){z===void 0&&(z=!0);for(var ye=a.doc,me={},Te=me.cursors=document.createDocumentFragment(),Ze=me.selection=document.createDocumentFragment(),it=0;it<ye.sel.ranges.length;it++)if(!(!z&&it==ye.sel.primIndex)){var dt=ye.sel.ranges[it];if(!(dt.from().line>=a.display.viewTo||dt.to().line<a.display.viewFrom)){var vt=dt.empty();(vt||a.options.showCursorWhenSelecting)&&vl(a,dt.head,Te),vt||dc(a,dt,Ze)}}return me}function vl(a,z,ye){var me=ya(a,z,"div",null,null,!a.options.singleCursorHeightPerLine),Te=ye.appendChild(je("div","\xA0","CodeMirror-cursor"));if(Te.style.left=me.left+"px",Te.style.top=me.top+"px",Te.style.height=Math.max(0,me.bottom-me.top)*a.options.cursorHeight+"px",me.other){var Ze=ye.appendChild(je("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ze.style.display="",Ze.style.left=me.other.left+"px",Ze.style.top=me.other.top+"px",Ze.style.height=(me.other.bottom-me.other.top)*.85+"px"}}function Xs(a,z){return a.top-z.top||a.left-z.left}function dc(a,z,ye){var me=a.display,Te=a.doc,Ze=document.createDocumentFragment(),it=os(a.display),dt=it.left,vt=Math.max(me.sizerWidth,Ka(a)-me.sizer.offsetLeft)-it.right,Ct=Te.direction=="ltr";function Yt(qr,Si,zi,Bi){Si<0&&(Si=0),Si=Math.round(Si),Bi=Math.round(Bi),Ze.appendChild(je("div",null,"CodeMirror-selected","position: absolute; left: "+qr+`px;
|
|
|
top: `+Si+"px; width: "+(zi==null?vt-qr:zi)+`px;
|
|
|
height: `+(Bi-Si)+"px"))}function nn(qr,Si,zi){var Bi=Xt(Te,qr),co=Bi.text.length,zo,Ia;function na(va,rs){return Ts(a,yt(qr,va),"div",Bi,rs)}function hs(va,rs,Pa){var Ca=Ho(a,Bi,null,va),ga=rs=="ltr"==(Pa=="after")?"left":"right",sa=Pa=="after"?Ca.begin:Ca.end-(/\s/.test(Bi.text.charAt(Ca.end-1))?2:1);return na(sa,ga)[ga]}var ns=st(Bi,Te.direction);return Me(ns,Si||0,zi==null?co:zi,function(va,rs,Pa,Ca){var ga=Pa=="ltr",sa=na(va,ga?"left":"right"),is=na(rs-1,ga?"right":"left"),Ul=Si==null&&va==0,fl=zi==null&&rs==co,Ua=Ca==0,Ws=!ns||Ca==ns.length-1;if(is.top-sa.top<=3){var La=(Ct?Ul:fl)&&Ua,Mc=(Ct?fl:Ul)&&Ws,rl=La?dt:(ga?sa:is).left,Tl=Mc?vt:(ga?is:sa).right;Yt(rl,sa.top,Tl-rl,sa.bottom)}else{var Il,Ga,Zl,Oc;ga?(Il=Ct&&Ul&&Ua?dt:sa.left,Ga=Ct?vt:hs(va,Pa,"before"),Zl=Ct?dt:hs(rs,Pa,"after"),Oc=Ct&&fl&&Ws?vt:is.right):(Il=Ct?hs(va,Pa,"before"):dt,Ga=!Ct&&Ul&&Ua?vt:sa.right,Zl=!Ct&&fl&&Ws?dt:is.left,Oc=Ct?hs(rs,Pa,"after"):vt),Yt(Il,sa.top,Ga-Il,sa.bottom),sa.bottom<is.top&&Yt(dt,sa.bottom,null,is.top),Yt(Zl,is.top,Oc-Zl,is.bottom)}(!zo||Xs(sa,zo)<0)&&(zo=sa),Xs(is,zo)<0&&(zo=is),(!Ia||Xs(sa,Ia)<0)&&(Ia=sa),Xs(is,Ia)<0&&(Ia=is)}),{start:zo,end:Ia}}var In=z.from(),Cn=z.to();if(In.line==Cn.line)nn(In.line,In.ch,Cn.ch);else{var sr=Xt(Te,In.line),_r=Xt(Te,Cn.line),Fr=zn(sr)==zn(_r),Qr=nn(In.line,In.ch,Fr?sr.text.length+1:null).end,hi=nn(Cn.line,Fr?0:null,Cn.ch).start;Fr&&(Qr.top<hi.top-2?(Yt(Qr.right,Qr.top,null,Qr.bottom),Yt(dt,hi.top,hi.left,hi.bottom)):Yt(Qr.right,Qr.top,hi.left-Qr.right,Qr.bottom)),Qr.bottom<hi.top&&Yt(dt,Qr.bottom,null,hi.top)}ye.appendChild(Ze)}function al(a){if(a.state.focused){var z=a.display;clearInterval(z.blinker);var ye=!0;z.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?z.blinker=setInterval(function(){a.hasFocus()||Js(a),z.cursorDiv.style.visibility=(ye=!ye)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(z.cursorDiv.style.visibility="hidden")}}function Ss(a){a.state.focused||(a.display.input.focus(),Ns(a))}function sl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Js(a))},100)}function Ns(a,z){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||($t(a,"focus",a,z),a.state.focused=!0,He(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),se&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),al(a))}function Js(a,z){a.state.delayingBlurEvent||(a.state.focused&&($t(a,"blur",a,z),a.state.focused=!1,Ee(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ai(a){for(var z=a.display,ye=z.lineDiv.offsetTop,me=0;me<z.view.length;me++){var Te=z.view[me],Ze=a.options.lineWrapping,it=void 0,dt=0;if(!Te.hidden){if(ue&&ae<8){var vt=Te.node.offsetTop+Te.node.offsetHeight;it=vt-ye,ye=vt}else{var Ct=Te.node.getBoundingClientRect();it=Ct.bottom-Ct.top,!Ze&&Te.text.firstChild&&(dt=Te.text.firstChild.getBoundingClientRect().right-Ct.left-1)}var Yt=Te.line.height-it;if((Yt>.005||Yt<-.005)&&(vr(Te.line,it),Bs(Te.line),Te.rest))for(var nn=0;nn<Te.rest.length;nn++)Bs(Te.rest[nn]);if(dt>a.display.sizerWidth){var In=Math.ceil(dt/Qa(a.display));In>a.display.maxLineLength&&(a.display.maxLineLength=In,a.display.maxLine=Te.line,a.display.maxLineChanged=!0)}}}}function Bs(a){if(a.widgets)for(var z=0;z<a.widgets.length;++z){var ye=a.widgets[z],me=ye.node.parentNode;me&&(ye.height=me.offsetHeight)}}function _s(a,z,ye){var me=ye&&ye.top!=null?Math.max(0,ye.top):a.scroller.scrollTop;me=Math.floor(me-$o(a));var Te=ye&&ye.bottom!=null?ye.bottom:me+a.wrapper.clientHeight,Ze=jt(z,me),it=jt(z,Te);if(ye&&ye.ensure){var dt=ye.ensure.from.line,vt=ye.ensure.to.line;dt<Ze?(Ze=dt,it=jt(z,ui(Xt(z,dt))+a.wrapper.clientHeight)):Math.min(vt,z.lastLine())>=it&&(Ze=jt(z,ui(Xt(z,vt))-a.wrapper.clientHeight),it=vt)}return{from:Ze,to:Math.max(it,Ze+1)}}function $l(a,z){if(!It(a,"scrollCursorIntoView")){var ye=a.display,me=ye.sizer.getBoundingClientRect(),Te=null;if(z.top+me.top<0?Te=!0:z.bottom+me.top>(window.innerHeight||document.documentElement.clientHeight)&&(Te=!1),Te!=null&&!E){var Ze=je("div","\u200B",null,`position: absolute;
|
|
|
top: `+(z.top-ye.viewOffset-$o(a.display))+`px;
|
|
|
height: `+(z.bottom-z.top+Aa(a)+ye.barHeight)+`px;
|
|
|
left: `+z.left+"px; width: "+Math.max(2,z.right-z.left)+"px;");a.display.lineSpace.appendChild(Ze),Ze.scrollIntoView(Te),a.display.lineSpace.removeChild(Ze)}}}function Gl(a,z,ye,me){me==null&&(me=0);var Te;!a.options.lineWrapping&&z==ye&&(z=z.ch?yt(z.line,z.sticky=="before"?z.ch-1:z.ch,"after"):z,ye=z.sticky=="before"?yt(z.line,z.ch+1,"before"):z);for(var Ze=0;Ze<5;Ze++){var it=!1,dt=ya(a,z),vt=!ye||ye==z?dt:ya(a,ye);Te={left:Math.min(dt.left,vt.left),top:Math.min(dt.top,vt.top)-me,right:Math.max(dt.left,vt.left),bottom:Math.max(dt.bottom,vt.bottom)+me};var Ct=gl(a,Te),Yt=a.doc.scrollTop,nn=a.doc.scrollLeft;if(Ct.scrollTop!=null&&(As(a,Ct.scrollTop),Math.abs(a.doc.scrollTop-Yt)>1&&(it=!0)),Ct.scrollLeft!=null&&(Ds(a,Ct.scrollLeft),Math.abs(a.doc.scrollLeft-nn)>1&&(it=!0)),!it)break}return Te}function fc(a,z){var ye=gl(a,z);ye.scrollTop!=null&&As(a,ye.scrollTop),ye.scrollLeft!=null&&Ds(a,ye.scrollLeft)}function gl(a,z){var ye=a.display,me=Ma(a.display);z.top<0&&(z.top=0);var Te=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ye.scroller.scrollTop,Ze=Ya(a),it={};z.bottom-z.top>Ze&&(z.bottom=z.top+Ze);var dt=a.doc.height+Na(ye),vt=z.top<me,Ct=z.bottom>dt-me;if(z.top<Te)it.scrollTop=vt?0:z.top;else if(z.bottom>Te+Ze){var Yt=Math.min(z.top,(Ct?dt:z.bottom)-Ze);Yt!=Te&&(it.scrollTop=Yt)}var nn=a.options.fixedGutter?0:ye.gutters.offsetWidth,In=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ye.scroller.scrollLeft-nn,Cn=Ka(a)-ye.gutters.offsetWidth,sr=z.right-z.left>Cn;return sr&&(z.right=z.left+Cn),z.left<10?it.scrollLeft=0:z.left<In?it.scrollLeft=Math.max(0,z.left+nn-(sr?0:10)):z.right>Cn+In-3&&(it.scrollLeft=z.right+(sr?0:10)-Cn),it}function Dl(a,z){z!=null&&(yl(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+z)}function js(a){yl(a);var z=a.getCursor();a.curOp.scrollToPos={from:z,to:z,margin:a.options.cursorScrollMargin}}function Li(a,z,ye){(z!=null||ye!=null)&&yl(a),z!=null&&(a.curOp.scrollLeft=z),ye!=null&&(a.curOp.scrollTop=ye)}function Vl(a,z){yl(a),a.curOp.scrollToPos=z}function yl(a){var z=a.curOp.scrollToPos;if(z){a.curOp.scrollToPos=null;var ye=so(a,z.from),me=so(a,z.to);Ml(a,ye,me,z.margin)}}function Ml(a,z,ye,me){var Te=gl(a,{left:Math.min(z.left,ye.left),top:Math.min(z.top,ye.top)-me,right:Math.max(z.right,ye.right),bottom:Math.max(z.bottom,ye.bottom)+me});Li(a,Te.scrollLeft,Te.scrollTop)}function As(a,z){Math.abs(a.doc.scrollTop-z)<2||(y||Qi(a,{top:z}),bl(a,z,!0),y&&Qi(a),or(a,100))}function bl(a,z,ye){z=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,z)),!(a.display.scroller.scrollTop==z&&!ye)&&(a.doc.scrollTop=z,a.display.scrollbars.setScrollTop(z),a.display.scroller.scrollTop!=z&&(a.display.scroller.scrollTop=z))}function Ds(a,z,ye,me){z=Math.max(0,Math.min(z,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((ye?z==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-z)<2)&&!me)&&(a.doc.scrollLeft=z,Et(a),a.display.scroller.scrollLeft!=z&&(a.display.scroller.scrollLeft=z),a.display.scrollbars.setScrollLeft(z))}function Fs(a){var z=a.display,ye=z.gutters.offsetWidth,me=Math.round(a.doc.height+Na(a.display));return{clientHeight:z.scroller.clientHeight,viewHeight:z.wrapper.clientHeight,scrollWidth:z.scroller.scrollWidth,clientWidth:z.scroller.clientWidth,viewWidth:z.wrapper.clientWidth,barLeft:a.options.fixedGutter?ye:0,docHeight:me,scrollHeight:me+Aa(a)+z.barHeight,nativeBarWidth:z.nativeBarWidth,gutterWidth:ye}}var yo=function(a,z,ye){this.cm=ye;var me=this.vert=je("div",[je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Te=this.horiz=je("div",[je("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");me.tabIndex=Te.tabIndex=-1,a(me),a(Te),Ft(me,"scroll",function(){me.clientHeight&&z(me.scrollTop,"vertical")}),Ft(Te,"scroll",function(){Te.clientWidth&&z(Te.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ue&&ae<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};yo.prototype.update=function(a){var z=a.scrollWidth>a.clientWidth+1,ye=a.scrollHeight>a.clientHeight+1,me=a.nativeBarWidth;if(ye){this.vert.style.display="block",this.vert.style.bottom=z?me+"px":"0";var Te=a.viewHeight-(z?me:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+Te)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(z){this.horiz.style.display="block",this.horiz.style.right=ye?me+"px":"0",this.horiz.style.left=a.barLeft+"px";var Ze=a.viewWidth-a.barLeft-(ye?me:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Ze)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(me==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ye?me:0,bottom:z?me:0}},yo.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},yo.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},yo.prototype.zeroWidthHack=function(){var a=ve&&!ee?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ue,this.disableVert=new Ue},yo.prototype.enableZeroWidthBar=function(a,z,ye){a.style.pointerEvents="auto";function me(){var Te=a.getBoundingClientRect(),Ze=ye=="vert"?document.elementFromPoint(Te.right-1,(Te.top+Te.bottom)/2):document.elementFromPoint((Te.right+Te.left)/2,Te.bottom-1);Ze!=a?a.style.pointerEvents="none":z.set(1e3,me)}z.set(1e3,me)},yo.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var jo=function(){};jo.prototype.update=function(){return{bottom:0,right:0}},jo.prototype.setScrollLeft=function(){},jo.prototype.setScrollTop=function(){},jo.prototype.clear=function(){};function Qs(a,z){z||(z=Fs(a));var ye=a.display.barWidth,me=a.display.barHeight;Oa(a,z);for(var Te=0;Te<4&&ye!=a.display.barWidth||me!=a.display.barHeight;Te++)ye!=a.display.barWidth&&a.options.lineWrapping&&Ai(a),Oa(a,Fs(a)),ye=a.display.barWidth,me=a.display.barHeight}function Oa(a,z){var ye=a.display,me=ye.scrollbars.update(z);ye.sizer.style.paddingRight=(ye.barWidth=me.right)+"px",ye.sizer.style.paddingBottom=(ye.barHeight=me.bottom)+"px",ye.heightForcer.style.borderBottom=me.bottom+"px solid transparent",me.right&&me.bottom?(ye.scrollbarFiller.style.display="block",ye.scrollbarFiller.style.height=me.bottom+"px",ye.scrollbarFiller.style.width=me.right+"px"):ye.scrollbarFiller.style.display="",me.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ye.gutterFiller.style.display="block",ye.gutterFiller.style.height=me.bottom+"px",ye.gutterFiller.style.width=z.gutterWidth+"px"):ye.gutterFiller.style.display=""}var hc={native:yo,null:jo};function Ol(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ee(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new hc[a.options.scrollbarStyle](function(z){a.display.wrapper.insertBefore(z,a.display.scrollbarFiller),Ft(z,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),z.setAttribute("cm-not-content","true")},function(z,ye){ye=="horizontal"?Ds(a,z):As(a,z)},a),a.display.scrollbars.addClass&&He(a.display.wrapper,a.display.scrollbars.addClass)}var pc=0;function ds(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++pc},la(a.curOp)}function zs(a){var z=a.curOp;z&&Ko(z,function(ye){for(var me=0;me<ye.ops.length;me++)ye.ops[me].cm.curOp=null;Kl(ye)})}function Kl(a){for(var z=a.ops,ye=0;ye<z.length;ye++)mc(z[ye]);for(var me=0;me<z.length;me++)Yl(z[me]);for(var Te=0;Te<z.length;Te++)vc(z[Te]);for(var Ze=0;Ze<z.length;Ze++)St(z[Ze]);for(var it=0;it<z.length;it++)Dt(z[it])}function mc(a){var z=a.cm,ye=z.display;Pr(z),a.updateMaxLine&&gi(z),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<ye.viewFrom||a.scrollToPos.to.line>=ye.viewTo)||ye.maxLineChanged&&z.options.lineWrapping,a.update=a.mustUpdate&&new cr(z,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Yl(a){a.updatedDisplay=a.mustUpdate&&Ji(a.cm,a.update)}function vc(a){var z=a.cm,ye=z.display;a.updatedDisplay&&Ai(z),a.barMeasure=Fs(z),ye.maxLineChanged&&!z.options.lineWrapping&&(a.adjustWidthTo=il(z,ye.maxLine,ye.maxLine.text.length).left+3,z.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(ye.scroller.clientWidth,ye.sizer.offsetLeft+a.adjustWidthTo+Aa(z)+z.display.barWidth),a.maxScrollLeft=Math.max(0,ye.sizer.offsetLeft+a.adjustWidthTo-Ka(z))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=ye.input.prepareSelection())}function St(a){var z=a.cm;a.adjustWidthTo!=null&&(z.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<z.doc.scrollLeft&&Ds(z,Math.min(z.display.scroller.scrollLeft,a.maxScrollLeft),!0),z.display.maxLineChanged=!1);var ye=a.focus&&a.focus==Je();a.preparedSelection&&z.display.input.showSelection(a.preparedSelection,ye),(a.updatedDisplay||a.startHeight!=z.doc.height)&&Qs(z,a.barMeasure),a.updatedDisplay&&at(z,a.barMeasure),a.selectionChanged&&al(z),z.state.focused&&a.updateInput&&z.display.input.reset(a.typing),ye&&Ss(a.cm)}function Dt(a){var z=a.cm,ye=z.display,me=z.doc;if(a.updatedDisplay&&li(z,a.update),ye.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ye.wheelStartX=ye.wheelStartY=null),a.scrollTop!=null&&bl(z,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Ds(z,a.scrollLeft,!0,!0),a.scrollToPos){var Te=Gl(z,tn(me,a.scrollToPos.from),tn(me,a.scrollToPos.to),a.scrollToPos.margin);$l(z,Te)}var Ze=a.maybeHiddenMarkers,it=a.maybeUnhiddenMarkers;if(Ze)for(var dt=0;dt<Ze.length;++dt)Ze[dt].lines.length||$t(Ze[dt],"hide");if(it)for(var vt=0;vt<it.length;++vt)it[vt].lines.length&&$t(it[vt],"unhide");ye.wrapper.offsetHeight&&(me.scrollTop=z.display.scroller.scrollTop),a.changeObjs&&$t(z,"changes",z,a.changeObjs),a.update&&a.update.finish()}function zt(a,z){if(a.curOp)return z();ds(a);try{return z()}finally{zs(a)}}function Mr(a,z){return function(){if(a.curOp)return z.apply(a,arguments);ds(a);try{return z.apply(a,arguments)}finally{zs(a)}}}function lr(a){return function(){if(this.curOp)return a.apply(this,arguments);ds(this);try{return a.apply(this,arguments)}finally{zs(this)}}}function Zn(a){return function(){var z=this.cm;if(!z||z.curOp)return a.apply(this,arguments);ds(z);try{return a.apply(this,arguments)}finally{zs(z)}}}function or(a,z){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(z,$e(tr,a))}function tr(a){var z=a.doc;if(!(z.highlightFrontier>=a.display.viewTo)){var ye=+new Date+a.options.workTime,me=fn(a,z.highlightFrontier),Te=[];z.iter(me.line,Math.min(z.first+z.size,a.display.viewTo+500),function(Ze){if(me.line>=a.display.viewFrom){var it=Ze.styles,dt=Ze.text.length>a.options.maxHighlightLength?mt(z.mode,me.state):null,vt=fr(a,Ze,me,!0);dt&&(me.state=dt),Ze.styles=vt.styles;var Ct=Ze.styleClasses,Yt=vt.classes;Yt?Ze.styleClasses=Yt:Ct&&(Ze.styleClasses=null);for(var nn=!it||it.length!=Ze.styles.length||Ct!=Yt&&(!Ct||!Yt||Ct.bgClass!=Yt.bgClass||Ct.textClass!=Yt.textClass),In=0;!nn&&In<it.length;++In)nn=it[In]!=Ze.styles[In];nn&&Te.push(me.line),Ze.stateAfter=me.save(),me.nextLine()}else Ze.text.length<=a.options.maxHighlightLength&&Kt(a,Ze.text,me),Ze.stateAfter=me.line%5==0?me.save():null,me.nextLine();if(+new Date>ye)return or(a,a.options.workDelay),!0}),z.highlightFrontier=me.line,z.modeFrontier=Math.max(z.modeFrontier,me.line),Te.length&&zt(a,function(){for(var Ze=0;Ze<Te.length;Ze++)ja(a,Te[Ze],"text")})}}var cr=function(a,z,ye){var me=a.display;this.viewport=z,this.visible=_s(me,a.doc,z),this.editorIsHidden=!me.wrapper.offsetWidth,this.wrapperHeight=me.wrapper.clientHeight,this.wrapperWidth=me.wrapper.clientWidth,this.oldDisplayWidth=Ka(a),this.force=ye,this.dims=bs(a),this.events=[]};cr.prototype.signal=function(a,z){Pt(a,z)&&this.events.push(arguments)},cr.prototype.finish=function(){for(var a=0;a<this.events.length;a++)$t.apply(null,this.events[a])};function Pr(a){var z=a.display;!z.scrollbarsClipped&&z.scroller.offsetWidth&&(z.nativeBarWidth=z.scroller.offsetWidth-z.scroller.clientWidth,z.heightForcer.style.height=Aa(a)+"px",z.sizer.style.marginBottom=-z.nativeBarWidth+"px",z.sizer.style.borderRightWidth=Aa(a)+"px",z.scrollbarsClipped=!0)}function Wi(a){if(a.hasFocus())return null;var z=Je();if(!z||!qe(a.display.lineDiv,z))return null;var ye={activeElt:z};if(window.getSelection){var me=window.getSelection();me.anchorNode&&me.extend&&qe(a.display.lineDiv,me.anchorNode)&&(ye.anchorNode=me.anchorNode,ye.anchorOffset=me.anchorOffset,ye.focusNode=me.focusNode,ye.focusOffset=me.focusOffset)}return ye}function Ci(a){if(!(!a||!a.activeElt||a.activeElt==Je())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&qe(document.body,a.anchorNode)&&qe(document.body,a.focusNode))){var z=window.getSelection(),ye=document.createRange();ye.setEnd(a.anchorNode,a.anchorOffset),ye.collapse(!1),z.removeAllRanges(),z.addRange(ye),z.extend(a.focusNode,a.focusOffset)}}function Ji(a,z){var ye=a.display,me=a.doc;if(z.editorIsHidden)return ps(a),!1;if(!z.force&&z.visible.from>=ye.viewFrom&&z.visible.to<=ye.viewTo&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo)&&ye.renderedView==ye.view&&ml(a)==0)return!1;Rt(a)&&(ps(a),z.dims=bs(a));var Te=me.first+me.size,Ze=Math.max(z.visible.from-a.options.viewportMargin,me.first),it=Math.min(Te,z.visible.to+a.options.viewportMargin);ye.viewFrom<Ze&&Ze-ye.viewFrom<20&&(Ze=Math.max(me.first,ye.viewFrom)),ye.viewTo>it&&ye.viewTo-it<20&&(it=Math.min(Te,ye.viewTo)),pr&&(Ze=Wn(a.doc,Ze),it=Jn(a.doc,it));var dt=Ze!=ye.viewFrom||it!=ye.viewTo||ye.lastWrapHeight!=z.wrapperHeight||ye.lastWrapWidth!=z.wrapperWidth;Is(a,Ze,it),ye.viewOffset=ui(Xt(a.doc,ye.viewFrom)),a.display.mover.style.top=ye.viewOffset+"px";var vt=ml(a);if(!dt&&vt==0&&!z.force&&ye.renderedView==ye.view&&(ye.updateLineNumbers==null||ye.updateLineNumbers>=ye.viewTo))return!1;var Ct=Wi(a);return vt>4&&(ye.lineDiv.style.display="none"),Ti(a,ye.updateLineNumbers,z.dims),vt>4&&(ye.lineDiv.style.display=""),ye.renderedView=ye.view,Ci(Ct),Ae(ye.cursorDiv),Ae(ye.selectionDiv),ye.gutters.style.height=ye.sizer.style.minHeight=0,dt&&(ye.lastWrapHeight=z.wrapperHeight,ye.lastWrapWidth=z.wrapperWidth,or(a,400)),ye.updateLineNumbers=null,!0}function li(a,z){for(var ye=z.viewport,me=!0;;me=!1){if(!me||!a.options.lineWrapping||z.oldDisplayWidth==Ka(a)){if(ye&&ye.top!=null&&(ye={top:Math.min(a.doc.height+Na(a.display)-Ya(a),ye.top)}),z.visible=_s(a.display,a.doc,ye),z.visible.from>=a.display.viewFrom&&z.visible.to<=a.display.viewTo)break}else me&&(z.visible=_s(a.display,a.doc,ye));if(!Ji(a,z))break;Ai(a);var Te=Fs(a);Ls(a),Qs(a,Te),at(a,Te),z.force=!1}z.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(z.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Qi(a,z){var ye=new cr(a,z);if(Ji(a,ye)){Ai(a),li(a,ye);var me=Fs(a);Ls(a),Qs(a,me),at(a,me),ye.finish()}}function Ti(a,z,ye){var me=a.display,Te=a.options.lineNumbers,Ze=me.lineDiv,it=Ze.firstChild;function dt(sr){var _r=sr.nextSibling;return se&&ve&&a.display.currentWheelTarget==sr?sr.style.display="none":sr.parentNode.removeChild(sr),_r}for(var vt=me.view,Ct=me.viewFrom,Yt=0;Yt<vt.length;Yt++){var nn=vt[Yt];if(!nn.hidden)if(!nn.node||nn.node.parentNode!=Ze){var In=Mi(a,nn,Ct,ye);Ze.insertBefore(In,it)}else{for(;it!=nn.node;)it=dt(it);var Cn=Te&&z!=null&&z<=Ct&&nn.lineNumber;nn.changes&&(Ke(nn.changes,"gutter")>-1&&(Cn=!1),pa(a,nn,Ct,ye)),Cn&&(Ae(nn.lineNumber),nn.lineNumber.appendChild(document.createTextNode(Ot(a.options,Ct)))),it=nn.node.nextSibling}Ct+=nn.size}for(;it;)it=dt(it)}function ct(a){var z=a.gutters.offsetWidth;a.sizer.style.marginLeft=z+"px"}function at(a,z){a.display.sizer.style.minHeight=z.docHeight+"px",a.display.heightForcer.style.top=z.docHeight+"px",a.display.gutters.style.height=z.docHeight+a.display.barHeight+Aa(a)+"px"}function Et(a){var z=a.display,ye=z.view;if(!(!z.alignWidgets&&(!z.gutters.firstChild||!a.options.fixedGutter))){for(var me=ol(z)-z.scroller.scrollLeft+a.doc.scrollLeft,Te=z.gutters.offsetWidth,Ze=me+"px",it=0;it<ye.length;it++)if(!ye[it].hidden){a.options.fixedGutter&&(ye[it].gutter&&(ye[it].gutter.style.left=Ze),ye[it].gutterBackground&&(ye[it].gutterBackground.style.left=Ze));var dt=ye[it].alignable;if(dt)for(var vt=0;vt<dt.length;vt++)dt[vt].style.left=Ze}a.options.fixedGutter&&(z.gutters.style.left=me+Te+"px")}}function Rt(a){if(!a.options.lineNumbers)return!1;var z=a.doc,ye=Ot(a.options,z.first+z.size-1),me=a.display;if(ye.length!=me.lineNumChars){var Te=me.measure.appendChild(je("div",[je("div",ye)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ze=Te.firstChild.offsetWidth,it=Te.offsetWidth-Ze;return me.lineGutter.style.width="",me.lineNumInnerWidth=Math.max(Ze,me.lineGutter.offsetWidth-it)+1,me.lineNumWidth=me.lineNumInnerWidth+it,me.lineNumChars=me.lineNumInnerWidth?ye.length:-1,me.lineGutter.style.width=me.lineNumWidth+"px",ct(a.display),!0}return!1}function Ht(a,z){for(var ye=[],me=!1,Te=0;Te<a.length;Te++){var Ze=a[Te],it=null;if(typeof Ze!="string"&&(it=Ze.style,Ze=Ze.className),Ze=="CodeMirror-linenumbers")if(z)me=!0;else continue;ye.push({className:Ze,style:it})}return z&&!me&&ye.push({className:"CodeMirror-linenumbers",style:null}),ye}function Wt(a){var z=a.gutters,ye=a.gutterSpecs;Ae(z),a.lineGutter=null;for(var me=0;me<ye.length;++me){var Te=ye[me],Ze=Te.className,it=Te.style,dt=z.appendChild(je("div",null,"CodeMirror-gutter "+Ze));it&&(dt.style.cssText=it),Ze=="CodeMirror-linenumbers"&&(a.lineGutter=dt,dt.style.width=(a.lineNumWidth||1)+"px")}z.style.display=ye.length?"":"none",ct(a)}function Zt(a){Wt(a.display),Sa(a),Et(a)}function Qt(a,z,ye,me){var Te=this;this.input=ye,Te.scrollbarFiller=je("div",null,"CodeMirror-scrollbar-filler"),Te.scrollbarFiller.setAttribute("cm-not-content","true"),Te.gutterFiller=je("div",null,"CodeMirror-gutter-filler"),Te.gutterFiller.setAttribute("cm-not-content","true"),Te.lineDiv=Fe("div",null,"CodeMirror-code"),Te.selectionDiv=je("div",null,null,"position: relative; z-index: 1"),Te.cursorDiv=je("div",null,"CodeMirror-cursors"),Te.measure=je("div",null,"CodeMirror-measure"),Te.lineMeasure=je("div",null,"CodeMirror-measure"),Te.lineSpace=Fe("div",[Te.measure,Te.lineMeasure,Te.selectionDiv,Te.cursorDiv,Te.lineDiv],null,"position: relative; outline: none");var Ze=Fe("div",[Te.lineSpace],"CodeMirror-lines");Te.mover=je("div",[Ze],null,"position: relative"),Te.sizer=je("div",[Te.mover],"CodeMirror-sizer"),Te.sizerWidth=null,Te.heightForcer=je("div",null,null,"position: absolute; height: "+et+"px; width: 1px;"),Te.gutters=je("div",null,"CodeMirror-gutters"),Te.lineGutter=null,Te.scroller=je("div",[Te.sizer,Te.heightForcer,Te.gutters],"CodeMirror-scroll"),Te.scroller.setAttribute("tabIndex","-1"),Te.wrapper=je("div",[Te.scrollbarFiller,Te.gutterFiller,Te.scroller],"CodeMirror"),ue&&ae<8&&(Te.gutters.style.zIndex=-1,Te.scroller.style.paddingRight=0),!se&&!(y&&le)&&(Te.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(Te.wrapper):a(Te.wrapper)),Te.viewFrom=Te.viewTo=z.first,Te.reportedViewFrom=Te.reportedViewTo=z.first,Te.view=[],Te.renderedView=null,Te.externalMeasured=null,Te.viewOffset=0,Te.lastWrapHeight=Te.lastWrapWidth=0,Te.updateLineNumbers=null,Te.nativeBarWidth=Te.barHeight=Te.barWidth=0,Te.scrollbarsClipped=!1,Te.lineNumWidth=Te.lineNumInnerWidth=Te.lineNumChars=null,Te.alignWidgets=!1,Te.cachedCharWidth=Te.cachedTextHeight=Te.cachedPaddingH=null,Te.maxLine=null,Te.maxLineLength=0,Te.maxLineChanged=!1,Te.wheelDX=Te.wheelDY=Te.wheelStartX=Te.wheelStartY=null,Te.shift=!1,Te.selForContextMenu=null,Te.activeTouch=null,Te.gutterSpecs=Ht(me.gutters,me.lineNumbers),Wt(Te),ye.init(Te)}var sn=0,un=null;ue?un=-.53:y?un=15:ne?un=-.7:b&&(un=-1/3);function Bn(a){var z=a.wheelDeltaX,ye=a.wheelDeltaY;return z==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(z=a.detail),ye==null&&a.detail&&a.axis==a.VERTICAL_AXIS?ye=a.detail:ye==null&&(ye=a.wheelDelta),{x:z,y:ye}}function an(a){var z=Bn(a);return z.x*=un,z.y*=un,z}function _n(a,z){var ye=Bn(z),me=ye.x,Te=ye.y,Ze=a.display,it=Ze.scroller,dt=it.scrollWidth>it.clientWidth,vt=it.scrollHeight>it.clientHeight;if(me&&dt||Te&&vt){if(Te&&ve&&se){e:for(var Ct=z.target,Yt=Ze.view;Ct!=it;Ct=Ct.parentNode)for(var nn=0;nn<Yt.length;nn++)if(Yt[nn].node==Ct){a.display.currentWheelTarget=Ct;break e}}if(me&&!y&&!x&&un!=null){Te&&vt&&As(a,Math.max(0,it.scrollTop+Te*un)),Ds(a,Math.max(0,it.scrollLeft+me*un)),(!Te||Te&&vt)&&Sn(z),Ze.wheelStartX=null;return}if(Te&&un!=null){var In=Te*un,Cn=a.doc.scrollTop,sr=Cn+Ze.wrapper.clientHeight;In<0?Cn=Math.max(0,Cn+In-50):sr=Math.min(a.doc.height,sr+In+50),Qi(a,{top:Cn,bottom:sr})}sn<20&&(Ze.wheelStartX==null?(Ze.wheelStartX=it.scrollLeft,Ze.wheelStartY=it.scrollTop,Ze.wheelDX=me,Ze.wheelDY=Te,setTimeout(function(){if(Ze.wheelStartX!=null){var _r=it.scrollLeft-Ze.wheelStartX,Fr=it.scrollTop-Ze.wheelStartY,Qr=Fr&&Ze.wheelDY&&Fr/Ze.wheelDY||_r&&Ze.wheelDX&&_r/Ze.wheelDX;Ze.wheelStartX=Ze.wheelStartY=null,Qr&&(un=(un*sn+Qr)/(sn+1),++sn)}},200)):(Ze.wheelDX+=me,Ze.wheelDY+=Te))}}var mn=function(a,z){this.ranges=a,this.primIndex=z};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var z=0;z<this.ranges.length;z++){var ye=this.ranges[z],me=a.ranges[z];if(!Ut(ye.anchor,me.anchor)||!Ut(ye.head,me.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var a=[],z=0;z<this.ranges.length;z++)a[z]=new hn(bn(this.ranges[z].anchor),bn(this.ranges[z].head));return new mn(a,this.primIndex)},mn.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},mn.prototype.contains=function(a,z){z||(z=a);for(var ye=0;ye<this.ranges.length;ye++){var me=this.ranges[ye];if(Lt(z,me.from())>=0&&Lt(a,me.to())<=0)return ye}return-1};var hn=function(a,z){this.anchor=a,this.head=z};hn.prototype.from=function(){return Gn(this.anchor,this.head)},hn.prototype.to=function(){return Tn(this.anchor,this.head)},hn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Fn(a,z,ye){var me=a&&a.options.selectionsMayTouch,Te=z[ye];z.sort(function(In,Cn){return Lt(In.from(),Cn.from())}),ye=Ke(z,Te);for(var Ze=1;Ze<z.length;Ze++){var it=z[Ze],dt=z[Ze-1],vt=Lt(dt.to(),it.from());if(me&&!it.empty()?vt>0:vt>=0){var Ct=Gn(dt.from(),it.from()),Yt=Tn(dt.to(),it.to()),nn=dt.empty()?it.from()==it.head:dt.from()==dt.head;Ze<=ye&&--ye,z.splice(--Ze,2,new hn(nn?Yt:Ct,nn?Ct:Yt))}}return new mn(z,ye)}function Dn(a,z){return new mn([new hn(a,z||a)],0)}function Pn(a){return a.text?yt(a.from.line+a.text.length-1,wt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function wr(a,z){if(Lt(a,z.from)<0)return a;if(Lt(a,z.to)<=0)return Pn(z);var ye=a.line+z.text.length-(z.to.line-z.from.line)-1,me=a.ch;return a.line==z.to.line&&(me+=Pn(z).ch-z.to.ch),yt(ye,me)}function ur(a,z){for(var ye=[],me=0;me<a.sel.ranges.length;me++){var Te=a.sel.ranges[me];ye.push(new hn(wr(Te.anchor,z),wr(Te.head,z)))}return Fn(a.cm,ye,a.sel.primIndex)}function Tr(a,z,ye){return a.line==z.line?yt(ye.line,a.ch-z.ch+ye.ch):yt(ye.line+(a.line-z.line),a.ch)}function zr(a,z,ye){for(var me=[],Te=yt(a.first,0),Ze=Te,it=0;it<z.length;it++){var dt=z[it],vt=Tr(dt.from,Te,Ze),Ct=Tr(Pn(dt),Te,Ze);if(Te=dt.to,Ze=Ct,ye=="around"){var Yt=a.sel.ranges[it],nn=Lt(Yt.head,Yt.anchor)<0;me[it]=new hn(nn?Ct:vt,nn?vt:Ct)}else me[it]=new hn(vt,vt)}return new mn(me,a.sel.primIndex)}function Wr(a){a.doc.mode=Ne(a.options,a.doc.modeOption),Gr(a)}function Gr(a){a.doc.iter(function(z){z.stateAfter&&(z.stateAfter=null),z.styles&&(z.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,or(a,100),a.state.modeGen++,a.curOp&&Sa(a)}function Ar(a,z){return z.from.ch==0&&z.to.ch==0&&wt(z.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Ir(a,z,ye,me){function Te(hi){return ye?ye[hi]:null}function Ze(hi,qr,Si){Oi(hi,qr,Si,me),wo(hi,"change",hi,z)}function it(hi,qr){for(var Si=[],zi=hi;zi<qr;++zi)Si.push(new Hi(Ct[zi],Te(zi),me));return Si}var dt=z.from,vt=z.to,Ct=z.text,Yt=Xt(a,dt.line),nn=Xt(a,vt.line),In=wt(Ct),Cn=Te(Ct.length-1),sr=vt.line-dt.line;if(z.full)a.insert(0,it(0,Ct.length)),a.remove(Ct.length,a.size-Ct.length);else if(Ar(a,z)){var _r=it(0,Ct.length-1);Ze(nn,nn.text,Cn),sr&&a.remove(dt.line,sr),_r.length&&a.insert(dt.line,_r)}else if(Yt==nn)if(Ct.length==1)Ze(Yt,Yt.text.slice(0,dt.ch)+In+Yt.text.slice(vt.ch),Cn);else{var Fr=it(1,Ct.length-1);Fr.push(new Hi(In+Yt.text.slice(vt.ch),Cn,me)),Ze(Yt,Yt.text.slice(0,dt.ch)+Ct[0],Te(0)),a.insert(dt.line+1,Fr)}else if(Ct.length==1)Ze(Yt,Yt.text.slice(0,dt.ch)+Ct[0]+nn.text.slice(vt.ch),Te(0)),a.remove(dt.line+1,sr);else{Ze(Yt,Yt.text.slice(0,dt.ch)+Ct[0],Te(0)),Ze(nn,In+nn.text.slice(vt.ch),Cn);var Qr=it(1,Ct.length-1);sr>1&&a.remove(dt.line+1,sr-1),a.insert(dt.line+1,Qr)}wo(a,"change",a,z)}function Vr(a,z,ye){function me(Te,Ze,it){if(Te.linked)for(var dt=0;dt<Te.linked.length;++dt){var vt=Te.linked[dt];if(vt.doc!=Ze){var Ct=it&&vt.sharedHist;ye&&!Ct||(z(vt.doc,Ct),me(vt.doc,Te,Ct))}}}me(a,null,!0)}function xi(a,z){if(z.cm)throw new Error("This document is already in use.");a.doc=z,z.cm=a,Ps(a),Wr(a),Hr(a),a.options.lineWrapping||gi(a),a.options.mode=z.modeOption,Sa(a)}function Hr(a){(a.doc.direction=="rtl"?He:Ee)(a.display.lineDiv,"CodeMirror-rtl")}function ei(a){zt(a,function(){Hr(a),Sa(a)})}function Or(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function mr(a,z){var ye={from:bn(z.from),to:Pn(z),text:dn(a,z.from,z.to)};return no(a,ye,z.from.line,z.to.line+1),Vr(a,function(me){return no(me,ye,z.from.line,z.to.line+1)},!0),ye}function Kr(a){for(;a.length;){var z=wt(a);if(z.ranges)a.pop();else break}}function ci(a,z){if(z)return Kr(a.done),wt(a.done);if(a.done.length&&!wt(a.done).ranges)return wt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),wt(a.done)}function yi(a,z,ye,me){var Te=a.history;Te.undone.length=0;var Ze=+new Date,it,dt;if((Te.lastOp==me||Te.lastOrigin==z.origin&&z.origin&&(z.origin.charAt(0)=="+"&&Te.lastModTime>Ze-(a.cm?a.cm.options.historyEventDelay:500)||z.origin.charAt(0)=="*"))&&(it=ci(Te,Te.lastOp==me)))dt=wt(it.changes),Lt(z.from,z.to)==0&&Lt(z.from,dt.to)==0?dt.to=Pn(z):it.changes.push(mr(a,z));else{var vt=wt(Te.done);for((!vt||!vt.ranges)&&bi(a.sel,Te.done),it={changes:[mr(a,z)],generation:Te.generation},Te.done.push(it);Te.done.length>Te.undoDepth;)Te.done.shift(),Te.done[0].ranges||Te.done.shift()}Te.done.push(ye),Te.generation=++Te.maxGeneration,Te.lastModTime=Te.lastSelTime=Ze,Te.lastOp=Te.lastSelOp=me,Te.lastOrigin=Te.lastSelOrigin=z.origin,dt||$t(a,"historyAdded")}function Ur(a,z,ye,me){var Te=z.charAt(0);return Te=="*"||Te=="+"&&ye.ranges.length==me.ranges.length&&ye.somethingSelected()==me.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function jr(a,z,ye,me){var Te=a.history,Ze=me&&me.origin;ye==Te.lastSelOp||Ze&&Te.lastSelOrigin==Ze&&(Te.lastModTime==Te.lastSelTime&&Te.lastOrigin==Ze||Ur(a,Ze,wt(Te.done),z))?Te.done[Te.done.length-1]=z:bi(z,Te.done),Te.lastSelTime=+new Date,Te.lastSelOrigin=Ze,Te.lastSelOp=ye,me&&me.clearRedo!==!1&&Kr(Te.undone)}function bi(a,z){var ye=wt(z);ye&&ye.ranges&&ye.equals(a)||z.push(a)}function no(a,z,ye,me){var Te=z["spans_"+a.id],Ze=0;a.iter(Math.max(a.first,ye),Math.min(a.first+a.size,me),function(it){it.markedSpans&&((Te||(Te=z["spans_"+a.id]={}))[Ze]=it.markedSpans),++Ze})}function po(a){if(!a)return null;for(var z,ye=0;ye<a.length;++ye)a[ye].marker.explicitlyCleared?z||(z=a.slice(0,ye)):z&&z.push(a[ye]);return z?z.length?z:null:a}function Ui(a,z){var ye=z["spans_"+a.id];if(!ye)return null;for(var me=[],Te=0;Te<z.text.length;++Te)me.push(po(ye[Te]));return me}function mo(a,z){var ye=Ui(a,z),me=fi(a,z);if(!ye)return me;if(!me)return ye;for(var Te=0;Te<ye.length;++Te){var Ze=ye[Te],it=me[Te];if(Ze&&it)e:for(var dt=0;dt<it.length;++dt){for(var vt=it[dt],Ct=0;Ct<Ze.length;++Ct)if(Ze[Ct].marker==vt.marker)continue e;Ze.push(vt)}else it&&(ye[Te]=it)}return ye}function Io(a,z,ye){for(var me=[],Te=0;Te<a.length;++Te){var Ze=a[Te];if(Ze.ranges){me.push(ye?mn.prototype.deepCopy.call(Ze):Ze);continue}var it=Ze.changes,dt=[];me.push({changes:dt});for(var vt=0;vt<it.length;++vt){var Ct=it[vt],Yt=void 0;if(dt.push({from:Ct.from,to:Ct.to,text:Ct.text}),z)for(var nn in Ct)(Yt=nn.match(/^spans_(\d+)$/))&&Ke(z,Number(Yt[1]))>-1&&(wt(dt)[nn]=Ct[nn],delete Ct[nn])}}return me}function Vi(a,z,ye,me){if(me){var Te=a.anchor;if(ye){var Ze=Lt(z,Te)<0;Ze!=Lt(ye,Te)<0?(Te=z,z=ye):Ze!=Lt(z,ye)<0&&(z=ye)}return new hn(Te,z)}else return new hn(ye||z,z)}function Xi(a,z,ye,me,Te){Te==null&&(Te=a.cm&&(a.cm.display.shift||a.extend)),ni(a,new mn([Vi(a.sel.primary(),z,ye,Te)],0),me)}function To(a,z,ye){for(var me=[],Te=a.cm&&(a.cm.display.shift||a.extend),Ze=0;Ze<a.sel.ranges.length;Ze++)me[Ze]=Vi(a.sel.ranges[Ze],z[Ze],null,Te);var it=Fn(a.cm,me,a.sel.primIndex);ni(a,it,ye)}function Go(a,z,ye,me){var Te=a.sel.ranges.slice(0);Te[z]=ye,ni(a,Fn(a.cm,Te,a.sel.primIndex),me)}function di(a,z,ye,me){ni(a,Dn(z,ye),me)}function ji(a,z,ye){var me={ranges:z.ranges,update:function(Te){this.ranges=[];for(var Ze=0;Ze<Te.length;Ze++)this.ranges[Ze]=new hn(tn(a,Te[Ze].anchor),tn(a,Te[Ze].head))},origin:ye&&ye.origin};return $t(a,"beforeSelectionChange",a,me),a.cm&&$t(a.cm,"beforeSelectionChange",a.cm,me),me.ranges!=z.ranges?Fn(a.cm,me.ranges,me.ranges.length-1):z}function mi(a,z,ye){var me=a.history.done,Te=wt(me);Te&&Te.ranges?(me[me.length-1]=z,lo(a,z,ye)):ni(a,z,ye)}function ni(a,z,ye){lo(a,z,ye),jr(a,a.sel,a.cm?a.cm.curOp.id:NaN,ye)}function lo(a,z,ye){(Pt(a,"beforeSelectionChange")||a.cm&&Pt(a.cm,"beforeSelectionChange"))&&(z=ji(a,z,ye));var me=ye&&ye.bias||(Lt(z.primary().head,a.sel.primary().head)<0?-1:1);vo(a,Lo(a,z,me,!0)),!(ye&&ye.scroll===!1)&&a.cm&&js(a.cm)}function vo(a,z){z.equals(a.sel)||(a.sel=z,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,en(a.cm)),wo(a,"cursorActivity",a))}function Ro(a){vo(a,Lo(a,a.sel,null,!1))}function Lo(a,z,ye,me){for(var Te,Ze=0;Ze<z.ranges.length;Ze++){var it=z.ranges[Ze],dt=z.ranges.length==a.sel.ranges.length&&a.sel.ranges[Ze],vt=oa(a,it.anchor,dt&&dt.anchor,ye,me),Ct=oa(a,it.head,dt&&dt.head,ye,me);(Te||vt!=it.anchor||Ct!=it.head)&&(Te||(Te=z.ranges.slice(0,Ze)),Te[Ze]=new hn(vt,Ct))}return Te?Fn(a.cm,Te,z.primIndex):z}function Xo(a,z,ye,me,Te){var Ze=Xt(a,z.line);if(Ze.markedSpans)for(var it=0;it<Ze.markedSpans.length;++it){var dt=Ze.markedSpans[it],vt=dt.marker,Ct="selectLeft"in vt?!vt.selectLeft:vt.inclusiveLeft,Yt="selectRight"in vt?!vt.selectRight:vt.inclusiveRight;if((dt.from==null||(Ct?dt.from<=z.ch:dt.from<z.ch))&&(dt.to==null||(Yt?dt.to>=z.ch:dt.to>z.ch))){if(Te&&($t(vt,"beforeCursorEnter"),vt.explicitlyCleared))if(Ze.markedSpans){--it;continue}else break;if(!vt.atomic)continue;if(ye){var nn=vt.find(me<0?1:-1),In=void 0;if((me<0?Yt:Ct)&&(nn=_i(a,nn,-me,nn&&nn.line==z.line?Ze:null)),nn&&nn.line==z.line&&(In=Lt(nn,ye))&&(me<0?In<0:In>0))return Xo(a,nn,z,me,Te)}var Cn=vt.find(me<0?-1:1);return(me<0?Ct:Yt)&&(Cn=_i(a,Cn,me,Cn.line==z.line?Ze:null)),Cn?Xo(a,Cn,z,me,Te):null}}return z}function oa(a,z,ye,me,Te){var Ze=me||1,it=Xo(a,z,ye,Ze,Te)||!Te&&Xo(a,z,ye,Ze,!0)||Xo(a,z,ye,-Ze,Te)||!Te&&Xo(a,z,ye,-Ze,!0);return it||(a.cantEdit=!0,yt(a.first,0))}function _i(a,z,ye,me){return ye<0&&z.ch==0?z.line>a.first?tn(a,yt(z.line-1)):null:ye>0&&z.ch==(me||Xt(a,z.line)).text.length?z.line<a.first+a.size-1?yt(z.line+1,0):null:new yt(z.line,z.ch+ye)}function Di(a){a.setSelection(yt(a.firstLine(),0),yt(a.lastLine()),Xe)}function bo(a,z,ye){var me={canceled:!1,from:z.from,to:z.to,text:z.text,origin:z.origin,cancel:function(){return me.canceled=!0}};return ye&&(me.update=function(Te,Ze,it,dt){Te&&(me.from=tn(a,Te)),Ze&&(me.to=tn(a,Ze)),it&&(me.text=it),dt!==void 0&&(me.origin=dt)}),$t(a,"beforeChange",a,me),a.cm&&$t(a.cm,"beforeChange",a.cm,me),me.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:me.from,to:me.to,text:me.text,origin:me.origin}}function Eo(a,z,ye){if(a.cm){if(!a.cm.curOp)return Mr(a.cm,Eo)(a,z,ye);if(a.cm.state.suppressEdits)return}if(!((Pt(a,"beforeChange")||a.cm&&Pt(a.cm,"beforeChange"))&&(z=bo(a,z,!0),!z))){var me=yr&&!ye&&wi(a,z.from,z.to);if(me)for(var Te=me.length-1;Te>=0;--Te)Co(a,{from:me[Te].from,to:me[Te].to,text:Te?[""]:z.text,origin:z.origin});else Co(a,z)}}function Co(a,z){if(!(z.text.length==1&&z.text[0]==""&&Lt(z.from,z.to)==0)){var ye=ur(a,z);yi(a,z,ye,a.cm?a.cm.curOp.id:NaN),Fa(a,z,ye,fi(a,z));var me=[];Vr(a,function(Te,Ze){!Ze&&Ke(me,Te.history)==-1&&(aa(Te.history,z),me.push(Te.history)),Fa(Te,z,null,fi(Te,z))})}}function ua(a,z,ye){var me=a.cm&&a.cm.state.suppressEdits;if(!(me&&!ye)){for(var Te=a.history,Ze,it=a.sel,dt=z=="undo"?Te.done:Te.undone,vt=z=="undo"?Te.undone:Te.done,Ct=0;Ct<dt.length&&(Ze=dt[Ct],!(ye?Ze.ranges&&!Ze.equals(a.sel):!Ze.ranges));Ct++);if(Ct!=dt.length){for(Te.lastOrigin=Te.lastSelOrigin=null;;)if(Ze=dt.pop(),Ze.ranges){if(bi(Ze,vt),ye&&!Ze.equals(a.sel)){ni(a,Ze,{clearRedo:!1});return}it=Ze}else if(me){dt.push(Ze);return}else break;var Yt=[];bi(it,vt),vt.push({changes:Yt,generation:Te.generation}),Te.generation=Ze.generation||++Te.maxGeneration;for(var nn=Pt(a,"beforeChange")||a.cm&&Pt(a.cm,"beforeChange"),In=function(_r){var Fr=Ze.changes[_r];if(Fr.origin=z,nn&&!bo(a,Fr,!1))return dt.length=0,{};Yt.push(mr(a,Fr));var Qr=_r?ur(a,Fr):wt(dt);Fa(a,Fr,Qr,mo(a,Fr)),!_r&&a.cm&&a.cm.scrollIntoView({from:Fr.from,to:Pn(Fr)});var hi=[];Vr(a,function(qr,Si){!Si&&Ke(hi,qr.history)==-1&&(aa(qr.history,Fr),hi.push(qr.history)),Fa(qr,Fr,null,mo(qr,Fr))})},Cn=Ze.changes.length-1;Cn>=0;--Cn){var sr=In(Cn);if(sr)return sr.v}}}}function Jo(a,z){if(z!=0&&(a.first+=z,a.sel=new mn(bt(a.sel.ranges,function(Te){return new hn(yt(Te.anchor.line+z,Te.anchor.ch),yt(Te.head.line+z,Te.head.ch))}),a.sel.primIndex),a.cm)){Sa(a.cm,a.first,a.first-z,z);for(var ye=a.cm.display,me=ye.viewFrom;me<ye.viewTo;me++)ja(a.cm,me,"gutter")}}function Fa(a,z,ye,me){if(a.cm&&!a.cm.curOp)return Mr(a.cm,Fa)(a,z,ye,me);if(z.to.line<a.first){Jo(a,z.text.length-1-(z.to.line-z.from.line));return}if(!(z.from.line>a.lastLine())){if(z.from.line<a.first){var Te=z.text.length-1-(a.first-z.from.line);Jo(a,Te),z={from:yt(a.first,0),to:yt(z.to.line+Te,z.to.ch),text:[wt(z.text)],origin:z.origin}}var Ze=a.lastLine();z.to.line>Ze&&(z={from:z.from,to:yt(Ze,Xt(a,Ze).text.length),text:[z.text[0]],origin:z.origin}),z.removed=dn(a,z.from,z.to),ye||(ye=ur(a,z)),a.cm?No(a.cm,z,me):Ir(a,z,me),lo(a,ye,Xe),a.cantEdit&&oa(a,yt(a.firstLine(),0))&&(a.cantEdit=!1)}}function No(a,z,ye){var me=a.doc,Te=a.display,Ze=z.from,it=z.to,dt=!1,vt=Ze.line;a.options.lineWrapping||(vt=Nt(zn(Xt(me,Ze.line))),me.iter(vt,it.line+1,function(Cn){if(Cn==Te.maxLine)return dt=!0,!0})),me.sel.contains(z.from,z.to)>-1&&en(a),Ir(me,z,ye,pl(a)),a.options.lineWrapping||(me.iter(vt,Ze.line+z.text.length,function(Cn){var sr=Ri(Cn);sr>Te.maxLineLength&&(Te.maxLine=Cn,Te.maxLineLength=sr,Te.maxLineChanged=!0,dt=!1)}),dt&&(a.curOp.updateMaxLine=!0)),Cr(me,Ze.line),or(a,400);var Ct=z.text.length-(it.line-Ze.line)-1;z.full?Sa(a):Ze.line==it.line&&z.text.length==1&&!Ar(a.doc,z)?ja(a,Ze.line,"text"):Sa(a,Ze.line,it.line+1,Ct);var Yt=Pt(a,"changes"),nn=Pt(a,"change");if(nn||Yt){var In={from:Ze,to:it,text:z.text,removed:z.removed,origin:z.origin};nn&&wo(a,"change",a,In),Yt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(In)}a.display.selForContextMenu=null}function uo(a,z,ye,me,Te){var Ze;me||(me=ye),Lt(me,ye)<0&&(Ze=[me,ye],ye=Ze[0],me=Ze[1]),typeof z=="string"&&(z=a.splitLines(z)),Eo(a,{from:ye,to:me,text:z,origin:Te})}function Ao(a,z,ye,me){ye<a.line?a.line+=me:z<a.line&&(a.line=z,a.ch=0)}function Do(a,z,ye,me){for(var Te=0;Te<a.length;++Te){var Ze=a[Te],it=!0;if(Ze.ranges){Ze.copied||(Ze=a[Te]=Ze.deepCopy(),Ze.copied=!0);for(var dt=0;dt<Ze.ranges.length;dt++)Ao(Ze.ranges[dt].anchor,z,ye,me),Ao(Ze.ranges[dt].head,z,ye,me);continue}for(var vt=0;vt<Ze.changes.length;++vt){var Ct=Ze.changes[vt];if(ye<Ct.from.line)Ct.from=yt(Ct.from.line+me,Ct.from.ch),Ct.to=yt(Ct.to.line+me,Ct.to.ch);else if(z<=Ct.to.line){it=!1;break}}it||(a.splice(0,Te+1),Te=0)}}function aa(a,z){var ye=z.from.line,me=z.to.line,Te=z.text.length-(me-ye)-1;Do(a.done,ye,me,Te),Do(a.undone,ye,me,Te)}function Uo(a,z,ye,me){var Te=z,Ze=z;return typeof z=="number"?Ze=Xt(a,pn(a,z)):Te=Nt(z),Te==null?null:(me(Ze,Te)&&a.cm&&ja(a.cm,Te,ye),Ze)}function fo(a){this.lines=a,this.parent=null;for(var z=0,ye=0;ye<a.length;++ye)a[ye].parent=this,z+=a[ye].height;this.height=z}fo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,z){for(var ye=a,me=a+z;ye<me;++ye){var Te=this.lines[ye];this.height-=Te.height,Pi(Te),wo(Te,"delete")}this.lines.splice(a,z)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,z,ye){this.height+=ye,this.lines=this.lines.slice(0,a).concat(z).concat(this.lines.slice(a));for(var me=0;me<z.length;++me)z[me].parent=this},iterN:function(a,z,ye){for(var me=a+z;a<me;++a)if(ye(this.lines[a]))return!0}};function Bo(a){this.children=a;for(var z=0,ye=0,me=0;me<a.length;++me){var Te=a[me];z+=Te.chunkSize(),ye+=Te.height,Te.parent=this}this.size=z,this.height=ye,this.parent=null}Bo.prototype={chunkSize:function(){return this.size},removeInner:function(a,z){this.size-=z;for(var ye=0;ye<this.children.length;++ye){var me=this.children[ye],Te=me.chunkSize();if(a<Te){var Ze=Math.min(z,Te-a),it=me.height;if(me.removeInner(a,Ze),this.height-=it-me.height,Te==Ze&&(this.children.splice(ye--,1),me.parent=null),(z-=Ze)==0)break;a=0}else a-=Te}if(this.size-z<25&&(this.children.length>1||!(this.children[0]instanceof fo))){var dt=[];this.collapse(dt),this.children=[new fo(dt)],this.children[0].parent=this}},collapse:function(a){for(var z=0;z<this.children.length;++z)this.children[z].collapse(a)},insertInner:function(a,z,ye){this.size+=z.length,this.height+=ye;for(var me=0;me<this.children.length;++me){var Te=this.children[me],Ze=Te.chunkSize();if(a<=Ze){if(Te.insertInner(a,z,ye),Te.lines&&Te.lines.length>50){for(var it=Te.lines.length%25+25,dt=it;dt<Te.lines.length;){var vt=new fo(Te.lines.slice(dt,dt+=25));Te.height-=vt.height,this.children.splice(++me,0,vt),vt.parent=this}Te.lines=Te.lines.slice(0,it),this.maybeSpill()}break}a-=Ze}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var z=a.children.splice(a.children.length-5,5),ye=new Bo(z);if(a.parent){a.size-=ye.size,a.height-=ye.height;var Te=Ke(a.parent.children,a);a.parent.children.splice(Te+1,0,ye)}else{var me=new Bo(a.children);me.parent=a,a.children=[me,ye],a=me}ye.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,z,ye){for(var me=0;me<this.children.length;++me){var Te=this.children[me],Ze=Te.chunkSize();if(a<Ze){var it=Math.min(z,Ze-a);if(Te.iterN(a,it,ye))return!0;if((z-=it)==0)break;a=0}else a-=Ze}}};var _o=function(a,z,ye){if(ye)for(var me in ye)ye.hasOwnProperty(me)&&(this[me]=ye[me]);this.doc=a,this.node=z};_o.prototype.clear=function(){var a=this.doc.cm,z=this.line.widgets,ye=this.line,me=Nt(ye);if(!(me==null||!z)){for(var Te=0;Te<z.length;++Te)z[Te]==this&&z.splice(Te--,1);z.length||(ye.widgets=null);var Ze=Wo(this);vr(ye,Math.max(0,ye.height-Ze)),a&&(zt(a,function(){_a(a,ye,-Ze),ja(a,me,"widget")}),wo(a,"lineWidgetCleared",a,this,me))}},_o.prototype.changed=function(){var a=this,z=this.height,ye=this.doc.cm,me=this.line;this.height=null;var Te=Wo(this)-z;Te&&(gr(this.doc,me)||vr(me,me.height+Te),ye&&zt(ye,function(){ye.curOp.forceUpdate=!0,_a(ye,me,Te),wo(ye,"lineWidgetChanged",ye,a,Nt(me))}))},cn(_o);function _a(a,z,ye){ui(z)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Dl(a,ye)}function ta(a,z,ye,me){var Te=new _o(a,ye,me),Ze=a.cm;return Ze&&Te.noHScroll&&(Ze.display.alignWidgets=!0),Uo(a,z,"widget",function(it){var dt=it.widgets||(it.widgets=[]);if(Te.insertAt==null?dt.push(Te):dt.splice(Math.min(dt.length-1,Math.max(0,Te.insertAt)),0,Te),Te.line=it,Ze&&!gr(a,it)){var vt=ui(it)<a.scrollTop;vr(it,it.height+Wo(Te)),vt&&Dl(Ze,Te.height),Ze.curOp.forceUpdate=!0}return!0}),Ze&&wo(Ze,"lineWidgetAdded",Ze,Te,typeof z=="number"?z:Nt(z)),Te}var ka=0,za=function(a,z){this.lines=[],this.type=z,this.doc=a,this.id=++ka};za.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,z=a&&!a.curOp;if(z&&ds(a),Pt(this,"clear")){var ye=this.find();ye&&wo(this,"clear",ye.from,ye.to)}for(var me=null,Te=null,Ze=0;Ze<this.lines.length;++Ze){var it=this.lines[Ze],dt=Yr(it.markedSpans,this);a&&!this.collapsed?ja(a,Nt(it),"text"):a&&(dt.to!=null&&(Te=Nt(it)),dt.from!=null&&(me=Nt(it))),it.markedSpans=ai(it.markedSpans,dt),dt.from==null&&this.collapsed&&!gr(this.doc,it)&&a&&vr(it,Ma(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var vt=0;vt<this.lines.length;++vt){var Ct=zn(this.lines[vt]),Yt=Ri(Ct);Yt>a.display.maxLineLength&&(a.display.maxLine=Ct,a.display.maxLineLength=Yt,a.display.maxLineChanged=!0)}me!=null&&a&&this.collapsed&&Sa(a,me,Te+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ro(a.doc)),a&&wo(a,"markerCleared",a,this,me,Te),z&&zs(a),this.parent&&this.parent.clear()}},za.prototype.find=function(a,z){a==null&&this.type=="bookmark"&&(a=1);for(var ye,me,Te=0;Te<this.lines.length;++Te){var Ze=this.lines[Te],it=Yr(Ze.markedSpans,this);if(it.from!=null&&(ye=yt(z?Ze:Nt(Ze),it.from),a==-1))return ye;if(it.to!=null&&(me=yt(z?Ze:Nt(Ze),it.to),a==1))return me}return ye&&{from:ye,to:me}},za.prototype.changed=function(){var a=this,z=this.find(-1,!0),ye=this,me=this.doc.cm;!z||!me||zt(me,function(){var Te=z.line,Ze=Nt(z.line),it=Ja(me,Ze);if(it&&(Gs(it),me.curOp.selectionChanged=me.curOp.forceUpdate=!0),me.curOp.updateMaxLine=!0,!gr(ye.doc,Te)&&ye.height!=null){var dt=ye.height;ye.height=null;var vt=Wo(ye)-dt;vt&&vr(Te,Te.height+vt)}wo(me,"markerChanged",me,a)})},za.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(!z.maybeHiddenMarkers||Ke(z.maybeHiddenMarkers,this)==-1)&&(z.maybeUnhiddenMarkers||(z.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},za.prototype.detachLine=function(a){if(this.lines.splice(Ke(this.lines,a),1),!this.lines.length&&this.doc.cm){var z=this.doc.cm.curOp;(z.maybeHiddenMarkers||(z.maybeHiddenMarkers=[])).push(this)}},cn(za);function Cs(a,z,ye,me,Te){if(me&&me.shared)return Sl(a,z,ye,me,Te);if(a.cm&&!a.cm.curOp)return Mr(a.cm,Cs)(a,z,ye,me,Te);var Ze=new za(a,Te),it=Lt(z,ye);if(me&&ht(me,Ze,!1),it>0||it==0&&Ze.clearWhenEmpty!==!1)return Ze;if(Ze.replacedWith&&(Ze.collapsed=!0,Ze.widgetNode=Fe("span",[Ze.replacedWith],"CodeMirror-widget"),me.handleMouseEvents||Ze.widgetNode.setAttribute("cm-ignore-events","true"),me.insertLeft&&(Ze.widgetNode.insertLeft=!0)),Ze.collapsed){if(er(a,z.line,z,ye,Ze)||z.line!=ye.line&&er(a,ye.line,z,ye,Ze))throw new Error("Inserting collapsed marker partially overlapping an existing one");kr()}Ze.addToHistory&&yi(a,{from:z,to:ye,origin:"markText"},a.sel,NaN);var dt=z.line,vt=a.cm,Ct;if(a.iter(dt,ye.line+1,function(nn){vt&&Ze.collapsed&&!vt.options.lineWrapping&&zn(nn)==vt.display.maxLine&&(Ct=!0),Ze.collapsed&&dt!=z.line&&vr(nn,0),Rr(nn,new Nr(Ze,dt==z.line?z.ch:null,dt==ye.line?ye.ch:null)),++dt}),Ze.collapsed&&a.iter(z.line,ye.line+1,function(nn){gr(a,nn)&&vr(nn,0)}),Ze.clearOnEnter&&Ft(Ze,"beforeCursorEnter",function(){return Ze.clear()}),Ze.readOnly&&($r(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Ze.collapsed&&(Ze.id=++ka,Ze.atomic=!0),vt){if(Ct&&(vt.curOp.updateMaxLine=!0),Ze.collapsed)Sa(vt,z.line,ye.line+1);else if(Ze.className||Ze.startStyle||Ze.endStyle||Ze.css||Ze.attributes||Ze.title)for(var Yt=z.line;Yt<=ye.line;Yt++)ja(vt,Yt,"text");Ze.atomic&&Ro(vt.doc),wo(vt,"markerAdded",vt,Ze)}return Ze}var Mo=function(a,z){this.markers=a,this.primary=z;for(var ye=0;ye<a.length;++ye)a[ye].parent=this};Mo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();wo(this,"clear")}},Mo.prototype.find=function(a,z){return this.primary.find(a,z)},cn(Mo);function Sl(a,z,ye,me,Te){me=ht(me),me.shared=!1;var Ze=[Cs(a,z,ye,me,Te)],it=Ze[0],dt=me.widgetNode;return Vr(a,function(vt){dt&&(me.widgetNode=dt.cloneNode(!0)),Ze.push(Cs(vt,tn(vt,z),tn(vt,ye),me,Te));for(var Ct=0;Ct<vt.linked.length;++Ct)if(vt.linked[Ct].isParent)return;it=wt(Ze)}),new Mo(Ze,it)}function Ra(a){return a.findMarks(yt(a.first,0),a.clipPos(yt(a.lastLine())),function(z){return z.parent})}function fs(a,z){for(var ye=0;ye<z.length;ye++){var me=z[ye],Te=me.find(),Ze=a.clipPos(Te.from),it=a.clipPos(Te.to);if(Lt(Ze,it)){var dt=Cs(a,Ze,it,me.primary,me.primary.type);me.markers.push(dt),dt.parent=me}}}function qa(a){for(var z=function(me){var Te=a[me],Ze=[Te.primary.doc];Vr(Te.primary.doc,function(vt){return Ze.push(vt)});for(var it=0;it<Te.markers.length;it++){var dt=Te.markers[it];Ke(Ze,dt.doc)==-1&&(dt.parent=null,Te.markers.splice(it--,1))}},ye=0;ye<a.length;ye++)z(ye)}var Ha=0,Oo=function(a,z,ye,me,Te){if(!(this instanceof Oo))return new Oo(a,z,ye,me,Te);ye==null&&(ye=0),Bo.call(this,[new fo([new Hi("",null)])]),this.first=ye,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ye;var Ze=yt(ye,0);this.sel=Dn(Ze),this.history=new Or(null),this.id=++Ha,this.modeOption=z,this.lineSep=me,this.direction=Te=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Ir(this,{from:Ze,to:Ze,text:a}),ni(this,Dn(Ze),Xe)};Oo.prototype=Ie(Bo.prototype,{constructor:Oo,iter:function(a,z,ye){ye?this.iterN(a-this.first,z-a,ye):this.iterN(this.first,this.first+this.size,a)},insert:function(a,z){for(var ye=0,me=0;me<z.length;++me)ye+=z[me].height;this.insertInner(a-this.first,z,ye)},remove:function(a,z){this.removeInner(a-this.first,z)},getValue:function(a){var z=jn(this,this.first,this.first+this.size);return a===!1?z:z.join(a||this.lineSeparator())},setValue:Zn(function(a){var z=yt(this.first,0),ye=this.first+this.size-1;Eo(this,{from:z,to:yt(ye,Xt(this,ye).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Li(this.cm,0,0),ni(this,Dn(z),Xe)}),replaceRange:function(a,z,ye,me){z=tn(this,z),ye=ye?tn(this,ye):z,uo(this,a,z,ye,me)},getRange:function(a,z,ye){var me=dn(this,tn(this,a),tn(this,z));return ye===!1?me:me.join(ye||this.lineSeparator())},getLine:function(a){var z=this.getLineHandle(a);return z&&z.text},getLineHandle:function(a){if(xt(this,a))return Xt(this,a)},getLineNumber:function(a){return Nt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Xt(this,a)),zn(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return tn(this,a)},getCursor:function(a){var z=this.sel.primary(),ye;return a==null||a=="head"?ye=z.head:a=="anchor"?ye=z.anchor:a=="end"||a=="to"||a===!1?ye=z.to():ye=z.from(),ye},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Zn(function(a,z,ye){di(this,tn(this,typeof a=="number"?yt(a,z||0):a),null,ye)}),setSelection:Zn(function(a,z,ye){di(this,tn(this,a),tn(this,z||a),ye)}),extendSelection:Zn(function(a,z,ye){Xi(this,tn(this,a),z&&tn(this,z),ye)}),extendSelections:Zn(function(a,z){To(this,Rn(this,a),z)}),extendSelectionsBy:Zn(function(a,z){var ye=bt(this.sel.ranges,a);To(this,Rn(this,ye),z)}),setSelections:Zn(function(a,z,ye){if(a.length){for(var me=[],Te=0;Te<a.length;Te++)me[Te]=new hn(tn(this,a[Te].anchor),tn(this,a[Te].head));z==null&&(z=Math.min(a.length-1,this.sel.primIndex)),ni(this,Fn(this.cm,me,z),ye)}}),addSelection:Zn(function(a,z,ye){var me=this.sel.ranges.slice(0);me.push(new hn(tn(this,a),tn(this,z||a))),ni(this,Fn(this.cm,me,me.length-1),ye)}),getSelection:function(a){for(var z=this.sel.ranges,ye,me=0;me<z.length;me++){var Te=dn(this,z[me].from(),z[me].to());ye=ye?ye.concat(Te):Te}return a===!1?ye:ye.join(a||this.lineSeparator())},getSelections:function(a){for(var z=[],ye=this.sel.ranges,me=0;me<ye.length;me++){var Te=dn(this,ye[me].from(),ye[me].to());a!==!1&&(Te=Te.join(a||this.lineSeparator())),z[me]=Te}return z},replaceSelection:function(a,z,ye){for(var me=[],Te=0;Te<this.sel.ranges.length;Te++)me[Te]=a;this.replaceSelections(me,z,ye||"+input")},replaceSelections:Zn(function(a,z,ye){for(var me=[],Te=this.sel,Ze=0;Ze<Te.ranges.length;Ze++){var it=Te.ranges[Ze];me[Ze]={from:it.from(),to:it.to(),text:this.splitLines(a[Ze]),origin:ye}}for(var dt=z&&z!="end"&&zr(this,me,z),vt=me.length-1;vt>=0;vt--)Eo(this,me[vt]);dt?mi(this,dt):this.cm&&js(this.cm)}),undo:Zn(function(){ua(this,"undo")}),redo:Zn(function(){ua(this,"redo")}),undoSelection:Zn(function(){ua(this,"undo",!0)}),redoSelection:Zn(function(){ua(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,z=0,ye=0,me=0;me<a.done.length;me++)a.done[me].ranges||++z;for(var Te=0;Te<a.undone.length;Te++)a.undone[Te].ranges||++ye;return{undo:z,redo:ye}},clearHistory:function(){var a=this;this.history=new Or(this.history.maxGeneration),Vr(this,function(z){return z.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Io(this.history.done),undone:Io(this.history.undone)}},setHistory:function(a){var z=this.history=new Or(this.history.maxGeneration);z.done=Io(a.done.slice(0),null,!0),z.undone=Io(a.undone.slice(0),null,!0)},setGutterMarker:Zn(function(a,z,ye){return Uo(this,a,"gutter",function(me){var Te=me.gutterMarkers||(me.gutterMarkers={});return Te[z]=ye,!ye&&Pe(Te)&&(me.gutterMarkers=null),!0})}),clearGutter:Zn(function(a){var z=this;this.iter(function(ye){ye.gutterMarkers&&ye.gutterMarkers[a]&&Uo(z,ye,"gutter",function(){return ye.gutterMarkers[a]=null,Pe(ye.gutterMarkers)&&(ye.gutterMarkers=null),!0})})}),lineInfo:function(a){var z;if(typeof a=="number"){if(!xt(this,a)||(z=a,a=Xt(this,a),!a))return null}else if(z=Nt(a),z==null)return null;return{line:z,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Zn(function(a,z,ye){return Uo(this,a,z=="gutter"?"gutter":"class",function(me){var Te=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass";if(!me[Te])me[Te]=ye;else{if(be(ye).test(me[Te]))return!1;me[Te]+=" "+ye}return!0})}),removeLineClass:Zn(function(a,z,ye){return Uo(this,a,z=="gutter"?"gutter":"class",function(me){var Te=z=="text"?"textClass":z=="background"?"bgClass":z=="gutter"?"gutterClass":"wrapClass",Ze=me[Te];if(Ze)if(ye==null)me[Te]=null;else{var it=Ze.match(be(ye));if(!it)return!1;var dt=it.index+it[0].length;me[Te]=Ze.slice(0,it.index)+(!it.index||dt==Ze.length?"":" ")+Ze.slice(dt)||null}else return!1;return!0})}),addLineWidget:Zn(function(a,z,ye){return ta(this,a,z,ye)}),removeLineWidget:function(a){a.clear()},markText:function(a,z,ye){return Cs(this,tn(this,a),tn(this,z),ye,ye&&ye.type||"range")},setBookmark:function(a,z){var ye={replacedWith:z&&(z.nodeType==null?z.widget:z),insertLeft:z&&z.insertLeft,clearWhenEmpty:!1,shared:z&&z.shared,handleMouseEvents:z&&z.handleMouseEvents};return a=tn(this,a),Cs(this,a,a,ye,"bookmark")},findMarksAt:function(a){a=tn(this,a);var z=[],ye=Xt(this,a.line).markedSpans;if(ye)for(var me=0;me<ye.length;++me){var Te=ye[me];(Te.from==null||Te.from<=a.ch)&&(Te.to==null||Te.to>=a.ch)&&z.push(Te.marker.parent||Te.marker)}return z},findMarks:function(a,z,ye){a=tn(this,a),z=tn(this,z);var me=[],Te=a.line;return this.iter(a.line,z.line+1,function(Ze){var it=Ze.markedSpans;if(it)for(var dt=0;dt<it.length;dt++){var vt=it[dt];!(vt.to!=null&&Te==a.line&&a.ch>=vt.to||vt.from==null&&Te!=a.line||vt.from!=null&&Te==z.line&&vt.from>=z.ch)&&(!ye||ye(vt.marker))&&me.push(vt.marker.parent||vt.marker)}++Te}),me},getAllMarks:function(){var a=[];return this.iter(function(z){var ye=z.markedSpans;if(ye)for(var me=0;me<ye.length;++me)ye[me].from!=null&&a.push(ye[me].marker)}),a},posFromIndex:function(a){var z,ye=this.first,me=this.lineSeparator().length;return this.iter(function(Te){var Ze=Te.text.length+me;if(Ze>a)return z=a,!0;a-=Ze,++ye}),tn(this,yt(ye,z))},indexFromPos:function(a){a=tn(this,a);var z=a.ch;if(a.line<this.first||a.ch<0)return 0;var ye=this.lineSeparator().length;return this.iter(this.first,a.line,function(me){z+=me.text.length+ye}),z},copy:function(a){var z=new Oo(jn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return z.scrollTop=this.scrollTop,z.scrollLeft=this.scrollLeft,z.sel=this.sel,z.extend=!1,a&&(z.history.undoDepth=this.history.undoDepth,z.setHistory(this.getHistory())),z},linkedDoc:function(a){a||(a={});var z=this.first,ye=this.first+this.size;a.from!=null&&a.from>z&&(z=a.from),a.to!=null&&a.to<ye&&(ye=a.to);var me=new Oo(jn(this,z,ye),a.mode||this.modeOption,z,this.lineSep,this.direction);return a.sharedHist&&(me.history=this.history),(this.linked||(this.linked=[])).push({doc:me,sharedHist:a.sharedHist}),me.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],fs(me,Ra(this)),me},unlinkDoc:function(a){if(a instanceof qo&&(a=a.doc),this.linked)for(var z=0;z<this.linked.length;++z){var ye=this.linked[z];if(ye.doc==a){this.linked.splice(z,1),a.unlinkDoc(this),qa(Ra(this));break}}if(a.history==this.history){var me=[a.id];Vr(a,function(Te){return me.push(Te.id)},!0),a.history=new Or(null),a.history.done=Io(this.history.done,me),a.history.undone=Io(this.history.undone,me)}},iterLinkedDocs:function(a){Vr(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Mn(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Zn(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(z){return z.order=null}),this.cm&&ei(this.cm))})}),Oo.prototype.eachLine=Oo.prototype.iter;var es=0;function Hs(a){var z=this;if(kl(z),!(It(z,a)||ca(z.display,a))){Sn(a),ue&&(es=+new Date);var ye=us(z,a,!0),me=a.dataTransfer.files;if(!(!ye||z.isReadOnly()))if(me&&me.length&&window.FileReader&&window.File)for(var Te=me.length,Ze=Array(Te),it=0,dt=function(){++it==Te&&Mr(z,function(){ye=tn(z.doc,ye);var Cn={from:ye,to:ye,text:z.doc.splitLines(Ze.filter(function(sr){return sr!=null}).join(z.doc.lineSeparator())),origin:"paste"};Eo(z.doc,Cn),mi(z.doc,Dn(tn(z.doc,ye),tn(z.doc,Pn(Cn))))})()},vt=function(Cn,sr){if(z.options.allowDropFileTypes&&Ke(z.options.allowDropFileTypes,Cn.type)==-1){dt();return}var _r=new FileReader;_r.onerror=function(){return dt()},_r.onload=function(){var Fr=_r.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Fr)){dt();return}Ze[sr]=Fr,dt()},_r.readAsText(Cn)},Ct=0;Ct<me.length;Ct++)vt(me[Ct],Ct);else{if(z.state.draggingText&&z.doc.sel.contains(ye)>-1){z.state.draggingText(a),setTimeout(function(){return z.display.input.focus()},20);return}try{var Yt=a.dataTransfer.getData("Text");if(Yt){var nn;if(z.state.draggingText&&!z.state.draggingText.copy&&(nn=z.listSelections()),lo(z.doc,Dn(ye,ye)),nn)for(var In=0;In<nn.length;++In)uo(z.doc,"",nn[In].anchor,nn[In].head,"drag");z.replaceSelection(Yt,"around","paste"),z.display.input.focus()}}catch(Cn){}}}}function xs(a,z){if(ue&&(!a.state.draggingText||+new Date-es<100)){At(z);return}if(!(It(a,z)||ca(a.display,z))&&(z.dataTransfer.setData("Text",a.getSelection()),z.dataTransfer.effectAllowed="copyMove",z.dataTransfer.setDragImage&&!b)){var ye=je("img",null,null,"position: fixed; left: 0; top: 0;");ye.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",x&&(ye.width=ye.height=1,a.display.wrapper.appendChild(ye),ye._top=ye.offsetTop),z.dataTransfer.setDragImage(ye,0,0),x&&ye.parentNode.removeChild(ye)}}function ws(a,z){var ye=us(a,z);if(ye){var me=document.createDocumentFragment();vl(a,ye,me),a.display.dragCursor||(a.display.dragCursor=je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),De(a.display.dragCursor,me)}}function kl(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function Rl(a){if(document.getElementsByClassName){for(var z=document.getElementsByClassName("CodeMirror"),ye=[],me=0;me<z.length;me++){var Te=z[me].CodeMirror;Te&&ye.push(Te)}ye.length&&ye[0].operation(function(){for(var Ze=0;Ze<ye.length;Ze++)a(ye[Ze])})}}var Pl=!1;function Nl(){Pl||(Xl(),Pl=!0)}function Xl(){var a;Ft(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,Rl(Ki)},100))}),Ft(window,"blur",function(){return Rl(Js)})}function Ki(a){var z=a.display;z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.scrollbarsClipped=!1,a.setSize()}for(var oo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fo=0;Fo<10;Fo++)oo[Fo+48]=oo[Fo+96]=String(Fo);for(var Qo=65;Qo<=90;Qo++)oo[Qo]=String.fromCharCode(Qo);for(var ma=1;ma<=12;ma++)oo[ma+111]=oo[ma+63235]="F"+ma;var da={};da.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},da.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},da.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},da.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},da.default=ve?da.macDefault:da.pcDefault;function ms(a){var z=a.split(/-(?!$)/);a=z[z.length-1];for(var ye,me,Te,Ze,it=0;it<z.length-1;it++){var dt=z[it];if(/^(cmd|meta|m)$/i.test(dt))Ze=!0;else if(/^a(lt)?$/i.test(dt))ye=!0;else if(/^(c|ctrl|control)$/i.test(dt))me=!0;else if(/^s(hift)?$/i.test(dt))Te=!0;else throw new Error("Unrecognized modifier name: "+dt)}return ye&&(a="Alt-"+a),me&&(a="Ctrl-"+a),Ze&&(a="Cmd-"+a),Te&&(a="Shift-"+a),a}function wa(a){var z={};for(var ye in a)if(a.hasOwnProperty(ye)){var me=a[ye];if(/^(name|fallthrough|(de|at)tach)$/.test(ye))continue;if(me=="..."){delete a[ye];continue}for(var Te=bt(ye.split(" "),ms),Ze=0;Ze<Te.length;Ze++){var it=void 0,dt=void 0;Ze==Te.length-1?(dt=Te.join(" "),it=me):(dt=Te.slice(0,Ze+1).join(" "),it="...");var vt=z[dt];if(!vt)z[dt]=it;else if(vt!=it)throw new Error("Inconsistent bindings for "+dt)}delete a[ye]}for(var Ct in z)a[Ct]=z[Ct];return a}function ll(a,z,ye,me){z=Bl(z);var Te=z.call?z.call(a,me):z[a];if(Te===!1)return"nothing";if(Te==="...")return"multi";if(Te!=null&&ye(Te))return"handled";if(z.fallthrough){if(Object.prototype.toString.call(z.fallthrough)!="[object Array]")return ll(a,z.fallthrough,ye,me);for(var Ze=0;Ze<z.fallthrough.length;Ze++){var it=ll(a,z.fallthrough[Ze],ye,me);if(it)return it}}}function Jl(a){var z=typeof a=="string"?a:oo[a.keyCode];return z=="Ctrl"||z=="Alt"||z=="Shift"||z=="Mod"}function _l(a,z,ye){var me=a;return z.altKey&&me!="Alt"&&(a="Alt-"+a),(Ce?z.metaKey:z.ctrlKey)&&me!="Ctrl"&&(a="Ctrl-"+a),(Ce?z.ctrlKey:z.metaKey)&&me!="Mod"&&(a="Cmd-"+a),!ye&&z.shiftKey&&me!="Shift"&&(a="Shift-"+a),a}function el(a,z){if(x&&a.keyCode==34&&a.char)return!1;var ye=oo[a.keyCode];return ye==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(ye=a.code),_l(ye,a,z))}function Bl(a){return typeof a=="string"?da[a]:a}function tl(a,z){for(var ye=a.doc.sel.ranges,me=[],Te=0;Te<ye.length;Te++){for(var Ze=z(ye[Te]);me.length&&Lt(Ze.from,wt(me).to)<=0;){var it=me.pop();if(Lt(it.from,Ze.from)<0){Ze.from=it.from;break}}me.push(Ze)}zt(a,function(){for(var dt=me.length-1;dt>=0;dt--)uo(a.doc,"",me[dt].from,me[dt].to,"+delete");js(a)})}function Ql(a,z,ye){var me=we(a.text,z+ye,ye);return me<0||me>a.text.length?null:me}function jl(a,z,ye){var me=Ql(a,z.ch,ye);return me==null?null:new yt(z.line,me,ye<0?"after":"before")}function ql(a,z,ye,me,Te){if(a){z.doc.direction=="rtl"&&(Te=-Te);var Ze=st(ye,z.doc.direction);if(Ze){var it=Te<0?wt(Ze):Ze[0],dt=Te<0==(it.level==1),vt=dt?"after":"before",Ct;if(it.level>0||z.doc.direction=="rtl"){var Yt=vs(z,ye);Ct=Te<0?ye.text.length-1:0;var nn=Wa(z,Yt,Ct).top;Ct=ke(function(In){return Wa(z,Yt,In).top==nn},Te<0==(it.level==1)?it.from:it.to-1,Ct),vt=="before"&&(Ct=Ql(ye,Ct,1))}else Ct=Te<0?it.to:it.from;return new yt(me,Ct,vt)}}return new yt(me,Te<0?ye.text.length:0,Te<0?"before":"after")}function gc(a,z,ye,me){var Te=st(z,a.doc.direction);if(!Te)return jl(z,ye,me);ye.ch>=z.text.length?(ye.ch=z.text.length,ye.sticky="before"):ye.ch<=0&&(ye.ch=0,ye.sticky="after");var Ze=tt(Te,ye.ch,ye.sticky),it=Te[Ze];if(a.doc.direction=="ltr"&&it.level%2==0&&(me>0?it.to>ye.ch:it.from<ye.ch))return jl(z,ye,me);var dt=function(Qr,hi){return Ql(z,Qr instanceof yt?Qr.ch:Qr,hi)},vt,Ct=function(Qr){return a.options.lineWrapping?(vt=vt||vs(a,z),Ho(a,z,vt,Qr)):{begin:0,end:z.text.length}},Yt=Ct(ye.sticky=="before"?dt(ye,-1):ye.ch);if(a.doc.direction=="rtl"||it.level==1){var nn=it.level==1==me<0,In=dt(ye,nn?1:-1);if(In!=null&&(nn?In<=it.to&&In<=Yt.end:In>=it.from&&In>=Yt.begin)){var Cn=nn?"before":"after";return new yt(ye.line,In,Cn)}}var sr=function(Qr,hi,qr){for(var Si=function(zo,Ia){return Ia?new yt(ye.line,dt(zo,1),"before"):new yt(ye.line,zo,"after")};Qr>=0&&Qr<Te.length;Qr+=hi){var zi=Te[Qr],Bi=hi>0==(zi.level!=1),co=Bi?qr.begin:dt(qr.end,-1);if(zi.from<=co&&co<zi.to||(co=Bi?zi.from:dt(zi.to,-1),qr.begin<=co&&co<qr.end))return Si(co,Bi)}},_r=sr(Ze+me,me,Yt);if(_r)return _r;var Fr=me>0?Yt.end:dt(Yt.begin,-1);return Fr!=null&&!(me>0&&Fr==z.text.length)&&(_r=sr(me>0?0:Te.length-1,me,Ct(Fr)),_r)?_r:null}var Us={selectAll:Di,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Xe)},killLine:function(a){return tl(a,function(z){if(z.empty()){var ye=Xt(a.doc,z.head.line).text.length;return z.head.ch==ye&&z.head.line<a.lastLine()?{from:z.head,to:yt(z.head.line+1,0)}:{from:z.head,to:yt(z.head.line,ye)}}else return{from:z.from(),to:z.to()}})},deleteLine:function(a){return tl(a,function(z){return{from:yt(z.from().line,0),to:tn(a.doc,yt(z.to().line+1,0))}})},delLineLeft:function(a){return tl(a,function(z){return{from:yt(z.from().line,0),to:z.from()}})},delWrappedLineLeft:function(a){return tl(a,function(z){var ye=a.charCoords(z.head,"div").top+5,me=a.coordsChar({left:0,top:ye},"div");return{from:me,to:z.from()}})},delWrappedLineRight:function(a){return tl(a,function(z){var ye=a.charCoords(z.head,"div").top+5,me=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ye},"div");return{from:z.from(),to:me}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(yt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(yt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(z){return ec(a,z.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(z){return tc(a,z.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(z){return xc(a,z.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(z){var ye=a.cursorCoords(z.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ye},"div")},lt)},goLineLeft:function(a){return a.extendSelectionsBy(function(z){var ye=a.cursorCoords(z.head,"div").top+5;return a.coordsChar({left:0,top:ye},"div")},lt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(z){var ye=a.cursorCoords(z.head,"div").top+5,me=a.coordsChar({left:0,top:ye},"div");return me.ch<a.getLine(me.line).search(/\S/)?tc(a,z.head):me},lt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var z=[],ye=a.listSelections(),me=a.options.tabSize,Te=0;Te<ye.length;Te++){var Ze=ye[Te].from(),it=Ge(a.getLine(Ze.line),Ze.ch,me);z.push(Mt(me-it%me))}a.replaceSelections(z)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return zt(a,function(){for(var z=a.listSelections(),ye=[],me=0;me<z.length;me++)if(z[me].empty()){var Te=z[me].head,Ze=Xt(a.doc,Te.line).text;if(Ze){if(Te.ch==Ze.length&&(Te=new yt(Te.line,Te.ch-1)),Te.ch>0)Te=new yt(Te.line,Te.ch+1),a.replaceRange(Ze.charAt(Te.ch-1)+Ze.charAt(Te.ch-2),yt(Te.line,Te.ch-2),Te,"+transpose");else if(Te.line>a.doc.first){var it=Xt(a.doc,Te.line-1).text;it&&(Te=new yt(Te.line,1),a.replaceRange(Ze.charAt(0)+a.doc.lineSeparator()+it.charAt(it.length-1),yt(Te.line-1,it.length-1),Te,"+transpose"))}}ye.push(new hn(Te,Te))}a.setSelections(ye)})},newlineAndIndent:function(a){return zt(a,function(){for(var z=a.listSelections(),ye=z.length-1;ye>=0;ye--)a.replaceRange(a.doc.lineSeparator(),z[ye].anchor,z[ye].head,"+input");z=a.listSelections();for(var me=0;me<z.length;me++)a.indentLine(z[me].from().line,null,!0);js(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ec(a,z){var ye=Xt(a.doc,z),me=zn(ye);return me!=ye&&(z=Nt(me)),ql(!0,a,me,z,1)}function xc(a,z){var ye=Xt(a.doc,z),me=xr(ye);return me!=ye&&(z=Nt(me)),ql(!0,a,ye,z,-1)}function tc(a,z){var ye=ec(a,z.line),me=Xt(a.doc,ye.line),Te=st(me,a.doc.direction);if(!Te||Te[0].level==0){var Ze=Math.max(ye.ch,me.text.search(/\S/)),it=z.line==ye.line&&z.ch<=Ze&&z.ch;return yt(ye.line,it?0:Ze,ye.sticky)}return ye}function Cl(a,z,ye){if(typeof z=="string"&&(z=Us[z],!z))return!1;a.display.input.ensurePolled();var me=a.display.shift,Te=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ye&&(a.display.shift=!1),Te=z(a)!=rt}finally{a.display.shift=me,a.state.suppressEdits=!1}return Te}function wc(a,z,ye){for(var me=0;me<a.state.keyMaps.length;me++){var Te=ll(z,a.state.keyMaps[me],ye,a);if(Te)return Te}return a.options.extraKeys&&ll(z,a.options.extraKeys,ye,a)||ll(z,a.options.keyMap,ye,a)}var Ec=new Ue;function xl(a,z,ye,me){var Te=a.state.keySeq;if(Te){if(Jl(z))return"handled";if(/\'$/.test(z)?a.state.keySeq=null:Ec.set(50,function(){a.state.keySeq==Te&&(a.state.keySeq=null,a.display.input.reset())}),nc(a,Te+" "+z,ye,me))return!0}return nc(a,z,ye,me)}function nc(a,z,ye,me){var Te=wc(a,z,me);return Te=="multi"&&(a.state.keySeq=z),Te=="handled"&&wo(a,"keyHandled",a,z,ye),(Te=="handled"||Te=="multi")&&(Sn(ye),al(a)),!!Te}function wl(a,z){var ye=el(z,!0);return ye?z.shiftKey&&!a.state.keySeq?xl(a,"Shift-"+ye,z,function(me){return Cl(a,me,!0)})||xl(a,ye,z,function(me){if(typeof me=="string"?/^go[A-Z]/.test(me):me.motion)return Cl(a,me)}):xl(a,ye,z,function(me){return Cl(a,me)}):!1}function rc(a,z,ye){return xl(a,"'"+ye+"'",z,function(me){return Cl(a,me,!0)})}var El=null;function ic(a){var z=this;if(!(a.target&&a.target!=z.display.input.getField())&&(z.curOp.focus=Je(),!It(z,a))){ue&&ae<11&&a.keyCode==27&&(a.returnValue=!1);var ye=a.keyCode;z.display.shift=ye==16||a.shiftKey;var me=wl(z,a);x&&(El=me?ye:null,!me&&ye==88&&!En&&(ve?a.metaKey:a.ctrlKey)&&z.replaceSelection("",null,"cut")),y&&!ve&&!me&&ye==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ye==18&&!/\bCodeMirror-crosshair\b/.test(z.display.lineDiv.className)&&yc(z)}}function yc(a){var z=a.display.lineDiv;He(z,"CodeMirror-crosshair");function ye(me){(me.keyCode==18||!me.altKey)&&(Ee(z,"CodeMirror-crosshair"),qt(document,"keyup",ye),qt(document,"mouseover",ye))}Ft(document,"keyup",ye),Ft(document,"mouseover",ye)}function oc(a){a.keyCode==16&&(this.doc.sel.shift=!1),It(this,a)}function ac(a){var z=this;if(!(a.target&&a.target!=z.display.input.getField())&&!(ca(z.display,a)||It(z,a)||a.ctrlKey&&!a.altKey||ve&&a.metaKey)){var ye=a.keyCode,me=a.charCode;if(x&&ye==El){El=null,Sn(a);return}if(!(x&&(!a.which||a.which<10)&&wl(z,a))){var Te=String.fromCharCode(me==null?ye:me);Te!="\b"&&(rc(z,a,Te)||z.display.input.onKeyPress(a))}}}var Tc=400,Fl=function(a,z,ye){this.time=a,this.pos=z,this.button=ye};Fl.prototype.compare=function(a,z,ye){return this.time+Tc>a&&Lt(z,this.pos)==0&&ye==this.button};var nl,cl;function sc(a,z){var ye=+new Date;return cl&&cl.compare(ye,a,z)?(nl=cl=null,"triple"):nl&&nl.compare(ye,a,z)?(cl=new Fl(ye,a,z),nl=null,"double"):(nl=new Fl(ye,a,z),cl=null,"single")}function lc(a){var z=this,ye=z.display;if(!(It(z,a)||ye.activeTouch&&ye.input.supportsTouch())){if(ye.input.ensurePolled(),ye.shift=a.shiftKey,ca(ye,a)){se||(ye.scroller.draggable=!1,setTimeout(function(){return ye.scroller.draggable=!0},100));return}if(!Ms(z,a)){var me=us(z,a),Te=on(a),Ze=me?sc(me,Te):"single";window.focus(),Te==1&&z.state.selectingText&&z.state.selectingText(a),!(me&&Ic(z,Te,me,Ze,a))&&(Te==1?me?go(z,me,Ze,a):Gt(a)==ye.scroller&&Sn(a):Te==2?(me&&Xi(z.doc,me),setTimeout(function(){return ye.input.focus()},20)):Te==3&&(he?z.display.input.onContextMenu(a):sl(z)))}}}function Ic(a,z,ye,me,Te){var Ze="Click";return me=="double"?Ze="Double"+Ze:me=="triple"&&(Ze="Triple"+Ze),Ze=(z==1?"Left":z==2?"Middle":"Right")+Ze,xl(a,_l(Ze,Te),Te,function(it){if(typeof it=="string"&&(it=Us[it]),!it)return!1;var dt=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),dt=it(a,ye)!=rt}finally{a.state.suppressEdits=!1}return dt})}function ho(a,z,ye){var me=a.getOption("configureMouse"),Te=me?me(a,z,ye):{};if(Te.unit==null){var Ze=Se?ye.shiftKey&&ye.metaKey:ye.altKey;Te.unit=Ze?"rectangle":z=="single"?"char":z=="double"?"word":"line"}return(Te.extend==null||a.doc.extend)&&(Te.extend=a.doc.extend||ye.shiftKey),Te.addNew==null&&(Te.addNew=ve?ye.metaKey:ye.ctrlKey),Te.moveOnDrag==null&&(Te.moveOnDrag=!(ve?ye.altKey:ye.ctrlKey)),Te}function go(a,z,ye,me){ue?setTimeout($e(Ss,a),0):a.curOp.focus=Je();var Te=ho(a,ye,me),Ze=a.doc.sel,it;a.options.dragDrop&&vn&&!a.isReadOnly()&&ye=="single"&&(it=Ze.contains(z))>-1&&(Lt((it=Ze.ranges[it]).from(),z)<0||z.xRel>0)&&(Lt(it.to(),z)>0||z.xRel<0)?Ea(a,me,z,Te):Ta(a,me,z,Te)}function Ea(a,z,ye,me){var Te=a.display,Ze=!1,it=Mr(a,function(Ct){se&&(Te.scroller.draggable=!1),a.state.draggingText=!1,qt(Te.wrapper.ownerDocument,"mouseup",it),qt(Te.wrapper.ownerDocument,"mousemove",dt),qt(Te.scroller,"dragstart",vt),qt(Te.scroller,"drop",it),Ze||(Sn(Ct),me.addNew||Xi(a.doc,ye,null,null,me.extend),se&&!b||ue&&ae==9?setTimeout(function(){Te.wrapper.ownerDocument.body.focus({preventScroll:!0}),Te.input.focus()},20):Te.input.focus())}),dt=function(Ct){Ze=Ze||Math.abs(z.clientX-Ct.clientX)+Math.abs(z.clientY-Ct.clientY)>=10},vt=function(){return Ze=!0};se&&(Te.scroller.draggable=!0),a.state.draggingText=it,it.copy=!me.moveOnDrag,Te.scroller.dragDrop&&Te.scroller.dragDrop(),Ft(Te.wrapper.ownerDocument,"mouseup",it),Ft(Te.wrapper.ownerDocument,"mousemove",dt),Ft(Te.scroller,"dragstart",vt),Ft(Te.scroller,"drop",it),sl(a),setTimeout(function(){return Te.input.focus()},20)}function ts(a,z,ye){if(ye=="char")return new hn(z,z);if(ye=="word")return a.findWordAt(z);if(ye=="line")return new hn(yt(z.line,0),tn(a.doc,yt(z.line+1,0)));var me=ye(a,z);return new hn(me.from,me.to)}function Ta(a,z,ye,me){var Te=a.display,Ze=a.doc;Sn(z);var it,dt,vt=Ze.sel,Ct=vt.ranges;if(me.addNew&&!me.extend?(dt=Ze.sel.contains(ye),dt>-1?it=Ct[dt]:it=new hn(ye,ye)):(it=Ze.sel.primary(),dt=Ze.sel.primIndex),me.unit=="rectangle")me.addNew||(it=new hn(ye,ye)),ye=us(a,z,!0,!0),dt=-1;else{var Yt=ts(a,ye,me.unit);me.extend?it=Vi(it,Yt.anchor,Yt.head,me.extend):it=Yt}me.addNew?dt==-1?(dt=Ct.length,ni(Ze,Fn(a,Ct.concat([it]),dt),{scroll:!1,origin:"*mouse"})):Ct.length>1&&Ct[dt].empty()&&me.unit=="char"&&!me.extend?(ni(Ze,Fn(a,Ct.slice(0,dt).concat(Ct.slice(dt+1)),0),{scroll:!1,origin:"*mouse"}),vt=Ze.sel):Go(Ze,dt,it,ut):(dt=0,ni(Ze,new mn([it],0),ut),vt=Ze.sel);var nn=ye;function In(qr){if(Lt(nn,qr)!=0)if(nn=qr,me.unit=="rectangle"){for(var Si=[],zi=a.options.tabSize,Bi=Ge(Xt(Ze,ye.line).text,ye.ch,zi),co=Ge(Xt(Ze,qr.line).text,qr.ch,zi),zo=Math.min(Bi,co),Ia=Math.max(Bi,co),na=Math.min(ye.line,qr.line),hs=Math.min(a.lastLine(),Math.max(ye.line,qr.line));na<=hs;na++){var ns=Xt(Ze,na).text,va=kt(ns,zo,zi);zo==Ia?Si.push(new hn(yt(na,va),yt(na,va))):ns.length>va&&Si.push(new hn(yt(na,va),yt(na,kt(ns,Ia,zi))))}Si.length||Si.push(new hn(ye,ye)),ni(Ze,Fn(a,vt.ranges.slice(0,dt).concat(Si),dt),{origin:"*mouse",scroll:!1}),a.scrollIntoView(qr)}else{var rs=it,Pa=ts(a,qr,me.unit),Ca=rs.anchor,ga;Lt(Pa.anchor,Ca)>0?(ga=Pa.head,Ca=Gn(rs.from(),Pa.anchor)):(ga=Pa.anchor,Ca=Tn(rs.to(),Pa.head));var sa=vt.ranges.slice(0);sa[dt]=ul(a,new hn(tn(Ze,Ca),ga)),ni(Ze,Fn(a,sa,dt),ut)}}var Cn=Te.wrapper.getBoundingClientRect(),sr=0;function _r(qr){var Si=++sr,zi=us(a,qr,!0,me.unit=="rectangle");if(zi)if(Lt(zi,nn)!=0){a.curOp.focus=Je(),In(zi);var Bi=_s(Te,Ze);(zi.line>=Bi.to||zi.line<Bi.from)&&setTimeout(Mr(a,function(){sr==Si&&_r(qr)}),150)}else{var co=qr.clientY<Cn.top?-20:qr.clientY>Cn.bottom?20:0;co&&setTimeout(Mr(a,function(){sr==Si&&(Te.scroller.scrollTop+=co,_r(qr))}),50)}}function Fr(qr){a.state.selectingText=!1,sr=1/0,qr&&(Sn(qr),Te.input.focus()),qt(Te.wrapper.ownerDocument,"mousemove",Qr),qt(Te.wrapper.ownerDocument,"mouseup",hi),Ze.history.lastSelOrigin=null}var Qr=Mr(a,function(qr){qr.buttons===0||!on(qr)?Fr(qr):_r(qr)}),hi=Mr(a,Fr);a.state.selectingText=hi,Ft(Te.wrapper.ownerDocument,"mousemove",Qr),Ft(Te.wrapper.ownerDocument,"mouseup",hi)}function ul(a,z){var ye=z.anchor,me=z.head,Te=Xt(a.doc,ye.line);if(Lt(ye,me)==0&&ye.sticky==me.sticky)return z;var Ze=st(Te);if(!Ze)return z;var it=tt(Ze,ye.ch,ye.sticky),dt=Ze[it];if(dt.from!=ye.ch&&dt.to!=ye.ch)return z;var vt=it+(dt.from==ye.ch==(dt.level!=1)?0:1);if(vt==0||vt==Ze.length)return z;var Ct;if(me.line!=ye.line)Ct=(me.line-ye.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Yt=tt(Ze,me.ch,me.sticky),nn=Yt-it||(me.ch-ye.ch)*(dt.level==1?-1:1);Yt==vt-1||Yt==vt?Ct=nn<0:Ct=nn>0}var In=Ze[vt+(Ct?-1:0)],Cn=Ct==(In.level==1),sr=Cn?In.from:In.to,_r=Cn?"after":"before";return ye.ch==sr&&ye.sticky==_r?z:new hn(new yt(ye.line,sr,_r),me)}function Zs(a,z,ye,me){var Te,Ze;if(z.touches)Te=z.touches[0].clientX,Ze=z.touches[0].clientY;else try{Te=z.clientX,Ze=z.clientY}catch(In){return!1}if(Te>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;me&&Sn(z);var it=a.display,dt=it.lineDiv.getBoundingClientRect();if(Ze>dt.bottom||!Pt(a,ye))return wn(z);Ze-=dt.top-it.viewOffset;for(var vt=0;vt<a.display.gutterSpecs.length;++vt){var Ct=it.gutters.childNodes[vt];if(Ct&&Ct.getBoundingClientRect().right>=Te){var Yt=jt(a.doc,Ze),nn=a.display.gutterSpecs[vt];return $t(a,ye,a,Yt,nn.className,z),wn(z)}}}function Ms(a,z){return Zs(a,z,"gutterClick",!0)}function dl(a,z){ca(a.display,z)||cc(a,z)||It(a,z,"contextmenu")||he||a.display.input.onContextMenu(z)}function cc(a,z){return Pt(a,"gutterContextMenu")?Zs(a,z,"gutterContextMenu",!1):!1}function kc(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gs(a)}var zl={toString:function(){return"CodeMirror.Init"}},Rc={},bc={};function Zc(a){var z=a.optionHandlers;function ye(me,Te,Ze,it){a.defaults[me]=Te,Ze&&(z[me]=it?function(dt,vt,Ct){Ct!=zl&&Ze(dt,vt,Ct)}:Ze)}a.defineOption=ye,a.Init=zl,ye("value","",function(me,Te){return me.setValue(Te)},!0),ye("mode",null,function(me,Te){me.doc.modeOption=Te,Wr(me)},!0),ye("indentUnit",2,Wr,!0),ye("indentWithTabs",!1),ye("smartIndent",!0),ye("tabSize",4,function(me){Gr(me),gs(me),Sa(me)},!0),ye("lineSeparator",null,function(me,Te){if(me.doc.lineSep=Te,!!Te){var Ze=[],it=me.doc.first;me.doc.iter(function(vt){for(var Ct=0;;){var Yt=vt.text.indexOf(Te,Ct);if(Yt==-1)break;Ct=Yt+Te.length,Ze.push(yt(it,Yt))}it++});for(var dt=Ze.length-1;dt>=0;dt--)uo(me.doc,Te,Ze[dt],yt(Ze[dt].line,Ze[dt].ch+Te.length))}}),ye("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(me,Te,Ze){me.state.specialChars=new RegExp(Te.source+(Te.test(" ")?"":"| "),"g"),Ze!=zl&&me.refresh()}),ye("specialCharPlaceholder",So,function(me){return me.refresh()},!0),ye("electricChars",!0),ye("inputStyle",le?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ye("spellcheck",!1,function(me,Te){return me.getInputField().spellcheck=Te},!0),ye("autocorrect",!1,function(me,Te){return me.getInputField().autocorrect=Te},!0),ye("autocapitalize",!1,function(me,Te){return me.getInputField().autocapitalize=Te},!0),ye("rtlMoveVisually",!ge),ye("wholeLineUpdateBefore",!0),ye("theme","default",function(me){kc(me),Zt(me)},!0),ye("keyMap","default",function(me,Te,Ze){var it=Bl(Te),dt=Ze!=zl&&Bl(Ze);dt&&dt.detach&&dt.detach(me,it),it.attach&&it.attach(me,dt||null)}),ye("extraKeys",null),ye("configureMouse",null),ye("lineWrapping",!1,$c,!0),ye("gutters",[],function(me,Te){me.display.gutterSpecs=Ht(Te,me.options.lineNumbers),Zt(me)},!0),ye("fixedGutter",!0,function(me,Te){me.display.gutters.style.left=Te?ol(me.display)+"px":"0",me.refresh()},!0),ye("coverGutterNextToScrollbar",!1,function(me){return Qs(me)},!0),ye("scrollbarStyle","native",function(me){Ol(me),Qs(me),me.display.scrollbars.setScrollTop(me.doc.scrollTop),me.display.scrollbars.setScrollLeft(me.doc.scrollLeft)},!0),ye("lineNumbers",!1,function(me,Te){me.display.gutterSpecs=Ht(me.options.gutters,Te),Zt(me)},!0),ye("firstLineNumber",1,Zt,!0),ye("lineNumberFormatter",function(me){return me},Zt,!0),ye("showCursorWhenSelecting",!1,Ls,!0),ye("resetSelectionOnContextMenu",!0),ye("lineWiseCopyCut",!0),ye("pasteLinesPerSelection",!0),ye("selectionsMayTouch",!1),ye("readOnly",!1,function(me,Te){Te=="nocursor"&&(Js(me),me.display.input.blur()),me.display.input.readOnlyChanged(Te)}),ye("screenReaderLabel",null,function(me,Te){Te=Te===""?null:Te,me.display.input.screenReaderLabelChanged(Te)}),ye("disableInput",!1,function(me,Te){Te||me.display.input.reset()},!0),ye("dragDrop",!0,Wc),ye("allowDropFileTypes",null),ye("cursorBlinkRate",530),ye("cursorScrollMargin",0),ye("cursorHeight",1,Ls,!0),ye("singleCursorHeightPerLine",!0,Ls,!0),ye("workTime",100),ye("workDelay",100),ye("flattenSpans",!0,Gr,!0),ye("addModeClass",!1,Gr,!0),ye("pollInterval",100),ye("undoDepth",200,function(me,Te){return me.doc.history.undoDepth=Te}),ye("historyEventDelay",1250),ye("viewportMargin",10,function(me){return me.refresh()},!0),ye("maxHighlightLength",1e4,Gr,!0),ye("moveInputWithCursor",!0,function(me,Te){Te||me.display.input.resetPosition()}),ye("tabindex",null,function(me,Te){return me.display.input.getField().tabIndex=Te||""}),ye("autofocus",null),ye("direction","ltr",function(me,Te){return me.doc.setDirection(Te)},!0),ye("phrases",null)}function Wc(a,z,ye){var me=ye&&ye!=zl;if(!z!=!me){var Te=a.display.dragFunctions,Ze=z?Ft:qt;Ze(a.display.scroller,"dragstart",Te.start),Ze(a.display.scroller,"dragenter",Te.enter),Ze(a.display.scroller,"dragover",Te.over),Ze(a.display.scroller,"dragleave",Te.leave),Ze(a.display.scroller,"drop",Te.drop)}}function $c(a){a.options.lineWrapping?(He(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ee(a.display.wrapper,"CodeMirror-wrap"),gi(a)),Ps(a),Sa(a),gs(a),setTimeout(function(){return Qs(a)},100)}function qo(a,z){var ye=this;if(!(this instanceof qo))return new qo(a,z);this.options=z=z?ht(z):{},ht(Rc,z,!1);var me=z.value;typeof me=="string"?me=new Oo(me,z.mode,null,z.lineSeparator,z.direction):z.mode&&(me.modeOption=z.mode),this.doc=me;var Te=new qo.inputStyles[z.inputStyle](this),Ze=this.display=new Qt(a,me,Te,z);Ze.wrapper.CodeMirror=this,kc(this),z.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ol(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ue,keySeq:null,specialChars:null},z.autofocus&&!le&&Ze.input.focus(),ue&&ae<11&&setTimeout(function(){return ye.display.input.reset(!0)},20),Gc(this),Nl(),ds(this),this.curOp.forceUpdate=!0,xi(this,me),z.autofocus&&!le||this.hasFocus()?setTimeout(function(){ye.hasFocus()&&!ye.state.focused&&Ns(ye)},20):Js(this);for(var it in bc)bc.hasOwnProperty(it)&&bc[it](this,z[it],zl);Rt(this),z.finishInit&&z.finishInit(this);for(var dt=0;dt<Lc.length;++dt)Lc[dt](this);zs(this),se&&z.lineWrapping&&getComputedStyle(Ze.lineDiv).textRendering=="optimizelegibility"&&(Ze.lineDiv.style.textRendering="auto")}qo.defaults=Rc,qo.optionHandlers=bc;function Gc(a){var z=a.display;Ft(z.scroller,"mousedown",Mr(a,lc)),ue&&ae<11?Ft(z.scroller,"dblclick",Mr(a,function(vt){if(!It(a,vt)){var Ct=us(a,vt);if(!(!Ct||Ms(a,vt)||ca(a.display,vt))){Sn(vt);var Yt=a.findWordAt(Ct);Xi(a.doc,Yt.anchor,Yt.head)}}})):Ft(z.scroller,"dblclick",function(vt){return It(a,vt)||Sn(vt)}),Ft(z.scroller,"contextmenu",function(vt){return dl(a,vt)}),Ft(z.input.getField(),"contextmenu",function(vt){z.scroller.contains(vt.target)||dl(a,vt)});var ye,me={end:0};function Te(){z.activeTouch&&(ye=setTimeout(function(){return z.activeTouch=null},1e3),me=z.activeTouch,me.end=+new Date)}function Ze(vt){if(vt.touches.length!=1)return!1;var Ct=vt.touches[0];return Ct.radiusX<=1&&Ct.radiusY<=1}function it(vt,Ct){if(Ct.left==null)return!0;var Yt=Ct.left-vt.left,nn=Ct.top-vt.top;return Yt*Yt+nn*nn>20*20}Ft(z.scroller,"touchstart",function(vt){if(!It(a,vt)&&!Ze(vt)&&!Ms(a,vt)){z.input.ensurePolled(),clearTimeout(ye);var Ct=+new Date;z.activeTouch={start:Ct,moved:!1,prev:Ct-me.end<=300?me:null},vt.touches.length==1&&(z.activeTouch.left=vt.touches[0].pageX,z.activeTouch.top=vt.touches[0].pageY)}}),Ft(z.scroller,"touchmove",function(){z.activeTouch&&(z.activeTouch.moved=!0)}),Ft(z.scroller,"touchend",function(vt){var Ct=z.activeTouch;if(Ct&&!ca(z,vt)&&Ct.left!=null&&!Ct.moved&&new Date-Ct.start<300){var Yt=a.coordsChar(z.activeTouch,"page"),nn;!Ct.prev||it(Ct,Ct.prev)?nn=new hn(Yt,Yt):!Ct.prev.prev||it(Ct,Ct.prev.prev)?nn=a.findWordAt(Yt):nn=new hn(yt(Yt.line,0),tn(a.doc,yt(Yt.line+1,0))),a.setSelection(nn.anchor,nn.head),a.focus(),Sn(vt)}Te()}),Ft(z.scroller,"touchcancel",Te),Ft(z.scroller,"scroll",function(){z.scroller.clientHeight&&(As(a,z.scroller.scrollTop),Ds(a,z.scroller.scrollLeft,!0),$t(a,"scroll",a))}),Ft(z.scroller,"mousewheel",function(vt){return _n(a,vt)}),Ft(z.scroller,"DOMMouseScroll",function(vt){return _n(a,vt)}),Ft(z.wrapper,"scroll",function(){return z.wrapper.scrollTop=z.wrapper.scrollLeft=0}),z.dragFunctions={enter:function(vt){It(a,vt)||At(vt)},over:function(vt){It(a,vt)||(ws(a,vt),At(vt))},start:function(vt){return xs(a,vt)},drop:Mr(a,Hs),leave:function(vt){It(a,vt)||kl(a)}};var dt=z.input.getField();Ft(dt,"keyup",function(vt){return oc.call(a,vt)}),Ft(dt,"keydown",Mr(a,ic)),Ft(dt,"keypress",Mr(a,ac)),Ft(dt,"focus",function(vt){return Ns(a,vt)}),Ft(dt,"blur",function(vt){return Js(a,vt)})}var Lc=[];qo.defineInitHook=function(a){return Lc.push(a)};function uc(a,z,ye,me){var Te=a.doc,Ze;ye==null&&(ye="add"),ye=="smart"&&(Te.mode.indent?Ze=fn(a,z).state:ye="prev");var it=a.options.tabSize,dt=Xt(Te,z),vt=Ge(dt.text,null,it);dt.stateAfter&&(dt.stateAfter=null);var Ct=dt.text.match(/^\s*/)[0],Yt;if(!me&&!/\S/.test(dt.text))Yt=0,ye="not";else if(ye=="smart"&&(Yt=Te.mode.indent(Ze,dt.text.slice(Ct.length),dt.text),Yt==rt||Yt>150)){if(!me)return;ye="prev"}ye=="prev"?z>Te.first?Yt=Ge(Xt(Te,z-1).text,null,it):Yt=0:ye=="add"?Yt=vt+a.options.indentUnit:ye=="subtract"?Yt=vt-a.options.indentUnit:typeof ye=="number"&&(Yt=vt+ye),Yt=Math.max(0,Yt);var nn="",In=0;if(a.options.indentWithTabs)for(var Cn=Math.floor(Yt/it);Cn;--Cn)In+=it,nn+=" ";if(In<Yt&&(nn+=Mt(Yt-In)),nn!=Ct)return uo(Te,nn,yt(z,0),yt(z,Ct.length),"+input"),dt.stateAfter=null,!0;for(var sr=0;sr<Te.sel.ranges.length;sr++){var _r=Te.sel.ranges[sr];if(_r.head.line==z&&_r.head.ch<Ct.length){var Fr=yt(z,Ct.length);Go(Te,sr,new hn(Fr,Fr));break}}}var Os=null;function Sc(a){Os=a}function Ac(a,z,ye,me,Te){var Ze=a.doc;a.display.shift=!1,me||(me=Ze.sel);var it=+new Date-200,dt=Te=="paste"||a.state.pasteIncoming>it,vt=Mn(z),Ct=null;if(dt&&me.ranges.length>1)if(Os&&Os.text.join(`
|
|
|
`)==z){if(me.ranges.length%Os.text.length==0){Ct=[];for(var Yt=0;Yt<Os.text.length;Yt++)Ct.push(Ze.splitLines(Os.text[Yt]))}}else vt.length==me.ranges.length&&a.options.pasteLinesPerSelection&&(Ct=bt(vt,function(Qr){return[Qr]}));for(var nn=a.curOp.updateInput,In=me.ranges.length-1;In>=0;In--){var Cn=me.ranges[In],sr=Cn.from(),_r=Cn.to();Cn.empty()&&(ye&&ye>0?sr=yt(sr.line,sr.ch-ye):a.state.overwrite&&!dt?_r=yt(_r.line,Math.min(Xt(Ze,_r.line).text.length,_r.ch+wt(vt).length)):dt&&Os&&Os.lineWise&&Os.text.join(`
|
|
|
`)==vt.join(`
|
|
|
`)&&(sr=_r=yt(sr.line,0)));var Fr={from:sr,to:_r,text:Ct?Ct[In%Ct.length]:vt,origin:Te||(dt?"paste":a.state.cutIncoming>it?"cut":"+input")};Eo(a.doc,Fr),wo(a,"inputRead",a,Fr)}z&&!dt&&Nc(a,z),js(a),a.curOp.updateInput<2&&(a.curOp.updateInput=nn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Pc(a,z){var ye=a.clipboardData&&a.clipboardData.getData("Text");if(ye)return a.preventDefault(),!z.isReadOnly()&&!z.options.disableInput&&zt(z,function(){return Ac(z,ye,0,null,"paste")}),!0}function Nc(a,z){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ye=a.doc.sel,me=ye.ranges.length-1;me>=0;me--){var Te=ye.ranges[me];if(!(Te.head.ch>100||me&&ye.ranges[me-1].head.line==Te.head.line)){var Ze=a.getModeAt(Te.head),it=!1;if(Ze.electricChars){for(var dt=0;dt<Ze.electricChars.length;dt++)if(z.indexOf(Ze.electricChars.charAt(dt))>-1){it=uc(a,Te.head.line,"smart");break}}else Ze.electricInput&&Ze.electricInput.test(Xt(a.doc,Te.head.line).text.slice(0,Te.head.ch))&&(it=uc(a,Te.head.line,"smart"));it&&wo(a,"electricInput",a,Te.head.line)}}}function Bc(a){for(var z=[],ye=[],me=0;me<a.doc.sel.ranges.length;me++){var Te=a.doc.sel.ranges[me].head.line,Ze={anchor:yt(Te,0),head:yt(Te+1,0)};ye.push(Ze),z.push(a.getRange(Ze.anchor,Ze.head))}return{text:z,ranges:ye}}function jc(a,z,ye,me){a.setAttribute("autocorrect",ye?"":"off"),a.setAttribute("autocapitalize",me?"":"off"),a.setAttribute("spellcheck",!!z)}function Fc(){var a=je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),z=je("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return se?a.style.width="1000px":a.setAttribute("wrap","off"),re&&(a.style.border="1px solid black"),jc(a),z}function Vc(a){var z=a.optionHandlers,ye=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(me,Te){var Ze=this.options,it=Ze[me];Ze[me]==Te&&me!="mode"||(Ze[me]=Te,z.hasOwnProperty(me)&&Mr(this,z[me])(this,Te,it),$t(this,"optionChange",this,me))},getOption:function(me){return this.options[me]},getDoc:function(){return this.doc},addKeyMap:function(me,Te){this.state.keyMaps[Te?"push":"unshift"](Bl(me))},removeKeyMap:function(me){for(var Te=this.state.keyMaps,Ze=0;Ze<Te.length;++Ze)if(Te[Ze]==me||Te[Ze].name==me)return Te.splice(Ze,1),!0},addOverlay:lr(function(me,Te){var Ze=me.token?me:a.getMode(this.options,me);if(Ze.startState)throw new Error("Overlays may not be stateful.");gt(this.state.overlays,{mode:Ze,modeSpec:me,opaque:Te&&Te.opaque,priority:Te&&Te.priority||0},function(it){return it.priority}),this.state.modeGen++,Sa(this)}),removeOverlay:lr(function(me){for(var Te=this.state.overlays,Ze=0;Ze<Te.length;++Ze){var it=Te[Ze].modeSpec;if(it==me||typeof me=="string"&&it.name==me){Te.splice(Ze,1),this.state.modeGen++,Sa(this);return}}}),indentLine:lr(function(me,Te,Ze){typeof Te!="string"&&typeof Te!="number"&&(Te==null?Te=this.options.smartIndent?"smart":"prev":Te=Te?"add":"subtract"),xt(this.doc,me)&&uc(this,me,Te,Ze)}),indentSelection:lr(function(me){for(var Te=this.doc.sel.ranges,Ze=-1,it=0;it<Te.length;it++){var dt=Te[it];if(dt.empty())dt.head.line>Ze&&(uc(this,dt.head.line,me,!0),Ze=dt.head.line,it==this.doc.sel.primIndex&&js(this));else{var vt=dt.from(),Ct=dt.to(),Yt=Math.max(Ze,vt.line);Ze=Math.min(this.lastLine(),Ct.line-(Ct.ch?0:1))+1;for(var nn=Yt;nn<Ze;++nn)uc(this,nn,me);var In=this.doc.sel.ranges;vt.ch==0&&Te.length==In.length&&In[it].from().ch>0&&Go(this.doc,it,new hn(vt,In[it].to()),Xe)}}}),getTokenAt:function(me,Te){return Un(this,me,Te)},getLineTokens:function(me,Te){return Un(this,yt(me),Te,!0)},getTokenTypeAt:function(me){me=tn(this.doc,me);var Te=ti(this,Xt(this.doc,me.line)),Ze=0,it=(Te.length-1)/2,dt=me.ch,vt;if(dt==0)vt=Te[2];else for(;;){var Ct=Ze+it>>1;if((Ct?Te[Ct*2-1]:0)>=dt)it=Ct;else if(Te[Ct*2+1]<dt)Ze=Ct+1;else{vt=Te[Ct*2+2];break}}var Yt=vt?vt.indexOf("overlay "):-1;return Yt<0?vt:Yt==0?null:vt.slice(0,Yt-1)},getModeAt:function(me){var Te=this.doc.mode;return Te.innerMode?a.innerMode(Te,this.getTokenAt(me).state).mode:Te},getHelper:function(me,Te){return this.getHelpers(me,Te)[0]},getHelpers:function(me,Te){var Ze=[];if(!ye.hasOwnProperty(Te))return Ze;var it=ye[Te],dt=this.getModeAt(me);if(typeof dt[Te]=="string")it[dt[Te]]&&Ze.push(it[dt[Te]]);else if(dt[Te])for(var vt=0;vt<dt[Te].length;vt++){var Ct=it[dt[Te][vt]];Ct&&Ze.push(Ct)}else dt.helperType&&it[dt.helperType]?Ze.push(it[dt.helperType]):it[dt.name]&&Ze.push(it[dt.name]);for(var Yt=0;Yt<it._global.length;Yt++){var nn=it._global[Yt];nn.pred(dt,this)&&Ke(Ze,nn.val)==-1&&Ze.push(nn.val)}return Ze},getStateAfter:function(me,Te){var Ze=this.doc;return me=pn(Ze,me==null?Ze.first+Ze.size-1:me),fn(this,me+1,Te).state},cursorCoords:function(me,Te){var Ze,it=this.doc.sel.primary();return me==null?Ze=it.head:typeof me=="object"?Ze=tn(this.doc,me):Ze=me?it.from():it.to(),ya(this,Ze,Te||"page")},charCoords:function(me,Te){return Ts(this,tn(this.doc,me),Te||"page")},coordsChar:function(me,Te){return me=Rs(this,me,Te||"page"),ra(this,me.left,me.top)},lineAtHeight:function(me,Te){return me=Rs(this,{top:me,left:0},Te||"page").top,jt(this.doc,me+this.display.viewOffset)},heightAtLine:function(me,Te,Ze){var it=!1,dt;if(typeof me=="number"){var vt=this.doc.first+this.doc.size-1;me<this.doc.first?me=this.doc.first:me>vt&&(me=vt,it=!0),dt=Xt(this.doc,me)}else dt=me;return Ks(this,dt,{top:0,left:0},Te||"page",Ze||it).top+(it?this.doc.height-ui(dt):0)},defaultTextHeight:function(){return Ma(this.display)},defaultCharWidth:function(){return Qa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(me,Te,Ze,it,dt){var vt=this.display;me=ya(this,tn(this.doc,me));var Ct=me.bottom,Yt=me.left;if(Te.style.position="absolute",Te.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Te),vt.sizer.appendChild(Te),it=="over")Ct=me.top;else if(it=="above"||it=="near"){var nn=Math.max(vt.wrapper.clientHeight,this.doc.height),In=Math.max(vt.sizer.clientWidth,vt.lineSpace.clientWidth);(it=="above"||me.bottom+Te.offsetHeight>nn)&&me.top>Te.offsetHeight?Ct=me.top-Te.offsetHeight:me.bottom+Te.offsetHeight<=nn&&(Ct=me.bottom),Yt+Te.offsetWidth>In&&(Yt=In-Te.offsetWidth)}Te.style.top=Ct+"px",Te.style.left=Te.style.right="",dt=="right"?(Yt=vt.sizer.clientWidth-Te.offsetWidth,Te.style.right="0px"):(dt=="left"?Yt=0:dt=="middle"&&(Yt=(vt.sizer.clientWidth-Te.offsetWidth)/2),Te.style.left=Yt+"px"),Ze&&fc(this,{left:Yt,top:Ct,right:Yt+Te.offsetWidth,bottom:Ct+Te.offsetHeight})},triggerOnKeyDown:lr(ic),triggerOnKeyPress:lr(ac),triggerOnKeyUp:oc,triggerOnMouseDown:lr(lc),execCommand:function(me){if(Us.hasOwnProperty(me))return Us[me].call(null,this)},triggerElectric:lr(function(me){Nc(this,me)}),findPosH:function(me,Te,Ze,it){var dt=1;Te<0&&(dt=-1,Te=-Te);for(var vt=tn(this.doc,me),Ct=0;Ct<Te&&(vt=Dc(this.doc,vt,dt,Ze,it),!vt.hitSide);++Ct);return vt},moveH:lr(function(me,Te){var Ze=this;this.extendSelectionsBy(function(it){return Ze.display.shift||Ze.doc.extend||it.empty()?Dc(Ze.doc,it.head,me,Te,Ze.options.rtlMoveVisually):me<0?it.from():it.to()},lt)}),deleteH:lr(function(me,Te){var Ze=this.doc.sel,it=this.doc;Ze.somethingSelected()?it.replaceSelection("",null,"+delete"):tl(this,function(dt){var vt=Dc(it,dt.head,me,Te,!1);return me<0?{from:vt,to:dt.head}:{from:dt.head,to:vt}})}),findPosV:function(me,Te,Ze,it){var dt=1,vt=it;Te<0&&(dt=-1,Te=-Te);for(var Ct=tn(this.doc,me),Yt=0;Yt<Te;++Yt){var nn=ya(this,Ct,"div");if(vt==null?vt=nn.left:nn.left=vt,Ct=zc(this,nn,dt,Ze),Ct.hitSide)break}return Ct},moveV:lr(function(me,Te){var Ze=this,it=this.doc,dt=[],vt=!this.display.shift&&!it.extend&&it.sel.somethingSelected();if(it.extendSelectionsBy(function(Yt){if(vt)return me<0?Yt.from():Yt.to();var nn=ya(Ze,Yt.head,"div");Yt.goalColumn!=null&&(nn.left=Yt.goalColumn),dt.push(nn.left);var In=zc(Ze,nn,me,Te);return Te=="page"&&Yt==it.sel.primary()&&Dl(Ze,Ts(Ze,In,"div").top-nn.top),In},lt),dt.length)for(var Ct=0;Ct<it.sel.ranges.length;Ct++)it.sel.ranges[Ct].goalColumn=dt[Ct]}),findWordAt:function(me){var Te=this.doc,Ze=Xt(Te,me.line).text,it=me.ch,dt=me.ch;if(Ze){var vt=this.getHelper(me,"wordChars");(me.sticky=="before"||dt==Ze.length)&&it?--it:++dt;for(var Ct=Ze.charAt(it),Yt=Ye(Ct,vt)?function(nn){return Ye(nn,vt)}:/\s/.test(Ct)?function(nn){return/\s/.test(nn)}:function(nn){return!/\s/.test(nn)&&!Ye(nn)};it>0&&Yt(Ze.charAt(it-1));)--it;for(;dt<Ze.length&&Yt(Ze.charAt(dt));)++dt}return new hn(yt(me.line,it),yt(me.line,dt))},toggleOverwrite:function(me){me!=null&&me==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?He(this.display.cursorDiv,"CodeMirror-overwrite"):Ee(this.display.cursorDiv,"CodeMirror-overwrite"),$t(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Je()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:lr(function(me,Te){Li(this,me,Te)}),getScrollInfo:function(){var me=this.display.scroller;return{left:me.scrollLeft,top:me.scrollTop,height:me.scrollHeight-Aa(this)-this.display.barHeight,width:me.scrollWidth-Aa(this)-this.display.barWidth,clientHeight:Ya(this),clientWidth:Ka(this)}},scrollIntoView:lr(function(me,Te){me==null?(me={from:this.doc.sel.primary().head,to:null},Te==null&&(Te=this.options.cursorScrollMargin)):typeof me=="number"?me={from:yt(me,0),to:null}:me.from==null&&(me={from:me,to:null}),me.to||(me.to=me.from),me.margin=Te||0,me.from.line!=null?Vl(this,me):Ml(this,me.from,me.to,me.margin)}),setSize:lr(function(me,Te){var Ze=this,it=function(vt){return typeof vt=="number"||/^\d+$/.test(String(vt))?vt+"px":vt};me!=null&&(this.display.wrapper.style.width=it(me)),Te!=null&&(this.display.wrapper.style.height=it(Te)),this.options.lineWrapping&&ss(this);var dt=this.display.viewFrom;this.doc.iter(dt,this.display.viewTo,function(vt){if(vt.widgets){for(var Ct=0;Ct<vt.widgets.length;Ct++)if(vt.widgets[Ct].noHScroll){ja(Ze,dt,"widget");break}}++dt}),this.curOp.forceUpdate=!0,$t(this,"refresh",this)}),operation:function(me){return zt(this,me)},startOperation:function(){return ds(this)},endOperation:function(){return zs(this)},refresh:lr(function(){var me=this.display.cachedTextHeight;Sa(this),this.curOp.forceUpdate=!0,gs(this),Li(this,this.doc.scrollLeft,this.doc.scrollTop),ct(this.display),(me==null||Math.abs(me-Ma(this.display))>.5||this.options.lineWrapping)&&Ps(this),$t(this,"refresh",this)}),swapDoc:lr(function(me){var Te=this.doc;return Te.cm=null,this.state.selectingText&&this.state.selectingText(),xi(this,me),gs(this),this.display.input.reset(),Li(this,me.scrollLeft,me.scrollTop),this.curOp.forceScroll=!0,wo(this,"swapDoc",this,Te),Te}),phrase:function(me){var Te=this.options.phrases;return Te&&Object.prototype.hasOwnProperty.call(Te,me)?Te[me]:me},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},cn(a),a.registerHelper=function(me,Te,Ze){ye.hasOwnProperty(me)||(ye[me]=a[me]={_global:[]}),ye[me][Te]=Ze},a.registerGlobalHelper=function(me,Te,Ze,it){a.registerHelper(me,Te,it),ye[me]._global.push({pred:Ze,val:it})}}function Dc(a,z,ye,me,Te){var Ze=z,it=ye,dt=Xt(a,z.line),vt=Te&&a.direction=="rtl"?-ye:ye;function Ct(){var hi=z.line+vt;return hi<a.first||hi>=a.first+a.size?!1:(z=new yt(hi,z.ch,z.sticky),dt=Xt(a,hi))}function Yt(hi){var qr;if(me=="codepoint"){var Si=dt.text.charCodeAt(z.ch+(me>0?0:-1));isNaN(Si)?qr=null:qr=new yt(z.line,Math.max(0,Math.min(dt.text.length,z.ch+ye*(Si>=55296&&Si<56320?2:1))),-ye)}else Te?qr=gc(a.cm,dt,z,ye):qr=jl(dt,z,ye);if(qr==null)if(!hi&&Ct())z=ql(Te,a.cm,dt,z.line,vt);else return!1;else z=qr;return!0}if(me=="char"||me=="codepoint")Yt();else if(me=="column")Yt(!0);else if(me=="word"||me=="group")for(var nn=null,In=me=="group",Cn=a.cm&&a.cm.getHelper(z,"wordChars"),sr=!0;!(ye<0&&!Yt(!sr));sr=!1){var _r=dt.text.charAt(z.ch)||`
|
|
|
`,Fr=Ye(_r,Cn)?"w":In&&_r==`
|
|
|
`?"n":!In||/\s/.test(_r)?null:"p";if(In&&!sr&&!Fr&&(Fr="s"),nn&&nn!=Fr){ye<0&&(ye=1,Yt(),z.sticky="after");break}if(Fr&&(nn=Fr),ye>0&&!Yt(!sr))break}var Qr=oa(a,z,Ze,it,!0);return Ut(Ze,Qr)&&(Qr.hitSide=!0),Qr}function zc(a,z,ye,me){var Te=a.doc,Ze=z.left,it;if(me=="page"){var dt=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),vt=Math.max(dt-.5*Ma(a.display),3);it=(ye>0?z.bottom:z.top)+ye*vt}else me=="line"&&(it=ye>0?z.bottom+3:z.top-3);for(var Ct;Ct=ra(a,Ze,it),!!Ct.outside;){if(ye<0?it<=0:it>=Te.height){Ct.hitSide=!0;break}it+=ye*5}return Ct}var Po=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Po.prototype.init=function(a){var z=this,ye=this,me=ye.cm,Te=ye.div=a.lineDiv;jc(Te,me.options.spellcheck,me.options.autocorrect,me.options.autocapitalize);function Ze(dt){for(var vt=dt.target;vt;vt=vt.parentNode){if(vt==Te)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(vt.className))break}return!1}Ft(Te,"paste",function(dt){!Ze(dt)||It(me,dt)||Pc(dt,me)||ae<=11&&setTimeout(Mr(me,function(){return z.updateFromDOM()}),20)}),Ft(Te,"compositionstart",function(dt){z.composing={data:dt.data,done:!1}}),Ft(Te,"compositionupdate",function(dt){z.composing||(z.composing={data:dt.data,done:!1})}),Ft(Te,"compositionend",function(dt){z.composing&&(dt.data!=z.composing.data&&z.readFromDOMSoon(),z.composing.done=!0)}),Ft(Te,"touchstart",function(){return ye.forceCompositionEnd()}),Ft(Te,"input",function(){z.composing||z.readFromDOMSoon()});function it(dt){if(!(!Ze(dt)||It(me,dt))){if(me.somethingSelected())Sc({lineWise:!1,text:me.getSelections()}),dt.type=="cut"&&me.replaceSelection("",null,"cut");else if(me.options.lineWiseCopyCut){var vt=Bc(me);Sc({lineWise:!0,text:vt.text}),dt.type=="cut"&&me.operation(function(){me.setSelections(vt.ranges,0,Xe),me.replaceSelection("",null,"cut")})}else return;if(dt.clipboardData){dt.clipboardData.clearData();var Ct=Os.text.join(`
|
|
|
`);if(dt.clipboardData.setData("Text",Ct),dt.clipboardData.getData("Text")==Ct){dt.preventDefault();return}}var Yt=Fc(),nn=Yt.firstChild;me.display.lineSpace.insertBefore(Yt,me.display.lineSpace.firstChild),nn.value=Os.text.join(`
|
|
|
`);var In=document.activeElement;Qe(nn),setTimeout(function(){me.display.lineSpace.removeChild(Yt),In.focus(),In==Te&&ye.showPrimarySelection()},50)}}Ft(Te,"copy",it),Ft(Te,"cut",it)},Po.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Po.prototype.prepareSelection=function(){var a=Wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},Po.prototype.showSelection=function(a,z){!a||!this.cm.display.view.length||((a.focus||z)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Po.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Po.prototype.showPrimarySelection=function(){var a=this.getSelection(),z=this.cm,ye=z.doc.sel.primary(),me=ye.from(),Te=ye.to();if(z.display.viewTo==z.display.viewFrom||me.line>=z.display.viewTo||Te.line<z.display.viewFrom){a.removeAllRanges();return}var Ze=_c(z,a.anchorNode,a.anchorOffset),it=_c(z,a.focusNode,a.focusOffset);if(!(Ze&&!Ze.bad&&it&&!it.bad&&Lt(Gn(Ze,it),me)==0&&Lt(Tn(Ze,it),Te)==0)){var dt=z.display.view,vt=me.line>=z.display.viewFrom&&Hc(z,me)||{node:dt[0].measure.map[2],offset:0},Ct=Te.line<z.display.viewTo&&Hc(z,Te);if(!Ct){var Yt=dt[dt.length-1].measure,nn=Yt.maps?Yt.maps[Yt.maps.length-1]:Yt.map;Ct={node:nn[nn.length-1],offset:nn[nn.length-2]-nn[nn.length-3]}}if(!vt||!Ct){a.removeAllRanges();return}var In=a.rangeCount&&a.getRangeAt(0),Cn;try{Cn=Re(vt.node,vt.offset,Ct.offset,Ct.node)}catch(sr){}Cn&&(!y&&z.state.focused?(a.collapse(vt.node,vt.offset),Cn.collapsed||(a.removeAllRanges(),a.addRange(Cn))):(a.removeAllRanges(),a.addRange(Cn)),In&&a.anchorNode==null?a.addRange(In):y&&this.startGracePeriod()),this.rememberSelection()}},Po.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Po.prototype.showMultipleSelections=function(a){De(this.cm.display.cursorDiv,a.cursors),De(this.cm.display.selectionDiv,a.selection)},Po.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Po.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var z=a.getRangeAt(0).commonAncestorContainer;return qe(this.div,z)},Po.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Po.prototype.blur=function(){this.div.blur()},Po.prototype.getField=function(){return this.div},Po.prototype.supportsTouch=function(){return!0},Po.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():zt(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function z(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,z))}this.polling.set(this.cm.options.pollInterval,z)},Po.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Po.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),z=this.cm;if(ce&&ne&&this.cm.display.gutterSpecs.length&&Kc(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ye=_c(z,a.anchorNode,a.anchorOffset),me=_c(z,a.focusNode,a.focusOffset);ye&&me&&zt(z,function(){ni(z.doc,Dn(ye,me),Xe),(ye.bad||me.bad)&&(z.curOp.selectionChanged=!0)})}}},Po.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,z=a.display,ye=a.doc.sel.primary(),me=ye.from(),Te=ye.to();if(me.ch==0&&me.line>a.firstLine()&&(me=yt(me.line-1,Xt(a.doc,me.line-1).length)),Te.ch==Xt(a.doc,Te.line).text.length&&Te.line<a.lastLine()&&(Te=yt(Te.line+1,0)),me.line<z.viewFrom||Te.line>z.viewTo-1)return!1;var Ze,it,dt;me.line==z.viewFrom||(Ze=Yo(a,me.line))==0?(it=Nt(z.view[0].line),dt=z.view[0].node):(it=Nt(z.view[Ze].line),dt=z.view[Ze-1].node.nextSibling);var vt=Yo(a,Te.line),Ct,Yt;if(vt==z.view.length-1?(Ct=z.viewTo-1,Yt=z.lineDiv.lastChild):(Ct=Nt(z.view[vt+1].line)-1,Yt=z.view[vt+1].node.previousSibling),!dt)return!1;for(var nn=a.doc.splitLines(Yc(a,dt,Yt,it,Ct)),In=dn(a.doc,yt(it,0),yt(Ct,Xt(a.doc,Ct).text.length));nn.length>1&&In.length>1;)if(wt(nn)==wt(In))nn.pop(),In.pop(),Ct--;else if(nn[0]==In[0])nn.shift(),In.shift(),it++;else break;for(var Cn=0,sr=0,_r=nn[0],Fr=In[0],Qr=Math.min(_r.length,Fr.length);Cn<Qr&&_r.charCodeAt(Cn)==Fr.charCodeAt(Cn);)++Cn;for(var hi=wt(nn),qr=wt(In),Si=Math.min(hi.length-(nn.length==1?Cn:0),qr.length-(In.length==1?Cn:0));sr<Si&&hi.charCodeAt(hi.length-sr-1)==qr.charCodeAt(qr.length-sr-1);)++sr;if(nn.length==1&&In.length==1&&it==me.line)for(;Cn&&Cn>me.ch&&hi.charCodeAt(hi.length-sr-1)==qr.charCodeAt(qr.length-sr-1);)Cn--,sr++;nn[nn.length-1]=hi.slice(0,hi.length-sr).replace(/^\u200b+/,""),nn[0]=nn[0].slice(Cn).replace(/\u200b+$/,"");var zi=yt(it,Cn),Bi=yt(Ct,In.length?wt(In).length-sr:0);if(nn.length>1||nn[0]||Lt(zi,Bi))return uo(a.doc,nn,zi,Bi,"+input"),!0},Po.prototype.ensurePolled=function(){this.forceCompositionEnd()},Po.prototype.reset=function(){this.forceCompositionEnd()},Po.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Po.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Po.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&zt(this.cm,function(){return Sa(a.cm)})},Po.prototype.setUneditable=function(a){a.contentEditable="false"},Po.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Mr(this.cm,Ac)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Po.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Po.prototype.onContextMenu=function(){},Po.prototype.resetPosition=function(){},Po.prototype.needsContentAttribute=!0;function Hc(a,z){var ye=Ja(a,z.line);if(!ye||ye.hidden)return null;var me=Xt(a.doc,z.line),Te=as(ye,me,z.line),Ze=st(me,a.doc.direction),it="left";if(Ze){var dt=tt(Ze,z.ch);it=dt%2?"right":"left"}var vt=$s(Te.map,z.ch,it);return vt.offset=vt.collapse=="right"?vt.end:vt.start,vt}function Kc(a){for(var z=a;z;z=z.parentNode)if(/CodeMirror-gutter-wrapper/.test(z.className))return!0;return!1}function Hl(a,z){return z&&(a.bad=!0),a}function Yc(a,z,ye,me,Te){var Ze="",it=!1,dt=a.doc.lineSeparator(),vt=!1;function Ct(Cn){return function(sr){return sr.id==Cn}}function Yt(){it&&(Ze+=dt,vt&&(Ze+=dt),it=vt=!1)}function nn(Cn){Cn&&(Yt(),Ze+=Cn)}function In(Cn){if(Cn.nodeType==1){var sr=Cn.getAttribute("cm-text");if(sr){nn(sr);return}var _r=Cn.getAttribute("cm-marker"),Fr;if(_r){var Qr=a.findMarks(yt(me,0),yt(Te+1,0),Ct(+_r));Qr.length&&(Fr=Qr[0].find(0))&&nn(dn(a.doc,Fr.from,Fr.to).join(dt));return}if(Cn.getAttribute("contenteditable")=="false")return;var hi=/^(pre|div|p|li|table|br)$/i.test(Cn.nodeName);if(!/^br$/i.test(Cn.nodeName)&&Cn.textContent.length==0)return;hi&&Yt();for(var qr=0;qr<Cn.childNodes.length;qr++)In(Cn.childNodes[qr]);/^(pre|p)$/i.test(Cn.nodeName)&&(vt=!0),hi&&(it=!0)}else Cn.nodeType==3&&nn(Cn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;In(z),z!=ye;)z=z.nextSibling,vt=!1;return Ze}function _c(a,z,ye){var me;if(z==a.display.lineDiv){if(me=a.display.lineDiv.childNodes[ye],!me)return Hl(a.clipPos(yt(a.display.viewTo-1)),!0);z=null,ye=0}else for(me=z;;me=me.parentNode){if(!me||me==a.display.lineDiv)return null;if(me.parentNode&&me.parentNode==a.display.lineDiv)break}for(var Te=0;Te<a.display.view.length;Te++){var Ze=a.display.view[Te];if(Ze.node==me)return Xc(Ze,z,ye)}}function Xc(a,z,ye){var me=a.text.firstChild,Te=!1;if(!z||!qe(me,z))return Hl(yt(Nt(a.line),0),!0);if(z==me&&(Te=!0,z=me.childNodes[ye],ye=0,!z)){var Ze=a.rest?wt(a.rest):a.line;return Hl(yt(Nt(Ze),Ze.text.length),Te)}var it=z.nodeType==3?z:null,dt=z;for(!it&&z.childNodes.length==1&&z.firstChild.nodeType==3&&(it=z.firstChild,ye&&(ye=it.nodeValue.length));dt.parentNode!=me;)dt=dt.parentNode;var vt=a.measure,Ct=vt.maps;function Yt(Fr,Qr,hi){for(var qr=-1;qr<(Ct?Ct.length:0);qr++)for(var Si=qr<0?vt.map:Ct[qr],zi=0;zi<Si.length;zi+=3){var Bi=Si[zi+2];if(Bi==Fr||Bi==Qr){var co=Nt(qr<0?a.line:a.rest[qr]),zo=Si[zi]+hi;return(hi<0||Bi!=Fr)&&(zo=Si[zi+(hi?1:0)]),yt(co,zo)}}}var nn=Yt(it,dt,ye);if(nn)return Hl(nn,Te);for(var In=dt.nextSibling,Cn=it?it.nodeValue.length-ye:0;In;In=In.nextSibling){if(nn=Yt(In,In.firstChild,0),nn)return Hl(yt(nn.line,nn.ch-Cn),Te);Cn+=In.textContent.length}for(var sr=dt.previousSibling,_r=ye;sr;sr=sr.previousSibling){if(nn=Yt(sr,sr.firstChild,-1),nn)return Hl(yt(nn.line,nn.ch+_r),Te);_r+=sr.textContent.length}}var fa=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new Ue,this.hasSelection=!1,this.composing=null};fa.prototype.init=function(a){var z=this,ye=this,me=this.cm;this.createField(a);var Te=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),re&&(Te.style.width="0px"),Ft(Te,"input",function(){ue&&ae>=9&&z.hasSelection&&(z.hasSelection=null),ye.poll()}),Ft(Te,"paste",function(it){It(me,it)||Pc(it,me)||(me.state.pasteIncoming=+new Date,ye.fastPoll())});function Ze(it){if(!It(me,it)){if(me.somethingSelected())Sc({lineWise:!1,text:me.getSelections()});else if(me.options.lineWiseCopyCut){var dt=Bc(me);Sc({lineWise:!0,text:dt.text}),it.type=="cut"?me.setSelections(dt.ranges,null,Xe):(ye.prevInput="",Te.value=dt.text.join(`
|
|
|
`),Qe(Te))}else return;it.type=="cut"&&(me.state.cutIncoming=+new Date)}}Ft(Te,"cut",Ze),Ft(Te,"copy",Ze),Ft(a.scroller,"paste",function(it){if(!(ca(a,it)||It(me,it))){if(!Te.dispatchEvent){me.state.pasteIncoming=+new Date,ye.focus();return}var dt=new Event("paste");dt.clipboardData=it.clipboardData,Te.dispatchEvent(dt)}}),Ft(a.lineSpace,"selectstart",function(it){ca(a,it)||Sn(it)}),Ft(Te,"compositionstart",function(){var it=me.getCursor("from");ye.composing&&ye.composing.range.clear(),ye.composing={start:it,range:me.markText(it,me.getCursor("to"),{className:"CodeMirror-composing"})}}),Ft(Te,"compositionend",function(){ye.composing&&(ye.poll(),ye.composing.range.clear(),ye.composing=null)})},fa.prototype.createField=function(a){this.wrapper=Fc(),this.textarea=this.wrapper.firstChild},fa.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},fa.prototype.prepareSelection=function(){var a=this.cm,z=a.display,ye=a.doc,me=Wl(a);if(a.options.moveInputWithCursor){var Te=ya(a,ye.sel.primary().head,"div"),Ze=z.wrapper.getBoundingClientRect(),it=z.lineDiv.getBoundingClientRect();me.teTop=Math.max(0,Math.min(z.wrapper.clientHeight-10,Te.top+it.top-Ze.top)),me.teLeft=Math.max(0,Math.min(z.wrapper.clientWidth-10,Te.left+it.left-Ze.left))}return me},fa.prototype.showSelection=function(a){var z=this.cm,ye=z.display;De(ye.cursorDiv,a.cursors),De(ye.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},fa.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var z=this.cm;if(z.somethingSelected()){this.prevInput="";var ye=z.getSelection();this.textarea.value=ye,z.state.focused&&Qe(this.textarea),ue&&ae>=9&&(this.hasSelection=ye)}else a||(this.prevInput=this.textarea.value="",ue&&ae>=9&&(this.hasSelection=null))}},fa.prototype.getField=function(){return this.textarea},fa.prototype.supportsTouch=function(){return!1},fa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!le||Je()!=this.textarea))try{this.textarea.focus()}catch(a){}},fa.prototype.blur=function(){this.textarea.blur()},fa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},fa.prototype.receivedFocus=function(){this.slowPoll()},fa.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},fa.prototype.fastPoll=function(){var a=!1,z=this;z.pollingFast=!0;function ye(){var me=z.poll();!me&&!a?(a=!0,z.polling.set(60,ye)):(z.pollingFast=!1,z.slowPoll())}z.polling.set(20,ye)},fa.prototype.poll=function(){var a=this,z=this.cm,ye=this.textarea,me=this.prevInput;if(this.contextMenuPending||!z.state.focused||qn(ye)&&!me&&!this.composing||z.isReadOnly()||z.options.disableInput||z.state.keySeq)return!1;var Te=ye.value;if(Te==me&&!z.somethingSelected())return!1;if(ue&&ae>=9&&this.hasSelection===Te||ve&&/[\uf700-\uf7ff]/.test(Te))return z.display.input.reset(),!1;if(z.doc.sel==z.display.selForContextMenu){var Ze=Te.charCodeAt(0);if(Ze==8203&&!me&&(me="\u200B"),Ze==8666)return this.reset(),this.cm.execCommand("undo")}for(var it=0,dt=Math.min(me.length,Te.length);it<dt&&me.charCodeAt(it)==Te.charCodeAt(it);)++it;return zt(z,function(){Ac(z,Te.slice(it),me.length-it,null,a.composing?"*compose":null),Te.length>1e3||Te.indexOf(`
|
|
|
`)>-1?ye.value=a.prevInput="":a.prevInput=Te,a.composing&&(a.composing.range.clear(),a.composing.range=z.markText(a.composing.start,z.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},fa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},fa.prototype.onKeyPress=function(){ue&&ae>=9&&(this.hasSelection=null),this.fastPoll()},fa.prototype.onContextMenu=function(a){var z=this,ye=z.cm,me=ye.display,Te=z.textarea;z.contextMenuPending&&z.contextMenuPending();var Ze=us(ye,a),it=me.scroller.scrollTop;if(!Ze||x)return;var dt=ye.options.resetSelectionOnContextMenu;dt&&ye.doc.sel.contains(Ze)==-1&&Mr(ye,ni)(ye.doc,Dn(Ze),Xe);var vt=Te.style.cssText,Ct=z.wrapper.style.cssText,Yt=z.wrapper.offsetParent.getBoundingClientRect();z.wrapper.style.cssText="position: static",Te.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-Yt.top-5)+"px; left: "+(a.clientX-Yt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(ue?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var nn;se&&(nn=window.scrollY),me.input.focus(),se&&window.scrollTo(null,nn),me.input.reset(),ye.somethingSelected()||(Te.value=z.prevInput=" "),z.contextMenuPending=Cn,me.selForContextMenu=ye.doc.sel,clearTimeout(me.detectingSelectAll);function In(){if(Te.selectionStart!=null){var _r=ye.somethingSelected(),Fr="\u200B"+(_r?Te.value:"");Te.value="\u21DA",Te.value=Fr,z.prevInput=_r?"":"\u200B",Te.selectionStart=1,Te.selectionEnd=Fr.length,me.selForContextMenu=ye.doc.sel}}function Cn(){if(z.contextMenuPending==Cn&&(z.contextMenuPending=!1,z.wrapper.style.cssText=Ct,Te.style.cssText=vt,ue&&ae<9&&me.scrollbars.setScrollTop(me.scroller.scrollTop=it),Te.selectionStart!=null)){(!ue||ue&&ae<9)&&In();var _r=0,Fr=function(){me.selForContextMenu==ye.doc.sel&&Te.selectionStart==0&&Te.selectionEnd>0&&z.prevInput=="\u200B"?Mr(ye,Di)(ye):_r++<10?me.detectingSelectAll=setTimeout(Fr,500):(me.selForContextMenu=null,me.input.reset())};me.detectingSelectAll=setTimeout(Fr,200)}}if(ue&&ae>=9&&In(),he){At(a);var sr=function(){qt(window,"mouseup",sr),setTimeout(Cn,20)};Ft(window,"mouseup",sr)}else setTimeout(Cn,50)},fa.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},fa.prototype.setUneditable=function(){},fa.prototype.needsContentAttribute=!1;function Jc(a,z){if(z=z?ht(z):{},z.value=a.value,!z.tabindex&&a.tabIndex&&(z.tabindex=a.tabIndex),!z.placeholder&&a.placeholder&&(z.placeholder=a.placeholder),z.autofocus==null){var ye=Je();z.autofocus=ye==a||a.getAttribute("autofocus")!=null&&ye==document.body}function me(){a.value=dt.getValue()}var Te;if(a.form&&(Ft(a.form,"submit",me),!z.leaveSubmitMethodAlone)){var Ze=a.form;Te=Ze.submit;try{var it=Ze.submit=function(){me(),Ze.submit=Te,Ze.submit(),Ze.submit=it}}catch(vt){}}z.finishInit=function(vt){vt.save=me,vt.getTextArea=function(){return a},vt.toTextArea=function(){vt.toTextArea=isNaN,me(),a.parentNode.removeChild(vt.getWrapperElement()),a.style.display="",a.form&&(qt(a.form,"submit",me),!z.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=Te))}},a.style.display="none";var dt=qo(function(vt){return a.parentNode.insertBefore(vt,a.nextSibling)},z);return dt}function Qc(a){a.off=qt,a.on=Ft,a.wheelEventPixels=an,a.Doc=Oo,a.splitLines=Mn,a.countColumn=Ge,a.findColumn=kt,a.isWordChar=Be,a.Pass=rt,a.signal=$t,a.Line=Hi,a.changeEnd=Pn,a.scrollbarModel=hc,a.Pos=yt,a.cmpPos=Lt,a.modes=dr,a.mimeModes=On,a.resolveMode=yn,a.getMode=Ne,a.modeExtensions=Ve,a.extendMode=nt,a.copyState=mt,a.startState=Vt,a.innerMode=_t,a.commands=Us,a.keyMap=da,a.keyName=el,a.isModifierKey=Jl,a.lookupKey=ll,a.normalizeKeyMap=wa,a.StringStream=Jt,a.SharedTextMarker=Mo,a.TextMarker=za,a.LineWidget=_o,a.e_preventDefault=Sn,a.e_stopPropagation=An,a.e_stop=At,a.addClass=He,a.contains=qe,a.rmClass=Ee,a.keyNames=oo}Zc(qo),Vc(qo);var qc="iter insert remove copy getEditor constructor".split(" ");for(var Cc in Oo.prototype)Oo.prototype.hasOwnProperty(Cc)&&Ke(qc,Cc)<0&&(qo.prototype[Cc]=function(a){return function(){return a.apply(this.doc,arguments)}}(Oo.prototype[Cc]));return cn(Oo),qo.inputStyles={textarea:fa,contenteditable:Po},qo.defineMode=function(a){!qo.defaults.mode&&a!="null"&&(qo.defaults.mode=a),$n.apply(this,arguments)},qo.defineMIME=Kn,qo.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),qo.defineMIME("text/plain","null"),qo.defineExtension=function(a,z){qo.prototype[a]=z},qo.defineDocExtension=function(a,z){Oo.prototype[a]=z},qo.fromTextArea=Jc,Qc(qo),qo.version="5.58.2",qo})},25419:function(rn,Tt,oe){(function(y){y(oe(89780),oe(15525),oe(98101))})(function(y){"use strict";y.defineMode("markdown",function(ie,fe){var de=y.getMode(ie,"text/html"),ue=de.name=="null";function ae(Ge){if(y.findModeByName){var Ue=y.findModeByName(Ge);Ue&&(Ge=Ue.mime||Ue.mimes[0])}var Ke=y.getMode(ie,Ge);return Ke.name=="null"?null:Ke}fe.highlightFormatting===void 0&&(fe.highlightFormatting=!1),fe.maxBlockquoteDepth===void 0&&(fe.maxBlockquoteDepth=0),fe.taskLists===void 0&&(fe.taskLists=!1),fe.strikethrough===void 0&&(fe.strikethrough=!1),fe.emoji===void 0&&(fe.emoji=!1),fe.fencedCodeBlockHighlighting===void 0&&(fe.fencedCodeBlockHighlighting=!0),fe.fencedCodeBlockDefaultMode===void 0&&(fe.fencedCodeBlockDefaultMode="text/plain"),fe.xml===void 0&&(fe.xml=!0),fe.tokenTypeOverrides===void 0&&(fe.tokenTypeOverrides={});var se={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var te in se)se.hasOwnProperty(te)&&fe.tokenTypeOverrides[te]&&(se[te]=fe.tokenTypeOverrides[te]);var ne=/^([*\-_])(?:\s*\1){2,}\s*$/,x=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,b=/^\[(x| )\](?=\s)/i,ee=fe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,E=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,ce=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,le=/^\s*\[[^\]]+?\]:.*$/,ve=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Se=" ";function ge(Ge,Ue,Ke){return Ue.f=Ue.inline=Ke,Ke(Ge,Ue)}function _e(Ge,Ue,Ke){return Ue.f=Ue.block=Ke,Ke(Ge,Ue)}function Ce(Ge){return!Ge||!/\S/.test(Ge.string)}function he(Ge){if(Ge.linkTitle=!1,Ge.linkHref=!1,Ge.linkText=!1,Ge.em=!1,Ge.strong=!1,Ge.strikethrough=!1,Ge.quote=0,Ge.indentedCode=!1,Ge.f==Ee){var Ue=ue;if(!Ue){var Ke=y.innerMode(de,Ge.htmlState);Ue=Ke.mode.name=="xml"&&Ke.state.tagStart===null&&!Ke.state.context&&Ke.state.tokenize.isInText}Ue&&(Ge.f=Fe,Ge.block=be,Ge.htmlState=null)}return Ge.trailingSpace=0,Ge.trailingSpaceNewLine=!1,Ge.prevLine=Ge.thisLine,Ge.thisLine={stream:null},null}function be(Ge,Ue){var Ke=Ge.column()===Ue.indentation,et=Ce(Ue.prevLine.stream),rt=Ue.indentedCode,Xe=Ue.prevLine.hr,ut=Ue.list!==!1,lt=(Ue.listStack[Ue.listStack.length-1]||0)+3;Ue.indentedCode=!1;var kt=Ue.indentation;if(Ue.indentationDiff===null&&(Ue.indentationDiff=Ue.indentation,ut)){for(Ue.list=null;kt<Ue.listStack[Ue.listStack.length-1];)Ue.listStack.pop(),Ue.listStack.length?Ue.indentation=Ue.listStack[Ue.listStack.length-1]:Ue.list=!1;Ue.list!==!1&&(Ue.indentationDiff=kt-Ue.listStack[Ue.listStack.length-1])}var pt=!et&&!Xe&&!Ue.prevLine.header&&(!ut||!rt)&&!Ue.prevLine.fencedCodeEnd,Mt=(Ue.list===!1||Xe||et)&&Ue.indentation<=lt&&Ge.match(ne),wt=null;if(Ue.indentationDiff>=4&&(rt||Ue.prevLine.fencedCodeEnd||Ue.prevLine.header||et))return Ge.skipToEnd(),Ue.indentedCode=!0,se.code;if(Ge.eatSpace())return null;if(Ke&&Ue.indentation<=lt&&(wt=Ge.match(ee))&&wt[1].length<=6)return Ue.quote=0,Ue.header=wt[1].length,Ue.thisLine.header=!0,fe.highlightFormatting&&(Ue.formatting="header"),Ue.f=Ue.inline,De(Ue);if(Ue.indentation<=lt&&Ge.eat(">"))return Ue.quote=Ke?1:Ue.quote+1,fe.highlightFormatting&&(Ue.formatting="quote"),Ge.eatSpace(),De(Ue);if(!Mt&&!Ue.setext&&Ke&&Ue.indentation<=lt&&(wt=Ge.match(x))){var bt=wt[1]?"ol":"ul";return Ue.indentation=kt+Ge.current().length,Ue.list=!0,Ue.quote=0,Ue.listStack.push(Ue.indentation),Ue.em=!1,Ue.strong=!1,Ue.code=!1,Ue.strikethrough=!1,fe.taskLists&&Ge.match(b,!1)&&(Ue.taskList=!0),Ue.f=Ue.inline,fe.highlightFormatting&&(Ue.formatting=["list","list-"+bt]),De(Ue)}else{if(Ke&&Ue.indentation<=lt&&(wt=Ge.match(ce,!0)))return Ue.quote=0,Ue.fencedEndRE=new RegExp(wt[1]+"+ *$"),Ue.localMode=fe.fencedCodeBlockHighlighting&&ae(wt[2]||fe.fencedCodeBlockDefaultMode),Ue.localMode&&(Ue.localState=y.startState(Ue.localMode)),Ue.f=Ue.block=Ae,fe.highlightFormatting&&(Ue.formatting="code-block"),Ue.code=-1,De(Ue);if(Ue.setext||(!pt||!ut)&&!Ue.quote&&Ue.list===!1&&!Ue.code&&!Mt&&!le.test(Ge.string)&&(wt=Ge.lookAhead(1))&&(wt=wt.match(E)))return Ue.setext?(Ue.header=Ue.setext,Ue.setext=0,Ge.skipToEnd(),fe.highlightFormatting&&(Ue.formatting="header")):(Ue.header=wt[0].charAt(0)=="="?1:2,Ue.setext=Ue.header),Ue.thisLine.header=!0,Ue.f=Ue.inline,De(Ue);if(Mt)return Ge.skipToEnd(),Ue.hr=!0,Ue.thisLine.hr=!0,se.hr;if(Ge.peek()==="[")return ge(Ge,Ue,ze)}return ge(Ge,Ue,Ue.inline)}function Ee(Ge,Ue){var Ke=de.token(Ge,Ue.htmlState);if(!ue){var et=y.innerMode(de,Ue.htmlState);(et.mode.name=="xml"&&et.state.tagStart===null&&!et.state.context&&et.state.tokenize.isInText||Ue.md_inside&&Ge.current().indexOf(">")>-1)&&(Ue.f=Fe,Ue.block=be,Ue.htmlState=null)}return Ke}function Ae(Ge,Ue){var Ke=Ue.listStack[Ue.listStack.length-1]||0,et=Ue.indentation<Ke,rt=Ke+3;if(Ue.fencedEndRE&&Ue.indentation<=rt&&(et||Ge.match(Ue.fencedEndRE))){fe.highlightFormatting&&(Ue.formatting="code-block");var Xe;return et||(Xe=De(Ue)),Ue.localMode=Ue.localState=null,Ue.block=be,Ue.f=Fe,Ue.fencedEndRE=null,Ue.code=0,Ue.thisLine.fencedCodeEnd=!0,et?_e(Ge,Ue,Ue.block):Xe}else return Ue.localMode?Ue.localMode.token(Ge,Ue.localState):(Ge.skipToEnd(),se.code)}function De(Ge){var Ue=[];if(Ge.formatting){Ue.push(se.formatting),typeof Ge.formatting=="string"&&(Ge.formatting=[Ge.formatting]);for(var Ke=0;Ke<Ge.formatting.length;Ke++)Ue.push(se.formatting+"-"+Ge.formatting[Ke]),Ge.formatting[Ke]==="header"&&Ue.push(se.formatting+"-"+Ge.formatting[Ke]+"-"+Ge.header),Ge.formatting[Ke]==="quote"&&(!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Ge.quote?Ue.push(se.formatting+"-"+Ge.formatting[Ke]+"-"+Ge.quote):Ue.push("error"))}if(Ge.taskOpen)return Ue.push("meta"),Ue.length?Ue.join(" "):null;if(Ge.taskClosed)return Ue.push("property"),Ue.length?Ue.join(" "):null;if(Ge.linkHref?Ue.push(se.linkHref,"url"):(Ge.strong&&Ue.push(se.strong),Ge.em&&Ue.push(se.em),Ge.strikethrough&&Ue.push(se.strikethrough),Ge.emoji&&Ue.push(se.emoji),Ge.linkText&&Ue.push(se.linkText),Ge.code&&Ue.push(se.code),Ge.image&&Ue.push(se.image),Ge.imageAltText&&Ue.push(se.imageAltText,"link"),Ge.imageMarker&&Ue.push(se.imageMarker)),Ge.header&&Ue.push(se.header,se.header+"-"+Ge.header),Ge.quote&&(Ue.push(se.quote),!fe.maxBlockquoteDepth||fe.maxBlockquoteDepth>=Ge.quote?Ue.push(se.quote+"-"+Ge.quote):Ue.push(se.quote+"-"+fe.maxBlockquoteDepth)),Ge.list!==!1){var et=(Ge.listStack.length-1)%3;et?et===1?Ue.push(se.list2):Ue.push(se.list3):Ue.push(se.list1)}return Ge.trailingSpaceNewLine?Ue.push("trailing-space-new-line"):Ge.trailingSpace&&Ue.push("trailing-space-"+(Ge.trailingSpace%2?"a":"b")),Ue.length?Ue.join(" "):null}function je(Ge,Ue){if(Ge.match(re,!0))return De(Ue)}function Fe(Ge,Ue){var Ke=Ue.text(Ge,Ue);if(typeof Ke!="undefined")return Ke;if(Ue.list)return Ue.list=null,De(Ue);if(Ue.taskList){var et=Ge.match(b,!0)[1]===" ";return et?Ue.taskOpen=!0:Ue.taskClosed=!0,fe.highlightFormatting&&(Ue.formatting="task"),Ue.taskList=!1,De(Ue)}if(Ue.taskOpen=!1,Ue.taskClosed=!1,Ue.header&&Ge.match(/^#+$/,!0))return fe.highlightFormatting&&(Ue.formatting="header"),De(Ue);var rt=Ge.next();if(Ue.linkTitle){Ue.linkTitle=!1;var Xe=rt;rt==="("&&(Xe=")"),Xe=(Xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ut="^\\s*(?:[^"+Xe+"\\\\]+|\\\\\\\\|\\\\.)"+Xe;if(Ge.match(new RegExp(ut),!0))return se.linkHref}if(rt==="`"){var lt=Ue.formatting;fe.highlightFormatting&&(Ue.formatting="code"),Ge.eatWhile("`");var kt=Ge.current().length;if(Ue.code==0&&(!Ue.quote||kt==1))return Ue.code=kt,De(Ue);if(kt==Ue.code){var pt=De(Ue);return Ue.code=0,pt}else return Ue.formatting=lt,De(Ue)}else if(Ue.code)return De(Ue);if(rt==="\\"&&(Ge.next(),fe.highlightFormatting)){var Mt=De(Ue),wt=se.formatting+"-escape";return Mt?Mt+" "+wt:wt}if(rt==="!"&&Ge.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ue.imageMarker=!0,Ue.image=!0,fe.highlightFormatting&&(Ue.formatting="image"),De(Ue);if(rt==="["&&Ue.imageMarker&&Ge.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ue.imageMarker=!1,Ue.imageAltText=!0,fe.highlightFormatting&&(Ue.formatting="image"),De(Ue);if(rt==="]"&&Ue.imageAltText){fe.highlightFormatting&&(Ue.formatting="image");var Mt=De(Ue);return Ue.imageAltText=!1,Ue.image=!1,Ue.inline=Ue.f=qe,Mt}if(rt==="["&&!Ue.image)return Ue.linkText&&Ge.match(/^.*?\]/)||(Ue.linkText=!0,fe.highlightFormatting&&(Ue.formatting="link")),De(Ue);if(rt==="]"&&Ue.linkText){fe.highlightFormatting&&(Ue.formatting="link");var Mt=De(Ue);return Ue.linkText=!1,Ue.inline=Ue.f=Ge.match(/\(.*?\)| ?\[.*?\]/,!1)?qe:Fe,Mt}if(rt==="<"&&Ge.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ue.f=Ue.inline=Re,fe.highlightFormatting&&(Ue.formatting="link");var Mt=De(Ue);return Mt?Mt+=" ":Mt="",Mt+se.linkInline}if(rt==="<"&&Ge.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ue.f=Ue.inline=Re,fe.highlightFormatting&&(Ue.formatting="link");var Mt=De(Ue);return Mt?Mt+=" ":Mt="",Mt+se.linkEmail}if(fe.xml&&rt==="<"&&Ge.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var bt=Ge.string.indexOf(">",Ge.pos);if(bt!=-1){var gt=Ge.string.substring(Ge.start,bt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(gt)&&(Ue.md_inside=!0)}return Ge.backUp(1),Ue.htmlState=y.startState(de),_e(Ge,Ue,Ee)}if(fe.xml&&rt==="<"&&Ge.match(/^\/\w*?>/))return Ue.md_inside=!1,"tag";if(rt==="*"||rt==="_"){for(var We=1,Ie=Ge.pos==1?" ":Ge.string.charAt(Ge.pos-2);We<3&&Ge.eat(rt);)We++;var xe=Ge.peek()||" ",Be=!/\s/.test(xe)&&(!ve.test(xe)||/\s/.test(Ie)||ve.test(Ie)),Ye=!/\s/.test(Ie)&&(!ve.test(Ie)||/\s/.test(xe)||ve.test(xe)),Pe=null,Le=null;if(We%2&&(!Ue.em&&Be&&(rt==="*"||!Ye||ve.test(Ie))?Pe=!0:Ue.em==rt&&Ye&&(rt==="*"||!Be||ve.test(xe))&&(Pe=!1)),We>1&&(!Ue.strong&&Be&&(rt==="*"||!Ye||ve.test(Ie))?Le=!0:Ue.strong==rt&&Ye&&(rt==="*"||!Be||ve.test(xe))&&(Le=!1)),Le!=null||Pe!=null){fe.highlightFormatting&&(Ue.formatting=Pe==null?"strong":Le==null?"em":"strong em"),Pe===!0&&(Ue.em=rt),Le===!0&&(Ue.strong=rt);var pt=De(Ue);return Pe===!1&&(Ue.em=!1),Le===!1&&(Ue.strong=!1),pt}}else if(rt===" "&&(Ge.eat("*")||Ge.eat("_"))){if(Ge.peek()===" ")return De(Ue);Ge.backUp(1)}if(fe.strikethrough){if(rt==="~"&&Ge.eatWhile(rt)){if(Ue.strikethrough){fe.highlightFormatting&&(Ue.formatting="strikethrough");var pt=De(Ue);return Ue.strikethrough=!1,pt}else if(Ge.match(/^[^\s]/,!1))return Ue.strikethrough=!0,fe.highlightFormatting&&(Ue.formatting="strikethrough"),De(Ue)}else if(rt===" "&&Ge.match(/^~~/,!0)){if(Ge.peek()===" ")return De(Ue);Ge.backUp(2)}}if(fe.emoji&&rt===":"&&Ge.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ue.emoji=!0,fe.highlightFormatting&&(Ue.formatting="emoji");var pe=De(Ue);return Ue.emoji=!1,pe}return rt===" "&&(Ge.match(/^ +$/,!1)?Ue.trailingSpace++:Ue.trailingSpace&&(Ue.trailingSpaceNewLine=!0)),De(Ue)}function Re(Ge,Ue){var Ke=Ge.next();if(Ke===">"){Ue.f=Ue.inline=Fe,fe.highlightFormatting&&(Ue.formatting="link");var et=De(Ue);return et?et+=" ":et="",et+se.linkInline}return Ge.match(/^[^>]+/,!0),se.linkInline}function qe(Ge,Ue){if(Ge.eatSpace())return null;var Ke=Ge.next();return Ke==="("||Ke==="["?(Ue.f=Ue.inline=He(Ke==="("?")":"]"),fe.highlightFormatting&&(Ue.formatting="link-string"),Ue.linkHref=!0,De(Ue)):"error"}var Je={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function He(Ge){return function(Ue,Ke){var et=Ue.next();if(et===Ge){Ke.f=Ke.inline=Fe,fe.highlightFormatting&&(Ke.formatting="link-string");var rt=De(Ke);return Ke.linkHref=!1,rt}return Ue.match(Je[Ge]),Ke.linkHref=!0,De(Ke)}}function ze(Ge,Ue){return Ge.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ue.f=Qe,Ge.next(),fe.highlightFormatting&&(Ue.formatting="link"),Ue.linkText=!0,De(Ue)):ge(Ge,Ue,Fe)}function Qe(Ge,Ue){if(Ge.match(/^\]:/,!0)){Ue.f=Ue.inline=$e,fe.highlightFormatting&&(Ue.formatting="link");var Ke=De(Ue);return Ue.linkText=!1,Ke}return Ge.match(/^([^\]\\]|\\.)+/,!0),se.linkText}function $e(Ge,Ue){return Ge.eatSpace()?null:(Ge.match(/^[^\s]+/,!0),Ge.peek()===void 0?Ue.linkTitle=!0:Ge.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ue.f=Ue.inline=Fe,se.linkHref+" url")}var ht={startState:function(){return{f:be,prevLine:{stream:null},thisLine:{stream:null},block:be,htmlState:null,indentation:0,inline:Fe,text:je,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Ge){return{f:Ge.f,prevLine:Ge.prevLine,thisLine:Ge.thisLine,block:Ge.block,htmlState:Ge.htmlState&&y.copyState(de,Ge.htmlState),indentation:Ge.indentation,localMode:Ge.localMode,localState:Ge.localMode?y.copyState(Ge.localMode,Ge.localState):null,inline:Ge.inline,text:Ge.text,formatting:!1,linkText:Ge.linkText,linkTitle:Ge.linkTitle,linkHref:Ge.linkHref,code:Ge.code,em:Ge.em,strong:Ge.strong,strikethrough:Ge.strikethrough,emoji:Ge.emoji,header:Ge.header,setext:Ge.setext,hr:Ge.hr,taskList:Ge.taskList,list:Ge.list,listStack:Ge.listStack.slice(0),quote:Ge.quote,indentedCode:Ge.indentedCode,trailingSpace:Ge.trailingSpace,trailingSpaceNewLine:Ge.trailingSpaceNewLine,md_inside:Ge.md_inside,fencedEndRE:Ge.fencedEndRE}},token:function(Ge,Ue){if(Ue.formatting=!1,Ge!=Ue.thisLine.stream){if(Ue.header=0,Ue.hr=!1,Ge.match(/^\s*$/,!0))return he(Ue),null;if(Ue.prevLine=Ue.thisLine,Ue.thisLine={stream:Ge},Ue.taskList=!1,Ue.trailingSpace=0,Ue.trailingSpaceNewLine=!1,!Ue.localState&&(Ue.f=Ue.block,Ue.f!=Ee)){var Ke=Ge.match(/^\s*/,!0)[0].replace(/\t/g,Se).length;if(Ue.indentation=Ke,Ue.indentationDiff=null,Ke>0)return null}}return Ue.f(Ge,Ue)},innerMode:function(Ge){return Ge.block==Ee?{state:Ge.htmlState,mode:de}:Ge.localState?{state:Ge.localState,mode:Ge.localMode}:{state:Ge,mode:ht}},indent:function(Ge,Ue,Ke){return Ge.block==Ee&&de.indent?de.indent(Ge.htmlState,Ue,Ke):Ge.localState&&Ge.localMode.indent?Ge.localMode.indent(Ge.localState,Ue,Ke):y.Pass},blankLine:he,getType:De,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ht},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},98101:function(rn,Tt,oe){(function(y){y(oe(89780))})(function(y){"use strict";y.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ie=0;ie<y.modeInfo.length;ie++){var fe=y.modeInfo[ie];fe.mimes&&(fe.mime=fe.mimes[0])}y.findModeByMIME=function(de){de=de.toLowerCase();for(var ue=0;ue<y.modeInfo.length;ue++){var ae=y.modeInfo[ue];if(ae.mime==de)return ae;if(ae.mimes){for(var se=0;se<ae.mimes.length;se++)if(ae.mimes[se]==de)return ae}}if(/\+xml$/.test(de))return y.findModeByMIME("application/xml");if(/\+json$/.test(de))return y.findModeByMIME("application/json")},y.findModeByExtension=function(de){de=de.toLowerCase();for(var ue=0;ue<y.modeInfo.length;ue++){var ae=y.modeInfo[ue];if(ae.ext){for(var se=0;se<ae.ext.length;se++)if(ae.ext[se]==de)return ae}}},y.findModeByFileName=function(de){for(var ue=0;ue<y.modeInfo.length;ue++){var ae=y.modeInfo[ue];if(ae.file&&ae.file.test(de))return ae}var se=de.lastIndexOf("."),te=se>-1&&de.substring(se+1,de.length);if(te)return y.findModeByExtension(te)},y.findModeByName=function(de){de=de.toLowerCase();for(var ue=0;ue<y.modeInfo.length;ue++){var ae=y.modeInfo[ue];if(ae.name.toLowerCase()==de)return ae;if(ae.alias){for(var se=0;se<ae.alias.length;se++)if(ae.alias[se].toLowerCase()==de)return ae}}}})},67549:function(rn,Tt,oe){(function(y){y(oe(89780))})(function(y){"use strict";y.defineMode("stex",function(ie,fe){"use strict";function de(re,ce){re.cmdState.push(ce)}function ue(re){return re.cmdState.length>0?re.cmdState[re.cmdState.length-1]:null}function ae(re){var ce=re.cmdState.pop();ce&&ce.closeBracket()}function se(re){for(var ce=re.cmdState,le=ce.length-1;le>=0;le--){var ve=ce[le];if(ve.name!="DEFAULT")return ve}return{styleIdentifier:function(){return null}}}function te(re,ce,le){return function(){this.name=re,this.bracketNo=0,this.style=ce,this.styles=le,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var ne={};ne.importmodule=te("importmodule","tag",["string","builtin"]),ne.documentclass=te("documentclass","tag",["","atom"]),ne.usepackage=te("usepackage","tag",["atom"]),ne.begin=te("begin","tag",["atom"]),ne.end=te("end","tag",["atom"]),ne.label=te("label","tag",["atom"]),ne.ref=te("ref","tag",["atom"]),ne.eqref=te("eqref","tag",["atom"]),ne.cite=te("cite","tag",["atom"]),ne.bibitem=te("bibitem","tag",["atom"]),ne.Bibitem=te("Bibitem","tag",["atom"]),ne.RBibitem=te("RBibitem","tag",["atom"]),ne.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function x(re,ce){re.f=ce}function b(re,ce){var le;if(re.match(/^\\[a-zA-Z@]+/)){var ve=re.current().slice(1);return le=ne.hasOwnProperty(ve)?ne[ve]:ne.DEFAULT,le=new le,de(ce,le),x(ce,E),le.style}if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/\\]/))return"tag";if(re.match("\\["))return x(ce,function(ge,_e){return ee(ge,_e,"\\]")}),"keyword";if(re.match("\\("))return x(ce,function(ge,_e){return ee(ge,_e,"\\)")}),"keyword";if(re.match("$$"))return x(ce,function(ge,_e){return ee(ge,_e,"$$")}),"keyword";if(re.match("$"))return x(ce,function(ge,_e){return ee(ge,_e,"$")}),"keyword";var Se=re.next();if(Se=="%")return re.skipToEnd(),"comment";if(Se=="}"||Se=="]"){if(le=ue(ce),le)le.closeBracket(Se),x(ce,E);else return"error";return"bracket"}else return Se=="{"||Se=="["?(le=ne.DEFAULT,le=new le,de(ce,le),"bracket"):/\d/.test(Se)?(re.eatWhile(/[\w.%]/),"atom"):(re.eatWhile(/[\w\-_]/),le=se(ce),le.name=="begin"&&(le.argument=re.current()),le.styleIdentifier())}function ee(re,ce,le){if(re.eatSpace())return null;if(le&&re.match(le))return x(ce,b),"keyword";if(re.match(/^\\[a-zA-Z@]+/))return"tag";if(re.match(/^[a-zA-Z]+/))return"variable-2";if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/]/)||re.match(/^[\^_&]/))return"tag";if(re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ve=re.next();return ve=="{"||ve=="}"||ve=="["||ve=="]"||ve=="("||ve==")"?"bracket":ve=="%"?(re.skipToEnd(),"comment"):"error"}function E(re,ce){var le=re.peek(),ve;return le=="{"||le=="["?(ve=ue(ce),ve.openBracket(le),re.eat(le),x(ce,b),"bracket"):/[ \t\r]/.test(le)?(re.eat(le),null):(x(ce,b),ae(ce),b(re,ce))}return{startState:function(){var re=fe.inMathMode?function(ce,le){return ee(ce,le)}:b;return{cmdState:[],f:re}},copyState:function(re){return{cmdState:re.cmdState.slice(),f:re.f}},token:function(re,ce){return ce.f(re,ce)},blankLine:function(re){re.f=b,re.cmdState.length=0},lineComment:"%"}}),y.defineMIME("text/x-stex","stex"),y.defineMIME("text/x-latex","stex")})},15525:function(rn,Tt,oe){(function(y){y(oe(89780))})(function(y){"use strict";var ie={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},fe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};y.defineMode("xml",function(de,ue){var ae=de.indentUnit,se={},te=ue.htmlMode?ie:fe;for(var ne in te)se[ne]=te[ne];for(var ne in ue)se[ne]=ue[ne];var x,b;function ee(Re,qe){function Je(Qe){return qe.tokenize=Qe,Qe(Re,qe)}var He=Re.next();if(He=="<")return Re.eat("!")?Re.eat("[")?Re.match("CDATA[")?Je(ce("atom","]]>")):null:Re.match("--")?Je(ce("comment","-->")):Re.match("DOCTYPE",!0,!0)?(Re.eatWhile(/[\w\._\-]/),Je(le(1))):null:Re.eat("?")?(Re.eatWhile(/[\w\._\-]/),qe.tokenize=ce("meta","?>"),"meta"):(x=Re.eat("/")?"closeTag":"openTag",qe.tokenize=E,"tag bracket");if(He=="&"){var ze;return Re.eat("#")?Re.eat("x")?ze=Re.eatWhile(/[a-fA-F\d]/)&&Re.eat(";"):ze=Re.eatWhile(/[\d]/)&&Re.eat(";"):ze=Re.eatWhile(/[\w\.\-:]/)&&Re.eat(";"),ze?"atom":"error"}else return Re.eatWhile(/[^&<]/),null}ee.isInText=!0;function E(Re,qe){var Je=Re.next();if(Je==">"||Je=="/"&&Re.eat(">"))return qe.tokenize=ee,x=Je==">"?"endTag":"selfcloseTag","tag bracket";if(Je=="=")return x="equals",null;if(Je=="<"){qe.tokenize=ee,qe.state=_e,qe.tagName=qe.tagStart=null;var He=qe.tokenize(Re,qe);return He?He+" tag error":"tag error"}else return/[\'\"]/.test(Je)?(qe.tokenize=re(Je),qe.stringStartCol=Re.column(),qe.tokenize(Re,qe)):(Re.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(Re){var qe=function(Je,He){for(;!Je.eol();)if(Je.next()==Re){He.tokenize=E;break}return"string"};return qe.isInAttribute=!0,qe}function ce(Re,qe){return function(Je,He){for(;!Je.eol();){if(Je.match(qe)){He.tokenize=ee;break}Je.next()}return Re}}function le(Re){return function(qe,Je){for(var He;(He=qe.next())!=null;){if(He=="<")return Je.tokenize=le(Re+1),Je.tokenize(qe,Je);if(He==">")if(Re==1){Je.tokenize=ee;break}else return Je.tokenize=le(Re-1),Je.tokenize(qe,Je)}return"meta"}}function ve(Re,qe,Je){this.prev=Re.context,this.tagName=qe,this.indent=Re.indented,this.startOfLine=Je,(se.doNotIndent.hasOwnProperty(qe)||Re.context&&Re.context.noIndent)&&(this.noIndent=!0)}function Se(Re){Re.context&&(Re.context=Re.context.prev)}function ge(Re,qe){for(var Je;;){if(!Re.context||(Je=Re.context.tagName,!se.contextGrabbers.hasOwnProperty(Je)||!se.contextGrabbers[Je].hasOwnProperty(qe)))return;Se(Re)}}function _e(Re,qe,Je){return Re=="openTag"?(Je.tagStart=qe.column(),Ce):Re=="closeTag"?he:_e}function Ce(Re,qe,Je){return Re=="word"?(Je.tagName=qe.current(),b="tag",Ae):se.allowMissingTagName&&Re=="endTag"?(b="tag bracket",Ae(Re,qe,Je)):(b="error",Ce)}function he(Re,qe,Je){if(Re=="word"){var He=qe.current();return Je.context&&Je.context.tagName!=He&&se.implicitlyClosed.hasOwnProperty(Je.context.tagName)&&Se(Je),Je.context&&Je.context.tagName==He||se.matchClosing===!1?(b="tag",be):(b="tag error",Ee)}else return se.allowMissingTagName&&Re=="endTag"?(b="tag bracket",be(Re,qe,Je)):(b="error",Ee)}function be(Re,qe,Je){return Re!="endTag"?(b="error",be):(Se(Je),_e)}function Ee(Re,qe,Je){return b="error",be(Re,qe,Je)}function Ae(Re,qe,Je){if(Re=="word")return b="attribute",De;if(Re=="endTag"||Re=="selfcloseTag"){var He=Je.tagName,ze=Je.tagStart;return Je.tagName=Je.tagStart=null,Re=="selfcloseTag"||se.autoSelfClosers.hasOwnProperty(He)?ge(Je,He):(ge(Je,He),Je.context=new ve(Je,He,ze==Je.indented)),_e}return b="error",Ae}function De(Re,qe,Je){return Re=="equals"?je:(se.allowMissing||(b="error"),Ae(Re,qe,Je))}function je(Re,qe,Je){return Re=="string"?Fe:Re=="word"&&se.allowUnquoted?(b="string",Ae):(b="error",Ae(Re,qe,Je))}function Fe(Re,qe,Je){return Re=="string"?Fe:Ae(Re,qe,Je)}return{startState:function(Re){var qe={tokenize:ee,state:_e,indented:Re||0,tagName:null,tagStart:null,context:null};return Re!=null&&(qe.baseIndent=Re),qe},token:function(Re,qe){if(!qe.tagName&&Re.sol()&&(qe.indented=Re.indentation()),Re.eatSpace())return null;x=null;var Je=qe.tokenize(Re,qe);return(Je||x)&&Je!="comment"&&(b=null,qe.state=qe.state(x||Je,Re,qe),b&&(Je=b=="error"?Je+" error":b)),Je},indent:function(Re,qe,Je){var He=Re.context;if(Re.tokenize.isInAttribute)return Re.tagStart==Re.indented?Re.stringStartCol+1:Re.indented+ae;if(He&&He.noIndent)return y.Pass;if(Re.tokenize!=E&&Re.tokenize!=ee)return Je?Je.match(/^(\s*)/)[0].length:0;if(Re.tagName)return se.multilineTagIndentPastTag!==!1?Re.tagStart+Re.tagName.length+2:Re.tagStart+ae*(se.multilineTagIndentFactor||1);if(se.alignCDATA&&/<!\[CDATA\[/.test(qe))return 0;var ze=qe&&/^<(\/)?([\w_:\.-]*)/.exec(qe);if(ze&&ze[1])for(;He;)if(He.tagName==ze[2]){He=He.prev;break}else if(se.implicitlyClosed.hasOwnProperty(He.tagName))He=He.prev;else break;else if(ze)for(;He;){var Qe=se.contextGrabbers[He.tagName];if(Qe&&Qe.hasOwnProperty(ze[2]))He=He.prev;else break}for(;He&&He.prev&&!He.startOfLine;)He=He.prev;return He?He.indent+ae:Re.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:se.htmlMode?"html":"xml",helperType:se.htmlMode?"html":"xml",skipAttribute:function(Re){Re.state==je&&(Re.state=Ae)},xmlCurrentTag:function(Re){return Re.tagName?{name:Re.tagName,close:Re.type=="closeTag"}:null},xmlCurrentContext:function(Re){for(var qe=[],Je=Re.context;Je;Je=Je.prev)Je.tagName&&qe.push(Je.tagName);return qe.reverse()}}}),y.defineMIME("text/xml","xml"),y.defineMIME("application/xml","xml"),y.mimeModes.hasOwnProperty("text/html")||y.defineMIME("text/html",{name:"xml",htmlMode:!0})})},3867:function(rn,Tt,oe){var y=oe(97671);(function(ie,fe){rn.exports=fe()})(this,function(){"use strict";function ie(we){var ke=typeof we;return we!==null&&(ke==="object"||ke==="function")}function fe(we){return typeof we=="function"}var de=void 0;Array.isArray?de=Array.isArray:de=function(we){return Object.prototype.toString.call(we)==="[object Array]"};var ue=de,ae=0,se=void 0,te=void 0,ne=function(ke,Me){he[ae]=ke,he[ae+1]=Me,ae+=2,ae===2&&(te?te(be):Ae())};function x(we){te=we}function b(we){ne=we}var ee=typeof window!="undefined"?window:void 0,E=ee||{},re=E.MutationObserver||E.WebKitMutationObserver,ce=typeof self=="undefined"&&typeof y!="undefined"&&{}.toString.call(y)==="[object process]",le=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function ve(){return function(){return y.nextTick(be)}}function Se(){return typeof se!="undefined"?function(){se(be)}:Ce()}function ge(){var we=0,ke=new re(be),Me=document.createTextNode("");return ke.observe(Me,{characterData:!0}),function(){Me.data=we=++we%2}}function _e(){var we=new MessageChannel;return we.port1.onmessage=be,function(){return we.port2.postMessage(0)}}function Ce(){var we=setTimeout;return function(){return we(be,1)}}var he=new Array(1e3);function be(){for(var we=0;we<ae;we+=2){var ke=he[we],Me=he[we+1];ke(Me),he[we]=void 0,he[we+1]=void 0}ae=0}function Ee(){try{var we=Function("return this")().require("vertx");return se=we.runOnLoop||we.runOnContext,Se()}catch(ke){return Ce()}}var Ae=void 0;ce?Ae=ve():re?Ae=ge():le?Ae=_e():ee===void 0?Ae=Ee():Ae=Ce();function De(we,ke){var Me=this,Oe=new this.constructor(Re);Oe[Fe]===void 0&&bt(Oe);var tt=Me._state;if(tt){var ot=arguments[tt-1];ne(function(){return kt(tt,Oe,ot,Me._result)})}else ut(Me,Oe,we,ke);return Oe}function je(we){var ke=this;if(we&&typeof we=="object"&&we.constructor===ke)return we;var Me=new ke(Re);return Ke(Me,we),Me}var Fe=Math.random().toString(36).substring(2);function Re(){}var qe=void 0,Je=1,He=2;function ze(){return new TypeError("You cannot resolve a promise with itself")}function Qe(){return new TypeError("A promises callback cannot return that same promise.")}function $e(we,ke,Me,Oe){try{we.call(ke,Me,Oe)}catch(tt){return tt}}function ht(we,ke,Me){ne(function(Oe){var tt=!1,ot=$e(Me,ke,function(st){tt||(tt=!0,ke!==st?Ke(Oe,st):rt(Oe,st))},function(st){tt||(tt=!0,Xe(Oe,st))},"Settle: "+(Oe._label||" unknown promise"));!tt&&ot&&(tt=!0,Xe(Oe,ot))},we)}function Ge(we,ke){ke._state===Je?rt(we,ke._result):ke._state===He?Xe(we,ke._result):ut(ke,void 0,function(Me){return Ke(we,Me)},function(Me){return Xe(we,Me)})}function Ue(we,ke,Me){ke.constructor===we.constructor&&Me===De&&ke.constructor.resolve===je?Ge(we,ke):Me===void 0?rt(we,ke):fe(Me)?ht(we,ke,Me):rt(we,ke)}function Ke(we,ke){if(we===ke)Xe(we,ze());else if(ie(ke)){var Me=void 0;try{Me=ke.then}catch(Oe){Xe(we,Oe);return}Ue(we,ke,Me)}else rt(we,ke)}function et(we){we._onerror&&we._onerror(we._result),lt(we)}function rt(we,ke){we._state===qe&&(we._result=ke,we._state=Je,we._subscribers.length!==0&&ne(lt,we))}function Xe(we,ke){we._state===qe&&(we._state=He,we._result=ke,ne(et,we))}function ut(we,ke,Me,Oe){var tt=we._subscribers,ot=tt.length;we._onerror=null,tt[ot]=ke,tt[ot+Je]=Me,tt[ot+He]=Oe,ot===0&&we._state&&ne(lt,we)}function lt(we){var ke=we._subscribers,Me=we._state;if(ke.length!==0){for(var Oe=void 0,tt=void 0,ot=we._result,st=0;st<ke.length;st+=3)Oe=ke[st],tt=ke[st+Me],Oe?kt(Me,Oe,tt,ot):tt(ot);we._subscribers.length=0}}function kt(we,ke,Me,Oe){var tt=fe(Me),ot=void 0,st=void 0,ft=!0;if(tt){try{ot=Me(Oe)}catch(Ft){ft=!1,st=Ft}if(ke===ot){Xe(ke,Qe());return}}else ot=Oe;ke._state!==qe||(tt&&ft?Ke(ke,ot):ft===!1?Xe(ke,st):we===Je?rt(ke,ot):we===He&&Xe(ke,ot))}function pt(we,ke){try{ke(function(Oe){Ke(we,Oe)},function(Oe){Xe(we,Oe)})}catch(Me){Xe(we,Me)}}var Mt=0;function wt(){return Mt++}function bt(we){we[Fe]=Mt++,we._state=void 0,we._result=void 0,we._subscribers=[]}function gt(){return new Error("Array Methods must be provided an Array")}var We=function(){function we(ke,Me){this._instanceConstructor=ke,this.promise=new ke(Re),this.promise[Fe]||bt(this.promise),ue(Me)?(this.length=Me.length,this._remaining=Me.length,this._result=new Array(this.length),this.length===0?rt(this.promise,this._result):(this.length=this.length||0,this._enumerate(Me),this._remaining===0&&rt(this.promise,this._result))):Xe(this.promise,gt())}return we.prototype._enumerate=function(Me){for(var Oe=0;this._state===qe&&Oe<Me.length;Oe++)this._eachEntry(Me[Oe],Oe)},we.prototype._eachEntry=function(Me,Oe){var tt=this._instanceConstructor,ot=tt.resolve;if(ot===je){var st=void 0,ft=void 0,Ft=!1;try{st=Me.then}catch(qt){Ft=!0,ft=qt}if(st===De&&Me._state!==qe)this._settledAt(Me._state,Oe,Me._result);else if(typeof st!="function")this._remaining--,this._result[Oe]=Me;else if(tt===Le){var Bt=new tt(Re);Ft?Xe(Bt,ft):Ue(Bt,Me,st),this._willSettleAt(Bt,Oe)}else this._willSettleAt(new tt(function(qt){return qt(Me)}),Oe)}else this._willSettleAt(ot(Me),Oe)},we.prototype._settledAt=function(Me,Oe,tt){var ot=this.promise;ot._state===qe&&(this._remaining--,Me===He?Xe(ot,tt):this._result[Oe]=tt),this._remaining===0&&rt(ot,this._result)},we.prototype._willSettleAt=function(Me,Oe){var tt=this;ut(Me,void 0,function(ot){return tt._settledAt(Je,Oe,ot)},function(ot){return tt._settledAt(He,Oe,ot)})},we}();function Ie(we){return new We(this,we).promise}function xe(we){var ke=this;return ue(we)?new ke(function(Me,Oe){for(var tt=we.length,ot=0;ot<tt;ot++)ke.resolve(we[ot]).then(Me,Oe)}):new ke(function(Me,Oe){return Oe(new TypeError("You must pass an array to race."))})}function Be(we){var ke=this,Me=new ke(Re);return Xe(Me,we),Me}function Ye(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Pe(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Le=function(){function we(ke){this[Fe]=wt(),this._result=this._state=void 0,this._subscribers=[],Re!==ke&&(typeof ke!="function"&&Ye(),this instanceof we?pt(this,ke):Pe())}return we.prototype.catch=function(Me){return this.then(null,Me)},we.prototype.finally=function(Me){var Oe=this,tt=Oe.constructor;return fe(Me)?Oe.then(function(ot){return tt.resolve(Me()).then(function(){return ot})},function(ot){return tt.resolve(Me()).then(function(){throw ot})}):Oe.then(Me,Me)},we}();Le.prototype.then=De,Le.all=Ie,Le.race=xe,Le.resolve=je,Le.reject=Be,Le._setScheduler=x,Le._setAsap=b,Le._asap=ne;function pe(){var we=void 0;if(typeof oe.g!="undefined")we=oe.g;else if(typeof self!="undefined")we=self;else try{we=Function("return this")()}catch(Oe){throw new Error("polyfill failed because global object is unavailable in this environment")}var ke=we.Promise;if(ke){var Me=null;try{Me=Object.prototype.toString.call(ke.resolve())}catch(Oe){}if(Me==="[object Promise]"&&!ke.cast)return}we.Promise=Le}return Le.polyfill=pe,Le.Promise=Le,Le})},86204:function(rn){"use strict";var Tt=typeof Reflect=="object"?Reflect:null,oe=Tt&&typeof Tt.apply=="function"?Tt.apply:function(_e,Ce,he){return Function.prototype.apply.call(_e,Ce,he)},y;Tt&&typeof Tt.ownKeys=="function"?y=Tt.ownKeys:Object.getOwnPropertySymbols?y=function(_e){return Object.getOwnPropertyNames(_e).concat(Object.getOwnPropertySymbols(_e))}:y=function(_e){return Object.getOwnPropertyNames(_e)};function ie(ge){console&&console.warn&&console.warn(ge)}var fe=Number.isNaN||function(_e){return _e!==_e};function de(){de.init.call(this)}rn.exports=de,rn.exports.once=le,de.EventEmitter=de,de.prototype._events=void 0,de.prototype._eventsCount=0,de.prototype._maxListeners=void 0;var ue=10;function ae(ge){if(typeof ge!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ge)}Object.defineProperty(de,"defaultMaxListeners",{enumerable:!0,get:function(){return ue},set:function(ge){if(typeof ge!="number"||ge<0||fe(ge))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ge+".");ue=ge}}),de.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},de.prototype.setMaxListeners=function(_e){if(typeof _e!="number"||_e<0||fe(_e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_e+".");return this._maxListeners=_e,this};function se(ge){return ge._maxListeners===void 0?de.defaultMaxListeners:ge._maxListeners}de.prototype.getMaxListeners=function(){return se(this)},de.prototype.emit=function(_e){for(var Ce=[],he=1;he<arguments.length;he++)Ce.push(arguments[he]);var be=_e==="error",Ee=this._events;if(Ee!==void 0)be=be&&Ee.error===void 0;else if(!be)return!1;if(be){var Ae;if(Ce.length>0&&(Ae=Ce[0]),Ae instanceof Error)throw Ae;var De=new Error("Unhandled error."+(Ae?" ("+Ae.message+")":""));throw De.context=Ae,De}var je=Ee[_e];if(je===void 0)return!1;if(typeof je=="function")oe(je,this,Ce);else for(var Fe=je.length,Re=E(je,Fe),he=0;he<Fe;++he)oe(Re[he],this,Ce);return!0};function te(ge,_e,Ce,he){var be,Ee,Ae;if(ae(Ce),Ee=ge._events,Ee===void 0?(Ee=ge._events=Object.create(null),ge._eventsCount=0):(Ee.newListener!==void 0&&(ge.emit("newListener",_e,Ce.listener?Ce.listener:Ce),Ee=ge._events),Ae=Ee[_e]),Ae===void 0)Ae=Ee[_e]=Ce,++ge._eventsCount;else if(typeof Ae=="function"?Ae=Ee[_e]=he?[Ce,Ae]:[Ae,Ce]:he?Ae.unshift(Ce):Ae.push(Ce),be=se(ge),be>0&&Ae.length>be&&!Ae.warned){Ae.warned=!0;var De=new Error("Possible EventEmitter memory leak detected. "+Ae.length+" "+String(_e)+" listeners added. Use emitter.setMaxListeners() to increase limit");De.name="MaxListenersExceededWarning",De.emitter=ge,De.type=_e,De.count=Ae.length,ie(De)}return ge}de.prototype.addListener=function(_e,Ce){return te(this,_e,Ce,!1)},de.prototype.on=de.prototype.addListener,de.prototype.prependListener=function(_e,Ce){return te(this,_e,Ce,!0)};function ne(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(ge,_e,Ce){var he={fired:!1,wrapFn:void 0,target:ge,type:_e,listener:Ce},be=ne.bind(he);return be.listener=Ce,he.wrapFn=be,be}de.prototype.once=function(_e,Ce){return ae(Ce),this.on(_e,x(this,_e,Ce)),this},de.prototype.prependOnceListener=function(_e,Ce){return ae(Ce),this.prependListener(_e,x(this,_e,Ce)),this},de.prototype.removeListener=function(_e,Ce){var he,be,Ee,Ae,De;if(ae(Ce),be=this._events,be===void 0)return this;if(he=be[_e],he===void 0)return this;if(he===Ce||he.listener===Ce)--this._eventsCount===0?this._events=Object.create(null):(delete be[_e],be.removeListener&&this.emit("removeListener",_e,he.listener||Ce));else if(typeof he!="function"){for(Ee=-1,Ae=he.length-1;Ae>=0;Ae--)if(he[Ae]===Ce||he[Ae].listener===Ce){De=he[Ae].listener,Ee=Ae;break}if(Ee<0)return this;Ee===0?he.shift():re(he,Ee),he.length===1&&(be[_e]=he[0]),be.removeListener!==void 0&&this.emit("removeListener",_e,De||Ce)}return this},de.prototype.off=de.prototype.removeListener,de.prototype.removeAllListeners=function(_e){var Ce,he,be;if(he=this._events,he===void 0)return this;if(he.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):he[_e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete he[_e]),this;if(arguments.length===0){var Ee=Object.keys(he),Ae;for(be=0;be<Ee.length;++be)Ae=Ee[be],Ae!=="removeListener"&&this.removeAllListeners(Ae);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ce=he[_e],typeof Ce=="function")this.removeListener(_e,Ce);else if(Ce!==void 0)for(be=Ce.length-1;be>=0;be--)this.removeListener(_e,Ce[be]);return this};function b(ge,_e,Ce){var he=ge._events;if(he===void 0)return[];var be=he[_e];return be===void 0?[]:typeof be=="function"?Ce?[be.listener||be]:[be]:Ce?ce(be):E(be,be.length)}de.prototype.listeners=function(_e){return b(this,_e,!0)},de.prototype.rawListeners=function(_e){return b(this,_e,!1)},de.listenerCount=function(ge,_e){return typeof ge.listenerCount=="function"?ge.listenerCount(_e):ee.call(ge,_e)},de.prototype.listenerCount=ee;function ee(ge){var _e=this._events;if(_e!==void 0){var Ce=_e[ge];if(typeof Ce=="function")return 1;if(Ce!==void 0)return Ce.length}return 0}de.prototype.eventNames=function(){return this._eventsCount>0?y(this._events):[]};function E(ge,_e){for(var Ce=new Array(_e),he=0;he<_e;++he)Ce[he]=ge[he];return Ce}function re(ge,_e){for(;_e+1<ge.length;_e++)ge[_e]=ge[_e+1];ge.pop()}function ce(ge){for(var _e=new Array(ge.length),Ce=0;Ce<_e.length;++Ce)_e[Ce]=ge[Ce].listener||ge[Ce];return _e}function le(ge,_e){return new Promise(function(Ce,he){function be(Ae){ge.removeListener(_e,Ee),he(Ae)}function Ee(){typeof ge.removeListener=="function"&&ge.removeListener("error",be),Ce([].slice.call(arguments))}Se(ge,_e,Ee,{once:!0}),_e!=="error"&&ve(ge,be,{once:!0})})}function ve(ge,_e,Ce){typeof ge.on=="function"&&Se(ge,"error",_e,Ce)}function Se(ge,_e,Ce,he){if(typeof ge.on=="function")he.once?ge.once(_e,Ce):ge.on(_e,Ce);else if(typeof ge.addEventListener=="function")ge.addEventListener(_e,function be(Ee){he.once&&ge.removeEventListener(_e,be),Ce(Ee)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ge)}},24334:function(rn,Tt,oe){var y,ie;(function(fe,de){rn.exports=de(fe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof oe.g!="undefined"?oe.g:this,function(fe){"use strict";fe=fe||{};var de=fe.Base64,ue="2.6.4",ae="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=function(Je){for(var He={},ze=0,Qe=Je.length;ze<Qe;ze++)He[Je.charAt(ze)]=ze;return He}(ae),te=String.fromCharCode,ne=function(Je){if(Je.length<2){var He=Je.charCodeAt(0);return He<128?Je:He<2048?te(192|He>>>6)+te(128|He&63):te(224|He>>>12&15)+te(128|He>>>6&63)+te(128|He&63)}else{var He=65536+(Je.charCodeAt(0)-55296)*1024+(Je.charCodeAt(1)-56320);return te(240|He>>>18&7)+te(128|He>>>12&63)+te(128|He>>>6&63)+te(128|He&63)}},x=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,b=function(Je){return Je.replace(x,ne)},ee=function(Je){var He=[0,2,1][Je.length%3],ze=Je.charCodeAt(0)<<16|(Je.length>1?Je.charCodeAt(1):0)<<8|(Je.length>2?Je.charCodeAt(2):0),Qe=[ae.charAt(ze>>>18),ae.charAt(ze>>>12&63),He>=2?"=":ae.charAt(ze>>>6&63),He>=1?"=":ae.charAt(ze&63)];return Qe.join("")},E=fe.btoa&&typeof fe.btoa=="function"?function(Je){return fe.btoa(Je)}:function(Je){if(Je.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Je.replace(/[\s\S]{1,3}/g,ee)},re=function(Je){return E(b(String(Je)))},ce=function(Je){return Je.replace(/[+\/]/g,function(He){return He=="+"?"-":"_"}).replace(/=/g,"")},le=function(Je,He){return He?ce(re(Je)):re(Je)},ve=function(Je){return le(Je,!0)},Se;fe.Uint8Array&&(Se=function(Je,He){for(var ze="",Qe=0,$e=Je.length;Qe<$e;Qe+=3){var ht=Je[Qe],Ge=Je[Qe+1],Ue=Je[Qe+2],Ke=ht<<16|Ge<<8|Ue;ze+=ae.charAt(Ke>>>18)+ae.charAt(Ke>>>12&63)+(typeof Ge!="undefined"?ae.charAt(Ke>>>6&63):"=")+(typeof Ue!="undefined"?ae.charAt(Ke&63):"=")}return He?ce(ze):ze});var ge=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,_e=function(Je){switch(Je.length){case 4:var He=(7&Je.charCodeAt(0))<<18|(63&Je.charCodeAt(1))<<12|(63&Je.charCodeAt(2))<<6|63&Je.charCodeAt(3),ze=He-65536;return te((ze>>>10)+55296)+te((ze&1023)+56320);case 3:return te((15&Je.charCodeAt(0))<<12|(63&Je.charCodeAt(1))<<6|63&Je.charCodeAt(2));default:return te((31&Je.charCodeAt(0))<<6|63&Je.charCodeAt(1))}},Ce=function(Je){return Je.replace(ge,_e)},he=function(Je){var He=Je.length,ze=He%4,Qe=(He>0?se[Je.charAt(0)]<<18:0)|(He>1?se[Je.charAt(1)]<<12:0)|(He>2?se[Je.charAt(2)]<<6:0)|(He>3?se[Je.charAt(3)]:0),$e=[te(Qe>>>16),te(Qe>>>8&255),te(Qe&255)];return $e.length-=[0,0,2,1][ze],$e.join("")},be=fe.atob&&typeof fe.atob=="function"?function(Je){return fe.atob(Je)}:function(Je){return Je.replace(/\S{1,4}/g,he)},Ee=function(Je){return be(String(Je).replace(/[^A-Za-z0-9\+\/]/g,""))},Ae=function(Je){return Ce(be(Je))},De=function(Je){return String(Je).replace(/[-_]/g,function(He){return He=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},je=function(Je){return Ae(De(Je))},Fe;fe.Uint8Array&&(Fe=function(Je){return Uint8Array.from(Ee(De(Je)),function(He){return He.charCodeAt(0)})});var Re=function(){var Je=fe.Base64;return fe.Base64=de,Je};if(fe.Base64={VERSION:ue,atob:Ee,btoa:E,fromBase64:je,toBase64:le,utob:b,encode:le,encodeURI:ve,btou:Ce,decode:je,noConflict:Re,fromUint8Array:Se,toUint8Array:Fe},typeof Object.defineProperty=="function"){var qe=function(Je){return{value:Je,enumerable:!1,writable:!0,configurable:!0}};fe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",qe(function(){return je(this)})),Object.defineProperty(String.prototype,"toBase64",qe(function(Je){return le(this,Je)})),Object.defineProperty(String.prototype,"toBase64URI",qe(function(){return le(this,!0)}))}}return fe.Meteor&&(Base64=fe.Base64),rn.exports?rn.exports.Base64=fe.Base64:(y=[],ie=function(){return fe.Base64}.apply(Tt,y),ie!==void 0&&(rn.exports=ie)),{Base64:fe.Base64}})},2859:function(rn,Tt,oe){"use strict";oe.d(Tt,{hP:function(){return gt}});var y=function(We,Ie){return(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(xe,Be){xe.__proto__=Be}||function(xe,Be){for(var Ye in Be)Object.prototype.hasOwnProperty.call(Be,Ye)&&(xe[Ye]=Be[Ye])})(We,Ie)};function ie(We,Ie){function xe(){this.constructor=We}y(We,Ie),We.prototype=Ie===null?Object.create(Ie):(xe.prototype=Ie.prototype,new xe)}function fe(We,Ie,xe,Be){return new(xe||(xe=Promise))(function(Ye,Pe){function Le(ke){try{we(Be.next(ke))}catch(Me){Pe(Me)}}function pe(ke){try{we(Be.throw(ke))}catch(Me){Pe(Me)}}function we(ke){var Me;ke.done?Ye(ke.value):(Me=ke.value,Me instanceof xe?Me:new xe(function(Oe){Oe(Me)})).then(Le,pe)}we((Be=Be.apply(We,Ie||[])).next())})}function de(We,Ie){var xe,Be,Ye,Pe,Le={label:0,sent:function(){if(1&Ye[0])throw Ye[1];return Ye[1]},trys:[],ops:[]};return Pe={next:pe(0),throw:pe(1),return:pe(2)},typeof Symbol=="function"&&(Pe[Symbol.iterator]=function(){return this}),Pe;function pe(we){return function(ke){return function(Me){if(xe)throw new TypeError("Generator is already executing.");for(;Le;)try{if(xe=1,Be&&(Ye=2&Me[0]?Be.return:Me[0]?Be.throw||((Ye=Be.return)&&Ye.call(Be),0):Be.next)&&!(Ye=Ye.call(Be,Me[1])).done)return Ye;switch(Be=0,Ye&&(Me=[2&Me[0],Ye.value]),Me[0]){case 0:case 1:Ye=Me;break;case 4:return Le.label++,{value:Me[1],done:!1};case 5:Le.label++,Be=Me[1],Me=[0];continue;case 7:Me=Le.ops.pop(),Le.trys.pop();continue;default:if(Ye=Le.trys,!((Ye=Ye.length>0&&Ye[Ye.length-1])||Me[0]!==6&&Me[0]!==2)){Le=0;continue}if(Me[0]===3&&(!Ye||Me[1]>Ye[0]&&Me[1]<Ye[3])){Le.label=Me[1];break}if(Me[0]===6&&Le.label<Ye[1]){Le.label=Ye[1],Ye=Me;break}if(Ye&&Le.label<Ye[2]){Le.label=Ye[2],Le.ops.push(Me);break}Ye[2]&&Le.ops.pop(),Le.trys.pop();continue}Me=Ie.call(We,Le)}catch(Oe){Me=[6,Oe],Be=0}finally{xe=Ye=0}if(5&Me[0])throw Me[1];return{value:Me[0]?Me[1]:void 0,done:!0}}([we,ke])}}}function ue(){for(var We=0,Ie=0,xe=arguments.length;Ie<xe;Ie++)We+=arguments[Ie].length;var Be=Array(We),Ye=0;for(Ie=0;Ie<xe;Ie++)for(var Pe=arguments[Ie],Le=0,pe=Pe.length;Le<pe;Le++,Ye++)Be[Ye]=Pe[Le];return Be}var ae=function(){function We(){}return We.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},We.setAttributes=function(Ie,xe){for(var Be=0,Ye=xe;Be<Ye.length;Be++){var Pe=Ye[Be],Le=Pe[0],pe=Pe[1];Ie.setAttribute(Le,pe)}},We.createRect=function(Ie,xe,Be){var Ye=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ye.setAttribute("width",Ie.toString()),Ye.setAttribute("height",xe.toString()),Be&&We.setAttributes(Ye,Be),Ye},We.createLine=function(Ie,xe,Be,Ye,Pe){var Le=document.createElementNS("http://www.w3.org/2000/svg","line");return Le.setAttribute("x1",Ie.toString()),Le.setAttribute("y1",xe.toString()),Le.setAttribute("x2",Be.toString()),Le.setAttribute("y2",Ye.toString()),Pe&&We.setAttributes(Le,Pe),Le},We.createPolygon=function(Ie,xe){var Be=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Be.setAttribute("points",Ie),xe&&We.setAttributes(Be,xe),Be},We.createCircle=function(Ie,xe){var Be=document.createElementNS("http://www.w3.org/2000/svg","circle");return Be.setAttribute("cx",(Ie/2).toString()),Be.setAttribute("cy",(Ie/2).toString()),Be.setAttribute("r",Ie.toString()),xe&&We.setAttributes(Be,xe),Be},We.createEllipse=function(Ie,xe,Be){var Ye=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ye.setAttribute("cx",(Ie/2).toString()),Ye.setAttribute("cy",(xe/2).toString()),Ye.setAttribute("rx",(Ie/2).toString()),Ye.setAttribute("ry",(xe/2).toString()),Be&&We.setAttributes(Ye,Be),Ye},We.createGroup=function(Ie){var xe=document.createElementNS("http://www.w3.org/2000/svg","g");return Ie&&We.setAttributes(xe,Ie),xe},We.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},We.createMarker=function(Ie,xe,Be,Ye,Pe,Le,pe){var we=document.createElementNS("http://www.w3.org/2000/svg","marker");return We.setAttributes(we,[["id",Ie],["orient",xe],["markerWidth",Be.toString()],["markerHeight",Ye.toString()],["refX",Pe.toString()],["refY",Le.toString()]]),we.appendChild(pe),we},We.createText=function(Ie){var xe=document.createElementNS("http://www.w3.org/2000/svg","text");return xe.setAttribute("x","0"),xe.setAttribute("y","0"),Ie&&We.setAttributes(xe,Ie),xe},We.createTSpan=function(Ie,xe){var Be=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Be.textContent=Ie,xe&&We.setAttributes(Be,xe),Be},We.createImage=function(Ie){var xe=document.createElementNS("http://www.w3.org/2000/svg","image");return Ie&&We.setAttributes(xe,Ie),xe},We.createPoint=function(Ie,xe){var Be=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Be.x=Ie,Be.y=xe,Be},We.createPath=function(Ie,xe){var Be=document.createElementNS("http://www.w3.org/2000/svg","path");return Be.setAttribute("d",Ie),xe&&We.setAttributes(Be,xe),Be},We}(),se=function(){function We(){}return We.addKey=function(Ie){We.key=Ie},Object.defineProperty(We,"isLicensed",{get:function(){return!!We.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(We.key)},enumerable:!1,configurable:!0}),We}(),te=function(){function We(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return We.prototype.rasterize=function(Ie,xe,Be){var Ye=this;return new Promise(function(Pe){var Le=Be!==void 0?Be:document.createElement("canvas");Ie===null&&(Ye.markersOnly=!0,Ye.naturalSize=!1);var pe=document.createElementNS("http://www.w3.org/2000/svg","svg");pe.setAttribute("xmlns","http://www.w3.org/2000/svg"),pe.setAttribute("width",xe.width.baseVal.valueAsString),pe.setAttribute("height",xe.height.baseVal.valueAsString),pe.setAttribute("viewBox","0 0 "+xe.viewBox.baseVal.width.toString()+" "+xe.viewBox.baseVal.height.toString()),pe.innerHTML=xe.innerHTML,Ye.naturalSize===!0?(pe.width.baseVal.value=Ie.naturalWidth,pe.height.baseVal.value=Ie.naturalHeight):Ye.width!==void 0&&Ye.height!==void 0&&(pe.width.baseVal.value=Ye.width,pe.height.baseVal.value=Ye.height),Le.width=pe.width.baseVal.value,Le.height=pe.height.baseVal.value;var we=pe.outerHTML,ke=Le.getContext("2d");Ye.markersOnly!==!0&&ke.drawImage(Ie,0,0,Le.width,Le.height);var Me=window.URL,Oe=new Image(Le.width,Le.height);Oe.setAttribute("crossOrigin","anonymous");var tt=new Blob([we],{type:"image/svg+xml"}),ot=Me.createObjectURL(tt);Oe.onload=function(){ke.drawImage(Oe,0,0),Me.revokeObjectURL(ot);var st=Le.toDataURL(Ye.imageType,Ye.imageQuality);Pe(st)},Oe.src=ot})},We}(),ne=function(){},x=function(){function We(Ie){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Ie+"_"}return Object.defineProperty(We.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),We.prototype.addClass=function(Ie){return this.styleSheet===void 0&&this.addStyleSheet(),Ie.name=""+this.classNamePrefix+Ie.localName,this.classes.push(Ie),this.styleSheet.sheet.insertRule("."+Ie.name+" {"+Ie.style+"}",this.styleSheet.sheet.cssRules.length),Ie},We.prototype.addRule=function(Ie){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Ie),this.styleSheet.sheet.insertRule(Ie.selector+" {"+Ie.style+"}",this.styleSheet.sheet.cssRules.length)},We.prototype.addStyleSheet=function(){var Ie;this.styleSheet=document.createElement("style"),((Ie=this.styleSheetRoot)!==null&&Ie!==void 0?Ie:document.head).appendChild(this.styleSheet),this.addRule(new b("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new b("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new b("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ee("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ee("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},We.prototype.removeStyleSheet=function(){var Ie;this.styleSheet&&(((Ie=this.styleSheetRoot)!==null&&Ie!==void 0?Ie:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},We}(),b=function(We,Ie){this.selector=We,this.style=Ie},ee=function(We,Ie){this.localName=We,this.style=Ie},E=function(){function We(Ie,xe,Be,Ye,Pe){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Ie,this.displayMode=xe,this.markerItems=Be,this.uiStyleSettings=Ye,this.styles=Pe,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return We.prototype.show=function(Ie){var xe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ie,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Be=document.createElement("div");Be.className=this.toolbarBlockStyleClass.name,Be.style.whiteSpace="nowrap",this.uiContainer.appendChild(Be),this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Pe){var Le=document.createElement("div");Le.className=""+xe.toolbarButtonStyleClass.name,Le.setAttribute("data-type-name",Pe.typeName),Le.innerHTML=Pe.icon,Le.addEventListener("click",function(){xe.markerToolbarButtonClicked(Le,Pe)}),xe.buttons.push(Le),xe.markerButtons.push(Le)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ye=document.createElement("div");Ye.className=this.toolbarBlockStyleClass.name,Ye.style.whiteSpace="nowrap",Ye.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ye),this.addActionButton(Ye,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Ye,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},We.prototype.addButtonClickListener=function(Ie){this.buttonClickListeners.push(Ie)},We.prototype.removeButtonClickListener=function(Ie){this.buttonClickListeners.indexOf(Ie)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Ie),1)},We.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},We.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Ie=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var xe=0;xe<this.markerButtons.length;xe++)xe<Ie||xe===Ie&&this.markerButtons.length-1===Ie?this.markerButtonBlock.appendChild(this.markerButtons[xe]):(xe===Ie&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[xe]))}},We.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},We.prototype.resetButtonStyles=function(){var Ie=this;this.buttons.forEach(function(xe){xe.className=xe.className.replace(Ie.uiStyleSettings.toolbarButtonStyleColorsClassName?Ie.uiStyleSettings.toolbarButtonStyleColorsClassName:Ie.toolbarButtonStyleColorsClass.name,"").trim(),xe.className=xe.className.replace(Ie.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Ie.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Ie.toolbarActiveButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(Ie.uiStyleSettings.toolbarButtonStyleColorsClassName?Ie.uiStyleSettings.toolbarButtonStyleColorsClassName:Ie.toolbarButtonStyleColorsClass.name)})},We.prototype.addActionButton=function(Ie,xe,Be){var Ye=this,Pe=document.createElement("div");switch(Pe.className=""+this.toolbarButtonStyleClass.name,Pe.innerHTML=xe,Pe.setAttribute("data-action",Be),Pe.addEventListener("click",function(){Ye.actionToolbarButtonClicked(Pe,Be)}),Be){case"select":Pe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Pe.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Pe.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Pe.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Pe.style.fill=this.uiStyleSettings.closeButtonColor}Ie.appendChild(Pe),this.buttons.push(Pe)},We.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ee("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new ee("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ee("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ee("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new ee("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Ie=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ee("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Ie)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Ie)+`px;
|
|
|
padding: `+Ie+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ee("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ee("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new b("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new b("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},We.prototype.markerToolbarButtonClicked=function(Ie,xe){this.setActiveButton(Ie),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Be){return Be("marker",xe)}),this.markerButtonOverflowBlock.style.display="none"},We.prototype.actionToolbarButtonClicked=function(Ie,xe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Be){return Be("action",xe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},We.prototype.setActiveButton=function(Ie){this.resetButtonStyles(),Ie.className=Ie.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Ie.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},We.prototype.setActiveMarkerButton=function(Ie){var xe=this.markerButtons.find(function(Be){return Be.getAttribute("data-type-name")===Ie});xe&&this.setActiveButton(xe)},We.prototype.setCurrentMarker=function(Ie){var xe=this;this.currentMarker=Ie,this.buttons.filter(function(Be){return/delete|notes/.test(Be.getAttribute("data-action"))}).forEach(function(Be){xe.currentMarker===void 0?(Be.style.fillOpacity="0.4",Be.style.pointerEvents="none"):(Be.style.fillOpacity="1",Be.style.pointerEvents="all")})},We}(),re=function(){function We(Ie,xe,Be,Ye){this.panels=[],this.panelButtons=[],this.markerjsContainer=Ie,this.displayMode=xe,this.uiStyleSettings=Be,this.styles=Ye,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return We.prototype.addStyles=function(){var Ie;this.toolboxStyleClass=this.styles.addClass(new ee("toolbox",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
font-family: sans-serif;
|
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new ee("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ee("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ee("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ee("toolbox-panel-row",`
|
|
|
display: flex;
|
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
|
cursor: default;
|
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new ee("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Ie=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Ie!==void 0?Ie:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ee("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
|
|
|
padding: `+xe+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ee("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ee("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new b("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new b("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},We.prototype.show=function(Ie){var xe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Ie,this.uiContainer.className=this.toolboxStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},We.prototype.setPanelButtons=function(Ie){var xe,Be,Ye=this;this.panels=Ie,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((xe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&xe!==void 0?xe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Be=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Be!==void 0?Be:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Pe){var Le;Pe.uiStyleSettings=Ye.uiStyleSettings;var pe=document.createElement("div");pe.className=Ye.toolboxButtonStyleClass.name+" "+((Le=Ye.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Le!==void 0?Le:Ye.toolboxButtonStyleColorsClass.name),pe.innerHTML=Pe.icon,pe.title=Pe.title,pe.addEventListener("click",function(){Ye.panelButtonClick(Pe)}),Ye.panelButtons.push(pe),Ye.buttonRow.appendChild(pe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},We.prototype.panelButtonClick=function(Ie){var xe=this,Be=-1;if(Ie!==this.activePanel){Be=this.panels.indexOf(Ie),this.panelRow.innerHTML="";var Ye=Ie.getUi();Ye.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ye),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Ie}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){xe.displayMode==="inline"?xe.panelRow.style.display="none":xe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Pe,Le){var pe,we;Pe.className=xe.toolboxButtonStyleClass.name+" "+(Le===Be?""+((pe=xe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&pe!==void 0?pe:xe.toolboxActiveButtonStyleColorsClass.name):""+((we=xe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&we!==void 0?we:xe.toolboxButtonStyleColorsClass.name))})},We}(),ce=function(We,Ie){this.title=We,this.icon=Ie},le=function(We){function Ie(xe,Be,Ye,Pe){var Le=We.call(this,xe,Pe||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return Le.colors=[],Le.addTransparent=!1,Le.colorBoxes=[],Le.colors=Be,Le.currentColor=Ye,Le.setCurrentColor=Le.setCurrentColor.bind(Le),Le.getColorBox=Le.getColorBox.bind(Le),Le}return ie(Ie,We),Ie.prototype.getUi=function(){var xe=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.whiteSpace="nowrap",this.colors.forEach(function(Ye){var Pe=xe.getColorBox(Ye);Be.appendChild(Pe),xe.colorBoxes.push(Pe)}),Be},Ie.prototype.getColorBox=function(xe){var Be=this,Ye=this.uiStyleSettings.toolbarHeight/4,Pe=this.uiStyleSettings.toolbarHeight-Ye,Le=document.createElement("div");Le.style.display="inline-block",Le.style.boxSizing="content-box",Le.style.width=Pe-2+"px",Le.style.height=Pe-2+"px",Le.style.padding="1px",Le.style.marginRight="2px",Le.style.marginBottom="2px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderRadius=(Pe+2)/2+"px",Le.style.borderColor=xe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){Be.setCurrentColor(xe,Le)});var pe=document.createElement("div");return pe.style.display="inline-block",pe.style.width=Pe-2+"px",pe.style.height=Pe-2+"px",pe.style.backgroundColor=xe,pe.style.borderRadius=Pe/2+"px",xe==="transparent"&&(pe.style.fill=this.uiStyleSettings.toolboxAccentColor,pe.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),Le.appendChild(pe),Le},Ie.prototype.setCurrentColor=function(xe,Be){var Ye=this;this.currentColor=xe,this.colorBoxes.forEach(function(Pe){Pe.style.borderColor=Pe===Be?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(xe)},Ie}(ce),ve=function(){function We(Ie,xe,Be){this._state="new",this._isSelected=!1,this._container=Ie,this._overlayContainer=xe,this.globalSettings=Be,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(We.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),We.prototype.ownsTarget=function(Ie){return!1},Object.defineProperty(We.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),We.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},We.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},We.prototype.pointerDown=function(Ie,xe){},We.prototype.dblClick=function(Ie,xe){},We.prototype.manipulate=function(Ie){},We.prototype.pointerUp=function(Ie){this.stateChanged()},We.prototype.dispose=function(){},We.prototype.addMarkerVisualToContainer=function(Ie){this.container.childNodes.length>0?this.container.insertBefore(Ie,this.container.childNodes[0]):this.container.appendChild(Ie)},We.prototype.getState=function(){return{typeName:We.typeName,state:this.state,notes:this.notes}},We.prototype.restoreState=function(Ie){this._state=Ie.state,this.notes=Ie.notes},We.prototype.scale=function(Ie,xe){},We.prototype.colorChanged=function(Ie){this.onColorChanged&&this.onColorChanged(Ie),this.stateChanged()},We.prototype.fillColorChanged=function(Ie){this.onFillColorChanged&&this.onFillColorChanged(Ie),this.stateChanged()},We.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Ie=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Ie.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Ie)&&this.onStateChanged(this)}},We.typeName="MarkerBase",We}(),Se=function(){function We(){this.findGripByVisual=this.findGripByVisual.bind(this)}return We.prototype.findGripByVisual=function(Ie){return this.topLeft.ownsTarget(Ie)?this.topLeft:this.topCenter.ownsTarget(Ie)?this.topCenter:this.topRight.ownsTarget(Ie)?this.topRight:this.centerLeft.ownsTarget(Ie)?this.centerLeft:this.centerRight.ownsTarget(Ie)?this.centerRight:this.bottomLeft.ownsTarget(Ie)?this.bottomLeft:this.bottomCenter.ownsTarget(Ie)?this.bottomCenter:this.bottomRight.ownsTarget(Ie)?this.bottomRight:void 0},We}(),ge=function(){function We(){this.GRIP_SIZE=10,this.visual=ae.createGroup(),this.visual.appendChild(ae.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ae.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return We.prototype.ownsTarget=function(Ie){return Ie===this.visual||Ie===this.visual.childNodes[0]||Ie===this.visual.childNodes[1]},We}(),_e=function(){function We(){}return We.toITransformMatrix=function(Ie){return{a:Ie.a,b:Ie.b,c:Ie.c,d:Ie.d,e:Ie.e,f:Ie.f}},We.toSVGMatrix=function(Ie,xe){return Ie.a=xe.a,Ie.b=xe.b,Ie.c=xe.c,Ie.d=xe.d,Ie.e=xe.e,Ie.f=xe.f,Ie},We}(),Ce=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.left=0,Pe.top=0,Pe.width=0,Pe.height=0,Pe.defaultSize={x:50,y:20},Pe.offsetX=0,Pe.offsetY=0,Pe.rotationAngle=0,Pe.CB_DISTANCE=10,Pe._suppressMarkerCreateEvent=!1,Pe.container.transform.baseVal.appendItem(ae.createTransform()),Pe.setupControlBox(),Pe}return ie(Ie,We),Object.defineProperty(Ie.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Ie.prototype,"visual",{get:function(){return this._visual},set:function(xe){this._visual=xe;var Be=ae.createTransform();this._visual.transform.baseVal.appendItem(Be)},enumerable:!1,configurable:!0}),Ie.prototype.ownsTarget=function(xe){return!!We.prototype.ownsTarget.call(this,xe)||!!(this.controlGrips.findGripByVisual(xe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(xe))},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.state==="new"&&(this.left=xe.x,this.top=xe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ye=this.unrotatePoint(xe);if(this.manipulationStartX=Ye.x,this.manipulationStartY=Ye.y,this.offsetX=Ye.x-this.left,this.offsetY=Ye.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Be),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Be)){this.activeGrip=this.rotatorGrip;var Pe=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Pe.x-this.width/2,this.top=Pe.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Le=this.container.transform.baseVal.getItem(0);Le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Le,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Ie.prototype.pointerUp=function(xe){var Be=this.state;We.prototype.pointerUp.call(this,xe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(xe),this._state="select",Be==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Ie.prototype.moveVisual=function(xe){this.visual.style.transform="translate("+xe.x+"px, "+xe.y+"px)"},Ie.prototype.manipulate=function(xe){var Be=this.unrotatePoint(xe);this.state==="creating"?this.resize(xe):this.state==="move"?(this.left=this.manipulationStartLeft+(Be.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Be.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Be):this.state==="rotate"&&this.rotate(xe)},Ie.prototype.resize=function(xe){var Be=this.manipulationStartLeft,Ye=this.manipulationStartWidth,Pe=this.manipulationStartTop,Le=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Be=this.manipulationStartLeft+xe.x-this.manipulationStartX,Ye=this.manipulationStartWidth+this.manipulationStartLeft-Be;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ye=this.manipulationStartWidth+xe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Pe=this.manipulationStartTop+xe.y-this.manipulationStartY,Le=this.manipulationStartHeight+this.manipulationStartTop-Pe;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Le=this.manipulationStartHeight+xe.y-this.manipulationStartY}Ye>=0?(this.left=Be,this.width=Ye):(this.left=Be+Ye,this.width=-Ye),Le>=0?(this.top=Pe,this.height=Le):(this.top=Pe+Le,this.height=-Le),this.setSize()},Ie.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Ie.prototype.rotate=function(xe){if(Math.abs(xe.x-this.centerX)>.1){var Be=Math.sign(xe.x-this.centerX);this.rotationAngle=180*Math.atan((xe.y-this.centerY)/(xe.x-this.centerX))/Math.PI+90*Be,this.applyRotation()}},Ie.prototype.applyRotation=function(){var xe=this.container.transform.baseVal.getItem(0);xe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(xe,0)},Ie.prototype.rotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Be=this.container.getCTM(),Ye=ae.createPoint(xe.x,xe.y);return{x:(Ye=Ye.matrixTransform(Be)).x,y:Ye.y}},Ie.prototype.unrotatePoint=function(xe){if(this.rotationAngle===0)return xe;var Be=this.container.getCTM();Be=Be.inverse();var Ye=ae.createPoint(xe.x,xe.y);return{x:(Ye=Ye.matrixTransform(Be)).x,y:Ye.y}},Ie.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ie.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Ie.prototype.setupControlBox=function(){this.controlBox=ae.createGroup();var xe=ae.createTransform();xe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(xe),this.container.appendChild(this.controlBox),this.controlRect=ae.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=ae.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Se,this.addControlGrips(),this.controlBox.style.display="none"},Ie.prototype.adjustControlBox=function(){var xe=this.controlBox.transform.baseVal.getItem(0);xe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(xe,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Ie.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Ie.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(ae.createTransform()),this.controlBox.appendChild(xe.visual),xe},Ie.prototype.positionGrips=function(){var xe=this.controlGrips.topLeft.GRIP_SIZE,Be=-xe/2,Ye=Be,Pe=(this.width+this.CB_DISTANCE)/2-xe/2,Le=(this.height+this.CB_DISTANCE)/2-xe/2,pe=this.height+this.CB_DISTANCE-xe/2,we=this.width+this.CB_DISTANCE-xe/2;this.positionGrip(this.controlGrips.topLeft.visual,Be,Ye),this.positionGrip(this.controlGrips.topCenter.visual,Pe,Ye),this.positionGrip(this.controlGrips.topRight.visual,we,Ye),this.positionGrip(this.controlGrips.centerLeft.visual,Be,Le),this.positionGrip(this.controlGrips.centerRight.visual,we,Le),this.positionGrip(this.controlGrips.bottomLeft.visual,Be,pe),this.positionGrip(this.controlGrips.bottomCenter.visual,Pe,pe),this.positionGrip(this.controlGrips.bottomRight.visual,we,pe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Pe,Ye-3*this.CB_DISTANCE)},Ie.prototype.positionGrip=function(xe,Be,Ye){var Pe=xe.transform.baseVal.getItem(0);Pe.setTranslate(Be,Ye),xe.transform.baseVal.replaceItem(Pe,0)},Ie.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Ie.prototype.showControlBox=function(){this.controlBox.style.display=""},Ie.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:_e.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:_e.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},We.prototype.getState.call(this))},Ie.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Be=xe;this.left=Be.left,this.top=Be.top,this.width=Be.width,this.height=Be.height,this.rotationAngle=Be.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(_e.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Be.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(_e.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Be.containerTransformMatrix))},Ie.prototype.scale=function(xe,Be){We.prototype.scale.call(this,xe,Be);var Ye=this.rotatePoint({x:this.left,y:this.top}),Pe=this.unrotatePoint({x:Ye.x*xe,y:Ye.y*Be});this.left=Pe.x,this.top=Pe.y,this.width=this.width*xe,this.height=this.height*Be,this.adjustControlBox()},Ie}(ve),he=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.fillColor="transparent",Pe.strokeColor="transparent",Pe.strokeWidth=0,Pe.strokeDasharray="",Pe.opacity=1,Pe.setStrokeColor=Pe.setStrokeColor.bind(Pe),Pe.setFillColor=Pe.setFillColor.bind(Pe),Pe.setStrokeWidth=Pe.setStrokeWidth.bind(Pe),Pe.setStrokeDasharray=Pe.setStrokeDasharray.bind(Pe),Pe.createVisual=Pe.createVisual.bind(Pe),Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Ie.prototype.createVisual=function(){this.visual=ae.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Ie.prototype.manipulate=function(xe){We.prototype.manipulate.call(this,xe)},Ie.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.setSize()},Ie.prototype.setSize=function(){We.prototype.setSize.call(this),ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Ie.prototype.pointerUp=function(xe){We.prototype.pointerUp.call(this,xe),this.setSize()},Ie.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&ae.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Ie.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&ae.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Ie.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&ae.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ie.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&ae.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ie.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this))},Ie.prototype.restoreState=function(xe){var Be=xe;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.opacity=Be.opacity,this.createVisual(),We.prototype.restoreState.call(this,xe),this.setSize()},Ie.prototype.scale=function(xe,Be){We.prototype.scale.call(this,xe,Be),this.setSize()},Ie.title="Rectangle marker",Ie}(Ce),be=function(We){function Ie(xe,Be,Ye,Pe){var Le=We.call(this,xe,Pe||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Le.widths=[],Le.widthBoxes=[],Le.widths=Be,Le.currentWidth=Ye,Le.setCurrentWidth=Le.setCurrentWidth.bind(Le),Le}return ie(Ie,We),Ie.prototype.getUi=function(){var xe=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.widths.forEach(function(Ye){var Pe=document.createElement("div");Pe.style.display="flex",Pe.style.flexGrow="2",Pe.style.alignItems="center",Pe.style.justifyContent="space-between",Pe.style.padding="5px",Pe.style.borderWidth="2px",Pe.style.borderStyle="solid",Pe.style.borderColor=Ye===xe.currentWidth?xe.uiStyleSettings.toolboxAccentColor:"transparent",Pe.addEventListener("click",function(){xe.setCurrentWidth(Ye,Pe)}),Be.appendChild(Pe);var Le=document.createElement("div");Le.innerText=Ye.toString(),Le.style.marginRight="5px",Pe.appendChild(Le);var pe=document.createElement("div");pe.style.minHeight="20px",pe.style.flexGrow="2",pe.style.display="flex",pe.style.alignItems="center";var we=document.createElement("hr");we.style.minWidth="20px",we.style.border="0px",we.style.borderTop=Ye+"px solid "+xe.uiStyleSettings.toolboxColor,we.style.flexGrow="2",pe.appendChild(we),Pe.appendChild(pe),xe.widthBoxes.push(Pe)}),Be},Ie.prototype.setCurrentWidth=function(xe,Be){var Ye=this;this.currentWidth=xe,this.widthBoxes.forEach(function(Pe){Pe.style.borderColor=Pe===Be?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Ie}(ce),Ee=function(We){function Ie(xe,Be,Ye,Pe){var Le=We.call(this,xe,Pe||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return Le.styles=[],Le.styleBoxes=[],Le.styles=Be,Le.currentStyle=Ye,Le.setCurrentStyle=Le.setCurrentStyle.bind(Le),Le}return ie(Ie,We),Ie.prototype.getUi=function(){var xe=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.styles.forEach(function(Ye){var Pe=document.createElement("div");Pe.style.display="flex",Pe.style.alignItems="center",Pe.style.justifyContent="space-between",Pe.style.padding="5px",Pe.style.borderWidth="2px",Pe.style.borderStyle="solid",Pe.style.overflow="hidden",Pe.style.maxWidth=100/xe.styles.length-5+"%",Pe.style.borderColor=Ye===xe.currentStyle?xe.uiStyleSettings.toolboxAccentColor:"transparent",Pe.addEventListener("click",function(){xe.setCurrentStyle(Ye,Pe)}),Be.appendChild(Pe);var Le=document.createElement("div");Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.overflow="hidden";var pe=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+xe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ye!==""?'stroke-dasharray="'+Ye+'"':"")+` />
|
|
|
</svg>`;Le.innerHTML=pe,Pe.appendChild(Le),xe.styleBoxes.push(Pe)}),Be},Ie.prototype.setCurrentStyle=function(xe,Be){var Ye=this;this.currentStyle=xe,this.styleBoxes.forEach(function(Pe){Pe.style.borderColor=Pe===Be?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Ie}(ce),Ae=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.strokeColor=Ye.defaultColor,Pe.strokeWidth=Ye.defaultStrokeWidth,Pe.strokeDasharray=Ye.defaultStrokeDasharray,Pe.strokePanel=new le("Line color",Ye.defaultColorSet,Ye.defaultColor),Pe.strokePanel.onColorChanged=Pe.setStrokeColor,Pe.strokeWidthPanel=new be("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),Pe.strokeWidthPanel.onWidthChanged=Pe.setStrokeWidth,Pe.strokeStylePanel=new Ee("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),Pe.strokeStylePanel.onStyleChanged=Pe.setStrokeDasharray,Pe}return ie(Ie,We),Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Ie.typeName,xe},Ie.typeName="FrameMarker",Ie.title="Frame marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Ie}(he),De=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},je=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.x1=0,Pe.y1=0,Pe.x2=0,Pe.y2=0,Pe.defaultLength=50,Pe.manipulationStartX=0,Pe.manipulationStartY=0,Pe.manipulationStartX1=0,Pe.manipulationStartY1=0,Pe.manipulationStartX2=0,Pe.manipulationStartY2=0,Pe.setupControlBox(),Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){return!!We.prototype.ownsTarget.call(this,xe)||!(!this.grip1.ownsTarget(xe)&&!this.grip2.ownsTarget(xe))},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.manipulationStartX=xe.x,this.manipulationStartY=xe.y,this.state==="new"&&(this.x1=xe.x,this.y1=xe.y,this.x2=xe.x,this.y2=xe.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Be)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Be)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Ie.prototype.pointerUp=function(xe){var Be=this.state;We.prototype.pointerUp.call(this,xe),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(xe),this._state="select",Be==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Ie.prototype.adjustVisual=function(){},Ie.prototype.manipulate=function(xe){this.state==="creating"?this.resize(xe):this.state==="move"?(this.x1=this.manipulationStartX1+xe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+xe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+xe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+xe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(xe)},Ie.prototype.resize=function(xe){switch(this.activeGrip){case this.grip1:this.x1=xe.x,this.y1=xe.y;break;case this.grip2:case void 0:this.x2=xe.x,this.y2=xe.y}this.adjustVisual(),this.adjustControlBox()},Ie.prototype.select=function(){We.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Ie.prototype.deselect=function(){We.prototype.deselect.call(this),this.controlBox.style.display="none"},Ie.prototype.setupControlBox=function(){this.controlBox=ae.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Ie.prototype.adjustControlBox=function(){this.positionGrips()},Ie.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Ie.prototype.createGrip=function(){var xe=new ge;return xe.visual.transform.baseVal.appendItem(ae.createTransform()),this.controlBox.appendChild(xe.visual),xe},Ie.prototype.positionGrips=function(){var xe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-xe/2,this.y1-xe/2),this.positionGrip(this.grip2.visual,this.x2-xe/2,this.y2-xe/2)},Ie.prototype.positionGrip=function(xe,Be,Ye){var Pe=xe.transform.baseVal.getItem(0);Pe.setTranslate(Be,Ye),xe.transform.baseVal.replaceItem(Pe,0)},Ie.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},We.prototype.getState.call(this))},Ie.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Be=xe;this.x1=Be.x1,this.y1=Be.y1,this.x2=Be.x2,this.y2=Be.y2},Ie.prototype.scale=function(xe,Be){We.prototype.scale.call(this,xe,Be),this.x1=this.x1*xe,this.y1=this.y1*Be,this.x2=this.x2*xe,this.y2=this.y2*Be,this.adjustVisual(),this.adjustControlBox()},Ie}(ve),Fe=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.strokeColor="transparent",Pe.strokeWidth=0,Pe.strokeDasharray="",Pe.setStrokeColor=Pe.setStrokeColor.bind(Pe),Pe.setStrokeWidth=Pe.setStrokeWidth.bind(Pe),Pe.setStrokeDasharray=Pe.setStrokeDasharray.bind(Pe),Pe.strokeColor=Ye.defaultColor,Pe.strokeWidth=Ye.defaultStrokeWidth,Pe.strokeDasharray=Ye.defaultStrokeDasharray,Pe.strokePanel=new le("Line color",Ye.defaultColorSet,Ye.defaultColor),Pe.strokePanel.onColorChanged=Pe.setStrokeColor,Pe.strokeWidthPanel=new be("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),Pe.strokeWidthPanel.onWidthChanged=Pe.setStrokeWidth,Pe.strokeStylePanel=new Ee("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),Pe.strokeStylePanel.onStyleChanged=Pe.setStrokeDasharray,Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorLine&&xe!==this.visibleLine)},Ie.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorLine=ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ae.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Ie.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),ae.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ie.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Ie.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Ie.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},We.prototype.getState.call(this));return xe.typeName=Ie.typeName,xe},Ie.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Be=xe;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.createVisual(),this.adjustVisual()},Ie.typeName="LineMarker",Ie.title="Line marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Ie}(je),Re=function(We){function Ie(xe,Be,Ye,Pe){var Le=We.call(this,xe,Pe||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return Le.fonts=[],Le.fontBoxes=[],Le.fonts=Be,Le.currentFont=Ye,Le.setCurrentFont=Le.setCurrentFont.bind(Le),Le}return ie(Ie,We),Ie.prototype.getUi=function(){var xe=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.flexGrow="2",this.fonts.forEach(function(Ye){var Pe=document.createElement("div");Pe.style.display="inline-block",Pe.style.alignItems="center",Pe.style.justifyContent="space-between",Pe.style.padding="5px",Pe.style.borderWidth="2px",Pe.style.borderStyle="solid",Pe.style.overflow="hidden",Pe.style.maxWidth=100/xe.fonts.length-5+"%",Pe.style.borderColor=Ye===xe.currentFont?xe.uiStyleSettings.toolboxAccentColor:"transparent",Pe.addEventListener("click",function(){xe.setCurrentFont(Ye,Pe)}),Be.appendChild(Pe);var Le=document.createElement("div");Le.style.display="flex",Le.style.minHeight="20px",Le.style.flexGrow="2",Le.style.fontFamily=Ye,Le.style.overflow="hidden";var pe=document.createElement("div");pe.style.whiteSpace="nowrap",pe.style.overflow="hidden",pe.style.textOverflow="ellipsis",pe.innerHTML="The quick brown fox jumps over the lazy dog",Le.appendChild(pe),Pe.appendChild(Le),xe.fontBoxes.push(Pe)}),Be},Ie.prototype.setCurrentFont=function(xe,Be){var Ye=this;this.currentFont=xe,this.fontBoxes.forEach(function(Pe){Pe.style.borderColor=Pe===Be?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Ie}(ce),qe=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.color="transparent",Pe.padding=5,Pe.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Pe.text=Pe.DEFAULT_TEXT,Pe.isMoved=!1,Pe.color=Ye.defaultColor,Pe.fontFamily=Ye.defaultFontFamily,Pe.defaultSize={x:100,y:30},Pe.setColor=Pe.setColor.bind(Pe),Pe.setFont=Pe.setFont.bind(Pe),Pe.renderText=Pe.renderText.bind(Pe),Pe.sizeText=Pe.sizeText.bind(Pe),Pe.textEditDivClicked=Pe.textEditDivClicked.bind(Pe),Pe.showTextEditor=Pe.showTextEditor.bind(Pe),Pe.setSize=Pe.setSize.bind(Pe),Pe.positionTextEditor=Pe.positionTextEditor.bind(Pe),Pe.colorPanel=new le("Color",Ye.defaultColorSet,Ye.defaultColor),Pe.colorPanel.onColorChanged=Pe.setColor,Pe.fontFamilyPanel=new Re("Font",Ye.defaultFontFamilies,Ye.defaultFontFamily),Pe.fontFamilyPanel.onFontChanged=Pe.setFont,Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){if(We.prototype.ownsTarget.call(this,xe)||xe===this.visual||xe===this.textElement||xe===this.bgRectangle)return!0;var Be=!1;return this.textElement.childNodes.forEach(function(Ye){Ye===xe&&(Be=!0)}),Be},Ie.prototype.createVisual=function(){this.visual=ae.createGroup(),this.bgRectangle=ae.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ae.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.textElement.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Ie.prototype.renderText=function(){var xe=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Be){xe.textElement.appendChild(ae.createTSpan(Be.trim()===""?" ":Be.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Ie.prototype.getTextScale=function(){var xe=this.textElement.getBBox(),Be=1;if(xe.width>0&&xe.height>0){var Ye=(1*this.width-this.width*this.padding*2/100)/xe.width,Pe=(1*this.height-this.height*this.padding*2/100)/xe.height;Be=Math.min(Ye,Pe)}return Be},Ie.prototype.getTextPosition=function(xe){var Be=this.textElement.getBBox(),Ye=0,Pe=0;return Be.width>0&&Be.height>0&&(Ye=(this.width-Be.width*xe)/2,Pe=this.height/2-Be.height*xe/2),{x:Ye,y:Pe}},Ie.prototype.sizeText=function(){var xe=this.textElement.getBBox(),Be=this.getTextScale(),Ye=this.getTextPosition(Be);Ye.y-=xe.y*Be,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ye.x+"px, "+Ye.y+"px) scale("+Be+", "+Be+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ye.x,Ye.y),this.textElement.transform.baseVal.getItem(1).setScale(Be,Be))},Ie.prototype.manipulate=function(xe){We.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Ie.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.isMoved=!0,this.setSize(),this.sizeText()},Ie.prototype.setSize=function(){We.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Ie.prototype.pointerUp=function(xe){var Be=this.state;Be==="creating"&&(this._suppressMarkerCreateEvent=!0),We.prototype.pointerUp.call(this,xe),this.setSize(),(Be==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Ie.prototype.showTextEditor=function(){var xe=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Be){Be.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Be=Number.parseFloat(xe.textEditor.style.fontSize);xe.textEditor.clientWidth>=Number.parseInt(xe.textEditor.style.maxWidth)&&Be>.9;)Be-=.1,xe.textEditor.style.fontSize=Math.max(Be,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Be){if(Be.clipboardData){var Ye=Be.clipboardData.getData("text"),Pe=window.getSelection();if(!Pe.rangeCount)return!1;Pe.deleteFromDocument(),Pe.getRangeAt(0).insertNode(document.createTextNode(Ye)),Be.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){xe.textEditDivClicked(xe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Ie.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var xe=this.getTextScale(),Be=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ye=this.textElement.getBBox(),Pe={x:Ye.width*xe,y:Ye.height*xe};Be.x-=Pe.x/2,Be.y-=Pe.y/2,this.textEditor.style.top=Be.y+"px",this.textEditor.style.left=Be.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Be.x+"px",this.textEditor.style.fontSize=Math.max(16*xe,12)+"px",this.textElement.style.display="none"}},Ie.prototype.textEditDivClicked=function(xe){this.text=xe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Ie.prototype.select=function(){We.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Ie.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),We.prototype.deselect.call(this)},Ie.prototype.dblClick=function(xe,Be){We.prototype.dblClick.call(this,xe,Be),this.showTextEditor()},Ie.prototype.setColor=function(xe){this.textElement&&ae.setAttributes(this.textElement,[["fill",xe]]),this.color=xe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(xe)},Ie.prototype.setFont=function(xe){this.textElement&&ae.setAttributes(this.textElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Ie.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Ie.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},We.prototype.getState.call(this));return xe.typeName=Ie.typeName,xe},Ie.prototype.restoreState=function(xe){var Be=xe;this.color=Be.color,this.fontFamily=Be.fontFamily,this.padding=Be.padding,this.text=Be.text,this.createVisual(),We.prototype.restoreState.call(this,xe),this.setSize()},Ie.prototype.scale=function(xe,Be){We.prototype.scale.call(this,xe,Be),this.setSize(),this.sizeText(),this.positionTextEditor()},Ie.typeName="TextMarker",Ie.title="Text marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Ie}(Ce),Je=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.color="transparent",Pe.lineWidth=3,Pe.drawing=!1,Pe.pixelRatio=1,Pe.color=Ye.defaultColor,Pe.lineWidth=Ye.defaultStrokeWidth,Pe.pixelRatio=Ye.freehandPixelRatio,Pe.setColor=Pe.setColor.bind(Pe),Pe.addCanvas=Pe.addCanvas.bind(Pe),Pe.finishCreation=Pe.finishCreation.bind(Pe),Pe.setLineWidth=Pe.setLineWidth.bind(Pe),Pe.colorPanel=new le("Color",Ye.defaultColorSet,Ye.defaultColor),Pe.colorPanel.onColorChanged=Pe.setColor,Pe.lineWidthPanel=new be("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),Pe.lineWidthPanel.onWidthChanged=Pe.setLineWidth,Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.drawingImage)},Ie.prototype.createVisual=function(){this.visual=ae.createGroup(),this.drawingImage=ae.createImage(),this.visual.appendChild(this.drawingImage);var xe=ae.createTransform();this.visual.transform.baseVal.appendItem(xe),this.addMarkerVisualToContainer(this.visual)},Ie.prototype.pointerDown=function(xe,Be){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(xe.x,xe.y),this.drawing=!0):We.prototype.pointerDown.call(this,xe,Be)},Ie.prototype.manipulate=function(xe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(xe.x,xe.y),this.canvasContext.stroke()):We.prototype.manipulate.call(this,xe)},Ie.prototype.resize=function(xe){We.prototype.resize.call(this,xe),ae.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Ie.prototype.pointerUp=function(xe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):We.prototype.pointerUp.call(this,xe)},Ie.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Ie.prototype.select=function(){this.state==="creating"&&this.finishCreation(),We.prototype.select.call(this)},Ie.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),We.prototype.deselect.call(this)},Ie.prototype.finishCreation=function(){for(var xe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Be=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ye=Be[0],Pe=Be[1],Le=Be[2],pe=Be[3],we=!1,ke=0;ke<this.canvasElement.height;ke++)for(var Me=0;Me<this.canvasElement.width;Me++)xe.data[ke*this.canvasElement.width*4+4*Me+3]>0&&(we=!0,ke<Pe&&(Pe=ke),Me<Ye&&(Ye=Me),ke>pe&&(pe=ke),Me>Le&&(Le=Me));if(we){this.left=Ye/this.pixelRatio,this.top=Pe/this.pixelRatio,this.width=(Le-Ye)/this.pixelRatio,this.height=(pe-Pe)/this.pixelRatio;var Oe=document.createElement("canvas");Oe.width=Le-Ye,Oe.height=pe-Pe,Oe.getContext("2d").putImageData(this.canvasContext.getImageData(Ye,Pe,Le-Ye,pe-Pe),0,0),this.drawingImgUrl=Oe.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Ie.prototype.setDrawingImage=function(){ae.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ae.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Ie.prototype.setColor=function(xe){this.color=xe,this.colorChanged(xe)},Ie.prototype.setLineWidth=function(xe){this.lineWidth=xe},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=Object.assign({drawingImgUrl:this.drawingImgUrl},We.prototype.getState.call(this));return xe.typeName=Ie.typeName,xe},Ie.prototype.restoreState=function(xe){this.createVisual(),We.prototype.restoreState.call(this,xe),this.drawingImgUrl=xe.drawingImgUrl,this.setDrawingImage()},Ie.prototype.scale=function(xe,Be){We.prototype.scale.call(this,xe,Be),this.setDrawingImage()},Ie.typeName="FreehandMarker",Ie.title="Freehand marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Ie}(Ce),He=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Ye||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Pe.typeBoxes=[],Pe.currentType=Be,Pe.setCurrentType=Pe.setCurrentType.bind(Pe),Pe}return ie(Ie,We),Ie.prototype.getUi=function(){var xe=this,Be=document.createElement("div");Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2";for(var Ye=function(pe){var we="both";switch(pe){case 0:we="both";break;case 1:we="start";break;case 2:we="end";break;case 3:we="none"}var ke=document.createElement("div");if(ke.style.display="flex",ke.style.flexGrow="2",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.borderColor=we===Pe.currentType?Pe.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){xe.setCurrentType(we,ke)}),Be.appendChild(ke),we==="both"||we==="start"){var Me=document.createElement("div");Me.style.display="flex",Me.style.alignItems="center",Me.style.minHeight="20px",Me.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(Pe.uiStyleSettings!==void 0?Pe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Me.style.marginLeft="5px",ke.appendChild(Me)}var Oe=document.createElement("div");Oe.style.display="flex",Oe.style.alignItems="center",Oe.style.minHeight="20px",Oe.style.flexGrow="2";var tt=document.createElement("hr");if(tt.style.minWidth="20px",tt.style.border="0px",tt.style.borderTop="3px solid "+(Pe.uiStyleSettings!==void 0?Pe.uiStyleSettings.toolboxColor:"#eeeeee"),tt.style.flexGrow="2",Oe.appendChild(tt),ke.appendChild(Oe),we==="both"||we==="end"){var ot=document.createElement("div");ot.style.display="flex",ot.style.alignItems="center",ot.style.minHeight="20px",ot.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(Pe.uiStyleSettings!==void 0?Pe.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ot.style.marginRight="5px",ke.appendChild(ot)}Pe.typeBoxes.push(ke)},Pe=this,Le=0;Le<4;Le++)Ye(Le);return Be},Ie.prototype.setCurrentType=function(xe,Be){var Ye=this;this.currentType=xe,this.typeBoxes.forEach(function(Pe){Pe.style.borderColor=Pe===Be?Ye.uiStyleSettings!==void 0?Ye.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Ie}(ce),ze=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.arrowType="end",Pe.arrowBaseHeight=10,Pe.arrowBaseWidth=10,Pe.getArrowPoints=Pe.getArrowPoints.bind(Pe),Pe.setArrowType=Pe.setArrowType.bind(Pe),Pe.arrowTypePanel=new He("Arrow type","end"),Pe.arrowTypePanel.onArrowTypeChanged=Pe.setArrowType,Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.arrow1&&xe!==this.arrow2)},Ie.prototype.getArrowPoints=function(xe,Be){var Ye=this.arrowBaseWidth+2*this.strokeWidth,Pe=this.arrowBaseHeight+2*this.strokeWidth;return xe-Ye/2+","+(Be+Pe/2)+" "+xe+","+(Be-Pe/2)+" "+(xe+Ye/2)+","+(Be+Pe/2)},Ie.prototype.createTips=function(){this.arrow1=ae.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ae.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.arrow2)},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.state==="creating"&&this.createTips()},Ie.prototype.adjustVisual=function(){if(We.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",ae.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ae.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var xe=0;Math.abs(this.x1-this.x2)>.1&&(xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Be=this.arrow1.transform.baseVal.getItem(0);Be.setRotate(xe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Be,0);var Ye=this.arrow2.transform.baseVal.getItem(0);Ye.setRotate(xe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ye,0)}},Ie.prototype.setArrowType=function(xe){this.arrowType=xe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=Object.assign({arrowType:this.arrowType},We.prototype.getState.call(this));return xe.typeName=Ie.typeName,xe},Ie.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Be=xe;this.arrowType=Be.arrowType,this.createTips(),this.adjustVisual()},Ie.typeName="ArrowMarker",Ie.title="Arrow marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Ie}(Fe),Qe=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.fillColor=Ye.defaultFillColor,Pe.strokeWidth=0,Pe.fillPanel=new le("Color",Ye.defaultColorSet,Ye.defaultFillColor),Pe.fillPanel.onColorChanged=Pe.setFillColor,Pe}return ie(Ie,We),Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Ie.typeName,xe},Ie.typeName="CoverMarker",Ie.title="Cover marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Ie}(he),$e=function(We){function Ie(xe,Be,Ye,Pe){var Le=We.call(this,xe,Pe||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return Le.opacities=[],Le.opacityBoxes=[],Le.opacities=Be,Le.currentOpacity=Ye,Le.setCurrentOpacity=Le.setCurrentOpacity.bind(Le),Le}return ie(Ie,We),Ie.prototype.getUi=function(){var xe=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",Be.style.justifyContent="space-between",this.opacities.forEach(function(Ye){var Pe=document.createElement("div");Pe.style.display="flex",Pe.style.alignItems="center",Pe.style.justifyContent="center",Pe.style.padding="5px",Pe.style.borderWidth="2px",Pe.style.borderStyle="solid",Pe.style.borderColor=Ye===xe.currentOpacity?xe.uiStyleSettings.toolboxAccentColor:"transparent",Pe.addEventListener("click",function(){xe.setCurrentOpacity(Ye,Pe)}),Be.appendChild(Pe);var Le=document.createElement("div");Le.innerText=100*Ye+"%",Pe.appendChild(Le),xe.opacityBoxes.push(Pe)}),Be},Ie.prototype.setCurrentOpacity=function(xe,Be){var Ye=this;this.currentOpacity=xe,this.opacityBoxes.forEach(function(Pe){Pe.style.borderColor=Pe===Be?Ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Ie}(ce),ht=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.setOpacity=Pe.setOpacity.bind(Pe),Pe.fillColor=Ye.defaultHighlightColor,Pe.strokeWidth=0,Pe.opacity=Ye.defaultHighlightOpacity,Pe.fillPanel=new le("Color",Ye.defaultColorSet,Pe.fillColor),Pe.fillPanel.onColorChanged=Pe.setFillColor,Pe.opacityPanel=new $e("Opacity",Ye.defaultOpacitySteps,Pe.opacity),Pe.opacityPanel.onOpacityChanged=Pe.setOpacity,Pe}return ie(Ie,We),Ie.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Ie.typeName,xe},Ie.typeName="HighlightMarker",Ie.title="Highlight marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Ie}(Qe),Ge='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',Ue='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Ke=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.bgColor="transparent",Pe.tipPosition={x:0,y:0},Pe.tipBase1Position={x:0,y:0},Pe.tipBase2Position={x:0,y:0},Pe.tipMoving=!1,Pe.color=Ye.defaultStrokeColor,Pe.bgColor=Ye.defaultFillColor,Pe.fontFamily=Ye.defaultFontFamily,Pe.defaultSize={x:100,y:30},Pe.setBgColor=Pe.setBgColor.bind(Pe),Pe.getTipPoints=Pe.getTipPoints.bind(Pe),Pe.positionTip=Pe.positionTip.bind(Pe),Pe.setTipPoints=Pe.setTipPoints.bind(Pe),Pe.colorPanel=new le("Text color",Ye.defaultColorSet,Pe.color,Ge),Pe.colorPanel.onColorChanged=Pe.setColor,Pe.bgColorPanel=new le("Fill color",Ye.defaultColorSet,Pe.bgColor,Ue),Pe.bgColorPanel.onColorChanged=Pe.setBgColor,Pe.fontFamilyPanel=new Re("Font",Ye.defaultFontFamilies,Ye.defaultFontFamily),Pe.fontFamilyPanel.onFontChanged=Pe.setFont,Pe.tipGrip=new ge,Pe.tipGrip.visual.transform.baseVal.appendItem(ae.createTransform()),Pe.controlBox.appendChild(Pe.tipGrip.visual),Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){return We.prototype.ownsTarget.call(this,xe)||this.tipGrip.ownsTarget(xe)||this.tip===xe},Ie.prototype.createTip=function(){ae.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ae.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Ie.prototype.pointerDown=function(xe,Be){this.state==="new"&&We.prototype.pointerDown.call(this,xe,Be),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Be)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):We.prototype.pointerDown.call(this,xe,Be)},Ie.prototype.pointerUp=function(xe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,We.prototype.pointerUp.call(this,xe);else{var Be=this.state==="creating";We.prototype.pointerUp.call(this,xe),this.setTipPoints(Be),this.positionTip()}},Ie.prototype.manipulate=function(xe){if(this.tipMoving){var Be=this.unrotatePoint(xe);this.tipPosition={x:Be.x-this.manipulationStartLeft,y:Be.y-this.manipulationStartTop},this.positionTip()}else We.prototype.manipulate.call(this,xe)},Ie.prototype.setBgColor=function(xe){this.bgRectangle&&this.tip&&(ae.setAttributes(this.bgRectangle,[["fill",xe]]),ae.setAttributes(this.tip,[["fill",xe]])),this.bgColor=xe,this.fillColorChanged(xe)},Ie.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Ie.prototype.setTipPoints=function(xe){xe===void 0&&(xe=!1);var Be=Math.min(this.height/2,15),Ye=this.height/5;xe&&(this.tipPosition={x:Be+Ye/2,y:this.height+20});var Pe=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Pe<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ye=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:Be,y:0},this.tipBase2Position={x:Be+Ye,y:0}):(this.tipBase1Position={x:0,y:Be},this.tipBase2Position={x:0,y:Be+Ye}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Pe<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ye=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Be-Ye,y:0},this.tipBase2Position={x:this.width-Be,y:0}):(this.tipBase1Position={x:this.width,y:Be},this.tipBase2Position={x:this.width,y:Be+Ye}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Pe<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ye=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Be-Ye,y:this.height},this.tipBase2Position={x:this.width-Be,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Be-Ye},this.tipBase2Position={x:this.width,y:this.height-Be}):Pe<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ye=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:Be,y:this.height},this.tipBase2Position={x:Be+Ye,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Be},this.tipBase2Position={x:0,y:this.height-Be-Ye})},Ie.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.positionTip()},Ie.prototype.positionTip=function(){ae.setAttributes(this.tip,[["points",this.getTipPoints()]]);var xe=this.tipGrip.visual.transform.baseVal.getItem(0);xe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(xe,0)},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Ie.prototype.select=function(){this.positionTip(),We.prototype.select.call(this)},Ie.prototype.getState=function(){var xe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},We.prototype.getState.call(this));return xe.typeName=Ie.typeName,xe},Ie.prototype.restoreState=function(xe){var Be=xe;this.bgColor=Be.bgColor,this.tipPosition=Be.tipPosition,We.prototype.restoreState.call(this,xe),this.createTip(),this.setTipPoints()},Ie.prototype.scale=function(xe,Be){We.prototype.scale.call(this,xe,Be),this.tipPosition={x:this.tipPosition.x*xe,y:this.tipPosition.y*Be},this.positionTip()},Ie.typeName="CalloutMarker",Ie.title="Callout marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Ie}(qe),et=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.fillColor="transparent",Pe.strokeColor="transparent",Pe.strokeWidth=0,Pe.strokeDasharray="",Pe.opacity=1,Pe.strokeColor=Ye.defaultColor,Pe.strokeWidth=Ye.defaultStrokeWidth,Pe.strokeDasharray=Ye.defaultStrokeDasharray,Pe.fillColor=Ye.defaultFillColor,Pe.setStrokeColor=Pe.setStrokeColor.bind(Pe),Pe.setFillColor=Pe.setFillColor.bind(Pe),Pe.setStrokeWidth=Pe.setStrokeWidth.bind(Pe),Pe.setStrokeDasharray=Pe.setStrokeDasharray.bind(Pe),Pe.setOpacity=Pe.setOpacity.bind(Pe),Pe.createVisual=Pe.createVisual.bind(Pe),Pe.strokePanel=new le("Line color",ue(Ye.defaultColorSet,["transparent"]),Ye.defaultColor),Pe.strokePanel.onColorChanged=Pe.setStrokeColor,Pe.fillPanel=new le("Fill color",ue(Ye.defaultColorSet,["transparent"]),Pe.fillColor,Ue),Pe.fillPanel.onColorChanged=Pe.setFillColor,Pe.strokeWidthPanel=new be("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),Pe.strokeWidthPanel.onWidthChanged=Pe.setStrokeWidth,Pe.strokeStylePanel=new Ee("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),Pe.strokeStylePanel.onStyleChanged=Pe.setStrokeDasharray,Pe.opacityPanel=new $e("Opacity",Ye.defaultOpacitySteps,Pe.opacity),Pe.opacityPanel.onOpacityChanged=Pe.setOpacity,Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual)},Ie.prototype.createVisual=function(){this.visual=ae.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Ie.prototype.manipulate=function(xe){We.prototype.manipulate.call(this,xe)},Ie.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.setSize()},Ie.prototype.setSize=function(){We.prototype.setSize.call(this),ae.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Ie.prototype.pointerUp=function(xe){We.prototype.pointerUp.call(this,xe),this.setSize()},Ie.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.visual&&ae.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Ie.prototype.setFillColor=function(xe){this.fillColor=xe,this.visual&&ae.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Ie.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.visual&&ae.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ie.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.visual&&ae.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Ie.prototype.setOpacity=function(xe){this.opacity=xe,this.visual&&ae.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},We.prototype.getState.call(this));return xe.typeName=Ie.typeName,xe},Ie.prototype.restoreState=function(xe){var Be=xe;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.opacity=Be.opacity,this.createVisual(),We.prototype.restoreState.call(this,xe),this.setSize()},Ie.prototype.scale=function(xe,Be){We.prototype.scale.call(this,xe,Be),this.setSize()},Ie.typeName="EllipseMarker",Ie.title="Ellipse marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Ie}(Ce),rt=function(We){function Ie(xe,Be,Ye){return We.call(this,xe,Be,Ye)||this}return ie(Ie,We),Object.defineProperty(Ie.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Ie.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.tip1&&xe!==this.tip2)},Ie.prototype.createTips=function(){this.tip1=ae.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ae.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ae.createTransform()),this.visual.appendChild(this.tip2)},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.state==="creating"&&this.createTips()},Ie.prototype.adjustVisual=function(){if(We.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ae.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var xe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Be=this.tip1.transform.baseVal.getItem(0);Be.setRotate(xe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Be,0);var Ye=this.tip2.transform.baseVal.getItem(0);Ye.setRotate(xe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ye,0)}},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Ie.typeName,xe},Ie.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe),this.createTips(),this.adjustVisual()},Ie.typeName="MeasurementMarker",Ie.title="Measurement marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Ie}(Fe),Xe=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.strokePanel.colors=Ye.defaultColorSet,Pe.fillColor="transparent",Pe}return ie(Ie,We),Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=We.prototype.getState.call(this);return xe.typeName=Ie.typeName,xe},Ie.typeName="EllipseFrameMarker",Ie.title="Ellipse frame marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Ie}(et),ut=function(){function We(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),We.prototype.addUndoStep=function(Ie){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Ie)||(this.undoStack.push(Ie),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Ie)&&this.redoStack.splice(0,this.redoStack.length))},We.prototype.replaceLastUndoStep=function(Ie){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Ie)},We.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},We.prototype.undo=function(){if(this.undoStack.length>1){var Ie=this.undoStack.pop();return Ie!==void 0&&this.redoStack.push(Ie),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},We.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},We}(),lt=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.strokeColor="transparent",Pe.strokeWidth=0,Pe.strokeDasharray="",Pe.curveX=0,Pe.curveY=0,Pe.manipulationStartCurveX=0,Pe.manipulationStartCurveY=0,Pe.setStrokeColor=Pe.setStrokeColor.bind(Pe),Pe.setStrokeWidth=Pe.setStrokeWidth.bind(Pe),Pe.setStrokeDasharray=Pe.setStrokeDasharray.bind(Pe),Pe.positionGrips=Pe.positionGrips.bind(Pe),Pe.addControlGrips=Pe.addControlGrips.bind(Pe),Pe.adjustVisual=Pe.adjustVisual.bind(Pe),Pe.setupControlBox=Pe.setupControlBox.bind(Pe),Pe.resize=Pe.resize.bind(Pe),Pe.strokeColor=Ye.defaultColor,Pe.strokeWidth=Ye.defaultStrokeWidth,Pe.strokeDasharray=Ye.defaultStrokeDasharray,Pe.strokePanel=new le("Line color",Ye.defaultColorSet,Ye.defaultColor),Pe.strokePanel.onColorChanged=Pe.setStrokeColor,Pe.strokeWidthPanel=new be("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),Pe.strokeWidthPanel.onWidthChanged=Pe.setStrokeWidth,Pe.strokeStylePanel=new Ee("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),Pe.strokeStylePanel.onStyleChanged=Pe.setStrokeDasharray,Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.selectorCurve&&xe!==this.visibleCurve&&!this.curveGrip.ownsTarget(xe))},Ie.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Ie.prototype.createVisual=function(){this.visual=ae.createGroup(),this.selectorCurve=ae.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ae.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=xe.x,this.curveY=xe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Be)&&(this.activeGrip=this.curveGrip,this._state="resize")},Ie.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ae.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ae.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ae.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Ie.prototype.setupControlBox=function(){We.prototype.setupControlBox.call(this),this.curveControlLine1=ae.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ae.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Ie.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,We.prototype.addControlGrips.call(this)},Ie.prototype.positionGrips=function(){We.prototype.positionGrips.call(this);var xe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-xe/2,this.curveY-xe/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Ie.prototype.manipulate=function(xe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+xe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+xe.y-this.manipulationStartY),We.prototype.manipulate.call(this,xe)},Ie.prototype.resize=function(xe){this.activeGrip===this.curveGrip&&(this.curveX=xe.x,this.curveY=xe.y),We.prototype.resize.call(this,xe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Ie.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.adjustVisual(),this.colorChanged(xe)},Ie.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.adjustVisual()},Ie.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.adjustVisual()},Ie.prototype.scale=function(xe,Be){this.curveX=this.curveX*xe,this.curveY=this.curveY*Be,We.prototype.scale.call(this,xe,Be)},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},We.prototype.getState.call(this));return xe.typeName=Ie.typeName,xe},Ie.prototype.restoreState=function(xe){We.prototype.restoreState.call(this,xe);var Be=xe;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.curveX=Be.curveX,this.curveY=Be.curveY,this.createVisual(),this.adjustVisual()},Ie.typeName="CurveMarker",Ie.title="Curve marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Ie}(je),kt=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,Be,Ye)||this;return Pe.fillColor="transparent",Pe.strokeColor="transparent",Pe.strokeWidth=0,Pe.strokeDasharray="",Pe.textColor="transparent",Pe.fontSize="1rem",Pe.isMoved=!1,Pe.captionText="Caption",Pe.PADDING=5,Pe.captionBoxWidth=0,Pe.captionBoxHeight=0,Pe.strokeColor=Ye.defaultColor,Pe.strokeWidth=Ye.defaultStrokeWidth,Pe.strokeDasharray=Ye.defaultStrokeDasharray,Pe.fillColor=Ye.defaultFillColor,Pe.textColor=Ye.defaultStrokeColor,Pe.fontFamily=Ye.defaultFontFamily,Pe.fontSize=Ye.defaultCaptionFontSize,Pe.captionText=Ye.defaultCaptionText,Pe.setStrokeColor=Pe.setStrokeColor.bind(Pe),Pe.setFillColor=Pe.setFillColor.bind(Pe),Pe.setStrokeWidth=Pe.setStrokeWidth.bind(Pe),Pe.setStrokeDasharray=Pe.setStrokeDasharray.bind(Pe),Pe.createVisual=Pe.createVisual.bind(Pe),Pe.sizeCaption=Pe.sizeCaption.bind(Pe),Pe.setCaptionText=Pe.setCaptionText.bind(Pe),Pe.showTextEditor=Pe.showTextEditor.bind(Pe),Pe.positionTextEditor=Pe.positionTextEditor.bind(Pe),Pe.finishTextEditing=Pe.finishTextEditing.bind(Pe),Pe.setFont=Pe.setFont.bind(Pe),Pe.setTextColor=Pe.setTextColor.bind(Pe),Pe.strokePanel=new le("Line color",ue(Ye.defaultColorSet,["transparent"]),Pe.strokeColor),Pe.strokePanel.onColorChanged=Pe.setStrokeColor,Pe.fillPanel=new le("Fill color",ue(Ye.defaultColorSet,["transparent"]),Pe.fillColor,Ue),Pe.fillPanel.onColorChanged=Pe.setFillColor,Pe.strokeWidthPanel=new be("Line width",Ye.defaultStrokeWidths,Ye.defaultStrokeWidth),Pe.strokeWidthPanel.onWidthChanged=Pe.setStrokeWidth,Pe.strokeStylePanel=new Ee("Line style",Ye.defaultStrokeDasharrays,Ye.defaultStrokeDasharray),Pe.strokeStylePanel.onStyleChanged=Pe.setStrokeDasharray,Pe.fontFamilyPanel=new Re("Font",Ye.defaultFontFamilies,Ye.defaultFontFamily),Pe.fontFamilyPanel.onFontChanged=Pe.setFont,Pe.textColorPanel=new le("Text color",Ye.defaultColorSet,Pe.textColor,Ge),Pe.textColorPanel.onColorChanged=Pe.setTextColor,Pe}return ie(Ie,We),Ie.prototype.ownsTarget=function(xe){return!(!We.prototype.ownsTarget.call(this,xe)&&xe!==this.visual&&xe!==this.frame&&xe!==this.captionBg&&xe!==this.captionElement)},Ie.prototype.createVisual=function(){this.visual=ae.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ae.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ae.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=ae.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Ie.prototype.setCaptionText=function(xe){this.captionText=xe,this.captionElement.textContent=this.captionText,this.sizeCaption()},Ie.prototype.pointerDown=function(xe,Be){We.prototype.pointerDown.call(this,xe,Be),this.isMoved=!1,this.pointerDownPoint=xe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(xe),this._state="creating")},Ie.prototype.manipulate=function(xe){We.prototype.manipulate.call(this,xe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(xe.x-this.pointerDownPoint.x)>5||Math.abs(xe.y-this.pointerDownPoint.y)>5)},Ie.prototype.resize=function(xe){We.prototype.resize.call(this,xe),this.setSize()},Ie.prototype.sizeCaption=function(){var xe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=xe.width+2*this.PADDING,this.captionBoxHeight=xe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ae.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),ae.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Ie.prototype.showTextEditor=function(){var xe=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Be){Be.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Be){Be.key==="Enter"&&xe.finishTextEditing(xe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){xe.finishTextEditing(xe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Ie.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Ie.prototype.finishTextEditing=function(xe){this.setCaptionText(xe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Ie.prototype.setFont=function(xe){this.captionElement&&ae.setAttributes(this.captionElement,[["font-family",xe]]),this.fontFamily=xe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Ie.prototype.setTextColor=function(xe){this.captionElement&&ae.setAttributes(this.captionElement,[["fill",xe]]),this.textColor=xe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Ie.prototype.setSize=function(){We.prototype.setSize.call(this),ae.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Ie.prototype.pointerUp=function(xe){We.prototype.pointerUp.call(this,xe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Ie.prototype.dblClick=function(xe,Be){We.prototype.dblClick.call(this,xe,Be),this.showTextEditor()},Ie.prototype.setStrokeColor=function(xe){this.strokeColor=xe,this.frame&&ae.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(xe),this.stateChanged()},Ie.prototype.setFillColor=function(xe){this.fillColor=xe,this.captionBg&&ae.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(xe),this.stateChanged()},Ie.prototype.setStrokeWidth=function(xe){this.strokeWidth=xe,this.frame&&ae.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Ie.prototype.setStrokeDasharray=function(xe){this.strokeDasharray=xe,this.frame&&ae.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Ie.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Ie.prototype.getState=function(){var xe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},We.prototype.getState.call(this));return xe.typeName=this.typeName,xe},Ie.prototype.restoreState=function(xe){var Be=xe;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.textColor=Be.textColor,this.fontFamily=Be.fontFamily,this.captionText=Be.captionText,this.fontSize=Be.fontSize,this.createVisual(),We.prototype.restoreState.call(this,xe),this.setSize()},Ie.prototype.scale=function(xe,Be){We.prototype.scale.call(this,xe,Be),this.setSize()},Ie.typeName="CaptionFrameMarker",Ie.title="Caption frame marker",Ie.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Ie}(Ce),pt=function(){function We(Ie,xe){xe===void 0&&(xe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Ie,this.cancelable=xe}return Object.defineProperty(We.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),We.prototype.preventDefault=function(){this._defaultPrevented=!0},We}(),Mt=function(We){function Ie(xe,Be,Ye){var Pe=We.call(this,xe,!1)||this;return Pe.dataUrl=Be,Pe.state=Ye,Pe}return ie(Ie,We),Ie}(pt),wt=function(We){function Ie(xe,Be,Ye){Ye===void 0&&(Ye=!1);var Pe=We.call(this,xe,Ye)||this;return Pe.marker=Be,Pe}return ie(Ie,We),Ie}(pt),bt=function(){function We(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return We.prototype.addEventListener=function(Ie,xe){this[Ie].push(xe)},We.prototype.removeEventListener=function(Ie,xe){var Be=this[Ie].indexOf(xe);Be>-1&&this[Ie].splice(Be,1)},We}(),gt=function(){function We(Ie){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new De,this._isOpen=!1,this.undoRedoManager=new ut,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new bt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=We.instanceCounter++,this.styles=new x(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Ie,this.targetRoot=document.body,this.width=Ie.clientWidth,this.height=Ie.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(We.prototype,"ALL_MARKER_TYPES",{get:function(){return[Ae,Je,ze,qe,Xe,et,ht,Ke,rt,Qe,Fe,lt,kt]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Ae,Je,ze,qe,et,ht,Ke]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Ae,Je,ze,qe,ht]},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Ie){var xe=this;this._availableMarkerTypes.splice(0),Ie.forEach(function(Be){if(typeof Be=="string"){var Ye=xe.ALL_MARKER_TYPES.find(function(Pe){return Pe.typeName===Be});Ye!==void 0&&xe._availableMarkerTypes.push(Ye)}else xe._availableMarkerTypes.push(Be)})},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Ie){this._zoomLevel=Ie,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(We.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),We.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),se.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},We.prototype.show=function(){var Ie=this;this.styles.styleSheetRoot===void 0&&ne.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=ne.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(xe){return xe(new pt(Ie))})},We.prototype.render=function(){return fe(this,void 0,void 0,function(){var Ie;return de(this,function(xe){switch(xe.label){case 0:return this.setCurrentMarker(),(Ie=new te).naturalSize=this.renderAtNaturalSize,Ie.imageType=this.renderImageType,Ie.imageQuality=this.renderImageQuality,Ie.markersOnly=this.renderMarkersOnly,Ie.width=this.renderWidth,Ie.height=this.renderHeight,[4,Ie.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return xe.sent(),[4,Ie.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,xe.sent()]}})})},We.prototype.close=function(Ie){var xe=this;if(Ie===void 0&&(Ie=!1),this.isOpen){var Be=!1;Ie||this.eventListeners.beforeclose.forEach(function(Ye){var Pe=new pt(xe,!0);Ye(Pe),Pe.defaultPrevented&&(Be=!0)}),Be||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Ye){return Ye(new pt(xe))}),this.detachEvents(),this._isOpen=!1)}},We.prototype.addMarkersToToolbar=function(){for(var Ie,xe=[],Be=0;Be<arguments.length;Be++)xe[Be]=arguments[Be];(Ie=this._availableMarkerTypes).push.apply(Ie,xe)},We.prototype.addRenderEventListener=function(Ie){this.addEventListener("render",function(xe){Ie(xe.dataUrl,xe.state)})},We.prototype.removeRenderEventListener=function(Ie){},We.prototype.addCloseEventListener=function(Ie){this.addEventListener("close",function(){Ie()})},We.prototype.removeCloseEventListener=function(Ie){},We.prototype.setupResizeObserver=function(){var Ie=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Ie.resize(Ie.target.clientWidth,Ie.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Ie.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},We.prototype.onPopupTargetResize=function(){var Ie=1*this.target.clientWidth/this.target.clientHeight,xe=this.editorCanvas.clientWidth/Ie>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Ie:this.editorCanvas.clientWidth,Be=xe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Ie;this.resize(xe,Be)},We.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},We.prototype.resize=function(Ie,xe){this._isResizing=!0;var Be=Ie/this.imageWidth,Ye=xe/this.imageHeight;this.imageWidth=Math.round(Ie),this.imageHeight=Math.round(xe),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Be,Ye),this._isResizing=!1},We.prototype.scaleMarkers=function(Ie,xe){var Be,Ye=this;this._currentMarker&&this._currentMarker instanceof qe?this._currentMarker.scale(Ie,xe):(Be=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Pe){Pe!==Ye._currentMarker&&Pe.scale(Ie,xe)}),Be!==void 0&&this.setCurrentMarker(Be)},We.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},We.prototype.setTopLeft=function(){var Ie=this.editingTarget.getBoundingClientRect(),xe=this.editorCanvas.getBoundingClientRect();this.left=Ie.left-xe.left,this.top=Ie.top-xe.top},We.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},We.prototype.addDefs=function(){for(var Ie,xe=[],Be=0;Be<arguments.length;Be++)xe[Be]=arguments[Be];this.defs=ae.createDefs(),this.addDefsToImage(),(Ie=this.defs).append.apply(Ie,xe)},We.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},We.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},We.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},We.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},We.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},We.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},We.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},We.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Ie=document.createElement("a");Ie.href="https://markerjs.com/",Ie.target="_blank",Ie.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Ie.title="Powered by marker.js",Ie.style.display="grid",Ie.style.alignItems="center",Ie.style.justifyItems="center",Ie.style.padding="3px",Ie.style.width="20px",Ie.style.height="20px",this.logoUI.appendChild(Ie),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},We.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},We.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},We.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},We.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Ie=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ie+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new E(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new re(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},We.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},We.prototype.removeMarker=function(Ie){this.markerImage.removeChild(Ie.container),this.markers.indexOf(Ie)>-1&&this.markers.splice(this.markers.indexOf(Ie),1),Ie.dispose()},We.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},We.prototype.toolbarButtonClicked=function(Ie,xe){if(Ie==="marker"&&xe!==void 0)this.createNewMarker(xe);else if(Ie==="action")switch(xe){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},We.prototype.deleteSelectedMarker=function(){var Ie=this;if(this._currentMarker!==void 0){var xe=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ye){var Pe=new wt(Ie,Ie._currentMarker,!0);Ye(Pe),Pe.defaultPrevented&&(xe=!0)}),!xe){var Be=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ye){return Ye(new wt(Ie,Be))})}}},We.prototype.clear=function(){var Ie=this,xe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Le){var pe=new wt(Ie,void 0,!0);Le(pe),pe.defaultPrevented&&(xe=!0)}),!xe)){this.setCurrentMarker();for(var Be=function(Le){var pe=Ye.markers[Le];Ye.setCurrentMarker(Ye.markers[Le]),Ye._currentMarker.dispose(),Ye.markerImage.removeChild(Ye._currentMarker.container),Ye.markers.splice(Ye.markers.indexOf(Ye._currentMarker),1),Ye.eventListeners.markerdelete.forEach(function(we){return we(new wt(Ie,pe))})},Ye=this,Pe=this.markers.length-1;Pe>=0;Pe--)Be(Pe);this.addUndoStep()}},Object.defineProperty(We.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),We.prototype.showNotesEditor=function(){var Ie;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Ie=this._currentMarker.notes)!==null&&Ie!==void 0?Ie:"",this.overlayContainer.appendChild(this.notesArea))},We.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},We.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},We.prototype.addUndoStep=function(){var Ie=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var xe=this.getState(),Be=this.undoRedoManager.getLastUndoStep();if(!Be||Be.width===xe.width&&Be.height===xe.height){var Ye=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(xe),Ye<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Pe){return Pe(new pt(Ie))})}else this.undoRedoManager.replaceLastUndoStep(xe),this.eventListeners.statechange.forEach(function(Pe){return Pe(new pt(Ie))})}},We.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},We.prototype.undoStep=function(){var Ie=this,xe=this.undoRedoManager.undo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Be){return Be(new pt(Ie))}))},We.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},We.prototype.redoStep=function(){var Ie=this,xe=this.undoRedoManager.redo();xe!==void 0&&(this.restoreState(xe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Be){return Be(new pt(Ie))}))},We.prototype.stepZoom=function(){var Ie=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Ie<this.zoomSteps.length-1?this.zoomSteps[Ie+1]:this.zoomSteps[0]},We.prototype.panTo=function(Ie){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Ie.x,top:this.prevPanPoint.y-Ie.y}),this.prevPanPoint=Ie},We.prototype.startRenderAndClose=function(){return fe(this,void 0,void 0,function(){var Ie,xe,Be=this;return de(this,function(Ye){switch(Ye.label){case 0:return[4,this.render()];case 1:return Ie=Ye.sent(),xe=this.getState(),this.eventListeners.render.forEach(function(Pe){return Pe(new Mt(Be,Ie,xe))}),this.close(!0),[2]}})})},We.prototype.getState=function(Ie){Ie===!0&&this.setCurrentMarker();var xe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Be){return xe.markers.push(Be.getState())}),xe},We.prototype.restoreState=function(Ie){var xe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Ie.markers.forEach(function(Be){var Ye=xe._availableMarkerTypes.find(function(Le){return Le.typeName===Be.typeName});if(Ye!==void 0){var Pe=xe.addNewMarker(Ye);Pe.restoreState(Be),xe.markers.push(Pe)}}),Ie.width&&Ie.height&&(Ie.width!==this.imageWidth||Ie.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Ie.width,this.imageHeight/Ie.height),this.eventListeners.restorestate.forEach(function(Be){return Be(new pt(xe))})},We.prototype.addNewMarker=function(Ie){var xe=ae.createGroup();return this.markerImage.appendChild(xe),new Ie(xe,this.overlayContainer,this.settings)},We.prototype.createNewMarker=function(Ie){var xe,Be=this;(xe=typeof Ie=="string"?this._availableMarkerTypes.find(function(Ye){return Ye.typeName===Ie}):Ie)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(xe),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(xe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ye){return Ye(new wt(Be,Be._currentMarker))}))},We.prototype.markerCreated=function(Ie){var xe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Ie),this.setCurrentMarker(Ie),Ie instanceof Je&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Je):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Be){return Be(new wt(xe,xe._currentMarker))})},We.prototype.colorChanged=function(Ie){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Ie,this.settings.defaultStrokeColor=Ie)},We.prototype.fillColorChanged=function(Ie){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Ie)},We.prototype.markerStateChanged=function(Ie){var xe=this;this.eventListeners.markerchange.forEach(function(Be){return Be(new wt(xe,Ie))})},We.prototype.setCurrentMarker=function(Ie){var xe=this;this._currentMarker!==Ie&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Be){return Be(new wt(xe,xe._currentMarker))})),this._currentMarker=Ie,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Be){return Be(new wt(xe,xe._currentMarker))}))},We.prototype.onPointerDown=function(Ie){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Ie.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var xe=this.markers.find(function(Be){return Be.ownsTarget(Ie.target)});xe!==void 0?(this.setCurrentMarker(xe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ie.clientX,Ie.clientY),Ie.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Ie.clientX,y:Ie.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Ie.clientX,Ie.clientY))},We.prototype.onDblClick=function(Ie){if(this._isFocused||this.focus(),this.mode==="select"){var xe=this.markers.find(function(Be){return Be.ownsTarget(Ie.target)});xe!==void 0&&xe!==this._currentMarker&&this.setCurrentMarker(xe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Ie.clientX,Ie.clientY),Ie.target):this.setCurrentMarker()}},We.prototype.onPointerMove=function(Ie){this.touchPoints!==1&&Ie.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Ie.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Ie.clientX,Ie.clientY)):this.zoomLevel>1&&this.panTo({x:Ie.clientX,y:Ie.clientY}))},We.prototype.onPointerUp=function(Ie){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Ie.clientX,Ie.clientY)),this.isDragging=!1,this.addUndoStep()},We.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},We.prototype.onKeyUp=function(Ie){this._currentMarker===void 0||this.notesArea!==void 0||Ie.key!=="Delete"&&Ie.key!=="Backspace"||this.deleteSelectedMarker()},We.prototype.clientToLocalCoordinates=function(Ie,xe){var Be=this.markerImage.getBoundingClientRect();return{x:(Ie-Be.left)/this.zoomLevel,y:(xe-Be.top)/this.zoomLevel}},We.prototype.onWindowResize=function(){this.positionUI()},We.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Ie=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Ie+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},We.prototype.addLicenseKey=function(Ie){se.addKey(Ie)},We.prototype.addEventListener=function(Ie,xe){this.eventListeners.addEventListener(Ie,xe)},We.prototype.removeEventListener=function(Ie,xe){this.eventListeners.removeEventListener(Ie,xe)},We.prototype.renderState=function(Ie){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Ie),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(We.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),We.prototype.focus=function(){var Ie=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(xe){return xe(new pt(Ie))}))},We.prototype.blur=function(){var Ie=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(xe){return xe(new pt(Ie))}))},We.instanceCounter=0,We}()},6551:function(rn,Tt,oe){"use strict";oe.d(Tt,{ZP:function(){return se}});var y=oe(42978),ie=oe(59301),fe=oe(47273),de=0,ue=(0,fe.Z)();function ae(){var te;return ue?(te=de,de+=1):te="TEST_OR_SSR",te}function se(te){var ne=ie.useState(),x=(0,y.Z)(ne,2),b=x[0],ee=x[1];return ie.useEffect(function(){ee("rc_select_".concat(ae()))},[]),te||b}},37463:function(rn,Tt,oe){"use strict";oe.d(Tt,{Ac:function(){return It},Xo:function(){return Pt},Wx:function(){return Sn},ZP:function(){return vr},lk:function(){return _e}});var y=oe(54476),ie=oe(94480),fe=oe(20068),de=oe(33885),ue=oe(42978),ae=oe(75931),se=oe(76190),te=oe(18929),ne=oe(48736),x=oe(59301),b=oe(92310),ee=oe.n(b),E=oe(34280),re=oe(49658),ce=oe(8654),le=function(jt){var xt=jt.className,Ot=jt.customizeIcon,yt=jt.customizeIconProps,Lt=jt.children,Ut=jt.onMouseDown,bn=jt.onClick,Tn=typeof Ot=="function"?Ot(yt):Ot;return x.createElement("span",{className:xt,onMouseDown:function(pn){pn.preventDefault(),Ut==null||Ut(pn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:bn,"aria-hidden":!0},Tn!==void 0?Tn:x.createElement("span",{className:ee()(xt.split(/\s+/).map(function(Gn){return"".concat(Gn,"-icon")}))},Lt))},ve=le,Se=function(jt,xt,Ot,yt,Lt){var Ut=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,bn=arguments.length>6?arguments[6]:void 0,Tn=arguments.length>7?arguments[7]:void 0,Gn=x.useMemo(function(){if((0,se.Z)(yt)==="object")return yt.clearIcon;if(Lt)return Lt},[yt,Lt]),pn=x.useMemo(function(){return!!(!Ut&&yt&&(Ot.length||bn)&&!(Tn==="combobox"&&bn===""))},[yt,Ut,Ot.length,bn,Tn]);return{allowClear:pn,clearIcon:x.createElement(ve,{className:"".concat(jt,"-clear"),onMouseDown:xt,customizeIcon:Gn},"\xD7")}},ge=x.createContext(null);function _e(){return x.useContext(ge)}function Ce(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,jt=x.useState(!1),xt=(0,ue.Z)(jt,2),Ot=xt[0],yt=xt[1],Lt=x.useRef(null),Ut=function(){window.clearTimeout(Lt.current)};x.useEffect(function(){return Ut},[]);var bn=function(Gn,pn){Ut(),Lt.current=window.setTimeout(function(){yt(Gn),pn&&pn()},Nt)};return[Ot,bn,Ut]}function he(){var Nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,jt=x.useRef(null),xt=x.useRef(null);x.useEffect(function(){return function(){window.clearTimeout(xt.current)}},[]);function Ot(yt){(yt||jt.current===null)&&(jt.current=yt),window.clearTimeout(xt.current),xt.current=window.setTimeout(function(){jt.current=null},Nt)}return[function(){return jt.current},Ot]}function be(Nt,jt,xt,Ot){var yt=x.useRef(null);yt.current={open:jt,triggerOpen:xt,customizedTrigger:Ot},x.useEffect(function(){function Lt(Ut){var bn;if(!((bn=yt.current)!==null&&bn!==void 0&&bn.customizedTrigger)){var Tn=Ut.target;Tn.shadowRoot&&Ut.composed&&(Tn=Ut.composedPath()[0]||Tn),yt.current.open&&Nt().filter(function(Gn){return Gn}).every(function(Gn){return!Gn.contains(Tn)&&Gn!==Tn})&&yt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Lt),function(){return window.removeEventListener("mousedown",Lt)}},[])}var Ee=oe(10228);function Ae(Nt){return Nt&&![Ee.Z.ESC,Ee.Z.SHIFT,Ee.Z.BACKSPACE,Ee.Z.TAB,Ee.Z.WIN_KEY,Ee.Z.ALT,Ee.Z.META,Ee.Z.WIN_KEY_RIGHT,Ee.Z.CTRL,Ee.Z.SEMICOLON,Ee.Z.EQUALS,Ee.Z.CAPS_LOCK,Ee.Z.CONTEXT_MENU,Ee.Z.F1,Ee.Z.F2,Ee.Z.F3,Ee.Z.F4,Ee.Z.F5,Ee.Z.F6,Ee.Z.F7,Ee.Z.F8,Ee.Z.F9,Ee.Z.F10,Ee.Z.F11,Ee.Z.F12].includes(Nt)}var De=oe(26112),je=oe(83836);function Fe(Nt,jt,xt){var Ot=(0,de.Z)((0,de.Z)({},Nt),xt?jt:{});return Object.keys(jt).forEach(function(yt){var Lt=jt[yt];typeof Lt=="function"&&(Ot[yt]=function(){for(var Ut,bn=arguments.length,Tn=new Array(bn),Gn=0;Gn<bn;Gn++)Tn[Gn]=arguments[Gn];return Lt.apply(void 0,Tn),(Ut=Nt[yt])===null||Ut===void 0?void 0:Ut.call.apply(Ut,[Nt].concat(Tn))})}),Ot}var Re=Fe,qe=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Je=function(jt,xt){var Ot=jt.prefixCls,yt=jt.id,Lt=jt.inputElement,Ut=jt.autoFocus,bn=jt.autoComplete,Tn=jt.editable,Gn=jt.activeDescendantId,pn=jt.value,tn=jt.open,ln=jt.attrs,Rn=(0,ae.Z)(jt,qe),nr=Lt||x.createElement("input",null),rr=nr,fr=rr.ref,ti=rr.props;return(0,ne.Kp)(!("maxLength"in nr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),nr=x.cloneElement(nr,(0,de.Z)((0,de.Z)((0,de.Z)({type:"search"},Re(Rn,ti,!0)),{},{id:yt,ref:(0,ce.sQ)(xt,fr),autoComplete:bn||"off",autoFocus:Ut,className:ee()("".concat(Ot,"-selection-search-input"),ti==null?void 0:ti.className),role:"combobox","aria-expanded":tn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(yt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(yt,"_list"),"aria-activedescendant":tn?Gn:void 0},ln),{},{value:Tn?pn:"",readOnly:!Tn,unselectable:Tn?null:"on",style:(0,de.Z)((0,de.Z)({},ti.style),{},{opacity:Tn?null:0})})),nr},He=x.forwardRef(Je),ze=He;function Qe(Nt){return Array.isArray(Nt)?Nt:Nt!==void 0?[Nt]:[]}var $e=typeof window!="undefined"&&window.document&&window.document.documentElement,ht=$e;function Ge(Nt){return Nt!=null}function Ue(Nt){return!Nt&&Nt!==0}function Ke(Nt){return["string","number"].includes((0,se.Z)(Nt))}function et(Nt){var jt=void 0;return Nt&&(Ke(Nt.title)?jt=Nt.title.toString():Ke(Nt.label)&&(jt=Nt.label.toString())),jt}function rt(Nt,jt){ht?x.useLayoutEffect(Nt,jt):x.useEffect(Nt,jt)}function Xe(Nt){var jt;return(jt=Nt.key)!==null&&jt!==void 0?jt:Nt.value}var ut=function(jt){jt.preventDefault(),jt.stopPropagation()},lt=function(jt){var xt=jt.id,Ot=jt.prefixCls,yt=jt.values,Lt=jt.open,Ut=jt.searchValue,bn=jt.autoClearSearchValue,Tn=jt.inputRef,Gn=jt.placeholder,pn=jt.disabled,tn=jt.mode,ln=jt.showSearch,Rn=jt.autoFocus,nr=jt.autoComplete,rr=jt.activeDescendantId,fr=jt.tabIndex,ti=jt.removeIcon,fn=jt.maxTagCount,Kt=jt.maxTagTextLength,gn=jt.maxTagPlaceholder,xn=gn===void 0?function(er){return"+ ".concat(er.length," ...")}:gn,Ln=jt.tagRender,Un=jt.onToggleOpen,hr=jt.onRemove,ar=jt.onInputChange,Sr=jt.onInputPaste,Cr=jt.onInputKeyDown,yr=jt.onInputMouseDown,pr=jt.onInputCompositionStart,$r=jt.onInputCompositionEnd,kr=jt.onInputBlur,Nr=x.useRef(null),Yr=(0,x.useState)(0),ai=(0,ue.Z)(Yr,2),Rr=ai[0],ii=ai[1],Dr=(0,x.useState)(!1),fi=(0,ue.Z)(Dr,2),Lr=fi[0],wi=fi[1],Jr="".concat(Ot,"-selection"),Zr=Lt||tn==="multiple"&&bn===!1||tn==="tags"?Ut:"",si=tn==="tags"||tn==="multiple"&&bn===!1||ln&&(Lt||Lr);rt(function(){ii(Nr.current.scrollWidth)},[Zr]);var vi=function(zn,xr,Br,Wn,Jn){return x.createElement("span",{title:et(zn),className:ee()("".concat(Jr,"-item"),(0,fe.Z)({},"".concat(Jr,"-item-disabled"),Br))},x.createElement("span",{className:"".concat(Jr,"-item-content")},xr),Wn&&x.createElement(ve,{className:"".concat(Jr,"-item-remove"),onMouseDown:ut,onClick:Jn,customizeIcon:ti},"\xD7"))},pi=function(zn,xr,Br,Wn,Jn,gr){var br=function(Ri){ut(Ri),Un(!Lt)};return x.createElement("span",{onMouseDown:br},Ln({label:xr,value:zn,disabled:Br,closable:Wn,onClose:Jn,isMaxTag:!!gr}))},ri=function(zn){var xr=zn.disabled,Br=zn.label,Wn=zn.value,Jn=!pn&&!xr,gr=Br;if(typeof Kt=="number"&&(typeof Br=="string"||typeof Br=="number")){var br=String(gr);br.length>Kt&&(gr="".concat(br.slice(0,Kt),"..."))}var ui=function(gi){gi&&gi.stopPropagation(),hr(zn)};return typeof Ln=="function"?pi(Wn,gr,xr,Jn,ui):vi(zn,gr,xr,Jn,ui)},Er=function(zn){if(!yt.length)return null;var xr=typeof xn=="function"?xn(zn):xn;return typeof Ln=="function"?pi(void 0,xr,!1,!1,void 0,!0):vi({title:xr},xr,!1)},kn=x.createElement("div",{className:"".concat(Jr,"-search"),style:{width:Rr},onFocus:function(){wi(!0)},onBlur:function(){wi(!1)}},x.createElement(ze,{ref:Tn,open:Lt,prefixCls:Ot,id:xt,inputElement:null,disabled:pn,autoFocus:Rn,autoComplete:nr,editable:si,activeDescendantId:rr,value:Zr,onKeyDown:Cr,onMouseDown:yr,onChange:ar,onPaste:Sr,onCompositionStart:pr,onCompositionEnd:$r,onBlur:kr,tabIndex:fr,attrs:(0,De.Z)(jt,!0)}),x.createElement("span",{ref:Nr,className:"".concat(Jr,"-search-mirror"),"aria-hidden":!0},Zr,"\xA0")),Xn=x.createElement(je.Z,{prefixCls:"".concat(Jr,"-overflow"),data:yt,renderItem:ri,renderRest:Er,suffix:kn,itemKey:Xe,maxCount:fn});return x.createElement("span",{className:"".concat(Jr,"-wrap")},Xn,!yt.length&&!Zr&&x.createElement("span",{className:"".concat(Jr,"-placeholder")},Gn))},kt=lt,pt=function(jt){var xt=jt.inputElement,Ot=jt.prefixCls,yt=jt.id,Lt=jt.inputRef,Ut=jt.disabled,bn=jt.autoFocus,Tn=jt.autoComplete,Gn=jt.activeDescendantId,pn=jt.mode,tn=jt.open,ln=jt.values,Rn=jt.placeholder,nr=jt.tabIndex,rr=jt.showSearch,fr=jt.searchValue,ti=jt.activeValue,fn=jt.maxLength,Kt=jt.onInputKeyDown,gn=jt.onInputMouseDown,xn=jt.onInputChange,Ln=jt.onInputPaste,Un=jt.onInputCompositionStart,hr=jt.onInputCompositionEnd,ar=jt.onInputBlur,Sr=jt.title,Cr=x.useState(!1),yr=(0,ue.Z)(Cr,2),pr=yr[0],$r=yr[1],kr=pn==="combobox",Nr=kr||rr,Yr=ln[0],ai=fr||"";kr&&ti&&!pr&&(ai=ti),x.useEffect(function(){kr&&$r(!1)},[kr,ti]);var Rr=pn!=="combobox"&&!tn&&!rr?!1:!!ai,ii=Sr===void 0?et(Yr):Sr,Dr=x.useMemo(function(){return Yr?null:x.createElement("span",{className:"".concat(Ot,"-selection-placeholder"),style:Rr?{visibility:"hidden"}:void 0},Rn)},[Yr,Rr,Rn,Ot]);return x.createElement("span",{className:"".concat(Ot,"-selection-wrap")},x.createElement("span",{className:"".concat(Ot,"-selection-search")},x.createElement(ze,{ref:Lt,prefixCls:Ot,id:yt,open:tn,inputElement:xt,disabled:Ut,autoFocus:bn,autoComplete:Tn,editable:Nr,activeDescendantId:Gn,value:ai,onKeyDown:Kt,onMouseDown:gn,onChange:function(Lr){$r(!0),xn(Lr)},onPaste:Ln,onCompositionStart:Un,onCompositionEnd:hr,onBlur:ar,tabIndex:nr,attrs:(0,De.Z)(jt,!0),maxLength:kr?fn:void 0})),!kr&&Yr?x.createElement("span",{className:"".concat(Ot,"-selection-item"),title:ii,style:Rr?{visibility:"hidden"}:void 0},Yr.label):null,Dr)},Mt=pt,wt=function(jt,xt){var Ot=(0,x.useRef)(null),yt=(0,x.useRef)(!1),Lt=jt.prefixCls,Ut=jt.open,bn=jt.mode,Tn=jt.showSearch,Gn=jt.tokenWithEnter,pn=jt.disabled,tn=jt.prefix,ln=jt.autoClearSearchValue,Rn=jt.onSearch,nr=jt.onSearchSubmit,rr=jt.onToggleOpen,fr=jt.onInputKeyDown,ti=jt.onInputBlur,fn=jt.domRef;x.useImperativeHandle(xt,function(){return{focus:function(ii){Ot.current.focus(ii)},blur:function(){Ot.current.blur()}}});var Kt=he(0),gn=(0,ue.Z)(Kt,2),xn=gn[0],Ln=gn[1],Un=function(ii){var Dr=ii.which,fi=Ot.current instanceof HTMLTextAreaElement;!fi&&Ut&&(Dr===Ee.Z.UP||Dr===Ee.Z.DOWN)&&ii.preventDefault(),fr&&fr(ii),Dr===Ee.Z.ENTER&&bn==="tags"&&!yt.current&&!Ut&&(nr==null||nr(ii.target.value)),!(fi&&!Ut&&~[Ee.Z.UP,Ee.Z.DOWN,Ee.Z.LEFT,Ee.Z.RIGHT].indexOf(Dr))&&Ae(Dr)&&rr(!0)},hr=function(){Ln(!0)},ar=(0,x.useRef)(null),Sr=function(ii){Rn(ii,!0,yt.current)!==!1&&rr(!0)},Cr=function(){yt.current=!0},yr=function(ii){yt.current=!1,bn!=="combobox"&&Sr(ii.target.value)},pr=function(ii){var Dr=ii.target.value;if(Gn&&ar.current&&/[\r\n]/.test(ar.current)){var fi=ar.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Dr=Dr.replace(fi,ar.current)}ar.current=null,Sr(Dr)},$r=function(ii){var Dr=ii.clipboardData,fi=Dr==null?void 0:Dr.getData("text");ar.current=fi||""},kr=function(ii){var Dr=ii.target;if(Dr!==Ot.current){var fi=document.body.style.msTouchAction!==void 0;fi?setTimeout(function(){Ot.current.focus()}):Ot.current.focus()}},Nr=function(ii){var Dr=xn();ii.target!==Ot.current&&!Dr&&!(bn==="combobox"&&pn)&&ii.preventDefault(),(bn!=="combobox"&&(!Tn||!Dr)||!Ut)&&(Ut&&ln!==!1&&Rn("",!0,!1),rr())},Yr={inputRef:Ot,onInputKeyDown:Un,onInputMouseDown:hr,onInputChange:pr,onInputPaste:$r,onInputCompositionStart:Cr,onInputCompositionEnd:yr,onInputBlur:ti},ai=bn==="multiple"||bn==="tags"?x.createElement(kt,(0,y.Z)({},jt,Yr)):x.createElement(Mt,(0,y.Z)({},jt,Yr));return x.createElement("div",{ref:fn,className:"".concat(Lt,"-selector"),onClick:kr,onMouseDown:Nr},tn&&x.createElement("div",{className:"".concat(Lt,"-prefix")},tn),ai)},bt=x.forwardRef(wt),gt=bt,We=oe(65030),Ie=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],xe=function(jt){var xt=jt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:xt,adjustY:1},htmlRegion:"scroll"}}},Be=function(jt,xt){var Ot=jt.prefixCls,yt=jt.disabled,Lt=jt.visible,Ut=jt.children,bn=jt.popupElement,Tn=jt.animation,Gn=jt.transitionName,pn=jt.dropdownStyle,tn=jt.dropdownClassName,ln=jt.direction,Rn=ln===void 0?"ltr":ln,nr=jt.placement,rr=jt.builtinPlacements,fr=jt.dropdownMatchSelectWidth,ti=jt.dropdownRender,fn=jt.dropdownAlign,Kt=jt.getPopupContainer,gn=jt.empty,xn=jt.getTriggerDOMNode,Ln=jt.onPopupVisibleChange,Un=jt.onPopupMouseEnter,hr=(0,ae.Z)(jt,Ie),ar="".concat(Ot,"-dropdown"),Sr=bn;ti&&(Sr=ti(bn));var Cr=x.useMemo(function(){return rr||xe(fr)},[rr,fr]),yr=Tn?"".concat(ar,"-").concat(Tn):Gn,pr=typeof fr=="number",$r=x.useMemo(function(){return pr?null:fr===!1?"minWidth":"width"},[fr,pr]),kr=pn;pr&&(kr=(0,de.Z)((0,de.Z)({},kr),{},{width:fr}));var Nr=x.useRef(null);return x.useImperativeHandle(xt,function(){return{getPopupElement:function(){var ai;return(ai=Nr.current)===null||ai===void 0?void 0:ai.popupElement}}}),x.createElement(We.Z,(0,y.Z)({},hr,{showAction:Ln?["click"]:[],hideAction:Ln?["click"]:[],popupPlacement:nr||(Rn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Cr,prefixCls:ar,popupTransitionName:yr,popup:x.createElement("div",{onMouseEnter:Un},Sr),ref:Nr,stretch:$r,popupAlign:fn,popupVisible:Lt,getPopupContainer:Kt,popupClassName:ee()(tn,(0,fe.Z)({},"".concat(ar,"-empty"),gn)),popupStyle:kr,getTriggerDOMNode:xn,onPopupVisibleChange:Ln}),Ut)},Ye=x.forwardRef(Be),Pe=Ye,Le=oe(66712);function pe(Nt,jt){var xt=Nt.key,Ot;return"value"in Nt&&(Ot=Nt.value),xt!=null?xt:Ot!==void 0?Ot:"rc-index-key-".concat(jt)}function we(Nt){return typeof Nt!="undefined"&&!Number.isNaN(Nt)}function ke(Nt,jt){var xt=Nt||{},Ot=xt.label,yt=xt.value,Lt=xt.options,Ut=xt.groupLabel,bn=Ot||(jt?"children":"label");return{label:bn,value:yt||"value",options:Lt||"options",groupLabel:Ut||bn}}function Me(Nt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},xt=jt.fieldNames,Ot=jt.childrenAsData,yt=[],Lt=ke(xt,!1),Ut=Lt.label,bn=Lt.value,Tn=Lt.options,Gn=Lt.groupLabel;function pn(tn,ln){Array.isArray(tn)&&tn.forEach(function(Rn){if(ln||!(Tn in Rn)){var nr=Rn[bn];yt.push({key:pe(Rn,yt.length),groupOption:ln,data:Rn,label:Rn[Ut],value:nr})}else{var rr=Rn[Gn];rr===void 0&&Ot&&(rr=Rn.label),yt.push({key:pe(Rn,yt.length),group:!0,data:Rn,label:rr}),pn(Rn[Tn],!0)}})}return pn(Nt,!1),yt}function Oe(Nt){var jt=(0,de.Z)({},Nt);return"props"in jt||Object.defineProperty(jt,"props",{get:function(){return(0,ne.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),jt}}),jt}var tt=function(jt,xt,Ot){if(!xt||!xt.length)return null;var yt=!1,Lt=function bn(Tn,Gn){var pn=(0,Le.Z)(Gn),tn=pn[0],ln=pn.slice(1);if(!tn)return[Tn];var Rn=Tn.split(tn);return yt=yt||Rn.length>1,Rn.reduce(function(nr,rr){return[].concat((0,ie.Z)(nr),(0,ie.Z)(bn(rr,ln)))},[]).filter(Boolean)},Ut=Lt(jt,xt);return yt?typeof Ot!="undefined"?Ut.slice(0,Ot):Ut:null},ot=x.createContext(null),st=ot;function ft(Nt){var jt=Nt.visible,xt=Nt.values;if(!jt)return null;var Ot=50;return x.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(xt.slice(0,Ot).map(function(yt){var Lt=yt.label,Ut=yt.value;return["number","string"].includes((0,se.Z)(Lt))?Lt:Ut}).join(", ")),xt.length>Ot?", ...":null)}var Ft=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Bt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],qt=function(jt){return jt==="tags"||jt==="multiple"},$t=x.forwardRef(function(Nt,jt){var xt,Ot=Nt.id,yt=Nt.prefixCls,Lt=Nt.className,Ut=Nt.showSearch,bn=Nt.tagRender,Tn=Nt.direction,Gn=Nt.omitDomProps,pn=Nt.displayValues,tn=Nt.onDisplayValuesChange,ln=Nt.emptyOptions,Rn=Nt.notFoundContent,nr=Rn===void 0?"Not Found":Rn,rr=Nt.onClear,fr=Nt.mode,ti=Nt.disabled,fn=Nt.loading,Kt=Nt.getInputElement,gn=Nt.getRawInputElement,xn=Nt.open,Ln=Nt.defaultOpen,Un=Nt.onDropdownVisibleChange,hr=Nt.activeValue,ar=Nt.onActiveValueChange,Sr=Nt.activeDescendantId,Cr=Nt.searchValue,yr=Nt.autoClearSearchValue,pr=Nt.onSearch,$r=Nt.onSearchSplit,kr=Nt.tokenSeparators,Nr=Nt.allowClear,Yr=Nt.prefix,ai=Nt.suffixIcon,Rr=Nt.clearIcon,ii=Nt.OptionList,Dr=Nt.animation,fi=Nt.transitionName,Lr=Nt.dropdownStyle,wi=Nt.dropdownClassName,Jr=Nt.dropdownMatchSelectWidth,Zr=Nt.dropdownRender,si=Nt.dropdownAlign,vi=Nt.placement,pi=Nt.builtinPlacements,ri=Nt.getPopupContainer,Er=Nt.showAction,kn=Er===void 0?[]:Er,Xn=Nt.onFocus,er=Nt.onBlur,zn=Nt.onKeyUp,xr=Nt.onKeyDown,Br=Nt.onMouseDown,Wn=(0,ae.Z)(Nt,Ft),Jn=qt(fr),gr=(Ut!==void 0?Ut:Jn)||fr==="combobox",br=(0,de.Z)({},Wn);Bt.forEach(function(so){delete br[so]}),Gn==null||Gn.forEach(function(so){delete br[so]});var ui=x.useState(!1),Ri=(0,ue.Z)(ui,2),gi=Ri[0],Hi=Ri[1];x.useEffect(function(){Hi((0,re.Z)())},[]);var Oi=x.useRef(null),Pi=x.useRef(null),ki=x.useRef(null),Fi=x.useRef(null),Ni=x.useRef(null),qi=x.useRef(!1),So=Ce(),xo=(0,ue.Z)(So,3),eo=xo[0],Yi=xo[1],oi=xo[2];x.useImperativeHandle(jt,function(){var so,Gi;return{focus:(so=Fi.current)===null||so===void 0?void 0:so.focus,blur:(Gi=Fi.current)===null||Gi===void 0?void 0:Gi.blur,scrollTo:function(ba){var Ho;return(Ho=Ni.current)===null||Ho===void 0?void 0:Ho.scrollTo(ba)},nativeElement:Oi.current||Pi.current}});var Xr=x.useMemo(function(){var so;if(fr!=="combobox")return Cr;var Gi=(so=pn[0])===null||so===void 0?void 0:so.value;return typeof Gi=="string"||typeof Gi=="number"?String(Gi):""},[Cr,fr,pn]),$i=fr==="combobox"&&typeof Kt=="function"&&Kt()||null,ro=typeof gn=="function"&&gn(),ao=(0,ce.x1)(Pi,ro==null||(xt=ro.props)===null||xt===void 0?void 0:xt.ref),la=x.useState(!1),Vo=(0,ue.Z)(la,2),Ko=Vo[0],ha=Vo[1];(0,E.Z)(function(){ha(!0)},[]);var wo=(0,te.Z)(!1,{defaultValue:Ln,value:xn}),Zo=(0,ue.Z)(wo,2),pa=Zo[0],xa=Zo[1],ko=Ko?pa:!1,Za=!nr&&ln;(ti||Za&&ko&&fr==="combobox")&&(ko=!1);var Va=Za?!1:ko,Ii=x.useCallback(function(so){var Gi=so!==void 0?so:!ko;ti||(xa(Gi),ko!==Gi&&(Un==null||Un(Gi)))},[ti,ko,xa,Un]),Zi=x.useMemo(function(){return(kr||[]).some(function(so){return[`
|
|
|
`,`\r
|
|
|
`].includes(so)})},[kr]),Ei=x.useContext(st)||{},Mi=Ei.maxCount,io=Ei.rawValues,to=function(Gi,ra,ba){if(!(Jn&&we(Mi)&&(io==null?void 0:io.size)>=Mi)){var Ho=!0,ia=Gi;ar==null||ar(null);var ls=tt(Gi,kr,we(Mi)?Mi-io.size:void 0),$a=ba?null:ls;return fr!=="combobox"&&$a&&(ia="",$r==null||$r($a),Ii(!1),Ho=!1),pr&&Xr!==ia&&pr(ia,{source:ra?"typing":"effect"}),Ho}},ea=function(Gi){!Gi||!Gi.trim()||pr(Gi,{source:"submit"})};x.useEffect(function(){!ko&&!Jn&&fr!=="combobox"&&to("",!1,!1)},[ko]),x.useEffect(function(){pa&&ti&&xa(!1),ti&&!qi.current&&Yi(!1)},[ti]);var Wo=he(),ca=(0,ue.Z)(Wo,2),$o=ca[0],Na=ca[1],os=x.useRef(!1),Aa=function(Gi){var ra=$o(),ba=Gi.key,Ho=ba==="Enter";if(Ho&&(fr!=="combobox"&&Gi.preventDefault(),ko||Ii(!0)),Na(!!Xr),ba==="Backspace"&&!ra&&Jn&&!Xr&&pn.length){for(var ia=(0,ie.Z)(pn),ls=null,$a=ia.length-1;$a>=0;$a-=1){var cs=ia[$a];if(!cs.disabled){ia.splice($a,1),ls=cs;break}}ls&&tn(ia,{type:"remove",values:[ls]})}for(var Da=arguments.length,Ma=new Array(Da>1?Da-1:0),Qa=1;Qa<Da;Qa++)Ma[Qa-1]=arguments[Qa];if(ko&&(!Ho||!os.current)){var bs;Ho&&(os.current=!0),(bs=Ni.current)===null||bs===void 0||bs.onKeyDown.apply(bs,[Gi].concat(Ma))}xr==null||xr.apply(void 0,[Gi].concat(Ma))},Ka=function(Gi){for(var ra=arguments.length,ba=new Array(ra>1?ra-1:0),Ho=1;Ho<ra;Ho++)ba[Ho-1]=arguments[Ho];if(ko){var ia;(ia=Ni.current)===null||ia===void 0||ia.onKeyUp.apply(ia,[Gi].concat(ba))}Gi.key==="Enter"&&(os.current=!1),zn==null||zn.apply(void 0,[Gi].concat(ba))},Ya=function(Gi){var ra=pn.filter(function(ba){return ba!==Gi});tn(ra,{type:"remove",values:[Gi]})},Ba=function(){os.current=!1},as=x.useRef(!1),Xa=function(){Yi(!0),ti||(Xn&&!as.current&&Xn.apply(void 0,arguments),kn.includes("focus")&&Ii(!0)),as.current=!0},il=function(){qi.current=!0,Yi(!1,function(){as.current=!1,qi.current=!1,Ii(!1)}),!ti&&(Xr&&(fr==="tags"?pr(Xr,{source:"submit"}):fr==="multiple"&&pr("",{source:"blur"})),er&&er.apply(void 0,arguments))},Ja=[];x.useEffect(function(){return function(){Ja.forEach(function(so){return clearTimeout(so)}),Ja.splice(0,Ja.length)}},[]);var vs=function(Gi){var ra,ba=Gi.target,Ho=(ra=ki.current)===null||ra===void 0?void 0:ra.getPopupElement();if(Ho&&Ho.contains(ba)){var ia=setTimeout(function(){var Da=Ja.indexOf(ia);if(Da!==-1&&Ja.splice(Da,1),oi(),!gi&&!Ho.contains(document.activeElement)){var Ma;(Ma=Fi.current)===null||Ma===void 0||Ma.focus()}});Ja.push(ia)}for(var ls=arguments.length,$a=new Array(ls>1?ls-1:0),cs=1;cs<ls;cs++)$a[cs-1]=arguments[cs];Br==null||Br.apply(void 0,[Gi].concat($a))},Wa=x.useState({}),Ll=(0,ue.Z)(Wa,2),$s=Ll[1];function Es(){$s({})}var hl;ro&&(hl=function(Gi){Ii(Gi)}),be(function(){var so;return[Oi.current,(so=ki.current)===null||so===void 0?void 0:so.getPopupElement()]},Va,Ii,!!ro);var Al=x.useMemo(function(){return(0,de.Z)((0,de.Z)({},Nt),{},{notFoundContent:nr,open:ko,triggerOpen:Va,id:Ot,showSearch:gr,multiple:Jn,toggleOpen:Ii})},[Nt,nr,Va,ko,Ot,gr,Jn,Ii]),Gs=!!ai||fn,ss;Gs&&(ss=x.createElement(ve,{className:ee()("".concat(yt,"-arrow"),(0,fe.Z)({},"".concat(yt,"-arrow-loading"),fn)),customizeIcon:ai,customizeIconProps:{loading:fn,searchValue:Xr,open:ko,focused:eo,showSearch:gr}}));var gs=function(){var Gi;rr==null||rr(),(Gi=Fi.current)===null||Gi===void 0||Gi.focus(),tn([],{type:"clear",values:pn}),to("",!1,!1)},ks=Se(yt,gs,pn,Nr,Rr,ti,Xr,fr),Vs=ks.allowClear,ys=ks.clearIcon,Ks=x.createElement(ii,{ref:Ni}),Rs=ee()(yt,Lt,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(yt,"-focused"),eo),"".concat(yt,"-multiple"),Jn),"".concat(yt,"-single"),!Jn),"".concat(yt,"-allow-clear"),Nr),"".concat(yt,"-show-arrow"),Gs),"".concat(yt,"-disabled"),ti),"".concat(yt,"-loading"),fn),"".concat(yt,"-open"),ko),"".concat(yt,"-customize-input"),$i),"".concat(yt,"-show-search"),gr)),Ts=x.createElement(Pe,{ref:ki,disabled:ti,prefixCls:yt,visible:Va,popupElement:Ks,animation:Dr,transitionName:fi,dropdownStyle:Lr,dropdownClassName:wi,direction:Tn,dropdownMatchSelectWidth:Jr,dropdownRender:Zr,dropdownAlign:si,placement:vi,builtinPlacements:pi,getPopupContainer:ri,empty:ln,getTriggerDOMNode:function(Gi){return Pi.current||Gi},onPopupVisibleChange:hl,onPopupMouseEnter:Es},ro?x.cloneElement(ro,{ref:ao}):x.createElement(gt,(0,y.Z)({},Nt,{domRef:Pi,prefixCls:yt,inputElement:$i,ref:Fi,id:Ot,prefix:Yr,showSearch:gr,autoClearSearchValue:yr,mode:fr,activeDescendantId:Sr,tagRender:bn,values:pn,open:ko,onToggleOpen:Ii,activeValue:hr,searchValue:Xr,onSearch:to,onSearchSubmit:ea,onRemove:Ya,tokenWithEnter:Zi,onInputBlur:Ba}))),ya;return ro?ya=Ts:ya=x.createElement("div",(0,y.Z)({className:Rs},br,{ref:Oi,onMouseDown:vs,onKeyDown:Aa,onKeyUp:Ka,onFocus:Xa,onBlur:il}),x.createElement(ft,{visible:eo&&!ko,values:pn}),Ts,ss,Vs&&ys),x.createElement(ge.Provider,{value:Al},ya)}),It=$t,en=function(){return null};en.isSelectOptGroup=!0;var Pt=en,cn=function(){return null};cn.isSelectOption=!0;var Sn=cn,An=oe(80547),wn=oe(2738),At=oe(48911);function Gt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var on=["disabled","title","children","style","className"];function vn(Nt){return typeof Nt=="string"||typeof Nt=="number"}var Nn=function(jt,xt){var Ot=_e(),yt=Ot.prefixCls,Lt=Ot.id,Ut=Ot.open,bn=Ot.multiple,Tn=Ot.mode,Gn=Ot.searchValue,pn=Ot.toggleOpen,tn=Ot.notFoundContent,ln=Ot.onPopupScroll,Rn=x.useContext(st),nr=Rn.maxCount,rr=Rn.flattenOptions,fr=Rn.onActiveValue,ti=Rn.defaultActiveFirstOption,fn=Rn.onSelect,Kt=Rn.menuItemSelectedIcon,gn=Rn.rawValues,xn=Rn.fieldNames,Ln=Rn.virtual,Un=Rn.direction,hr=Rn.listHeight,ar=Rn.listItemHeight,Sr=Rn.optionRender,Cr="".concat(yt,"-item"),yr=(0,An.Z)(function(){return rr},[Ut,rr],function(Er,kn){return kn[0]&&Er[1]!==kn[1]}),pr=x.useRef(null),$r=x.useMemo(function(){return bn&&we(nr)&&(gn==null?void 0:gn.size)>=nr},[bn,nr,gn==null?void 0:gn.size]),kr=function(kn){kn.preventDefault()},Nr=function(kn){var Xn;(Xn=pr.current)===null||Xn===void 0||Xn.scrollTo(typeof kn=="number"?{index:kn}:kn)},Yr=x.useCallback(function(Er){return Tn==="combobox"?!1:gn.has(Er)},[Tn,(0,ie.Z)(gn).toString(),gn.size]),ai=function(kn){for(var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,er=yr.length,zn=0;zn<er;zn+=1){var xr=(kn+zn*Xn+er)%er,Br=yr[xr]||{},Wn=Br.group,Jn=Br.data;if(!Wn&&!(Jn!=null&&Jn.disabled)&&(Yr(Jn.value)||!$r))return xr}return-1},Rr=x.useState(function(){return ai(0)}),ii=(0,ue.Z)(Rr,2),Dr=ii[0],fi=ii[1],Lr=function(kn){var Xn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;fi(kn);var er={source:Xn?"keyboard":"mouse"},zn=yr[kn];if(!zn){fr(null,-1,er);return}fr(zn.value,kn,er)};(0,x.useEffect)(function(){Lr(ti!==!1?ai(0):-1)},[yr.length,Gn]);var wi=x.useCallback(function(Er){return Tn==="combobox"?String(Er).toLowerCase()===Gn.toLowerCase():gn.has(Er)},[Tn,Gn,(0,ie.Z)(gn).toString(),gn.size]);(0,x.useEffect)(function(){var Er=setTimeout(function(){if(!bn&&Ut&&gn.size===1){var Xn=Array.from(gn)[0],er=yr.findIndex(function(zn){var xr=zn.data;return Gn?String(xr.value).startsWith(Gn):xr.value===Xn});er!==-1&&(Lr(er),Nr(er))}});if(Ut){var kn;(kn=pr.current)===null||kn===void 0||kn.scrollTo(void 0)}return function(){return clearTimeout(Er)}},[Ut,Gn]);var Jr=function(kn){kn!==void 0&&fn(kn,{selected:!gn.has(kn)}),bn||pn(!1)};if(x.useImperativeHandle(xt,function(){return{onKeyDown:function(kn){var Xn=kn.which,er=kn.ctrlKey;switch(Xn){case Ee.Z.N:case Ee.Z.P:case Ee.Z.UP:case Ee.Z.DOWN:{var zn=0;if(Xn===Ee.Z.UP?zn=-1:Xn===Ee.Z.DOWN?zn=1:Gt()&&er&&(Xn===Ee.Z.N?zn=1:Xn===Ee.Z.P&&(zn=-1)),zn!==0){var xr=ai(Dr+zn,zn);Nr(xr),Lr(xr,!0)}break}case Ee.Z.TAB:case Ee.Z.ENTER:{var Br,Wn=yr[Dr];Wn&&!(Wn!=null&&(Br=Wn.data)!==null&&Br!==void 0&&Br.disabled)&&!$r?Jr(Wn.value):Jr(void 0),Ut&&kn.preventDefault();break}case Ee.Z.ESC:pn(!1),Ut&&kn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(kn){Nr(kn)}}}),yr.length===0)return x.createElement("div",{role:"listbox",id:"".concat(Lt,"_list"),className:"".concat(Cr,"-empty"),onMouseDown:kr},tn);var Zr=Object.keys(xn).map(function(Er){return xn[Er]}),si=function(kn){return kn.label};function vi(Er,kn){var Xn=Er.group;return{role:Xn?"presentation":"option",id:"".concat(Lt,"_list_").concat(kn)}}var pi=function(kn){var Xn=yr[kn];if(!Xn)return null;var er=Xn.data||{},zn=er.value,xr=Xn.group,Br=(0,De.Z)(er,!0),Wn=si(Xn);return Xn?x.createElement("div",(0,y.Z)({"aria-label":typeof Wn=="string"&&!xr?Wn:null},Br,{key:kn},vi(Xn,kn),{"aria-selected":wi(zn)}),zn):null},ri={role:"listbox",id:"".concat(Lt,"_list")};return x.createElement(x.Fragment,null,Ln&&x.createElement("div",(0,y.Z)({},ri,{style:{height:0,width:0,overflow:"hidden"}}),pi(Dr-1),pi(Dr),pi(Dr+1)),x.createElement(At.Z,{itemKey:"key",ref:pr,data:yr,height:hr,itemHeight:ar,fullHeight:!1,onMouseDown:kr,onScroll:ln,virtual:Ln,direction:Un,innerProps:Ln?null:ri},function(Er,kn){var Xn=Er.group,er=Er.groupOption,zn=Er.data,xr=Er.label,Br=Er.value,Wn=zn.key;if(Xn){var Jn,gr=(Jn=zn.title)!==null&&Jn!==void 0?Jn:vn(xr)?xr.toString():void 0;return x.createElement("div",{className:ee()(Cr,"".concat(Cr,"-group"),zn.className),title:gr},xr!==void 0?xr:Wn)}var br=zn.disabled,ui=zn.title,Ri=zn.children,gi=zn.style,Hi=zn.className,Oi=(0,ae.Z)(zn,on),Pi=(0,wn.Z)(Oi,Zr),ki=Yr(Br),Fi=br||!ki&&$r,Ni="".concat(Cr,"-option"),qi=ee()(Cr,Ni,Hi,(0,fe.Z)((0,fe.Z)((0,fe.Z)((0,fe.Z)({},"".concat(Ni,"-grouped"),er),"".concat(Ni,"-active"),Dr===kn&&!Fi),"".concat(Ni,"-disabled"),Fi),"".concat(Ni,"-selected"),ki)),So=si(Er),xo=!Kt||typeof Kt=="function"||ki,eo=typeof So=="number"?So:So||Br,Yi=vn(eo)?eo.toString():void 0;return ui!==void 0&&(Yi=ui),x.createElement("div",(0,y.Z)({},(0,De.Z)(Pi),Ln?{}:vi(Er,kn),{"aria-selected":wi(Br),className:qi,title:Yi,onMouseMove:function(){Dr===kn||Fi||Lr(kn)},onClick:function(){Fi||Jr(Br)},style:gi}),x.createElement("div",{className:"".concat(Ni,"-content")},typeof Sr=="function"?Sr(Er,{index:kn}):eo),x.isValidElement(Kt)||ki,xo&&x.createElement(ve,{className:"".concat(Cr,"-option-state"),customizeIcon:Kt,customizeIconProps:{value:Br,disabled:Fi,isSelected:ki}},ki?"\u2713":null))}))},Yn=x.forwardRef(Nn),Vn=Yn,ir=function(Nt,jt){var xt=x.useRef({values:new Map,options:new Map}),Ot=x.useMemo(function(){var Lt=xt.current,Ut=Lt.values,bn=Lt.options,Tn=Nt.map(function(tn){if(tn.label===void 0){var ln;return(0,de.Z)((0,de.Z)({},tn),{},{label:(ln=Ut.get(tn.value))===null||ln===void 0?void 0:ln.label})}return tn}),Gn=new Map,pn=new Map;return Tn.forEach(function(tn){Gn.set(tn.value,tn),pn.set(tn.value,jt.get(tn.value)||bn.get(tn.value))}),xt.current.values=Gn,xt.current.options=pn,Tn},[Nt,jt]),yt=x.useCallback(function(Lt){return jt.get(Lt)||xt.current.options.get(Lt)},[jt]);return[Ot,yt]};function Mn(Nt,jt){return Qe(Nt).join("").toUpperCase().includes(jt)}var qn=function(Nt,jt,xt,Ot,yt){return x.useMemo(function(){if(!xt||Ot===!1)return Nt;var Lt=jt.options,Ut=jt.label,bn=jt.value,Tn=[],Gn=typeof Ot=="function",pn=xt.toUpperCase(),tn=Gn?Ot:function(Rn,nr){return yt?Mn(nr[yt],pn):nr[Lt]?Mn(nr[Ut!=="children"?Ut:"label"],pn):Mn(nr[bn],pn)},ln=Gn?function(Rn){return Oe(Rn)}:function(Rn){return Rn};return Nt.forEach(function(Rn){if(Rn[Lt]){var nr=tn(xt,ln(Rn));if(nr)Tn.push(Rn);else{var rr=Rn[Lt].filter(function(fr){return tn(xt,ln(fr))});rr.length&&Tn.push((0,de.Z)((0,de.Z)({},Rn),{},(0,fe.Z)({},Lt,rr)))}return}tn(xt,ln(Rn))&&Tn.push(Rn)}),Tn},[Nt,Ot,yt,xt,jt])},En=oe(6551),Hn=oe(11592),Qn=["children","value"],dr=["children"];function On(Nt){var jt=Nt,xt=jt.key,Ot=jt.props,yt=Ot.children,Lt=Ot.value,Ut=(0,ae.Z)(Ot,Qn);return(0,de.Z)({key:xt,value:Lt!==void 0?Lt:xt,children:yt},Ut)}function $n(Nt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Hn.Z)(Nt).map(function(xt,Ot){if(!x.isValidElement(xt)||!xt.type)return null;var yt=xt,Lt=yt.type.isSelectOptGroup,Ut=yt.key,bn=yt.props,Tn=bn.children,Gn=(0,ae.Z)(bn,dr);return jt||!Lt?On(xt):(0,de.Z)((0,de.Z)({key:"__RC_SELECT_GRP__".concat(Ut===null?Ot:Ut,"__"),label:Ut},Gn),{},{options:$n(Tn)})}).filter(function(xt){return xt})}var Kn=function(jt,xt,Ot,yt,Lt){return x.useMemo(function(){var Ut=jt,bn=!jt;bn&&(Ut=$n(xt));var Tn=new Map,Gn=new Map,pn=function(Rn,nr,rr){rr&&typeof rr=="string"&&Rn.set(nr[rr],nr)},tn=function ln(Rn){for(var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rr=0;rr<Rn.length;rr+=1){var fr=Rn[rr];!fr[Ot.options]||nr?(Tn.set(fr[Ot.value],fr),pn(Gn,fr,Ot.label),pn(Gn,fr,yt),pn(Gn,fr,Lt)):ln(fr[Ot.options],!0)}};return tn(Ut),{options:Ut,valueOptions:Tn,labelOptions:Gn}},[jt,xt,Ot,yt,Lt])},yn=Kn;function Ne(Nt){var jt=x.useRef();jt.current=Nt;var xt=x.useCallback(function(){return jt.current.apply(jt,arguments)},[]);return xt}function Ve(Nt){var jt=Nt.mode,xt=Nt.options,Ot=Nt.children,yt=Nt.backfill,Lt=Nt.allowClear,Ut=Nt.placeholder,bn=Nt.getInputElement,Tn=Nt.showSearch,Gn=Nt.onSearch,pn=Nt.defaultOpen,tn=Nt.autoFocus,ln=Nt.labelInValue,Rn=Nt.value,nr=Nt.inputValue,rr=Nt.optionLabelProp,fr=isMultiple(jt),ti=Tn!==void 0?Tn:fr||jt==="combobox",fn=xt||convertChildrenToData(Ot);if(warning(jt!=="tags"||fn.every(function(Ln){return!Ln.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),jt==="tags"||jt==="combobox"){var Kt=fn.some(function(Ln){return Ln.options?Ln.options.some(function(Un){return typeof("value"in Un?Un.value:Un.key)=="number"}):typeof("value"in Ln?Ln.value:Ln.key)=="number"});warning(!Kt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(jt!=="combobox"||!rr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(jt==="combobox"||!yt,"`backfill` only works with `combobox` mode."),warning(jt==="combobox"||!bn,"`getInputElement` only work with `combobox` mode."),noteOnce(jt!=="combobox"||!bn||!Lt||!Ut,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Gn&&!ti&&jt!=="combobox"&&jt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!pn||tn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Rn!=null){var gn=toArray(Rn);warning(!ln||gn.every(function(Ln){return _typeof(Ln)==="object"&&("key"in Ln||"value"in Ln)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!fr||Array.isArray(Rn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ot){var xn=null;toNodeArray(Ot).some(function(Ln){if(!React.isValidElement(Ln)||!Ln.type)return!1;var Un=Ln,hr=Un.type;if(hr.isSelectOption)return!1;if(hr.isSelectOptGroup){var ar=toNodeArray(Ln.props.children).every(function(Sr){return!React.isValidElement(Sr)||!Ln.type||Sr.type.isSelectOption?!0:(xn=Sr.type,!1)});return!ar}return xn=hr,!0}),xn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xn.displayName||xn.name||xn,"`.")),warning(nr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function nt(Nt,jt){if(Nt){var xt=function Ot(yt){for(var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ut=0;Ut<yt.length;Ut++){var bn=yt[Ut];if(bn[jt==null?void 0:jt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Lt&&Array.isArray(bn[jt==null?void 0:jt.options])&&Ot(bn[jt==null?void 0:jt.options],!0))break}};xt(Nt)}}var mt=null,_t=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Vt=["inputValue"];function Jt(Nt){return!Nt||(0,se.Z)(Nt)!=="object"}var Xt=x.forwardRef(function(Nt,jt){var xt=Nt.id,Ot=Nt.mode,yt=Nt.prefixCls,Lt=yt===void 0?"rc-select":yt,Ut=Nt.backfill,bn=Nt.fieldNames,Tn=Nt.inputValue,Gn=Nt.searchValue,pn=Nt.onSearch,tn=Nt.autoClearSearchValue,ln=tn===void 0?!0:tn,Rn=Nt.onSelect,nr=Nt.onDeselect,rr=Nt.dropdownMatchSelectWidth,fr=rr===void 0?!0:rr,ti=Nt.filterOption,fn=Nt.filterSort,Kt=Nt.optionFilterProp,gn=Nt.optionLabelProp,xn=Nt.options,Ln=Nt.optionRender,Un=Nt.children,hr=Nt.defaultActiveFirstOption,ar=Nt.menuItemSelectedIcon,Sr=Nt.virtual,Cr=Nt.direction,yr=Nt.listHeight,pr=yr===void 0?200:yr,$r=Nt.listItemHeight,kr=$r===void 0?20:$r,Nr=Nt.labelRender,Yr=Nt.value,ai=Nt.defaultValue,Rr=Nt.labelInValue,ii=Nt.onChange,Dr=Nt.maxCount,fi=(0,ae.Z)(Nt,_t),Lr=(0,En.ZP)(xt),wi=qt(Ot),Jr=!!(!xn&&Un),Zr=x.useMemo(function(){return ti===void 0&&Ot==="combobox"?!1:ti},[ti,Ot]),si=x.useMemo(function(){return ke(bn,Jr)},[JSON.stringify(bn),Jr]),vi=(0,te.Z)("",{value:Gn!==void 0?Gn:Tn,postState:function(Zi){return Zi||""}}),pi=(0,ue.Z)(vi,2),ri=pi[0],Er=pi[1],kn=yn(xn,Un,si,Kt,gn),Xn=kn.valueOptions,er=kn.labelOptions,zn=kn.options,xr=x.useCallback(function(Ii){var Zi=Qe(Ii);return Zi.map(function(Ei){var Mi,io,to,ea,Wo;if(Jt(Ei))Mi=Ei;else{var ca;to=Ei.key,io=Ei.label,Mi=(ca=Ei.value)!==null&&ca!==void 0?ca:to}var $o=Xn.get(Mi);if($o){var Na;if(io===void 0&&(io=$o==null?void 0:$o[gn||si.label]),to===void 0&&(to=(Na=$o==null?void 0:$o.key)!==null&&Na!==void 0?Na:Mi),ea=$o==null?void 0:$o.disabled,Wo=$o==null?void 0:$o.title,0)var os}return{label:io,value:Mi,key:to,disabled:ea,title:Wo}})},[si,gn,Xn]),Br=(0,te.Z)(ai,{value:Yr}),Wn=(0,ue.Z)(Br,2),Jn=Wn[0],gr=Wn[1],br=x.useMemo(function(){var Ii,Zi=wi&&Jn===null?[]:Jn,Ei=xr(Zi);return Ot==="combobox"&&Ue((Ii=Ei[0])===null||Ii===void 0?void 0:Ii.value)?[]:Ei},[Jn,xr,Ot,wi]),ui=ir(br,Xn),Ri=(0,ue.Z)(ui,2),gi=Ri[0],Hi=Ri[1],Oi=x.useMemo(function(){if(!Ot&&gi.length===1){var Ii=gi[0];if(Ii.value===null&&(Ii.label===null||Ii.label===void 0))return[]}return gi.map(function(Zi){var Ei;return(0,de.Z)((0,de.Z)({},Zi),{},{label:(Ei=typeof Nr=="function"?Nr(Zi):Zi.label)!==null&&Ei!==void 0?Ei:Zi.value})})},[Ot,gi,Nr]),Pi=x.useMemo(function(){return new Set(gi.map(function(Ii){return Ii.value}))},[gi]);x.useEffect(function(){if(Ot==="combobox"){var Ii,Zi=(Ii=gi[0])===null||Ii===void 0?void 0:Ii.value;Er(Ge(Zi)?String(Zi):"")}},[gi]);var ki=Ne(function(Ii,Zi){var Ei=Zi!=null?Zi:Ii;return(0,fe.Z)((0,fe.Z)({},si.value,Ii),si.label,Ei)}),Fi=x.useMemo(function(){if(Ot!=="tags")return zn;var Ii=(0,ie.Z)(zn),Zi=function(Mi){return Xn.has(Mi)};return(0,ie.Z)(gi).sort(function(Ei,Mi){return Ei.value<Mi.value?-1:1}).forEach(function(Ei){var Mi=Ei.value;Zi(Mi)||Ii.push(ki(Mi,Ei.label))}),Ii},[ki,zn,Xn,gi,Ot]),Ni=qn(Fi,si,ri,Zr,Kt),qi=x.useMemo(function(){return Ot!=="tags"||!ri||Ni.some(function(Ii){return Ii[Kt||"value"]===ri})||Ni.some(function(Ii){return Ii[si.value]===ri})?Ni:[ki(ri)].concat((0,ie.Z)(Ni))},[ki,Kt,Ot,Ni,ri,si]),So=function Ii(Zi){var Ei=(0,ie.Z)(Zi).sort(function(Mi,io){return fn(Mi,io,{searchValue:ri})});return Ei.map(function(Mi){return Array.isArray(Mi.options)?(0,de.Z)((0,de.Z)({},Mi),{},{options:Mi.options.length>0?Ii(Mi.options):Mi.options}):Mi})},xo=x.useMemo(function(){return fn?So(qi):qi},[qi,fn,ri]),eo=x.useMemo(function(){return Me(xo,{fieldNames:si,childrenAsData:Jr})},[xo,si,Jr]),Yi=function(Zi){var Ei=xr(Zi);if(gr(Ei),ii&&(Ei.length!==gi.length||Ei.some(function(to,ea){var Wo;return((Wo=gi[ea])===null||Wo===void 0?void 0:Wo.value)!==(to==null?void 0:to.value)}))){var Mi=Rr?Ei:Ei.map(function(to){return to.value}),io=Ei.map(function(to){return Oe(Hi(to.value))});ii(wi?Mi:Mi[0],wi?io:io[0])}},oi=x.useState(null),Xr=(0,ue.Z)(oi,2),$i=Xr[0],ro=Xr[1],ao=x.useState(0),la=(0,ue.Z)(ao,2),Vo=la[0],Ko=la[1],ha=hr!==void 0?hr:Ot!=="combobox",wo=x.useCallback(function(Ii,Zi){var Ei=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Mi=Ei.source,io=Mi===void 0?"keyboard":Mi;Ko(Zi),Ut&&Ot==="combobox"&&Ii!==null&&io==="keyboard"&&ro(String(Ii))},[Ut,Ot]),Zo=function(Zi,Ei,Mi){var io=function(){var Ya,Ba=Hi(Zi);return[Rr?{label:Ba==null?void 0:Ba[si.label],value:Zi,key:(Ya=Ba==null?void 0:Ba.key)!==null&&Ya!==void 0?Ya:Zi}:Zi,Oe(Ba)]};if(Ei&&Rn){var to=io(),ea=(0,ue.Z)(to,2),Wo=ea[0],ca=ea[1];Rn(Wo,ca)}else if(!Ei&&nr&&Mi!=="clear"){var $o=io(),Na=(0,ue.Z)($o,2),os=Na[0],Aa=Na[1];nr(os,Aa)}},pa=Ne(function(Ii,Zi){var Ei,Mi=wi?Zi.selected:!0;Mi?Ei=wi?[].concat((0,ie.Z)(gi),[Ii]):[Ii]:Ei=gi.filter(function(io){return io.value!==Ii}),Yi(Ei),Zo(Ii,Mi),Ot==="combobox"?ro(""):(!qt||ln)&&(Er(""),ro(""))}),xa=function(Zi,Ei){Yi(Zi);var Mi=Ei.type,io=Ei.values;(Mi==="remove"||Mi==="clear")&&io.forEach(function(to){Zo(to.value,!1,Mi)})},ko=function(Zi,Ei){if(Er(Zi),ro(null),Ei.source==="submit"){var Mi=(Zi||"").trim();if(Mi){var io=Array.from(new Set([].concat((0,ie.Z)(Pi),[Mi])));Yi(io),Zo(Mi,!0),Er("")}return}Ei.source!=="blur"&&(Ot==="combobox"&&Yi(Zi),pn==null||pn(Zi))},Za=function(Zi){var Ei=Zi;Ot!=="tags"&&(Ei=Zi.map(function(io){var to=er.get(io);return to==null?void 0:to.value}).filter(function(io){return io!==void 0}));var Mi=Array.from(new Set([].concat((0,ie.Z)(Pi),(0,ie.Z)(Ei))));Yi(Mi),Mi.forEach(function(io){Zo(io,!0)})},Va=x.useMemo(function(){var Ii=Sr!==!1&&fr!==!1;return(0,de.Z)((0,de.Z)({},kn),{},{flattenOptions:eo,onActiveValue:wo,defaultActiveFirstOption:ha,onSelect:pa,menuItemSelectedIcon:ar,rawValues:Pi,fieldNames:si,virtual:Ii,direction:Cr,listHeight:pr,listItemHeight:kr,childrenAsData:Jr,maxCount:Dr,optionRender:Ln})},[Dr,kn,eo,wo,ha,pa,ar,Pi,si,Sr,fr,Cr,pr,kr,Jr,Ln]);return x.createElement(st.Provider,{value:Va},x.createElement(It,(0,y.Z)({},fi,{id:Lr,prefixCls:Lt,ref:jt,omitDomProps:Vt,mode:Ot,displayValues:Oi,onDisplayValuesChange:xa,direction:Cr,searchValue:ri,onSearch:ko,autoClearSearchValue:ln,onSearchSplit:Za,dropdownMatchSelectWidth:fr,OptionList:Vn,emptyOptions:!eo.length,activeValue:$i,activeDescendantId:"".concat(Lr,"_list_").concat(Vo)})))}),dn=Xt;dn.Option=Sn,dn.OptGroup=Pt;var jn=dn,vr=jn},22711:function(rn,Tt,oe){"use strict";oe.r(Tt),oe.d(Tt,{ResizableTextArea:function(){return Re},default:function(){return ze}});var y=oe(54476),ie=oe(20068),fe=oe(33885),de=oe(94480),ue=oe(42978),ae=oe(75931),se=oe(92310),te=oe.n(se),ne=oe(36901),x=oe(66003),b=oe(30292),ee=oe(18929),E=oe(59301),re=oe(76190),ce=oe(29301),le=oe(34280),ve=oe(16089),Se=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,ge=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],_e={},Ce;function he(Qe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=Qe.getAttribute("id")||Qe.getAttribute("data-reactid")||Qe.getAttribute("name");if($e&&_e[ht])return _e[ht];var Ge=window.getComputedStyle(Qe),Ue=Ge.getPropertyValue("box-sizing")||Ge.getPropertyValue("-moz-box-sizing")||Ge.getPropertyValue("-webkit-box-sizing"),Ke=parseFloat(Ge.getPropertyValue("padding-bottom"))+parseFloat(Ge.getPropertyValue("padding-top")),et=parseFloat(Ge.getPropertyValue("border-bottom-width"))+parseFloat(Ge.getPropertyValue("border-top-width")),rt=ge.map(function(ut){return"".concat(ut,":").concat(Ge.getPropertyValue(ut))}).join(";"),Xe={sizingStyle:rt,paddingSize:Ke,borderSize:et,boxSizing:Ue};return $e&&ht&&(_e[ht]=Xe),Xe}function be(Qe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ge=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ce||(Ce=document.createElement("textarea"),Ce.setAttribute("tab-index","-1"),Ce.setAttribute("aria-hidden","true"),Ce.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ce)),Qe.getAttribute("wrap")?Ce.setAttribute("wrap",Qe.getAttribute("wrap")):Ce.removeAttribute("wrap");var Ue=he(Qe,$e),Ke=Ue.paddingSize,et=Ue.borderSize,rt=Ue.boxSizing,Xe=Ue.sizingStyle;Ce.setAttribute("style","".concat(Xe,";").concat(Se)),Ce.value=Qe.value||Qe.placeholder||"";var ut=void 0,lt=void 0,kt,pt=Ce.scrollHeight;if(rt==="border-box"?pt+=et:rt==="content-box"&&(pt-=Ke),ht!==null||Ge!==null){Ce.value=" ";var Mt=Ce.scrollHeight-Ke;ht!==null&&(ut=Mt*ht,rt==="border-box"&&(ut=ut+Ke+et),pt=Math.max(ut,pt)),Ge!==null&&(lt=Mt*Ge,rt==="border-box"&&(lt=lt+Ke+et),kt=pt>lt?"":"hidden",pt=Math.min(lt,pt))}var wt={height:pt,overflowY:kt,resize:"none"};return ut&&(wt.minHeight=ut),lt&&(wt.maxHeight=lt),wt}var Ee=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ae=0,De=1,je=2,Fe=E.forwardRef(function(Qe,$e){var ht=Qe,Ge=ht.prefixCls,Ue=ht.defaultValue,Ke=ht.value,et=ht.autoSize,rt=ht.onResize,Xe=ht.className,ut=ht.style,lt=ht.disabled,kt=ht.onChange,pt=ht.onInternalAutoSize,Mt=(0,ae.Z)(ht,Ee),wt=(0,ee.Z)(Ue,{value:Ke,postState:function(Sn){return Sn!=null?Sn:""}}),bt=(0,ue.Z)(wt,2),gt=bt[0],We=bt[1],Ie=function(Sn){We(Sn.target.value),kt==null||kt(Sn)},xe=E.useRef();E.useImperativeHandle($e,function(){return{textArea:xe.current}});var Be=E.useMemo(function(){return et&&(0,re.Z)(et)==="object"?[et.minRows,et.maxRows]:[]},[et]),Ye=(0,ue.Z)(Be,2),Pe=Ye[0],Le=Ye[1],pe=!!et,we=function(){try{if(document.activeElement===xe.current){var Sn=xe.current,An=Sn.selectionStart,wn=Sn.selectionEnd,At=Sn.scrollTop;xe.current.setSelectionRange(An,wn),xe.current.scrollTop=At}}catch(Gt){}},ke=E.useState(je),Me=(0,ue.Z)(ke,2),Oe=Me[0],tt=Me[1],ot=E.useState(),st=(0,ue.Z)(ot,2),ft=st[0],Ft=st[1],Bt=function(){tt(Ae)};(0,le.Z)(function(){pe&&Bt()},[Ke,Pe,Le,pe]),(0,le.Z)(function(){if(Oe===Ae)tt(De);else if(Oe===De){var cn=be(xe.current,!1,Pe,Le);tt(je),Ft(cn)}else we()},[Oe]);var qt=E.useRef(),$t=function(){ve.Z.cancel(qt.current)},It=function(Sn){Oe===je&&(rt==null||rt(Sn),et&&($t(),qt.current=(0,ve.Z)(function(){Bt()})))};E.useEffect(function(){return $t},[]);var en=pe?ft:null,Pt=(0,fe.Z)((0,fe.Z)({},ut),en);return(Oe===Ae||Oe===De)&&(Pt.overflowY="hidden",Pt.overflowX="hidden"),E.createElement(ce.Z,{onResize:It,disabled:!(et||rt)},E.createElement("textarea",(0,y.Z)({},Mt,{ref:xe,style:Pt,className:te()(Ge,Xe,(0,ie.Z)({},"".concat(Ge,"-disabled"),lt)),disabled:lt,value:gt,onChange:Ie})))}),Re=Fe,qe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Je=E.forwardRef(function(Qe,$e){var ht,Ge=Qe.defaultValue,Ue=Qe.value,Ke=Qe.onFocus,et=Qe.onBlur,rt=Qe.onChange,Xe=Qe.allowClear,ut=Qe.maxLength,lt=Qe.onCompositionStart,kt=Qe.onCompositionEnd,pt=Qe.suffix,Mt=Qe.prefixCls,wt=Mt===void 0?"rc-textarea":Mt,bt=Qe.showCount,gt=Qe.count,We=Qe.className,Ie=Qe.style,xe=Qe.disabled,Be=Qe.hidden,Ye=Qe.classNames,Pe=Qe.styles,Le=Qe.onResize,pe=Qe.onClear,we=Qe.onPressEnter,ke=Qe.readOnly,Me=Qe.autoSize,Oe=Qe.onKeyDown,tt=(0,ae.Z)(Qe,qe),ot=(0,ee.Z)(Ge,{value:Ue,defaultValue:Ge}),st=(0,ue.Z)(ot,2),ft=st[0],Ft=st[1],Bt=ft==null?"":String(ft),qt=E.useState(!1),$t=(0,ue.Z)(qt,2),It=$t[0],en=$t[1],Pt=E.useRef(!1),cn=E.useState(null),Sn=(0,ue.Z)(cn,2),An=Sn[0],wn=Sn[1],At=(0,E.useRef)(null),Gt=(0,E.useRef)(null),on=function(){var dn;return(dn=Gt.current)===null||dn===void 0?void 0:dn.textArea},vn=function(){on().focus()};(0,E.useImperativeHandle)($e,function(){var Xt;return{resizableTextArea:Gt.current,focus:vn,blur:function(){on().blur()},nativeElement:((Xt=At.current)===null||Xt===void 0?void 0:Xt.nativeElement)||on()}}),(0,E.useEffect)(function(){en(function(Xt){return!xe&&Xt})},[xe]);var Nn=E.useState(null),Yn=(0,ue.Z)(Nn,2),Vn=Yn[0],ir=Yn[1];E.useEffect(function(){if(Vn){var Xt;(Xt=on()).setSelectionRange.apply(Xt,(0,de.Z)(Vn))}},[Vn]);var Mn=(0,x.Z)(gt,bt),qn=(ht=Mn.max)!==null&&ht!==void 0?ht:ut,En=Number(qn)>0,Hn=Mn.strategy(Bt),Qn=!!qn&&Hn>qn,dr=function(dn,jn){var vr=jn;!Pt.current&&Mn.exceedFormatter&&Mn.max&&Mn.strategy(jn)>Mn.max&&(vr=Mn.exceedFormatter(jn,{max:Mn.max}),jn!==vr&&ir([on().selectionStart||0,on().selectionEnd||0])),Ft(vr),(0,b.rJ)(dn.currentTarget,dn,rt,vr)},On=function(dn){Pt.current=!0,lt==null||lt(dn)},$n=function(dn){Pt.current=!1,dr(dn,dn.currentTarget.value),kt==null||kt(dn)},Kn=function(dn){dr(dn,dn.target.value)},yn=function(dn){dn.key==="Enter"&&we&&we(dn),Oe==null||Oe(dn)},Ne=function(dn){en(!0),Ke==null||Ke(dn)},Ve=function(dn){en(!1),et==null||et(dn)},nt=function(dn){Ft(""),vn(),(0,b.rJ)(on(),dn,rt)},mt=pt,_t;Mn.show&&(Mn.showFormatter?_t=Mn.showFormatter({value:Bt,count:Hn,maxLength:qn}):_t="".concat(Hn).concat(En?" / ".concat(qn):""),mt=E.createElement(E.Fragment,null,mt,E.createElement("span",{className:te()("".concat(wt,"-data-count"),Ye==null?void 0:Ye.count),style:Pe==null?void 0:Pe.count},_t)));var Vt=function(dn){var jn;Le==null||Le(dn),(jn=on())!==null&&jn!==void 0&&jn.style.height&&wn(!0)},Jt=!Me&&!bt&&!Xe;return E.createElement(ne.BaseInput,{ref:At,value:Bt,allowClear:Xe,handleReset:nt,suffix:mt,prefixCls:wt,classNames:(0,fe.Z)((0,fe.Z)({},Ye),{},{affixWrapper:te()(Ye==null?void 0:Ye.affixWrapper,(0,ie.Z)((0,ie.Z)({},"".concat(wt,"-show-count"),bt),"".concat(wt,"-textarea-allow-clear"),Xe))}),disabled:xe,focused:It,className:te()(We,Qn&&"".concat(wt,"-out-of-range")),style:(0,fe.Z)((0,fe.Z)({},Ie),An&&!Jt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof _t=="string"?_t:void 0}},hidden:Be,readOnly:ke,onClear:pe},E.createElement(Re,(0,y.Z)({},tt,{autoSize:Me,maxLength:ut,onKeyDown:yn,onChange:Kn,onFocus:Ne,onBlur:Ve,onCompositionStart:On,onCompositionEnd:$n,className:te()(Ye==null?void 0:Ye.textarea),style:(0,fe.Z)((0,fe.Z)({},Pe==null?void 0:Pe.textarea),{},{resize:Ie==null?void 0:Ie.resize}),disabled:xe,prefixCls:wt,onResize:Vt,ref:Gt,readOnly:ke})))}),He=Je,ze=He},639:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return _e}});var y=oe(54476),ie=oe(20068),fe=oe(33885),de=oe(42978),ue=oe(75931),ae=oe(59301),se=oe(92310),te=oe.n(se),ne=oe(26112),x=oe(30699),b=function(he){for(var be=he.prefixCls,Ee=he.level,Ae=he.isStart,De=he.isEnd,je="".concat(be,"-indent-unit"),Fe=[],Re=0;Re<Ee;Re+=1)Fe.push(ae.createElement("span",{key:Re,className:te()(je,(0,ie.Z)((0,ie.Z)({},"".concat(je,"-start"),Ae[Re]),"".concat(je,"-end"),De[Re]))}));return ae.createElement("span",{"aria-hidden":"true",className:"".concat(be,"-indent")},Fe)},ee=ae.memo(b),E=oe(65065),re=oe(34061),ce=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],le="open",ve="close",Se="---",ge=function(he){var be,Ee,Ae,De=he.eventKey,je=he.className,Fe=he.style,Re=he.dragOver,qe=he.dragOverGapTop,Je=he.dragOverGapBottom,He=he.isLeaf,ze=he.isStart,Qe=he.isEnd,$e=he.expanded,ht=he.selected,Ge=he.checked,Ue=he.halfChecked,Ke=he.loading,et=he.domRef,rt=he.active,Xe=he.data,ut=he.onMouseMove,lt=he.selectable,kt=(0,ue.Z)(he,ce),pt=ae.useContext(x.k),Mt=ae.useContext(x.y),wt=ae.useRef(null),bt=ae.useState(!1),gt=(0,de.Z)(bt,2),We=gt[0],Ie=gt[1],xe=!!(pt.disabled||he.disabled||(be=Mt.nodeDisabled)!==null&&be!==void 0&&be.call(Mt,Xe)),Be=ae.useMemo(function(){return!pt.checkable||he.checkable===!1?!1:pt.checkable},[pt.checkable,he.checkable]),Ye=function(Hn){xe||pt.onNodeSelect(Hn,(0,re.F)(he))},Pe=function(Hn){xe||!Be||he.disableCheckbox||pt.onNodeCheck(Hn,(0,re.F)(he),!Ge)},Le=ae.useMemo(function(){return typeof lt=="boolean"?lt:pt.selectable},[lt,pt.selectable]),pe=function(Hn){pt.onNodeClick(Hn,(0,re.F)(he)),Le?Ye(Hn):Pe(Hn)},we=function(Hn){pt.onNodeDoubleClick(Hn,(0,re.F)(he))},ke=function(Hn){pt.onNodeMouseEnter(Hn,(0,re.F)(he))},Me=function(Hn){pt.onNodeMouseLeave(Hn,(0,re.F)(he))},Oe=function(Hn){pt.onNodeContextMenu(Hn,(0,re.F)(he))},tt=ae.useMemo(function(){return!!(pt.draggable&&(!pt.draggable.nodeDraggable||pt.draggable.nodeDraggable(Xe)))},[pt.draggable,Xe]),ot=function(Hn){Hn.stopPropagation(),Ie(!0),pt.onNodeDragStart(Hn,he);try{Hn.dataTransfer.setData("text/plain","")}catch(Qn){}},st=function(Hn){Hn.preventDefault(),Hn.stopPropagation(),pt.onNodeDragEnter(Hn,he)},ft=function(Hn){Hn.preventDefault(),Hn.stopPropagation(),pt.onNodeDragOver(Hn,he)},Ft=function(Hn){Hn.stopPropagation(),pt.onNodeDragLeave(Hn,he)},Bt=function(Hn){Hn.stopPropagation(),Ie(!1),pt.onNodeDragEnd(Hn,he)},qt=function(Hn){Hn.preventDefault(),Hn.stopPropagation(),Ie(!1),pt.onNodeDrop(Hn,he)},$t=function(Hn){Ke||pt.onNodeExpand(Hn,(0,re.F)(he))},It=ae.useMemo(function(){var En=(0,E.Z)(pt.keyEntities,De)||{},Hn=En.children;return!!(Hn||[]).length},[pt.keyEntities,De]),en=ae.useMemo(function(){return He===!1?!1:He||!pt.loadData&&!It||pt.loadData&&he.loaded&&!It},[He,pt.loadData,It,he.loaded]);ae.useEffect(function(){Ke||typeof pt.loadData=="function"&&$e&&!en&&!he.loaded&&pt.onNodeLoad((0,re.F)(he))},[Ke,pt.loadData,pt.onNodeLoad,$e,en,he]);var Pt=ae.useMemo(function(){var En;return(En=pt.draggable)!==null&&En!==void 0&&En.icon?ae.createElement("span",{className:"".concat(pt.prefixCls,"-draggable-icon")},pt.draggable.icon):null},[pt.draggable]),cn=function(Hn){var Qn=he.switcherIcon||pt.switcherIcon;return typeof Qn=="function"?Qn((0,fe.Z)((0,fe.Z)({},he),{},{isLeaf:Hn})):Qn},Sn=function(){if(en){var Hn=cn(!0);return Hn!==!1?ae.createElement("span",{className:te()("".concat(pt.prefixCls,"-switcher"),"".concat(pt.prefixCls,"-switcher-noop"))},Hn):null}var Qn=cn(!1);return Qn!==!1?ae.createElement("span",{onClick:$t,className:te()("".concat(pt.prefixCls,"-switcher"),"".concat(pt.prefixCls,"-switcher_").concat($e?le:ve))},Qn):null},An=ae.useMemo(function(){if(!Be)return null;var En=typeof Be!="boolean"?Be:null;return ae.createElement("span",{className:te()("".concat(pt.prefixCls,"-checkbox"),(0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(pt.prefixCls,"-checkbox-checked"),Ge),"".concat(pt.prefixCls,"-checkbox-indeterminate"),!Ge&&Ue),"".concat(pt.prefixCls,"-checkbox-disabled"),xe||he.disableCheckbox)),onClick:Pe,role:"checkbox","aria-checked":Ue?"mixed":Ge,"aria-disabled":xe||he.disableCheckbox,"aria-label":"Select ".concat(typeof he.title=="string"?he.title:"tree node")},En)},[Be,Ge,Ue,xe,he.disableCheckbox,he.title]),wn=ae.useMemo(function(){return en?null:$e?le:ve},[en,$e]),At=ae.useMemo(function(){return ae.createElement("span",{className:te()("".concat(pt.prefixCls,"-iconEle"),"".concat(pt.prefixCls,"-icon__").concat(wn||"docu"),(0,ie.Z)({},"".concat(pt.prefixCls,"-icon_loading"),Ke))})},[pt.prefixCls,wn,Ke]),Gt=ae.useMemo(function(){var En=!!pt.draggable,Hn=!he.disabled&&En&&pt.dragOverNodeKey===De;return Hn?pt.dropIndicatorRender({dropPosition:pt.dropPosition,dropLevelOffset:pt.dropLevelOffset,indent:pt.indent,prefixCls:pt.prefixCls,direction:pt.direction}):null},[pt.dropPosition,pt.dropLevelOffset,pt.indent,pt.prefixCls,pt.direction,pt.draggable,pt.dragOverNodeKey,pt.dropIndicatorRender]),on=ae.useMemo(function(){var En=he.title,Hn=En===void 0?Se:En,Qn="".concat(pt.prefixCls,"-node-content-wrapper"),dr;if(pt.showIcon){var On=he.icon||pt.icon;dr=On?ae.createElement("span",{className:te()("".concat(pt.prefixCls,"-iconEle"),"".concat(pt.prefixCls,"-icon__customize"))},typeof On=="function"?On(he):On):At}else pt.loadData&&Ke&&(dr=At);var $n;return typeof Hn=="function"?$n=Hn(Xe):pt.titleRender?$n=pt.titleRender(Xe):$n=Hn,ae.createElement("span",{ref:wt,title:typeof Hn=="string"?Hn:"",className:te()(Qn,"".concat(Qn,"-").concat(wn||"normal"),(0,ie.Z)({},"".concat(pt.prefixCls,"-node-selected"),!xe&&(ht||We))),onMouseEnter:ke,onMouseLeave:Me,onContextMenu:Oe,onClick:pe,onDoubleClick:we},dr,ae.createElement("span",{className:"".concat(pt.prefixCls,"-title")},$n),Gt)},[pt.prefixCls,pt.showIcon,he,pt.icon,At,pt.titleRender,Xe,wn,ke,Me,Oe,pe,we]),vn=(0,ne.Z)(kt,{aria:!0,data:!0}),Nn=(0,E.Z)(pt.keyEntities,De)||{},Yn=Nn.level,Vn=Qe[Qe.length-1],ir=!xe&&tt,Mn=pt.draggingNodeKey===De,qn=lt!==void 0?{"aria-selected":!!lt}:void 0;return ae.createElement("div",(0,y.Z)({ref:et,role:"treeitem","aria-expanded":He?void 0:$e,className:te()(je,"".concat(pt.prefixCls,"-treenode"),(Ae={},(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)(Ae,"".concat(pt.prefixCls,"-treenode-disabled"),xe),"".concat(pt.prefixCls,"-treenode-switcher-").concat($e?"open":"close"),!He),"".concat(pt.prefixCls,"-treenode-checkbox-checked"),Ge),"".concat(pt.prefixCls,"-treenode-checkbox-indeterminate"),Ue),"".concat(pt.prefixCls,"-treenode-selected"),ht),"".concat(pt.prefixCls,"-treenode-loading"),Ke),"".concat(pt.prefixCls,"-treenode-active"),rt),"".concat(pt.prefixCls,"-treenode-leaf-last"),Vn),"".concat(pt.prefixCls,"-treenode-draggable"),tt),"dragging",Mn),(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)(Ae,"drop-target",pt.dropTargetKey===De),"drop-container",pt.dropContainerKey===De),"drag-over",!xe&&Re),"drag-over-gap-top",!xe&&qe),"drag-over-gap-bottom",!xe&&Je),"filter-node",(Ee=pt.filterTreeNode)===null||Ee===void 0?void 0:Ee.call(pt,(0,re.F)(he))),"".concat(pt.prefixCls,"-treenode-leaf"),en))),style:Fe,draggable:ir,onDragStart:ir?ot:void 0,onDragEnter:tt?st:void 0,onDragOver:tt?ft:void 0,onDragLeave:tt?Ft:void 0,onDrop:tt?qt:void 0,onDragEnd:tt?Bt:void 0,onMouseMove:ut},qn,vn),ae.createElement(ee,{prefixCls:pt.prefixCls,level:Yn,isStart:ze,isEnd:Qe}),Pt,Sn(),An,on)};ge.isTreeNode=1;var _e=ge},30699:function(rn,Tt,oe){"use strict";oe.d(Tt,{k:function(){return ie},y:function(){return fe}});var y=oe(59301),ie=y.createContext(null),fe=y.createContext({})},3741:function(rn,Tt,oe){"use strict";oe.d(Tt,{OF:function(){return De.Z},y6:function(){return ve.y},ZP:function(){return xe}});var y=oe(54476),ie=oe(76190),fe=oe(33885),de=oe(94480),ue=oe(67732),ae=oe(83652),se=oe(31226),te=oe(42403),ne=oe(158),x=oe(20068),b=oe(92310),ee=oe.n(b),E=oe(10228),re=oe(26112),ce=oe(48736),le=oe(59301),ve=oe(30699),Se=function(Ye){var Pe=Ye.dropPosition,Le=Ye.dropLevelOffset,pe=Ye.indent,we={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Pe){case-1:we.top=0,we.left=-Le*pe;break;case 1:we.bottom=0,we.left=-Le*pe;break;case 0:we.bottom=0,we.left=pe;break}return le.createElement("div",{style:we})},ge=Se;function _e(Be){if(Be==null)throw new TypeError("Cannot destructure "+Be)}var Ce=oe(42978),he=oe(75931),be=oe(34280),Ee=oe(48911),Ae=oe(77900),De=oe(639);function je(Be,Ye){var Pe=le.useState(!1),Le=(0,Ce.Z)(Pe,2),pe=Le[0],we=Le[1];(0,be.Z)(function(){if(pe)return Be(),function(){Ye()}},[pe]),(0,be.Z)(function(){return we(!0),function(){we(!1)}},[])}var Fe=je,Re=oe(34061),qe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Je=le.forwardRef(function(Be,Ye){var Pe=Be.className,Le=Be.style,pe=Be.motion,we=Be.motionNodes,ke=Be.motionType,Me=Be.onMotionStart,Oe=Be.onMotionEnd,tt=Be.active,ot=Be.treeNodeRequiredProps,st=(0,he.Z)(Be,qe),ft=le.useState(!0),Ft=(0,Ce.Z)(ft,2),Bt=Ft[0],qt=Ft[1],$t=le.useContext(ve.k),It=$t.prefixCls,en=we&&ke!=="hide";(0,be.Z)(function(){we&&en!==Bt&&qt(en)},[we]);var Pt=function(){we&&Me()},cn=le.useRef(!1),Sn=function(){we&&!cn.current&&(cn.current=!0,Oe())};Fe(Pt,Sn);var An=function(At){en===At&&Sn()};return we?le.createElement(Ae.default,(0,y.Z)({ref:Ye,visible:Bt},pe,{motionAppear:ke==="show",onVisibleChanged:An}),function(wn,At){var Gt=wn.className,on=wn.style;return le.createElement("div",{ref:At,className:ee()("".concat(It,"-treenode-motion"),Gt),style:on},we.map(function(vn){var Nn=Object.assign({},(_e(vn.data),vn.data)),Yn=vn.title,Vn=vn.key,ir=vn.isStart,Mn=vn.isEnd;delete Nn.children;var qn=(0,Re.H8)(Vn,ot);return le.createElement(De.Z,(0,y.Z)({},Nn,qn,{title:Yn,active:tt,data:vn.data,key:Vn,isStart:ir,isEnd:Mn}))}))}):le.createElement(De.Z,(0,y.Z)({domRef:Ye,className:Pe,style:Le},st,{active:tt}))}),He=Je;function ze(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Pe=Be.length,Le=Ye.length;if(Math.abs(Pe-Le)!==1)return{add:!1,key:null};function pe(we,ke){var Me=new Map;we.forEach(function(tt){Me.set(tt,!0)});var Oe=ke.filter(function(tt){return!Me.has(tt)});return Oe.length===1?Oe[0]:null}return Pe<Le?{add:!0,key:pe(Be,Ye)}:{add:!1,key:pe(Ye,Be)}}function Qe(Be,Ye,Pe){var Le=Be.findIndex(function(Me){return Me.key===Pe}),pe=Be[Le+1],we=Ye.findIndex(function(Me){return Me.key===Pe});if(pe){var ke=Ye.findIndex(function(Me){return Me.key===pe.key});return Ye.slice(we+1,ke)}return Ye.slice(we+1)}var $e=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ht={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ge=function(){},Ue="RC_TREE_MOTION_".concat(Math.random()),Ke={key:Ue},et={key:Ue,level:0,index:0,pos:"0",node:Ke,nodes:[Ke]},rt={parent:null,children:[],pos:et.pos,data:Ke,title:null,key:Ue,isStart:[],isEnd:[]};function Xe(Be,Ye,Pe,Le){return Ye===!1||!Pe?Be:Be.slice(0,Math.ceil(Pe/Le)+1)}function ut(Be){var Ye=Be.key,Pe=Be.pos;return(0,Re.km)(Ye,Pe)}function lt(Be){for(var Ye=String(Be.data.key),Pe=Be;Pe.parent;)Pe=Pe.parent,Ye="".concat(Pe.data.key," > ").concat(Ye);return Ye}var kt=le.forwardRef(function(Be,Ye){var Pe=Be.prefixCls,Le=Be.data,pe=Be.selectable,we=Be.checkable,ke=Be.expandedKeys,Me=Be.selectedKeys,Oe=Be.checkedKeys,tt=Be.loadedKeys,ot=Be.loadingKeys,st=Be.halfCheckedKeys,ft=Be.keyEntities,Ft=Be.disabled,Bt=Be.dragging,qt=Be.dragOverNodeKey,$t=Be.dropPosition,It=Be.motion,en=Be.height,Pt=Be.itemHeight,cn=Be.virtual,Sn=Be.scrollWidth,An=Be.focusable,wn=Be.activeItem,At=Be.focused,Gt=Be.tabIndex,on=Be.onKeyDown,vn=Be.onFocus,Nn=Be.onBlur,Yn=Be.onActiveChange,Vn=Be.onListChangeStart,ir=Be.onListChangeEnd,Mn=(0,he.Z)(Be,$e),qn=le.useRef(null),En=le.useRef(null);le.useImperativeHandle(Ye,function(){return{scrollTo:function(bn){qn.current.scrollTo(bn)},getIndentWidth:function(){return En.current.offsetWidth}}});var Hn=le.useState(ke),Qn=(0,Ce.Z)(Hn,2),dr=Qn[0],On=Qn[1],$n=le.useState(Le),Kn=(0,Ce.Z)($n,2),yn=Kn[0],Ne=Kn[1],Ve=le.useState(Le),nt=(0,Ce.Z)(Ve,2),mt=nt[0],_t=nt[1],Vt=le.useState([]),Jt=(0,Ce.Z)(Vt,2),Xt=Jt[0],dn=Jt[1],jn=le.useState(null),vr=(0,Ce.Z)(jn,2),Nt=vr[0],jt=vr[1],xt=le.useRef(Le);xt.current=Le;function Ot(){var Ut=xt.current;Ne(Ut),_t(Ut),dn([]),jt(null),ir()}(0,be.Z)(function(){On(ke);var Ut=ze(dr,ke);if(Ut.key!==null)if(Ut.add){var bn=yn.findIndex(function(Rn){var nr=Rn.key;return nr===Ut.key}),Tn=Xe(Qe(yn,Le,Ut.key),cn,en,Pt),Gn=yn.slice();Gn.splice(bn+1,0,rt),_t(Gn),dn(Tn),jt("show")}else{var pn=Le.findIndex(function(Rn){var nr=Rn.key;return nr===Ut.key}),tn=Xe(Qe(Le,yn,Ut.key),cn,en,Pt),ln=Le.slice();ln.splice(pn+1,0,rt),_t(ln),dn(tn),jt("hide")}else yn!==Le&&(Ne(Le),_t(Le))},[ke,Le]),le.useEffect(function(){Bt||Ot()},[Bt]);var yt=It?mt:Le,Lt={expandedKeys:ke,selectedKeys:Me,loadedKeys:tt,loadingKeys:ot,checkedKeys:Oe,halfCheckedKeys:st,dragOverNodeKey:qt,dropPosition:$t,keyEntities:ft};return le.createElement(le.Fragment,null,At&&wn&&le.createElement("span",{style:ht,"aria-live":"assertive"},lt(wn)),le.createElement("div",null,le.createElement("input",{style:ht,disabled:An===!1||Ft,tabIndex:An!==!1?Gt:null,onKeyDown:on,onFocus:vn,onBlur:Nn,value:"",onChange:Ge,"aria-label":"for screen reader"})),le.createElement("div",{className:"".concat(Pe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},le.createElement("div",{className:"".concat(Pe,"-indent")},le.createElement("div",{ref:En,className:"".concat(Pe,"-indent-unit")}))),le.createElement(Ee.Z,(0,y.Z)({},Mn,{data:yt,itemKey:ut,height:en,fullHeight:!1,virtual:cn,itemHeight:Pt,scrollWidth:Sn,prefixCls:"".concat(Pe,"-list"),ref:qn,role:"tree",onVisibleChange:function(bn){bn.every(function(Tn){return ut(Tn)!==Ue})&&Ot()}}),function(Ut){var bn=Ut.pos,Tn=Object.assign({},(_e(Ut.data),Ut.data)),Gn=Ut.title,pn=Ut.key,tn=Ut.isStart,ln=Ut.isEnd,Rn=(0,Re.km)(pn,bn);delete Tn.key,delete Tn.children;var nr=(0,Re.H8)(Rn,Lt);return le.createElement(He,(0,y.Z)({},Tn,nr,{title:Gn,active:!!wn&&pn===wn.key,pos:bn,data:Ut.data,isStart:tn,isEnd:ln,motion:It,motionNodes:pn===Ue?Xt:null,motionType:Nt,onMotionStart:Vn,onMotionEnd:Ot,treeNodeRequiredProps:Lt,onMouseMove:function(){Yn(null)}}))}))}),pt=kt,Mt=oe(82661),wt=oe(34643),bt=oe(65065),gt=10,We=function(Be){(0,te.Z)(Pe,Be);var Ye=(0,ne.Z)(Pe);function Pe(){var Le;(0,ue.Z)(this,Pe);for(var pe=arguments.length,we=new Array(pe),ke=0;ke<pe;ke++)we[ke]=arguments[ke];return Le=Ye.call.apply(Ye,[this].concat(we)),(0,x.Z)((0,se.Z)(Le),"destroyed",!1),(0,x.Z)((0,se.Z)(Le),"delayedDragEnterLogic",void 0),(0,x.Z)((0,se.Z)(Le),"loadingRetryTimes",{}),(0,x.Z)((0,se.Z)(Le),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Re.w$)()}),(0,x.Z)((0,se.Z)(Le),"dragStartMousePosition",null),(0,x.Z)((0,se.Z)(Le),"dragNodeProps",null),(0,x.Z)((0,se.Z)(Le),"currentMouseOverDroppableNodeKey",null),(0,x.Z)((0,se.Z)(Le),"listRef",le.createRef()),(0,x.Z)((0,se.Z)(Le),"onNodeDragStart",function(Me,Oe){var tt=Le.state,ot=tt.expandedKeys,st=tt.keyEntities,ft=Le.props.onDragStart,Ft=Oe.eventKey;Le.dragNodeProps=Oe,Le.dragStartMousePosition={x:Me.clientX,y:Me.clientY};var Bt=(0,Mt._5)(ot,Ft);Le.setState({draggingNodeKey:Ft,dragChildrenKeys:(0,Mt.wA)(Ft,st),indent:Le.listRef.current.getIndentWidth()}),Le.setExpandedKeys(Bt),window.addEventListener("dragend",Le.onWindowDragEnd),ft==null||ft({event:Me,node:(0,Re.F)(Oe)})}),(0,x.Z)((0,se.Z)(Le),"onNodeDragEnter",function(Me,Oe){var tt=Le.state,ot=tt.expandedKeys,st=tt.keyEntities,ft=tt.dragChildrenKeys,Ft=tt.flattenNodes,Bt=tt.indent,qt=Le.props,$t=qt.onDragEnter,It=qt.onExpand,en=qt.allowDrop,Pt=qt.direction,cn=Oe.pos,Sn=Oe.eventKey;if(Le.currentMouseOverDroppableNodeKey!==Sn&&(Le.currentMouseOverDroppableNodeKey=Sn),!Le.dragNodeProps){Le.resetDragState();return}var An=(0,Mt.OM)(Me,Le.dragNodeProps,Oe,Bt,Le.dragStartMousePosition,en,Ft,st,ot,Pt),wn=An.dropPosition,At=An.dropLevelOffset,Gt=An.dropTargetKey,on=An.dropContainerKey,vn=An.dropTargetPos,Nn=An.dropAllowed,Yn=An.dragOverNodeKey;if(ft.includes(Gt)||!Nn){Le.resetDragState();return}if(Le.delayedDragEnterLogic||(Le.delayedDragEnterLogic={}),Object.keys(Le.delayedDragEnterLogic).forEach(function(Vn){clearTimeout(Le.delayedDragEnterLogic[Vn])}),Le.dragNodeProps.eventKey!==Oe.eventKey&&(Me.persist(),Le.delayedDragEnterLogic[cn]=window.setTimeout(function(){if(Le.state.draggingNodeKey!==null){var Vn=(0,de.Z)(ot),ir=(0,bt.Z)(st,Oe.eventKey);ir&&(ir.children||[]).length&&(Vn=(0,Mt.L0)(ot,Oe.eventKey)),Le.props.hasOwnProperty("expandedKeys")||Le.setExpandedKeys(Vn),It==null||It(Vn,{node:(0,Re.F)(Oe),expanded:!0,nativeEvent:Me.nativeEvent})}},800)),Le.dragNodeProps.eventKey===Gt&&At===0){Le.resetDragState();return}Le.setState({dragOverNodeKey:Yn,dropPosition:wn,dropLevelOffset:At,dropTargetKey:Gt,dropContainerKey:on,dropTargetPos:vn,dropAllowed:Nn}),$t==null||$t({event:Me,node:(0,Re.F)(Oe),expandedKeys:ot})}),(0,x.Z)((0,se.Z)(Le),"onNodeDragOver",function(Me,Oe){var tt=Le.state,ot=tt.dragChildrenKeys,st=tt.flattenNodes,ft=tt.keyEntities,Ft=tt.expandedKeys,Bt=tt.indent,qt=Le.props,$t=qt.onDragOver,It=qt.allowDrop,en=qt.direction;if(Le.dragNodeProps){var Pt=(0,Mt.OM)(Me,Le.dragNodeProps,Oe,Bt,Le.dragStartMousePosition,It,st,ft,Ft,en),cn=Pt.dropPosition,Sn=Pt.dropLevelOffset,An=Pt.dropTargetKey,wn=Pt.dropContainerKey,At=Pt.dropTargetPos,Gt=Pt.dropAllowed,on=Pt.dragOverNodeKey;ot.includes(An)||!Gt||(Le.dragNodeProps.eventKey===An&&Sn===0?Le.state.dropPosition===null&&Le.state.dropLevelOffset===null&&Le.state.dropTargetKey===null&&Le.state.dropContainerKey===null&&Le.state.dropTargetPos===null&&Le.state.dropAllowed===!1&&Le.state.dragOverNodeKey===null||Le.resetDragState():cn===Le.state.dropPosition&&Sn===Le.state.dropLevelOffset&&An===Le.state.dropTargetKey&&wn===Le.state.dropContainerKey&&At===Le.state.dropTargetPos&&Gt===Le.state.dropAllowed&&on===Le.state.dragOverNodeKey||Le.setState({dropPosition:cn,dropLevelOffset:Sn,dropTargetKey:An,dropContainerKey:wn,dropTargetPos:At,dropAllowed:Gt,dragOverNodeKey:on}),$t==null||$t({event:Me,node:(0,Re.F)(Oe)}))}}),(0,x.Z)((0,se.Z)(Le),"onNodeDragLeave",function(Me,Oe){Le.currentMouseOverDroppableNodeKey===Oe.eventKey&&!Me.currentTarget.contains(Me.relatedTarget)&&(Le.resetDragState(),Le.currentMouseOverDroppableNodeKey=null);var tt=Le.props.onDragLeave;tt==null||tt({event:Me,node:(0,Re.F)(Oe)})}),(0,x.Z)((0,se.Z)(Le),"onWindowDragEnd",function(Me){Le.onNodeDragEnd(Me,null,!0),window.removeEventListener("dragend",Le.onWindowDragEnd)}),(0,x.Z)((0,se.Z)(Le),"onNodeDragEnd",function(Me,Oe){var tt=Le.props.onDragEnd;Le.setState({dragOverNodeKey:null}),Le.cleanDragState(),tt==null||tt({event:Me,node:(0,Re.F)(Oe)}),Le.dragNodeProps=null,window.removeEventListener("dragend",Le.onWindowDragEnd)}),(0,x.Z)((0,se.Z)(Le),"onNodeDrop",function(Me,Oe){var tt,ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,st=Le.state,ft=st.dragChildrenKeys,Ft=st.dropPosition,Bt=st.dropTargetKey,qt=st.dropTargetPos,$t=st.dropAllowed;if($t){var It=Le.props.onDrop;if(Le.setState({dragOverNodeKey:null}),Le.cleanDragState(),Bt!==null){var en=(0,fe.Z)((0,fe.Z)({},(0,Re.H8)(Bt,Le.getTreeNodeRequiredProps())),{},{active:((tt=Le.getActiveItem())===null||tt===void 0?void 0:tt.key)===Bt,data:(0,bt.Z)(Le.state.keyEntities,Bt).node}),Pt=ft.includes(Bt);(0,ce.ZP)(!Pt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var cn=(0,Mt.yx)(qt),Sn={event:Me,node:(0,Re.F)(en),dragNode:Le.dragNodeProps?(0,Re.F)(Le.dragNodeProps):null,dragNodesKeys:[Le.dragNodeProps.eventKey].concat(ft),dropToGap:Ft!==0,dropPosition:Ft+Number(cn[cn.length-1])};ot||It==null||It(Sn),Le.dragNodeProps=null}}}),(0,x.Z)((0,se.Z)(Le),"cleanDragState",function(){var Me=Le.state.draggingNodeKey;Me!==null&&Le.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Le.dragStartMousePosition=null,Le.currentMouseOverDroppableNodeKey=null}),(0,x.Z)((0,se.Z)(Le),"triggerExpandActionExpand",function(Me,Oe){var tt=Le.state,ot=tt.expandedKeys,st=tt.flattenNodes,ft=Oe.expanded,Ft=Oe.key,Bt=Oe.isLeaf;if(!(Bt||Me.shiftKey||Me.metaKey||Me.ctrlKey)){var qt=st.filter(function(It){return It.key===Ft})[0],$t=(0,Re.F)((0,fe.Z)((0,fe.Z)({},(0,Re.H8)(Ft,Le.getTreeNodeRequiredProps())),{},{data:qt.data}));Le.setExpandedKeys(ft?(0,Mt._5)(ot,Ft):(0,Mt.L0)(ot,Ft)),Le.onNodeExpand(Me,$t)}}),(0,x.Z)((0,se.Z)(Le),"onNodeClick",function(Me,Oe){var tt=Le.props,ot=tt.onClick,st=tt.expandAction;st==="click"&&Le.triggerExpandActionExpand(Me,Oe),ot==null||ot(Me,Oe)}),(0,x.Z)((0,se.Z)(Le),"onNodeDoubleClick",function(Me,Oe){var tt=Le.props,ot=tt.onDoubleClick,st=tt.expandAction;st==="doubleClick"&&Le.triggerExpandActionExpand(Me,Oe),ot==null||ot(Me,Oe)}),(0,x.Z)((0,se.Z)(Le),"onNodeSelect",function(Me,Oe){var tt=Le.state.selectedKeys,ot=Le.state,st=ot.keyEntities,ft=ot.fieldNames,Ft=Le.props,Bt=Ft.onSelect,qt=Ft.multiple,$t=Oe.selected,It=Oe[ft.key],en=!$t;en?qt?tt=(0,Mt.L0)(tt,It):tt=[It]:tt=(0,Mt._5)(tt,It);var Pt=tt.map(function(cn){var Sn=(0,bt.Z)(st,cn);return Sn?Sn.node:null}).filter(Boolean);Le.setUncontrolledState({selectedKeys:tt}),Bt==null||Bt(tt,{event:"select",selected:en,node:Oe,selectedNodes:Pt,nativeEvent:Me.nativeEvent})}),(0,x.Z)((0,se.Z)(Le),"onNodeCheck",function(Me,Oe,tt){var ot=Le.state,st=ot.keyEntities,ft=ot.checkedKeys,Ft=ot.halfCheckedKeys,Bt=Le.props,qt=Bt.checkStrictly,$t=Bt.onCheck,It=Oe.key,en,Pt={event:"check",node:Oe,checked:tt,nativeEvent:Me.nativeEvent};if(qt){var cn=tt?(0,Mt.L0)(ft,It):(0,Mt._5)(ft,It),Sn=(0,Mt._5)(Ft,It);en={checked:cn,halfChecked:Sn},Pt.checkedNodes=cn.map(function(vn){return(0,bt.Z)(st,vn)}).filter(Boolean).map(function(vn){return vn.node}),Le.setUncontrolledState({checkedKeys:cn})}else{var An=(0,wt.S)([].concat((0,de.Z)(ft),[It]),!0,st),wn=An.checkedKeys,At=An.halfCheckedKeys;if(!tt){var Gt=new Set(wn);Gt.delete(It);var on=(0,wt.S)(Array.from(Gt),{checked:!1,halfCheckedKeys:At},st);wn=on.checkedKeys,At=on.halfCheckedKeys}en=wn,Pt.checkedNodes=[],Pt.checkedNodesPositions=[],Pt.halfCheckedKeys=At,wn.forEach(function(vn){var Nn=(0,bt.Z)(st,vn);if(Nn){var Yn=Nn.node,Vn=Nn.pos;Pt.checkedNodes.push(Yn),Pt.checkedNodesPositions.push({node:Yn,pos:Vn})}}),Le.setUncontrolledState({checkedKeys:wn},!1,{halfCheckedKeys:At})}$t==null||$t(en,Pt)}),(0,x.Z)((0,se.Z)(Le),"onNodeLoad",function(Me){var Oe,tt=Me.key,ot=Le.state.keyEntities,st=(0,bt.Z)(ot,tt);if(!(st!=null&&(Oe=st.children)!==null&&Oe!==void 0&&Oe.length)){var ft=new Promise(function(Ft,Bt){Le.setState(function(qt){var $t=qt.loadedKeys,It=$t===void 0?[]:$t,en=qt.loadingKeys,Pt=en===void 0?[]:en,cn=Le.props,Sn=cn.loadData,An=cn.onLoad;if(!Sn||It.includes(tt)||Pt.includes(tt))return null;var wn=Sn(Me);return wn.then(function(){var At=Le.state.loadedKeys,Gt=(0,Mt.L0)(At,tt);An==null||An(Gt,{event:"load",node:Me}),Le.setUncontrolledState({loadedKeys:Gt}),Le.setState(function(on){return{loadingKeys:(0,Mt._5)(on.loadingKeys,tt)}}),Ft()}).catch(function(At){if(Le.setState(function(on){return{loadingKeys:(0,Mt._5)(on.loadingKeys,tt)}}),Le.loadingRetryTimes[tt]=(Le.loadingRetryTimes[tt]||0)+1,Le.loadingRetryTimes[tt]>=gt){var Gt=Le.state.loadedKeys;(0,ce.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Le.setUncontrolledState({loadedKeys:(0,Mt.L0)(Gt,tt)}),Ft()}Bt(At)}),{loadingKeys:(0,Mt.L0)(Pt,tt)}})});return ft.catch(function(){}),ft}}),(0,x.Z)((0,se.Z)(Le),"onNodeMouseEnter",function(Me,Oe){var tt=Le.props.onMouseEnter;tt==null||tt({event:Me,node:Oe})}),(0,x.Z)((0,se.Z)(Le),"onNodeMouseLeave",function(Me,Oe){var tt=Le.props.onMouseLeave;tt==null||tt({event:Me,node:Oe})}),(0,x.Z)((0,se.Z)(Le),"onNodeContextMenu",function(Me,Oe){var tt=Le.props.onRightClick;tt&&(Me.preventDefault(),tt({event:Me,node:Oe}))}),(0,x.Z)((0,se.Z)(Le),"onFocus",function(){var Me=Le.props.onFocus;Le.setState({focused:!0});for(var Oe=arguments.length,tt=new Array(Oe),ot=0;ot<Oe;ot++)tt[ot]=arguments[ot];Me==null||Me.apply(void 0,tt)}),(0,x.Z)((0,se.Z)(Le),"onBlur",function(){var Me=Le.props.onBlur;Le.setState({focused:!1}),Le.onActiveChange(null);for(var Oe=arguments.length,tt=new Array(Oe),ot=0;ot<Oe;ot++)tt[ot]=arguments[ot];Me==null||Me.apply(void 0,tt)}),(0,x.Z)((0,se.Z)(Le),"getTreeNodeRequiredProps",function(){var Me=Le.state,Oe=Me.expandedKeys,tt=Me.selectedKeys,ot=Me.loadedKeys,st=Me.loadingKeys,ft=Me.checkedKeys,Ft=Me.halfCheckedKeys,Bt=Me.dragOverNodeKey,qt=Me.dropPosition,$t=Me.keyEntities;return{expandedKeys:Oe||[],selectedKeys:tt||[],loadedKeys:ot||[],loadingKeys:st||[],checkedKeys:ft||[],halfCheckedKeys:Ft||[],dragOverNodeKey:Bt,dropPosition:qt,keyEntities:$t}}),(0,x.Z)((0,se.Z)(Le),"setExpandedKeys",function(Me){var Oe=Le.state,tt=Oe.treeData,ot=Oe.fieldNames,st=(0,Re.oH)(tt,Me,ot);Le.setUncontrolledState({expandedKeys:Me,flattenNodes:st},!0)}),(0,x.Z)((0,se.Z)(Le),"onNodeExpand",function(Me,Oe){var tt=Le.state.expandedKeys,ot=Le.state,st=ot.listChanging,ft=ot.fieldNames,Ft=Le.props,Bt=Ft.onExpand,qt=Ft.loadData,$t=Oe.expanded,It=Oe[ft.key];if(!st){var en=tt.includes(It),Pt=!$t;if((0,ce.ZP)($t&&en||!$t&&!en,"Expand state not sync with index check"),tt=Pt?(0,Mt.L0)(tt,It):(0,Mt._5)(tt,It),Le.setExpandedKeys(tt),Bt==null||Bt(tt,{node:Oe,expanded:Pt,nativeEvent:Me.nativeEvent}),Pt&&qt){var cn=Le.onNodeLoad(Oe);cn&&cn.then(function(){var Sn=(0,Re.oH)(Le.state.treeData,tt,ft);Le.setUncontrolledState({flattenNodes:Sn})}).catch(function(){var Sn=Le.state.expandedKeys,An=(0,Mt._5)(Sn,It);Le.setExpandedKeys(An)})}}}),(0,x.Z)((0,se.Z)(Le),"onListChangeStart",function(){Le.setUncontrolledState({listChanging:!0})}),(0,x.Z)((0,se.Z)(Le),"onListChangeEnd",function(){setTimeout(function(){Le.setUncontrolledState({listChanging:!1})})}),(0,x.Z)((0,se.Z)(Le),"onActiveChange",function(Me){var Oe=Le.state.activeKey,tt=Le.props,ot=tt.onActiveChange,st=tt.itemScrollOffset,ft=st===void 0?0:st;Oe!==Me&&(Le.setState({activeKey:Me}),Me!==null&&Le.scrollTo({key:Me,offset:ft}),ot==null||ot(Me))}),(0,x.Z)((0,se.Z)(Le),"getActiveItem",function(){var Me=Le.state,Oe=Me.activeKey,tt=Me.flattenNodes;return Oe===null?null:tt.find(function(ot){var st=ot.key;return st===Oe})||null}),(0,x.Z)((0,se.Z)(Le),"offsetActiveKey",function(Me){var Oe=Le.state,tt=Oe.flattenNodes,ot=Oe.activeKey,st=tt.findIndex(function(Bt){var qt=Bt.key;return qt===ot});st===-1&&Me<0&&(st=tt.length),st=(st+Me+tt.length)%tt.length;var ft=tt[st];if(ft){var Ft=ft.key;Le.onActiveChange(Ft)}else Le.onActiveChange(null)}),(0,x.Z)((0,se.Z)(Le),"onKeyDown",function(Me){var Oe=Le.state,tt=Oe.activeKey,ot=Oe.expandedKeys,st=Oe.checkedKeys,ft=Oe.fieldNames,Ft=Le.props,Bt=Ft.onKeyDown,qt=Ft.checkable,$t=Ft.selectable;switch(Me.which){case E.Z.UP:{Le.offsetActiveKey(-1),Me.preventDefault();break}case E.Z.DOWN:{Le.offsetActiveKey(1),Me.preventDefault();break}}var It=Le.getActiveItem();if(It&&It.data){var en=Le.getTreeNodeRequiredProps(),Pt=It.data.isLeaf===!1||!!(It.data[ft.children]||[]).length,cn=(0,Re.F)((0,fe.Z)((0,fe.Z)({},(0,Re.H8)(tt,en)),{},{data:It.data,active:!0}));switch(Me.which){case E.Z.LEFT:{Pt&&ot.includes(tt)?Le.onNodeExpand({},cn):It.parent&&Le.onActiveChange(It.parent.key),Me.preventDefault();break}case E.Z.RIGHT:{Pt&&!ot.includes(tt)?Le.onNodeExpand({},cn):It.children&&It.children.length&&Le.onActiveChange(It.children[0].key),Me.preventDefault();break}case E.Z.ENTER:case E.Z.SPACE:{qt&&!cn.disabled&&cn.checkable!==!1&&!cn.disableCheckbox?Le.onNodeCheck({},cn,!st.includes(tt)):!qt&&$t&&!cn.disabled&&cn.selectable!==!1&&Le.onNodeSelect({},cn);break}}}Bt==null||Bt(Me)}),(0,x.Z)((0,se.Z)(Le),"setUncontrolledState",function(Me){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Le.destroyed){var ot=!1,st=!0,ft={};Object.keys(Me).forEach(function(Ft){if(Le.props.hasOwnProperty(Ft)){st=!1;return}ot=!0,ft[Ft]=Me[Ft]}),ot&&(!Oe||st)&&Le.setState((0,fe.Z)((0,fe.Z)({},ft),tt))}}),(0,x.Z)((0,se.Z)(Le),"scrollTo",function(Me){Le.listRef.current.scrollTo(Me)}),Le}return(0,ae.Z)(Pe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var pe=this.props,we=pe.activeKey,ke=pe.itemScrollOffset,Me=ke===void 0?0:ke;we!==void 0&&we!==this.state.activeKey&&(this.setState({activeKey:we}),we!==null&&this.scrollTo({key:we,offset:Me}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var pe=this.state,we=pe.focused,ke=pe.flattenNodes,Me=pe.keyEntities,Oe=pe.draggingNodeKey,tt=pe.activeKey,ot=pe.dropLevelOffset,st=pe.dropContainerKey,ft=pe.dropTargetKey,Ft=pe.dropPosition,Bt=pe.dragOverNodeKey,qt=pe.indent,$t=this.props,It=$t.prefixCls,en=$t.className,Pt=$t.style,cn=$t.showLine,Sn=$t.focusable,An=$t.tabIndex,wn=An===void 0?0:An,At=$t.selectable,Gt=$t.showIcon,on=$t.icon,vn=$t.switcherIcon,Nn=$t.draggable,Yn=$t.checkable,Vn=$t.checkStrictly,ir=$t.disabled,Mn=$t.motion,qn=$t.loadData,En=$t.filterTreeNode,Hn=$t.height,Qn=$t.itemHeight,dr=$t.scrollWidth,On=$t.virtual,$n=$t.titleRender,Kn=$t.dropIndicatorRender,yn=$t.onContextMenu,Ne=$t.onScroll,Ve=$t.direction,nt=$t.rootClassName,mt=$t.rootStyle,_t=(0,re.Z)(this.props,{aria:!0,data:!0}),Vt;Nn&&((0,ie.Z)(Nn)==="object"?Vt=Nn:typeof Nn=="function"?Vt={nodeDraggable:Nn}:Vt={});var Jt={prefixCls:It,selectable:At,showIcon:Gt,icon:on,switcherIcon:vn,draggable:Vt,draggingNodeKey:Oe,checkable:Yn,checkStrictly:Vn,disabled:ir,keyEntities:Me,dropLevelOffset:ot,dropContainerKey:st,dropTargetKey:ft,dropPosition:Ft,dragOverNodeKey:Bt,indent:qt,direction:Ve,dropIndicatorRender:Kn,loadData:qn,filterTreeNode:En,titleRender:$n,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return le.createElement(ve.k.Provider,{value:Jt},le.createElement("div",{className:ee()(It,en,nt,(0,x.Z)((0,x.Z)((0,x.Z)({},"".concat(It,"-show-line"),cn),"".concat(It,"-focused"),we),"".concat(It,"-active-focused"),tt!==null)),style:mt},le.createElement(pt,(0,y.Z)({ref:this.listRef,prefixCls:It,style:Pt,data:ke,disabled:ir,selectable:At,checkable:!!Yn,motion:Mn,dragging:Oe!==null,height:Hn,itemHeight:Qn,virtual:On,focusable:Sn,focused:we,tabIndex:wn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:yn,onScroll:Ne,scrollWidth:dr},this.getTreeNodeRequiredProps(),_t))))}}],[{key:"getDerivedStateFromProps",value:function(pe,we){var ke=we.prevProps,Me={prevProps:pe};function Oe(wn){return!ke&&pe.hasOwnProperty(wn)||ke&&ke[wn]!==pe[wn]}var tt,ot=we.fieldNames;if(Oe("fieldNames")&&(ot=(0,Re.w$)(pe.fieldNames),Me.fieldNames=ot),Oe("treeData")?tt=pe.treeData:Oe("children")&&((0,ce.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),tt=(0,Re.zn)(pe.children)),tt){Me.treeData=tt;var st=(0,Re.I8)(tt,{fieldNames:ot});Me.keyEntities=(0,fe.Z)((0,x.Z)({},Ue,et),st.keyEntities)}var ft=Me.keyEntities||we.keyEntities;if(Oe("expandedKeys")||ke&&Oe("autoExpandParent"))Me.expandedKeys=pe.autoExpandParent||!ke&&pe.defaultExpandParent?(0,Mt.r7)(pe.expandedKeys,ft):pe.expandedKeys;else if(!ke&&pe.defaultExpandAll){var Ft=(0,fe.Z)({},ft);delete Ft[Ue];var Bt=[];Object.keys(Ft).forEach(function(wn){var At=Ft[wn];At.children&&At.children.length&&Bt.push(At.key)}),Me.expandedKeys=Bt}else!ke&&pe.defaultExpandedKeys&&(Me.expandedKeys=pe.autoExpandParent||pe.defaultExpandParent?(0,Mt.r7)(pe.defaultExpandedKeys,ft):pe.defaultExpandedKeys);if(Me.expandedKeys||delete Me.expandedKeys,tt||Me.expandedKeys){var qt=(0,Re.oH)(tt||we.treeData,Me.expandedKeys||we.expandedKeys,ot);Me.flattenNodes=qt}if(pe.selectable&&(Oe("selectedKeys")?Me.selectedKeys=(0,Mt.BT)(pe.selectedKeys,pe):!ke&&pe.defaultSelectedKeys&&(Me.selectedKeys=(0,Mt.BT)(pe.defaultSelectedKeys,pe))),pe.checkable){var $t;if(Oe("checkedKeys")?$t=(0,Mt.E6)(pe.checkedKeys)||{}:!ke&&pe.defaultCheckedKeys?$t=(0,Mt.E6)(pe.defaultCheckedKeys)||{}:tt&&($t=(0,Mt.E6)(pe.checkedKeys)||{checkedKeys:we.checkedKeys,halfCheckedKeys:we.halfCheckedKeys}),$t){var It=$t,en=It.checkedKeys,Pt=en===void 0?[]:en,cn=It.halfCheckedKeys,Sn=cn===void 0?[]:cn;if(!pe.checkStrictly){var An=(0,wt.S)(Pt,!0,ft);Pt=An.checkedKeys,Sn=An.halfCheckedKeys}Me.checkedKeys=Pt,Me.halfCheckedKeys=Sn}}return Oe("loadedKeys")&&(Me.loadedKeys=pe.loadedKeys),Me}}]),Pe}(le.Component);(0,x.Z)(We,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ge,allowDrop:function(){return!0},expandAction:!1}),(0,x.Z)(We,"TreeNode",De.Z);var Ie=We,xe=Ie},82661:function(rn,Tt,oe){"use strict";oe.d(Tt,{BT:function(){return le},E6:function(){return ge},L0:function(){return x},OM:function(){return ce},_5:function(){return ne},r7:function(){return _e},wA:function(){return ee},yx:function(){return b}});var y=oe(94480),ie=oe(76190),fe=oe(48736),de=oe(59301),ue=oe(639),ae=oe(65065),se=oe(34061),te=null;function ne(Ce,he){if(!Ce)return[];var be=Ce.slice(),Ee=be.indexOf(he);return Ee>=0&&be.splice(Ee,1),be}function x(Ce,he){var be=(Ce||[]).slice();return be.indexOf(he)===-1&&be.push(he),be}function b(Ce){return Ce.split("-")}function ee(Ce,he){var be=[],Ee=(0,ae.Z)(he,Ce);function Ae(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];De.forEach(function(je){var Fe=je.key,Re=je.children;be.push(Fe),Ae(Re)})}return Ae(Ee.children),be}function E(Ce){if(Ce.parent){var he=b(Ce.pos);return Number(he[he.length-1])===Ce.parent.children.length-1}return!1}function re(Ce){var he=b(Ce.pos);return Number(he[he.length-1])===0}function ce(Ce,he,be,Ee,Ae,De,je,Fe,Re,qe){var Je,He=Ce.clientX,ze=Ce.clientY,Qe=Ce.target.getBoundingClientRect(),$e=Qe.top,ht=Qe.height,Ge=(qe==="rtl"?-1:1)*(((Ae==null?void 0:Ae.x)||0)-He),Ue=(Ge-12)/Ee,Ke=Re.filter(function(xe){var Be;return(Be=Fe[xe])===null||Be===void 0||(Be=Be.children)===null||Be===void 0?void 0:Be.length}),et=(0,ae.Z)(Fe,be.eventKey);if(ze<$e+ht/2){var rt=je.findIndex(function(xe){return xe.key===et.key}),Xe=rt<=0?0:rt-1,ut=je[Xe].key;et=(0,ae.Z)(Fe,ut)}var lt=et.key,kt=et,pt=et.key,Mt=0,wt=0;if(!Ke.includes(lt))for(var bt=0;bt<Ue&&E(et);bt+=1)et=et.parent,wt+=1;var gt=he.data,We=et.node,Ie=!0;return re(et)&&et.level===0&&ze<$e+ht/2&&De({dragNode:gt,dropNode:We,dropPosition:-1})&&et.key===be.eventKey?Mt=-1:(kt.children||[]).length&&Ke.includes(pt)?De({dragNode:gt,dropNode:We,dropPosition:0})?Mt=0:Ie=!1:wt===0?Ue>-1.5?De({dragNode:gt,dropNode:We,dropPosition:1})?Mt=1:Ie=!1:De({dragNode:gt,dropNode:We,dropPosition:0})?Mt=0:De({dragNode:gt,dropNode:We,dropPosition:1})?Mt=1:Ie=!1:De({dragNode:gt,dropNode:We,dropPosition:1})?Mt=1:Ie=!1,{dropPosition:Mt,dropLevelOffset:wt,dropTargetKey:et.key,dropTargetPos:et.pos,dragOverNodeKey:pt,dropContainerKey:Mt===0?null:((Je=et.parent)===null||Je===void 0?void 0:Je.key)||null,dropAllowed:Ie}}function le(Ce,he){if(Ce){var be=he.multiple;return be?Ce.slice():Ce.length?[Ce[0]]:Ce}}var ve=function(he){return he};function Se(Ce,he){if(!Ce)return[];var be=he||{},Ee=be.processProps,Ae=Ee===void 0?ve:Ee,De=Array.isArray(Ce)?Ce:[Ce];return De.map(function(je){var Fe=je.children,Re=_objectWithoutProperties(je,te),qe=Se(Fe,he);return React.createElement(TreeNode,_extends({key:Re.key},Ae(Re)),qe)})}function ge(Ce){if(!Ce)return null;var he;if(Array.isArray(Ce))he={checkedKeys:Ce,halfCheckedKeys:void 0};else if((0,ie.Z)(Ce)==="object")he={checkedKeys:Ce.checked||void 0,halfCheckedKeys:Ce.halfChecked||void 0};else return(0,fe.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return he}function _e(Ce,he){var be=new Set;function Ee(Ae){if(!be.has(Ae)){var De=(0,ae.Z)(he,Ae);if(De){be.add(Ae);var je=De.parent,Fe=De.node;Fe.disabled||je&&Ee(je.key)}}}return(Ce||[]).forEach(function(Ae){Ee(Ae)}),(0,y.Z)(be)}},34643:function(rn,Tt,oe){"use strict";oe.d(Tt,{S:function(){return se}});var y=oe(48736),ie=oe(65065);function fe(te,ne){var x=new Set;return te.forEach(function(b){ne.has(b)||x.add(b)}),x}function de(te){var ne=te||{},x=ne.disabled,b=ne.disableCheckbox,ee=ne.checkable;return!!(x||b)||ee===!1}function ue(te,ne,x,b){for(var ee=new Set(te),E=new Set,re=0;re<=x;re+=1){var ce=ne.get(re)||new Set;ce.forEach(function(ge){var _e=ge.key,Ce=ge.node,he=ge.children,be=he===void 0?[]:he;ee.has(_e)&&!b(Ce)&&be.filter(function(Ee){return!b(Ee.node)}).forEach(function(Ee){ee.add(Ee.key)})})}for(var le=new Set,ve=x;ve>=0;ve-=1){var Se=ne.get(ve)||new Set;Se.forEach(function(ge){var _e=ge.parent,Ce=ge.node;if(!(b(Ce)||!ge.parent||le.has(ge.parent.key))){if(b(ge.parent.node)){le.add(_e.key);return}var he=!0,be=!1;(_e.children||[]).filter(function(Ee){return!b(Ee.node)}).forEach(function(Ee){var Ae=Ee.key,De=ee.has(Ae);he&&!De&&(he=!1),!be&&(De||E.has(Ae))&&(be=!0)}),he&&ee.add(_e.key),be&&E.add(_e.key),le.add(_e.key)}})}return{checkedKeys:Array.from(ee),halfCheckedKeys:Array.from(fe(E,ee))}}function ae(te,ne,x,b,ee){for(var E=new Set(te),re=new Set(ne),ce=0;ce<=b;ce+=1){var le=x.get(ce)||new Set;le.forEach(function(_e){var Ce=_e.key,he=_e.node,be=_e.children,Ee=be===void 0?[]:be;!E.has(Ce)&&!re.has(Ce)&&!ee(he)&&Ee.filter(function(Ae){return!ee(Ae.node)}).forEach(function(Ae){E.delete(Ae.key)})})}re=new Set;for(var ve=new Set,Se=b;Se>=0;Se-=1){var ge=x.get(Se)||new Set;ge.forEach(function(_e){var Ce=_e.parent,he=_e.node;if(!(ee(he)||!_e.parent||ve.has(_e.parent.key))){if(ee(_e.parent.node)){ve.add(Ce.key);return}var be=!0,Ee=!1;(Ce.children||[]).filter(function(Ae){return!ee(Ae.node)}).forEach(function(Ae){var De=Ae.key,je=E.has(De);be&&!je&&(be=!1),!Ee&&(je||re.has(De))&&(Ee=!0)}),be||E.delete(Ce.key),Ee&&re.add(Ce.key),ve.add(Ce.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(fe(re,E))}}function se(te,ne,x,b){var ee=[],E;b?E=b:E=de;var re=new Set(te.filter(function(Se){var ge=!!(0,ie.Z)(x,Se);return ge||ee.push(Se),ge})),ce=new Map,le=0;Object.keys(x).forEach(function(Se){var ge=x[Se],_e=ge.level,Ce=ce.get(_e);Ce||(Ce=new Set,ce.set(_e,Ce)),Ce.add(ge),le=Math.max(le,_e)}),(0,y.ZP)(!ee.length,"Tree missing follow keys: ".concat(ee.slice(0,100).map(function(Se){return"'".concat(Se,"'")}).join(", ")));var ve;return ne===!0?ve=ue(re,ce,le,E):ve=ae(re,ne.halfCheckedKeys,ce,le,E),ve}},65065:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return y}});function y(ie,fe){return ie[fe]}},34061:function(rn,Tt,oe){"use strict";oe.d(Tt,{F:function(){return _e},H8:function(){return ge},I8:function(){return Se},km:function(){return ee},oH:function(){return le},w$:function(){return E},zn:function(){return ce}});var y=oe(76190),ie=oe(94480),fe=oe(33885),de=oe(75931),ue=oe(11592),ae=oe(2738),se=oe(48736),te=oe(65065),ne=["children"];function x(Ce,he){return"".concat(Ce,"-").concat(he)}function b(Ce){return Ce&&Ce.type&&Ce.type.isTreeNode}function ee(Ce,he){return Ce!=null?Ce:he}function E(Ce){var he=Ce||{},be=he.title,Ee=he._title,Ae=he.key,De=he.children,je=be||"title";return{title:je,_title:Ee||[je],key:Ae||"key",children:De||"children"}}function re(Ce,he){var be=new Map;function Ee(Ae){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ae||[]).forEach(function(je){var Fe=je[he.key],Re=je[he.children];warning(Fe!=null,"Tree node must have a certain key: [".concat(De).concat(Fe,"]"));var qe=String(Fe);warning(!be.has(qe)||Fe===null||Fe===void 0,"Same 'key' exist in the Tree: ".concat(qe)),be.set(qe,!0),Ee(Re,"".concat(De).concat(qe," > "))})}Ee(Ce)}function ce(Ce){function he(be){var Ee=(0,ue.Z)(be);return Ee.map(function(Ae){if(!b(Ae))return(0,se.ZP)(!Ae,"Tree/TreeNode can only accept TreeNode as children."),null;var De=Ae.key,je=Ae.props,Fe=je.children,Re=(0,de.Z)(je,ne),qe=(0,fe.Z)({key:De},Re),Je=he(Fe);return Je.length&&(qe.children=Je),qe}).filter(function(Ae){return Ae})}return he(Ce)}function le(Ce,he,be){var Ee=E(be),Ae=Ee._title,De=Ee.key,je=Ee.children,Fe=new Set(he===!0?[]:he),Re=[];function qe(Je){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Je.map(function(ze,Qe){for(var $e=x(He?He.pos:"0",Qe),ht=ee(ze[De],$e),Ge,Ue=0;Ue<Ae.length;Ue+=1){var Ke=Ae[Ue];if(ze[Ke]!==void 0){Ge=ze[Ke];break}}var et=Object.assign((0,ae.Z)(ze,[].concat((0,ie.Z)(Ae),[De,je])),{title:Ge,key:ht,parent:He,pos:$e,children:null,data:ze,isStart:[].concat((0,ie.Z)(He?He.isStart:[]),[Qe===0]),isEnd:[].concat((0,ie.Z)(He?He.isEnd:[]),[Qe===Je.length-1])});return Re.push(et),he===!0||Fe.has(ht)?et.children=qe(ze[je]||[],et):et.children=[],et})}return qe(Ce),Re}function ve(Ce,he,be){var Ee={};(0,y.Z)(be)==="object"?Ee=be:Ee={externalGetKey:be},Ee=Ee||{};var Ae=Ee,De=Ae.childrenPropName,je=Ae.externalGetKey,Fe=Ae.fieldNames,Re=E(Fe),qe=Re.key,Je=Re.children,He=De||Je,ze;je?typeof je=="string"?ze=function(ht){return ht[je]}:typeof je=="function"&&(ze=function(ht){return je(ht)}):ze=function(ht,Ge){return ee(ht[qe],Ge)};function Qe($e,ht,Ge,Ue){var Ke=$e?$e[He]:Ce,et=$e?x(Ge.pos,ht):"0",rt=$e?[].concat((0,ie.Z)(Ue),[$e]):[];if($e){var Xe=ze($e,et),ut={node:$e,index:ht,pos:et,key:Xe,parentPos:Ge.node?Ge.pos:null,level:Ge.level+1,nodes:rt};he(ut)}Ke&&Ke.forEach(function(lt,kt){Qe(lt,kt,{node:$e,pos:et,level:Ge?Ge.level+1:-1},rt)})}Qe(null)}function Se(Ce){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=he.initWrapper,Ee=he.processEntity,Ae=he.onProcessFinished,De=he.externalGetKey,je=he.childrenPropName,Fe=he.fieldNames,Re=arguments.length>2?arguments[2]:void 0,qe=De||Re,Je={},He={},ze={posEntities:Je,keyEntities:He};return be&&(ze=be(ze)||ze),ve(Ce,function(Qe){var $e=Qe.node,ht=Qe.index,Ge=Qe.pos,Ue=Qe.key,Ke=Qe.parentPos,et=Qe.level,rt=Qe.nodes,Xe={node:$e,nodes:rt,index:ht,key:Ue,pos:Ge,level:et},ut=ee(Ue,Ge);Je[Ge]=Xe,He[ut]=Xe,Xe.parent=Je[Ke],Xe.parent&&(Xe.parent.children=Xe.parent.children||[],Xe.parent.children.push(Xe)),Ee&&Ee(Xe,ze)},{externalGetKey:qe,childrenPropName:je,fieldNames:Fe}),Ae&&Ae(ze),ze}function ge(Ce,he){var be=he.expandedKeys,Ee=he.selectedKeys,Ae=he.loadedKeys,De=he.loadingKeys,je=he.checkedKeys,Fe=he.halfCheckedKeys,Re=he.dragOverNodeKey,qe=he.dropPosition,Je=he.keyEntities,He=(0,te.Z)(Je,Ce),ze={eventKey:Ce,expanded:be.indexOf(Ce)!==-1,selected:Ee.indexOf(Ce)!==-1,loaded:Ae.indexOf(Ce)!==-1,loading:De.indexOf(Ce)!==-1,checked:je.indexOf(Ce)!==-1,halfChecked:Fe.indexOf(Ce)!==-1,pos:String(He?He.pos:""),dragOver:Re===Ce&&qe===0,dragOverGapTop:Re===Ce&&qe===-1,dragOverGapBottom:Re===Ce&&qe===1};return ze}function _e(Ce){var he=Ce.data,be=Ce.expanded,Ee=Ce.selected,Ae=Ce.checked,De=Ce.loaded,je=Ce.loading,Fe=Ce.halfChecked,Re=Ce.dragOver,qe=Ce.dragOverGapTop,Je=Ce.dragOverGapBottom,He=Ce.pos,ze=Ce.active,Qe=Ce.eventKey,$e=(0,fe.Z)((0,fe.Z)({},he),{},{expanded:be,selected:Ee,checked:Ae,loaded:De,loading:je,halfChecked:Fe,dragOver:Re,dragOverGapTop:qe,dragOverGapBottom:Je,pos:He,active:ze,key:Qe});return"props"in $e||Object.defineProperty($e,"props",{get:function(){return(0,se.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ce}}),$e}},8224:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return ie}});var y=oe(4676);function ie(fe,de,ue,ae){var se=y.unstable_batchedUpdates?function(ne){y.unstable_batchedUpdates(ue,ne)}:ue;return fe!=null&&fe.addEventListener&&fe.addEventListener(de,se,ae),{remove:function(){fe!=null&&fe.removeEventListener&&fe.removeEventListener(de,se,ae)}}}},3465:function(rn,Tt,oe){"use strict";oe.d(Tt,{G:function(){return de}});var y=oe(47273),ie=function(ae){if((0,y.Z)()&&window.document.documentElement){var se=Array.isArray(ae)?ae:[ae],te=window.document.documentElement;return se.some(function(ne){return ne in te.style})}return!1},fe=function(ae,se){if(!ie(ae))return!1;var te=document.createElement("div"),ne=te.style[ae];return te.style[ae]=se,te.style[ae]!==ne};function de(ue,ae){return!Array.isArray(ue)&&ae!==void 0?fe(ue,ae):ie(ue)}},48911:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return gt}});var y=oe(54476),ie=oe(76190),fe=oe(33885),de=oe(20068),ue=oe(42978),ae=oe(75931),se=oe(92310),te=oe.n(se),ne=oe(29301),x=oe(70425),b=oe(34280),ee=oe(59301),E=oe(4676),re=ee.forwardRef(function(We,Ie){var xe=We.height,Be=We.offsetY,Ye=We.offsetX,Pe=We.children,Le=We.prefixCls,pe=We.onInnerResize,we=We.innerProps,ke=We.rtl,Me=We.extra,Oe={},tt={display:"flex",flexDirection:"column"};return Be!==void 0&&(Oe={height:xe,position:"relative",overflow:"hidden"},tt=(0,fe.Z)((0,fe.Z)({},tt),{},(0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)((0,de.Z)({transform:"translateY(".concat(Be,"px)")},ke?"marginRight":"marginLeft",-Ye),"position","absolute"),"left",0),"right",0),"top",0))),ee.createElement("div",{style:Oe},ee.createElement(ne.Z,{onResize:function(st){var ft=st.offsetHeight;ft&&pe&&pe()}},ee.createElement("div",(0,y.Z)({style:tt,className:te()((0,de.Z)({},"".concat(Le,"-holder-inner"),Le)),ref:Ie},we),Pe,Me)))});re.displayName="Filler";var ce=re;function le(We){var Ie=We.children,xe=We.setRef,Be=ee.useCallback(function(Ye){xe(Ye)},[]);return ee.cloneElement(Ie,{ref:Be})}function ve(We,Ie,xe,Be,Ye,Pe,Le,pe){var we=pe.getKey;return We.slice(Ie,xe+1).map(function(ke,Me){var Oe=Ie+Me,tt=Le(ke,Oe,{style:{width:Be},offsetX:Ye}),ot=we(ke);return ee.createElement(le,{key:ot,setRef:function(ft){return Pe(ke,ft)}},tt)})}function Se(We,Ie,xe,Be){var Ye=xe-We,Pe=Ie-xe,Le=Math.min(Ye,Pe)*2;if(Be<=Le){var pe=Math.floor(Be/2);return Be%2?xe+pe+1:xe-pe}return Ye>Pe?xe-(Be-Pe):xe+(Be-Ye)}function ge(We,Ie,xe){var Be=We.length,Ye=Ie.length,Pe,Le;if(Be===0&&Ye===0)return null;Be<Ye?(Pe=We,Le=Ie):(Pe=Ie,Le=We);var pe={__EMPTY_ITEM__:!0};function we(st){return st!==void 0?xe(st):pe}for(var ke=null,Me=Math.abs(Be-Ye)!==1,Oe=0;Oe<Le.length;Oe+=1){var tt=we(Pe[Oe]),ot=we(Le[Oe]);if(tt!==ot){ke=Oe,Me=Me||tt!==we(Le[Oe+1]);break}}return ke===null?null:{index:ke,multiple:Me}}function _e(We,Ie,xe){var Be=ee.useState(We),Ye=(0,ue.Z)(Be,2),Pe=Ye[0],Le=Ye[1],pe=ee.useState(null),we=(0,ue.Z)(pe,2),ke=we[0],Me=we[1];return ee.useEffect(function(){var Oe=ge(Pe||[],We||[],Ie);(Oe==null?void 0:Oe.index)!==void 0&&(xe==null||xe(Oe.index),Me(We[Oe.index])),Le(We)},[We]),[ke]}var Ce=oe(16089),he=(typeof navigator=="undefined"?"undefined":(0,ie.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),be=he,Ee=function(We,Ie,xe,Be){var Ye=(0,ee.useRef)(!1),Pe=(0,ee.useRef)(null);function Le(){clearTimeout(Pe.current),Ye.current=!0,Pe.current=setTimeout(function(){Ye.current=!1},50)}var pe=(0,ee.useRef)({top:We,bottom:Ie,left:xe,right:Be});return pe.current.top=We,pe.current.bottom=Ie,pe.current.left=xe,pe.current.right=Be,function(we,ke){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Oe=we?ke<0&&pe.current.left||ke>0&&pe.current.right:ke<0&&pe.current.top||ke>0&&pe.current.bottom;return Me&&Oe?(clearTimeout(Pe.current),Ye.current=!1):(!Oe||Ye.current)&&Le(),!Ye.current&&Oe}};function Ae(We,Ie,xe,Be,Ye,Pe,Le){var pe=(0,ee.useRef)(0),we=(0,ee.useRef)(null),ke=(0,ee.useRef)(null),Me=(0,ee.useRef)(!1),Oe=Ee(Ie,xe,Be,Ye);function tt(qt,$t){if(Ce.Z.cancel(we.current),!Oe(!1,$t)){var It=qt;if(!It._virtualHandled)It._virtualHandled=!0;else return;pe.current+=$t,ke.current=$t,be||It.preventDefault(),we.current=(0,Ce.Z)(function(){var en=Me.current?10:1;Le(pe.current*en,!1),pe.current=0})}}function ot(qt,$t){Le($t,!0),be||qt.preventDefault()}var st=(0,ee.useRef)(null),ft=(0,ee.useRef)(null);function Ft(qt){if(We){Ce.Z.cancel(ft.current),ft.current=(0,Ce.Z)(function(){st.current=null},2);var $t=qt.deltaX,It=qt.deltaY,en=qt.shiftKey,Pt=$t,cn=It;(st.current==="sx"||!st.current&&en&&It&&!$t)&&(Pt=It,cn=0,st.current="sx");var Sn=Math.abs(Pt),An=Math.abs(cn);st.current===null&&(st.current=Pe&&Sn>An?"x":"y"),st.current==="y"?tt(qt,cn):ot(qt,Pt)}}function Bt(qt){We&&(Me.current=qt.detail===ke.current)}return[Ft,Bt]}function De(We,Ie,xe,Be){var Ye=ee.useMemo(function(){return[new Map,[]]},[We,xe.id,Be]),Pe=(0,ue.Z)(Ye,2),Le=Pe[0],pe=Pe[1],we=function(Me){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Me,tt=Le.get(Me),ot=Le.get(Oe);if(tt===void 0||ot===void 0)for(var st=We.length,ft=pe.length;ft<st;ft+=1){var Ft,Bt=We[ft],qt=Ie(Bt);Le.set(qt,ft);var $t=(Ft=xe.get(qt))!==null&&Ft!==void 0?Ft:Be;if(pe[ft]=(pe[ft-1]||0)+$t,qt===Me&&(tt=ft),qt===Oe&&(ot=ft),tt!==void 0&&ot!==void 0)break}return{top:pe[tt-1]||0,bottom:pe[ot]}};return we}var je=oe(67732),Fe=oe(83652),Re=function(){function We(){(0,je.Z)(this,We),(0,de.Z)(this,"maps",void 0),(0,de.Z)(this,"id",0),(0,de.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Fe.Z)(We,[{key:"set",value:function(xe,Be){this.diffRecords.set(xe,this.maps[xe]),this.maps[xe]=Be,this.id+=1}},{key:"get",value:function(xe){return this.maps[xe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),We}(),qe=Re;function Je(We){var Ie=parseFloat(We);return isNaN(Ie)?0:Ie}function He(We,Ie,xe){var Be=ee.useState(0),Ye=(0,ue.Z)(Be,2),Pe=Ye[0],Le=Ye[1],pe=(0,ee.useRef)(new Map),we=(0,ee.useRef)(new qe),ke=(0,ee.useRef)(0);function Me(){ke.current+=1}function Oe(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Me();var st=function(){var Bt=!1;pe.current.forEach(function(qt,$t){if(qt&&qt.offsetParent){var It=qt.offsetHeight,en=getComputedStyle(qt),Pt=en.marginTop,cn=en.marginBottom,Sn=Je(Pt),An=Je(cn),wn=It+Sn+An;we.current.get($t)!==wn&&(we.current.set($t,wn),Bt=!0)}}),Bt&&Le(function(qt){return qt+1})};if(ot)st();else{ke.current+=1;var ft=ke.current;Promise.resolve().then(function(){ft===ke.current&&st()})}}function tt(ot,st){var ft=We(ot),Ft=pe.current.get(ft);st?(pe.current.set(ft,st),Oe()):pe.current.delete(ft),!Ft!=!st&&(st?Ie==null||Ie(ot):xe==null||xe(ot))}return(0,ee.useEffect)(function(){return Me},[]),[tt,Oe,we.current,Pe]}var ze=14/15;function Qe(We,Ie,xe){var Be=(0,ee.useRef)(!1),Ye=(0,ee.useRef)(0),Pe=(0,ee.useRef)(0),Le=(0,ee.useRef)(null),pe=(0,ee.useRef)(null),we,ke=function(ot){if(Be.current){var st=Math.ceil(ot.touches[0].pageX),ft=Math.ceil(ot.touches[0].pageY),Ft=Ye.current-st,Bt=Pe.current-ft,qt=Math.abs(Ft)>Math.abs(Bt);qt?Ye.current=st:Pe.current=ft;var $t=xe(qt,qt?Ft:Bt,!1,ot);$t&&ot.preventDefault(),clearInterval(pe.current),$t&&(pe.current=setInterval(function(){qt?Ft*=ze:Bt*=ze;var It=Math.floor(qt?Ft:Bt);(!xe(qt,It,!0)||Math.abs(It)<=.1)&&clearInterval(pe.current)},16))}},Me=function(){Be.current=!1,we()},Oe=function(ot){we(),ot.touches.length===1&&!Be.current&&(Be.current=!0,Ye.current=Math.ceil(ot.touches[0].pageX),Pe.current=Math.ceil(ot.touches[0].pageY),Le.current=ot.target,Le.current.addEventListener("touchmove",ke,{passive:!1}),Le.current.addEventListener("touchend",Me,{passive:!0}))};we=function(){Le.current&&(Le.current.removeEventListener("touchmove",ke),Le.current.removeEventListener("touchend",Me))},(0,b.Z)(function(){return We&&Ie.current.addEventListener("touchstart",Oe,{passive:!0}),function(){var tt;(tt=Ie.current)===null||tt===void 0||tt.removeEventListener("touchstart",Oe),we(),clearInterval(pe.current)}},[We])}function $e(We){return Math.floor(Math.pow(We,.5))}function ht(We,Ie){var xe="touches"in We?We.touches[0]:We;return xe[Ie?"pageX":"pageY"]-window[Ie?"scrollX":"scrollY"]}function Ge(We,Ie,xe){ee.useEffect(function(){var Be=Ie.current;if(We&&Be){var Ye=!1,Pe,Le,pe=function(){Ce.Z.cancel(Pe)},we=function tt(){pe(),Pe=(0,Ce.Z)(function(){xe(Le),tt()})},ke=function(){Ye=!1,pe()},Me=function(ot){if(!(ot.target.draggable||ot.button!==0)){var st=ot;st._virtualHandled||(st._virtualHandled=!0,Ye=!0)}},Oe=function(ot){if(Ye){var st=ht(ot,!1),ft=Be.getBoundingClientRect(),Ft=ft.top,Bt=ft.bottom;if(st<=Ft){var qt=Ft-st;Le=-$e(qt),we()}else if(st>=Bt){var $t=st-Bt;Le=$e($t),we()}else pe()}};return Be.addEventListener("mousedown",Me),Be.ownerDocument.addEventListener("mouseup",ke),Be.ownerDocument.addEventListener("mousemove",Oe),Be.ownerDocument.addEventListener("dragend",ke),function(){Be.removeEventListener("mousedown",Me),Be.ownerDocument.removeEventListener("mouseup",ke),Be.ownerDocument.removeEventListener("mousemove",Oe),Be.ownerDocument.removeEventListener("dragend",ke),pe()}}},[We])}var Ue=10;function Ke(We,Ie,xe,Be,Ye,Pe,Le,pe){var we=ee.useRef(),ke=ee.useState(null),Me=(0,ue.Z)(ke,2),Oe=Me[0],tt=Me[1];return(0,b.Z)(function(){if(Oe&&Oe.times<Ue){if(!We.current){tt(function(Mn){return(0,fe.Z)({},Mn)});return}Pe();var ot=Oe.targetAlign,st=Oe.originAlign,ft=Oe.index,Ft=Oe.offset,Bt=We.current.clientHeight,qt=!1,$t=ot,It=null;if(Bt){for(var en=ot||st,Pt=0,cn=0,Sn=0,An=Math.min(Ie.length-1,ft),wn=0;wn<=An;wn+=1){var At=Ye(Ie[wn]);cn=Pt;var Gt=xe.get(At);Sn=cn+(Gt===void 0?Be:Gt),Pt=Sn}for(var on=en==="top"?Ft:Bt-Ft,vn=An;vn>=0;vn-=1){var Nn=Ye(Ie[vn]),Yn=xe.get(Nn);if(Yn===void 0){qt=!0;break}if(on-=Yn,on<=0)break}switch(en){case"top":It=cn-Ft;break;case"bottom":It=Sn-Bt+Ft;break;default:{var Vn=We.current.scrollTop,ir=Vn+Bt;cn<Vn?$t="top":Sn>ir&&($t="bottom")}}It!==null&&Le(It),It!==Oe.lastTop&&(qt=!0)}qt&&tt((0,fe.Z)((0,fe.Z)({},Oe),{},{times:Oe.times+1,targetAlign:$t,lastTop:It}))}},[Oe,We.current]),function(ot){if(ot==null){pe();return}if(Ce.Z.cancel(we.current),typeof ot=="number")Le(ot);else if(ot&&(0,ie.Z)(ot)==="object"){var st,ft=ot.align;"index"in ot?st=ot.index:st=Ie.findIndex(function(qt){return Ye(qt)===ot.key});var Ft=ot.offset,Bt=Ft===void 0?0:Ft;tt({times:0,index:st,offset:Bt,originAlign:ft})}}}var et=ee.forwardRef(function(We,Ie){var xe=We.prefixCls,Be=We.rtl,Ye=We.scrollOffset,Pe=We.scrollRange,Le=We.onStartMove,pe=We.onStopMove,we=We.onScroll,ke=We.horizontal,Me=We.spinSize,Oe=We.containerSize,tt=We.style,ot=We.thumbStyle,st=We.showScrollBar,ft=ee.useState(!1),Ft=(0,ue.Z)(ft,2),Bt=Ft[0],qt=Ft[1],$t=ee.useState(null),It=(0,ue.Z)($t,2),en=It[0],Pt=It[1],cn=ee.useState(null),Sn=(0,ue.Z)(cn,2),An=Sn[0],wn=Sn[1],At=!Be,Gt=ee.useRef(),on=ee.useRef(),vn=ee.useState(st),Nn=(0,ue.Z)(vn,2),Yn=Nn[0],Vn=Nn[1],ir=ee.useRef(),Mn=function(){st===!0||st===!1||(clearTimeout(ir.current),Vn(!0),ir.current=setTimeout(function(){Vn(!1)},3e3))},qn=Pe-Oe||0,En=Oe-Me||0,Hn=ee.useMemo(function(){if(Ye===0||qn===0)return 0;var nt=Ye/qn;return nt*En},[Ye,qn,En]),Qn=function(mt){mt.stopPropagation(),mt.preventDefault()},dr=ee.useRef({top:Hn,dragging:Bt,pageY:en,startTop:An});dr.current={top:Hn,dragging:Bt,pageY:en,startTop:An};var On=function(mt){qt(!0),Pt(ht(mt,ke)),wn(dr.current.top),Le(),mt.stopPropagation(),mt.preventDefault()};ee.useEffect(function(){var nt=function(Jt){Jt.preventDefault()},mt=Gt.current,_t=on.current;return mt.addEventListener("touchstart",nt,{passive:!1}),_t.addEventListener("touchstart",On,{passive:!1}),function(){mt.removeEventListener("touchstart",nt),_t.removeEventListener("touchstart",On)}},[]);var $n=ee.useRef();$n.current=qn;var Kn=ee.useRef();Kn.current=En,ee.useEffect(function(){if(Bt){var nt,mt=function(Jt){var Xt=dr.current,dn=Xt.dragging,jn=Xt.pageY,vr=Xt.startTop;Ce.Z.cancel(nt);var Nt=Gt.current.getBoundingClientRect(),jt=Oe/(ke?Nt.width:Nt.height);if(dn){var xt=(ht(Jt,ke)-jn)*jt,Ot=vr;!At&&ke?Ot-=xt:Ot+=xt;var yt=$n.current,Lt=Kn.current,Ut=Lt?Ot/Lt:0,bn=Math.ceil(Ut*yt);bn=Math.max(bn,0),bn=Math.min(bn,yt),nt=(0,Ce.Z)(function(){we(bn,ke)})}},_t=function(){qt(!1),pe()};return window.addEventListener("mousemove",mt,{passive:!0}),window.addEventListener("touchmove",mt,{passive:!0}),window.addEventListener("mouseup",_t,{passive:!0}),window.addEventListener("touchend",_t,{passive:!0}),function(){window.removeEventListener("mousemove",mt),window.removeEventListener("touchmove",mt),window.removeEventListener("mouseup",_t),window.removeEventListener("touchend",_t),Ce.Z.cancel(nt)}}},[Bt]),ee.useEffect(function(){return Mn(),function(){clearTimeout(ir.current)}},[Ye]),ee.useImperativeHandle(Ie,function(){return{delayHidden:Mn}});var yn="".concat(xe,"-scrollbar"),Ne={position:"absolute",visibility:Yn?null:"hidden"},Ve={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ke?(Object.assign(Ne,{height:8,left:0,right:0,bottom:0}),Object.assign(Ve,(0,de.Z)({height:"100%",width:Me},At?"left":"right",Hn))):(Object.assign(Ne,(0,de.Z)({width:8,top:0,bottom:0},At?"right":"left",0)),Object.assign(Ve,{width:"100%",height:Me,top:Hn})),ee.createElement("div",{ref:Gt,className:te()(yn,(0,de.Z)((0,de.Z)((0,de.Z)({},"".concat(yn,"-horizontal"),ke),"".concat(yn,"-vertical"),!ke),"".concat(yn,"-visible"),Yn)),style:(0,fe.Z)((0,fe.Z)({},Ne),tt),onMouseDown:Qn,onMouseMove:Mn},ee.createElement("div",{ref:on,className:te()("".concat(yn,"-thumb"),(0,de.Z)({},"".concat(yn,"-thumb-moving"),Bt)),style:(0,fe.Z)((0,fe.Z)({},Ve),ot),onMouseDown:On}))}),rt=et,Xe=20;function ut(){var We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,xe=We/Ie*We;return isNaN(xe)&&(xe=0),xe=Math.max(xe,Xe),Math.floor(xe)}var lt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],kt=[],pt={overflowY:"auto",overflowAnchor:"none"};function Mt(We,Ie){var xe=We.prefixCls,Be=xe===void 0?"rc-virtual-list":xe,Ye=We.className,Pe=We.height,Le=We.itemHeight,pe=We.fullHeight,we=pe===void 0?!0:pe,ke=We.style,Me=We.data,Oe=We.children,tt=We.itemKey,ot=We.virtual,st=We.direction,ft=We.scrollWidth,Ft=We.component,Bt=Ft===void 0?"div":Ft,qt=We.onScroll,$t=We.onVirtualScroll,It=We.onVisibleChange,en=We.innerProps,Pt=We.extraRender,cn=We.styles,Sn=We.showScrollBar,An=Sn===void 0?"optional":Sn,wn=(0,ae.Z)(We,lt),At=ee.useCallback(function(kn){return typeof tt=="function"?tt(kn):kn==null?void 0:kn[tt]},[tt]),Gt=He(At,null,null),on=(0,ue.Z)(Gt,4),vn=on[0],Nn=on[1],Yn=on[2],Vn=on[3],ir=!!(ot!==!1&&Pe&&Le),Mn=ee.useMemo(function(){return Object.values(Yn.maps).reduce(function(kn,Xn){return kn+Xn},0)},[Yn.id,Yn.maps]),qn=ir&&Me&&(Math.max(Le*Me.length,Mn)>Pe||!!ft),En=st==="rtl",Hn=te()(Be,(0,de.Z)({},"".concat(Be,"-rtl"),En),Ye),Qn=Me||kt,dr=(0,ee.useRef)(),On=(0,ee.useRef)(),$n=(0,ee.useRef)(),Kn=(0,ee.useState)(0),yn=(0,ue.Z)(Kn,2),Ne=yn[0],Ve=yn[1],nt=(0,ee.useState)(0),mt=(0,ue.Z)(nt,2),_t=mt[0],Vt=mt[1],Jt=(0,ee.useState)(!1),Xt=(0,ue.Z)(Jt,2),dn=Xt[0],jn=Xt[1],vr=function(){jn(!0)},Nt=function(){jn(!1)},jt={getKey:At};function xt(kn){Ve(function(Xn){var er;typeof kn=="function"?er=kn(Xn):er=kn;var zn=hr(er);return dr.current.scrollTop=zn,zn})}var Ot=(0,ee.useRef)({start:0,end:Qn.length}),yt=(0,ee.useRef)(),Lt=_e(Qn,At),Ut=(0,ue.Z)(Lt,1),bn=Ut[0];yt.current=bn;var Tn=ee.useMemo(function(){if(!ir)return{scrollHeight:void 0,start:0,end:Qn.length-1,offset:void 0};if(!qn){var kn;return{scrollHeight:((kn=On.current)===null||kn===void 0?void 0:kn.offsetHeight)||0,start:0,end:Qn.length-1,offset:void 0}}for(var Xn=0,er,zn,xr,Br=Qn.length,Wn=0;Wn<Br;Wn+=1){var Jn=Qn[Wn],gr=At(Jn),br=Yn.get(gr),ui=Xn+(br===void 0?Le:br);ui>=Ne&&er===void 0&&(er=Wn,zn=Xn),ui>Ne+Pe&&xr===void 0&&(xr=Wn),Xn=ui}return er===void 0&&(er=0,zn=0,xr=Math.ceil(Pe/Le)),xr===void 0&&(xr=Qn.length-1),xr=Math.min(xr+1,Qn.length-1),{scrollHeight:Xn,start:er,end:xr,offset:zn}},[qn,ir,Ne,Qn,Vn,Pe]),Gn=Tn.scrollHeight,pn=Tn.start,tn=Tn.end,ln=Tn.offset;Ot.current.start=pn,Ot.current.end=tn,ee.useLayoutEffect(function(){var kn=Yn.getRecord();if(kn.size===1){var Xn=Array.from(kn.keys())[0],er=kn.get(Xn),zn=Qn[pn];if(zn&&er===void 0){var xr=At(zn);if(xr===Xn){var Br=Yn.get(Xn),Wn=Br-Le;xt(function(Jn){return Jn+Wn})}}}Yn.resetRecord()},[Gn]);var Rn=ee.useState({width:0,height:Pe}),nr=(0,ue.Z)(Rn,2),rr=nr[0],fr=nr[1],ti=function(Xn){fr({width:Xn.offsetWidth,height:Xn.offsetHeight})},fn=(0,ee.useRef)(),Kt=(0,ee.useRef)(),gn=ee.useMemo(function(){return ut(rr.width,ft)},[rr.width,ft]),xn=ee.useMemo(function(){return ut(rr.height,Gn)},[rr.height,Gn]),Ln=Gn-Pe,Un=(0,ee.useRef)(Ln);Un.current=Ln;function hr(kn){var Xn=kn;return Number.isNaN(Un.current)||(Xn=Math.min(Xn,Un.current)),Xn=Math.max(Xn,0),Xn}var ar=Ne<=0,Sr=Ne>=Ln,Cr=_t<=0,yr=_t>=ft,pr=Ee(ar,Sr,Cr,yr),$r=function(){return{x:En?-_t:_t,y:Ne}},kr=(0,ee.useRef)($r()),Nr=(0,x.zX)(function(kn){if($t){var Xn=(0,fe.Z)((0,fe.Z)({},$r()),kn);(kr.current.x!==Xn.x||kr.current.y!==Xn.y)&&($t(Xn),kr.current=Xn)}});function Yr(kn,Xn){var er=kn;Xn?((0,E.flushSync)(function(){Vt(er)}),Nr()):xt(er)}function ai(kn){var Xn=kn.currentTarget.scrollTop;Xn!==Ne&&xt(Xn),qt==null||qt(kn),Nr()}var Rr=function(Xn){var er=Xn,zn=ft?ft-rr.width:0;return er=Math.max(er,0),er=Math.min(er,zn),er},ii=(0,x.zX)(function(kn,Xn){Xn?((0,E.flushSync)(function(){Vt(function(er){var zn=er+(En?-kn:kn);return Rr(zn)})}),Nr()):xt(function(er){var zn=er+kn;return zn})}),Dr=Ae(ir,ar,Sr,Cr,yr,!!ft,ii),fi=(0,ue.Z)(Dr,2),Lr=fi[0],wi=fi[1];Qe(ir,dr,function(kn,Xn,er,zn){var xr=zn;return pr(kn,Xn,er)?!1:!xr||!xr._virtualHandled?(xr&&(xr._virtualHandled=!0),Lr({preventDefault:function(){},deltaX:kn?Xn:0,deltaY:kn?0:Xn}),!0):!1}),Ge(qn,dr,function(kn){xt(function(Xn){return Xn+kn})}),(0,b.Z)(function(){function kn(er){var zn=ar&&er.detail<0,xr=Sr&&er.detail>0;ir&&!zn&&!xr&&er.preventDefault()}var Xn=dr.current;return Xn.addEventListener("wheel",Lr,{passive:!1}),Xn.addEventListener("DOMMouseScroll",wi,{passive:!0}),Xn.addEventListener("MozMousePixelScroll",kn,{passive:!1}),function(){Xn.removeEventListener("wheel",Lr),Xn.removeEventListener("DOMMouseScroll",wi),Xn.removeEventListener("MozMousePixelScroll",kn)}},[ir,ar,Sr]),(0,b.Z)(function(){if(ft){var kn=Rr(_t);Vt(kn),Nr({x:kn})}},[rr.width,ft]);var Jr=function(){var Xn,er;(Xn=fn.current)===null||Xn===void 0||Xn.delayHidden(),(er=Kt.current)===null||er===void 0||er.delayHidden()},Zr=Ke(dr,Qn,Yn,Le,At,function(){return Nn(!0)},xt,Jr);ee.useImperativeHandle(Ie,function(){return{nativeElement:$n.current,getScrollInfo:$r,scrollTo:function(Xn){function er(zn){return zn&&(0,ie.Z)(zn)==="object"&&("left"in zn||"top"in zn)}er(Xn)?(Xn.left!==void 0&&Vt(Rr(Xn.left)),Zr(Xn.top)):Zr(Xn)}}}),(0,b.Z)(function(){if(It){var kn=Qn.slice(pn,tn+1);It(kn,Qn)}},[pn,tn,Qn]);var si=De(Qn,At,Yn,Le),vi=Pt==null?void 0:Pt({start:pn,end:tn,virtual:qn,offsetX:_t,offsetY:ln,rtl:En,getSize:si}),pi=ve(Qn,pn,tn,ft,_t,vn,Oe,jt),ri=null;Pe&&(ri=(0,fe.Z)((0,de.Z)({},we?"height":"maxHeight",Pe),pt),ir&&(ri.overflowY="hidden",ft&&(ri.overflowX="hidden"),dn&&(ri.pointerEvents="none")));var Er={};return En&&(Er.dir="rtl"),ee.createElement("div",(0,y.Z)({ref:$n,style:(0,fe.Z)((0,fe.Z)({},ke),{},{position:"relative"}),className:Hn},Er,wn),ee.createElement(ne.Z,{onResize:ti},ee.createElement(Bt,{className:"".concat(Be,"-holder"),style:ri,ref:dr,onScroll:ai,onMouseEnter:Jr},ee.createElement(ce,{prefixCls:Be,height:Gn,offsetX:_t,offsetY:ln,scrollWidth:ft,onInnerResize:Nn,ref:On,innerProps:en,rtl:En,extra:vi},pi))),qn&&Gn>Pe&&ee.createElement(rt,{ref:fn,prefixCls:Be,scrollOffset:Ne,scrollRange:Gn,rtl:En,onScroll:Yr,onStartMove:vr,onStopMove:Nt,spinSize:xn,containerSize:rr.height,style:cn==null?void 0:cn.verticalScrollBar,thumbStyle:cn==null?void 0:cn.verticalScrollBarThumb,showScrollBar:An}),qn&&ft>rr.width&&ee.createElement(rt,{ref:Kt,prefixCls:Be,scrollOffset:_t,scrollRange:ft,rtl:En,onScroll:Yr,onStartMove:vr,onStopMove:Nt,spinSize:gn,containerSize:rr.width,horizontal:!0,style:cn==null?void 0:cn.horizontalScrollBar,thumbStyle:cn==null?void 0:cn.horizontalScrollBarThumb,showScrollBar:An}))}var wt=ee.forwardRef(Mt);wt.displayName="List";var bt=wt,gt=bt},7062:function(rn,Tt,oe){var y=oe(19637),ie=oe(97573),fe=[oe(96627)];rn.exports=y.createStore(ie,fe)},96627:function(rn,Tt,oe){rn.exports=y;function y(){return oe(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(rn){return rn<10?"0"+rn:rn}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(rn){return rx_escapable.lastIndex=0,rx_escapable.test(rn)?'"'+rn.replace(rx_escapable,function(Tt){var oe=meta[Tt];return typeof oe=="string"?oe:"\\u"+("0000"+Tt.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+rn+'"'}function str(rn,Tt){var oe,y,ie,fe,de=gap,ue,ae=Tt[rn];switch(ae&&typeof ae=="object"&&typeof ae.toJSON=="function"&&(ae=ae.toJSON(rn)),typeof rep=="function"&&(ae=rep.call(Tt,rn,ae)),typeof ae){case"string":return quote(ae);case"number":return isFinite(ae)?String(ae):"null";case"boolean":case"null":return String(ae);case"object":if(!ae)return"null";if(gap+=indent,ue=[],Object.prototype.toString.apply(ae)==="[object Array]"){for(fe=ae.length,oe=0;oe<fe;oe+=1)ue[oe]=str(oe,ae)||"null";return ie=ue.length===0?"[]":gap?`[
|
|
|
`+gap+ue.join(`,
|
|
|
`+gap)+`
|
|
|
`+de+"]":"["+ue.join(",")+"]",gap=de,ie}if(rep&&typeof rep=="object")for(fe=rep.length,oe=0;oe<fe;oe+=1)typeof rep[oe]=="string"&&(y=rep[oe],ie=str(y,ae),ie&&ue.push(quote(y)+(gap?": ":":")+ie));else for(y in ae)Object.prototype.hasOwnProperty.call(ae,y)&&(ie=str(y,ae),ie&&ue.push(quote(y)+(gap?": ":":")+ie));return ie=ue.length===0?"{}":gap?`{
|
|
|
`+gap+ue.join(`,
|
|
|
`+gap)+`
|
|
|
`+de+"}":"{"+ue.join(",")+"}",gap=de,ie}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(rn,Tt,oe){var y;if(gap="",indent="",typeof oe=="number")for(y=0;y<oe;y+=1)indent+=" ";else typeof oe=="string"&&(indent=oe);if(rep=Tt,Tt&&typeof Tt!="function"&&(typeof Tt!="object"||typeof Tt.length!="number"))throw new Error("JSON.stringify");return str("",{"":rn})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(rn,Tt){var oe,y,ie=rn[Tt];if(ie&&typeof ie=="object")for(oe in ie)Object.prototype.hasOwnProperty.call(ie,oe)&&(y=walk(ie,oe),y!==void 0?ie[oe]=y:delete ie[oe]);return reviver.call(rn,Tt,ie)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(rn){return"\\u"+("0000"+rn.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(rn,Tt,oe){var y=oe(67039),ie=y.slice,fe=y.pluck,de=y.each,ue=y.bind,ae=y.create,se=y.isList,te=y.isFunction,ne=y.isObject;rn.exports={createStore:ee};var x={version:"2.0.12",enabled:!1,get:function(E,re){var ce=this.storage.read(this._namespacePrefix+E);return this._deserialize(ce,re)},set:function(E,re){return re===void 0?this.remove(E):(this.storage.write(this._namespacePrefix+E,this._serialize(re)),re)},remove:function(E){this.storage.remove(this._namespacePrefix+E)},each:function(E){var re=this;this.storage.each(function(ce,le){E.call(re,re._deserialize(ce),(le||"").replace(re._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(E){return this._namespacePrefix=="__storejs_"+E+"_"},createStore:function(){return ee.apply(this,arguments)},addPlugin:function(E){this._addPlugin(E)},namespace:function(E){return ee(this.storage,this.plugins,E)}};function b(){var E=typeof console=="undefined"?null:console;if(E){var re=E.warn?E.warn:E.log;re.apply(E,arguments)}}function ee(E,re,ce){ce||(ce=""),E&&!se(E)&&(E=[E]),re&&!se(re)&&(re=[re]);var le=ce?"__storejs_"+ce+"_":"",ve=ce?new RegExp("^"+le):null,Se=/^[a-zA-Z0-9_\-]*$/;if(!Se.test(ce))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var ge={_namespacePrefix:le,_namespaceRegexp:ve,_testStorage:function(Ce){try{var he="__storejs__test__";Ce.write(he,he);var be=Ce.read(he)===he;return Ce.remove(he),be}catch(Ee){return!1}},_assignPluginFnProp:function(Ce,he){var be=this[he];this[he]=function(){var Ae=ie(arguments,0),De=this;function je(){if(be)return de(arguments,function(Re,qe){Ae[qe]=Re}),be.apply(De,Ae)}var Fe=[je].concat(Ae);return Ce.apply(De,Fe)}},_serialize:function(Ce){return JSON.stringify(Ce)},_deserialize:function(Ce,he){if(!Ce)return he;var be="";try{be=JSON.parse(Ce)}catch(Ee){be=Ce}return be!==void 0?be:he},_addStorage:function(Ce){this.enabled||this._testStorage(Ce)&&(this.storage=Ce,this.enabled=!0)},_addPlugin:function(Ce){var he=this;if(se(Ce)){de(Ce,function(Ae){he._addPlugin(Ae)});return}var be=fe(this.plugins,function(Ae){return Ce===Ae});if(!be){if(this.plugins.push(Ce),!te(Ce))throw new Error("Plugins must be function values that return objects");var Ee=Ce.call(this);if(!ne(Ee))throw new Error("Plugins must return an object of function properties");de(Ee,function(Ae,De){if(!te(Ae))throw new Error("Bad plugin property: "+De+" from plugin "+Ce.name+". Plugins should only return functions.");he._assignPluginFnProp(Ae,De)})}},addStorage:function(Ce){b("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(Ce)}},_e=ae(ge,x,{plugins:[]});return _e.raw={},de(_e,function(Ce,he){te(Ce)&&(_e.raw[he]=ue(_e,Ce))}),de(E,function(Ce){_e._addStorage(Ce)}),de(re,function(Ce){_e._addPlugin(Ce)}),_e}},67039:function(rn,Tt,oe){var y=ue(),ie=ae(),fe=se(),de=typeof window!="undefined"?window:oe.g;rn.exports={assign:y,create:ie,trim:fe,bind:te,slice:ne,each:x,map:b,pluck:ee,isList:E,isFunction:re,isObject:ce,Global:de};function ue(){return Object.assign?Object.assign:function(ve,Se,ge,_e){for(var Ce=1;Ce<arguments.length;Ce++)x(Object(arguments[Ce]),function(he,be){ve[be]=he});return ve}}function ae(){if(Object.create)return function(Se,ge,_e,Ce){var he=ne(arguments,1);return y.apply(this,[Object.create(Se)].concat(he))};{let ve=function(){};var le=ve;return function(ge,_e,Ce,he){var be=ne(arguments,1);return ve.prototype=ge,y.apply(this,[new ve].concat(be))}}}function se(){return String.prototype.trim?function(ve){return String.prototype.trim.call(ve)}:function(ve){return ve.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function te(le,ve){return function(){return ve.apply(le,Array.prototype.slice.call(arguments,0))}}function ne(le,ve){return Array.prototype.slice.call(le,ve||0)}function x(le,ve){ee(le,function(Se,ge){return ve(Se,ge),!1})}function b(le,ve){var Se=E(le)?[]:{};return ee(le,function(ge,_e){return Se[_e]=ve(ge,_e),!1}),Se}function ee(le,ve){if(E(le)){for(var Se=0;Se<le.length;Se++)if(ve(le[Se],Se))return le[Se]}else for(var ge in le)if(le.hasOwnProperty(ge)&&ve(le[ge],ge))return le[ge]}function E(le){return le!=null&&typeof le!="function"&&typeof le.length=="number"}function re(le){return le&&{}.toString.call(le)==="[object Function]"}function ce(le){return le&&{}.toString.call(le)==="[object Object]"}},97573:function(rn,Tt,oe){rn.exports=[oe(52496),oe(16436),oe(76673),oe(35701),oe(65578),oe(65300)]},35701:function(rn,Tt,oe){var y=oe(67039),ie=y.Global,fe=y.trim;rn.exports={name:"cookieStorage",read:ue,write:se,each:ae,remove:te,clearAll:ne};var de=ie.document;function ue(b){if(!b||!x(b))return null;var ee="(?:^|.*;\\s*)"+escape(b).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(de.cookie.replace(new RegExp(ee),"$1"))}function ae(b){for(var ee=de.cookie.split(/; ?/g),E=ee.length-1;E>=0;E--)if(fe(ee[E])){var re=ee[E].split("="),ce=unescape(re[0]),le=unescape(re[1]);b(le,ce)}}function se(b,ee){b&&(de.cookie=escape(b)+"="+escape(ee)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function te(b){!b||!x(b)||(de.cookie=escape(b)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ne(){ae(function(b,ee){te(ee)})}function x(b){return new RegExp("(?:^|;\\s*)"+escape(b).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(de.cookie)}},52496:function(rn,Tt,oe){var y=oe(67039),ie=y.Global;rn.exports={name:"localStorage",read:de,write:ue,each:ae,remove:se,clearAll:te};function fe(){return ie.localStorage}function de(ne){return fe().getItem(ne)}function ue(ne,x){return fe().setItem(ne,x)}function ae(ne){for(var x=fe().length-1;x>=0;x--){var b=fe().key(x);ne(de(b),b)}}function se(ne){return fe().removeItem(ne)}function te(){return fe().clear()}},65300:function(rn){rn.exports={name:"memoryStorage",read:oe,write:y,each:ie,remove:fe,clearAll:de};var Tt={};function oe(ue){return Tt[ue]}function y(ue,ae){Tt[ue]=ae}function ie(ue){for(var ae in Tt)Tt.hasOwnProperty(ae)&&ue(Tt[ae],ae)}function fe(ue){delete Tt[ue]}function de(ue){Tt={}}},16436:function(rn,Tt,oe){var y=oe(67039),ie=y.Global;rn.exports={name:"oldFF-globalStorage",read:de,write:ue,each:ae,remove:se,clearAll:te};var fe=ie.globalStorage;function de(ne){return fe[ne]}function ue(ne,x){fe[ne]=x}function ae(ne){for(var x=fe.length-1;x>=0;x--){var b=fe.key(x);ne(fe[b],b)}}function se(ne){return fe.removeItem(ne)}function te(){ae(function(ne,x){delete fe[ne]})}},76673:function(rn,Tt,oe){var y=oe(67039),ie=y.Global;rn.exports={name:"oldIE-userDataStorage",write:se,read:te,each:ne,remove:x,clearAll:b};var fe="storejs",de=ie.document,ue=re(),ae=(ie.navigator?ie.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function se(ce,le){if(!ae){var ve=E(ce);ue(function(Se){Se.setAttribute(ve,le),Se.save(fe)})}}function te(ce){if(!ae){var le=E(ce),ve=null;return ue(function(Se){ve=Se.getAttribute(le)}),ve}}function ne(ce){ue(function(le){for(var ve=le.XMLDocument.documentElement.attributes,Se=ve.length-1;Se>=0;Se--){var ge=ve[Se];ce(le.getAttribute(ge.name),ge.name)}})}function x(ce){var le=E(ce);ue(function(ve){ve.removeAttribute(le),ve.save(fe)})}function b(){ue(function(ce){var le=ce.XMLDocument.documentElement.attributes;ce.load(fe);for(var ve=le.length-1;ve>=0;ve--)ce.removeAttribute(le[ve].name);ce.save(fe)})}var ee=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function E(ce){return ce.replace(/^\d/,"___$&").replace(ee,"___")}function re(){if(!de||!de.documentElement||!de.documentElement.addBehavior)return null;var ce="script",le,ve,Se;try{ve=new ActiveXObject("htmlfile"),ve.open(),ve.write("<"+ce+">document.w=window</"+ce+'><iframe src="/favicon.ico"></iframe>'),ve.close(),le=ve.w.frames[0].document,Se=le.createElement("div")}catch(ge){Se=de.createElement("div"),le=de.body}return function(ge){var _e=[].slice.call(arguments,0);_e.unshift(Se),le.appendChild(Se),Se.addBehavior("#default#userData"),Se.load(fe),ge.apply(this,_e),le.removeChild(Se)}}},65578:function(rn,Tt,oe){var y=oe(67039),ie=y.Global;rn.exports={name:"sessionStorage",read:de,write:ue,each:ae,remove:se,clearAll:te};function fe(){return ie.sessionStorage}function de(ne){return fe().getItem(ne)}function ue(ne,x){return fe().setItem(ne,x)}function ae(ne){for(var x=fe().length-1;x>=0;x--){var b=fe().key(x);ne(de(b),b)}}function se(ne){return fe().removeItem(ne)}function te(){return fe().clear()}},82059:function(rn){var Tt=arguments[3],oe=arguments[4],y=arguments[5],ie=JSON.stringify;rn.exports=function(fe,de){for(var ue,ae=Object.keys(y),se=0,te=ae.length;se<te;se++){var ne=ae[se],x=y[ne].exports;if(x===fe||x&&x.default===fe){ue=ne;break}}if(!ue){ue=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var b={},se=0,te=ae.length;se<te;se++){var ne=ae[se];b[ne]=ne}oe[ue]=["function(require,module,exports){"+fe+"(self); }",b]}var ee=Math.floor(Math.pow(16,8)*Math.random()).toString(16),E={};E[ue]=ue,oe[ee]=["function(require,module,exports){var f = require("+ie(ue)+");(f.default ? f.default : f)(self);}",E];var re={};ce(ee);function ce(Ce){re[Ce]=!0;for(var he in oe[Ce][1]){var be=oe[Ce][1][he];re[be]||ce(be)}}var le="("+Tt+")({"+Object.keys(re).map(function(Ce){return ie(Ce)+":["+oe[Ce][0]+","+ie(oe[Ce][1])+"]"}).join(",")+"},{},["+ie(ee)+"])",ve=window.URL||window.webkitURL||window.mozURL||window.msURL,Se=new Blob([le],{type:"text/javascript"});if(de&&de.bare)return Se;var ge=ve.createObjectURL(Se),_e=new Worker(ge);return _e.objectURL=ge,_e}},34376:function(rn){(function(Tt,oe){if(1)rn.exports=oe();else var y,ie})(window,function(){return function(Tt){var oe={};function y(ie){if(oe[ie])return oe[ie].exports;var fe=oe[ie]={i:ie,l:!1,exports:{}};return Tt[ie].call(fe.exports,fe,fe.exports,y),fe.l=!0,fe.exports}return y.m=Tt,y.c=oe,y.d=function(ie,fe,de){y.o(ie,fe)||Object.defineProperty(ie,fe,{enumerable:!0,get:de})},y.r=function(ie){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ie,"__esModule",{value:!0})},y.t=function(ie,fe){if(1&fe&&(ie=y(ie)),8&fe||4&fe&&typeof ie=="object"&&ie&&ie.__esModule)return ie;var de=Object.create(null);if(y.r(de),Object.defineProperty(de,"default",{enumerable:!0,value:ie}),2&fe&&typeof ie!="string")for(var ue in ie)y.d(de,ue,function(ae){return ie[ae]}.bind(null,ue));return de},y.n=function(ie){var fe=ie&&ie.__esModule?function(){return ie.default}:function(){return ie};return y.d(fe,"a",fe),fe},y.o=function(ie,fe){return Object.prototype.hasOwnProperty.call(ie,fe)},y.p="",y(y.s=34)}([function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.forwardEvent=oe.EventEmitter=void 0;var ie=function(){function fe(){this._listeners=[],this._disposed=!1}return Object.defineProperty(fe.prototype,"event",{get:function(){var de=this;return this._event||(this._event=function(ue){return de._listeners.push(ue),{dispose:function(){if(!de._disposed){for(var ae=0;ae<de._listeners.length;ae++)if(de._listeners[ae]===ue)return void de._listeners.splice(ae,1)}}}}),this._event},enumerable:!1,configurable:!0}),fe.prototype.fire=function(de,ue){for(var ae=[],se=0;se<this._listeners.length;se++)ae.push(this._listeners[se]);for(se=0;se<ae.length;se++)ae[se].call(void 0,de,ue)},fe.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},fe}();oe.EventEmitter=ie,oe.forwardEvent=function(fe,de){return fe(function(ue){return de.fire(ue)})}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.IUnicodeService=oe.IOptionsService=oe.ILogService=oe.IInstantiationService=oe.IDirtyRowService=oe.ICharsetService=oe.ICoreService=oe.ICoreMouseService=oe.IBufferService=void 0;var ie=y(14);oe.IBufferService=ie.createDecorator("BufferService"),oe.ICoreMouseService=ie.createDecorator("CoreMouseService"),oe.ICoreService=ie.createDecorator("CoreService"),oe.ICharsetService=ie.createDecorator("CharsetService"),oe.IDirtyRowService=ie.createDecorator("DirtyRowService"),oe.IInstantiationService=ie.createDecorator("InstantiationService"),oe.ILogService=ie.createDecorator("LogService"),oe.IOptionsService=ie.createDecorator("OptionsService"),oe.IUnicodeService=ie.createDecorator("UnicodeService")},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.getDisposeArrayDisposable=oe.disposeArray=oe.Disposable=void 0;var ie=function(){function de(){this._disposables=[],this._isDisposed=!1}return de.prototype.dispose=function(){this._isDisposed=!0;for(var ue=0,ae=this._disposables;ue<ae.length;ue++)ae[ue].dispose();this._disposables.length=0},de.prototype.register=function(ue){return this._disposables.push(ue),ue},de.prototype.unregister=function(ue){var ae=this._disposables.indexOf(ue);ae!==-1&&this._disposables.splice(ae,1)},de}();function fe(de){for(var ue=0,ae=de;ue<ae.length;ue++)ae[ue].dispose();de.length=0}oe.Disposable=ie,oe.disposeArray=fe,oe.getDisposeArrayDisposable=function(de){return{dispose:function(){return fe(de)}}}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.WHITESPACE_CELL_CODE=oe.WHITESPACE_CELL_WIDTH=oe.WHITESPACE_CELL_CHAR=oe.NULL_CELL_CODE=oe.NULL_CELL_WIDTH=oe.NULL_CELL_CHAR=oe.CHAR_DATA_CODE_INDEX=oe.CHAR_DATA_WIDTH_INDEX=oe.CHAR_DATA_CHAR_INDEX=oe.CHAR_DATA_ATTR_INDEX=oe.DEFAULT_ATTR=oe.DEFAULT_COLOR=void 0,oe.DEFAULT_COLOR=256,oe.DEFAULT_ATTR=256|oe.DEFAULT_COLOR<<9,oe.CHAR_DATA_ATTR_INDEX=0,oe.CHAR_DATA_CHAR_INDEX=1,oe.CHAR_DATA_WIDTH_INDEX=2,oe.CHAR_DATA_CODE_INDEX=3,oe.NULL_CELL_CHAR="",oe.NULL_CELL_WIDTH=1,oe.NULL_CELL_CODE=0,oe.WHITESPACE_CELL_CHAR=" ",oe.WHITESPACE_CELL_WIDTH=1,oe.WHITESPACE_CELL_CODE=32},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(te,ne){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var ee in b)b.hasOwnProperty(ee)&&(x[ee]=b[ee])})(te,ne)},function(te,ne){function x(){this.constructor=te}ie(te,ne),te.prototype=ne===null?Object.create(ne):(x.prototype=ne.prototype,new x)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.CellData=void 0;var de=y(8),ue=y(3),ae=y(6),se=function(te){function ne(){var x=te!==null&&te.apply(this,arguments)||this;return x.content=0,x.fg=0,x.bg=0,x.extended=new ae.ExtendedAttrs,x.combinedData="",x}return fe(ne,te),ne.fromCharData=function(x){var b=new ne;return b.setFromCharData(x),b},ne.prototype.isCombined=function(){return 2097152&this.content},ne.prototype.getWidth=function(){return this.content>>22},ne.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?de.stringFromCodePoint(2097151&this.content):""},ne.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},ne.prototype.setFromCharData=function(x){this.fg=x[ue.CHAR_DATA_ATTR_INDEX],this.bg=0;var b=!1;if(x[ue.CHAR_DATA_CHAR_INDEX].length>2)b=!0;else if(x[ue.CHAR_DATA_CHAR_INDEX].length===2){var ee=x[ue.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=ee&&ee<=56319){var E=x[ue.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=E&&E<=57343?this.content=1024*(ee-55296)+E-56320+65536|x[ue.CHAR_DATA_WIDTH_INDEX]<<22:b=!0}else b=!0}else this.content=x[ue.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|x[ue.CHAR_DATA_WIDTH_INDEX]<<22;b&&(this.combinedData=x[ue.CHAR_DATA_CHAR_INDEX],this.content=2097152|x[ue.CHAR_DATA_WIDTH_INDEX]<<22)},ne.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ne}(ae.AttributeData);oe.CellData=se},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.ISoundService=oe.ISelectionService=oe.IRenderService=oe.IMouseService=oe.ICoreBrowserService=oe.ICharSizeService=void 0;var ie=y(14);oe.ICharSizeService=ie.createDecorator("CharSizeService"),oe.ICoreBrowserService=ie.createDecorator("CoreBrowserService"),oe.IMouseService=ie.createDecorator("MouseService"),oe.IRenderService=ie.createDecorator("RenderService"),oe.ISelectionService=ie.createDecorator("SelectionService"),oe.ISoundService=ie.createDecorator("SoundService")},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.ExtendedAttrs=oe.AttributeData=void 0;var ie=function(){function de(){this.fg=0,this.bg=0,this.extended=new fe}return de.toColorRGB=function(ue){return[ue>>>16&255,ue>>>8&255,255&ue]},de.fromColorRGB=function(ue){return(255&ue[0])<<16|(255&ue[1])<<8|255&ue[2]},de.prototype.clone=function(){var ue=new de;return ue.fg=this.fg,ue.bg=this.bg,ue.extended=this.extended.clone(),ue},de.prototype.isInverse=function(){return 67108864&this.fg},de.prototype.isBold=function(){return 134217728&this.fg},de.prototype.isUnderline=function(){return 268435456&this.fg},de.prototype.isBlink=function(){return 536870912&this.fg},de.prototype.isInvisible=function(){return 1073741824&this.fg},de.prototype.isItalic=function(){return 67108864&this.bg},de.prototype.isDim=function(){return 134217728&this.bg},de.prototype.getFgColorMode=function(){return 50331648&this.fg},de.prototype.getBgColorMode=function(){return 50331648&this.bg},de.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},de.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},de.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},de.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},de.prototype.isFgDefault=function(){return(50331648&this.fg)==0},de.prototype.isBgDefault=function(){return(50331648&this.bg)==0},de.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},de.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},de.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},de.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},de.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},de.prototype.getUnderlineColor=function(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()},de.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},de.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},de.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},de.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},de.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},de}();oe.AttributeData=ie;var fe=function(){function de(ue,ae){ue===void 0&&(ue=0),ae===void 0&&(ae=-1),this.underlineStyle=ue,this.underlineColor=ae}return de.prototype.clone=function(){return new de(this.underlineStyle,this.underlineColor)},de.prototype.isEmpty=function(){return this.underlineStyle===0},de}();oe.ExtendedAttrs=fe},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.addDisposableDomListener=void 0,oe.addDisposableDomListener=function(ie,fe,de,ue){ie.addEventListener(fe,de,ue);var ae=!1;return{dispose:function(){ae||(ae=!0,ie.removeEventListener(fe,de,ue))}}}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.Utf8ToUtf32=oe.StringToUtf32=oe.utf32ToString=oe.stringFromCodePoint=void 0,oe.stringFromCodePoint=function(de){return de>65535?(de-=65536,String.fromCharCode(55296+(de>>10))+String.fromCharCode(de%1024+56320)):String.fromCharCode(de)},oe.utf32ToString=function(de,ue,ae){ue===void 0&&(ue=0),ae===void 0&&(ae=de.length);for(var se="",te=ue;te<ae;++te){var ne=de[te];ne>65535?(ne-=65536,se+=String.fromCharCode(55296+(ne>>10))+String.fromCharCode(ne%1024+56320)):se+=String.fromCharCode(ne)}return se};var ie=function(){function de(){this._interim=0}return de.prototype.clear=function(){this._interim=0},de.prototype.decode=function(ue,ae){var se=ue.length;if(!se)return 0;var te=0,ne=0;this._interim&&(56320<=(ee=ue.charCodeAt(ne++))&&ee<=57343?ae[te++]=1024*(this._interim-55296)+ee-56320+65536:(ae[te++]=this._interim,ae[te++]=ee),this._interim=0);for(var x=ne;x<se;++x){var b=ue.charCodeAt(x);if(55296<=b&&b<=56319){if(++x>=se)return this._interim=b,te;var ee;56320<=(ee=ue.charCodeAt(x))&&ee<=57343?ae[te++]=1024*(b-55296)+ee-56320+65536:(ae[te++]=b,ae[te++]=ee)}else ae[te++]=b}return te},de}();oe.StringToUtf32=ie;var fe=function(){function de(){this.interim=new Uint8Array(3)}return de.prototype.clear=function(){this.interim.fill(0)},de.prototype.decode=function(ue,ae){var se=ue.length;if(!se)return 0;var te,ne,x,b,ee=0,E=0,re=0;if(this.interim[0]){var ce=!1,le=this.interim[0];le&=(224&le)==192?31:(240&le)==224?15:7;for(var ve=0,Se=void 0;(Se=63&this.interim[++ve])&&ve<4;)le<<=6,le|=Se;for(var ge=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,_e=ge-ve;re<_e;){if(re>=se)return 0;if((192&(Se=ue[re++]))!=128){re--,ce=!0;break}this.interim[ve++]=Se,le<<=6,le|=63&Se}ce||(ge===2?le<128?re--:ae[ee++]=le:ge===3?le<2048||le>=55296&&le<=57343||(ae[ee++]=le):le<65536||le>1114111||(ae[ee++]=le)),this.interim.fill(0)}for(var Ce=se-4,he=re;he<se;){for(;!(!(he<Ce)||128&(te=ue[he])||128&(ne=ue[he+1])||128&(x=ue[he+2])||128&(b=ue[he+3]));)ae[ee++]=te,ae[ee++]=ne,ae[ee++]=x,ae[ee++]=b,he+=4;if((te=ue[he++])<128)ae[ee++]=te;else if((224&te)==192){if(he>=se)return this.interim[0]=te,ee;if((192&(ne=ue[he++]))!=128){he--;continue}if((E=(31&te)<<6|63&ne)<128){he--;continue}ae[ee++]=E}else if((240&te)==224){if(he>=se)return this.interim[0]=te,ee;if((192&(ne=ue[he++]))!=128){he--;continue}if(he>=se)return this.interim[0]=te,this.interim[1]=ne,ee;if((192&(x=ue[he++]))!=128){he--;continue}if((E=(15&te)<<12|(63&ne)<<6|63&x)<2048||E>=55296&&E<=57343)continue;ae[ee++]=E}else if((248&te)==240){if(he>=se)return this.interim[0]=te,ee;if((192&(ne=ue[he++]))!=128){he--;continue}if(he>=se)return this.interim[0]=te,this.interim[1]=ne,ee;if((192&(x=ue[he++]))!=128){he--;continue}if(he>=se)return this.interim[0]=te,this.interim[1]=ne,this.interim[2]=x,ee;if((192&(b=ue[he++]))!=128){he--;continue}if((E=(7&te)<<18|(63&ne)<<12|(63&x)<<6|63&b)<65536||E>1114111)continue;ae[ee++]=E}}return ee},de}();oe.Utf8ToUtf32=fe},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.CHAR_ATLAS_CELL_SPACING=oe.DIM_OPACITY=oe.INVERTED_DEFAULT_COLOR=void 0,oe.INVERTED_DEFAULT_COLOR=257,oe.DIM_OPACITY=.5,oe.CHAR_ATLAS_CELL_SPACING=1},function(Tt,oe,y){"use strict";var ie,fe,de,ue;function ae(te){var ne=te.toString(16);return ne.length<2?"0"+ne:ne}function se(te,ne){return te<ne?(ne+.05)/(te+.05):(te+.05)/(ne+.05)}Object.defineProperty(oe,"__esModule",{value:!0}),oe.contrastRatio=oe.toPaddedHex=oe.rgba=oe.rgb=oe.css=oe.color=oe.channels=void 0,function(te){te.toCss=function(ne,x,b,ee){return ee!==void 0?"#"+ae(ne)+ae(x)+ae(b)+ae(ee):"#"+ae(ne)+ae(x)+ae(b)},te.toRgba=function(ne,x,b,ee){return ee===void 0&&(ee=255),(ne<<24|x<<16|b<<8|ee)>>>0}}(ie=oe.channels||(oe.channels={})),(fe=oe.color||(oe.color={})).blend=function(te,ne){var x=(255&ne.rgba)/255;if(x===1)return{css:ne.css,rgba:ne.rgba};var b=ne.rgba>>24&255,ee=ne.rgba>>16&255,E=ne.rgba>>8&255,re=te.rgba>>24&255,ce=te.rgba>>16&255,le=te.rgba>>8&255,ve=re+Math.round((b-re)*x),Se=ce+Math.round((ee-ce)*x),ge=le+Math.round((E-le)*x);return{css:ie.toCss(ve,Se,ge),rgba:ie.toRgba(ve,Se,ge)}},fe.isOpaque=function(te){return(255&te.rgba)==255},fe.ensureContrastRatio=function(te,ne,x){var b=ue.ensureContrastRatio(te.rgba,ne.rgba,x);if(b)return ue.toColor(b>>24&255,b>>16&255,b>>8&255)},fe.opaque=function(te){var ne=(255|te.rgba)>>>0,x=ue.toChannels(ne),b=x[0],ee=x[1],E=x[2];return{css:ie.toCss(b,ee,E),rgba:ne}},fe.opacity=function(te,ne){var x=Math.round(255*ne),b=ue.toChannels(te.rgba),ee=b[0],E=b[1],re=b[2];return{css:ie.toCss(ee,E,re,x),rgba:ie.toRgba(ee,E,re,x)}},(oe.css||(oe.css={})).toColor=function(te){switch(te.length){case 7:return{css:te,rgba:(parseInt(te.slice(1),16)<<8|255)>>>0};case 9:return{css:te,rgba:parseInt(te.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(te){function ne(x,b,ee){var E=x/255,re=b/255,ce=ee/255;return .2126*(E<=.03928?E/12.92:Math.pow((E+.055)/1.055,2.4))+.7152*(re<=.03928?re/12.92:Math.pow((re+.055)/1.055,2.4))+.0722*(ce<=.03928?ce/12.92:Math.pow((ce+.055)/1.055,2.4))}te.relativeLuminance=function(x){return ne(x>>16&255,x>>8&255,255&x)},te.relativeLuminance2=ne}(de=oe.rgb||(oe.rgb={})),function(te){function ne(b,ee,E){for(var re=b>>24&255,ce=b>>16&255,le=b>>8&255,ve=ee>>24&255,Se=ee>>16&255,ge=ee>>8&255,_e=se(de.relativeLuminance2(ve,ge,Se),de.relativeLuminance2(re,ce,le));_e<E&&(ve>0||Se>0||ge>0);)ve-=Math.max(0,Math.ceil(.1*ve)),Se-=Math.max(0,Math.ceil(.1*Se)),ge-=Math.max(0,Math.ceil(.1*ge)),_e=se(de.relativeLuminance2(ve,ge,Se),de.relativeLuminance2(re,ce,le));return(ve<<24|Se<<16|ge<<8|255)>>>0}function x(b,ee,E){for(var re=b>>24&255,ce=b>>16&255,le=b>>8&255,ve=ee>>24&255,Se=ee>>16&255,ge=ee>>8&255,_e=se(de.relativeLuminance2(ve,ge,Se),de.relativeLuminance2(re,ce,le));_e<E&&(ve<255||Se<255||ge<255);)ve=Math.min(255,ve+Math.ceil(.1*(255-ve))),Se=Math.min(255,Se+Math.ceil(.1*(255-Se))),ge=Math.min(255,ge+Math.ceil(.1*(255-ge))),_e=se(de.relativeLuminance2(ve,ge,Se),de.relativeLuminance2(re,ce,le));return(ve<<24|Se<<16|ge<<8|255)>>>0}te.ensureContrastRatio=function(b,ee,E){var re=de.relativeLuminance(b>>8),ce=de.relativeLuminance(ee>>8);if(se(re,ce)<E)return ce<re?ne(b,ee,E):x(b,ee,E)},te.reduceLuminance=ne,te.increaseLuminance=x,te.toChannels=function(b){return[b>>24&255,b>>16&255,b>>8&255,255&b]},te.toColor=function(b,ee,E){return{css:ie.toCss(b,ee,E),rgba:ie.toRgba(b,ee,E)}}}(ue=oe.rgba||(oe.rgba={})),oe.toPaddedHex=ae,oe.contrastRatio=se},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.isLinux=oe.isWindows=oe.isIphone=oe.isIpad=oe.isMac=oe.isSafari=oe.isFirefox=void 0;var ie=typeof navigator=="undefined",fe=ie?"node":navigator.userAgent,de=ie?"node":navigator.platform;function ue(ae,se){return ae.indexOf(se)>=0}oe.isFirefox=!!~fe.indexOf("Firefox"),oe.isSafari=/^((?!chrome|android).)*safari/i.test(fe),oe.isMac=ue(["Macintosh","MacIntel","MacPPC","Mac68K"],de),oe.isIpad=de==="iPad",oe.isIphone=de==="iPhone",oe.isWindows=ue(["Windows","Win16","Win32","WinCE"],de),oe.isLinux=de.indexOf("Linux")>=0},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.C1=oe.C0=void 0,function(ie){ie.NUL="\0",ie.SOH="",ie.STX="",ie.ETX="",ie.EOT="",ie.ENQ="",ie.ACK="",ie.BEL="\x07",ie.BS="\b",ie.HT=" ",ie.LF=`
|
|
|
`,ie.VT="\v",ie.FF="\f",ie.CR="\r",ie.SO="",ie.SI="",ie.DLE="",ie.DC1="",ie.DC2="",ie.DC3="",ie.DC4="",ie.NAK="",ie.SYN="",ie.ETB="",ie.CAN="",ie.EM="",ie.SUB="",ie.ESC="\x1B",ie.FS="",ie.GS="",ie.RS="",ie.US="",ie.SP=" ",ie.DEL="\x7F"}(oe.C0||(oe.C0={})),function(ie){ie.PAD="\x80",ie.HOP="\x81",ie.BPH="\x82",ie.NBH="\x83",ie.IND="\x84",ie.NEL="\x85",ie.SSA="\x86",ie.ESA="\x87",ie.HTS="\x88",ie.HTJ="\x89",ie.VTS="\x8A",ie.PLD="\x8B",ie.PLU="\x8C",ie.RI="\x8D",ie.SS2="\x8E",ie.SS3="\x8F",ie.DCS="\x90",ie.PU1="\x91",ie.PU2="\x92",ie.STS="\x93",ie.CCH="\x94",ie.MW="\x95",ie.SPA="\x96",ie.EPA="\x97",ie.SOS="\x98",ie.SGCI="\x99",ie.SCI="\x9A",ie.CSI="\x9B",ie.ST="\x9C",ie.OSC="\x9D",ie.PM="\x9E",ie.APC="\x9F"}(oe.C1||(oe.C1={}))},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.BaseRenderLayer=void 0;var ie=y(3),fe=y(9),de=y(25),ue=y(6),ae=y(28),se=y(10),te=y(17),ne=function(){function x(b,ee,E,re,ce,le,ve,Se){this._container=b,this._alpha=re,this._colors=ce,this._rendererId=le,this._bufferService=ve,this._optionsService=Se,this._scaledCharWidth=0,this._scaledCharHeight=0,this._scaledCellWidth=0,this._scaledCellHeight=0,this._scaledCharLeft=0,this._scaledCharTop=0,this._currentGlyphIdentifier={chars:"",code:0,bg:0,fg:0,bold:!1,dim:!1,italic:!1},this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-"+ee+"-layer"),this._canvas.style.zIndex=E.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return x.prototype.dispose=function(){var b;te.removeElementFromParent(this._canvas),(b=this._charAtlas)===null||b===void 0||b.dispose()},x.prototype._initCanvas=function(){this._ctx=ae.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},x.prototype.onOptionsChanged=function(){},x.prototype.onBlur=function(){},x.prototype.onFocus=function(){},x.prototype.onCursorMove=function(){},x.prototype.onGridChanged=function(b,ee){},x.prototype.onSelectionChanged=function(b,ee,E){E===void 0&&(E=!1)},x.prototype.setColors=function(b){this._refreshCharAtlas(b)},x.prototype._setTransparency=function(b){if(b!==this._alpha){var ee=this._canvas;this._alpha=b,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,ee),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},x.prototype._refreshCharAtlas=function(b){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=de.acquireCharAtlas(this._optionsService.options,this._rendererId,b,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},x.prototype.resize=function(b){this._scaledCellWidth=b.scaledCellWidth,this._scaledCellHeight=b.scaledCellHeight,this._scaledCharWidth=b.scaledCharWidth,this._scaledCharHeight=b.scaledCharHeight,this._scaledCharLeft=b.scaledCharLeft,this._scaledCharTop=b.scaledCharTop,this._canvas.width=b.scaledCanvasWidth,this._canvas.height=b.scaledCanvasHeight,this._canvas.style.width=b.canvasWidth+"px",this._canvas.style.height=b.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},x.prototype._fillCells=function(b,ee,E,re){this._ctx.fillRect(b*this._scaledCellWidth,ee*this._scaledCellHeight,E*this._scaledCellWidth,re*this._scaledCellHeight)},x.prototype._fillBottomLineAtCells=function(b,ee,E){E===void 0&&(E=1),this._ctx.fillRect(b*this._scaledCellWidth,(ee+1)*this._scaledCellHeight-window.devicePixelRatio-1,E*this._scaledCellWidth,window.devicePixelRatio)},x.prototype._fillLeftLineAtCell=function(b,ee,E){this._ctx.fillRect(b*this._scaledCellWidth,ee*this._scaledCellHeight,window.devicePixelRatio*E,this._scaledCellHeight)},x.prototype._strokeRectAtCell=function(b,ee,E,re){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(b*this._scaledCellWidth+window.devicePixelRatio/2,ee*this._scaledCellHeight+window.devicePixelRatio/2,E*this._scaledCellWidth-window.devicePixelRatio,re*this._scaledCellHeight-window.devicePixelRatio)},x.prototype._clearAll=function(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))},x.prototype._clearCells=function(b,ee,E,re){this._alpha?this._ctx.clearRect(b*this._scaledCellWidth,ee*this._scaledCellHeight,E*this._scaledCellWidth,re*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(b*this._scaledCellWidth,ee*this._scaledCellHeight,E*this._scaledCellWidth,re*this._scaledCellHeight))},x.prototype._fillCharTrueColor=function(b,ee,E){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(E),this._ctx.fillText(b.getChars(),ee*this._scaledCellWidth+this._scaledCharLeft,E*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},x.prototype._drawChars=function(b,ee,E){var re,ce,le=this._getContrastColor(b);le||b.isFgRGB()||b.isBgRGB()?this._drawUncachedChars(b,ee,E,le):(b.isInverse()?(re=b.isBgDefault()?fe.INVERTED_DEFAULT_COLOR:b.getBgColor(),ce=b.isFgDefault()?fe.INVERTED_DEFAULT_COLOR:b.getFgColor()):(ce=b.isBgDefault()?ie.DEFAULT_COLOR:b.getBgColor(),re=b.isFgDefault()?ie.DEFAULT_COLOR:b.getFgColor()),re+=this._optionsService.options.drawBoldTextInBrightColors&&b.isBold()&&re<8?8:0,this._currentGlyphIdentifier.chars=b.getChars()||ie.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=b.getCode()||ie.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=ce,this._currentGlyphIdentifier.fg=re,this._currentGlyphIdentifier.bold=!!b.isBold(),this._currentGlyphIdentifier.dim=!!b.isDim(),this._currentGlyphIdentifier.italic=!!b.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,ee*this._scaledCellWidth+this._scaledCharLeft,E*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(b,ee,E))},x.prototype._drawUncachedChars=function(b,ee,E,re){if(this._ctx.save(),this._ctx.font=this._getFont(!!b.isBold(),!!b.isItalic()),this._ctx.textBaseline="middle",b.isInverse())if(re)this._ctx.fillStyle=re.css;else if(b.isBgDefault())this._ctx.fillStyle=se.color.opaque(this._colors.background).css;else if(b.isBgRGB())this._ctx.fillStyle="rgb("+ue.AttributeData.toColorRGB(b.getBgColor()).join(",")+")";else{var ce=b.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&b.isBold()&&ce<8&&(ce+=8),this._ctx.fillStyle=this._colors.ansi[ce].css}else if(re)this._ctx.fillStyle=re.css;else if(b.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(b.isFgRGB())this._ctx.fillStyle="rgb("+ue.AttributeData.toColorRGB(b.getFgColor()).join(",")+")";else{var le=b.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&b.isBold()&&le<8&&(le+=8),this._ctx.fillStyle=this._colors.ansi[le].css}this._clipRow(E),b.isDim()&&(this._ctx.globalAlpha=fe.DIM_OPACITY),this._ctx.fillText(b.getChars(),ee*this._scaledCellWidth+this._scaledCharLeft,E*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},x.prototype._clipRow=function(b){this._ctx.beginPath(),this._ctx.rect(0,b*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},x.prototype._getFont=function(b,ee){return(ee?"italic":"")+" "+(b?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},x.prototype._getContrastColor=function(b){if(this._optionsService.options.minimumContrastRatio!==1){var ee=this._colors.contrastCache.getColor(b.bg,b.fg);if(ee!==void 0)return ee||void 0;var E=b.getFgColor(),re=b.getFgColorMode(),ce=b.getBgColor(),le=b.getBgColorMode(),ve=!!b.isInverse(),Se=!!b.isInverse();if(ve){var ge=E;E=ce,ce=ge;var _e=re;re=le,le=_e}var Ce=this._resolveBackgroundRgba(le,ce,ve),he=this._resolveForegroundRgba(re,E,ve,Se),be=se.rgba.ensureContrastRatio(Ce,he,this._optionsService.options.minimumContrastRatio);if(be){var Ee={css:se.channels.toCss(be>>24&255,be>>16&255,be>>8&255),rgba:be};return this._colors.contrastCache.setColor(b.bg,b.fg,Ee),Ee}this._colors.contrastCache.setColor(b.bg,b.fg,null)}},x.prototype._resolveBackgroundRgba=function(b,ee,E){switch(b){case 16777216:case 33554432:return this._colors.ansi[ee].rgba;case 50331648:return ee<<8;case 0:default:return E?this._colors.foreground.rgba:this._colors.background.rgba}},x.prototype._resolveForegroundRgba=function(b,ee,E,re){switch(b){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&re&&ee<8&&(ee+=8),this._colors.ansi[ee].rgba;case 50331648:return ee<<8;case 0:default:return E?this._colors.background.rgba:this._colors.foreground.rgba}},x}();oe.BaseRenderLayer=ne},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.createDecorator=oe.getServiceDependencies=oe.serviceRegistry=void 0;function ie(fe,de,ue){de.di$target===de?de.di$dependencies.push({id:fe,index:ue}):(de.di$dependencies=[{id:fe,index:ue}],de.di$target=de)}oe.serviceRegistry=new Map,oe.getServiceDependencies=function(fe){return fe.di$dependencies||[]},oe.createDecorator=function(fe){if(oe.serviceRegistry.has(fe))return oe.serviceRegistry.get(fe);var de=function(ue,ae,se){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ie(de,ue,se)};return de.toString=function(){return fe},oe.serviceRegistry.set(fe,de),de}},function(Tt,oe,y){"use strict";function ie(fe,de,ue,ae){if(ue===void 0&&(ue=0),ae===void 0&&(ae=fe.length),ue>=fe.length)return fe;ue=(fe.length+ue)%fe.length,ae=ae>=fe.length?fe.length:(fe.length+ae)%fe.length;for(var se=ue;se<ae;++se)fe[se]=de;return fe}Object.defineProperty(oe,"__esModule",{value:!0}),oe.concat=oe.fillFallback=oe.fill=void 0,oe.fill=function(fe,de,ue,ae){return fe.fill?fe.fill(de,ue,ae):ie(fe,de,ue,ae)},oe.fillFallback=ie,oe.concat=function(fe,de){var ue=new fe.constructor(fe.length+de.length);return ue.set(fe),ue.set(de,fe.length),ue}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.BufferLine=oe.DEFAULT_ATTR_DATA=void 0;var ie=y(8),fe=y(3),de=y(4),ue=y(6);oe.DEFAULT_ATTR_DATA=Object.freeze(new ue.AttributeData);var ae=function(){function se(te,ne,x){x===void 0&&(x=!1),this.isWrapped=x,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*te);for(var b=ne||de.CellData.fromCharData([0,fe.NULL_CELL_CHAR,fe.NULL_CELL_WIDTH,fe.NULL_CELL_CODE]),ee=0;ee<te;++ee)this.setCell(ee,b);this.length=te}return se.prototype.get=function(te){var ne=this._data[3*te+0],x=2097151≠return[this._data[3*te+1],2097152&ne?this._combined[te]:x?ie.stringFromCodePoint(x):"",ne>>22,2097152&ne?this._combined[te].charCodeAt(this._combined[te].length-1):x]},se.prototype.set=function(te,ne){this._data[3*te+1]=ne[fe.CHAR_DATA_ATTR_INDEX],ne[fe.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[te]=ne[1],this._data[3*te+0]=2097152|te|ne[fe.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*te+0]=ne[fe.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ne[fe.CHAR_DATA_WIDTH_INDEX]<<22},se.prototype.getWidth=function(te){return this._data[3*te+0]>>22},se.prototype.hasWidth=function(te){return 12582912&this._data[3*te+0]},se.prototype.getFg=function(te){return this._data[3*te+1]},se.prototype.getBg=function(te){return this._data[3*te+2]},se.prototype.hasContent=function(te){return 4194303&this._data[3*te+0]},se.prototype.getCodePoint=function(te){var ne=this._data[3*te+0];return 2097152&ne?this._combined[te].charCodeAt(this._combined[te].length-1):2097151&ne},se.prototype.isCombined=function(te){return 2097152&this._data[3*te+0]},se.prototype.getString=function(te){var ne=this._data[3*te+0];return 2097152&ne?this._combined[te]:2097151&ne?ie.stringFromCodePoint(2097151&ne):""},se.prototype.loadCell=function(te,ne){var x=3*te;return ne.content=this._data[x+0],ne.fg=this._data[x+1],ne.bg=this._data[x+2],2097152&ne.content&&(ne.combinedData=this._combined[te]),268435456&ne.bg&&(ne.extended=this._extendedAttrs[te]),ne},se.prototype.setCell=function(te,ne){2097152&ne.content&&(this._combined[te]=ne.combinedData),268435456&ne.bg&&(this._extendedAttrs[te]=ne.extended),this._data[3*te+0]=ne.content,this._data[3*te+1]=ne.fg,this._data[3*te+2]=ne.bg},se.prototype.setCellFromCodePoint=function(te,ne,x,b,ee,E){268435456&ee&&(this._extendedAttrs[te]=E),this._data[3*te+0]=ne|x<<22,this._data[3*te+1]=b,this._data[3*te+2]=ee},se.prototype.addCodepointToCell=function(te,ne){var x=this._data[3*te+0];2097152&x?this._combined[te]+=ie.stringFromCodePoint(ne):(2097151&x?(this._combined[te]=ie.stringFromCodePoint(2097151&x)+ie.stringFromCodePoint(ne),x&=-2097152,x|=2097152):x=ne|1<<22,this._data[3*te+0]=x)},se.prototype.insertCells=function(te,ne,x,b){if((te%=this.length)&&this.getWidth(te-1)===2&&this.setCellFromCodePoint(te-1,0,1,(b==null?void 0:b.fg)||0,(b==null?void 0:b.bg)||0,(b==null?void 0:b.extended)||new ue.ExtendedAttrs),ne<this.length-te){for(var ee=new de.CellData,E=this.length-te-ne-1;E>=0;--E)this.setCell(te+ne+E,this.loadCell(te+E,ee));for(E=0;E<ne;++E)this.setCell(te+E,x)}else for(E=te;E<this.length;++E)this.setCell(E,x);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(b==null?void 0:b.fg)||0,(b==null?void 0:b.bg)||0,(b==null?void 0:b.extended)||new ue.ExtendedAttrs)},se.prototype.deleteCells=function(te,ne,x,b){if(te%=this.length,ne<this.length-te){for(var ee=new de.CellData,E=0;E<this.length-te-ne;++E)this.setCell(te+E,this.loadCell(te+ne+E,ee));for(E=this.length-ne;E<this.length;++E)this.setCell(E,x)}else for(E=te;E<this.length;++E)this.setCell(E,x);te&&this.getWidth(te-1)===2&&this.setCellFromCodePoint(te-1,0,1,(b==null?void 0:b.fg)||0,(b==null?void 0:b.bg)||0,(b==null?void 0:b.extended)||new ue.ExtendedAttrs),this.getWidth(te)!==0||this.hasContent(te)||this.setCellFromCodePoint(te,0,1,(b==null?void 0:b.fg)||0,(b==null?void 0:b.bg)||0,(b==null?void 0:b.extended)||new ue.ExtendedAttrs)},se.prototype.replaceCells=function(te,ne,x,b){for(te&&this.getWidth(te-1)===2&&this.setCellFromCodePoint(te-1,0,1,(b==null?void 0:b.fg)||0,(b==null?void 0:b.bg)||0,(b==null?void 0:b.extended)||new ue.ExtendedAttrs),ne<this.length&&this.getWidth(ne-1)===2&&this.setCellFromCodePoint(ne,0,1,(b==null?void 0:b.fg)||0,(b==null?void 0:b.bg)||0,(b==null?void 0:b.extended)||new ue.ExtendedAttrs);te<ne&&te<this.length;)this.setCell(te++,x)},se.prototype.resize=function(te,ne){if(te!==this.length){if(te>this.length){var x=new Uint32Array(3*te);this.length&&(3*te<this._data.length?x.set(this._data.subarray(0,3*te)):x.set(this._data)),this._data=x;for(var b=this.length;b<te;++b)this.setCell(b,ne)}else if(te){(x=new Uint32Array(3*te)).set(this._data.subarray(0,3*te)),this._data=x;var ee=Object.keys(this._combined);for(b=0;b<ee.length;b++){var E=parseInt(ee[b],10);E>=te&&delete this._combined[E]}}else this._data=new Uint32Array(0),this._combined={};this.length=te}},se.prototype.fill=function(te){this._combined={},this._extendedAttrs={};for(var ne=0;ne<this.length;++ne)this.setCell(ne,te)},se.prototype.copyFrom=function(te){for(var ne in this.length!==te.length?this._data=new Uint32Array(te._data):this._data.set(te._data),this.length=te.length,this._combined={},te._combined)this._combined[ne]=te._combined[ne];for(var ne in this._extendedAttrs={},te._extendedAttrs)this._extendedAttrs[ne]=te._extendedAttrs[ne];this.isWrapped=te.isWrapped},se.prototype.clone=function(){var te=new se(0);for(var ne in te._data=new Uint32Array(this._data),te.length=this.length,this._combined)te._combined[ne]=this._combined[ne];for(var ne in this._extendedAttrs)te._extendedAttrs[ne]=this._extendedAttrs[ne];return te.isWrapped=this.isWrapped,te},se.prototype.getTrimmedLength=function(){for(var te=this.length-1;te>=0;--te)if(4194303&this._data[3*te+0])return te+(this._data[3*te+0]>>22);return 0},se.prototype.copyCellsFrom=function(te,ne,x,b,ee){var E=te._data;if(ee)for(var re=b-1;re>=0;re--)for(var ce=0;ce<3;ce++)this._data[3*(x+re)+ce]=E[3*(ne+re)+ce];else for(re=0;re<b;re++)for(ce=0;ce<3;ce++)this._data[3*(x+re)+ce]=E[3*(ne+re)+ce];var le=Object.keys(te._combined);for(ce=0;ce<le.length;ce++){var ve=parseInt(le[ce],10);ve>=ne&&(this._combined[ve-ne+x]=te._combined[ve])}},se.prototype.translateToString=function(te,ne,x){te===void 0&&(te=!1),ne===void 0&&(ne=0),x===void 0&&(x=this.length),te&&(x=Math.min(x,this.getTrimmedLength()));for(var b="";ne<x;){var ee=this._data[3*ne+0],E=2097151ⅇb+=2097152&ee?this._combined[ne]:E?ie.stringFromCodePoint(E):fe.WHITESPACE_CELL_CHAR,ne+=ee>>22||1}return b},se}();oe.BufferLine=ae},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.removeElementFromParent=void 0,oe.removeElementFromParent=function(){for(var ie,fe=[],de=0;de<arguments.length;de++)fe[de]=arguments[de];for(var ue=0,ae=fe;ue<ae.length;ue++){var se=ae[ue];(ie=se==null?void 0:se.parentElement)===null||ie===void 0||ie.removeChild(se)}}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.tooMuchOutput=oe.promptLabel=void 0,oe.promptLabel="Terminal input",oe.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(he,be){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ee,Ae){Ee.__proto__=Ae}||function(Ee,Ae){for(var De in Ae)Ae.hasOwnProperty(De)&&(Ee[De]=Ae[De])})(he,be)},function(he,be){function Ee(){this.constructor=he}ie(he,be),he.prototype=be===null?Object.create(be):(Ee.prototype=be.prototype,new Ee)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.InputHandler=oe.WindowsOptionsReportType=void 0;var de,ue=y(12),ae=y(20),se=y(39),te=y(2),ne=y(15),x=y(8),b=y(16),ee=y(0),E=y(3),re=y(4),ce=y(6),le=y(22),ve=y(24),Se={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function ge(he,be){if(he>24)return be.setWinLines||!1;switch(he){case 1:return!!be.restoreWin;case 2:return!!be.minimizeWin;case 3:return!!be.setWinPosition;case 4:return!!be.setWinSizePixels;case 5:return!!be.raiseWin;case 6:return!!be.lowerWin;case 7:return!!be.refreshWin;case 8:return!!be.setWinSizeChars;case 9:return!!be.maximizeWin;case 10:return!!be.fullscreenWin;case 11:return!!be.getWinState;case 13:return!!be.getWinPosition;case 14:return!!be.getWinSizePixels;case 15:return!!be.getScreenSizePixels;case 16:return!!be.getCellSizePixels;case 18:return!!be.getWinSizeChars;case 19:return!!be.getScreenSizeChars;case 20:return!!be.getIconTitle;case 21:return!!be.getWinTitle;case 22:return!!be.pushTitle;case 23:return!!be.popTitle;case 24:return!!be.setWinLines}return!1}(function(he){he[he.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",he[he.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(de=oe.WindowsOptionsReportType||(oe.WindowsOptionsReportType={}));var _e=function(){function he(be,Ee,Ae,De){this._bufferService=be,this._coreService=Ee,this._logService=Ae,this._optionsService=De,this._data=new Uint32Array(0)}return he.prototype.hook=function(be){this._data=new Uint32Array(0)},he.prototype.put=function(be,Ee,Ae){this._data=ne.concat(this._data,be.subarray(Ee,Ae))},he.prototype.unhook=function(be){if(be){var Ee=x.utf32ToString(this._data);switch(this._data=new Uint32Array(0),Ee){case'"q':return this._coreService.triggerDataEvent(ue.C0.ESC+'P1$r0"q'+ue.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(ue.C0.ESC+'P1$r61;1"p'+ue.C0.ESC+"\\");case"r":var Ae=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(ue.C0.ESC+"P1$r"+Ae+ue.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(ue.C0.ESC+"P1$r0m"+ue.C0.ESC+"\\");case" q":var De={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return De-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(ue.C0.ESC+"P1$r"+De+" q"+ue.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",Ee),this._coreService.triggerDataEvent(ue.C0.ESC+"P0$r"+ue.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},he}(),Ce=function(he){function be(Ee,Ae,De,je,Fe,Re,qe,Je,He){He===void 0&&(He=new se.EscapeSequenceParser);var ze=he.call(this)||this;ze._bufferService=Ee,ze._charsetService=Ae,ze._coreService=De,ze._dirtyRowService=je,ze._logService=Fe,ze._optionsService=Re,ze._coreMouseService=qe,ze._unicodeService=Je,ze._parser=He,ze._parseBuffer=new Uint32Array(4096),ze._stringDecoder=new x.StringToUtf32,ze._utf8Decoder=new x.Utf8ToUtf32,ze._workCell=new re.CellData,ze._windowTitle="",ze._iconName="",ze._windowTitleStack=[],ze._iconNameStack=[],ze._curAttrData=b.DEFAULT_ATTR_DATA.clone(),ze._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone(),ze._onRequestBell=new ee.EventEmitter,ze._onRequestRefreshRows=new ee.EventEmitter,ze._onRequestReset=new ee.EventEmitter,ze._onRequestScroll=new ee.EventEmitter,ze._onRequestSyncScrollBar=new ee.EventEmitter,ze._onRequestWindowsOptionsReport=new ee.EventEmitter,ze._onA11yChar=new ee.EventEmitter,ze._onA11yTab=new ee.EventEmitter,ze._onCursorMove=new ee.EventEmitter,ze._onLineFeed=new ee.EventEmitter,ze._onScroll=new ee.EventEmitter,ze._onTitleChange=new ee.EventEmitter,ze.register(ze._parser),ze._parser.setCsiHandlerFallback(function(Ge,Ue){ze._logService.debug("Unknown CSI code: ",{identifier:ze._parser.identToString(Ge),params:Ue.toArray()})}),ze._parser.setEscHandlerFallback(function(Ge){ze._logService.debug("Unknown ESC code: ",{identifier:ze._parser.identToString(Ge)})}),ze._parser.setExecuteHandlerFallback(function(Ge){ze._logService.debug("Unknown EXECUTE code: ",{code:Ge})}),ze._parser.setOscHandlerFallback(function(Ge,Ue,Ke){ze._logService.debug("Unknown OSC code: ",{identifier:Ge,action:Ue,data:Ke})}),ze._parser.setDcsHandlerFallback(function(Ge,Ue,Ke){Ue==="HOOK"&&(Ke=Ke.toArray()),ze._logService.debug("Unknown DCS code: ",{identifier:ze._parser.identToString(Ge),action:Ue,payload:Ke})}),ze._parser.setPrintHandler(function(Ge,Ue,Ke){return ze.print(Ge,Ue,Ke)}),ze._parser.setCsiHandler({final:"@"},function(Ge){return ze.insertChars(Ge)}),ze._parser.setCsiHandler({intermediates:" ",final:"@"},function(Ge){return ze.scrollLeft(Ge)}),ze._parser.setCsiHandler({final:"A"},function(Ge){return ze.cursorUp(Ge)}),ze._parser.setCsiHandler({intermediates:" ",final:"A"},function(Ge){return ze.scrollRight(Ge)}),ze._parser.setCsiHandler({final:"B"},function(Ge){return ze.cursorDown(Ge)}),ze._parser.setCsiHandler({final:"C"},function(Ge){return ze.cursorForward(Ge)}),ze._parser.setCsiHandler({final:"D"},function(Ge){return ze.cursorBackward(Ge)}),ze._parser.setCsiHandler({final:"E"},function(Ge){return ze.cursorNextLine(Ge)}),ze._parser.setCsiHandler({final:"F"},function(Ge){return ze.cursorPrecedingLine(Ge)}),ze._parser.setCsiHandler({final:"G"},function(Ge){return ze.cursorCharAbsolute(Ge)}),ze._parser.setCsiHandler({final:"H"},function(Ge){return ze.cursorPosition(Ge)}),ze._parser.setCsiHandler({final:"I"},function(Ge){return ze.cursorForwardTab(Ge)}),ze._parser.setCsiHandler({final:"J"},function(Ge){return ze.eraseInDisplay(Ge)}),ze._parser.setCsiHandler({prefix:"?",final:"J"},function(Ge){return ze.eraseInDisplay(Ge)}),ze._parser.setCsiHandler({final:"K"},function(Ge){return ze.eraseInLine(Ge)}),ze._parser.setCsiHandler({prefix:"?",final:"K"},function(Ge){return ze.eraseInLine(Ge)}),ze._parser.setCsiHandler({final:"L"},function(Ge){return ze.insertLines(Ge)}),ze._parser.setCsiHandler({final:"M"},function(Ge){return ze.deleteLines(Ge)}),ze._parser.setCsiHandler({final:"P"},function(Ge){return ze.deleteChars(Ge)}),ze._parser.setCsiHandler({final:"S"},function(Ge){return ze.scrollUp(Ge)}),ze._parser.setCsiHandler({final:"T"},function(Ge){return ze.scrollDown(Ge)}),ze._parser.setCsiHandler({final:"X"},function(Ge){return ze.eraseChars(Ge)}),ze._parser.setCsiHandler({final:"Z"},function(Ge){return ze.cursorBackwardTab(Ge)}),ze._parser.setCsiHandler({final:"`"},function(Ge){return ze.charPosAbsolute(Ge)}),ze._parser.setCsiHandler({final:"a"},function(Ge){return ze.hPositionRelative(Ge)}),ze._parser.setCsiHandler({final:"b"},function(Ge){return ze.repeatPrecedingCharacter(Ge)}),ze._parser.setCsiHandler({final:"c"},function(Ge){return ze.sendDeviceAttributesPrimary(Ge)}),ze._parser.setCsiHandler({prefix:">",final:"c"},function(Ge){return ze.sendDeviceAttributesSecondary(Ge)}),ze._parser.setCsiHandler({final:"d"},function(Ge){return ze.linePosAbsolute(Ge)}),ze._parser.setCsiHandler({final:"e"},function(Ge){return ze.vPositionRelative(Ge)}),ze._parser.setCsiHandler({final:"f"},function(Ge){return ze.hVPosition(Ge)}),ze._parser.setCsiHandler({final:"g"},function(Ge){return ze.tabClear(Ge)}),ze._parser.setCsiHandler({final:"h"},function(Ge){return ze.setMode(Ge)}),ze._parser.setCsiHandler({prefix:"?",final:"h"},function(Ge){return ze.setModePrivate(Ge)}),ze._parser.setCsiHandler({final:"l"},function(Ge){return ze.resetMode(Ge)}),ze._parser.setCsiHandler({prefix:"?",final:"l"},function(Ge){return ze.resetModePrivate(Ge)}),ze._parser.setCsiHandler({final:"m"},function(Ge){return ze.charAttributes(Ge)}),ze._parser.setCsiHandler({final:"n"},function(Ge){return ze.deviceStatus(Ge)}),ze._parser.setCsiHandler({prefix:"?",final:"n"},function(Ge){return ze.deviceStatusPrivate(Ge)}),ze._parser.setCsiHandler({intermediates:"!",final:"p"},function(Ge){return ze.softReset(Ge)}),ze._parser.setCsiHandler({intermediates:" ",final:"q"},function(Ge){return ze.setCursorStyle(Ge)}),ze._parser.setCsiHandler({final:"r"},function(Ge){return ze.setScrollRegion(Ge)}),ze._parser.setCsiHandler({final:"s"},function(Ge){return ze.saveCursor(Ge)}),ze._parser.setCsiHandler({final:"t"},function(Ge){return ze.windowOptions(Ge)}),ze._parser.setCsiHandler({final:"u"},function(Ge){return ze.restoreCursor(Ge)}),ze._parser.setCsiHandler({intermediates:"'",final:"}"},function(Ge){return ze.insertColumns(Ge)}),ze._parser.setCsiHandler({intermediates:"'",final:"~"},function(Ge){return ze.deleteColumns(Ge)}),ze._parser.setExecuteHandler(ue.C0.BEL,function(){return ze.bell()}),ze._parser.setExecuteHandler(ue.C0.LF,function(){return ze.lineFeed()}),ze._parser.setExecuteHandler(ue.C0.VT,function(){return ze.lineFeed()}),ze._parser.setExecuteHandler(ue.C0.FF,function(){return ze.lineFeed()}),ze._parser.setExecuteHandler(ue.C0.CR,function(){return ze.carriageReturn()}),ze._parser.setExecuteHandler(ue.C0.BS,function(){return ze.backspace()}),ze._parser.setExecuteHandler(ue.C0.HT,function(){return ze.tab()}),ze._parser.setExecuteHandler(ue.C0.SO,function(){return ze.shiftOut()}),ze._parser.setExecuteHandler(ue.C0.SI,function(){return ze.shiftIn()}),ze._parser.setExecuteHandler(ue.C1.IND,function(){return ze.index()}),ze._parser.setExecuteHandler(ue.C1.NEL,function(){return ze.nextLine()}),ze._parser.setExecuteHandler(ue.C1.HTS,function(){return ze.tabSet()}),ze._parser.setOscHandler(0,new le.OscHandler(function(Ge){ze.setTitle(Ge),ze.setIconName(Ge)})),ze._parser.setOscHandler(1,new le.OscHandler(function(Ge){return ze.setIconName(Ge)})),ze._parser.setOscHandler(2,new le.OscHandler(function(Ge){return ze.setTitle(Ge)})),ze._parser.setEscHandler({final:"7"},function(){return ze.saveCursor()}),ze._parser.setEscHandler({final:"8"},function(){return ze.restoreCursor()}),ze._parser.setEscHandler({final:"D"},function(){return ze.index()}),ze._parser.setEscHandler({final:"E"},function(){return ze.nextLine()}),ze._parser.setEscHandler({final:"H"},function(){return ze.tabSet()}),ze._parser.setEscHandler({final:"M"},function(){return ze.reverseIndex()}),ze._parser.setEscHandler({final:"="},function(){return ze.keypadApplicationMode()}),ze._parser.setEscHandler({final:">"},function(){return ze.keypadNumericMode()}),ze._parser.setEscHandler({final:"c"},function(){return ze.fullReset()}),ze._parser.setEscHandler({final:"n"},function(){return ze.setgLevel(2)}),ze._parser.setEscHandler({final:"o"},function(){return ze.setgLevel(3)}),ze._parser.setEscHandler({final:"|"},function(){return ze.setgLevel(3)}),ze._parser.setEscHandler({final:"}"},function(){return ze.setgLevel(2)}),ze._parser.setEscHandler({final:"~"},function(){return ze.setgLevel(1)}),ze._parser.setEscHandler({intermediates:"%",final:"@"},function(){return ze.selectDefaultCharset()}),ze._parser.setEscHandler({intermediates:"%",final:"G"},function(){return ze.selectDefaultCharset()});var Qe=function(Ge){$e._parser.setEscHandler({intermediates:"(",final:Ge},function(){return ze.selectCharset("("+Ge)}),$e._parser.setEscHandler({intermediates:")",final:Ge},function(){return ze.selectCharset(")"+Ge)}),$e._parser.setEscHandler({intermediates:"*",final:Ge},function(){return ze.selectCharset("*"+Ge)}),$e._parser.setEscHandler({intermediates:"+",final:Ge},function(){return ze.selectCharset("+"+Ge)}),$e._parser.setEscHandler({intermediates:"-",final:Ge},function(){return ze.selectCharset("-"+Ge)}),$e._parser.setEscHandler({intermediates:".",final:Ge},function(){return ze.selectCharset("."+Ge)}),$e._parser.setEscHandler({intermediates:"/",final:Ge},function(){return ze.selectCharset("/"+Ge)})},$e=this;for(var ht in ae.CHARSETS)Qe(ht);return ze._parser.setEscHandler({intermediates:"#",final:"8"},function(){return ze.screenAlignmentPattern()}),ze._parser.setErrorHandler(function(Ge){return ze._logService.error("Parsing error: ",Ge),Ge}),ze._parser.setDcsHandler({intermediates:"$",final:"q"},new _e(ze._bufferService,ze._coreService,ze._logService,ze._optionsService)),ze}return fe(be,he),Object.defineProperty(be.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),be.prototype.dispose=function(){he.prototype.dispose.call(this)},be.prototype.parse=function(Ee){var Ae=this._bufferService.buffer,De=Ae.x,je=Ae.y;if(this._logService.debug("parsing data",Ee),this._parseBuffer.length<Ee.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(Ee.length,131072))),this._dirtyRowService.clearRange(),Ee.length>131072)for(var Fe=0;Fe<Ee.length;Fe+=131072){var Re=Fe+131072<Ee.length?Fe+131072:Ee.length,qe=typeof Ee=="string"?this._stringDecoder.decode(Ee.substring(Fe,Re),this._parseBuffer):this._utf8Decoder.decode(Ee.subarray(Fe,Re),this._parseBuffer);this._parser.parse(this._parseBuffer,qe)}else qe=typeof Ee=="string"?this._stringDecoder.decode(Ee,this._parseBuffer):this._utf8Decoder.decode(Ee,this._parseBuffer),this._parser.parse(this._parseBuffer,qe);(Ae=this._bufferService.buffer).x===De&&Ae.y===je||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},be.prototype.print=function(Ee,Ae,De){var je,Fe,Re=this._bufferService.buffer,qe=this._charsetService.charset,Je=this._optionsService.options.screenReaderMode,He=this._bufferService.cols,ze=this._coreService.decPrivateModes.wraparound,Qe=this._coreService.modes.insertMode,$e=this._curAttrData,ht=Re.lines.get(Re.ybase+Re.y);this._dirtyRowService.markDirty(Re.y),Re.x&&De-Ae>0&&ht.getWidth(Re.x-1)===2&&ht.setCellFromCodePoint(Re.x-1,0,1,$e.fg,$e.bg,$e.extended);for(var Ge=Ae;Ge<De;++Ge){if(je=Ee[Ge],Fe=this._unicodeService.wcwidth(je),je<127&&qe){var Ue=qe[String.fromCharCode(je)];Ue&&(je=Ue.charCodeAt(0))}if(Je&&this._onA11yChar.fire(x.stringFromCodePoint(je)),Fe||!Re.x){if(Re.x+Fe-1>=He){if(ze){for(;Re.x<He;)ht.setCellFromCodePoint(Re.x++,0,1,$e.fg,$e.bg,$e.extended);Re.x=0,Re.y++,Re.y===Re.scrollBottom+1?(Re.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Re.y>=this._bufferService.rows&&(Re.y=this._bufferService.rows-1),Re.lines.get(Re.ybase+Re.y).isWrapped=!0),ht=Re.lines.get(Re.ybase+Re.y)}else if(Re.x=He-1,Fe===2)continue}if(Qe&&(ht.insertCells(Re.x,Fe,Re.getNullCell($e),$e),ht.getWidth(He-1)===2&&ht.setCellFromCodePoint(He-1,E.NULL_CELL_CODE,E.NULL_CELL_WIDTH,$e.fg,$e.bg,$e.extended)),ht.setCellFromCodePoint(Re.x++,je,Fe,$e.fg,$e.bg,$e.extended),Fe>0)for(;--Fe;)ht.setCellFromCodePoint(Re.x++,0,0,$e.fg,$e.bg,$e.extended)}else ht.getWidth(Re.x-1)?ht.addCodepointToCell(Re.x-1,je):ht.addCodepointToCell(Re.x-2,je)}De-Ae>0&&(ht.loadCell(Re.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),Re.x<He&&De-Ae>0&&ht.getWidth(Re.x)===0&&!ht.hasContent(Re.x)&&ht.setCellFromCodePoint(Re.x,0,1,$e.fg,$e.bg,$e.extended),this._dirtyRowService.markDirty(Re.y)},be.prototype.addCsiHandler=function(Ee,Ae){var De=this;return Ee.final!=="t"||Ee.prefix||Ee.intermediates?this._parser.addCsiHandler(Ee,Ae):this._parser.addCsiHandler(Ee,function(je){return!ge(je.params[0],De._optionsService.options.windowOptions)||Ae(je)})},be.prototype.addDcsHandler=function(Ee,Ae){return this._parser.addDcsHandler(Ee,new ve.DcsHandler(Ae))},be.prototype.addEscHandler=function(Ee,Ae){return this._parser.addEscHandler(Ee,Ae)},be.prototype.addOscHandler=function(Ee,Ae){return this._parser.addOscHandler(Ee,new le.OscHandler(Ae))},be.prototype.bell=function(){this._onRequestBell.fire()},be.prototype.lineFeed=function(){var Ee=this._bufferService.buffer;this._dirtyRowService.markDirty(Ee.y),this._optionsService.options.convertEol&&(Ee.x=0),Ee.y++,Ee.y===Ee.scrollBottom+1?(Ee.y--,this._onRequestScroll.fire(this._eraseAttrData())):Ee.y>=this._bufferService.rows&&(Ee.y=this._bufferService.rows-1),Ee.x>=this._bufferService.cols&&Ee.x--,this._dirtyRowService.markDirty(Ee.y),this._onLineFeed.fire()},be.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},be.prototype.backspace=function(){var Ee,Ae=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(Ae.x>0&&Ae.x--);if(this._restrictCursor(this._bufferService.cols),Ae.x>0)Ae.x--;else if(Ae.x===0&&Ae.y>Ae.scrollTop&&Ae.y<=Ae.scrollBottom&&(!((Ee=Ae.lines.get(Ae.ybase+Ae.y))===null||Ee===void 0)&&Ee.isWrapped)){Ae.lines.get(Ae.ybase+Ae.y).isWrapped=!1,Ae.y--,Ae.x=this._bufferService.cols-1;var De=Ae.lines.get(Ae.ybase+Ae.y);De.hasWidth(Ae.x)&&!De.hasContent(Ae.x)&&Ae.x--}this._restrictCursor()},be.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var Ee=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-Ee)}},be.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},be.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},be.prototype._restrictCursor=function(Ee){Ee===void 0&&(Ee=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(Ee,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},be.prototype._setCursor=function(Ee,Ae){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=Ee,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+Ae):(this._bufferService.buffer.x=Ee,this._bufferService.buffer.y=Ae),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},be.prototype._moveCursor=function(Ee,Ae){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+Ee,this._bufferService.buffer.y+Ae)},be.prototype.cursorUp=function(Ee){var Ae=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;Ae>=0?this._moveCursor(0,-Math.min(Ae,Ee.params[0]||1)):this._moveCursor(0,-(Ee.params[0]||1))},be.prototype.cursorDown=function(Ee){var Ae=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;Ae>=0?this._moveCursor(0,Math.min(Ae,Ee.params[0]||1)):this._moveCursor(0,Ee.params[0]||1)},be.prototype.cursorForward=function(Ee){this._moveCursor(Ee.params[0]||1,0)},be.prototype.cursorBackward=function(Ee){this._moveCursor(-(Ee.params[0]||1),0)},be.prototype.cursorNextLine=function(Ee){this.cursorDown(Ee),this._bufferService.buffer.x=0},be.prototype.cursorPrecedingLine=function(Ee){this.cursorUp(Ee),this._bufferService.buffer.x=0},be.prototype.cursorCharAbsolute=function(Ee){this._setCursor((Ee.params[0]||1)-1,this._bufferService.buffer.y)},be.prototype.cursorPosition=function(Ee){this._setCursor(Ee.length>=2?(Ee.params[1]||1)-1:0,(Ee.params[0]||1)-1)},be.prototype.charPosAbsolute=function(Ee){this._setCursor((Ee.params[0]||1)-1,this._bufferService.buffer.y)},be.prototype.hPositionRelative=function(Ee){this._moveCursor(Ee.params[0]||1,0)},be.prototype.linePosAbsolute=function(Ee){this._setCursor(this._bufferService.buffer.x,(Ee.params[0]||1)-1)},be.prototype.vPositionRelative=function(Ee){this._moveCursor(0,Ee.params[0]||1)},be.prototype.hVPosition=function(Ee){this.cursorPosition(Ee)},be.prototype.tabClear=function(Ee){var Ae=Ee.params[0];Ae===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:Ae===3&&(this._bufferService.buffer.tabs={})},be.prototype.cursorForwardTab=function(Ee){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Ae=Ee.params[0]||1;Ae--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},be.prototype.cursorBackwardTab=function(Ee){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Ae=Ee.params[0]||1,De=this._bufferService.buffer;Ae--;)De.x=De.prevStop()},be.prototype._eraseInBufferLine=function(Ee,Ae,De,je){je===void 0&&(je=!1);var Fe=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+Ee);Fe.replaceCells(Ae,De,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je&&(Fe.isWrapped=!1)},be.prototype._resetBufferLine=function(Ee){var Ae=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+Ee);Ae.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),Ae.isWrapped=!1},be.prototype.eraseInDisplay=function(Ee){var Ae;switch(this._restrictCursor(),Ee.params[0]){case 0:for(Ae=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Ae),this._eraseInBufferLine(Ae++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);Ae<this._bufferService.rows;Ae++)this._resetBufferLine(Ae);this._dirtyRowService.markDirty(Ae);break;case 1:for(Ae=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Ae),this._eraseInBufferLine(Ae,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(Ae+1).isWrapped=!1);Ae--;)this._resetBufferLine(Ae);this._dirtyRowService.markDirty(0);break;case 2:for(Ae=this._bufferService.rows,this._dirtyRowService.markDirty(Ae-1);Ae--;)this._resetBufferLine(Ae);this._dirtyRowService.markDirty(0);break;case 3:var De=this._bufferService.buffer.lines.length-this._bufferService.rows;De>0&&(this._bufferService.buffer.lines.trimStart(De),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-De,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-De,0),this._onScroll.fire(0))}},be.prototype.eraseInLine=function(Ee){switch(this._restrictCursor(),Ee.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},be.prototype.insertLines=function(Ee){this._restrictCursor();var Ae=Ee.params[0]||1,De=this._bufferService.buffer;if(!(De.y>De.scrollBottom||De.y<De.scrollTop)){for(var je=De.ybase+De.y,Fe=this._bufferService.rows-1-De.scrollBottom,Re=this._bufferService.rows-1+De.ybase-Fe+1;Ae--;)De.lines.splice(Re-1,1),De.lines.splice(je,0,De.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(De.y,De.scrollBottom),De.x=0}},be.prototype.deleteLines=function(Ee){this._restrictCursor();var Ae=Ee.params[0]||1,De=this._bufferService.buffer;if(!(De.y>De.scrollBottom||De.y<De.scrollTop)){var je,Fe=De.ybase+De.y;for(je=this._bufferService.rows-1-De.scrollBottom,je=this._bufferService.rows-1+De.ybase-je;Ae--;)De.lines.splice(Fe,1),De.lines.splice(je,0,De.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(De.y,De.scrollBottom),De.x=0}},be.prototype.insertChars=function(Ee){this._restrictCursor();var Ae=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Ae&&(Ae.insertCells(this._bufferService.buffer.x,Ee.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},be.prototype.deleteChars=function(Ee){this._restrictCursor();var Ae=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Ae&&(Ae.deleteCells(this._bufferService.buffer.x,Ee.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},be.prototype.scrollUp=function(Ee){for(var Ae=Ee.params[0]||1,De=this._bufferService.buffer;Ae--;)De.lines.splice(De.ybase+De.scrollTop,1),De.lines.splice(De.ybase+De.scrollBottom,0,De.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(De.scrollTop,De.scrollBottom)},be.prototype.scrollDown=function(Ee){for(var Ae=Ee.params[0]||1,De=this._bufferService.buffer;Ae--;)De.lines.splice(De.ybase+De.scrollBottom,1),De.lines.splice(De.ybase+De.scrollTop,0,De.getBlankLine(b.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(De.scrollTop,De.scrollBottom)},be.prototype.scrollLeft=function(Ee){var Ae=this._bufferService.buffer;if(!(Ae.y>Ae.scrollBottom||Ae.y<Ae.scrollTop)){for(var De=Ee.params[0]||1,je=Ae.scrollTop;je<=Ae.scrollBottom;++je){var Fe=Ae.lines.get(Ae.ybase+je);Fe.deleteCells(0,De,Ae.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Ae.scrollTop,Ae.scrollBottom)}},be.prototype.scrollRight=function(Ee){var Ae=this._bufferService.buffer;if(!(Ae.y>Ae.scrollBottom||Ae.y<Ae.scrollTop)){for(var De=Ee.params[0]||1,je=Ae.scrollTop;je<=Ae.scrollBottom;++je){var Fe=Ae.lines.get(Ae.ybase+je);Fe.insertCells(0,De,Ae.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Ae.scrollTop,Ae.scrollBottom)}},be.prototype.insertColumns=function(Ee){var Ae=this._bufferService.buffer;if(!(Ae.y>Ae.scrollBottom||Ae.y<Ae.scrollTop)){for(var De=Ee.params[0]||1,je=Ae.scrollTop;je<=Ae.scrollBottom;++je){var Fe=this._bufferService.buffer.lines.get(Ae.ybase+je);Fe.insertCells(Ae.x,De,Ae.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Ae.scrollTop,Ae.scrollBottom)}},be.prototype.deleteColumns=function(Ee){var Ae=this._bufferService.buffer;if(!(Ae.y>Ae.scrollBottom||Ae.y<Ae.scrollTop)){for(var De=Ee.params[0]||1,je=Ae.scrollTop;je<=Ae.scrollBottom;++je){var Fe=Ae.lines.get(Ae.ybase+je);Fe.deleteCells(Ae.x,De,Ae.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Fe.isWrapped=!1}this._dirtyRowService.markRangeDirty(Ae.scrollTop,Ae.scrollBottom)}},be.prototype.eraseChars=function(Ee){this._restrictCursor();var Ae=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Ae&&(Ae.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(Ee.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},be.prototype.repeatPrecedingCharacter=function(Ee){if(this._parser.precedingCodepoint){for(var Ae=Ee.params[0]||1,De=new Uint32Array(Ae),je=0;je<Ae;++je)De[je]=this._parser.precedingCodepoint;this.print(De,0,De.length)}},be.prototype.sendDeviceAttributesPrimary=function(Ee){Ee.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(ue.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(ue.C0.ESC+"[?6c"))},be.prototype.sendDeviceAttributesSecondary=function(Ee){Ee.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(ue.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(ue.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(Ee.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(ue.C0.ESC+"[>83;40003;0c"))},be.prototype._is=function(Ee){return(this._optionsService.options.termName+"").indexOf(Ee)===0},be.prototype.setMode=function(Ee){for(var Ae=0;Ae<Ee.length;Ae++)switch(Ee.params[Ae]){case 4:this._coreService.modes.insertMode=!0}},be.prototype.setModePrivate=function(Ee){for(var Ae=0;Ae<Ee.length;Ae++)switch(Ee.params[Ae]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,ae.DEFAULT_CHARSET),this._charsetService.setgCharset(1,ae.DEFAULT_CHARSET),this._charsetService.setgCharset(2,ae.DEFAULT_CHARSET),this._charsetService.setgCharset(3,ae.DEFAULT_CHARSET);break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0;break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}},be.prototype.resetMode=function(Ee){for(var Ae=0;Ae<Ee.length;Ae++)switch(Ee.params[Ae]){case 4:this._coreService.modes.insertMode=!1}},be.prototype.resetModePrivate=function(Ee){for(var Ae=0;Ae<Ee.length;Ae++)switch(Ee.params[Ae]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),Ee.params[Ae]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}},be.prototype._updateAttrColor=function(Ee,Ae,De,je,Fe){return Ae===2?(Ee|=50331648,Ee&=-16777216,Ee|=ce.AttributeData.fromColorRGB([De,je,Fe])):Ae===5&&(Ee&=-50331904,Ee|=33554432|255&De),Ee},be.prototype._extractColor=function(Ee,Ae,De){var je=[0,0,-1,0,0,0],Fe=0,Re=0;do{if(je[Re+Fe]=Ee.params[Ae+Re],Ee.hasSubParams(Ae+Re)){var qe=Ee.getSubParams(Ae+Re),Je=0;do je[1]===5&&(Fe=1),je[Re+Je+1+Fe]=qe[Je];while(++Je<qe.length&&Je+Re+1+Fe<je.length);break}if(je[1]===5&&Re+Fe>=2||je[1]===2&&Re+Fe>=5)break;je[1]&&(Fe=1)}while(++Re+Ae<Ee.length&&Re+Fe<je.length);for(Je=2;Je<je.length;++Je)je[Je]===-1&&(je[Je]=0);switch(je[0]){case 38:De.fg=this._updateAttrColor(De.fg,je[1],je[3],je[4],je[5]);break;case 48:De.bg=this._updateAttrColor(De.bg,je[1],je[3],je[4],je[5]);break;case 58:De.extended=De.extended.clone(),De.extended.underlineColor=this._updateAttrColor(De.extended.underlineColor,je[1],je[3],je[4],je[5])}return Re},be.prototype._processUnderline=function(Ee,Ae){Ae.extended=Ae.extended.clone(),(!~Ee||Ee>5)&&(Ee=1),Ae.extended.underlineStyle=Ee,Ae.fg|=268435456,Ee===0&&(Ae.fg&=-268435457),Ae.updateExtended()},be.prototype.charAttributes=function(Ee){if(Ee.length===1&&Ee.params[0]===0)return this._curAttrData.fg=b.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=b.DEFAULT_ATTR_DATA.bg);for(var Ae,De=Ee.length,je=this._curAttrData,Fe=0;Fe<De;Fe++)(Ae=Ee.params[Fe])>=30&&Ae<=37?(je.fg&=-50331904,je.fg|=16777216|Ae-30):Ae>=40&&Ae<=47?(je.bg&=-50331904,je.bg|=16777216|Ae-40):Ae>=90&&Ae<=97?(je.fg&=-50331904,je.fg|=16777224|Ae-90):Ae>=100&&Ae<=107?(je.bg&=-50331904,je.bg|=16777224|Ae-100):Ae===0?(je.fg=b.DEFAULT_ATTR_DATA.fg,je.bg=b.DEFAULT_ATTR_DATA.bg):Ae===1?je.fg|=134217728:Ae===3?je.bg|=67108864:Ae===4?(je.fg|=268435456,this._processUnderline(Ee.hasSubParams(Fe)?Ee.getSubParams(Fe)[0]:1,je)):Ae===5?je.fg|=536870912:Ae===7?je.fg|=67108864:Ae===8?je.fg|=1073741824:Ae===2?je.bg|=134217728:Ae===21?this._processUnderline(2,je):Ae===22?(je.fg&=-134217729,je.bg&=-134217729):Ae===23?je.bg&=-67108865:Ae===24?je.fg&=-268435457:Ae===25?je.fg&=-536870913:Ae===27?je.fg&=-67108865:Ae===28?je.fg&=-1073741825:Ae===39?(je.fg&=-67108864,je.fg|=16777215&b.DEFAULT_ATTR_DATA.fg):Ae===49?(je.bg&=-67108864,je.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):Ae===38||Ae===48||Ae===58?Fe+=this._extractColor(Ee,Fe,je):Ae===59?(je.extended=je.extended.clone(),je.extended.underlineColor=-1,je.updateExtended()):Ae===100?(je.fg&=-67108864,je.fg|=16777215&b.DEFAULT_ATTR_DATA.fg,je.bg&=-67108864,je.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",Ae)},be.prototype.deviceStatus=function(Ee){switch(Ee.params[0]){case 5:this._coreService.triggerDataEvent(ue.C0.ESC+"[0n");break;case 6:var Ae=this._bufferService.buffer.y+1,De=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(ue.C0.ESC+"["+Ae+";"+De+"R")}},be.prototype.deviceStatusPrivate=function(Ee){switch(Ee.params[0]){case 6:var Ae=this._bufferService.buffer.y+1,De=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(ue.C0.ESC+"[?"+Ae+";"+De+"R")}},be.prototype.softReset=function(Ee){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._bufferService.buffer.savedX=0,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1},be.prototype.setCursorStyle=function(Ee){var Ae=Ee.params[0]||1;switch(Ae){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}var De=Ae%2==1;this._optionsService.options.cursorBlink=De},be.prototype.setScrollRegion=function(Ee){var Ae,De=Ee.params[0]||1;(Ee.length<2||(Ae=Ee.params[1])>this._bufferService.rows||Ae===0)&&(Ae=this._bufferService.rows),Ae>De&&(this._bufferService.buffer.scrollTop=De-1,this._bufferService.buffer.scrollBottom=Ae-1,this._setCursor(0,0))},be.prototype.windowOptions=function(Ee){if(ge(Ee.params[0],this._optionsService.options.windowOptions)){var Ae=Ee.length>1?Ee.params[1]:0;switch(Ee.params[0]){case 14:Ae!==2&&this._onRequestWindowsOptionsReport.fire(de.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(de.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(ue.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:Ae!==0&&Ae!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),Ae!==0&&Ae!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:Ae!==0&&Ae!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),Ae!==0&&Ae!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},be.prototype.saveCursor=function(Ee){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},be.prototype.restoreCursor=function(Ee){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},be.prototype.setTitle=function(Ee){this._windowTitle=Ee,this._onTitleChange.fire(Ee)},be.prototype.setIconName=function(Ee){this._iconName=Ee},be.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},be.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},be.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},be.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,ae.DEFAULT_CHARSET)},be.prototype.selectCharset=function(Ee){Ee.length===2?Ee[0]!=="/"&&this._charsetService.setgCharset(Se[Ee[0]],ae.CHARSETS[Ee[1]]||ae.DEFAULT_CHARSET):this.selectDefaultCharset()},be.prototype.index=function(){this._restrictCursor();var Ee=this._bufferService.buffer;this._bufferService.buffer.y++,Ee.y===Ee.scrollBottom+1?(Ee.y--,this._onRequestScroll.fire(this._eraseAttrData())):Ee.y>=this._bufferService.rows&&(Ee.y=this._bufferService.rows-1),this._restrictCursor()},be.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},be.prototype.reverseIndex=function(){this._restrictCursor();var Ee=this._bufferService.buffer;if(Ee.y===Ee.scrollTop){var Ae=Ee.scrollBottom-Ee.scrollTop;Ee.lines.shiftElements(Ee.ybase+Ee.y,Ae,1),Ee.lines.set(Ee.ybase+Ee.y,Ee.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(Ee.scrollTop,Ee.scrollBottom)}else Ee.y--,this._restrictCursor()},be.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},be.prototype.reset=function(){this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone()},be.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},be.prototype.setgLevel=function(Ee){this._charsetService.setgLevel(Ee)},be.prototype.screenAlignmentPattern=function(){var Ee=new re.CellData;Ee.content=1<<22|69,Ee.fg=this._curAttrData.fg,Ee.bg=this._curAttrData.bg;var Ae=this._bufferService.buffer;this._setCursor(0,0);for(var De=0;De<this._bufferService.rows;++De){var je=Ae.ybase+Ae.y+De,Fe=Ae.lines.get(je);Fe&&(Fe.fill(Ee),Fe.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},be}(te.Disposable);oe.InputHandler=Ce},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.DEFAULT_CHARSET=oe.CHARSETS=void 0,oe.CHARSETS={},oe.DEFAULT_CHARSET=oe.CHARSETS.B,oe.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},oe.CHARSETS.A={"#":"\xA3"},oe.CHARSETS.B=void 0,oe.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},oe.CHARSETS.C=oe.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},oe.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},oe.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},oe.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},oe.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},oe.CHARSETS.E=oe.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},oe.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},oe.CHARSETS.H=oe.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},oe.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.Params=void 0;var ie=function(){function fe(de,ue){if(de===void 0&&(de=32),ue===void 0&&(ue=32),this.maxLength=de,this.maxSubParamsLength=ue,ue>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(de),this.length=0,this._subParams=new Int32Array(ue),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(de),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return fe.fromArray=function(de){var ue=new fe;if(!de.length)return ue;for(var ae=de[0]instanceof Array?1:0;ae<de.length;++ae){var se=de[ae];if(se instanceof Array)for(var te=0;te<se.length;++te)ue.addSubParam(se[te]);else ue.addParam(se)}return ue},fe.prototype.clone=function(){var de=new fe(this.maxLength,this.maxSubParamsLength);return de.params.set(this.params),de.length=this.length,de._subParams.set(this._subParams),de._subParamsLength=this._subParamsLength,de._subParamsIdx.set(this._subParamsIdx),de._rejectDigits=this._rejectDigits,de._rejectSubDigits=this._rejectSubDigits,de._digitIsSub=this._digitIsSub,de},fe.prototype.toArray=function(){for(var de=[],ue=0;ue<this.length;++ue){de.push(this.params[ue]);var ae=this._subParamsIdx[ue]>>8,se=255&this._subParamsIdx[ue];se-ae>0&&de.push(Array.prototype.slice.call(this._subParams,ae,se))}return de},fe.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},fe.prototype.addParam=function(de){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(de<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=de>2147483647?2147483647:de}},fe.prototype.addSubParam=function(de){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(de<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=de>2147483647?2147483647:de,this._subParamsIdx[this.length-1]++}},fe.prototype.hasSubParams=function(de){return(255&this._subParamsIdx[de])-(this._subParamsIdx[de]>>8)>0},fe.prototype.getSubParams=function(de){var ue=this._subParamsIdx[de]>>8,ae=255&this._subParamsIdx[de];return ae-ue>0?this._subParams.subarray(ue,ae):null},fe.prototype.getSubParamsAll=function(){for(var de={},ue=0;ue<this.length;++ue){var ae=this._subParamsIdx[ue]>>8,se=255&this._subParamsIdx[ue];se-ae>0&&(de[ue]=this._subParams.slice(ae,se))}return de},fe.prototype.addDigit=function(de){var ue;if(!(this._rejectDigits||!(ue=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var ae=this._digitIsSub?this._subParams:this.params,se=ae[ue-1];ae[ue-1]=~se?Math.min(10*se+de,2147483647):de}},fe}();oe.Params=ie},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.OscHandler=oe.OscParser=void 0;var ie=y(23),fe=y(8),de=function(){function ae(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return ae.prototype.addHandler=function(se,te){this._handlers[se]===void 0&&(this._handlers[se]=[]);var ne=this._handlers[se];return ne.push(te),{dispose:function(){var x=ne.indexOf(te);x!==-1&&ne.splice(x,1)}}},ae.prototype.setHandler=function(se,te){this._handlers[se]=[te]},ae.prototype.clearHandler=function(se){this._handlers[se]&&delete this._handlers[se]},ae.prototype.setHandlerFallback=function(se){this._handlerFb=se},ae.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},ae.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},ae.prototype._start=function(){var se=this._handlers[this._id];if(se)for(var te=se.length-1;te>=0;te--)se[te].start();else this._handlerFb(this._id,"START")},ae.prototype._put=function(se,te,ne){var x=this._handlers[this._id];if(x)for(var b=x.length-1;b>=0;b--)x[b].put(se,te,ne);else this._handlerFb(this._id,"PUT",fe.utf32ToString(se,te,ne))},ae.prototype._end=function(se){var te=this._handlers[this._id];if(te){for(var ne=te.length-1;ne>=0&&te[ne].end(se)===!1;ne--);for(ne--;ne>=0;ne--)te[ne].end(!1)}else this._handlerFb(this._id,"END",se)},ae.prototype.start=function(){this.reset(),this._id=-1,this._state=1},ae.prototype.put=function(se,te,ne){if(this._state!==3){if(this._state===1)for(;te<ne;){var x=se[te++];if(x===59){this._state=2,this._start();break}if(x<48||57<x)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+x-48}this._state===2&&ne-te>0&&this._put(se,te,ne)}},ae.prototype.end=function(se){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(se)),this._id=-1,this._state=0)},ae}();oe.OscParser=de;var ue=function(){function ae(se){this._handler=se,this._data="",this._hitLimit=!1}return ae.prototype.start=function(){this._data="",this._hitLimit=!1},ae.prototype.put=function(se,te,ne){this._hitLimit||(this._data+=fe.utf32ToString(se,te,ne),this._data.length>ie.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},ae.prototype.end=function(se){var te;return this._hitLimit?te=!1:se&&(te=this._handler(this._data)),this._data="",this._hitLimit=!1,te},ae}();oe.OscHandler=ue},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.PAYLOAD_LIMIT=void 0,oe.PAYLOAD_LIMIT=1e7},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.DcsHandler=oe.DcsParser=void 0;var ie=y(8),fe=y(21),de=y(23),ue=[],ae=function(){function te(){this._handlers=Object.create(null),this._active=ue,this._ident=0,this._handlerFb=function(){}}return te.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},te.prototype.addHandler=function(ne,x){this._handlers[ne]===void 0&&(this._handlers[ne]=[]);var b=this._handlers[ne];return b.push(x),{dispose:function(){var ee=b.indexOf(x);ee!==-1&&b.splice(ee,1)}}},te.prototype.setHandler=function(ne,x){this._handlers[ne]=[x]},te.prototype.clearHandler=function(ne){this._handlers[ne]&&delete this._handlers[ne]},te.prototype.setHandlerFallback=function(ne){this._handlerFb=ne},te.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=ue,this._ident=0},te.prototype.hook=function(ne,x){if(this.reset(),this._ident=ne,this._active=this._handlers[ne]||ue,this._active.length)for(var b=this._active.length-1;b>=0;b--)this._active[b].hook(x);else this._handlerFb(this._ident,"HOOK",x)},te.prototype.put=function(ne,x,b){if(this._active.length)for(var ee=this._active.length-1;ee>=0;ee--)this._active[ee].put(ne,x,b);else this._handlerFb(this._ident,"PUT",ie.utf32ToString(ne,x,b))},te.prototype.unhook=function(ne){if(this._active.length){for(var x=this._active.length-1;x>=0&&this._active[x].unhook(ne)===!1;x--);for(x--;x>=0;x--)this._active[x].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",ne);this._active=ue,this._ident=0},te}();oe.DcsParser=ae;var se=function(){function te(ne){this._handler=ne,this._data="",this._hitLimit=!1}return te.prototype.hook=function(ne){this._params=ne.clone(),this._data="",this._hitLimit=!1},te.prototype.put=function(ne,x,b){this._hitLimit||(this._data+=ie.utf32ToString(ne,x,b),this._data.length>de.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},te.prototype.unhook=function(ne){var x;return this._hitLimit?x=!1:ne&&(x=this._handler(this._data,this._params||new fe.Params)),this._params=void 0,this._data="",this._hitLimit=!1,x},te}();oe.DcsHandler=se},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.removeTerminalFromCache=oe.acquireCharAtlas=void 0;var ie=y(26),fe=y(43),de=[];oe.acquireCharAtlas=function(ue,ae,se,te,ne){for(var x=ie.generateConfig(te,ne,ue,se),b=0;b<de.length;b++){var ee=(E=de[b]).ownedBy.indexOf(ae);if(ee>=0){if(ie.configEquals(E.config,x))return E.atlas;E.ownedBy.length===1?(E.atlas.dispose(),de.splice(b,1)):E.ownedBy.splice(ee,1);break}}for(b=0;b<de.length;b++){var E=de[b];if(ie.configEquals(E.config,x))return E.ownedBy.push(ae),E.atlas}var re={atlas:new fe.DynamicCharAtlas(document,x),config:x,ownedBy:[ae]};return de.push(re),re.atlas},oe.removeTerminalFromCache=function(ue){for(var ae=0;ae<de.length;ae++){var se=de[ae].ownedBy.indexOf(ue);if(se!==-1){de[ae].ownedBy.length===1?(de[ae].atlas.dispose(),de.splice(ae,1)):de[ae].ownedBy.splice(se,1);break}}}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.is256Color=oe.configEquals=oe.generateConfig=void 0;var ie=y(3);oe.generateConfig=function(fe,de,ue,ae){var se={foreground:ae.foreground,background:ae.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:ae.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:fe,scaledCharHeight:de,fontFamily:ue.fontFamily,fontSize:ue.fontSize,fontWeight:ue.fontWeight,fontWeightBold:ue.fontWeightBold,allowTransparency:ue.allowTransparency,colors:se}},oe.configEquals=function(fe,de){for(var ue=0;ue<fe.colors.ansi.length;ue++)if(fe.colors.ansi[ue].rgba!==de.colors.ansi[ue].rgba)return!1;return fe.devicePixelRatio===de.devicePixelRatio&&fe.fontFamily===de.fontFamily&&fe.fontSize===de.fontSize&&fe.fontWeight===de.fontWeight&&fe.fontWeightBold===de.fontWeightBold&&fe.allowTransparency===de.allowTransparency&&fe.scaledCharWidth===de.scaledCharWidth&&fe.scaledCharHeight===de.scaledCharHeight&&fe.colors.foreground===de.colors.foreground&&fe.colors.background===de.colors.background},oe.is256Color=function(fe){return fe<ie.DEFAULT_COLOR}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.ColorManager=oe.DEFAULT_ANSI_COLORS=void 0;var ie=y(10),fe=y(45),de=ie.css.toColor("#ffffff"),ue=ie.css.toColor("#000000"),ae=ie.css.toColor("#ffffff"),se=ie.css.toColor("#000000"),te={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};oe.DEFAULT_ANSI_COLORS=function(){for(var x=[ie.css.toColor("#2e3436"),ie.css.toColor("#cc0000"),ie.css.toColor("#4e9a06"),ie.css.toColor("#c4a000"),ie.css.toColor("#3465a4"),ie.css.toColor("#75507b"),ie.css.toColor("#06989a"),ie.css.toColor("#d3d7cf"),ie.css.toColor("#555753"),ie.css.toColor("#ef2929"),ie.css.toColor("#8ae234"),ie.css.toColor("#fce94f"),ie.css.toColor("#729fcf"),ie.css.toColor("#ad7fa8"),ie.css.toColor("#34e2e2"),ie.css.toColor("#eeeeec")],b=[0,95,135,175,215,255],ee=0;ee<216;ee++){var E=b[ee/36%6|0],re=b[ee/6%6|0],ce=b[ee%6];x.push({css:ie.channels.toCss(E,re,ce),rgba:ie.channels.toRgba(E,re,ce)})}for(ee=0;ee<24;ee++){var le=8+10*ee;x.push({css:ie.channels.toCss(le,le,le),rgba:ie.channels.toRgba(le,le,le)})}return x}();var ne=function(){function x(b,ee){this.allowTransparency=ee;var E=b.createElement("canvas");E.width=1,E.height=1;var re=E.getContext("2d");if(!re)throw new Error("Could not get rendering context");this._ctx=re,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new fe.ColorContrastCache,this.colors={foreground:de,background:ue,cursor:ae,cursorAccent:se,selectionTransparent:te,selectionOpaque:ie.color.blend(ue,te),ansi:oe.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return x.prototype.onOptionsChange=function(b){b==="minimumContrastRatio"&&this._contrastCache.clear()},x.prototype.setTheme=function(b){b===void 0&&(b={}),this.colors.foreground=this._parseColor(b.foreground,de),this.colors.background=this._parseColor(b.background,ue),this.colors.cursor=this._parseColor(b.cursor,ae,!0),this.colors.cursorAccent=this._parseColor(b.cursorAccent,se,!0),this.colors.selectionTransparent=this._parseColor(b.selection,te,!0),this.colors.selectionOpaque=ie.color.blend(this.colors.background,this.colors.selectionTransparent),ie.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=ie.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(b.black,oe.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(b.red,oe.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(b.green,oe.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(b.yellow,oe.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(b.blue,oe.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(b.magenta,oe.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(b.cyan,oe.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(b.white,oe.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(b.brightBlack,oe.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(b.brightRed,oe.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(b.brightGreen,oe.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(b.brightYellow,oe.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(b.brightBlue,oe.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(b.brightMagenta,oe.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(b.brightCyan,oe.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(b.brightWhite,oe.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},x.prototype._parseColor=function(b,ee,E){if(E===void 0&&(E=this.allowTransparency),b===void 0)return ee;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=b,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+b+" is invalid using fallback "+ee.css),ee;this._ctx.fillRect(0,0,1,1);var re=this._ctx.getImageData(0,0,1,1).data;if(re[3]!==255){if(!E)return console.warn("Color: "+b+" is using transparency, but allowTransparency is false. Using fallback "+ee.css+"."),ee;var ce=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(Ce){return Number(Ce)}),le=ce[0],ve=ce[1],Se=ce[2],ge=ce[3],_e=Math.round(255*ge);return{rgba:ie.channels.toRgba(le,ve,Se,_e),css:b}}return{css:this._ctx.fillStyle,rgba:ie.channels.toRgba(re[0],re[1],re[2],re[3])}},x}();oe.ColorManager=ne},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.throwIfFalsy=void 0,oe.throwIfFalsy=function(ie){if(!ie)throw new Error("value must not be falsy");return ie}},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(ne,x){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,ee){b.__proto__=ee}||function(b,ee){for(var E in ee)ee.hasOwnProperty(E)&&(b[E]=ee[E])})(ne,x)},function(ne,x){function b(){this.constructor=ne}ie(ne,x),ne.prototype=x===null?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.CharacterJoinerRegistry=oe.JoinedCellData=void 0;var de=y(6),ue=y(3),ae=y(4),se=function(ne){function x(b,ee,E){var re=ne.call(this)||this;return re.content=0,re.combinedData="",re.fg=b.fg,re.bg=b.bg,re.combinedData=ee,re._width=E,re}return fe(x,ne),x.prototype.isCombined=function(){return 2097152},x.prototype.getWidth=function(){return this._width},x.prototype.getChars=function(){return this.combinedData},x.prototype.getCode=function(){return 2097151},x.prototype.setFromCharData=function(b){throw new Error("not implemented")},x.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},x}(de.AttributeData);oe.JoinedCellData=se;var te=function(){function ne(x){this._bufferService=x,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new ae.CellData}return ne.prototype.registerCharacterJoiner=function(x){var b={id:this._nextCharacterJoinerId++,handler:x};return this._characterJoiners.push(b),b.id},ne.prototype.deregisterCharacterJoiner=function(x){for(var b=0;b<this._characterJoiners.length;b++)if(this._characterJoiners[b].id===x)return this._characterJoiners.splice(b,1),!0;return!1},ne.prototype.getJoinedCharacters=function(x){if(this._characterJoiners.length===0)return[];var b=this._bufferService.buffer.lines.get(x);if(!b||b.length===0)return[];for(var ee=[],E=b.translateToString(!0),re=0,ce=0,le=0,ve=b.getFg(0),Se=b.getBg(0),ge=0;ge<b.getTrimmedLength();ge++)if(b.loadCell(ge,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==ve||this._workCell.bg!==Se){if(ge-re>1)for(var _e=this._getJoinedRanges(E,le,ce,b,re),Ce=0;Ce<_e.length;Ce++)ee.push(_e[Ce]);re=ge,le=ce,ve=this._workCell.fg,Se=this._workCell.bg}ce+=this._workCell.getChars().length||ue.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-re>1)for(_e=this._getJoinedRanges(E,le,ce,b,re),Ce=0;Ce<_e.length;Ce++)ee.push(_e[Ce]);return ee},ne.prototype._getJoinedRanges=function(x,b,ee,E,re){for(var ce=x.substring(b,ee),le=this._characterJoiners[0].handler(ce),ve=1;ve<this._characterJoiners.length;ve++)for(var Se=this._characterJoiners[ve].handler(ce),ge=0;ge<Se.length;ge++)ne._mergeRanges(le,Se[ge]);return this._stringRangesToCellRanges(le,E,re),le},ne.prototype._stringRangesToCellRanges=function(x,b,ee){var E=0,re=!1,ce=0,le=x[E];if(le){for(var ve=ee;ve<this._bufferService.cols;ve++){var Se=b.getWidth(ve),ge=b.getString(ve).length||ue.WHITESPACE_CELL_CHAR.length;if(Se!==0){if(!re&&le[0]<=ce&&(le[0]=ve,re=!0),le[1]<=ce){if(le[1]=ve,!(le=x[++E]))break;le[0]<=ce?(le[0]=ve,re=!0):re=!1}ce+=ge}}le&&(le[1]=this._bufferService.cols)}},ne._mergeRanges=function(x,b){for(var ee=!1,E=0;E<x.length;E++){var re=x[E];if(ee){if(b[1]<=re[0])return x[E-1][1]=b[1],x;if(b[1]<=re[1])return x[E-1][1]=Math.max(b[1],re[1]),x.splice(E,1),x;x.splice(E,1),E--}else{if(b[1]<=re[0])return x.splice(E,0,b),x;if(b[1]<=re[1])return re[0]=Math.min(b[0],re[0]),x;b[0]<re[1]&&(re[0]=Math.min(b[0],re[0]),ee=!0)}}return ee?x[x.length-1][1]=b[1]:x.push(b),x},ne}();oe.CharacterJoinerRegistry=te},function(Tt,oe,y){"use strict";function ie(fe,de){var ue=de.getBoundingClientRect();return[fe.clientX-ue.left,fe.clientY-ue.top]}Object.defineProperty(oe,"__esModule",{value:!0}),oe.getRawByteCoords=oe.getCoords=oe.getCoordsRelativeToElement=void 0,oe.getCoordsRelativeToElement=ie,oe.getCoords=function(fe,de,ue,ae,se,te,ne,x){if(se){var b=ie(fe,de);if(b)return b[0]=Math.ceil((b[0]+(x?te/2:0))/te),b[1]=Math.ceil(b[1]/ne),b[0]=Math.min(Math.max(b[0],1),ue+(x?1:0)),b[1]=Math.min(Math.max(b[1],1),ae),b}},oe.getRawByteCoords=function(fe){if(fe)return{x:fe[0]+32,y:fe[1]+32}}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.RenderDebouncer=void 0;var ie=function(){function fe(de){this._renderCallback=de}return fe.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},fe.prototype.refresh=function(de,ue,ae){var se=this;this._rowCount=ae,de=de!==void 0?de:0,ue=ue!==void 0?ue:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,de):de,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,ue):ue,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return se._innerRefresh()}))},fe.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var de=Math.max(this._rowStart,0),ue=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(de,ue)}},fe}();oe.RenderDebouncer=ie},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(ue,ae){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,te){se.__proto__=te}||function(se,te){for(var ne in te)te.hasOwnProperty(ne)&&(se[ne]=te[ne])})(ue,ae)},function(ue,ae){function se(){this.constructor=ue}ie(ue,ae),ue.prototype=ae===null?Object.create(ae):(se.prototype=ae.prototype,new se)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.ScreenDprMonitor=void 0;var de=function(ue){function ae(){var se=ue!==null&&ue.apply(this,arguments)||this;return se._currentDevicePixelRatio=window.devicePixelRatio,se}return fe(ae,ue),ae.prototype.setListener=function(se){var te=this;this._listener&&this.clearListener(),this._listener=se,this._outerListener=function(){te._listener&&(te._listener(window.devicePixelRatio,te._currentDevicePixelRatio),te._updateDpr())},this._updateDpr()},ae.prototype.dispose=function(){ue.prototype.dispose.call(this),this.clearListener()},ae.prototype._updateDpr=function(){var se;this._outerListener&&((se=this._resolutionMediaMatchList)===null||se===void 0||se.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},ae.prototype.clearListener=function(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)},ae}(y(2).Disposable);oe.ScreenDprMonitor=de},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.clone=void 0,oe.clone=function ie(fe,de){if(de===void 0&&(de=5),typeof fe!="object")return fe;var ue=Array.isArray(fe)?[]:{};for(var ae in fe)ue[ae]=de<=1?fe[ae]:fe[ae]?ie(fe[ae],de-1):fe[ae];return ue}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.Terminal=void 0;var ie=y(4),fe=y(35),de=y(18),ue=y(0),ae=y(83),se=function(){function E(re){this._core=new fe.Terminal(re),this._addonManager=new ae.AddonManager}return E.prototype._checkProposedApi=function(){if(!this._core.optionsService.options.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")},Object.defineProperty(E.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new b(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"unicode",{get:function(){return this._checkProposedApi(),new ee(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"buffer",{get:function(){return this._checkProposedApi(),new ne(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),E.prototype.blur=function(){this._core.blur()},E.prototype.focus=function(){this._core.focus()},E.prototype.resize=function(re,ce){this._verifyIntegers(re,ce),this._core.resize(re,ce)},E.prototype.open=function(re){this._core.open(re)},E.prototype.attachCustomKeyEventHandler=function(re){this._core.attachCustomKeyEventHandler(re)},E.prototype.registerLinkMatcher=function(re,ce,le){return this._checkProposedApi(),this._core.registerLinkMatcher(re,ce,le)},E.prototype.deregisterLinkMatcher=function(re){this._checkProposedApi(),this._core.deregisterLinkMatcher(re)},E.prototype.registerLinkProvider=function(re){return this._checkProposedApi(),this._core.registerLinkProvider(re)},E.prototype.registerCharacterJoiner=function(re){return this._checkProposedApi(),this._core.registerCharacterJoiner(re)},E.prototype.deregisterCharacterJoiner=function(re){this._checkProposedApi(),this._core.deregisterCharacterJoiner(re)},E.prototype.registerMarker=function(re){return this._checkProposedApi(),this._verifyIntegers(re),this._core.addMarker(re)},E.prototype.addMarker=function(re){return this.registerMarker(re)},E.prototype.hasSelection=function(){return this._core.hasSelection()},E.prototype.select=function(re,ce,le){this._verifyIntegers(re,ce,le),this._core.select(re,ce,le)},E.prototype.getSelection=function(){return this._core.getSelection()},E.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},E.prototype.clearSelection=function(){this._core.clearSelection()},E.prototype.selectAll=function(){this._core.selectAll()},E.prototype.selectLines=function(re,ce){this._verifyIntegers(re,ce),this._core.selectLines(re,ce)},E.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},E.prototype.scrollLines=function(re){this._verifyIntegers(re),this._core.scrollLines(re)},E.prototype.scrollPages=function(re){this._verifyIntegers(re),this._core.scrollPages(re)},E.prototype.scrollToTop=function(){this._core.scrollToTop()},E.prototype.scrollToBottom=function(){this._core.scrollToBottom()},E.prototype.scrollToLine=function(re){this._verifyIntegers(re),this._core.scrollToLine(re)},E.prototype.clear=function(){this._core.clear()},E.prototype.write=function(re,ce){this._core.write(re,ce)},E.prototype.writeUtf8=function(re,ce){this._core.write(re,ce)},E.prototype.writeln=function(re,ce){this._core.write(re),this._core.write(`\r
|
|
|
`,ce)},E.prototype.paste=function(re){this._core.paste(re)},E.prototype.getOption=function(re){return this._core.optionsService.getOption(re)},E.prototype.setOption=function(re,ce){this._core.optionsService.setOption(re,ce)},E.prototype.refresh=function(re,ce){this._verifyIntegers(re,ce),this._core.refresh(re,ce)},E.prototype.reset=function(){this._core.reset()},E.prototype.loadAddon=function(re){return this._addonManager.loadAddon(this,re)},Object.defineProperty(E,"strings",{get:function(){return de},enumerable:!1,configurable:!0}),E.prototype._verifyIntegers=function(){for(var re=[],ce=0;ce<arguments.length;ce++)re[ce]=arguments[ce];for(var le=0,ve=re;le<ve.length;le++){var Se=ve[le];if(Se===1/0||isNaN(Se)||Se%1!=0)throw new Error("This API only accepts integers")}},E}();oe.Terminal=se;var te=function(){function E(re,ce){this._buffer=re,this.type=ce}return E.prototype.init=function(re){return this._buffer=re,this},Object.defineProperty(E.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),E.prototype.getLine=function(re){var ce=this._buffer.lines.get(re);if(ce)return new x(ce)},E.prototype.getNullCell=function(){return new ie.CellData},E}(),ne=function(){function E(re){var ce=this;this._buffers=re,this._onBufferChange=new ue.EventEmitter,this._normal=new te(this._buffers.normal,"normal"),this._alternate=new te(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return ce._onBufferChange.fire(ce.active)})}return Object.defineProperty(E.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"active",{get:function(){if(this._buffers.active===this._buffers.normal)return this.normal;if(this._buffers.active===this._buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),E}(),x=function(){function E(re){this._line=re}return Object.defineProperty(E.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),E.prototype.getCell=function(re,ce){if(!(re<0||re>=this._line.length))return ce?(this._line.loadCell(re,ce),ce):this._line.loadCell(re,new ie.CellData)},E.prototype.translateToString=function(re,ce,le){return this._line.translateToString(re,ce,le)},E}(),b=function(){function E(re){this._core=re}return E.prototype.registerCsiHandler=function(re,ce){return this._core.addCsiHandler(re,function(le){return ce(le.toArray())})},E.prototype.addCsiHandler=function(re,ce){return this.registerCsiHandler(re,ce)},E.prototype.registerDcsHandler=function(re,ce){return this._core.addDcsHandler(re,function(le,ve){return ce(le,ve.toArray())})},E.prototype.addDcsHandler=function(re,ce){return this.registerDcsHandler(re,ce)},E.prototype.registerEscHandler=function(re,ce){return this._core.addEscHandler(re,ce)},E.prototype.addEscHandler=function(re,ce){return this.registerEscHandler(re,ce)},E.prototype.registerOscHandler=function(re,ce){return this._core.addOscHandler(re,ce)},E.prototype.addOscHandler=function(re,ce){return this.registerOscHandler(re,ce)},E}(),ee=function(){function E(re){this._core=re}return E.prototype.register=function(re){this._core.unicodeService.register(re)},Object.defineProperty(E.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(re){this._core.unicodeService.activeVersion=re},enumerable:!1,configurable:!0}),E}()},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(He,ze){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Qe,$e){Qe.__proto__=$e}||function(Qe,$e){for(var ht in $e)$e.hasOwnProperty(ht)&&(Qe[ht]=$e[ht])})(He,ze)},function(He,ze){function Qe(){this.constructor=He}ie(He,ze),He.prototype=ze===null?Object.create(ze):(Qe.prototype=ze.prototype,new Qe)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.Terminal=void 0;var de=y(36),ue=y(37),ae=y(38),se=y(12),te=y(19),ne=y(40),x=y(50),b=y(51),ee=y(11),E=y(7),re=y(18),ce=y(54),le=y(55),ve=y(56),Se=y(57),ge=y(59),_e=y(0),Ce=y(16),he=y(27),be=y(60),Ee=y(5),Ae=y(61),De=y(62),je=y(63),Fe=y(64),Re=y(65),qe=typeof window!="undefined"?window.document:null,Je=function(He){function ze(Qe){Qe===void 0&&(Qe={});var $e=He.call(this,Qe)||this;return $e.browser=ee,$e._keyDownHandled=!1,$e._onCursorMove=new _e.EventEmitter,$e._onKey=new _e.EventEmitter,$e._onRender=new _e.EventEmitter,$e._onSelectionChange=new _e.EventEmitter,$e._onTitleChange=new _e.EventEmitter,$e._onFocus=new _e.EventEmitter,$e._onBlur=new _e.EventEmitter,$e._onA11yCharEmitter=new _e.EventEmitter,$e._onA11yTabEmitter=new _e.EventEmitter,$e._setup(),$e.linkifier=$e._instantiationService.createInstance(x.Linkifier),$e.linkifier2=$e.register($e._instantiationService.createInstance(je.Linkifier2)),$e.register($e._inputHandler.onRequestBell(function(){return $e.bell()})),$e.register($e._inputHandler.onRequestRefreshRows(function(ht,Ge){return $e.refresh(ht,Ge)})),$e.register($e._inputHandler.onRequestReset(function(){return $e.reset()})),$e.register($e._inputHandler.onRequestScroll(function(ht,Ge){return $e.scroll(ht,Ge||void 0)})),$e.register($e._inputHandler.onRequestWindowsOptionsReport(function(ht){return $e._reportWindowsOptions(ht)})),$e.register(_e.forwardEvent($e._inputHandler.onCursorMove,$e._onCursorMove)),$e.register(_e.forwardEvent($e._inputHandler.onTitleChange,$e._onTitleChange)),$e.register(_e.forwardEvent($e._inputHandler.onA11yChar,$e._onA11yCharEmitter)),$e.register(_e.forwardEvent($e._inputHandler.onA11yTab,$e._onA11yTabEmitter)),$e.register($e._bufferService.onResize(function(ht){return $e._afterResize(ht.cols,ht.rows)})),$e}return fe(ze,He),Object.defineProperty(ze.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ze.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),ze.prototype.dispose=function(){var Qe,$e,ht;this._isDisposed||(He.prototype.dispose.call(this),(Qe=this._renderService)===null||Qe===void 0||Qe.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(ht=($e=this.element)===null||$e===void 0?void 0:$e.parentNode)===null||ht===void 0||ht.removeChild(this.element))},ze.prototype._setup=function(){He.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(ze.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),ze.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},ze.prototype._updateOptions=function(Qe){var $e,ht,Ge,Ue;switch(He.prototype._updateOptions.call(this,Qe),Qe){case"fontFamily":case"fontSize":($e=this._renderService)===null||$e===void 0||$e.clear(),(ht=this._charSizeService)===null||ht===void 0||ht.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(Ge=this.viewport)===null||Ge===void 0||Ge.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new ve.AccessibilityManager(this,this._renderService)):((Ue=this._accessibilityManager)===null||Ue===void 0||Ue.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},ze.prototype._onTextAreaFocus=function(Qe){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(se.C0.ESC+"[I"),this.updateCursorStyle(Qe),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},ze.prototype.blur=function(){var Qe;return(Qe=this.textarea)===null||Qe===void 0?void 0:Qe.blur()},ze.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(se.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},ze.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var Qe=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),$e=this._bufferService.buffer.y*Qe,ht=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=ht+"px",this.textarea.style.top=$e+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=Qe+"px",this.textarea.style.lineHeight=Qe+"px",this.textarea.style.zIndex="-5"}},ze.prototype._initGlobal=function(){var Qe=this;this._bindKeys(),this.register(E.addDisposableDomListener(this.element,"copy",function(ht){Qe.hasSelection()&&ae.copyHandler(ht,Qe._selectionService)}));var $e=function(ht){return ae.handlePasteEvent(ht,Qe.textarea,Qe._coreService)};this.register(E.addDisposableDomListener(this.textarea,"paste",$e)),this.register(E.addDisposableDomListener(this.element,"paste",$e)),ee.isFirefox?this.register(E.addDisposableDomListener(this.element,"mousedown",function(ht){ht.button===2&&ae.rightClickHandler(ht,Qe.textarea,Qe.screenElement,Qe._selectionService,Qe.options.rightClickSelectsWord)})):this.register(E.addDisposableDomListener(this.element,"contextmenu",function(ht){ae.rightClickHandler(ht,Qe.textarea,Qe.screenElement,Qe._selectionService,Qe.options.rightClickSelectsWord)})),ee.isLinux&&this.register(E.addDisposableDomListener(this.element,"auxclick",function(ht){ht.button===1&&ae.moveTextAreaUnderMouseCursor(ht,Qe.textarea,Qe.screenElement)}))},ze.prototype._bindKeys=function(){var Qe=this;this.register(E.addDisposableDomListener(this.textarea,"keyup",function($e){return Qe._keyUp($e)},!0)),this.register(E.addDisposableDomListener(this.textarea,"keydown",function($e){return Qe._keyDown($e)},!0)),this.register(E.addDisposableDomListener(this.textarea,"keypress",function($e){return Qe._keyPress($e)},!0)),this.register(E.addDisposableDomListener(this.textarea,"compositionstart",function(){return Qe._compositionHelper.compositionstart()})),this.register(E.addDisposableDomListener(this.textarea,"compositionupdate",function($e){return Qe._compositionHelper.compositionupdate($e)})),this.register(E.addDisposableDomListener(this.textarea,"compositionend",function(){return Qe._compositionHelper.compositionend()})),this.register(this.onRender(function(){return Qe._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function($e){return Qe._queueLinkification($e.start,$e.end)}))},ze.prototype.open=function(Qe){var $e=this;if(!Qe)throw new Error("Terminal requires a parent element.");qe.body.contains(Qe)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Qe.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),Qe.appendChild(this.element);var ht=qe.createDocumentFragment();this._viewportElement=qe.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ht.appendChild(this._viewportElement),this._viewportScrollArea=qe.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=qe.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=qe.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ht.appendChild(this.screenElement),this.textarea=qe.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",re.promptLabel),this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this.register(E.addDisposableDomListener(this.textarea,"focus",function(Ke){return $e._onTextAreaFocus(Ke)})),this.register(E.addDisposableDomListener(this.textarea,"blur",function(){return $e._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ge=this._instantiationService.createInstance(Fe.CoreBrowserService,this.textarea);this._instantiationService.setService(Ee.ICoreBrowserService,Ge),this._charSizeService=this._instantiationService.createInstance(Ae.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(Ee.ICharSizeService,this._charSizeService),this._compositionView=qe.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(de.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ht),this._theme=this.options.theme||this._theme,this._colorManager=new he.ColorManager(qe,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(Ke){return $e._colorManager.onOptionsChange(Ke)})),this._colorManager.setTheme(this._theme);var Ue=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(be.RenderService,Ue,this.rows,this.screenElement)),this._instantiationService.setService(Ee.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(Ke){return $e._onRender.fire(Ke)})),this.onResize(function(Ke){return $e._renderService.resize(Ke.cols,Ke.rows)}),this._soundService=this._instantiationService.createInstance(ce.SoundService),this._instantiationService.setService(Ee.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(De.MouseService),this._instantiationService.setService(Ee.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(ue.Viewport,function(Ke,et){return $e.scrollLines(Ke,et)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return $e.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){$e._renderService.onCursorMove(),$e._syncTextArea()})),this.register(this.onResize(function(){return $e._renderService.onResize($e.cols,$e.rows)})),this.register(this.onBlur(function(){return $e._renderService.onBlur()})),this.register(this.onFocus(function(){return $e._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return $e.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(b.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(Ee.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(Ke){return $e.scrollLines(Ke.amount,Ke.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return $e._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(Ke){return $e._renderService.onSelectionChanged(Ke.start,Ke.end,Ke.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(Ke){$e.textarea.value=Ke,$e.textarea.focus(),$e.textarea.select()})),this.register(this.onScroll(function(){$e.viewport.syncScrollArea(),$e._selectionService.refresh()})),this.register(E.addDisposableDomListener(this._viewportElement,"scroll",function(){return $e._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(le.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return $e._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(E.addDisposableDomListener(this.element,"mousedown",function(Ke){return $e._selectionService.onMouseDown(Ke)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new ve.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},ze.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(ne.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(Se.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},ze.prototype._setTheme=function(Qe){var $e,ht,Ge;this._theme=Qe,($e=this._colorManager)===null||$e===void 0||$e.setTheme(Qe),(ht=this._renderService)===null||ht===void 0||ht.setColors(this._colorManager.colors),(Ge=this.viewport)===null||Ge===void 0||Ge.onThemeChange(this._colorManager.colors)},ze.prototype.bindMouse=function(){var Qe=this,$e=this,ht=this.element;function Ge(ut){var lt,kt,pt=$e._mouseService.getRawByteCoords(ut,$e.screenElement,$e.cols,$e.rows);if(!pt)return!1;switch(ut.overrideType||ut.type){case"mousemove":kt=32,ut.buttons===void 0?(lt=3,ut.button!==void 0&&(lt=ut.button<3?ut.button:3)):lt=1&ut.buttons?0:4&ut.buttons?1:2&ut.buttons?2:3;break;case"mouseup":kt=0,lt=ut.button<3?ut.button:3;break;case"mousedown":kt=1,lt=ut.button<3?ut.button:3;break;case"wheel":ut.deltaY!==0&&(kt=ut.deltaY<0?0:1),lt=4;break;default:return!1}return!(kt===void 0||lt===void 0||lt>4)&&$e._coreMouseService.triggerMouseEvent({col:pt.x-33,row:pt.y-33,button:lt,action:kt,ctrl:ut.ctrlKey,alt:ut.altKey,shift:ut.shiftKey})}var Ue={mouseup:null,wheel:null,mousedrag:null,mousemove:null},Ke=function(ut){return Ge(ut),ut.buttons||(Qe._document.removeEventListener("mouseup",Ue.mouseup),Ue.mousedrag&&Qe._document.removeEventListener("mousemove",Ue.mousedrag)),Qe.cancel(ut)},et=function(ut){return Ge(ut),ut.preventDefault(),Qe.cancel(ut)},rt=function(ut){ut.buttons&&Ge(ut)},Xe=function(ut){ut.buttons||Ge(ut)};this.register(this._coreMouseService.onProtocolChange(function(ut){ut?(Qe.optionsService.options.logLevel==="debug"&&Qe._logService.debug("Binding to mouse events:",Qe._coreMouseService.explainEvents(ut)),Qe.element.classList.add("enable-mouse-events"),Qe._selectionService.disable()):(Qe._logService.debug("Unbinding from mouse events."),Qe.element.classList.remove("enable-mouse-events"),Qe._selectionService.enable()),8&ut?Ue.mousemove||(ht.addEventListener("mousemove",Xe),Ue.mousemove=Xe):(ht.removeEventListener("mousemove",Ue.mousemove),Ue.mousemove=null),16&ut?Ue.wheel||(ht.addEventListener("wheel",et,{passive:!1}),Ue.wheel=et):(ht.removeEventListener("wheel",Ue.wheel),Ue.wheel=null),2&ut?Ue.mouseup||(Ue.mouseup=Ke):(Qe._document.removeEventListener("mouseup",Ue.mouseup),Ue.mouseup=null),4&ut?Ue.mousedrag||(Ue.mousedrag=rt):(Qe._document.removeEventListener("mousemove",Ue.mousedrag),Ue.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(E.addDisposableDomListener(ht,"mousedown",function(ut){if(ut.preventDefault(),Qe.focus(),Qe._coreMouseService.areMouseEventsActive&&!Qe._selectionService.shouldForceSelection(ut))return Ge(ut),Ue.mouseup&&Qe._document.addEventListener("mouseup",Ue.mouseup),Ue.mousedrag&&Qe._document.addEventListener("mousemove",Ue.mousedrag),Qe.cancel(ut)})),this.register(E.addDisposableDomListener(ht,"wheel",function(ut){if(!Ue.wheel){if(!Qe.buffer.hasScrollback){var lt=Qe.viewport.getLinesScrolled(ut);if(lt===0)return;for(var kt=se.C0.ESC+(Qe._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ut.deltaY<0?"A":"B"),pt="",Mt=0;Mt<Math.abs(lt);Mt++)pt+=kt;Qe._coreService.triggerDataEvent(pt,!0)}}},{passive:!0})),this.register(E.addDisposableDomListener(ht,"wheel",function(ut){if(!Ue.wheel)return Qe.viewport.onWheel(ut)?void 0:Qe.cancel(ut)},{passive:!1})),this.register(E.addDisposableDomListener(ht,"touchstart",function(ut){if(!Qe._coreMouseService.areMouseEventsActive)return Qe.viewport.onTouchStart(ut),Qe.cancel(ut)},{passive:!0})),this.register(E.addDisposableDomListener(ht,"touchmove",function(ut){if(!Qe._coreMouseService.areMouseEventsActive)return Qe.viewport.onTouchMove(ut)?void 0:Qe.cancel(ut)},{passive:!1}))},ze.prototype.refresh=function(Qe,$e){var ht;(ht=this._renderService)===null||ht===void 0||ht.refreshRows(Qe,$e)},ze.prototype._queueLinkification=function(Qe,$e){var ht;(ht=this.linkifier)===null||ht===void 0||ht.linkifyRows(Qe,$e)},ze.prototype.updateCursorStyle=function(Qe){this._selectionService&&this._selectionService.shouldColumnSelect(Qe)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},ze.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},ze.prototype.scrollLines=function(Qe,$e){He.prototype.scrollLines.call(this,Qe,$e),this.refresh(0,this.rows-1)},ze.prototype.paste=function(Qe){ae.paste(Qe,this.textarea,this._coreService)},ze.prototype.attachCustomKeyEventHandler=function(Qe){this._customKeyEventHandler=Qe},ze.prototype.registerLinkMatcher=function(Qe,$e,ht){var Ge=this.linkifier.registerLinkMatcher(Qe,$e,ht);return this.refresh(0,this.rows-1),Ge},ze.prototype.deregisterLinkMatcher=function(Qe){this.linkifier.deregisterLinkMatcher(Qe)&&this.refresh(0,this.rows-1)},ze.prototype.registerLinkProvider=function(Qe){return this.linkifier2.registerLinkProvider(Qe)},ze.prototype.registerCharacterJoiner=function(Qe){var $e=this._renderService.registerCharacterJoiner(Qe);return this.refresh(0,this.rows-1),$e},ze.prototype.deregisterCharacterJoiner=function(Qe){this._renderService.deregisterCharacterJoiner(Qe)&&this.refresh(0,this.rows-1)},Object.defineProperty(ze.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),ze.prototype.addMarker=function(Qe){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Qe)},ze.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},ze.prototype.select=function(Qe,$e,ht){this._selectionService.setSelection(Qe,$e,ht)},ze.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},ze.prototype.getSelectionPosition=function(){if(this._selectionService&&this._selectionService.hasSelection)return{startColumn:this._selectionService.selectionStart[0],startRow:this._selectionService.selectionStart[1],endColumn:this._selectionService.selectionEnd[0],endRow:this._selectionService.selectionEnd[1]}},ze.prototype.clearSelection=function(){var Qe;(Qe=this._selectionService)===null||Qe===void 0||Qe.clearSelection()},ze.prototype.selectAll=function(){var Qe;(Qe=this._selectionService)===null||Qe===void 0||Qe.selectAll()},ze.prototype.selectLines=function(Qe,$e){var ht;(ht=this._selectionService)===null||ht===void 0||ht.selectLines(Qe,$e)},ze.prototype._keyDown=function(Qe){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(Qe)===!1)return!1;if(!this._compositionHelper.keydown(Qe))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var $e=ge.evaluateKeyboardEvent(Qe,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Qe),$e.type===3||$e.type===2){var ht=this.rows-1;return this.scrollLines($e.type===2?-ht:ht),this.cancel(Qe,!0)}return $e.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Qe)||($e.cancel&&this.cancel(Qe,!0),!$e.key||($e.key!==se.C0.ETX&&$e.key!==se.C0.CR||(this.textarea.value=""),this._onKey.fire({key:$e.key,domEvent:Qe}),this._showCursor(),this._coreService.triggerDataEvent($e.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Qe,!0)))},ze.prototype._isThirdLevelShift=function(Qe,$e){var ht=Qe.isMac&&!this.options.macOptionIsMeta&&$e.altKey&&!$e.ctrlKey&&!$e.metaKey||Qe.isWindows&&$e.altKey&&$e.ctrlKey&&!$e.metaKey;return $e.type==="keypress"?ht:ht&&(!$e.keyCode||$e.keyCode>47)},ze.prototype._keyUp=function(Qe){this._customKeyEventHandler&&this._customKeyEventHandler(Qe)===!1||(function($e){return $e.keyCode===16||$e.keyCode===17||$e.keyCode===18}(Qe)||this.focus(),this.updateCursorStyle(Qe))},ze.prototype._keyPress=function(Qe){var $e;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(Qe)===!1)return!1;if(this.cancel(Qe),Qe.charCode)$e=Qe.charCode;else if(Qe.which===null||Qe.which===void 0)$e=Qe.keyCode;else{if(Qe.which===0||Qe.charCode===0)return!1;$e=Qe.which}return!(!$e||(Qe.altKey||Qe.ctrlKey||Qe.metaKey)&&!this._isThirdLevelShift(this.browser,Qe))&&($e=String.fromCharCode($e),this._onKey.fire({key:$e,domEvent:Qe}),this._showCursor(),this._coreService.triggerDataEvent($e,!0),!0)},ze.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},ze.prototype.resize=function(Qe,$e){Qe!==this.cols||$e!==this.rows?He.prototype.resize.call(this,Qe,$e):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},ze.prototype._afterResize=function(Qe,$e){var ht,Ge;(ht=this._charSizeService)===null||ht===void 0||ht.measure(),(Ge=this.viewport)===null||Ge===void 0||Ge.syncScrollArea(!0)},ze.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var Qe=1;Qe<this.rows;Qe++)this.buffer.lines.push(this.buffer.getBlankLine(Ce.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},ze.prototype.reset=function(){var Qe,$e;this.options.rows=this.rows,this.options.cols=this.cols;var ht=this._customKeyEventHandler;this._setup(),He.prototype.reset.call(this),(Qe=this._selectionService)===null||Qe===void 0||Qe.reset(),this._customKeyEventHandler=ht,this.refresh(0,this.rows-1),($e=this.viewport)===null||$e===void 0||$e.syncScrollArea()},ze.prototype._reportWindowsOptions=function(Qe){if(this._renderService)switch(Qe){case te.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var $e=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),ht=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(se.C0.ESC+"[4;"+ht+";"+$e+"t");break;case te.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ge=this._renderService.dimensions.scaledCellWidth.toFixed(0),Ue=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(se.C0.ESC+"[6;"+Ue+";"+Ge+"t")}},ze.prototype.cancel=function(Qe,$e){if(this.options.cancelEvents||$e)return Qe.preventDefault(),Qe.stopPropagation(),!1},ze.prototype._visualBell=function(){return!1},ze.prototype._soundBell=function(){return this.options.bellStyle==="sound"},ze}(Re.CoreTerminal);oe.Terminal=Je},function(Tt,oe,y){"use strict";var ie=this&&this.__decorate||function(se,te,ne,x){var b,ee=arguments.length,E=ee<3?te:x===null?x=Object.getOwnPropertyDescriptor(te,ne):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,te,ne,x);else for(var re=se.length-1;re>=0;re--)(b=se[re])&&(E=(ee<3?b(E):ee>3?b(te,ne,E):b(te,ne))||E);return ee>3&&E&&Object.defineProperty(te,ne,E),E},fe=this&&this.__param||function(se,te){return function(ne,x){te(ne,x,se)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.CompositionHelper=void 0;var de=y(5),ue=y(1),ae=function(){function se(te,ne,x,b,ee,E){this._textarea=te,this._compositionView=ne,this._bufferService=x,this._optionsService=b,this._charSizeService=ee,this._coreService=E,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(se.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),se.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},se.prototype.compositionupdate=function(te){var ne=this;this._compositionView.textContent=te.data,this.updateCompositionElements(),setTimeout(function(){ne._compositionPosition.end=ne._textarea.value.length},0)},se.prototype.compositionend=function(){this._finalizeComposition(!0)},se.prototype.keydown=function(te){if(this._isComposing||this._isSendingComposition){if(te.keyCode===229||te.keyCode===16||te.keyCode===17||te.keyCode===18)return!1;this._finalizeComposition(!1)}return te.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},se.prototype._finalizeComposition=function(te){var ne=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,te){var x={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(ne._isSendingComposition){ne._isSendingComposition=!1;var ee=void 0;ee=ne._isComposing?ne._textarea.value.substring(x.start,x.end):ne._textarea.value.substring(x.start),ne._coreService.triggerDataEvent(ee,!0)}},0)}else{this._isSendingComposition=!1;var b=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(b,!0)}},se.prototype._handleAnyTextareaChanges=function(){var te=this,ne=this._textarea.value;setTimeout(function(){if(!te._isComposing){var x=te._textarea.value.replace(ne,"");x.length>0&&te._coreService.triggerDataEvent(x,!0)}},0)},se.prototype.updateCompositionElements=function(te){var ne=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var x=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),b=this._bufferService.buffer.y*x,ee=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=ee+"px",this._compositionView.style.top=b+"px",this._compositionView.style.height=x+"px",this._compositionView.style.lineHeight=x+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var E=this._compositionView.getBoundingClientRect();this._textarea.style.left=ee+"px",this._textarea.style.top=b+"px",this._textarea.style.width=E.width+"px",this._textarea.style.height=E.height+"px",this._textarea.style.lineHeight=E.height+"px"}te||setTimeout(function(){return ne.updateCompositionElements(!0)},0)}},se=ie([fe(2,ue.IBufferService),fe(3,ue.IOptionsService),fe(4,de.ICharSizeService),fe(5,ue.ICoreService)],se)}();oe.CompositionHelper=ae},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(b,ee){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,re){E.__proto__=re}||function(E,re){for(var ce in re)re.hasOwnProperty(ce)&&(E[ce]=re[ce])})(b,ee)},function(b,ee){function E(){this.constructor=b}ie(b,ee),b.prototype=ee===null?Object.create(ee):(E.prototype=ee.prototype,new E)}),de=this&&this.__decorate||function(b,ee,E,re){var ce,le=arguments.length,ve=le<3?ee:re===null?re=Object.getOwnPropertyDescriptor(ee,E):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,ee,E,re);else for(var Se=b.length-1;Se>=0;Se--)(ce=b[Se])&&(ve=(le<3?ce(ve):le>3?ce(ee,E,ve):ce(ee,E))||ve);return le>3&&ve&&Object.defineProperty(ee,E,ve),ve},ue=this&&this.__param||function(b,ee){return function(E,re){ee(E,re,b)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.Viewport=void 0;var ae=y(2),se=y(7),te=y(5),ne=y(1),x=function(b){function ee(E,re,ce,le,ve,Se,ge){var _e=b.call(this)||this;return _e._scrollLines=E,_e._viewportElement=re,_e._scrollArea=ce,_e._bufferService=le,_e._optionsService=ve,_e._charSizeService=Se,_e._renderService=ge,_e.scrollBarWidth=0,_e._currentRowHeight=0,_e._lastRecordedBufferLength=0,_e._lastRecordedViewportHeight=0,_e._lastRecordedBufferHeight=0,_e._lastTouchY=0,_e._lastScrollTop=0,_e._wheelPartialScroll=0,_e._refreshAnimationFrame=null,_e._ignoreNextScrollEvent=!1,_e.scrollBarWidth=_e._viewportElement.offsetWidth-_e._scrollArea.offsetWidth||15,_e.register(se.addDisposableDomListener(_e._viewportElement,"scroll",_e._onScroll.bind(_e))),setTimeout(function(){return _e.syncScrollArea()},0),_e}return fe(ee,b),ee.prototype.onThemeChange=function(E){this._viewportElement.style.backgroundColor=E.background.css},ee.prototype._refresh=function(E){var re=this;if(E)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return re._innerRefresh()}))},ee.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var E=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==E&&(this._lastRecordedBufferHeight=E,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var re=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==re&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=re),this._refreshAnimationFrame=null},ee.prototype.syncScrollArea=function(E){if(E===void 0&&(E=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(E);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var re=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===re&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(E)}else this._refresh(E)},ee.prototype._onScroll=function(E){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var re=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(re,!0)}},ee.prototype._bubbleScroll=function(E,re){var ce=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(re<0&&this._viewportElement.scrollTop!==0||re>0&&ce<this._lastRecordedBufferHeight)||(E.cancelable&&E.preventDefault(),!1)},ee.prototype.onWheel=function(E){var re=this._getPixelsScrolled(E);return re!==0&&(this._viewportElement.scrollTop+=re,this._bubbleScroll(E,re))},ee.prototype._getPixelsScrolled=function(E){if(E.deltaY===0)return 0;var re=this._applyScrollModifier(E.deltaY,E);return E.deltaMode===WheelEvent.DOM_DELTA_LINE?re*=this._currentRowHeight:E.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(re*=this._currentRowHeight*this._bufferService.rows),re},ee.prototype.getLinesScrolled=function(E){if(E.deltaY===0)return 0;var re=this._applyScrollModifier(E.deltaY,E);return E.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(re/=this._currentRowHeight+0,this._wheelPartialScroll+=re,re=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):E.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(re*=this._bufferService.rows),re},ee.prototype._applyScrollModifier=function(E,re){var ce=this._optionsService.options.fastScrollModifier;return ce==="alt"&&re.altKey||ce==="ctrl"&&re.ctrlKey||ce==="shift"&&re.shiftKey?E*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:E*this._optionsService.options.scrollSensitivity},ee.prototype.onTouchStart=function(E){this._lastTouchY=E.touches[0].pageY},ee.prototype.onTouchMove=function(E){var re=this._lastTouchY-E.touches[0].pageY;return this._lastTouchY=E.touches[0].pageY,re!==0&&(this._viewportElement.scrollTop+=re,this._bubbleScroll(E,re))},ee=de([ue(3,ne.IBufferService),ue(4,ne.IOptionsService),ue(5,te.ICharSizeService),ue(6,te.IRenderService)],ee)}(ae.Disposable);oe.Viewport=x},function(Tt,oe,y){"use strict";function ie(ae){return ae.replace(/\r?\n/g,"\r")}function fe(ae,se){return se?"\x1B[200~"+ae+"\x1B[201~":ae}function de(ae,se,te){ae=fe(ae=ie(ae),te.decPrivateModes.bracketedPasteMode),te.triggerDataEvent(ae,!0),se.value=""}function ue(ae,se,te){var ne=te.getBoundingClientRect(),x=ae.clientX-ne.left-10,b=ae.clientY-ne.top-10;se.style.width="20px",se.style.height="20px",se.style.left=x+"px",se.style.top=b+"px",se.style.zIndex="1000",se.focus()}Object.defineProperty(oe,"__esModule",{value:!0}),oe.rightClickHandler=oe.moveTextAreaUnderMouseCursor=oe.paste=oe.handlePasteEvent=oe.copyHandler=oe.bracketTextForPaste=oe.prepareTextForTerminal=void 0,oe.prepareTextForTerminal=ie,oe.bracketTextForPaste=fe,oe.copyHandler=function(ae,se){ae.clipboardData&&ae.clipboardData.setData("text/plain",se.selectionText),ae.preventDefault()},oe.handlePasteEvent=function(ae,se,te){ae.stopPropagation(),ae.clipboardData&&de(ae.clipboardData.getData("text/plain"),se,te)},oe.paste=de,oe.moveTextAreaUnderMouseCursor=ue,oe.rightClickHandler=function(ae,se,te,ne,x){ue(ae,se,te),x&&!ne.isClickInSelection(ae)&&ne.selectWordAtCursor(ae),se.value=ne.selectionText,se.select()}},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(b,ee){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,re){E.__proto__=re}||function(E,re){for(var ce in re)re.hasOwnProperty(ce)&&(E[ce]=re[ce])})(b,ee)},function(b,ee){function E(){this.constructor=b}ie(b,ee),b.prototype=ee===null?Object.create(ee):(E.prototype=ee.prototype,new E)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.EscapeSequenceParser=oe.VT500_TRANSITION_TABLE=oe.TransitionTable=void 0;var de=y(2),ue=y(15),ae=y(21),se=y(22),te=y(24),ne=function(){function b(ee){this.table=new Uint8Array(ee)}return b.prototype.setDefault=function(ee,E){ue.fill(this.table,ee<<4|E)},b.prototype.add=function(ee,E,re,ce){this.table[E<<8|ee]=re<<4|ce},b.prototype.addMany=function(ee,E,re,ce){for(var le=0;le<ee.length;le++)this.table[E<<8|ee[le]]=re<<4|ce},b}();oe.TransitionTable=ne,oe.VT500_TRANSITION_TABLE=function(){var b=new ne(4095),ee=Array.apply(null,Array(256)).map(function(Se,ge){return ge}),E=function(Se,ge){return ee.slice(Se,ge)},re=E(32,127),ce=E(0,24);ce.push(25),ce.push.apply(ce,E(28,32));var le,ve=E(0,14);for(le in b.setDefault(1,0),b.addMany(re,0,2,0),ve)b.addMany([24,26,153,154],le,3,0),b.addMany(E(128,144),le,3,0),b.addMany(E(144,152),le,3,0),b.add(156,le,0,0),b.add(27,le,11,1),b.add(157,le,4,8),b.addMany([152,158,159],le,0,7),b.add(155,le,11,3),b.add(144,le,11,9);return b.addMany(ce,0,3,0),b.addMany(ce,1,3,1),b.add(127,1,0,1),b.addMany(ce,8,0,8),b.addMany(ce,3,3,3),b.add(127,3,0,3),b.addMany(ce,4,3,4),b.add(127,4,0,4),b.addMany(ce,6,3,6),b.addMany(ce,5,3,5),b.add(127,5,0,5),b.addMany(ce,2,3,2),b.add(127,2,0,2),b.add(93,1,4,8),b.addMany(re,8,5,8),b.add(127,8,5,8),b.addMany([156,27,24,26,7],8,6,0),b.addMany(E(28,32),8,0,8),b.addMany([88,94,95],1,0,7),b.addMany(re,7,0,7),b.addMany(ce,7,0,7),b.add(156,7,0,0),b.add(127,7,0,7),b.add(91,1,11,3),b.addMany(E(64,127),3,7,0),b.addMany(E(48,60),3,8,4),b.addMany([60,61,62,63],3,9,4),b.addMany(E(48,60),4,8,4),b.addMany(E(64,127),4,7,0),b.addMany([60,61,62,63],4,0,6),b.addMany(E(32,64),6,0,6),b.add(127,6,0,6),b.addMany(E(64,127),6,0,0),b.addMany(E(32,48),3,9,5),b.addMany(E(32,48),5,9,5),b.addMany(E(48,64),5,0,6),b.addMany(E(64,127),5,7,0),b.addMany(E(32,48),4,9,5),b.addMany(E(32,48),1,9,2),b.addMany(E(32,48),2,9,2),b.addMany(E(48,127),2,10,0),b.addMany(E(48,80),1,10,0),b.addMany(E(81,88),1,10,0),b.addMany([89,90,92],1,10,0),b.addMany(E(96,127),1,10,0),b.add(80,1,11,9),b.addMany(ce,9,0,9),b.add(127,9,0,9),b.addMany(E(28,32),9,0,9),b.addMany(E(32,48),9,9,12),b.addMany(E(48,60),9,8,10),b.addMany([60,61,62,63],9,9,10),b.addMany(ce,11,0,11),b.addMany(E(32,128),11,0,11),b.addMany(E(28,32),11,0,11),b.addMany(ce,10,0,10),b.add(127,10,0,10),b.addMany(E(28,32),10,0,10),b.addMany(E(48,60),10,8,10),b.addMany([60,61,62,63],10,0,11),b.addMany(E(32,48),10,9,12),b.addMany(ce,12,0,12),b.add(127,12,0,12),b.addMany(E(28,32),12,0,12),b.addMany(E(32,48),12,9,12),b.addMany(E(48,64),12,0,11),b.addMany(E(64,127),12,12,13),b.addMany(E(64,127),10,12,13),b.addMany(E(64,127),9,12,13),b.addMany(ce,13,13,13),b.addMany(re,13,13,13),b.add(127,13,0,13),b.addMany([27,156,24,26],13,14,0),b.add(160,0,2,0),b.add(160,8,5,8),b.add(160,6,0,6),b.add(160,11,0,11),b.add(160,13,13,13),b}();var x=function(b){function ee(E){E===void 0&&(E=oe.VT500_TRANSITION_TABLE);var re=b.call(this)||this;return re._transitions=E,re.initialState=0,re.currentState=re.initialState,re._params=new ae.Params,re._params.addParam(0),re._collect=0,re.precedingCodepoint=0,re._printHandlerFb=function(ce,le,ve){},re._executeHandlerFb=function(ce){},re._csiHandlerFb=function(ce,le){},re._escHandlerFb=function(ce){},re._errorHandlerFb=function(ce){return ce},re._printHandler=re._printHandlerFb,re._executeHandlers=Object.create(null),re._csiHandlers=Object.create(null),re._escHandlers=Object.create(null),re._oscParser=new se.OscParser,re._dcsParser=new te.DcsParser,re._errorHandler=re._errorHandlerFb,re.setEscHandler({final:"\\"},function(){}),re}return fe(ee,b),ee.prototype._identifier=function(E,re){re===void 0&&(re=[64,126]);var ce=0;if(E.prefix){if(E.prefix.length>1)throw new Error("only one byte as prefix supported");if((ce=E.prefix.charCodeAt(0))&&60>ce||ce>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(E.intermediates){if(E.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var le=0;le<E.intermediates.length;++le){var ve=E.intermediates.charCodeAt(le);if(32>ve||ve>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");ce<<=8,ce|=ve}}if(E.final.length!==1)throw new Error("final must be a single byte");var Se=E.final.charCodeAt(0);if(re[0]>Se||Se>re[1])throw new Error("final must be in range "+re[0]+" .. "+re[1]);return ce<<=8,ce|=Se},ee.prototype.identToString=function(E){for(var re=[];E;)re.push(String.fromCharCode(255&E)),E>>=8;return re.reverse().join("")},ee.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},ee.prototype.setPrintHandler=function(E){this._printHandler=E},ee.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},ee.prototype.addEscHandler=function(E,re){var ce=this._identifier(E,[48,126]);this._escHandlers[ce]===void 0&&(this._escHandlers[ce]=[]);var le=this._escHandlers[ce];return le.push(re),{dispose:function(){var ve=le.indexOf(re);ve!==-1&&le.splice(ve,1)}}},ee.prototype.setEscHandler=function(E,re){this._escHandlers[this._identifier(E,[48,126])]=[re]},ee.prototype.clearEscHandler=function(E){this._escHandlers[this._identifier(E,[48,126])]&&delete this._escHandlers[this._identifier(E,[48,126])]},ee.prototype.setEscHandlerFallback=function(E){this._escHandlerFb=E},ee.prototype.setExecuteHandler=function(E,re){this._executeHandlers[E.charCodeAt(0)]=re},ee.prototype.clearExecuteHandler=function(E){this._executeHandlers[E.charCodeAt(0)]&&delete this._executeHandlers[E.charCodeAt(0)]},ee.prototype.setExecuteHandlerFallback=function(E){this._executeHandlerFb=E},ee.prototype.addCsiHandler=function(E,re){var ce=this._identifier(E);this._csiHandlers[ce]===void 0&&(this._csiHandlers[ce]=[]);var le=this._csiHandlers[ce];return le.push(re),{dispose:function(){var ve=le.indexOf(re);ve!==-1&&le.splice(ve,1)}}},ee.prototype.setCsiHandler=function(E,re){this._csiHandlers[this._identifier(E)]=[re]},ee.prototype.clearCsiHandler=function(E){this._csiHandlers[this._identifier(E)]&&delete this._csiHandlers[this._identifier(E)]},ee.prototype.setCsiHandlerFallback=function(E){this._csiHandlerFb=E},ee.prototype.addDcsHandler=function(E,re){return this._dcsParser.addHandler(this._identifier(E),re)},ee.prototype.setDcsHandler=function(E,re){this._dcsParser.setHandler(this._identifier(E),re)},ee.prototype.clearDcsHandler=function(E){this._dcsParser.clearHandler(this._identifier(E))},ee.prototype.setDcsHandlerFallback=function(E){this._dcsParser.setHandlerFallback(E)},ee.prototype.addOscHandler=function(E,re){return this._oscParser.addHandler(E,re)},ee.prototype.setOscHandler=function(E,re){this._oscParser.setHandler(E,re)},ee.prototype.clearOscHandler=function(E){this._oscParser.clearHandler(E)},ee.prototype.setOscHandlerFallback=function(E){this._oscParser.setHandlerFallback(E)},ee.prototype.setErrorHandler=function(E){this._errorHandler=E},ee.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},ee.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},ee.prototype.parse=function(E,re){for(var ce=0,le=0,ve=this.currentState,Se=this._oscParser,ge=this._dcsParser,_e=this._collect,Ce=this._params,he=this._transitions.table,be=0;be<re;++be){switch((le=he[ve<<8|((ce=E[be])<160?ce:160)])>>4){case 2:for(var Ee=be+1;;++Ee){if(Ee>=re||(ce=E[Ee])<32||ce>126&&ce<160){this._printHandler(E,be,Ee),be=Ee-1;break}if(++Ee>=re||(ce=E[Ee])<32||ce>126&&ce<160){this._printHandler(E,be,Ee),be=Ee-1;break}if(++Ee>=re||(ce=E[Ee])<32||ce>126&&ce<160){this._printHandler(E,be,Ee),be=Ee-1;break}if(++Ee>=re||(ce=E[Ee])<32||ce>126&&ce<160){this._printHandler(E,be,Ee),be=Ee-1;break}}break;case 3:this._executeHandlers[ce]?this._executeHandlers[ce]():this._executeHandlerFb(ce),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:be,code:ce,currentState:ve,collect:_e,params:Ce,abort:!1}).abort)return;break;case 7:for(var Ae=this._csiHandlers[_e<<8|ce],De=Ae?Ae.length-1:-1;De>=0&&Ae[De](Ce)===!1;De--);De<0&&this._csiHandlerFb(_e<<8|ce,Ce),this.precedingCodepoint=0;break;case 8:do switch(ce){case 59:Ce.addParam(0);break;case 58:Ce.addSubParam(-1);break;default:Ce.addDigit(ce-48)}while(++be<re&&(ce=E[be])>47&&ce<60);be--;break;case 9:_e<<=8,_e|=ce;break;case 10:for(var je=this._escHandlers[_e<<8|ce],Fe=je?je.length-1:-1;Fe>=0&&je[Fe]()===!1;Fe--);Fe<0&&this._escHandlerFb(_e<<8|ce),this.precedingCodepoint=0;break;case 11:Ce.reset(),Ce.addParam(0),_e=0;break;case 12:ge.hook(_e<<8|ce,Ce);break;case 13:for(var Re=be+1;;++Re)if(Re>=re||(ce=E[Re])===24||ce===26||ce===27||ce>127&&ce<160){ge.put(E,be,Re),be=Re-1;break}break;case 14:ge.unhook(ce!==24&&ce!==26),ce===27&&(le|=1),Ce.reset(),Ce.addParam(0),_e=0,this.precedingCodepoint=0;break;case 4:Se.start();break;case 5:for(var qe=be+1;;qe++)if(qe>=re||(ce=E[qe])<32||ce>127&&ce<=159){Se.put(E,be,qe),be=qe-1;break}break;case 6:Se.end(ce!==24&&ce!==26),ce===27&&(le|=1),Ce.reset(),Ce.addParam(0),_e=0,this.precedingCodepoint=0}ve=15&le}this._collect=_e,this.currentState=ve},ee}(de.Disposable);oe.EscapeSequenceParser=x},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(Se,ge){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ce){_e.__proto__=Ce}||function(_e,Ce){for(var he in Ce)Ce.hasOwnProperty(he)&&(_e[he]=Ce[he])})(Se,ge)},function(Se,ge){function _e(){this.constructor=Se}ie(Se,ge),Se.prototype=ge===null?Object.create(ge):(_e.prototype=ge.prototype,new _e)}),de=this&&this.__decorate||function(Se,ge,_e,Ce){var he,be=arguments.length,Ee=be<3?ge:Ce===null?Ce=Object.getOwnPropertyDescriptor(ge,_e):Ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ee=Reflect.decorate(Se,ge,_e,Ce);else for(var Ae=Se.length-1;Ae>=0;Ae--)(he=Se[Ae])&&(Ee=(be<3?he(Ee):be>3?he(ge,_e,Ee):he(ge,_e))||Ee);return be>3&&Ee&&Object.defineProperty(ge,_e,Ee),Ee},ue=this&&this.__param||function(Se,ge){return function(_e,Ce){ge(_e,Ce,Se)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.Renderer=void 0;var ae=y(41),se=y(47),te=y(48),ne=y(49),x=y(29),b=y(2),ee=y(5),E=y(1),re=y(25),ce=y(0),le=1,ve=function(Se){function ge(_e,Ce,he,be,Ee,Ae,De,je,Fe){var Re=Se.call(this)||this;Re._colors=_e,Re._screenElement=Ce,Re._bufferService=Ee,Re._charSizeService=Ae,Re._optionsService=De,Re._id=le++,Re._onRequestRedraw=new ce.EventEmitter;var qe=Re._optionsService.options.allowTransparency;return Re._characterJoinerRegistry=new x.CharacterJoinerRegistry(Re._bufferService),Re._renderLayers=[new ae.TextRenderLayer(Re._screenElement,0,Re._colors,Re._characterJoinerRegistry,qe,Re._id,Re._bufferService,De),new se.SelectionRenderLayer(Re._screenElement,1,Re._colors,Re._id,Re._bufferService,De),new ne.LinkRenderLayer(Re._screenElement,2,Re._colors,Re._id,he,be,Re._bufferService,De),new te.CursorRenderLayer(Re._screenElement,3,Re._colors,Re._id,Re._onRequestRedraw,Re._bufferService,De,je,Fe)],Re.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},Re._devicePixelRatio=window.devicePixelRatio,Re._updateDimensions(),Re.onOptionsChanged(),Re}return fe(ge,Se),Object.defineProperty(ge.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),ge.prototype.dispose=function(){for(var _e=0,Ce=this._renderLayers;_e<Ce.length;_e++)Ce[_e].dispose();Se.prototype.dispose.call(this),re.removeTerminalFromCache(this._id)},ge.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},ge.prototype.setColors=function(_e){this._colors=_e;for(var Ce=0,he=this._renderLayers;Ce<he.length;Ce++){var be=he[Ce];be.setColors(this._colors),be.reset()}},ge.prototype.onResize=function(_e,Ce){this._updateDimensions();for(var he=0,be=this._renderLayers;he<be.length;he++)be[he].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},ge.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},ge.prototype.onBlur=function(){this._runOperation(function(_e){return _e.onBlur()})},ge.prototype.onFocus=function(){this._runOperation(function(_e){return _e.onFocus()})},ge.prototype.onSelectionChanged=function(_e,Ce,he){he===void 0&&(he=!1),this._runOperation(function(be){return be.onSelectionChanged(_e,Ce,he)})},ge.prototype.onCursorMove=function(){this._runOperation(function(_e){return _e.onCursorMove()})},ge.prototype.onOptionsChanged=function(){this._runOperation(function(_e){return _e.onOptionsChanged()})},ge.prototype.clear=function(){this._runOperation(function(_e){return _e.reset()})},ge.prototype._runOperation=function(_e){for(var Ce=0,he=this._renderLayers;Ce<he.length;Ce++)_e(he[Ce])},ge.prototype.renderRows=function(_e,Ce){for(var he=0,be=this._renderLayers;he<be.length;he++)be[he].onGridChanged(_e,Ce)},ge.prototype._updateDimensions=function(){this._charSizeService.hasValidSize&&(this.dimensions.scaledCharWidth=Math.floor(this._charSizeService.width*window.devicePixelRatio),this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharTop=this._optionsService.options.lineHeight===1?0:Math.round((this.dimensions.scaledCellHeight-this.dimensions.scaledCharHeight)/2),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCharLeft=Math.floor(this._optionsService.options.letterSpacing/2),this.dimensions.scaledCanvasHeight=this._bufferService.rows*this.dimensions.scaledCellHeight,this.dimensions.scaledCanvasWidth=this._bufferService.cols*this.dimensions.scaledCellWidth,this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows,this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols)},ge.prototype.registerCharacterJoiner=function(_e){return this._characterJoinerRegistry.registerCharacterJoiner(_e)},ge.prototype.deregisterCharacterJoiner=function(_e){return this._characterJoinerRegistry.deregisterCharacterJoiner(_e)},ge=de([ue(4,E.IBufferService),ue(5,ee.ICharSizeService),ue(6,E.IOptionsService),ue(7,E.ICoreService),ue(8,ee.ICoreBrowserService)],ge)}(b.Disposable);oe.Renderer=ve},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(b,ee){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,re){E.__proto__=re}||function(E,re){for(var ce in re)re.hasOwnProperty(ce)&&(E[ce]=re[ce])})(b,ee)},function(b,ee){function E(){this.constructor=b}ie(b,ee),b.prototype=ee===null?Object.create(ee):(E.prototype=ee.prototype,new E)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.TextRenderLayer=void 0;var de=y(42),ue=y(13),ae=y(6),se=y(3),te=y(29),ne=y(4),x=function(b){function ee(E,re,ce,le,ve,Se,ge,_e){var Ce=b.call(this,E,"text",re,ve,ce,Se,ge,_e)||this;return Ce._characterWidth=0,Ce._characterFont="",Ce._characterOverlapCache={},Ce._workCell=new ne.CellData,Ce._state=new de.GridCache,Ce._characterJoinerRegistry=le,Ce}return fe(ee,b),ee.prototype.resize=function(E){b.prototype.resize.call(this,E);var re=this._getFont(!1,!1);this._characterWidth===E.scaledCharWidth&&this._characterFont===re||(this._characterWidth=E.scaledCharWidth,this._characterFont=re,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},ee.prototype.reset=function(){this._state.clear(),this._clearAll()},ee.prototype._forEachCell=function(E,re,ce,le){for(var ve=E;ve<=re;ve++)for(var Se=ve+this._bufferService.buffer.ydisp,ge=this._bufferService.buffer.lines.get(Se),_e=ce?ce.getJoinedCharacters(Se):[],Ce=0;Ce<this._bufferService.cols;Ce++){ge.loadCell(Ce,this._workCell);var he=this._workCell,be=!1,Ee=Ce;if(he.getWidth()!==0){if(_e.length>0&&Ce===_e[0][0]){be=!0;var Ae=_e.shift();he=new te.JoinedCellData(this._workCell,ge.translateToString(!0,Ae[0],Ae[1]),Ae[1]-Ae[0]),Ee=Ae[1]-1}!be&&this._isOverlapping(he)&&Ee<ge.length-1&&ge.getCodePoint(Ee+1)===se.NULL_CELL_CODE&&(he.content&=-12582913,he.content|=2<<22),le(he,Ce,ve),Ce=Ee}}},ee.prototype._drawBackground=function(E,re){var ce=this,le=this._ctx,ve=this._bufferService.cols,Se=0,ge=0,_e=null;le.save(),this._forEachCell(E,re,null,function(Ce,he,be){var Ee=null;Ce.isInverse()?Ee=Ce.isFgDefault()?ce._colors.foreground.css:Ce.isFgRGB()?"rgb("+ae.AttributeData.toColorRGB(Ce.getFgColor()).join(",")+")":ce._colors.ansi[Ce.getFgColor()].css:Ce.isBgRGB()?Ee="rgb("+ae.AttributeData.toColorRGB(Ce.getBgColor()).join(",")+")":Ce.isBgPalette()&&(Ee=ce._colors.ansi[Ce.getBgColor()].css),_e===null&&(Se=he,ge=be),be!==ge?(le.fillStyle=_e||"",ce._fillCells(Se,ge,ve-Se,1),Se=he,ge=be):_e!==Ee&&(le.fillStyle=_e||"",ce._fillCells(Se,ge,he-Se,1),Se=he,ge=be),_e=Ee}),_e!==null&&(le.fillStyle=_e,this._fillCells(Se,ge,ve-Se,1)),le.restore()},ee.prototype._drawForeground=function(E,re){var ce=this;this._forEachCell(E,re,this._characterJoinerRegistry,function(le,ve,Se){if(!le.isInvisible()&&(ce._drawChars(le,ve,Se),le.isUnderline())){if(ce._ctx.save(),le.isInverse())if(le.isBgDefault())ce._ctx.fillStyle=ce._colors.background.css;else if(le.isBgRGB())ce._ctx.fillStyle="rgb("+ae.AttributeData.toColorRGB(le.getBgColor()).join(",")+")";else{var ge=le.getBgColor();ce._optionsService.options.drawBoldTextInBrightColors&&le.isBold()&&ge<8&&(ge+=8),ce._ctx.fillStyle=ce._colors.ansi[ge].css}else if(le.isFgDefault())ce._ctx.fillStyle=ce._colors.foreground.css;else if(le.isFgRGB())ce._ctx.fillStyle="rgb("+ae.AttributeData.toColorRGB(le.getFgColor()).join(",")+")";else{var _e=le.getFgColor();ce._optionsService.options.drawBoldTextInBrightColors&&le.isBold()&&_e<8&&(_e+=8),ce._ctx.fillStyle=ce._colors.ansi[_e].css}ce._fillBottomLineAtCells(ve,Se,le.getWidth()),ce._ctx.restore()}})},ee.prototype.onGridChanged=function(E,re){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,E,this._bufferService.cols,re-E+1),this._drawBackground(E,re),this._drawForeground(E,re))},ee.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},ee.prototype._isOverlapping=function(E){if(E.getWidth()!==1||E.getCode()<256)return!1;var re=E.getChars();if(this._characterOverlapCache.hasOwnProperty(re))return this._characterOverlapCache[re];this._ctx.save(),this._ctx.font=this._characterFont;var ce=Math.floor(this._ctx.measureText(re).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[re]=ce,ce},ee}(ue.BaseRenderLayer);oe.TextRenderLayer=x},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.GridCache=void 0;var ie=function(){function fe(){this.cache=[]}return fe.prototype.resize=function(de,ue){for(var ae=0;ae<de;ae++){this.cache.length<=ae&&this.cache.push([]);for(var se=this.cache[ae].length;se<ue;se++)this.cache[ae].push(void 0);this.cache[ae].length=ue}this.cache.length=de},fe.prototype.clear=function(){for(var de=0;de<this.cache.length;de++)for(var ue=0;ue<this.cache[de].length;ue++)this.cache[de][ue]=void 0},fe}();oe.GridCache=ie},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(ce,le){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Se){ve.__proto__=Se}||function(ve,Se){for(var ge in Se)Se.hasOwnProperty(ge)&&(ve[ge]=Se[ge])})(ce,le)},function(ce,le){function ve(){this.constructor=ce}ie(ce,le),ce.prototype=le===null?Object.create(le):(ve.prototype=le.prototype,new ve)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.NoneCharAtlas=oe.DynamicCharAtlas=oe.getGlyphCacheKey=void 0;var de=y(9),ue=y(44),ae=y(27),se=y(46),te=y(11),ne=y(28),x=y(10),b={css:"rgba(0, 0, 0, 0)",rgba:0};function ee(ce){return ce.code<<21|ce.bg<<12|ce.fg<<3|(ce.bold?0:4)+(ce.dim?0:2)+(ce.italic?0:1)}oe.getGlyphCacheKey=ee;var E=function(ce){function le(ve,Se){var ge=ce.call(this)||this;ge._config=Se,ge._drawToCacheCount=0,ge._glyphsWaitingOnBitmap=[],ge._bitmapCommitTimeout=null,ge._bitmap=null,ge._cacheCanvas=ve.createElement("canvas"),ge._cacheCanvas.width=1024,ge._cacheCanvas.height=1024,ge._cacheCtx=ne.throwIfFalsy(ge._cacheCanvas.getContext("2d",{alpha:!0}));var _e=ve.createElement("canvas");_e.width=ge._config.scaledCharWidth,_e.height=ge._config.scaledCharHeight,ge._tmpCtx=ne.throwIfFalsy(_e.getContext("2d",{alpha:ge._config.allowTransparency})),ge._width=Math.floor(1024/ge._config.scaledCharWidth),ge._height=Math.floor(1024/ge._config.scaledCharHeight);var Ce=ge._width*ge._height;return ge._cacheMap=new se.LRUMap(Ce),ge._cacheMap.prealloc(Ce),ge}return fe(le,ce),le.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},le.prototype.beginFrame=function(){this._drawToCacheCount=0},le.prototype.draw=function(ve,Se,ge,_e){if(Se.code===32)return!0;if(!this._canCache(Se))return!1;var Ce=ee(Se),he=this._cacheMap.get(Ce);if(he!=null)return this._drawFromCache(ve,he,ge,_e),!0;if(this._drawToCacheCount<100){var be=void 0;be=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var Ee=this._drawToCache(Se,be);return this._cacheMap.set(Ce,Ee),this._drawFromCache(ve,Ee,ge,_e),!0}return!1},le.prototype._canCache=function(ve){return ve.code<256},le.prototype._toCoordinateX=function(ve){return ve%this._width*this._config.scaledCharWidth},le.prototype._toCoordinateY=function(ve){return Math.floor(ve/this._width)*this._config.scaledCharHeight},le.prototype._drawFromCache=function(ve,Se,ge,_e){if(!Se.isEmpty){var Ce=this._toCoordinateX(Se.index),he=this._toCoordinateY(Se.index);ve.drawImage(Se.inBitmap?this._bitmap:this._cacheCanvas,Ce,he,this._config.scaledCharWidth,this._config.scaledCharHeight,ge,_e,this._config.scaledCharWidth,this._config.scaledCharHeight)}},le.prototype._getColorFromAnsiIndex=function(ve){return ve<this._config.colors.ansi.length?this._config.colors.ansi[ve]:ae.DEFAULT_ANSI_COLORS[ve]},le.prototype._getBackgroundColor=function(ve){return this._config.allowTransparency?b:ve.bg===de.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:ve.bg<256?this._getColorFromAnsiIndex(ve.bg):this._config.colors.background},le.prototype._getForegroundColor=function(ve){return ve.fg===de.INVERTED_DEFAULT_COLOR?x.color.opaque(this._config.colors.background):ve.fg<256?this._getColorFromAnsiIndex(ve.fg):this._config.colors.foreground},le.prototype._drawToCache=function(ve,Se){this._drawToCacheCount++,this._tmpCtx.save();var ge=this._getBackgroundColor(ve);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=ge.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var _e=ve.bold?this._config.fontWeightBold:this._config.fontWeight,Ce=ve.italic?"italic":"";this._tmpCtx.font=Ce+" "+_e+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(ve).css,ve.dim&&(this._tmpCtx.globalAlpha=de.DIM_OPACITY),this._tmpCtx.fillText(ve.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var he=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),be=!1;this._config.allowTransparency||(be=function(je,Fe){for(var Re=!0,qe=Fe.rgba>>>24,Je=Fe.rgba>>>16&255,He=Fe.rgba>>>8&255,ze=0;ze<je.data.length;ze+=4)je.data[ze]===qe&&je.data[ze+1]===Je&&je.data[ze+2]===He?je.data[ze+3]=0:Re=!1;return Re}(he,ge));var Ee=this._toCoordinateX(Se),Ae=this._toCoordinateY(Se);this._cacheCtx.putImageData(he,Ee,Ae);var De={index:Se,isEmpty:be,inBitmap:!1};return this._addGlyphToBitmap(De),De},le.prototype._addGlyphToBitmap=function(ve){var Se=this;!("createImageBitmap"in window)||te.isFirefox||te.isSafari||(this._glyphsWaitingOnBitmap.push(ve),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return Se._generateBitmap()},100)))},le.prototype._generateBitmap=function(){var ve=this,Se=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(ge){ve._bitmap=ge;for(var _e=0;_e<Se.length;_e++)Se[_e].inBitmap=!0}),this._bitmapCommitTimeout=null},le}(ue.BaseCharAtlas);oe.DynamicCharAtlas=E;var re=function(ce){function le(ve,Se){return ce.call(this)||this}return fe(le,ce),le.prototype.draw=function(ve,Se,ge,_e){return!1},le}(ue.BaseCharAtlas);oe.NoneCharAtlas=re},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.BaseCharAtlas=void 0;var ie=function(){function fe(){this._didWarmUp=!1}return fe.prototype.dispose=function(){},fe.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},fe.prototype._doWarmUp=function(){},fe.prototype.beginFrame=function(){},fe}();oe.BaseCharAtlas=ie},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.ColorContrastCache=void 0;var ie=function(){function fe(){this._color={},this._rgba={}}return fe.prototype.clear=function(){this._color={},this._rgba={}},fe.prototype.setCss=function(de,ue,ae){this._rgba[de]||(this._rgba[de]={}),this._rgba[de][ue]=ae},fe.prototype.getCss=function(de,ue){return this._rgba[de]?this._rgba[de][ue]:void 0},fe.prototype.setColor=function(de,ue,ae){this._color[de]||(this._color[de]={}),this._color[de][ue]=ae},fe.prototype.getColor=function(de,ue){return this._color[de]?this._color[de][ue]:void 0},fe}();oe.ColorContrastCache=ie},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.LRUMap=void 0;var ie=function(){function fe(de){this.capacity=de,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return fe.prototype._unlinkNode=function(de){var ue=de.prev,ae=de.next;de===this._head&&(this._head=ae),de===this._tail&&(this._tail=ue),ue!==null&&(ue.next=ae),ae!==null&&(ae.prev=ue)},fe.prototype._appendNode=function(de){var ue=this._tail;ue!==null&&(ue.next=de),de.prev=ue,de.next=null,this._tail=de,this._head===null&&(this._head=de)},fe.prototype.prealloc=function(de){for(var ue=this._nodePool,ae=0;ae<de;ae++)ue.push({prev:null,next:null,key:null,value:null})},fe.prototype.get=function(de){var ue=this._map[de];return ue!==void 0?(this._unlinkNode(ue),this._appendNode(ue),ue.value):null},fe.prototype.peekValue=function(de){var ue=this._map[de];return ue!==void 0?ue.value:null},fe.prototype.peek=function(){var de=this._head;return de===null?null:de.value},fe.prototype.set=function(de,ue){var ae=this._map[de];if(ae!==void 0)ae=this._map[de],this._unlinkNode(ae),ae.value=ue;else if(this.size>=this.capacity)ae=this._head,this._unlinkNode(ae),delete this._map[ae.key],ae.key=de,ae.value=ue,this._map[de]=ae;else{var se=this._nodePool;se.length>0?((ae=se.pop()).key=de,ae.value=ue):ae={prev:null,next:null,key:de,value:ue},this._map[de]=ae,this.size++}this._appendNode(ae)},fe}();oe.LRUMap=ie},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(ue,ae){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,te){se.__proto__=te}||function(se,te){for(var ne in te)te.hasOwnProperty(ne)&&(se[ne]=te[ne])})(ue,ae)},function(ue,ae){function se(){this.constructor=ue}ie(ue,ae),ue.prototype=ae===null?Object.create(ae):(se.prototype=ae.prototype,new se)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.SelectionRenderLayer=void 0;var de=function(ue){function ae(se,te,ne,x,b,ee){var E=ue.call(this,se,"selection",te,!0,ne,x,b,ee)||this;return E._clearState(),E}return fe(ae,ue),ae.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},ae.prototype.resize=function(se){ue.prototype.resize.call(this,se),this._clearState()},ae.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},ae.prototype.onSelectionChanged=function(se,te,ne){if(this._didStateChange(se,te,ne,this._bufferService.buffer.ydisp))if(this._clearAll(),se&&te){var x=se[1]-this._bufferService.buffer.ydisp,b=te[1]-this._bufferService.buffer.ydisp,ee=Math.max(x,0),E=Math.min(b,this._bufferService.rows-1);if(!(ee>=this._bufferService.rows||E<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,ne){var re=se[0],ce=te[0]-re,le=E-ee+1;this._fillCells(re,ee,ce,le)}else{re=x===ee?se[0]:0;var ve=ee===E?te[0]:this._bufferService.cols;this._fillCells(re,ee,ve-re,1);var Se=Math.max(E-ee-1,0);if(this._fillCells(0,ee+1,this._bufferService.cols,Se),ee!==E){var ge=b===E?te[0]:this._bufferService.cols;this._fillCells(0,E,ge,1)}}this._state.start=[se[0],se[1]],this._state.end=[te[0],te[1]],this._state.columnSelectMode=ne,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},ae.prototype._didStateChange=function(se,te,ne,x){return!this._areCoordinatesEqual(se,this._state.start)||!this._areCoordinatesEqual(te,this._state.end)||ne!==this._state.columnSelectMode||x!==this._state.ydisp},ae.prototype._areCoordinatesEqual=function(se,te){return!(!se||!te)&&se[0]===te[0]&&se[1]===te[1]},ae}(y(13).BaseRenderLayer);oe.SelectionRenderLayer=de},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(te,ne){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var ee in b)b.hasOwnProperty(ee)&&(x[ee]=b[ee])})(te,ne)},function(te,ne){function x(){this.constructor=te}ie(te,ne),te.prototype=ne===null?Object.create(ne):(x.prototype=ne.prototype,new x)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.CursorRenderLayer=void 0;var de=y(13),ue=y(4),ae=function(te){function ne(x,b,ee,E,re,ce,le,ve,Se){var ge=te.call(this,x,"cursor",b,!0,ee,E,ce,le)||this;return ge._onRequestRedraw=re,ge._coreService=ve,ge._coreBrowserService=Se,ge._cell=new ue.CellData,ge._state={x:0,y:0,isFocused:!1,style:"",width:0},ge._cursorRenderers={bar:ge._renderBarCursor.bind(ge),block:ge._renderBlockCursor.bind(ge),underline:ge._renderUnderlineCursor.bind(ge)},ge}return fe(ne,te),ne.prototype.resize=function(x){te.prototype.resize.call(this,x),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},ne.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},ne.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ne.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ne.prototype.onOptionsChanged=function(){var x,b=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new se(this._coreBrowserService.isFocused,function(){b._render(!0)})):((x=this._cursorBlinkStateManager)===null||x===void 0||x.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},ne.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},ne.prototype.onGridChanged=function(x,b){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},ne.prototype._render=function(x){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var b=this._bufferService.buffer.ybase+this._bufferService.buffer.y,ee=b-this._bufferService.buffer.ydisp;if(ee<0||ee>=this._bufferService.rows)this._clearCursor();else{var E=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(b).loadCell(E,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var re=this._optionsService.options.cursorStyle;return re&&re!=="block"?this._cursorRenderers[re](E,ee,this._cell):this._renderBlurCursor(E,ee,this._cell),this._ctx.restore(),this._state.x=E,this._state.y=ee,this._state.isFocused=!1,this._state.style=re,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===E&&this._state.y===ee&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](E,ee,this._cell),this._ctx.restore(),this._state.x=E,this._state.y=ee,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},ne.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},ne.prototype._renderBarCursor=function(x,b,ee){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(x,b,this._optionsService.options.cursorWidth),this._ctx.restore()},ne.prototype._renderBlockCursor=function(x,b,ee){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(x,b,ee.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(ee,x,b),this._ctx.restore()},ne.prototype._renderUnderlineCursor=function(x,b,ee){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(x,b),this._ctx.restore()},ne.prototype._renderBlurCursor=function(x,b,ee){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(x,b,ee.getWidth(),1),this._ctx.restore()},ne}(de.BaseRenderLayer);oe.CursorRenderLayer=ae;var se=function(){function te(ne,x){this._renderCallback=x,this.isCursorVisible=!0,ne&&this._restartInterval()}return Object.defineProperty(te.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),te.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},te.prototype.restartBlinkAnimation=function(){var ne=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){ne._renderCallback(),ne._animationFrame=void 0})))},te.prototype._restartInterval=function(ne){var x=this;ne===void 0&&(ne=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(x._animationTimeRestarted){var b=600-(Date.now()-x._animationTimeRestarted);if(x._animationTimeRestarted=void 0,b>0)return void x._restartInterval(b)}x.isCursorVisible=!1,x._animationFrame=window.requestAnimationFrame(function(){x._renderCallback(),x._animationFrame=void 0}),x._blinkInterval=window.setInterval(function(){if(x._animationTimeRestarted){var ee=600-(Date.now()-x._animationTimeRestarted);return x._animationTimeRestarted=void 0,void x._restartInterval(ee)}x.isCursorVisible=!x.isCursorVisible,x._animationFrame=window.requestAnimationFrame(function(){x._renderCallback(),x._animationFrame=void 0})},600)},ne)},te.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},te.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},te}()},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(te,ne){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var ee in b)b.hasOwnProperty(ee)&&(x[ee]=b[ee])})(te,ne)},function(te,ne){function x(){this.constructor=te}ie(te,ne),te.prototype=ne===null?Object.create(ne):(x.prototype=ne.prototype,new x)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.LinkRenderLayer=void 0;var de=y(13),ue=y(9),ae=y(26),se=function(te){function ne(x,b,ee,E,re,ce,le,ve){var Se=te.call(this,x,"link",b,!0,ee,E,le,ve)||this;return re.onShowLinkUnderline(function(ge){return Se._onShowLinkUnderline(ge)}),re.onHideLinkUnderline(function(ge){return Se._onHideLinkUnderline(ge)}),ce.onShowLinkUnderline(function(ge){return Se._onShowLinkUnderline(ge)}),ce.onHideLinkUnderline(function(ge){return Se._onHideLinkUnderline(ge)}),Se}return fe(ne,te),ne.prototype.resize=function(x){te.prototype.resize.call(this,x),this._state=void 0},ne.prototype.reset=function(){this._clearCurrentLink()},ne.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var x=this._state.y2-this._state.y1-1;x>0&&this._clearCells(0,this._state.y1+1,this._state.cols,x),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},ne.prototype._onShowLinkUnderline=function(x){if(x.fg===ue.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:x.fg&&ae.is256Color(x.fg)?this._ctx.fillStyle=this._colors.ansi[x.fg].css:this._ctx.fillStyle=this._colors.foreground.css,x.y1===x.y2)this._fillBottomLineAtCells(x.x1,x.y1,x.x2-x.x1);else{this._fillBottomLineAtCells(x.x1,x.y1,x.cols-x.x1);for(var b=x.y1+1;b<x.y2;b++)this._fillBottomLineAtCells(0,b,x.cols);this._fillBottomLineAtCells(0,x.y2,x.x2)}this._state=x},ne.prototype._onHideLinkUnderline=function(x){this._clearCurrentLink()},ne}(de.BaseRenderLayer);oe.LinkRenderLayer=se},function(Tt,oe,y){"use strict";var ie=this&&this.__decorate||function(te,ne,x,b){var ee,E=arguments.length,re=E<3?ne:b===null?b=Object.getOwnPropertyDescriptor(ne,x):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(te,ne,x,b);else for(var ce=te.length-1;ce>=0;ce--)(ee=te[ce])&&(re=(E<3?ee(re):E>3?ee(ne,x,re):ee(ne,x))||re);return E>3&&re&&Object.defineProperty(ne,x,re),re},fe=this&&this.__param||function(te,ne){return function(x,b){ne(x,b,te)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.MouseZone=oe.Linkifier=void 0;var de=y(0),ue=y(1),ae=function(){function te(ne,x,b){this._bufferService=ne,this._logService=x,this._unicodeService=b,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new de.EventEmitter,this._onHideLinkUnderline=new de.EventEmitter,this._onLinkTooltip=new de.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(te.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),te.prototype.attachToDom=function(ne,x){this._element=ne,this._mouseZoneManager=x},te.prototype.linkifyRows=function(ne,x){var b=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=ne,this._rowsToLinkify.end=x):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,ne),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,x)),this._mouseZoneManager.clearAll(ne,x),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return b._linkifyRows()},te._timeBeforeLatency))},te.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var ne=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var x=ne.ydisp+this._rowsToLinkify.start;if(!(x>=ne.lines.length)){for(var b=ne.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,ee=Math.ceil(2e3/this._bufferService.cols),E=this._bufferService.buffer.iterator(!1,x,b,ee,ee);E.hasNext();)for(var re=E.next(),ce=0;ce<this._linkMatchers.length;ce++)this._doLinkifyRow(re.range.first,re.content,this._linkMatchers[ce]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},te.prototype.registerLinkMatcher=function(ne,x,b){if(b===void 0&&(b={}),!x)throw new Error("handler must be defined");var ee={id:this._nextLinkMatcherId++,regex:ne,handler:x,matchIndex:b.matchIndex,validationCallback:b.validationCallback,hoverTooltipCallback:b.tooltipCallback,hoverLeaveCallback:b.leaveCallback,willLinkActivate:b.willLinkActivate,priority:b.priority||0};return this._addLinkMatcherToList(ee),ee.id},te.prototype._addLinkMatcherToList=function(ne){if(this._linkMatchers.length!==0){for(var x=this._linkMatchers.length-1;x>=0;x--)if(ne.priority<=this._linkMatchers[x].priority)return void this._linkMatchers.splice(x+1,0,ne);this._linkMatchers.splice(0,0,ne)}else this._linkMatchers.push(ne)},te.prototype.deregisterLinkMatcher=function(ne){for(var x=0;x<this._linkMatchers.length;x++)if(this._linkMatchers[x].id===ne)return this._linkMatchers.splice(x,1),!0;return!1},te.prototype._doLinkifyRow=function(ne,x,b){for(var ee,E=this,re=new RegExp(b.regex.source,(b.regex.flags||"")+"g"),ce=-1,le=function(){var Se=ee[typeof b.matchIndex!="number"?0:b.matchIndex];if(!Se)return ve._logService.debug("match found without corresponding matchIndex",ee,b),"break";if(ce=x.indexOf(Se,ce+1),re.lastIndex=ce+Se.length,ce<0)return"break";var ge=ve._bufferService.buffer.stringIndexToBufferIndex(ne,ce);if(ge[0]<0)return"break";var _e=ve._bufferService.buffer.lines.get(ge[0]);if(!_e)return"break";var Ce=_e.getFg(ge[1]),he=Ce?Ce>>9&511:void 0;b.validationCallback?b.validationCallback(Se,function(be){E._rowsTimeoutId||be&&E._addLink(ge[1],ge[0]-E._bufferService.buffer.ydisp,Se,b,he)}):ve._addLink(ge[1],ge[0]-ve._bufferService.buffer.ydisp,Se,b,he)},ve=this;(ee=re.exec(x))!==null&&le()!=="break";);},te.prototype._addLink=function(ne,x,b,ee,E){var re=this;if(this._mouseZoneManager&&this._element){var ce=this._unicodeService.getStringCellWidth(b),le=ne%this._bufferService.cols,ve=x+Math.floor(ne/this._bufferService.cols),Se=(le+ce)%this._bufferService.cols,ge=ve+Math.floor((le+ce)/this._bufferService.cols);Se===0&&(Se=this._bufferService.cols,ge--),this._mouseZoneManager.add(new se(le+1,ve+1,Se+1,ge+1,function(_e){if(ee.handler)return ee.handler(_e,b);var Ce=window.open();Ce?(Ce.opener=null,Ce.location.href=b):console.warn("Opening link blocked as opener could not be cleared")},function(){re._onShowLinkUnderline.fire(re._createLinkHoverEvent(le,ve,Se,ge,E)),re._element.classList.add("xterm-cursor-pointer")},function(_e){re._onLinkTooltip.fire(re._createLinkHoverEvent(le,ve,Se,ge,E)),ee.hoverTooltipCallback&&ee.hoverTooltipCallback(_e,b,{start:{x:le,y:ve},end:{x:Se,y:ge}})},function(){re._onHideLinkUnderline.fire(re._createLinkHoverEvent(le,ve,Se,ge,E)),re._element.classList.remove("xterm-cursor-pointer"),ee.hoverLeaveCallback&&ee.hoverLeaveCallback()},function(_e){return!ee.willLinkActivate||ee.willLinkActivate(_e,b)}))}},te.prototype._createLinkHoverEvent=function(ne,x,b,ee,E){return{x1:ne,y1:x,x2:b,y2:ee,cols:this._bufferService.cols,fg:E}},te._timeBeforeLatency=200,te=ie([fe(0,ue.IBufferService),fe(1,ue.ILogService),fe(2,ue.IUnicodeService)],te)}();oe.Linkifier=ae;var se=function(te,ne,x,b,ee,E,re,ce,le){this.x1=te,this.y1=ne,this.x2=x,this.y2=b,this.clickCallback=ee,this.hoverCallback=E,this.tooltipCallback=re,this.leaveCallback=ce,this.willLinkActivate=le};oe.MouseZone=se},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(Se,ge){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Ce){_e.__proto__=Ce}||function(_e,Ce){for(var he in Ce)Ce.hasOwnProperty(he)&&(_e[he]=Ce[he])})(Se,ge)},function(Se,ge){function _e(){this.constructor=Se}ie(Se,ge),Se.prototype=ge===null?Object.create(ge):(_e.prototype=ge.prototype,new _e)}),de=this&&this.__decorate||function(Se,ge,_e,Ce){var he,be=arguments.length,Ee=be<3?ge:Ce===null?Ce=Object.getOwnPropertyDescriptor(ge,_e):Ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ee=Reflect.decorate(Se,ge,_e,Ce);else for(var Ae=Se.length-1;Ae>=0;Ae--)(he=Se[Ae])&&(Ee=(be<3?he(Ee):be>3?he(ge,_e,Ee):he(ge,_e))||Ee);return be>3&&Ee&&Object.defineProperty(ge,_e,Ee),Ee},ue=this&&this.__param||function(Se,ge){return function(_e,Ce){ge(_e,Ce,Se)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.SelectionService=void 0;var ae=y(11),se=y(52),te=y(4),ne=y(0),x=y(5),b=y(1),ee=y(30),E=y(53),re=y(2),ce="\xA0",le=new RegExp(ce,"g"),ve=function(Se){function ge(_e,Ce,he,be,Ee,Ae,De){var je=Se.call(this)||this;return je._element=_e,je._screenElement=Ce,je._bufferService=he,je._coreService=be,je._mouseService=Ee,je._optionsService=Ae,je._renderService=De,je._dragScrollAmount=0,je._enabled=!0,je._workCell=new te.CellData,je._mouseDownTimeStamp=0,je._onLinuxMouseSelection=je.register(new ne.EventEmitter),je._onRedrawRequest=je.register(new ne.EventEmitter),je._onSelectionChange=je.register(new ne.EventEmitter),je._onRequestScrollLines=je.register(new ne.EventEmitter),je._mouseMoveListener=function(Fe){return je._onMouseMove(Fe)},je._mouseUpListener=function(Fe){return je._onMouseUp(Fe)},je._coreService.onUserInput(function(){je.hasSelection&&je.clearSelection()}),je._trimListener=je._bufferService.buffer.lines.onTrim(function(Fe){return je._onTrim(Fe)}),je.register(je._bufferService.buffers.onBufferActivate(function(Fe){return je._onBufferActivate(Fe)})),je.enable(),je._model=new se.SelectionModel(je._bufferService),je._activeSelectionMode=0,je}return fe(ge,Se),Object.defineProperty(ge.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),ge.prototype.dispose=function(){this._removeMouseDownListeners()},ge.prototype.reset=function(){this.clearSelection()},ge.prototype.disable=function(){this.clearSelection(),this._enabled=!1},ge.prototype.enable=function(){this._enabled=!0},Object.defineProperty(ge.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"hasSelection",{get:function(){var _e=this._model.finalSelectionStart,Ce=this._model.finalSelectionEnd;return!(!_e||!Ce)&&(_e[0]!==Ce[0]||_e[1]!==Ce[1])},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"selectionText",{get:function(){var _e=this._model.finalSelectionStart,Ce=this._model.finalSelectionEnd;if(!_e||!Ce)return"";var he=this._bufferService.buffer,be=[];if(this._activeSelectionMode===3){if(_e[0]===Ce[0])return"";for(var Ee=_e[1];Ee<=Ce[1];Ee++){var Ae=he.translateBufferLineToString(Ee,!0,_e[0],Ce[0]);be.push(Ae)}}else{var De=_e[1]===Ce[1]?Ce[0]:void 0;for(be.push(he.translateBufferLineToString(_e[1],!0,_e[0],De)),Ee=_e[1]+1;Ee<=Ce[1]-1;Ee++){var je=he.lines.get(Ee);Ae=he.translateBufferLineToString(Ee,!0),je&&je.isWrapped?be[be.length-1]+=Ae:be.push(Ae)}_e[1]!==Ce[1]&&(je=he.lines.get(Ce[1]),Ae=he.translateBufferLineToString(Ce[1],!0,0,Ce[0]),je&&je.isWrapped?be[be.length-1]+=Ae:be.push(Ae))}return be.map(function(Fe){return Fe.replace(le," ")}).join(ae.isWindows?`\r
|
|
|
`:`
|
|
|
`)},enumerable:!1,configurable:!0}),ge.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},ge.prototype.refresh=function(_e){var Ce=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return Ce._refresh()})),ae.isLinux&&_e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},ge.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},ge.prototype.isClickInSelection=function(_e){var Ce=this._getMouseBufferCoords(_e),he=this._model.finalSelectionStart,be=this._model.finalSelectionEnd;return!!(he&&be&&Ce)&&this._areCoordsInSelection(Ce,he,be)},ge.prototype._areCoordsInSelection=function(_e,Ce,he){return _e[1]>Ce[1]&&_e[1]<he[1]||Ce[1]===he[1]&&_e[1]===Ce[1]&&_e[0]>=Ce[0]&&_e[0]<he[0]||Ce[1]<he[1]&&_e[1]===he[1]&&_e[0]<he[0]||Ce[1]<he[1]&&_e[1]===Ce[1]&&_e[0]>=Ce[0]},ge.prototype.selectWordAtCursor=function(_e){var Ce=this._getMouseBufferCoords(_e);Ce&&(this._selectWordAt(Ce,!1),this._model.selectionEnd=void 0,this.refresh(!0))},ge.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},ge.prototype.selectLines=function(_e,Ce){this._model.clearSelection(),_e=Math.max(_e,0),Ce=Math.min(Ce,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,_e],this._model.selectionEnd=[this._bufferService.cols,Ce],this.refresh(),this._onSelectionChange.fire()},ge.prototype._onTrim=function(_e){this._model.onTrim(_e)&&this.refresh()},ge.prototype._getMouseBufferCoords=function(_e){var Ce=this._mouseService.getCoords(_e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(Ce)return Ce[0]--,Ce[1]--,Ce[1]+=this._bufferService.buffer.ydisp,Ce},ge.prototype._getMouseEventScrollAmount=function(_e){var Ce=ee.getCoordsRelativeToElement(_e,this._screenElement)[1],he=this._renderService.dimensions.canvasHeight;return Ce>=0&&Ce<=he?0:(Ce>he&&(Ce-=he),Ce=Math.min(Math.max(Ce,-50),50),(Ce/=50)/Math.abs(Ce)+Math.round(14*Ce))},ge.prototype.shouldForceSelection=function(_e){return ae.isMac?_e.altKey&&this._optionsService.options.macOptionClickForcesSelection:_e.shiftKey},ge.prototype.onMouseDown=function(_e){if(this._mouseDownTimeStamp=_e.timeStamp,(_e.button!==2||!this.hasSelection)&&_e.button===0){if(!this._enabled){if(!this.shouldForceSelection(_e))return;_e.stopPropagation()}_e.preventDefault(),this._dragScrollAmount=0,this._enabled&&_e.shiftKey?this._onIncrementalClick(_e):_e.detail===1?this._onSingleClick(_e):_e.detail===2?this._onDoubleClick(_e):_e.detail===3&&this._onTripleClick(_e),this._addMouseDownListeners(),this.refresh(!0)}},ge.prototype._addMouseDownListeners=function(){var _e=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return _e._dragScroll()},50)},ge.prototype._removeMouseDownListeners=function(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0},ge.prototype._onIncrementalClick=function(_e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(_e))},ge.prototype._onSingleClick=function(_e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(_e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(_e),this._model.selectionStart){this._model.selectionEnd=void 0;var Ce=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);Ce&&Ce.length!==this._model.selectionStart[0]&&Ce.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},ge.prototype._onDoubleClick=function(_e){var Ce=this._getMouseBufferCoords(_e);Ce&&(this._activeSelectionMode=1,this._selectWordAt(Ce,!0))},ge.prototype._onTripleClick=function(_e){var Ce=this._getMouseBufferCoords(_e);Ce&&(this._activeSelectionMode=2,this._selectLineAt(Ce[1]))},ge.prototype.shouldColumnSelect=function(_e){return _e.altKey&&!(ae.isMac&&this._optionsService.options.macOptionClickForcesSelection)},ge.prototype._onMouseMove=function(_e){if(_e.stopImmediatePropagation(),this._model.selectionStart){var Ce=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(_e),this._model.selectionEnd){this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(_e),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var he=this._bufferService.buffer;if(this._model.selectionEnd[1]<he.lines.length){var be=he.lines.get(this._model.selectionEnd[1]);be&&be.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}Ce&&Ce[0]===this._model.selectionEnd[0]&&Ce[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},ge.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var _e=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(_e.ydisp+this._bufferService.rows,_e.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=_e.ydisp),this.refresh()}},ge.prototype._onMouseUp=function(_e){var Ce=_e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&Ce<500&&_e.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var he=this._mouseService.getCoords(_e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(he&&he[0]!==void 0&&he[1]!==void 0){var be=E.moveToCellSequence(he[0]-1,he[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(be,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},ge.prototype._onBufferActivate=function(_e){var Ce=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=_e.activeBuffer.lines.onTrim(function(he){return Ce._onTrim(he)})},ge.prototype._convertViewportColToCharacterIndex=function(_e,Ce){for(var he=Ce[0],be=0;Ce[0]>=be;be++){var Ee=_e.loadCell(be,this._workCell).getChars().length;this._workCell.getWidth()===0?he--:Ee>1&&Ce[0]!==be&&(he+=Ee-1)}return he},ge.prototype.setSelection=function(_e,Ce,he){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[_e,Ce],this._model.selectionStartLength=he,this.refresh()},ge.prototype._getWordAt=function(_e,Ce,he,be){if(he===void 0&&(he=!0),be===void 0&&(be=!0),!(_e[0]>=this._bufferService.cols)){var Ee=this._bufferService.buffer,Ae=Ee.lines.get(_e[1]);if(Ae){var De=Ee.translateBufferLineToString(_e[1],!1),je=this._convertViewportColToCharacterIndex(Ae,_e),Fe=je,Re=_e[0]-je,qe=0,Je=0,He=0,ze=0;if(De.charAt(je)===" "){for(;je>0&&De.charAt(je-1)===" ";)je--;for(;Fe<De.length&&De.charAt(Fe+1)===" ";)Fe++}else{var Qe=_e[0],$e=_e[0];Ae.getWidth(Qe)===0&&(qe++,Qe--),Ae.getWidth($e)===2&&(Je++,$e++);var ht=Ae.getString($e).length;for(ht>1&&(ze+=ht-1,Fe+=ht-1);Qe>0&&je>0&&!this._isCharWordSeparator(Ae.loadCell(Qe-1,this._workCell));){Ae.loadCell(Qe-1,this._workCell);var Ge=this._workCell.getChars().length;this._workCell.getWidth()===0?(qe++,Qe--):Ge>1&&(He+=Ge-1,je-=Ge-1),je--,Qe--}for(;$e<Ae.length&&Fe+1<De.length&&!this._isCharWordSeparator(Ae.loadCell($e+1,this._workCell));){Ae.loadCell($e+1,this._workCell);var Ue=this._workCell.getChars().length;this._workCell.getWidth()===2?(Je++,$e++):Ue>1&&(ze+=Ue-1,Fe+=Ue-1),Fe++,$e++}}Fe++;var Ke=je+Re-qe+He,et=Math.min(this._bufferService.cols,Fe-je+qe+Je-He-ze);if(Ce||De.slice(je,Fe).trim()!==""){if(he&&Ke===0&&Ae.getCodePoint(0)!==32){var rt=Ee.lines.get(_e[1]-1);if(rt&&Ae.isWrapped&&rt.getCodePoint(this._bufferService.cols-1)!==32){var Xe=this._getWordAt([this._bufferService.cols-1,_e[1]-1],!1,!0,!1);if(Xe){var ut=this._bufferService.cols-Xe.start;Ke-=ut,et+=ut}}}if(be&&Ke+et===this._bufferService.cols&&Ae.getCodePoint(this._bufferService.cols-1)!==32){var lt=Ee.lines.get(_e[1]+1);if(lt&<.isWrapped&<.getCodePoint(0)!==32){var kt=this._getWordAt([0,_e[1]+1],!1,!1,!0);kt&&(et+=kt.length)}}return{start:Ke,length:et}}}}},ge.prototype._selectWordAt=function(_e,Ce){var he=this._getWordAt(_e,Ce);if(he){for(;he.start<0;)he.start+=this._bufferService.cols,_e[1]--;this._model.selectionStart=[he.start,_e[1]],this._model.selectionStartLength=he.length}},ge.prototype._selectToWordAt=function(_e){var Ce=this._getWordAt(_e,!0);if(Ce){for(var he=_e[1];Ce.start<0;)Ce.start+=this._bufferService.cols,he--;if(!this._model.areSelectionValuesReversed())for(;Ce.start+Ce.length>this._bufferService.cols;)Ce.length-=this._bufferService.cols,he++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?Ce.start:Ce.start+Ce.length,he]}},ge.prototype._isCharWordSeparator=function(_e){return _e.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(_e.getChars())>=0},ge.prototype._selectLineAt=function(_e){var Ce=this._bufferService.buffer.getWrappedRangeForLine(_e);this._model.selectionStart=[0,Ce.first],this._model.selectionEnd=[this._bufferService.cols,Ce.last],this._model.selectionStartLength=0},ge=de([ue(2,b.IBufferService),ue(3,b.ICoreService),ue(4,x.IMouseService),ue(5,b.IOptionsService),ue(6,x.IRenderService)],ge)}(re.Disposable);oe.SelectionService=ve},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.SelectionModel=void 0;var ie=function(){function fe(de){this._bufferService=de,this.isSelectAllActive=!1,this.selectionStartLength=0}return fe.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(fe.prototype,"finalSelectionStart",{get:function(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"finalSelectionEnd",{get:function(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){var de=this.selectionStart[0]+this.selectionStartLength;return de>this._bufferService.cols?[de%this._bufferService.cols,this.selectionStart[1]+Math.floor(de/this._bufferService.cols)]:[de,this.selectionStart[1]]}return this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]?[Math.max(this.selectionStart[0]+this.selectionStartLength,this.selectionEnd[0]),this.selectionEnd[1]]:this.selectionEnd}},enumerable:!1,configurable:!0}),fe.prototype.areSelectionValuesReversed=function(){var de=this.selectionStart,ue=this.selectionEnd;return!(!de||!ue)&&(de[1]>ue[1]||de[1]===ue[1]&&de[0]>ue[0])},fe.prototype.onTrim=function(de){return this.selectionStart&&(this.selectionStart[1]-=de),this.selectionEnd&&(this.selectionEnd[1]-=de),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},fe}();oe.SelectionModel=ie},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.moveToCellSequence=void 0;var ie=y(12);function fe(ne,x,b,ee){var E=ne-de(b,ne),re=x-de(b,x);return te(Math.abs(E-re)-function(ce,le,ve){for(var Se=0,ge=ce-de(ve,ce),_e=le-de(ve,le),Ce=0;Ce<Math.abs(ge-_e);Ce++){var he=ue(ce,le)==="A"?-1:1,be=ve.buffer.lines.get(ge+he*Ce);be&&be.isWrapped&&Se++}return Se}(ne,x,b),se(ue(ne,x),ee))}function de(ne,x){for(var b=0,ee=ne.buffer.lines.get(x),E=ee&&ee.isWrapped;E&&x>=0&&x<ne.rows;)b++,E=(ee=ne.buffer.lines.get(--x))&&ee.isWrapped;return b}function ue(ne,x){return ne>x?"A":"B"}function ae(ne,x,b,ee,E,re){for(var ce=ne,le=x,ve="";ce!==b||le!==ee;)ce+=E?1:-1,E&&ce>re.cols-1?(ve+=re.buffer.translateBufferLineToString(le,!1,ne,ce),ce=0,ne=0,le++):!E&&ce<0&&(ve+=re.buffer.translateBufferLineToString(le,!1,0,ne+1),ne=ce=re.cols-1,le--);return ve+re.buffer.translateBufferLineToString(le,!1,ne,ce)}function se(ne,x){var b=x?"O":"[";return ie.C0.ESC+b+ne}function te(ne,x){ne=Math.floor(ne);for(var b="",ee=0;ee<ne;ee++)b+=x;return b}oe.moveToCellSequence=function(ne,x,b,ee){var E,re=b.buffer.x,ce=b.buffer.y;if(!b.buffer.hasScrollback)return function(ve,Se,ge,_e,Ce,he){return fe(Se,_e,Ce,he).length===0?"":te(ae(ve,Se,ve,Se-de(Ce,Se),!1,Ce).length,se("D",he))}(re,ce,0,x,b,ee)+fe(ce,x,b,ee)+function(ve,Se,ge,_e,Ce,he){var be;be=fe(Se,_e,Ce,he).length>0?_e-de(Ce,_e):Se;var Ee=_e,Ae=function(De,je,Fe,Re,qe,Je){var He;return He=fe(Fe,Re,qe,Je).length>0?Re-de(qe,Re):je,De<Fe&&He<=Re||De>=Fe&&He<Re?"C":"D"}(ve,Se,ge,_e,Ce,he);return te(ae(ve,be,ge,Ee,Ae==="C",Ce).length,se(Ae,he))}(re,ce,ne,x,b,ee);if(ce===x)return E=re>ne?"D":"C",te(Math.abs(re-ne),se(E,ee));E=ce>x?"D":"C";var le=Math.abs(ce-x);return te(function(ve,Se){return Se.cols-ve}(ce>x?ne:re,b)+(le-1)*b.cols+1+((ce>x?re:ne)-1),se(E,ee))}},function(Tt,oe,y){"use strict";var ie=this&&this.__decorate||function(ae,se,te,ne){var x,b=arguments.length,ee=b<3?se:ne===null?ne=Object.getOwnPropertyDescriptor(se,te):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(ae,se,te,ne);else for(var E=ae.length-1;E>=0;E--)(x=ae[E])&&(ee=(b<3?x(ee):b>3?x(se,te,ee):x(se,te))||ee);return b>3&&ee&&Object.defineProperty(se,te,ee),ee},fe=this&&this.__param||function(ae,se){return function(te,ne){se(te,ne,ae)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.SoundService=void 0;var de=y(1),ue=function(){function ae(se){this._optionsService=se}return Object.defineProperty(ae,"audioContext",{get:function(){if(!ae._audioContext){var se=window.AudioContext||window.webkitAudioContext;if(!se)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;ae._audioContext=new se}return ae._audioContext},enumerable:!1,configurable:!0}),ae.prototype.playBellSound=function(){var se=ae.audioContext;if(se){var te=se.createBufferSource();se.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(ne){te.buffer=ne,te.connect(se.destination),te.start(0)})}},ae.prototype._base64ToArrayBuffer=function(se){for(var te=window.atob(se),ne=te.length,x=new Uint8Array(ne),b=0;b<ne;b++)x[b]=te.charCodeAt(b);return x.buffer},ae.prototype._removeMimeType=function(se){return se.split(",")[1]},ae=ie([fe(0,de.IOptionsService)],ae)}();oe.SoundService=ue},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(b,ee){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,re){E.__proto__=re}||function(E,re){for(var ce in re)re.hasOwnProperty(ce)&&(E[ce]=re[ce])})(b,ee)},function(b,ee){function E(){this.constructor=b}ie(b,ee),b.prototype=ee===null?Object.create(ee):(E.prototype=ee.prototype,new E)}),de=this&&this.__decorate||function(b,ee,E,re){var ce,le=arguments.length,ve=le<3?ee:re===null?re=Object.getOwnPropertyDescriptor(ee,E):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,ee,E,re);else for(var Se=b.length-1;Se>=0;Se--)(ce=b[Se])&&(ve=(le<3?ce(ve):le>3?ce(ee,E,ve):ce(ee,E))||ve);return le>3&&ve&&Object.defineProperty(ee,E,ve),ve},ue=this&&this.__param||function(b,ee){return function(E,re){ee(E,re,b)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.MouseZoneManager=void 0;var ae=y(2),se=y(7),te=y(5),ne=y(1),x=function(b){function ee(E,re,ce,le,ve,Se){var ge=b.call(this)||this;return ge._element=E,ge._screenElement=re,ge._bufferService=ce,ge._mouseService=le,ge._selectionService=ve,ge._optionsService=Se,ge._zones=[],ge._areZonesActive=!1,ge._lastHoverCoords=[void 0,void 0],ge._initialSelectionLength=0,ge.register(se.addDisposableDomListener(ge._element,"mousedown",function(_e){return ge._onMouseDown(_e)})),ge._mouseMoveListener=function(_e){return ge._onMouseMove(_e)},ge._mouseLeaveListener=function(_e){return ge._onMouseLeave(_e)},ge._clickListener=function(_e){return ge._onClick(_e)},ge}return fe(ee,b),ee.prototype.dispose=function(){b.prototype.dispose.call(this),this._deactivate()},ee.prototype.add=function(E){this._zones.push(E),this._zones.length===1&&this._activate()},ee.prototype.clearAll=function(E,re){if(this._zones.length!==0){E&&re||(E=0,re=this._bufferService.rows-1);for(var ce=0;ce<this._zones.length;ce++){var le=this._zones[ce];(le.y1>E&&le.y1<=re+1||le.y2>E&&le.y2<=re+1||le.y1<E&&le.y2>re+1)&&(this._currentZone&&this._currentZone===le&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(ce--,1))}this._zones.length===0&&this._deactivate()}},ee.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},ee.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},ee.prototype._onMouseMove=function(E){this._lastHoverCoords[0]===E.pageX&&this._lastHoverCoords[1]===E.pageY||(this._onHover(E),this._lastHoverCoords=[E.pageX,E.pageY])},ee.prototype._onHover=function(E){var re=this,ce=this._findZoneEventAt(E);ce!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),ce&&(this._currentZone=ce,ce.hoverCallback&&ce.hoverCallback(E),this._tooltipTimeout=window.setTimeout(function(){return re._onTooltip(E)},this._optionsService.options.linkTooltipHoverDuration)))},ee.prototype._onTooltip=function(E){this._tooltipTimeout=void 0;var re=this._findZoneEventAt(E);re&&re.tooltipCallback&&re.tooltipCallback(E)},ee.prototype._onMouseDown=function(E){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var re=this._findZoneEventAt(E);re!=null&&re.willLinkActivate(E)&&(E.preventDefault(),E.stopImmediatePropagation())}},ee.prototype._onMouseLeave=function(E){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},ee.prototype._onClick=function(E){var re=this._findZoneEventAt(E),ce=this._getSelectionLength();re&&ce===this._initialSelectionLength&&(re.clickCallback(E),E.preventDefault(),E.stopImmediatePropagation())},ee.prototype._getSelectionLength=function(){var E=this._selectionService.selectionText;return E?E.length:0},ee.prototype._findZoneEventAt=function(E){var re=this._mouseService.getCoords(E,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(re)for(var ce=re[0],le=re[1],ve=0;ve<this._zones.length;ve++){var Se=this._zones[ve];if(Se.y1===Se.y2){if(le===Se.y1&&ce>=Se.x1&&ce<Se.x2)return Se}else if(le===Se.y1&&ce>=Se.x1||le===Se.y2&&ce<Se.x2||le>Se.y1&&le<Se.y2)return Se}},ee=de([ue(2,ne.IBufferService),ue(3,te.IMouseService),ue(4,te.ISelectionService),ue(5,ne.IOptionsService)],ee)}(ae.Disposable);oe.MouseZoneManager=x},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(ee,E){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ce){re.__proto__=ce}||function(re,ce){for(var le in ce)ce.hasOwnProperty(le)&&(re[le]=ce[le])})(ee,E)},function(ee,E){function re(){this.constructor=ee}ie(ee,E),ee.prototype=E===null?Object.create(E):(re.prototype=E.prototype,new re)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.AccessibilityManager=void 0;var de=y(18),ue=y(11),ae=y(31),se=y(7),te=y(2),ne=y(32),x=y(17),b=function(ee){function E(re,ce){var le=ee.call(this)||this;le._terminal=re,le._renderService=ce,le._liveRegionLineCount=0,le._charsToConsume=[],le._charsToAnnounce="",le._accessibilityTreeRoot=document.createElement("div"),le._accessibilityTreeRoot.classList.add("xterm-accessibility"),le._rowContainer=document.createElement("div"),le._rowContainer.classList.add("xterm-accessibility-tree"),le._rowContainer.setAttribute("role","list"),le._rowElements=[];for(var ve=0;ve<le._terminal.rows;ve++)le._rowElements[ve]=le._createAccessibilityTreeNode(),le._rowContainer.appendChild(le._rowElements[ve]);if(le._topBoundaryFocusListener=function(Se){return le._onBoundaryFocus(Se,0)},le._bottomBoundaryFocusListener=function(Se){return le._onBoundaryFocus(Se,1)},le._rowElements[0].addEventListener("focus",le._topBoundaryFocusListener),le._rowElements[le._rowElements.length-1].addEventListener("focus",le._bottomBoundaryFocusListener),le._refreshRowsDimensions(),le._accessibilityTreeRoot.appendChild(le._rowContainer),le._renderRowsDebouncer=new ae.RenderDebouncer(le._renderRows.bind(le)),le._refreshRows(),le._liveRegion=document.createElement("div"),le._liveRegion.classList.add("live-region"),le._liveRegion.setAttribute("aria-live","assertive"),le._accessibilityTreeRoot.appendChild(le._liveRegion),!le._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return le._terminal.element.insertAdjacentElement("afterbegin",le._accessibilityTreeRoot),le.register(le._renderRowsDebouncer),le.register(le._terminal.onResize(function(Se){return le._onResize(Se.rows)})),le.register(le._terminal.onRender(function(Se){return le._refreshRows(Se.start,Se.end)})),le.register(le._terminal.onScroll(function(){return le._refreshRows()})),le.register(le._terminal.onA11yChar(function(Se){return le._onChar(Se)})),le.register(le._terminal.onLineFeed(function(){return le._onChar(`
|
|
|
`)})),le.register(le._terminal.onA11yTab(function(Se){return le._onTab(Se)})),le.register(le._terminal.onKey(function(Se){return le._onKey(Se.key)})),le.register(le._terminal.onBlur(function(){return le._clearLiveRegion()})),le.register(le._renderService.onDimensionsChange(function(){return le._refreshRowsDimensions()})),le._screenDprMonitor=new ne.ScreenDprMonitor,le.register(le._screenDprMonitor),le._screenDprMonitor.setListener(function(){return le._refreshRowsDimensions()}),le.register(se.addDisposableDomListener(window,"resize",function(){return le._refreshRowsDimensions()})),le}return fe(E,ee),E.prototype.dispose=function(){ee.prototype.dispose.call(this),x.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},E.prototype._onBoundaryFocus=function(re,ce){var le=re.target,ve=this._rowElements[ce===0?1:this._rowElements.length-2];if(le.getAttribute("aria-posinset")!==(ce===0?"1":""+this._terminal.buffer.lines.length)&&re.relatedTarget===ve){var Se,ge;if(ce===0?(Se=le,ge=this._rowElements.pop(),this._rowContainer.removeChild(ge)):(Se=this._rowElements.shift(),ge=le,this._rowContainer.removeChild(Se)),Se.removeEventListener("focus",this._topBoundaryFocusListener),ge.removeEventListener("focus",this._bottomBoundaryFocusListener),ce===0){var _e=this._createAccessibilityTreeNode();this._rowElements.unshift(_e),this._rowContainer.insertAdjacentElement("afterbegin",_e)}else _e=this._createAccessibilityTreeNode(),this._rowElements.push(_e),this._rowContainer.appendChild(_e);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(ce===0?-1:1),this._rowElements[ce===0?1:this._rowElements.length-2].focus(),re.preventDefault(),re.stopImmediatePropagation()}},E.prototype._onResize=function(re){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var ce=this._rowContainer.children.length;ce<this._terminal.rows;ce++)this._rowElements[ce]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[ce]);for(;this._rowElements.length>re;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},E.prototype._createAccessibilityTreeNode=function(){var re=document.createElement("div");return re.setAttribute("role","listitem"),re.tabIndex=-1,this._refreshRowDimensions(re),re},E.prototype._onTab=function(re){for(var ce=0;ce<re;ce++)this._onChar(" ")},E.prototype._onChar=function(re){var ce=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==re&&(this._charsToAnnounce+=re):this._charsToAnnounce+=re,re===`
|
|
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=de.tooMuchOutput)),ue.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){ce._accessibilityTreeRoot.appendChild(ce._liveRegion)},0))},E.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,ue.isMac&&x.removeElementFromParent(this._liveRegion)},E.prototype._onKey=function(re){this._clearLiveRegion(),this._charsToConsume.push(re)},E.prototype._refreshRows=function(re,ce){this._renderRowsDebouncer.refresh(re,ce,this._terminal.rows)},E.prototype._renderRows=function(re,ce){for(var le=this._terminal.buffer,ve=le.lines.length.toString(),Se=re;Se<=ce;Se++){var ge=le.translateBufferLineToString(le.ydisp+Se,!0),_e=(le.ydisp+Se+1).toString(),Ce=this._rowElements[Se];Ce&&(ge.length===0?Ce.innerHTML=" ":Ce.textContent=ge,Ce.setAttribute("aria-posinset",_e),Ce.setAttribute("aria-setsize",ve))}this._announceCharacters()},E.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var re=0;re<this._terminal.rows;re++)this._refreshRowDimensions(this._rowElements[re])}},E.prototype._refreshRowDimensions=function(re){re.style.height=this._renderService.dimensions.actualCellHeight+"px"},E.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},E}(te.Disposable);oe.AccessibilityManager=b},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(le,ve){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Se,ge){Se.__proto__=ge}||function(Se,ge){for(var _e in ge)ge.hasOwnProperty(_e)&&(Se[_e]=ge[_e])})(le,ve)},function(le,ve){function Se(){this.constructor=le}ie(le,ve),le.prototype=ve===null?Object.create(ve):(Se.prototype=ve.prototype,new Se)}),de=this&&this.__decorate||function(le,ve,Se,ge){var _e,Ce=arguments.length,he=Ce<3?ve:ge===null?ge=Object.getOwnPropertyDescriptor(ve,Se):ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(le,ve,Se,ge);else for(var be=le.length-1;be>=0;be--)(_e=le[be])&&(he=(Ce<3?_e(he):Ce>3?_e(ve,Se,he):_e(ve,Se))||he);return Ce>3&&he&&Object.defineProperty(ve,Se,he),he},ue=this&&this.__param||function(le,ve){return function(Se,ge){ve(Se,ge,le)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.DomRenderer=void 0;var ae=y(58),se=y(9),te=y(2),ne=y(5),x=y(1),b=y(0),ee=y(10),E=y(17),re=1,ce=function(le){function ve(Se,ge,_e,Ce,he,be,Ee,Ae,De){var je=le.call(this)||this;return je._colors=Se,je._element=ge,je._screenElement=_e,je._viewportElement=Ce,je._linkifier=he,je._linkifier2=be,je._charSizeService=Ee,je._optionsService=Ae,je._bufferService=De,je._terminalClass=re++,je._rowElements=[],je._rowContainer=document.createElement("div"),je._rowContainer.classList.add("xterm-rows"),je._rowContainer.style.lineHeight="normal",je._rowContainer.setAttribute("aria-hidden","true"),je._refreshRowElements(je._bufferService.cols,je._bufferService.rows),je._selectionContainer=document.createElement("div"),je._selectionContainer.classList.add("xterm-selection"),je._selectionContainer.setAttribute("aria-hidden","true"),je.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},je._updateDimensions(),je._injectCss(),je._rowFactory=new ae.DomRendererRowFactory(document,je._optionsService,je._colors),je._element.classList.add("xterm-dom-renderer-owner-"+je._terminalClass),je._screenElement.appendChild(je._rowContainer),je._screenElement.appendChild(je._selectionContainer),je._linkifier.onShowLinkUnderline(function(Fe){return je._onLinkHover(Fe)}),je._linkifier.onHideLinkUnderline(function(Fe){return je._onLinkLeave(Fe)}),je._linkifier2.onShowLinkUnderline(function(Fe){return je._onLinkHover(Fe)}),je._linkifier2.onHideLinkUnderline(function(Fe){return je._onLinkLeave(Fe)}),je}return fe(ve,le),Object.defineProperty(ve.prototype,"onRequestRedraw",{get:function(){return new b.EventEmitter().event},enumerable:!1,configurable:!0}),ve.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),E.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),le.prototype.dispose.call(this)},ve.prototype._updateDimensions=function(){this.dimensions.scaledCharWidth=this._charSizeService.width*window.devicePixelRatio,this.dimensions.scaledCharHeight=Math.ceil(this._charSizeService.height*window.devicePixelRatio),this.dimensions.scaledCellWidth=this.dimensions.scaledCharWidth+Math.round(this._optionsService.options.letterSpacing),this.dimensions.scaledCellHeight=Math.floor(this.dimensions.scaledCharHeight*this._optionsService.options.lineHeight),this.dimensions.scaledCharLeft=0,this.dimensions.scaledCharTop=0,this.dimensions.scaledCanvasWidth=this.dimensions.scaledCellWidth*this._bufferService.cols,this.dimensions.scaledCanvasHeight=this.dimensions.scaledCellHeight*this._bufferService.rows,this.dimensions.canvasWidth=Math.round(this.dimensions.scaledCanvasWidth/window.devicePixelRatio),this.dimensions.canvasHeight=Math.round(this.dimensions.scaledCanvasHeight/window.devicePixelRatio),this.dimensions.actualCellWidth=this.dimensions.canvasWidth/this._bufferService.cols,this.dimensions.actualCellHeight=this.dimensions.canvasHeight/this._bufferService.rows;for(var Se=0,ge=this._rowElements;Se<ge.length;Se++){var _e=ge[Se];_e.style.width=this.dimensions.canvasWidth+"px",_e.style.height=this.dimensions.actualCellHeight+"px",_e.style.lineHeight=this.dimensions.actualCellHeight+"px",_e.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var Ce=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=Ce,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},ve.prototype.setColors=function(Se){this._colors=Se,this._injectCss()},ve.prototype._injectCss=function(){var Se=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var ge=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";ge+=this._terminalSelector+" span:not(."+ae.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+ae.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+ae.ITALIC_CLASS+" { font-style: italic;}",ge+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",ge+="@keyframes blink_block_"+this._terminalClass+" { 0% { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+"; } 50% { background-color: "+this._colors.cursorAccent.css+"; color: "+this._colors.cursor.css+"; }}",ge+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+ae.CURSOR_CLASS+"."+ae.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ae.CURSOR_CLASS+"."+ae.CURSOR_BLINK_CLASS+":not(."+ae.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ae.CURSOR_CLASS+"."+ae.CURSOR_BLINK_CLASS+"."+ae.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+ae.CURSOR_CLASS+"."+ae.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+ae.CURSOR_CLASS+"."+ae.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+ae.CURSOR_CLASS+"."+ae.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",ge+=this._terminalSelector+" .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}"+this._terminalSelector+" .xterm-selection div { position: absolute; background-color: "+this._colors.selectionTransparent.css+";}",this._colors.ansi.forEach(function(_e,Ce){ge+=Se._terminalSelector+" .xterm-fg-"+Ce+" { color: "+_e.css+"; }"+Se._terminalSelector+" .xterm-bg-"+Ce+" { background-color: "+_e.css+"; }"}),ge+=this._terminalSelector+" .xterm-fg-"+se.INVERTED_DEFAULT_COLOR+" { color: "+ee.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+se.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=ge},ve.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},ve.prototype._refreshRowElements=function(Se,ge){for(var _e=this._rowElements.length;_e<=ge;_e++){var Ce=document.createElement("div");this._rowContainer.appendChild(Ce),this._rowElements.push(Ce)}for(;this._rowElements.length>ge;)this._rowContainer.removeChild(this._rowElements.pop())},ve.prototype.onResize=function(Se,ge){this._refreshRowElements(Se,ge),this._updateDimensions()},ve.prototype.onCharSizeChanged=function(){this._updateDimensions()},ve.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},ve.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},ve.prototype.onSelectionChanged=function(Se,ge,_e){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(Se&&ge){var Ce=Se[1]-this._bufferService.buffer.ydisp,he=ge[1]-this._bufferService.buffer.ydisp,be=Math.max(Ce,0),Ee=Math.min(he,this._bufferService.rows-1);if(!(be>=this._bufferService.rows||Ee<0)){var Ae=document.createDocumentFragment();if(_e)Ae.appendChild(this._createSelectionElement(be,Se[0],ge[0],Ee-be+1));else{var De=Ce===be?Se[0]:0,je=be===Ee?ge[0]:this._bufferService.cols;Ae.appendChild(this._createSelectionElement(be,De,je));var Fe=Ee-be-1;if(Ae.appendChild(this._createSelectionElement(be+1,0,this._bufferService.cols,Fe)),be!==Ee){var Re=he===Ee?ge[0]:this._bufferService.cols;Ae.appendChild(this._createSelectionElement(Ee,0,Re))}}this._selectionContainer.appendChild(Ae)}}},ve.prototype._createSelectionElement=function(Se,ge,_e,Ce){Ce===void 0&&(Ce=1);var he=document.createElement("div");return he.style.height=Ce*this.dimensions.actualCellHeight+"px",he.style.top=Se*this.dimensions.actualCellHeight+"px",he.style.left=ge*this.dimensions.actualCellWidth+"px",he.style.width=this.dimensions.actualCellWidth*(_e-ge)+"px",he},ve.prototype.onCursorMove=function(){},ve.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},ve.prototype.clear=function(){for(var Se=0,ge=this._rowElements;Se<ge.length;Se++)ge[Se].innerHTML=""},ve.prototype.renderRows=function(Se,ge){for(var _e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,Ce=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),he=this._optionsService.options.cursorBlink,be=Se;be<=ge;be++){var Ee=this._rowElements[be];Ee.innerHTML="";var Ae=be+this._bufferService.buffer.ydisp,De=this._bufferService.buffer.lines.get(Ae),je=this._optionsService.options.cursorStyle;Ee.appendChild(this._rowFactory.createRow(De,Ae===_e,je,Ce,he,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(ve.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),ve.prototype.registerCharacterJoiner=function(Se){return-1},ve.prototype.deregisterCharacterJoiner=function(Se){return!1},ve.prototype._onLinkHover=function(Se){this._setCellUnderline(Se.x1,Se.x2,Se.y1,Se.y2,Se.cols,!0)},ve.prototype._onLinkLeave=function(Se){this._setCellUnderline(Se.x1,Se.x2,Se.y1,Se.y2,Se.cols,!1)},ve.prototype._setCellUnderline=function(Se,ge,_e,Ce,he,be){for(;Se!==ge||_e!==Ce;){var Ee=this._rowElements[_e];if(!Ee)return;var Ae=Ee.children[Se];Ae&&(Ae.style.textDecoration=be?"underline":"none"),++Se>=he&&(Se=0,_e++)}},ve=de([ue(6,ne.ICharSizeService),ue(7,x.IOptionsService),ue(8,x.IBufferService)],ve)}(te.Disposable);oe.DomRenderer=ce},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.DomRendererRowFactory=oe.CURSOR_STYLE_UNDERLINE_CLASS=oe.CURSOR_STYLE_BAR_CLASS=oe.CURSOR_STYLE_BLOCK_CLASS=oe.CURSOR_BLINK_CLASS=oe.CURSOR_CLASS=oe.UNDERLINE_CLASS=oe.ITALIC_CLASS=oe.DIM_CLASS=oe.BOLD_CLASS=void 0;var ie=y(9),fe=y(3),de=y(4),ue=y(10);oe.BOLD_CLASS="xterm-bold",oe.DIM_CLASS="xterm-dim",oe.ITALIC_CLASS="xterm-italic",oe.UNDERLINE_CLASS="xterm-underline",oe.CURSOR_CLASS="xterm-cursor",oe.CURSOR_BLINK_CLASS="xterm-cursor-blink",oe.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",oe.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",oe.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var ae=function(){function te(ne,x,b){this._document=ne,this._optionsService=x,this._colors=b,this._workCell=new de.CellData}return te.prototype.setColors=function(ne){this._colors=ne},te.prototype.createRow=function(ne,x,b,ee,E,re,ce){for(var le=this._document.createDocumentFragment(),ve=0,Se=Math.min(ne.length,ce)-1;Se>=0;Se--)if(ne.loadCell(Se,this._workCell).getCode()!==fe.NULL_CELL_CODE||x&&Se===ee){ve=Se+1;break}for(Se=0;Se<ve;Se++){ne.loadCell(Se,this._workCell);var ge=this._workCell.getWidth();if(ge!==0){var _e=this._document.createElement("span");if(ge>1&&(_e.style.width=re*ge+"px"),x&&Se===ee)switch(_e.classList.add(oe.CURSOR_CLASS),E&&_e.classList.add(oe.CURSOR_BLINK_CLASS),b){case"bar":_e.classList.add(oe.CURSOR_STYLE_BAR_CLASS);break;case"underline":_e.classList.add(oe.CURSOR_STYLE_UNDERLINE_CLASS);break;default:_e.classList.add(oe.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&_e.classList.add(oe.BOLD_CLASS),this._workCell.isItalic()&&_e.classList.add(oe.ITALIC_CLASS),this._workCell.isDim()&&_e.classList.add(oe.DIM_CLASS),this._workCell.isUnderline()&&_e.classList.add(oe.UNDERLINE_CLASS),this._workCell.isInvisible()?_e.textContent=fe.WHITESPACE_CELL_CHAR:_e.textContent=this._workCell.getChars()||fe.WHITESPACE_CELL_CHAR;var Ce=this._workCell.getFgColor(),he=this._workCell.getFgColorMode(),be=this._workCell.getBgColor(),Ee=this._workCell.getBgColorMode(),Ae=!!this._workCell.isInverse();if(Ae){var De=Ce;Ce=be,be=De;var je=he;he=Ee,Ee=je}switch(he){case 16777216:case 33554432:this._workCell.isBold()&&Ce<8&&this._optionsService.options.drawBoldTextInBrightColors&&(Ce+=8),this._applyMinimumContrast(_e,this._colors.background,this._colors.ansi[Ce])||_e.classList.add("xterm-fg-"+Ce);break;case 50331648:var Fe=ue.rgba.toColor(Ce>>16&255,Ce>>8&255,255&Ce);this._applyMinimumContrast(_e,this._colors.background,Fe)||this._addStyle(_e,"color:#"+se(Ce.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(_e,this._colors.background,this._colors.foreground)||Ae&&_e.classList.add("xterm-fg-"+ie.INVERTED_DEFAULT_COLOR)}switch(Ee){case 16777216:case 33554432:_e.classList.add("xterm-bg-"+be);break;case 50331648:this._addStyle(_e,"background-color:#"+se(be.toString(16),"0",6));break;case 0:default:Ae&&_e.classList.add("xterm-bg-"+ie.INVERTED_DEFAULT_COLOR)}le.appendChild(_e)}}return le},te.prototype._applyMinimumContrast=function(ne,x,b){if(this._optionsService.options.minimumContrastRatio===1)return!1;var ee=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return ee===void 0&&(ee=ue.color.ensureContrastRatio(x,b,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,ee!=null?ee:null)),!!ee&&(this._addStyle(ne,"color:"+ee.css),!0)},te.prototype._addStyle=function(ne,x){ne.setAttribute("style",""+(ne.getAttribute("style")||"")+x+";")},te}();function se(te,ne,x){for(;te.length<x;)te=ne+te;return te}oe.DomRendererRowFactory=ae},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.evaluateKeyboardEvent=void 0;var ie=y(12),fe={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};oe.evaluateKeyboardEvent=function(de,ue,ae,se){var te={type:0,cancel:!1,key:void 0},ne=(de.shiftKey?1:0)|(de.altKey?2:0)|(de.ctrlKey?4:0)|(de.metaKey?8:0);switch(de.keyCode){case 0:de.key==="UIKeyInputUpArrow"?te.key=ue?ie.C0.ESC+"OA":ie.C0.ESC+"[A":de.key==="UIKeyInputLeftArrow"?te.key=ue?ie.C0.ESC+"OD":ie.C0.ESC+"[D":de.key==="UIKeyInputRightArrow"?te.key=ue?ie.C0.ESC+"OC":ie.C0.ESC+"[C":de.key==="UIKeyInputDownArrow"&&(te.key=ue?ie.C0.ESC+"OB":ie.C0.ESC+"[B");break;case 8:if(de.shiftKey){te.key=ie.C0.BS;break}if(de.altKey){te.key=ie.C0.ESC+ie.C0.DEL;break}te.key=ie.C0.DEL;break;case 9:if(de.shiftKey){te.key=ie.C0.ESC+"[Z";break}te.key=ie.C0.HT,te.cancel=!0;break;case 13:te.key=de.altKey?ie.C0.ESC+ie.C0.CR:ie.C0.CR,te.cancel=!0;break;case 27:te.key=ie.C0.ESC,de.altKey&&(te.key=ie.C0.ESC+ie.C0.ESC),te.cancel=!0;break;case 37:if(de.metaKey)break;ne?(te.key=ie.C0.ESC+"[1;"+(ne+1)+"D",te.key===ie.C0.ESC+"[1;3D"&&(te.key=ie.C0.ESC+(ae?"b":"[1;5D"))):te.key=ue?ie.C0.ESC+"OD":ie.C0.ESC+"[D";break;case 39:if(de.metaKey)break;ne?(te.key=ie.C0.ESC+"[1;"+(ne+1)+"C",te.key===ie.C0.ESC+"[1;3C"&&(te.key=ie.C0.ESC+(ae?"f":"[1;5C"))):te.key=ue?ie.C0.ESC+"OC":ie.C0.ESC+"[C";break;case 38:if(de.metaKey)break;ne?(te.key=ie.C0.ESC+"[1;"+(ne+1)+"A",ae||te.key!==ie.C0.ESC+"[1;3A"||(te.key=ie.C0.ESC+"[1;5A")):te.key=ue?ie.C0.ESC+"OA":ie.C0.ESC+"[A";break;case 40:if(de.metaKey)break;ne?(te.key=ie.C0.ESC+"[1;"+(ne+1)+"B",ae||te.key!==ie.C0.ESC+"[1;3B"||(te.key=ie.C0.ESC+"[1;5B")):te.key=ue?ie.C0.ESC+"OB":ie.C0.ESC+"[B";break;case 45:de.shiftKey||de.ctrlKey||(te.key=ie.C0.ESC+"[2~");break;case 46:te.key=ne?ie.C0.ESC+"[3;"+(ne+1)+"~":ie.C0.ESC+"[3~";break;case 36:te.key=ne?ie.C0.ESC+"[1;"+(ne+1)+"H":ue?ie.C0.ESC+"OH":ie.C0.ESC+"[H";break;case 35:te.key=ne?ie.C0.ESC+"[1;"+(ne+1)+"F":ue?ie.C0.ESC+"OF":ie.C0.ESC+"[F";break;case 33:de.shiftKey?te.type=2:te.key=ie.C0.ESC+"[5~";break;case 34:de.shiftKey?te.type=3:te.key=ie.C0.ESC+"[6~";break;case 112:te.key=ne?ie.C0.ESC+"[1;"+(ne+1)+"P":ie.C0.ESC+"OP";break;case 113:te.key=ne?ie.C0.ESC+"[1;"+(ne+1)+"Q":ie.C0.ESC+"OQ";break;case 114:te.key=ne?ie.C0.ESC+"[1;"+(ne+1)+"R":ie.C0.ESC+"OR";break;case 115:te.key=ne?ie.C0.ESC+"[1;"+(ne+1)+"S":ie.C0.ESC+"OS";break;case 116:te.key=ne?ie.C0.ESC+"[15;"+(ne+1)+"~":ie.C0.ESC+"[15~";break;case 117:te.key=ne?ie.C0.ESC+"[17;"+(ne+1)+"~":ie.C0.ESC+"[17~";break;case 118:te.key=ne?ie.C0.ESC+"[18;"+(ne+1)+"~":ie.C0.ESC+"[18~";break;case 119:te.key=ne?ie.C0.ESC+"[19;"+(ne+1)+"~":ie.C0.ESC+"[19~";break;case 120:te.key=ne?ie.C0.ESC+"[20;"+(ne+1)+"~":ie.C0.ESC+"[20~";break;case 121:te.key=ne?ie.C0.ESC+"[21;"+(ne+1)+"~":ie.C0.ESC+"[21~";break;case 122:te.key=ne?ie.C0.ESC+"[23;"+(ne+1)+"~":ie.C0.ESC+"[23~";break;case 123:te.key=ne?ie.C0.ESC+"[24;"+(ne+1)+"~":ie.C0.ESC+"[24~";break;default:if(!de.ctrlKey||de.shiftKey||de.altKey||de.metaKey)if(ae&&!se||!de.altKey||de.metaKey)ae&&!de.altKey&&!de.ctrlKey&&de.metaKey?de.keyCode===65&&(te.type=1):de.key&&!de.ctrlKey&&!de.altKey&&!de.metaKey&&de.keyCode>=48&&de.key.length===1?te.key=de.key:de.key&&de.ctrlKey&&de.key==="_"&&(te.key=ie.C0.US);else{var x=fe[de.keyCode],b=x&&x[de.shiftKey?1:0];if(b)te.key=ie.C0.ESC+b;else if(de.keyCode>=65&&de.keyCode<=90){var ee=de.ctrlKey?de.keyCode-64:de.keyCode+32;te.key=ie.C0.ESC+String.fromCharCode(ee)}}else de.keyCode>=65&&de.keyCode<=90?te.key=String.fromCharCode(de.keyCode-64):de.keyCode===32?te.key=ie.C0.NUL:de.keyCode>=51&&de.keyCode<=55?te.key=String.fromCharCode(de.keyCode-51+27):de.keyCode===56?te.key=ie.C0.DEL:de.keyCode===219?te.key=ie.C0.ESC:de.keyCode===220?te.key=ie.C0.FS:de.keyCode===221&&(te.key=ie.C0.GS)}return te}},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(re,ce){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,ve){le.__proto__=ve}||function(le,ve){for(var Se in ve)ve.hasOwnProperty(Se)&&(le[Se]=ve[Se])})(re,ce)},function(re,ce){function le(){this.constructor=re}ie(re,ce),re.prototype=ce===null?Object.create(ce):(le.prototype=ce.prototype,new le)}),de=this&&this.__decorate||function(re,ce,le,ve){var Se,ge=arguments.length,_e=ge<3?ce:ve===null?ve=Object.getOwnPropertyDescriptor(ce,le):ve;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")_e=Reflect.decorate(re,ce,le,ve);else for(var Ce=re.length-1;Ce>=0;Ce--)(Se=re[Ce])&&(_e=(ge<3?Se(_e):ge>3?Se(ce,le,_e):Se(ce,le))||_e);return ge>3&&_e&&Object.defineProperty(ce,le,_e),_e},ue=this&&this.__param||function(re,ce){return function(le,ve){ce(le,ve,re)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.RenderService=void 0;var ae=y(31),se=y(0),te=y(2),ne=y(32),x=y(7),b=y(1),ee=y(5),E=function(re){function ce(le,ve,Se,ge,_e,Ce){var he=re.call(this)||this;if(he._renderer=le,he._rowCount=ve,he._isPaused=!1,he._needsFullRefresh=!1,he._isNextRenderRedrawOnly=!0,he._needsSelectionRefresh=!1,he._canvasWidth=0,he._canvasHeight=0,he._selectionState={start:void 0,end:void 0,columnSelectMode:!1},he._onDimensionsChange=new se.EventEmitter,he._onRender=new se.EventEmitter,he._onRefreshRequest=new se.EventEmitter,he.register({dispose:function(){return he._renderer.dispose()}}),he._renderDebouncer=new ae.RenderDebouncer(function(Ee,Ae){return he._renderRows(Ee,Ae)}),he.register(he._renderDebouncer),he._screenDprMonitor=new ne.ScreenDprMonitor,he._screenDprMonitor.setListener(function(){return he.onDevicePixelRatioChange()}),he.register(he._screenDprMonitor),he.register(Ce.onResize(function(Ee){return he._fullRefresh()})),he.register(ge.onOptionChange(function(){return he._renderer.onOptionsChanged()})),he.register(_e.onCharSizeChange(function(){return he.onCharSizeChanged()})),he._renderer.onRequestRedraw(function(Ee){return he.refreshRows(Ee.start,Ee.end,!0)}),he.register(x.addDisposableDomListener(window,"resize",function(){return he.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var be=new IntersectionObserver(function(Ee){return he._onIntersectionChange(Ee[Ee.length-1])},{threshold:0});be.observe(Se),he.register({dispose:function(){return be.disconnect()}})}return he}return fe(ce,re),Object.defineProperty(ce.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),ce.prototype._onIntersectionChange=function(le){this._isPaused=le.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},ce.prototype.refreshRows=function(le,ve,Se){Se===void 0&&(Se=!1),this._isPaused?this._needsFullRefresh=!0:(Se||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(le,ve,this._rowCount))},ce.prototype._renderRows=function(le,ve){this._renderer.renderRows(le,ve),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:le,end:ve}),this._isNextRenderRedrawOnly=!0},ce.prototype.resize=function(le,ve){this._rowCount=ve,this._fireOnCanvasResize()},ce.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},ce.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},ce.prototype.dispose=function(){re.prototype.dispose.call(this)},ce.prototype.setRenderer=function(le){var ve=this;this._renderer.dispose(),this._renderer=le,this._renderer.onRequestRedraw(function(Se){return ve.refreshRows(Se.start,Se.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},ce.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},ce.prototype.setColors=function(le){this._renderer.setColors(le),this._fullRefresh()},ce.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},ce.prototype.onResize=function(le,ve){this._renderer.onResize(le,ve),this._fullRefresh()},ce.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},ce.prototype.onBlur=function(){this._renderer.onBlur()},ce.prototype.onFocus=function(){this._renderer.onFocus()},ce.prototype.onSelectionChanged=function(le,ve,Se){this._selectionState.start=le,this._selectionState.end=ve,this._selectionState.columnSelectMode=Se,this._renderer.onSelectionChanged(le,ve,Se)},ce.prototype.onCursorMove=function(){this._renderer.onCursorMove()},ce.prototype.clear=function(){this._renderer.clear()},ce.prototype.registerCharacterJoiner=function(le){return this._renderer.registerCharacterJoiner(le)},ce.prototype.deregisterCharacterJoiner=function(le){return this._renderer.deregisterCharacterJoiner(le)},ce=de([ue(3,b.IOptionsService),ue(4,ee.ICharSizeService),ue(5,b.IBufferService)],ce)}(te.Disposable);oe.RenderService=E},function(Tt,oe,y){"use strict";var ie=this&&this.__decorate||function(te,ne,x,b){var ee,E=arguments.length,re=E<3?ne:b===null?b=Object.getOwnPropertyDescriptor(ne,x):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(te,ne,x,b);else for(var ce=te.length-1;ce>=0;ce--)(ee=te[ce])&&(re=(E<3?ee(re):E>3?ee(ne,x,re):ee(ne,x))||re);return E>3&&re&&Object.defineProperty(ne,x,re),re},fe=this&&this.__param||function(te,ne){return function(x,b){ne(x,b,te)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.CharSizeService=void 0;var de=y(1),ue=y(0),ae=function(){function te(ne,x,b){this._optionsService=b,this.width=0,this.height=0,this._onCharSizeChange=new ue.EventEmitter,this._measureStrategy=new se(ne,x,this._optionsService)}return Object.defineProperty(te.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),te.prototype.measure=function(){var ne=this._measureStrategy.measure();ne.width===this.width&&ne.height===this.height||(this.width=ne.width,this.height=ne.height,this._onCharSizeChange.fire())},te=ie([fe(2,de.IOptionsService)],te)}();oe.CharSizeService=ae;var se=function(){function te(ne,x,b){this._document=ne,this._parentElement=x,this._optionsService=b,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}return te.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var ne=this._measureElement.getBoundingClientRect();return ne.width!==0&&ne.height!==0&&(this._result.width=ne.width,this._result.height=Math.ceil(ne.height)),this._result},te}()},function(Tt,oe,y){"use strict";var ie=this&&this.__decorate||function(se,te,ne,x){var b,ee=arguments.length,E=ee<3?te:x===null?x=Object.getOwnPropertyDescriptor(te,ne):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(se,te,ne,x);else for(var re=se.length-1;re>=0;re--)(b=se[re])&&(E=(ee<3?b(E):ee>3?b(te,ne,E):b(te,ne))||E);return ee>3&&E&&Object.defineProperty(te,ne,E),E},fe=this&&this.__param||function(se,te){return function(ne,x){te(ne,x,se)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.MouseService=void 0;var de=y(5),ue=y(30),ae=function(){function se(te,ne){this._renderService=te,this._charSizeService=ne}return se.prototype.getCoords=function(te,ne,x,b,ee){return ue.getCoords(te,ne,x,b,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,ee)},se.prototype.getRawByteCoords=function(te,ne,x,b){var ee=this.getCoords(te,ne,x,b);return ue.getRawByteCoords(ee)},se=ie([fe(0,de.IRenderService),fe(1,de.ICharSizeService)],se)}();oe.MouseService=ae},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(b,ee){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,re){E.__proto__=re}||function(E,re){for(var ce in re)re.hasOwnProperty(ce)&&(E[ce]=re[ce])})(b,ee)},function(b,ee){function E(){this.constructor=b}ie(b,ee),b.prototype=ee===null?Object.create(ee):(E.prototype=ee.prototype,new E)}),de=this&&this.__decorate||function(b,ee,E,re){var ce,le=arguments.length,ve=le<3?ee:re===null?re=Object.getOwnPropertyDescriptor(ee,E):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,ee,E,re);else for(var Se=b.length-1;Se>=0;Se--)(ce=b[Se])&&(ve=(le<3?ce(ve):le>3?ce(ee,E,ve):ce(ee,E))||ve);return le>3&&ve&&Object.defineProperty(ee,E,ve),ve},ue=this&&this.__param||function(b,ee){return function(E,re){ee(E,re,b)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.Linkifier2=void 0;var ae=y(1),se=y(0),te=y(2),ne=y(7),x=function(b){function ee(E){var re=b.call(this)||this;return re._bufferService=E,re._linkProviders=[],re._linkCacheDisposables=[],re._isMouseOut=!0,re._activeLine=-1,re._onShowLinkUnderline=re.register(new se.EventEmitter),re._onHideLinkUnderline=re.register(new se.EventEmitter),re.register(te.getDisposeArrayDisposable(re._linkCacheDisposables)),re}return fe(ee,b),Object.defineProperty(ee.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),ee.prototype.registerLinkProvider=function(E){var re=this;return this._linkProviders.push(E),{dispose:function(){var ce=re._linkProviders.indexOf(E);ce!==-1&&re._linkProviders.splice(ce,1)}}},ee.prototype.attachToDom=function(E,re,ce){var le=this;this._element=E,this._mouseService=re,this._renderService=ce,this.register(ne.addDisposableDomListener(this._element,"mouseleave",function(){le._isMouseOut=!0,le._clearCurrentLink()})),this.register(ne.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(ne.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},ee.prototype._onMouseMove=function(E){if(this._lastMouseEvent=E,this._element&&this._mouseService){var re=this._positionFromMouseEvent(E,this._element,this._mouseService);if(re){this._isMouseOut=!1;for(var ce=E.composedPath(),le=0;le<ce.length;le++){var ve=ce[le];if(ve.classList.contains("xterm"))break;if(ve.classList.contains("xterm-hover"))return}this._lastBufferCell&&re.x===this._lastBufferCell.x&&re.y===this._lastBufferCell.y||(this._onHover(re),this._lastBufferCell=re)}}},ee.prototype._onHover=function(E){if(this._activeLine!==E.y)return this._clearCurrentLink(),void this._askForLink(E,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,E)||(this._clearCurrentLink(),this._askForLink(E,!0))},ee.prototype._askForLink=function(E,re){var ce=this;this._activeProviderReplies&&re||(this._activeProviderReplies=new Map,this._activeLine=E.y);var le=!1;this._linkProviders.forEach(function(ve,Se){var ge;re?!((ge=ce._activeProviderReplies)===null||ge===void 0)&&ge.get(Se)&&(le=ce._checkLinkProviderResult(Se,E,le)):ve.provideLinks(E.y,function(_e){var Ce,he;if(!ce._isMouseOut){var be=_e==null?void 0:_e.map(function(Ee){return{link:Ee}});(Ce=ce._activeProviderReplies)===null||Ce===void 0||Ce.set(Se,be),le=ce._checkLinkProviderResult(Se,E,le),((he=ce._activeProviderReplies)===null||he===void 0?void 0:he.size)===ce._linkProviders.length&&ce._removeIntersectingLinks(E.y,ce._activeProviderReplies)}})})},ee.prototype._removeIntersectingLinks=function(E,re){for(var ce=new Set,le=0;le<re.size;le++){var ve=re.get(le);if(ve)for(var Se=0;Se<ve.length;Se++)for(var ge=ve[Se],_e=ge.link.range.start.y<E?0:ge.link.range.start.x,Ce=ge.link.range.end.y>E?this._bufferService.cols:ge.link.range.end.x,he=_e;he<=Ce;he++){if(ce.has(he)){ve.splice(Se--,1);break}ce.add(he)}}},ee.prototype._checkLinkProviderResult=function(E,re,ce){var le,ve=this;if(!this._activeProviderReplies)return ce;for(var Se=this._activeProviderReplies.get(E),ge=!1,_e=0;_e<E;_e++)this._activeProviderReplies.has(_e)&&!this._activeProviderReplies.get(_e)||(ge=!0);if(!ge&&Se){var Ce=Se.find(function(be){return ve._linkAtPosition(be.link,re)});Ce&&(ce=!0,this._handleNewLink(Ce))}if(this._activeProviderReplies.size===this._linkProviders.length&&!ce)for(_e=0;_e<this._activeProviderReplies.size;_e++){var he=(le=this._activeProviderReplies.get(_e))===null||le===void 0?void 0:le.find(function(be){return ve._linkAtPosition(be.link,re)});if(he){ce=!0,this._handleNewLink(he);break}}return ce},ee.prototype._onClick=function(E){if(this._element&&this._mouseService&&this._currentLink){var re=this._positionFromMouseEvent(E,this._element,this._mouseService);re&&this._linkAtPosition(this._currentLink.link,re)&&this._currentLink.link.activate(E,this._currentLink.link.text)}},ee.prototype._clearCurrentLink=function(E,re){this._element&&this._currentLink&&this._lastMouseEvent&&(!E||!re||this._currentLink.link.range.start.y>=E&&this._currentLink.link.range.end.y<=re)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,te.disposeArray(this._linkCacheDisposables))},ee.prototype._handleNewLink=function(E){var re=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var ce=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);ce&&this._linkAtPosition(E.link,ce)&&(this._currentLink=E,this._currentLink.state={decorations:{underline:E.link.decorations===void 0||E.link.decorations.underline,pointerCursor:E.link.decorations===void 0||E.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,E.link,this._lastMouseEvent),E.link.decorations={},Object.defineProperties(E.link.decorations,{pointerCursor:{get:function(){var le,ve;return(ve=(le=re._currentLink)===null||le===void 0?void 0:le.state)===null||ve===void 0?void 0:ve.decorations.pointerCursor},set:function(le){var ve,Se;!((ve=re._currentLink)===null||ve===void 0)&&ve.state&&re._currentLink.state.decorations.pointerCursor!==le&&(re._currentLink.state.decorations.pointerCursor=le,re._currentLink.state.isHovered&&((Se=re._element)===null||Se===void 0||Se.classList.toggle("xterm-cursor-pointer",le)))}},underline:{get:function(){var le,ve;return(ve=(le=re._currentLink)===null||le===void 0?void 0:le.state)===null||ve===void 0?void 0:ve.decorations.underline},set:function(le){var ve,Se,ge;!((ve=re._currentLink)===null||ve===void 0)&&ve.state&&((ge=(Se=re._currentLink)===null||Se===void 0?void 0:Se.state)===null||ge===void 0?void 0:ge.decorations.underline)!==le&&(re._currentLink.state.decorations.underline=le,re._currentLink.state.isHovered&&re._fireUnderlineEvent(E.link,le))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(le){var ve=le.start===0?0:le.start+1+re._bufferService.buffer.ydisp;re._clearCurrentLink(ve,le.end+1+re._bufferService.buffer.ydisp)})))}},ee.prototype._linkHover=function(E,re,ce){var le;!((le=this._currentLink)===null||le===void 0)&&le.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(re,!0),this._currentLink.state.decorations.pointerCursor&&E.classList.add("xterm-cursor-pointer")),re.hover&&re.hover(ce,re.text)},ee.prototype._fireUnderlineEvent=function(E,re){var ce=E.range,le=this._bufferService.buffer.ydisp,ve=this._createLinkUnderlineEvent(ce.start.x-1,ce.start.y-le-1,ce.end.x,ce.end.y-le-1,void 0);(re?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(ve)},ee.prototype._linkLeave=function(E,re,ce){var le;!((le=this._currentLink)===null||le===void 0)&&le.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(re,!1),this._currentLink.state.decorations.pointerCursor&&E.classList.remove("xterm-cursor-pointer")),re.leave&&re.leave(ce,re.text)},ee.prototype._linkAtPosition=function(E,re){var ce=E.range.start.y===E.range.end.y,le=E.range.start.y<re.y,ve=E.range.end.y>re.y;return(ce&&E.range.start.x<=re.x&&E.range.end.x>=re.x||le&&E.range.end.x>=re.x||ve&&E.range.start.x<=re.x||le&&ve)&&E.range.start.y<=re.y&&E.range.end.y>=re.y},ee.prototype._positionFromMouseEvent=function(E,re,ce){var le=ce.getCoords(E,re,this._bufferService.cols,this._bufferService.rows);if(le)return{x:le[0],y:le[1]+this._bufferService.buffer.ydisp}},ee.prototype._createLinkUnderlineEvent=function(E,re,ce,le,ve){return{x1:E,y1:re,x2:ce,y2:le,cols:this._bufferService.cols,fg:ve}},ee=de([ue(0,ae.IBufferService)],ee)}(te.Disposable);oe.Linkifier2=x},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.CoreBrowserService=void 0;var ie=function(){function fe(de){this._textarea=de}return Object.defineProperty(fe.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),fe}();oe.CoreBrowserService=ie},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(_e,Ce){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(he,be){he.__proto__=be}||function(he,be){for(var Ee in be)be.hasOwnProperty(Ee)&&(he[Ee]=be[Ee])})(_e,Ce)},function(_e,Ce){function he(){this.constructor=_e}ie(_e,Ce),_e.prototype=Ce===null?Object.create(Ce):(he.prototype=Ce.prototype,new he)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.CoreTerminal=void 0;var de=y(2),ue=y(1),ae=y(66),se=y(67),te=y(68),ne=y(74),x=y(75),b=y(0),ee=y(76),E=y(77),re=y(78),ce=y(80),le=y(81),ve=y(19),Se=y(82),ge=function(_e){function Ce(he){var be=_e.call(this)||this;return be._onBinary=new b.EventEmitter,be._onData=new b.EventEmitter,be._onLineFeed=new b.EventEmitter,be._onResize=new b.EventEmitter,be._onScroll=new b.EventEmitter,be._instantiationService=new ae.InstantiationService,be.optionsService=new ne.OptionsService(he),be._instantiationService.setService(ue.IOptionsService,be.optionsService),be._bufferService=be.register(be._instantiationService.createInstance(te.BufferService)),be._instantiationService.setService(ue.IBufferService,be._bufferService),be._logService=be._instantiationService.createInstance(se.LogService),be._instantiationService.setService(ue.ILogService,be._logService),be._coreService=be.register(be._instantiationService.createInstance(x.CoreService,function(){return be.scrollToBottom()})),be._instantiationService.setService(ue.ICoreService,be._coreService),be._coreMouseService=be._instantiationService.createInstance(ee.CoreMouseService),be._instantiationService.setService(ue.ICoreMouseService,be._coreMouseService),be._dirtyRowService=be._instantiationService.createInstance(E.DirtyRowService),be._instantiationService.setService(ue.IDirtyRowService,be._dirtyRowService),be.unicodeService=be._instantiationService.createInstance(re.UnicodeService),be._instantiationService.setService(ue.IUnicodeService,be.unicodeService),be._charsetService=be._instantiationService.createInstance(ce.CharsetService),be._instantiationService.setService(ue.ICharsetService,be._charsetService),be._inputHandler=new ve.InputHandler(be._bufferService,be._charsetService,be._coreService,be._dirtyRowService,be._logService,be.optionsService,be._coreMouseService,be.unicodeService),be.register(b.forwardEvent(be._inputHandler.onLineFeed,be._onLineFeed)),be.register(be._inputHandler),be.register(b.forwardEvent(be._bufferService.onResize,be._onResize)),be.register(b.forwardEvent(be._coreService.onData,be._onData)),be.register(b.forwardEvent(be._coreService.onBinary,be._onBinary)),be.register(be.optionsService.onOptionChange(function(Ee){return be._updateOptions(Ee)})),be._writeBuffer=new Se.WriteBuffer(function(Ee){return be._inputHandler.parse(Ee)}),be}return fe(Ce,_e),Object.defineProperty(Ce.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(Ce.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),Ce.prototype.dispose=function(){var he;this._isDisposed||(_e.prototype.dispose.call(this),(he=this._windowsMode)===null||he===void 0||he.dispose(),this._windowsMode=void 0)},Ce.prototype.write=function(he,be){this._writeBuffer.write(he,be)},Ce.prototype.writeSync=function(he){this._writeBuffer.writeSync(he)},Ce.prototype.resize=function(he,be){isNaN(he)||isNaN(be)||(he=Math.max(he,te.MINIMUM_COLS),be=Math.max(be,te.MINIMUM_ROWS),this._bufferService.resize(he,be))},Ce.prototype.scroll=function(he,be){be===void 0&&(be=!1);var Ee,Ae=this._bufferService.buffer;(Ee=this._cachedBlankLine)&&Ee.length===this.cols&&Ee.getFg(0)===he.fg&&Ee.getBg(0)===he.bg||(Ee=Ae.getBlankLine(he,be),this._cachedBlankLine=Ee),Ee.isWrapped=be;var De=Ae.ybase+Ae.scrollTop,je=Ae.ybase+Ae.scrollBottom;if(Ae.scrollTop===0){var Fe=Ae.lines.isFull;je===Ae.lines.length-1?Fe?Ae.lines.recycle().copyFrom(Ee):Ae.lines.push(Ee.clone()):Ae.lines.splice(je+1,0,Ee.clone()),Fe?this._bufferService.isUserScrolling&&(Ae.ydisp=Math.max(Ae.ydisp-1,0)):(Ae.ybase++,this._bufferService.isUserScrolling||Ae.ydisp++)}else{var Re=je-De+1;Ae.lines.shiftElements(De+1,Re-1,-1),Ae.lines.set(je,Ee.clone())}this._bufferService.isUserScrolling||(Ae.ydisp=Ae.ybase),this._dirtyRowService.markRangeDirty(Ae.scrollTop,Ae.scrollBottom),this._onScroll.fire(Ae.ydisp)},Ce.prototype.scrollLines=function(he,be){var Ee=this._bufferService.buffer;if(he<0){if(Ee.ydisp===0)return;this._bufferService.isUserScrolling=!0}else he+Ee.ydisp>=Ee.ybase&&(this._bufferService.isUserScrolling=!1);var Ae=Ee.ydisp;Ee.ydisp=Math.max(Math.min(Ee.ydisp+he,Ee.ybase),0),Ae!==Ee.ydisp&&(be||this._onScroll.fire(Ee.ydisp))},Ce.prototype.scrollPages=function(he){this.scrollLines(he*(this.rows-1))},Ce.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},Ce.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},Ce.prototype.scrollToLine=function(he){var be=he-this._bufferService.buffer.ydisp;be!==0&&this.scrollLines(be)},Ce.prototype.addEscHandler=function(he,be){return this._inputHandler.addEscHandler(he,be)},Ce.prototype.addDcsHandler=function(he,be){return this._inputHandler.addDcsHandler(he,be)},Ce.prototype.addCsiHandler=function(he,be){return this._inputHandler.addCsiHandler(he,be)},Ce.prototype.addOscHandler=function(he,be){return this._inputHandler.addOscHandler(he,be)},Ce.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},Ce.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},Ce.prototype._updateOptions=function(he){var be;switch(he){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((be=this._windowsMode)===null||be===void 0||be.dispose(),this._windowsMode=void 0)}},Ce.prototype._enableWindowsMode=function(){var he=this;if(!this._windowsMode){var be=[];be.push(this.onLineFeed(le.updateWindowsModeWrappedState.bind(null,this._bufferService))),be.push(this.addCsiHandler({final:"H"},function(){return le.updateWindowsModeWrappedState(he._bufferService),!1})),this._windowsMode={dispose:function(){for(var Ee=0,Ae=be;Ee<Ae.length;Ee++)Ae[Ee].dispose()}}}},Ce}(de.Disposable);oe.CoreTerminal=ge},function(Tt,oe,y){"use strict";var ie=this&&this.__spreadArrays||function(){for(var se=0,te=0,ne=arguments.length;te<ne;te++)se+=arguments[te].length;var x=Array(se),b=0;for(te=0;te<ne;te++)for(var ee=arguments[te],E=0,re=ee.length;E<re;E++,b++)x[b]=ee[E];return x};Object.defineProperty(oe,"__esModule",{value:!0}),oe.InstantiationService=oe.ServiceCollection=void 0;var fe=y(1),de=y(14),ue=function(){function se(){for(var te=[],ne=0;ne<arguments.length;ne++)te[ne]=arguments[ne];this._entries=new Map;for(var x=0,b=te;x<b.length;x++){var ee=b[x],E=ee[0],re=ee[1];this.set(E,re)}}return se.prototype.set=function(te,ne){var x=this._entries.get(te);return this._entries.set(te,ne),x},se.prototype.forEach=function(te){this._entries.forEach(function(ne,x){return te(x,ne)})},se.prototype.has=function(te){return this._entries.has(te)},se.prototype.get=function(te){return this._entries.get(te)},se}();oe.ServiceCollection=ue;var ae=function(){function se(){this._services=new ue,this._services.set(fe.IInstantiationService,this)}return se.prototype.setService=function(te,ne){this._services.set(te,ne)},se.prototype.getService=function(te){return this._services.get(te)},se.prototype.createInstance=function(te){for(var ne=[],x=1;x<arguments.length;x++)ne[x-1]=arguments[x];for(var b=de.getServiceDependencies(te).sort(function(Se,ge){return Se.index-ge.index}),ee=[],E=0,re=b;E<re.length;E++){var ce=re[E],le=this._services.get(ce.id);if(!le)throw new Error("[createInstance] "+te.name+" depends on UNKNOWN service "+ce.id+".");ee.push(le)}var ve=b.length>0?b[0].index:ne.length;if(ne.length!==ve)throw new Error("[createInstance] First service dependency of "+te.name+" at position "+(ve+1)+" conflicts with "+ne.length+" static arguments");return new(te.bind.apply(te,ie([void 0],ie(ne,ee))))},se}();oe.InstantiationService=ae},function(Tt,oe,y){"use strict";var ie=this&&this.__decorate||function(ne,x,b,ee){var E,re=arguments.length,ce=re<3?x:ee===null?ee=Object.getOwnPropertyDescriptor(x,b):ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ce=Reflect.decorate(ne,x,b,ee);else for(var le=ne.length-1;le>=0;le--)(E=ne[le])&&(ce=(re<3?E(ce):re>3?E(x,b,ce):E(x,b))||ce);return re>3&&ce&&Object.defineProperty(x,b,ce),ce},fe=this&&this.__param||function(ne,x){return function(b,ee){x(b,ee,ne)}},de=this&&this.__spreadArrays||function(){for(var ne=0,x=0,b=arguments.length;x<b;x++)ne+=arguments[x].length;var ee=Array(ne),E=0;for(x=0;x<b;x++)for(var re=arguments[x],ce=0,le=re.length;ce<le;ce++,E++)ee[E]=re[ce];return ee};Object.defineProperty(oe,"__esModule",{value:!0}),oe.LogService=oe.LogLevel=void 0;var ue,ae=y(1);(function(ne){ne[ne.DEBUG=0]="DEBUG",ne[ne.INFO=1]="INFO",ne[ne.WARN=2]="WARN",ne[ne.ERROR=3]="ERROR",ne[ne.OFF=4]="OFF"})(ue=oe.LogLevel||(oe.LogLevel={}));var se={debug:ue.DEBUG,info:ue.INFO,warn:ue.WARN,error:ue.ERROR,off:ue.OFF},te=function(){function ne(x){var b=this;this._optionsService=x,this._updateLogLevel(),this._optionsService.onOptionChange(function(ee){ee==="logLevel"&&b._updateLogLevel()})}return ne.prototype._updateLogLevel=function(){this._logLevel=se[this._optionsService.options.logLevel]},ne.prototype._evalLazyOptionalParams=function(x){for(var b=0;b<x.length;b++)typeof x[b]=="function"&&(x[b]=x[b]())},ne.prototype._log=function(x,b,ee){this._evalLazyOptionalParams(ee),x.call.apply(x,de([console,"xterm.js: "+b],ee))},ne.prototype.debug=function(x){for(var b=[],ee=1;ee<arguments.length;ee++)b[ee-1]=arguments[ee];this._logLevel<=ue.DEBUG&&this._log(console.log,x,b)},ne.prototype.info=function(x){for(var b=[],ee=1;ee<arguments.length;ee++)b[ee-1]=arguments[ee];this._logLevel<=ue.INFO&&this._log(console.info,x,b)},ne.prototype.warn=function(x){for(var b=[],ee=1;ee<arguments.length;ee++)b[ee-1]=arguments[ee];this._logLevel<=ue.WARN&&this._log(console.warn,x,b)},ne.prototype.error=function(x){for(var b=[],ee=1;ee<arguments.length;ee++)b[ee-1]=arguments[ee];this._logLevel<=ue.ERROR&&this._log(console.error,x,b)},ne=ie([fe(0,ae.IOptionsService)],ne)}();oe.LogService=te},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(b,ee){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,re){E.__proto__=re}||function(E,re){for(var ce in re)re.hasOwnProperty(ce)&&(E[ce]=re[ce])})(b,ee)},function(b,ee){function E(){this.constructor=b}ie(b,ee),b.prototype=ee===null?Object.create(ee):(E.prototype=ee.prototype,new E)}),de=this&&this.__decorate||function(b,ee,E,re){var ce,le=arguments.length,ve=le<3?ee:re===null?re=Object.getOwnPropertyDescriptor(ee,E):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,ee,E,re);else for(var Se=b.length-1;Se>=0;Se--)(ce=b[Se])&&(ve=(le<3?ce(ve):le>3?ce(ee,E,ve):ce(ee,E))||ve);return le>3&&ve&&Object.defineProperty(ee,E,ve),ve},ue=this&&this.__param||function(b,ee){return function(E,re){ee(E,re,b)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.BufferService=oe.MINIMUM_ROWS=oe.MINIMUM_COLS=void 0;var ae=y(1),se=y(69),te=y(0),ne=y(2);oe.MINIMUM_COLS=2,oe.MINIMUM_ROWS=1;var x=function(b){function ee(E){var re=b.call(this)||this;return re._optionsService=E,re.isUserScrolling=!1,re._onResize=new te.EventEmitter,re.cols=Math.max(E.options.cols,oe.MINIMUM_COLS),re.rows=Math.max(E.options.rows,oe.MINIMUM_ROWS),re.buffers=new se.BufferSet(E,re),re}return fe(ee,b),Object.defineProperty(ee.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),ee.prototype.dispose=function(){b.prototype.dispose.call(this),this.buffers.dispose()},ee.prototype.resize=function(E,re){this.cols=E,this.rows=re,this.buffers.resize(E,re),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:E,rows:re})},ee.prototype.reset=function(){this.buffers.dispose(),this.buffers=new se.BufferSet(this._optionsService,this),this.isUserScrolling=!1},ee=de([ue(0,ae.IOptionsService)],ee)}(ne.Disposable);oe.BufferService=x},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(se,te){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,x){ne.__proto__=x}||function(ne,x){for(var b in x)x.hasOwnProperty(b)&&(ne[b]=x[b])})(se,te)},function(se,te){function ne(){this.constructor=se}ie(se,te),se.prototype=te===null?Object.create(te):(ne.prototype=te.prototype,new ne)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.BufferSet=void 0;var de=y(70),ue=y(0),ae=function(se){function te(ne,x){var b=se.call(this)||this;return b._onBufferActivate=b.register(new ue.EventEmitter),b._normal=new de.Buffer(!0,ne,x),b._normal.fillViewportRows(),b._alt=new de.Buffer(!1,ne,x),b._activeBuffer=b._normal,b.setupTabStops(),b}return fe(te,se),Object.defineProperty(te.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),te.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},te.prototype.activateAltBuffer=function(ne){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(ne),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},te.prototype.resize=function(ne,x){this._normal.resize(ne,x),this._alt.resize(ne,x)},te.prototype.setupTabStops=function(ne){this._normal.setupTabStops(ne),this._alt.setupTabStops(ne)},te}(y(2).Disposable);oe.BufferSet=ae},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.BufferStringIterator=oe.Buffer=oe.MAX_BUFFER_SIZE=void 0;var ie=y(71),fe=y(16),de=y(4),ue=y(3),ae=y(72),se=y(73),te=y(20),ne=y(6);oe.MAX_BUFFER_SIZE=4294967295;var x=function(){function ee(E,re,ce){this._hasScrollback=E,this._optionsService=re,this._bufferService=ce,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=fe.DEFAULT_ATTR_DATA.clone(),this.savedCharset=te.DEFAULT_CHARSET,this.markers=[],this._nullCell=de.CellData.fromCharData([0,ue.NULL_CELL_CHAR,ue.NULL_CELL_WIDTH,ue.NULL_CELL_CODE]),this._whitespaceCell=de.CellData.fromCharData([0,ue.WHITESPACE_CELL_CHAR,ue.WHITESPACE_CELL_WIDTH,ue.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return ee.prototype.getNullCell=function(E){return E?(this._nullCell.fg=E.fg,this._nullCell.bg=E.bg,this._nullCell.extended=E.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new ne.ExtendedAttrs),this._nullCell},ee.prototype.getWhitespaceCell=function(E){return E?(this._whitespaceCell.fg=E.fg,this._whitespaceCell.bg=E.bg,this._whitespaceCell.extended=E.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new ne.ExtendedAttrs),this._whitespaceCell},ee.prototype.getBlankLine=function(E,re){return new fe.BufferLine(this._bufferService.cols,this.getNullCell(E),re)},Object.defineProperty(ee.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"isCursorInViewport",{get:function(){var E=this.ybase+this.y-this.ydisp;return E>=0&&E<this._rows},enumerable:!1,configurable:!0}),ee.prototype._getCorrectBufferLength=function(E){if(!this._hasScrollback)return E;var re=E+this._optionsService.options.scrollback;return re>oe.MAX_BUFFER_SIZE?oe.MAX_BUFFER_SIZE:re},ee.prototype.fillViewportRows=function(E){if(this.lines.length===0){E===void 0&&(E=fe.DEFAULT_ATTR_DATA);for(var re=this._rows;re--;)this.lines.push(this.getBlankLine(E))}},ee.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new ie.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},ee.prototype.resize=function(E,re){var ce=this.getNullCell(fe.DEFAULT_ATTR_DATA),le=this._getCorrectBufferLength(re);if(le>this.lines.maxLength&&(this.lines.maxLength=le),this.lines.length>0){if(this._cols<E)for(var ve=0;ve<this.lines.length;ve++)this.lines.get(ve).resize(E,ce);var Se=0;if(this._rows<re)for(var ge=this._rows;ge<re;ge++)this.lines.length<re+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new fe.BufferLine(E,ce)):this.ybase>0&&this.lines.length<=this.ybase+this.y+Se+1?(this.ybase--,Se++,this.ydisp>0&&this.ydisp--):this.lines.push(new fe.BufferLine(E,ce)));else for(ge=this._rows;ge>re;ge--)this.lines.length>re+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(le<this.lines.maxLength){var _e=this.lines.length-le;_e>0&&(this.lines.trimStart(_e),this.ybase=Math.max(this.ybase-_e,0),this.ydisp=Math.max(this.ydisp-_e,0),this.savedY=Math.max(this.savedY-_e,0)),this.lines.maxLength=le}this.x=Math.min(this.x,E-1),this.y=Math.min(this.y,re-1),Se&&(this.y+=Se),this.savedX=Math.min(this.savedX,E-1),this.scrollTop=0}if(this.scrollBottom=re-1,this._isReflowEnabled&&(this._reflow(E,re),this._cols>E))for(ve=0;ve<this.lines.length;ve++)this.lines.get(ve).resize(E,ce);this._cols=E,this._rows=re},Object.defineProperty(ee.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),ee.prototype._reflow=function(E,re){this._cols!==E&&(E>this._cols?this._reflowLarger(E,re):this._reflowSmaller(E,re))},ee.prototype._reflowLarger=function(E,re){var ce=ae.reflowLargerGetLinesToRemove(this.lines,this._cols,E,this.ybase+this.y,this.getNullCell(fe.DEFAULT_ATTR_DATA));if(ce.length>0){var le=ae.reflowLargerCreateNewLayout(this.lines,ce);ae.reflowLargerApplyNewLayout(this.lines,le.layout),this._reflowLargerAdjustViewport(E,re,le.countRemoved)}},ee.prototype._reflowLargerAdjustViewport=function(E,re,ce){for(var le=this.getNullCell(fe.DEFAULT_ATTR_DATA),ve=ce;ve-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<re&&this.lines.push(new fe.BufferLine(E,le))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-ce,0)},ee.prototype._reflowSmaller=function(E,re){for(var ce=this.getNullCell(fe.DEFAULT_ATTR_DATA),le=[],ve=0,Se=this.lines.length-1;Se>=0;Se--){var ge=this.lines.get(Se);if(!(!ge||!ge.isWrapped&&ge.getTrimmedLength()<=E)){for(var _e=[ge];ge.isWrapped&&Se>0;)ge=this.lines.get(--Se),_e.unshift(ge);var Ce=this.ybase+this.y;if(!(Ce>=Se&&Ce<Se+_e.length)){var he=_e[_e.length-1].getTrimmedLength(),be=ae.reflowSmallerGetNewLineLengths(_e,this._cols,E),Ee=be.length-_e.length,Ae=void 0;Ae=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+Ee):Math.max(0,this.lines.length-this.lines.maxLength+Ee);for(var De=[],je=0;je<Ee;je++){var Fe=this.getBlankLine(fe.DEFAULT_ATTR_DATA,!0);De.push(Fe)}De.length>0&&(le.push({start:Se+_e.length+ve,newLines:De}),ve+=De.length),_e.push.apply(_e,De);var Re=be.length-1,qe=be[Re];qe===0&&(qe=be[--Re]);for(var Je=_e.length-Ee-1,He=he;Je>=0;){var ze=Math.min(He,qe);if(_e[Re].copyCellsFrom(_e[Je],He-ze,qe-ze,ze,!0),(qe-=ze)===0&&(qe=be[--Re]),(He-=ze)===0){Je--;var Qe=Math.max(Je,0);He=ae.getWrappedLineTrimmedLength(_e,Qe,this._cols)}}for(je=0;je<_e.length;je++)be[je]<E&&_e[je].setCell(be[je],ce);for(var $e=Ee-Ae;$e-- >0;)this.ybase===0?this.y<re-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+ve)-re&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+Ee,this.ybase+re-1)}}}if(le.length>0){var ht=[],Ge=[];for(je=0;je<this.lines.length;je++)Ge.push(this.lines.get(je));var Ue=this.lines.length,Ke=Ue-1,et=0,rt=le[et];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+ve);var Xe=0;for(je=Math.min(this.lines.maxLength-1,Ue+ve-1);je>=0;je--)if(rt&&rt.start>Ke+Xe){for(var ut=rt.newLines.length-1;ut>=0;ut--)this.lines.set(je--,rt.newLines[ut]);je++,ht.push({index:Ke+1,amount:rt.newLines.length}),Xe+=rt.newLines.length,rt=le[++et]}else this.lines.set(je,Ge[Ke--]);var lt=0;for(je=ht.length-1;je>=0;je--)ht[je].index+=lt,this.lines.onInsertEmitter.fire(ht[je]),lt+=ht[je].amount;var kt=Math.max(0,Ue+ve-this.lines.maxLength);kt>0&&this.lines.onTrimEmitter.fire(kt)}},ee.prototype.stringIndexToBufferIndex=function(E,re,ce){for(ce===void 0&&(ce=!1);re;){var le=this.lines.get(E);if(!le)return[-1,-1];for(var ve=ce?le.getTrimmedLength():le.length,Se=0;Se<ve;++Se)if(le.get(Se)[ue.CHAR_DATA_WIDTH_INDEX]&&(re-=le.get(Se)[ue.CHAR_DATA_CHAR_INDEX].length||1),re<0)return[E,Se];E++}return[E,0]},ee.prototype.translateBufferLineToString=function(E,re,ce,le){ce===void 0&&(ce=0);var ve=this.lines.get(E);return ve?ve.translateToString(re,ce,le):""},ee.prototype.getWrappedRangeForLine=function(E){for(var re=E,ce=E;re>0&&this.lines.get(re).isWrapped;)re--;for(;ce+1<this.lines.length&&this.lines.get(ce+1).isWrapped;)ce++;return{first:re,last:ce}},ee.prototype.setupTabStops=function(E){for(E!=null?this.tabs[E]||(E=this.prevStop(E)):(this.tabs={},E=0);E<this._cols;E+=this._optionsService.options.tabStopWidth)this.tabs[E]=!0},ee.prototype.prevStop=function(E){for(E==null&&(E=this.x);!this.tabs[--E]&&E>0;);return E>=this._cols?this._cols-1:E<0?0:E},ee.prototype.nextStop=function(E){for(E==null&&(E=this.x);!this.tabs[++E]&&E<this._cols;);return E>=this._cols?this._cols-1:E<0?0:E},ee.prototype.addMarker=function(E){var re=this,ce=new se.Marker(E);return this.markers.push(ce),ce.register(this.lines.onTrim(function(le){ce.line-=le,ce.line<0&&ce.dispose()})),ce.register(this.lines.onInsert(function(le){ce.line>=le.index&&(ce.line+=le.amount)})),ce.register(this.lines.onDelete(function(le){ce.line>=le.index&&ce.line<le.index+le.amount&&ce.dispose(),ce.line>le.index&&(ce.line-=le.amount)})),ce.register(ce.onDispose(function(){return re._removeMarker(ce)})),ce},ee.prototype._removeMarker=function(E){this.markers.splice(this.markers.indexOf(E),1)},ee.prototype.iterator=function(E,re,ce,le,ve){return new b(this,E,re,ce,le,ve)},ee}();oe.Buffer=x;var b=function(){function ee(E,re,ce,le,ve,Se){ce===void 0&&(ce=0),le===void 0&&(le=E.lines.length),ve===void 0&&(ve=0),Se===void 0&&(Se=0),this._buffer=E,this._trimRight=re,this._startIndex=ce,this._endIndex=le,this._startOverscan=ve,this._endOverscan=Se,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return ee.prototype.hasNext=function(){return this._current<this._endIndex},ee.prototype.next=function(){var E=this._buffer.getWrappedRangeForLine(this._current);E.first<this._startIndex-this._startOverscan&&(E.first=this._startIndex-this._startOverscan),E.last>this._endIndex+this._endOverscan&&(E.last=this._endIndex+this._endOverscan),E.first=Math.max(E.first,0),E.last=Math.min(E.last,this._buffer.lines.length);for(var re="",ce=E.first;ce<=E.last;++ce)re+=this._buffer.translateBufferLineToString(ce,this._trimRight);return this._current=E.last+1,{range:E,content:re}},ee}();oe.BufferStringIterator=b},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.CircularList=void 0;var ie=y(0),fe=function(){function de(ue){this._maxLength=ue,this.onDeleteEmitter=new ie.EventEmitter,this.onInsertEmitter=new ie.EventEmitter,this.onTrimEmitter=new ie.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(de.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"maxLength",{get:function(){return this._maxLength},set:function(ue){if(this._maxLength!==ue){for(var ae=new Array(ue),se=0;se<Math.min(ue,this.length);se++)ae[se]=this._array[this._getCyclicIndex(se)];this._array=ae,this._maxLength=ue,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"length",{get:function(){return this._length},set:function(ue){if(ue>this._length)for(var ae=this._length;ae<ue;ae++)this._array[ae]=void 0;this._length=ue},enumerable:!1,configurable:!0}),de.prototype.get=function(ue){return this._array[this._getCyclicIndex(ue)]},de.prototype.set=function(ue,ae){this._array[this._getCyclicIndex(ue)]=ae},de.prototype.push=function(ue){this._array[this._getCyclicIndex(this._length)]=ue,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},de.prototype.recycle=function(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]},Object.defineProperty(de.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),de.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},de.prototype.splice=function(ue,ae){for(var se=[],te=2;te<arguments.length;te++)se[te-2]=arguments[te];if(ae){for(var ne=ue;ne<this._length-ae;ne++)this._array[this._getCyclicIndex(ne)]=this._array[this._getCyclicIndex(ne+ae)];this._length-=ae}for(ne=this._length-1;ne>=ue;ne--)this._array[this._getCyclicIndex(ne+se.length)]=this._array[this._getCyclicIndex(ne)];for(ne=0;ne<se.length;ne++)this._array[this._getCyclicIndex(ue+ne)]=se[ne];if(this._length+se.length>this._maxLength){var x=this._length+se.length-this._maxLength;this._startIndex+=x,this._length=this._maxLength,this.onTrimEmitter.fire(x)}else this._length+=se.length},de.prototype.trimStart=function(ue){ue>this._length&&(ue=this._length),this._startIndex+=ue,this._length-=ue,this.onTrimEmitter.fire(ue)},de.prototype.shiftElements=function(ue,ae,se){if(!(ae<=0)){if(ue<0||ue>=this._length)throw new Error("start argument out of range");if(ue+se<0)throw new Error("Cannot shift elements in list beyond index 0");if(se>0){for(var te=ae-1;te>=0;te--)this.set(ue+te+se,this.get(ue+te));var ne=ue+ae+se-this._length;if(ne>0)for(this._length+=ne;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(te=0;te<ae;te++)this.set(ue+te+se,this.get(ue+te))}},de.prototype._getCyclicIndex=function(ue){return(this._startIndex+ue)%this._maxLength},de}();oe.CircularList=fe},function(Tt,oe,y){"use strict";function ie(fe,de,ue){if(de===fe.length-1)return fe[de].getTrimmedLength();var ae=!fe[de].hasContent(ue-1)&&fe[de].getWidth(ue-1)===1,se=fe[de+1].getWidth(0)===2;return ae&&se?ue-1:ue}Object.defineProperty(oe,"__esModule",{value:!0}),oe.getWrappedLineTrimmedLength=oe.reflowSmallerGetNewLineLengths=oe.reflowLargerApplyNewLayout=oe.reflowLargerCreateNewLayout=oe.reflowLargerGetLinesToRemove=void 0,oe.reflowLargerGetLinesToRemove=function(fe,de,ue,ae,se){for(var te=[],ne=0;ne<fe.length-1;ne++){var x=ne,b=fe.get(++x);if(b.isWrapped){for(var ee=[fe.get(ne)];x<fe.length&&b.isWrapped;)ee.push(b),b=fe.get(++x);if(ae>=ne&&ae<x)ne+=ee.length-1;else{for(var E=0,re=ie(ee,E,de),ce=1,le=0;ce<ee.length;){var ve=ie(ee,ce,de),Se=ve-le,ge=ue-re,_e=Math.min(Se,ge);ee[E].copyCellsFrom(ee[ce],le,re,_e,!1),(re+=_e)===ue&&(E++,re=0),(le+=_e)===ve&&(ce++,le=0),re===0&&E!==0&&ee[E-1].getWidth(ue-1)===2&&(ee[E].copyCellsFrom(ee[E-1],ue-1,re++,1,!1),ee[E-1].setCell(ue-1,se))}ee[E].replaceCells(re,ue,se);for(var Ce=0,he=ee.length-1;he>0&&(he>E||ee[he].getTrimmedLength()===0);he--)Ce++;Ce>0&&(te.push(ne+ee.length-Ce),te.push(Ce)),ne+=ee.length-1}}}return te},oe.reflowLargerCreateNewLayout=function(fe,de){for(var ue=[],ae=0,se=de[ae],te=0,ne=0;ne<fe.length;ne++)if(se===ne){var x=de[++ae];fe.onDeleteEmitter.fire({index:ne-te,amount:x}),ne+=x-1,te+=x,se=de[++ae]}else ue.push(ne);return{layout:ue,countRemoved:te}},oe.reflowLargerApplyNewLayout=function(fe,de){for(var ue=[],ae=0;ae<de.length;ae++)ue.push(fe.get(de[ae]));for(ae=0;ae<ue.length;ae++)fe.set(ae,ue[ae]);fe.length=de.length},oe.reflowSmallerGetNewLineLengths=function(fe,de,ue){for(var ae=[],se=fe.map(function(re,ce){return ie(fe,ce,de)}).reduce(function(re,ce){return re+ce}),te=0,ne=0,x=0;x<se;){if(se-x<ue){ae.push(se-x);break}te+=ue;var b=ie(fe,ne,de);te>b&&(te-=b,ne++);var ee=fe[ne].getWidth(te-1)===2;ee&&te--;var E=ee?ue-1:ue;ae.push(E),x+=E}return ae},oe.getWrappedLineTrimmedLength=ie},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(ae,se){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(te,ne){te.__proto__=ne}||function(te,ne){for(var x in ne)ne.hasOwnProperty(x)&&(te[x]=ne[x])})(ae,se)},function(ae,se){function te(){this.constructor=ae}ie(ae,se),ae.prototype=se===null?Object.create(se):(te.prototype=se.prototype,new te)});Object.defineProperty(oe,"__esModule",{value:!0}),oe.Marker=void 0;var de=y(0),ue=function(ae){function se(te){var ne=ae.call(this)||this;return ne.line=te,ne._id=se._nextId++,ne.isDisposed=!1,ne._onDispose=new de.EventEmitter,ne}return fe(se,ae),Object.defineProperty(se.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(se.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),se.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},se._nextId=1,se}(y(2).Disposable);oe.Marker=ue},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.OptionsService=oe.DEFAULT_OPTIONS=oe.DEFAULT_BELL_SOUND=void 0;var ie=y(0),fe=y(11),de=y(33);oe.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",oe.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:oe.DEFAULT_BELL_SOUND,bellStyle:"none",drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,linkTooltipHoverDuration:500,letterSpacing:0,logLevel:"info",scrollback:1e3,scrollSensitivity:1,screenReaderMode:!1,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!0,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:fe.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var ue=["cols","rows"],ae=function(){function se(te){this._onOptionChange=new ie.EventEmitter,this.options=de.clone(oe.DEFAULT_OPTIONS);for(var ne=0,x=Object.keys(te);ne<x.length;ne++){var b=x[ne];if(b in this.options){var ee=te[b];this.options[b]=ee}}}return Object.defineProperty(se.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),se.prototype.setOption=function(te,ne){if(!(te in oe.DEFAULT_OPTIONS))throw new Error('No option with key "'+te+'"');if(ue.indexOf(te)!==-1)throw new Error('Option "'+te+'" can only be set in the constructor');this.options[te]!==ne&&(ne=this._sanitizeAndValidateOption(te,ne),this.options[te]!==ne&&(this.options[te]=ne,this._onOptionChange.fire(te)))},se.prototype._sanitizeAndValidateOption=function(te,ne){switch(te){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":ne||(ne=oe.DEFAULT_OPTIONS[te]);break;case"cursorWidth":ne=Math.floor(ne);case"lineHeight":case"tabStopWidth":if(ne<1)throw new Error(te+" cannot be less than 1, value: "+ne);break;case"minimumContrastRatio":ne=Math.max(1,Math.min(21,Math.round(10*ne)/10));break;case"scrollback":if((ne=Math.min(ne,4294967295))<0)throw new Error(te+" cannot be less than 0, value: "+ne);break;case"fastScrollSensitivity":case"scrollSensitivity":if(ne<=0)throw new Error(te+" cannot be less than or equal to 0, value: "+ne)}return ne},se.prototype.getOption=function(te){if(!(te in oe.DEFAULT_OPTIONS))throw new Error('No option with key "'+te+'"');return this.options[te]},se}();oe.OptionsService=ae},function(Tt,oe,y){"use strict";var ie,fe=this&&this.__extends||(ie=function(E,re){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,le){ce.__proto__=le}||function(ce,le){for(var ve in le)le.hasOwnProperty(ve)&&(ce[ve]=le[ve])})(E,re)},function(E,re){function ce(){this.constructor=E}ie(E,re),E.prototype=re===null?Object.create(re):(ce.prototype=re.prototype,new ce)}),de=this&&this.__decorate||function(E,re,ce,le){var ve,Se=arguments.length,ge=Se<3?re:le===null?le=Object.getOwnPropertyDescriptor(re,ce):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ge=Reflect.decorate(E,re,ce,le);else for(var _e=E.length-1;_e>=0;_e--)(ve=E[_e])&&(ge=(Se<3?ve(ge):Se>3?ve(re,ce,ge):ve(re,ce))||ge);return Se>3&&ge&&Object.defineProperty(re,ce,ge),ge},ue=this&&this.__param||function(E,re){return function(ce,le){re(ce,le,E)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.CoreService=void 0;var ae=y(1),se=y(0),te=y(33),ne=y(2),x=Object.freeze({insertMode:!1}),b=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),ee=function(E){function re(ce,le,ve,Se){var ge=E.call(this)||this;return ge._bufferService=le,ge._logService=ve,ge._optionsService=Se,ge.isCursorInitialized=!1,ge.isCursorHidden=!1,ge._onData=ge.register(new se.EventEmitter),ge._onUserInput=ge.register(new se.EventEmitter),ge._onBinary=ge.register(new se.EventEmitter),ge._scrollToBottom=ce,ge.register({dispose:function(){return ge._scrollToBottom=void 0}}),ge.modes=te.clone(x),ge.decPrivateModes=te.clone(b),ge}return fe(re,E),Object.defineProperty(re.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),re.prototype.reset=function(){this.modes=te.clone(x),this.decPrivateModes=te.clone(b)},re.prototype.triggerDataEvent=function(ce,le){if(le===void 0&&(le=!1),!this._optionsService.options.disableStdin){var ve=this._bufferService.buffer;ve.ybase!==ve.ydisp&&this._scrollToBottom(),le&&this._onUserInput.fire(),this._logService.debug('sending data "'+ce+'"',function(){return ce.split("").map(function(Se){return Se.charCodeAt(0)})}),this._onData.fire(ce)}},re.prototype.triggerBinaryEvent=function(ce){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+ce+'"',function(){return ce.split("").map(function(le){return le.charCodeAt(0)})}),this._onBinary.fire(ce))},re=de([ue(1,ae.IBufferService),ue(2,ae.ILogService),ue(3,ae.IOptionsService)],re)}(ne.Disposable);oe.CoreService=ee},function(Tt,oe,y){"use strict";var ie=this&&this.__decorate||function(b,ee,E,re){var ce,le=arguments.length,ve=le<3?ee:re===null?re=Object.getOwnPropertyDescriptor(ee,E):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,ee,E,re);else for(var Se=b.length-1;Se>=0;Se--)(ce=b[Se])&&(ve=(le<3?ce(ve):le>3?ce(ee,E,ve):ce(ee,E))||ve);return le>3&&ve&&Object.defineProperty(ee,E,ve),ve},fe=this&&this.__param||function(b,ee){return function(E,re){ee(E,re,b)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.CoreMouseService=void 0;var de=y(1),ue=y(0),ae={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(b){return b.button!==4&&b.action===1&&(b.ctrl=!1,b.alt=!1,b.shift=!1,!0)}},VT200:{events:19,restrict:function(b){return b.action!==32}},DRAG:{events:23,restrict:function(b){return b.action!==32||b.button!==3}},ANY:{events:31,restrict:function(b){return!0}}};function se(b,ee){var E=(b.ctrl?16:0)|(b.shift?4:0)|(b.alt?8:0);return b.button===4?(E|=64,E|=b.action):(E|=3&b.button,4&b.button&&(E|=64),8&b.button&&(E|=128),b.action===32?E|=32:b.action!==0||ee||(E|=3)),E}var te=String.fromCharCode,ne={DEFAULT:function(b){var ee=[se(b,!1)+32,b.col+32,b.row+32];return ee[0]>255||ee[1]>255||ee[2]>255?"":"\x1B[M"+te(ee[0])+te(ee[1])+te(ee[2])},SGR:function(b){var ee=b.action===0&&b.button!==4?"m":"M";return"\x1B[<"+se(b,!0)+";"+b.col+";"+b.row+ee}},x=function(){function b(ee,E){this._bufferService=ee,this._coreService=E,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new ue.EventEmitter,this._lastEvent=null;for(var re=0,ce=Object.keys(ae);re<ce.length;re++){var le=ce[re];this.addProtocol(le,ae[le])}for(var ve=0,Se=Object.keys(ne);ve<Se.length;ve++){var ge=Se[ve];this.addEncoding(ge,ne[ge])}this.reset()}return b.prototype.addProtocol=function(ee,E){this._protocols[ee]=E},b.prototype.addEncoding=function(ee,E){this._encodings[ee]=E},Object.defineProperty(b.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(ee){if(!this._protocols[ee])throw new Error('unknown protocol "'+ee+'"');this._activeProtocol=ee,this._onProtocolChange.fire(this._protocols[ee].events)},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(ee){if(!this._encodings[ee])throw new Error('unknown encoding "'+ee+'"');this._activeEncoding=ee},enumerable:!1,configurable:!0}),b.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(b.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),b.prototype.triggerMouseEvent=function(ee){if(ee.col<0||ee.col>=this._bufferService.cols||ee.row<0||ee.row>=this._bufferService.rows||ee.button===4&&ee.action===32||ee.button===3&&ee.action!==32||ee.button!==4&&(ee.action===2||ee.action===3)||(ee.col++,ee.row++,ee.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,ee))||!this._protocols[this._activeProtocol].restrict(ee))return!1;var E=this._encodings[this._activeEncoding](ee);return E&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(E):this._coreService.triggerDataEvent(E,!0)),this._lastEvent=ee,!0},b.prototype.explainEvents=function(ee){return{down:!!(1&ee),up:!!(2&ee),drag:!!(4&ee),move:!!(8&ee),wheel:!!(16&ee)}},b.prototype._compareEvents=function(ee,E){return ee.col===E.col&&ee.row===E.row&&ee.button===E.button&&ee.action===E.action&&ee.ctrl===E.ctrl&&ee.alt===E.alt&&ee.shift===E.shift},b=ie([fe(0,de.IBufferService),fe(1,de.ICoreService)],b)}();oe.CoreMouseService=x},function(Tt,oe,y){"use strict";var ie=this&&this.__decorate||function(ae,se,te,ne){var x,b=arguments.length,ee=b<3?se:ne===null?ne=Object.getOwnPropertyDescriptor(se,te):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ee=Reflect.decorate(ae,se,te,ne);else for(var E=ae.length-1;E>=0;E--)(x=ae[E])&&(ee=(b<3?x(ee):b>3?x(se,te,ee):x(se,te))||ee);return b>3&&ee&&Object.defineProperty(se,te,ee),ee},fe=this&&this.__param||function(ae,se){return function(te,ne){se(te,ne,ae)}};Object.defineProperty(oe,"__esModule",{value:!0}),oe.DirtyRowService=void 0;var de=y(1),ue=function(){function ae(se){this._bufferService=se,this.clearRange()}return Object.defineProperty(ae.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),ae.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},ae.prototype.markDirty=function(se){se<this._start?this._start=se:se>this._end&&(this._end=se)},ae.prototype.markRangeDirty=function(se,te){if(se>te){var ne=se;se=te,te=ne}se<this._start&&(this._start=se),te>this._end&&(this._end=te)},ae.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},ae=ie([fe(0,de.IBufferService)],ae)}();oe.DirtyRowService=ue},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.UnicodeService=void 0;var ie=y(0),fe=y(79),de=function(){function ue(){this._providers=Object.create(null),this._active="",this._onChange=new ie.EventEmitter;var ae=new fe.UnicodeV6;this.register(ae),this._active=ae.version,this._activeProvider=ae}return Object.defineProperty(ue.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"activeVersion",{get:function(){return this._active},set:function(ae){if(!this._providers[ae])throw new Error('unknown Unicode version "'+ae+'"');this._active=ae,this._activeProvider=this._providers[ae],this._onChange.fire(ae)},enumerable:!1,configurable:!0}),ue.prototype.register=function(ae){this._providers[ae.version]=ae},ue.prototype.wcwidth=function(ae){return this._activeProvider.wcwidth(ae)},ue.prototype.getStringCellWidth=function(ae){for(var se=0,te=ae.length,ne=0;ne<te;++ne){var x=ae.charCodeAt(ne);if(55296<=x&&x<=56319){if(++ne>=te)return se+this.wcwidth(x);var b=ae.charCodeAt(ne);56320<=b&&b<=57343?x=1024*(x-55296)+b-56320+65536:se+=this.wcwidth(b)}se+=this.wcwidth(x)}return se},ue}();oe.UnicodeService=de},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.UnicodeV6=void 0;var ie,fe=y(15),de=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],ue=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],ae=function(){function se(){if(this.version="6",!ie){ie=new Uint8Array(65536),fe.fill(ie,1),ie[0]=0,fe.fill(ie,0,1,32),fe.fill(ie,0,127,160),fe.fill(ie,2,4352,4448),ie[9001]=2,ie[9002]=2,fe.fill(ie,2,11904,42192),ie[12351]=1,fe.fill(ie,2,44032,55204),fe.fill(ie,2,63744,64256),fe.fill(ie,2,65040,65050),fe.fill(ie,2,65072,65136),fe.fill(ie,2,65280,65377),fe.fill(ie,2,65504,65511);for(var te=0;te<de.length;++te)fe.fill(ie,0,de[te][0],de[te][1]+1)}}return se.prototype.wcwidth=function(te){return te<32?0:te<127?1:te<65536?ie[te]:function(ne,x){var b,ee=0,E=x.length-1;if(ne<x[0][0]||ne>x[E][1])return!1;for(;E>=ee;)if(ne>x[b=ee+E>>1][1])ee=b+1;else{if(!(ne<x[b][0]))return!0;E=b-1}return!1}(te,ue)?0:te>=131072&&te<=196605||te>=196608&&te<=262141?2:1},se}();oe.UnicodeV6=ae},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.CharsetService=void 0;var ie=function(){function fe(){this.glevel=0,this._charsets=[]}return fe.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},fe.prototype.setgLevel=function(de){this.glevel=de,this.charset=this._charsets[de]},fe.prototype.setgCharset=function(de,ue){this._charsets[de]=ue,this.glevel===de&&(this.charset=ue)},fe}();oe.CharsetService=ie},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.updateWindowsModeWrappedState=void 0;var ie=y(3);oe.updateWindowsModeWrappedState=function(fe){var de=fe.buffer.lines.get(fe.buffer.ybase+fe.buffer.y-1),ue=de==null?void 0:de.get(fe.cols-1),ae=fe.buffer.lines.get(fe.buffer.ybase+fe.buffer.y);ae&&ue&&(ae.isWrapped=ue[ie.CHAR_DATA_CODE_INDEX]!==ie.NULL_CELL_CODE&&ue[ie.CHAR_DATA_CODE_INDEX]!==ie.WHITESPACE_CELL_CODE)}},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.WriteBuffer=void 0;var ie=function(){function fe(de){this._action=de,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return fe.prototype.writeSync=function(de){if(this._writeBuffer.length){for(var ue=this._bufferOffset;ue<this._writeBuffer.length;++ue){var ae=this._writeBuffer[ue],se=this._callbacks[ue];this._action(ae),se&&se()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(de)},fe.prototype.write=function(de,ue){var ae=this;if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");this._writeBuffer.length||(this._bufferOffset=0,setTimeout(function(){return ae._innerWrite()})),this._pendingData+=de.length,this._writeBuffer.push(de),this._callbacks.push(ue)},fe.prototype._innerWrite=function(){for(var de=this,ue=Date.now();this._writeBuffer.length>this._bufferOffset;){var ae=this._writeBuffer[this._bufferOffset],se=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(ae),this._pendingData-=ae.length,se&&se(),Date.now()-ue>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(function(){return de._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},fe}();oe.WriteBuffer=ie},function(Tt,oe,y){"use strict";Object.defineProperty(oe,"__esModule",{value:!0}),oe.AddonManager=void 0;var ie=function(){function fe(){this._addons=[]}return fe.prototype.dispose=function(){for(var de=this._addons.length-1;de>=0;de--)this._addons[de].instance.dispose()},fe.prototype.loadAddon=function(de,ue){var ae=this,se={instance:ue,dispose:ue.dispose,isDisposed:!1};this._addons.push(se),ue.dispose=function(){return ae._wrappedAddonDispose(se)},ue.activate(de)},fe.prototype._wrappedAddonDispose=function(de){if(!de.isDisposed){for(var ue=-1,ae=0;ae<this._addons.length;ae++)if(this._addons[ae]===de){ue=ae;break}if(ue===-1)throw new Error("Could not dispose an addon that has not been loaded");de.isDisposed=!0,de.dispose.apply(de.instance),this._addons.splice(ue,1)}},fe}();oe.AddonManager=ie}])})},93314:function(rn){"use strict";rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},62522:function(rn){"use strict";rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUYAAABYCAYAAACJfF6vAAAAAXNSR0IArs4c6QAAIABJREFUeF7sXQe4FcXZfmd2T7n90jtYsFGModkVUGNJ7BVTVIxdI5ii/iYmxkRjEhV7ohF7wQaxBqOIxgqCQSkWUKRIv72csjvzP9/M7p7ZPefce8EGhOOD95wt0+ed9yvzDcO2z7YW2NYCm00LNL19cQ/H4j/nEt+vKK38LhtyVWazKdz/UEHY/1Bdt1V1Wwts1i3QMGviGRLyJgAVVFCb4YiykZNe2KwLvZUWbhswbqUdu61aW1YL1L0z4TrG8Cuz1IyxOytH3njOllWTraO024Bx6+jHbbXYglugcfaEC4TErZEqNAN4q2rUpEO24KptsUXfBoxbbNdtK/jW0AINsyfsC2CGlIgzBgGJaRzi9jKeeo2NuDO7NdRxS6zDNmDcEnttW5k32xYYP3XZFADfA6QFsKWTj+2/e7HCyld+azeU1S8AsDOAjxnEGZWjbn7z26rc+H8u/yWEPMti9kV3HdN7+rdVjs0h323AuDn0wrYybDUtMH7a8lsh5QW6Qqxl8rH9yopVrmHWhLMl8HcAL1UK93i21y0N30ZD/Hj66rJYKjMZAid5+T82+dj+J38bZdlc8twGjJtLT2wrx1bRAmc+tWy8ZLhb4yJWTz6mf69CFSO2WF9av5QxLG1w2CH99rmx9dtogDP/uXygFHIqgCG6zOyhxkzf0x4/ibnfRnk2lzy3WGBsmDXhTSkxFAxSAksB9jFneIFZztMVw25Zt7k08Jcpx7p9d6lAPD5BMHkKY/K33V9e8MSXSe+berf+zYmdEZO3VpZUnf6/5od35tTloyTkO15bz5t8bP89CrV7/bsTvg+B+2yOoWUjJq36pvomms/4aStugxTne6A4td/RfU+4ijHxbZVnc8l3SwbGP0ng0gIN6TDgXhv896Wjbli+uTT0xpZj7ZihR0gmJwPoocmH/E33GQv+sLHpfBvP18+eOBFS3sAYplWOnHTst1GGbyvPs5/5oqvjOGphZmBP3X1sv+MLAuOsCVM4w2sVIyfd9m2V1c93/D+XHQWBS7Kl8e8/cGhPsob/z3+2WGCsnz3hcEg8X7QHpUwxxi6uHDXpzi2tl2tG7z4ky8UcAHG/7BJ4vueM+d/fEupSN2viSwzyIAbMqxw1qSBj2hLqsallPGPqshYGlDCGP959TP9fR9ORn1yUaKy1llQ4bCf2LYnQm1q3/5X3tlhgbPrg4h6ilR0NoBJgO0vIsQB2zBuEUl5WvedN121JHbruoKHXCSlNZ986Bjat+4wPztgS6tEwa8JqSUyXyb9VjbzpvC2hzF9lGcdPXbYSQG8p+ZH3HNf32WjaTbMvPsQFP7xq5I2XfJX5bkvrq2uBLRYYC4on7168JxPsCgkcGdxnEFzKMRWjbnrtq2u2rzeltWOHPCKBU1QuDNNjrOXkzi99Wv/15vrVpV4/awL539mc48qKEZOu/upS3jJSGj91+ceA3D4Vk90f/sGA2mip62dPuF5IPNBp1KT/bhk1+t8r5VYFjH73Ncye8CspEbBECTxVPWpSQV3P5tjla8cOeVMCezNgJUtnd+v2xkeNm2M5i5WpbtaEJgaUMc4urxxx45+2pLJ/FWU9Y+qyxUz5MPY7uFB6DbMn/LNy5CSSdrZ9NtMW2CqBUT52otWwXZ80AMtr9wVVoyZpd4TN/LNu/916iZhFRiMLjP22x8sf/H4zL3Je8RpmT3xfSjlUQl5fPeqmX2xp5f+y5R0/bdkqJnDF3cf1J+NZ6FP3/mWdrHT69xUjb7zoy+az7f2vrwW2SmCsfeOCATxmf0ZOWV7TPV01avNfoSXA144d8iSAY6jcUoq9er6y0Hf9+PpGwVeccv27E2+DkOcD7M2qUTfSlrf/mc/oV6S9Q92KVY1Z9H/8pH55vom170w8llbryj1vJN/BbZ/NtAW2SmBsmD3xH1LKM/02t5j8XvnIm/69mfaBKtYXhwwZYbns94A83Ctn4/L6RJcRc+Zscftl62dPHAUp/8gku/1/DQDGP7XiO5KJI+85tn9B16r6WRNulen0b6r3vyNP97g5j89vs2xrxgw5jjGc0W3G/KMYIL+Jsmx1wNjwzoS9JZNvBGyR4f6qkZNO+yYa88vksWbskPcBDDXSeKrHjPlbjF70y9R9a3p3/NSlxyezpdNvP6l7U6F61c+e+EjVyBvHbWqdT3/mi10t1zlTSowF5E4ASwJYx4A5kvEn7L59HrlzBNviFtNi7bF27ODnJZhPFu5Yt1pMGLJw4dcevHfrA8bZE5+QUvqAslzEsHun706q29SB+E29t3bMkMslwzWUH62KEjisx4z5L37d+cvHYKEbZYlyoMJuqXFjpby8NCvczjEeY04qYYML2+ash+uyOMAtBlYGLsshEQNYDC6LcUtWA7Ic4EwIxjizOJjkAsxidJGJCsncwVLCBhhnknFIFWiBQzAOFuiDAbrHyKddswPJpNADlUkwSbsyBJikLWt0X0gmXMaRhbBWMmmtEKBnJHkjuABzIaUEE6SpqBdSNoOLLIfMgCHrZuM1YI4DLh3Eso4U1hqb7nGRzXJHCJltTJSiEYl0Fk5jFp+iBWdDMIaCW+bOfnpl/zuP6rOsUL81vTtxqCvkiVWjJl25Kf3q7cMm9yde7H0GLHGZnHjvMQOe2ZQ8Nrd31o4dulJC9vbLxYAVYHig+8vz/+/rLOtWBYzyldOTDWXVtBE/Ro3GGT+hYuQNpLPb7D9LDt6hqlyUUrTmnTjDn7q9PP/6YoWWr8BGBVhtLUqTtSXlJYmycgi7Ck4sASa7u+lYGWDFmO30hcNLYKE7wBOMsTgYejLJ4hDclpIiRYsqSG4ziVJIZlFUGElgxRnBkCLeGp0UYOuP1MidGzxaujGvqVdzjxf5bqCftyKY+UTTMB7JS89/1pezKO/Q+8wvT2TI0yoU3DMKHVSU6iUlY3AkAS1nrWDCYWA1krEWMAWiDgTWSMgUlzIlpFwvuJuyZXwFIFKIpzOOK1en+x1xmpVe+4ps/M+MkuSGJnRCC4YXB9lo/585bfmVUsqrAKxnDA8I4AMmmC0hhzOGEwB00esH9Zz8e1m834RbjmBkhNxiP6vHDrmCAaZaYi1n1v7dXp738ddZqa0KGGvfmrAdt/CZbjBWXzlyRRfGHt88N8MT9wFY7Us7VKRSg7O9GlsqYGdLIXgP1121I+OpXnDRHdyuZpbsxJjVSQpWCclKmJQ9pFBglpRSJomAqWmv0MDXwtDcMJAp+BGFq2KQYsJQ9Huh3/41Dzl1HxSARq93FHCZMFbovWLXjCnhI6AHZBpqc5/QbR/sdENFytce7Ppp5upEeekSRurhP+Lb/ug3Y2jpNxKly94hMktAm5IMKTCWAU9+zJCth4y3CCHXcJlOwyIWm21yXb4STDaCZ1rSPLH2Bvu2C/YQ//7znuL6Fd0WoIVdpTKXJz42P15hV10Mhis1c1f1md0Fy8b9fPG+q+OVxNSBRhc8ZsHiApylwUorIRprIMuTiv8z4cKVaV0hYUGIVkiXQ4hmSLcesu/2EIsBpDdApnpDDv8CEoMhscBodl0mfwR8KZ0gzZF1Ywf/SoKRzSDOwY/rNuP9uUYXfy1ftypglO9eWtUgUrXekrmyetSkvl9FqylxE4ivWwfLcsFdC6LbWjUog832xOLqllaXV9t2SUZaXTi3ezAZJ5GzJ3N5FzDeFRI9mc07A6ySwA2CE0urUF5FUiQhpS0J49RQ9yjYV1GB/4U08hFws6p1troPRLIcidUfdbxcHqAGOA6pYqZIiQyYbAVjDYDbCMbXCVc0AW7dYj4ocV/ZFUeu4X1I90gagvoRLf+87uQNl7/tSrdFZLJpIeBK+geImJWQkkHINIRwmCsAkYgxtyVLugomShgTMt0kZQLSlRAiDVkhITYkId1WyGoBIco1aKYciIGdIeesgmzsBbluIeSJj+s58k0ZTTreuG0/uVUBI1W1ftYE2mM8jCRAy2Kjyobd+O6mNNZvfwv+i8HlXbK1sifSvNrm8c7cinWyLd6VMbu7xa1qzqxO4LyLBOvCGKohUQnBysBo7Y0OB4PB+ZjnPRPmOLq0Siw1eifKrfw6mbxHsxdTxM3VPPe+yZY01zF5nS61foamIf2NDpIoI/OoapBZsbL65TPYROid/HLk6rOxvDZXyxxiFqqr10u6zY26FypYobbVdfV5ajgvP21SmTbvtD9Klr0HKxUOuZjPbr20aLiwMP+lnggUr6Fcw6QszUtxZ8mlmBffW1eDMTky/Urr8al76rq4XzRKiRop3TrhoEYKd42Q7jrhOGuyWacWqUxNS1OmkWWd1kw6kxbSW/yTQCKblK02kwkJ0ZxlMiGYcAUTMgaZtJtcR0JUuhCuC+E4EM0JuCs6w1UAOQgSV+XkmU2Zk9/kO1sdMDbOnnCClOwByeRKKXF39ahJ10YbVOno0n0rG+viXUsEujPBezLGegsXfTh4HyZZDylkD0antUlUMrBySXrLnOwUiKlqSHrj0pdkc0o5z4ziI1wIMQpN9RBihpV6vknGm4hRNAugTOkE1axStooc8nldHczuQmKsLm8Ah+qL94JWOOZLoAaaUTVDeftlNhE+QCC/jB6squS9awFa5Z4JkMtEMm8FYVRnszlVmbz6UTtoSVbZYAKVQyQ7PwFdB7NP9QoVXAuht7d6+Te9l0nFp1rRu57pviPc8i4o+Wx2MBT9quaqXAB28/oqVy4Fxt7w0gpg0gl7+aqsGZ4qGY9/lVDsWV1osi/tkX0Luzrz0N39Akm0YKCz0APPQEpxwVhKSlnPGKsTUtRIR9RIIdesRo+113e6uef2rR988qMVv56damiuyWRaW9GUTrkMrisgkjakEGUiVmFlU2sbnLIyOCGAfBxkSAsj+TeJeB3Ma6sDxkL1llMGHipS1rGMyb6Q6A3BukOgE5R+jmkLnz+PNvsuM2tYiMN0sOc3y8c2k/q0KZZvXBndss5o3XEUkkvnwG74OsKEtl2e9+L74v7yCWji1Xk9/oOWB3F0y30dGgkEwv8uOQ5TSnVMkCGZ2eLCxiszNnMaIOUGIeU615Fr4IgFaz9fMzXT4NZx28rYaSuTSDRkurXAmROHO5w051sAc9zqgdF9aKffs1b+a9J3RyHFJx8B2QgTigAvFVkymEqUaxVK1385yLRAS0eIhrYCe/YTM02TpAQkMELeTHDPk30NohGQqUh5FJnymZXHMXxx3rc2q+YxlvsgiUi5i+UR1ClCBAtaS6IEt+CKF1ZehfI18CJEJs2yRtQVfhbm2hgdNAER9wh5MfsSpSHjpWjdaS+wdAtKF7+dI+9RYlxkrQus/GZbRHDQJ9rm+Izaghp4Nf5ZejreSB4GlykbjPpcWvcz7JhZGGh9cgO+sE7mxqrrsDA+PHj/qOZ7cWTLg6GeUTRD4LP1S9b9JF3XsiZt8VSpY7c2JxozdiMyS5fCGT0T7ubOGrdqYEw/OmC3WGNinnClct+Jgk1uAhSnCG2Sh0KT9Ute+6bza7e4aoR4ui0PGUMLRQhoDEjx5LyNrU8gxptIv7GJtFsp/4G2EjbvheRn7+VcSc2F0v8uyqqR2mE4eUKh5KM3wFPk7/31VCSaarFcNvAemJM8EKutvqiUdTiq6T7wwu6YRVtwXmJv3F15OVK8DF3dL3DN+h/n1Yu63kk7Tyx/f8WfrCRrjgurWTK7pU42prEOmcGD4JiGyw531zf44FYNjM7kHU9mGf6oJN9eY7T4SuygnX32Za7GhUZ7VEHvqxA9lhcARjsd6LOOfKJg6AWV+42hIywg4gfF7cDMIEW+0h+a7eB9z12LgEGR0RFisKbay9N1hfSSAV0LJ+abdvKXq+KNp97xgDpfS9WeiBvpUJ/+muYnkxrr9SCY9CH2JrUeN795cu3XOmh/iJIKJJbMhVW3us1nzaIEY2MTMFTXMLy05I+x3JXAf9Nf3DyJQOmnTcU5vWKMv5fLjsOUygsRlyncsvqIXN2M14SUi5fPXXluvJQ1Omm3IcOtxngy0WyvrEv3BTLYzHWNWzUwtt65ww/jLn9QEDCaKBiwEV1909Jn8KO8GRoeqznbrX6wLXTK3StkVzRFvVw6+fBTeK5EmYtZp0JMJ1zW8DQKrwy5t3NukhD+hhPaz+IHL9ItEF1L/PIWneO0QYU2uXhGg8A6X2BUBj0YEn/1GxE4D4msyhwkhVYle3qA0Dv+4qDsTLRhxtXpcRI5zYKYsGMODbNvc22Q7bUzrOZa8Ib1hlwabqFC7VK4x8Iek+EeD/VSpA/yx3d0/CkzDQG9t6rnl8m7YtiZaqweuLf6Uvyg8T7skpkXeC+YI4tJ+fnn81b83OWsgUlrQ0yI2qxrN6WbmlpTnZAefifoCJICy/03SAvbyGqrBUbyPUxt6D8+LmJ3amAsNk2LgYffatH32gLAQgAZGi5eosWms5mnDzXR8hXLn7zSPF922sCilD2FaG9RGMkfJpX9wfrtDayaC1m3RN23xlwDlHSFXP8R5Nt/Arjt7XjRrDywDkdTi2KMlQAffhHQZWeIF84DpAO+ywmQiQrPckxT2N/5VoCf1X8KufQlr55ha63GM822Wbch4PtcCvHGNZDrFxVHcMq1/wHgIy4E3CzEa78Daj/xDMvR/or2abElAUBJN10WNw1k/LCaxSCxEE60u7y0IaIXXZK83il2v1Ce7aUV6XAhVi6dv/pKxniNbcu1krs16Ra7wSpraUqvRurxx+FcRdrIzfSzVQLjF8/0LpULM/0qZfx7JeXJmzVe+G4o+X57bfdNeJDkGsznN20xCZ+NRlmFv6eOtgSHffWizLNt2DbSregH65C/ALESiDf/AvH5zHzGyyy1DdkHTJNr5IRDT0Sk3W+H3Qq+y5GQzevh3rs/2K7HwDpIez+JFy6E/PRfHt8mNkZfuQJKxcyyzWFcDpVGgg0aB2vMH3VaC5+EePkXsE57A6wy2BbbZreIT56DeOF8nZ/6FBjK8QpYp/8HLF6uvI3dx44BBM1F3WdR4ZvtdgKsg3V8Y+fRo4F1tJ2DGJX/fI6r+e/7eftSR2jZES6scc+BdR8M8fnrcKf9UJW3raU1l4MpqvsuWDSQuUd8zZEYxnuz4Uy5xmSLhcZVWxDsv5v/np9DWPKSQqxa/uHqaxnnG6SUqzmz1ieYqM3EE42OW9f64C3IbgPGb3BV+OLvKE0vLqt0m53ybj26HF7WKXGzIB//Dn/aY4TRhIo8b8UB2rJMcQzShlNvshP40B+CJavgzv0H0LwmkmAhRuc9YieA8t5qosMmj9sqsEQ5ECsFq9oOfMRZGmhWzgGaVwP0fKwcLFain7dLIT5+FuKNP3lMqwAL8EY+6z4U9slTlbjs/udPkB9OhfWj6WAl2u1DNq7SaRA75RYYidWKqVqQGz6B+9gP9G+FWTofk1cRteSH3gq+sz7fy33tj5CpGlU3PvgUINkJ4oOHgHSt1o1W7wA2+ESwRKVidO67t0O8c6PO23TXNFtTuOD7/Rp8+E91Hm/8GfLd2zSr9T4KchTZlWC7nwbrIL0t17n/IMiaxV7ZuUeFiwwiagdKhPpaJe5lIBzYp78K1nVniMX/gvvPM2kLe2EQz0s60jcl3WDtcwmQqoNMNwKpWv03XQ+01kDWL1eLInNaIZ1WQDiA6xi6QlKH5FQfG8n/iigsik0qBibE6s8/WnujZfO1rovVUsq1Nhc1djbe4LgNLdsNQGZzNsBsVYyRxOc1s5Bsaiov4yzbqUvP6sPKqkomuT4wBh6x5rocFbLDQyb8pM8Pciu0b7jweaOaaDQhTnocvO9IiA+fhvPCxZ4uDUD1AMTO1MfPZB86CnLVewGoqGAwBZTnvkKe9d0H9okPKZFZkmjmZIBsi/7nZsG676Ymslj9AeTaBWBOC2SmFcg0AdlGyEwKsuYTyDV01Ehupc/l6Rl8mAV73D/BegyBbK2Dc/d+sI67D7z3cD3xnbQCAaqnEt/pn3TAynuoeso18+E8eoTB5nLtFtL22iWwTnkesnk1xMuXQ9Z+ohYT6+C/gg08FHBaIeY/Cla9Hfh2YyEzjRCLnoCYdw/QsAygxUehdAH6511jJZ1hETjFyyBXzIb4/FXwXY/yyu2V381CiixYWXewLgP14vLpTA0+6z+EePcOSGJqGuVDIE8AZB9xK1i/vVR5Vds4aUgnpVgzXWexUsjapZBLXoTMpnR/ZBohs9Q3zQqAZZ23xT+AzVw+Kt8uuyB22nRISnvtIr0gJjuBlXWB3LAEYtFUWPv+XAGiyjvTAmQaIFMaRClPd/Ydqj455pj/zWSNftNG4c+fEwFLVg72YclJCrl2xeK1t0DytczCSjCsdaS7oYzH62W8saXvjUizbaJ0sZXlq70uT4S1ZgCSLXVl5Yg51V26Vx9eVpW8MQDG3Lje9IwLEUR/BBFK0mTlcdhH3wk+YB/F3sS7d4OVdVK6OVT0gjX0FK2PW/8J7ZEGEhUaTKaekQcmoYLacbBEJ0iaWG5Ki4WK7nCgtDPi57wDWDbcWXdCLHgCiJcCsSRYvBIgYGhaBbn8zQLOf0YuUsA64ApYo87VmNO4GuK/98PaXx9a6L76B4gPHlQTk0RPWAnIT54D67ITrCNuV6DhPD0ekkT56I6fvJkmgdJuQOt6NaH5/leC9dhdM8QuO4OVds4VjAw0NZ9Ctm7Q4LvybYi3/wzJSDTNbW1U4rHPIGlFIda472UqTfHW9bAO+A34sNM73P/is9fgPDEOMPz/Qi+rRXAK+Hb7dTjN6IPurL/BfY0izhmBQCJmJdZ7BGKnPglZsxTZe8eqvuc7HAL7uLvUGHMeP1UvTKQ+GHsVeN8Reux9+gpYCY29LhAeMLZb0I2nk3lJMinWLl+y/jYKSk9nF4HJNSIrakqteJ1b1tjctxLp/1nGKB8bPBCuHAQpi8aPa7eTog/45jO1rBuj1XVBLlmZjGOJtBt3Um4ZHGdEMmH9lHbG+5+8Po9cMBlgVKj10yjozWAnED/jZQVQSnSNWGwL1pNAzVvh5cq5cB4bFwBjSOw0zSjVA2Af9hc1AVi8RInRsElUToDFEjnQI0bnZgE3o1lMthViyb/hvnylLpsPHqbMQNvKuuyK2OkvBEYN2VqD7B3DwYefDZaogniboqE5YBX9YJ/5uqqW89y5kKvngX/nNCXquXNuU2JbSBzxK+Qp9iSBunpAX6DwhtYxD4JvN0axaLF0plI38O+OV/VQrE1kYe14OFj3QSAdo/PcOQCPhZSFwRY7SlYIFYZRZa1CM3LwwaeCb7e/Bm0Sa0lHyWkxs8Gq+oFV9dELQs2nqlxixbtwFePXuswQ41UXBPiw8WBdd1GirFJfWDEwuwSs1x5gSTIm6Y9ib9TGavGkfPW0cF67HuLtSYEDkKnH87+zHQ5C7IR7FMATawSxQiphSTXEp6/CeeInavFDNoXY+JfAuuwAZ/rlcOdOzhmolH7T15WEtQPqqsf88vWI+Xp5s28LmhKlrFu3vOH5eNKqY3G7JlZi11rxWGOs1G7hiVjGSjBhKck+7Nmw0XgQfYGpEBkL2GkffqmwZF+LKK222z465M9w5cVqj7HpEqbcIjyBxHfV8xCo0IAwLZ0+EwjSMxuFGBhZn10JmRWQGQGRykJkSM/yDXy4hfhPZ6pJIVtrwUq7gFX2gkw1wJ17H9Bap9lOayPsH9wAVlIF57Ub4M6ZrEUwEktVDNZ2PiVdYA0frydGlpgjibQEABQrinR8HmWykmBq4nMNnrEyuO/cCqSKn8Kq2p/biJ3zpmKxxApJj5W9bQ8l9lm7/wjW3hfCfeV3kGs/QOzsWWoyOdN/AT5gP7AdD4Xzr4shl7wQ7LQMgYmBKvaJT4GVddWTlvJ4+FDYR98Lvv1BEIunQ3zwAFDWA/b3rldA4D5/gWLJfNg54AP2V7pS59lzizNs4cA66DrwPqNUu0rhQrxzG8RHTytWb+09AeKDRz0Rlqk2tPf7Jaz9LlEDNHPLd4GWdZ6xyke2In2j+s3XK2rDGuszArEfPQEWU0Fu1Mf98F9wpp2r+4PAkwA5VqbGi0xt0NHjinz4bkcjdvStECvmwvn3FWCl3cAHHwtryLFwFz4N8eGziB11qxKjlZhN8X/XLAQavoBM1UEseRli0TPhyCTtjbUvcV86AulaB3aJDavMhl1qgyUssBhX/2B5BjvfDchD17Z8gUO+JV5TBTu2qAdyOEKBh++AvXBi3e17VGRY9iIwdgwDSE9Cr3wEiSeYFHd0n7mwYKT1rwcYH9h1nJT8YSMoV0GfsHC7FytKIe4U2UDviSAaGAVEVkJkXIi0A2Q1MJq6k0JOLB0dA4XSCd4lJiZcMDcDa9+JsMdeDtm4Bumbh+UsiVIgfv5b4J0GwPnPJDiveae8+vvvPKZVzFxEYiMxFPvAn2uWSOxDKdU99kkskUDTyWgdFgR4lx1VEdN3HQK5blFBCddnDFR+a+S5kM3rEDvmFpVG5ubdwfvvA/u4fyiwdT98Fu7L/4f4+f9VE9B58TLw7Q4E3/lwBfDOi5dCLHzUK1euxXILn0Rs/Fs5dtZSg+zfvwP76HvAdzhYMyLSmxK7SlJgcAoBS0HYaZktA7MTEB8RMBJjzG1xC/WrcBA75gHwHccG3ZN94VeQn0xH7IdTFaMia7vzxGkQa96nOOCwD7wc1t4XqD5M37wH0Oody+I78kf87fP0cb5es6IX4uOfA6vonjesss9eCnfu/XpBUM+TTloTJ27nC1YaDHSfxw67GrJuBdyPXlDMnPUdAWvHMXDnPgCxej5iR1wHsfQNuHMfBMq6qrbjuxwG3nMwnNdvgfPqtR4wdnzaB0+amxk6YIqRjkRrTVYBokX/SmzwhAUe46qeKq57QF4L2vQjiuNCMyJsc881NgVrZ2hdgL83zWbHA6xroflNIr4Q7gk9Zy56O3pfFW3D2xdV2sK2K/e+obbhrUs6WXGMEILIOErHAAAgAElEQVQNqBx1w10dBQzzOfnQoGkyI8Pn5vpwvykJtvdOIJ5JFTSOVisFjKkcMLaXxJe/T8Cko+4TxtnDfozYkddDppuRuW0fSIv0g+VAohLxo28G6zwAYvm7EJ+/qXVp8XKIms/hzrymbT0j8cLv/hix718H6WaQuedoyJYNSomvxGYCRkFHfngiavchSJw9XQPj5CMhV7Ud41NLt5rxxM94GtLJIPvYaYidcDdYvBRi1ftwnrkQrKInYqdM8RjjZRDzH4F99GTwgQcpcMw8cITyGwxEt0gDWwf+BqzrrkqsJQNP5o6hiNH7Ox4Cd+49cF75NVjlAMTPelOD8x17KAOCfdhNsIacAPHhM8g+d64WcYM5Y0weSQB/IVjvYbB2OlTlnn1mAsSCJ2GNOg/2mMu16JhqQPaJ8RCfv4HYIX+ANepM1YbpG4dqXa5qD49ntDVIfANQsjPi46eBd90RYsV/wXsP1Zb9T9+AtcO+yviSuf8UiOUUsFYdzKD/UsT0eDGNk1SMnA8+RvUBklVg8QogSeqUcjjvPUxCP+wxl8KZfQ/ceY9p4F/2NuzRl8P6zgnITr8S7ux/dNAi/uVng3AkUrUOrFILdmkMPGnBImCMW+A2qRMIGDsC0JsOHHXTObKk4Sz+yYCxST1e/uDSgsDYOHviLULKC82bDJhROWrSQZvSRPKBXQ6Dw6YJgUTeqlogQf+ZYnmZ99v8TqsvRdPMEjBqUZoYY6H0o8wv90yuI/LZYW4zYTRNThNw2KlK56P+VfcHq+6riTuJyaQLa2cciGWzkL77CCXqFdt0Rm1kDToa8RPuUCKi+8E0rTMk0VfpHMuV0UWJcMpFpwQsUaqB8f4TFBDnPiHhRF32daykx0uc85LKI33zSFijLwPvNRSZR05F4uyZYCWVQTKZB4+F/GK2Knfs2Mlw339YibrayTxaaa0/IVUQ2+4AxE56BLK1HpnbCRj/AT7we5Ak7jev1+JmdX8tCtct021JTChRAZes/c94wFhk4JCVn5X2QuICHZIzO+0CBagkVtt7XajAUTZ+gezTF0N89h/YR/wF9vAfK/AiYITTkktZScse8EaiuvnAycp7In7a4+DdBkLWLkfm4TOQuOAllUbmiYtgDT0G1i4HQbbUIn3PCZBfzM9593AGnsgBY0hOKusK3mUn5c4k0y1K9UBSAS2MSncqXMQOvRr23ucg+8pfwUo7wd7zTGSmTYC16+Gwdj0Umacugjv/iSKRIwsqsUKt2pakVGh+CUcgVedqxkjidIkHjDELzGOMxXCxmERXDEuimKAKzlm2cRZ/MvURO8WrCHVmA4USlJAlYJjEXPmX7jMXri40fJhii9xaAYo9aH6krK18vroru+qqDii+8pN279v1IubImzuiNivo8UpJRtlzm3KsjreXY4wColUDY9SFOn+y5gNEGDz8X4WQTReS7/p9JE65O3iNDAbMd3amePHL5yg9I4m/1sAD1XNi+Xtw3rxNsUrli9ZSqwHAlF9yKQbfeL+9YB90GcgVhXXdAcyy4Mx9HLJ+mU4r06z0m7HRExUIuO89BueNWyDrV+jJrvwNCwCW0Y0K3PuM0MYh8pGzbCXeypoliP/4SfBee0B89qpya3HnP6aNEF0GQjathnSaQ04nofbWMrtus377IDZuigLCzK0EjHeB73QoxLK34C6aBlbSBfYBv1LGF2fG75Uu1tr9VPA+w+Au+iecZ84L+eapRI3thWoZq+yLxLlvaWB86ly4BNhUAgLmIScp0VoxbikQG/corJ0OVm2Yvml3lZ+pw1KqIaVCNJmpNsCwXsOQOPUesMqeCujTdx2tdrskJ+q8Mw+fBffzt5G8aAZYeTcNjg+cAbGEDFgcFLmdE40INq7nwIrv9n3Ej7lZq06U6oDGOY1t7RLkLn9P6Y7t4eOQefYyWP33hLX7sUg/MA72AZfAGjASaWKp5IIUDK6oySTXL21PPH+QROdMGM6IC6TqXc0YCRiTNniSxGjNGEFHqpljMIquHWZD5qDV/aPdStkvNzwcmwUmf+JKcWfPLgvnsMfhytGj7XprQ//qlz8g61rRD2ucM+E44eIeOgNcG6XYUgb5Ghjuqhw56Y22Xm7vnnvPznfCwVlqS6y5KBWw7oUw0A/p5CtUI3UPdY25eitgJJc6ATframDMeCdJRhi5and1zQSIIp0dvBs5vCkoF9Mg1XMI0LIesrUB9l5nIbbv2Sr97L9+j+ysycp1Bs0bEDvkN4gdcJG65372JpxX/gJ36dtaFCbLYRBsthDhot0lxD457GE/RPwHeveI8/5UOHMeUVZQsorb+5yjxTgp4cx/VgMiufvEyuG88w+4S8idxq+AHz3Hm5jCQfz4v4F16g/33fthj/kleOf+yL78JwUa8cOv0oD79l1w/vNnZfW2Rp4Fe8xlkKveR2bKOL0FzmyfCA4r6bHfnoj/8CllrU3fMhixo++EtfNhcN+7D9kXL1dW4sS570BmWpB9bgJYshL23heDVfeDu3Aask+fF1Y7KCdrhY66X0lHWdEfifP0MM48+VOIj2m3Dj3iwP7BLeB9hmuDFG1R7KH9QGXTeqRu2UNbtf0Atyq8qpd+kI/eTxXb+1y9UMUSui73joNY+jZ47+8g+bOXVXbpyePgfvIy+Pb7ITH+UTA7rnSp2eeuRvY/f8uJ0iRSGztz/Ca0Bh4CRscjrPwv4if/A7xzP2Rn3gixar7yOLCGjYM95Eikp5yL2P4XgvcegtTNByB+8p3gPXZF6u+HQ6x8L5h50V0weSzNuJD/rIdaoWgo+pruZgaXGGODgE1MUTFGW4vSpGMkw4vaiu4fuFbA2u/TGdN7wpzDxrz3iZUqji7A/fysj0//Mnuxg+Eq5/2iDNmGDBtx51d2Jq2krXlryl8RjhyV7+cQgVUTGf1o0d4Yz9vLHwHZoGECxkjiNAGjA6QzoUVSRxQxNMn6FI0gzmA09mJQypBsEyGhweomgNIuiB/1V9hDj1RMIjP9j0qsip94q9qJ0HrtborRWbsdgfhRfwKr0lvgRN0KiKWzkH3tZsg1C4MA3N44038qeiNJohkBrEWGFy/Qge+a47nlKCfibAoyTY7dzcqxWzuC0/e00kHRJCkgSOvqxkpQ8qt5ynKenf5HWMNOVuIhiWlUvviJf4M96Ailn8s89CPIbDOs7fZD7NCrVFu7i19B5vGf0GF6hm+e15IGQPIdRiN+ysMK+NI3D0HsyNtg7XI43PfuR/ZflyoxOnHeO5DZFoiPXoQ15JigO5y5DyA7/Vdg3m4OXRfj+AhvceGdBiJxzqsaGJ8gYHzeD+etfDVjB+efZOrMfRDZ5y4J3Jo0kCr1sbJeB2OZRNjD/ojYfufoR9JNECs+gFyzCJJYe2ln2KN+qO5lX/orBInOrQ2wdjsUsf1+Grh0Zd9+COkpF4KXeuqWaLxK10H8Rw/CHnwEUveeivhxN4BX9oQz7ymIlfPgLnoB9sjTwAeMgjN3CuJHXwekm9B67RAkfz4LvKoXWm/YE3LDZ4EVMjqcQ9ZJv74eMQlNR/90yGKRpbz+VTpGAkYlSlvgSQMYycikHCh8v82INUcNdgMFQ9gQsckYZaWvnOM95tQdwC5YV9DaHEGdoj/b0Xp1NJniz7XevdMOiayc5Qp0UZn5QTr9KClm/UNHcuYmUl5gAq+hAv9h3/1HWfgIFCPAqBo6V8agHP71cFSynAnbfC8qeUSov5oEe56O2H7nKh0PsYv0Uz+H885kWLsdhuQZjypdUMs1g8G67QS56gOgvCeSP31KDVy1Y6XuC7TesJdiACFA9McCsZqBo/VuidYGSNoO5oGe2u2gdqF4/oEkT5COjqzWtnYLYdKBILHY1/3lKYf0BXvoMUiMu0ul1fLXkUj+5EHwnrsh+/odyDz3f0p8jR9yBZz50xTzSZz9HJzXb1NuKLF9ztELwtQL4c5/MvChCw00+pGoQOLM6WCdt1dVFcvegVizSIE3+Q6SzyUZqqzvjPO2txEI/UHrGxtWI/3YjyHXfeT5J1KCBYYyjyFxyiPg2+mzT2T9SmSe/xXkZ68q/RwZf2KjL/UAima6C3fFbLiz71QGGO1W5qVN45ZEaXKKpbHgT9ZkJ5T87FWgtBqp+36ExFHXgnffqc2J4342G86cx5E4/jrd55O+pxzplfHFrIb/3XGUCG71+y7SUy5A/Khr1KJFxh3JY8i+eA3cRc+p7ZKJs/6pnpOuA+fNu5B98x+KyZJhT0kk/sfre/UnSjSKld58zhw7/nej7ASM6UapdYtKlPZ1jCROkyit9alF9YzGfAt8iw0cDaauAZqWjVomxZ7s3E8/+bLI9bUDIxXQuX1H8iF6gjxBQt64QekLLQkGapkoEXonPLOVhEMOvWR8oX8kSqfDBDgiUbfbfnkrqxeJL9pwNMFLLvgXWFlnOB88B9Z1R/BOfZCZfg3E8jkouejfevfFuiXg3QciM/MWiDUfIXnyrQqAMtP/BPez1yE+fyeY5OGy5n5R2rH9zgNL0j5pMq5UALQThYwvcdobnQTI2Vs5EpO/nPZvdBZNR2rySdq/0fuE6kcjULhInvcvWNuNgvv5u2i9ZYya+Fb/YZBNG+DMI7CzdNrxUmVp5VU9VWqpxy6E1W+4EtPJpUc7ufvCldHUUiDxw4dg7UqGlkY1YWlrmwIv2srmLwwBpyWLU1w7S7uO3iMsXDhv3AbnndsVTciBmEpF/Zc49m8hlhnUuXGNcnshVqe2zSlLvrc9UKE0bRZIAyIDd8V7cOdP1fVQHg++OJ1rQWvH0aqdnQ+no+SC6eCd+mtH73gy5Mfov+F+9Bpabz0C9t5nQCz7L8SqBVpCiOsAEXkfK4bSKxaq3VNKd632p3O0/HkkxLpPtIph6NGIfe9y8OreSsep+j1RCrFyPlIPnQGxfknIt7TYwO/I/MifEzo18zrFJ0g1SdjEFAkck1bIXYcCJwWxNc2zfkIFi+KCeTN8jzZDAfKH9gWfPtLupO7AA98IMFI5sjdvfxOAnwUBPyMNaVazrXLnkZxIWymrNLnrBMBIq+TXUc3IEKKgCANGqd7m1X2R/NFdSg/XesuhyrhQdqk+CCnz4l8R/94vlOWz5c97IXHsn2EP+h5Ewxq0Xr+vUsq397H6D0fJRS+qx8joQqxDMUjSlZHxJdUImW5Q+6RlayMSx/wR9q4Hwf3kdbT+jazeOd+/PIpCi/n2+8EefjLcj2fCeW8KEifehtieWiQs9hH1q9Dy51F6H7Cn38ub5T4zJ3eFk25HbOQpSE25UDGf5Kn/AO+1a3tVz92ntr1xL22sCoy5xuiQLuLH/x32d46HWL1IuUbZI37UQReRXDbpx86ES47RKlQj7RPXfoehcajiOHr0R9FK2tViwR52EpKn3KwSa73xEIiWWu1mk01BrP7QA3CPkZKlPmYwX1+soeBrvQajdOJrehFReuKEyq/56sGKxpZe8h+wCu2qR+MoNXmcWoSTZzzkAWUD0lMugrPgaWXo+SY+tLakm0SOLXqMkZy7lbuOdxQ6laXQnI6SU7/MhXBCJcXY3dZFn+poIV/B5+tAjILFkn/vXSpSiXdcIYeoBwosTb6Pc4frFVm61Pj0GCMpf2UrsQsyAhRgLcbxoL7A5OupcirksPycC1yWn6L/LlmDS3/xhlrds7MeRfqRs1UorbLfLVKTsvX2YxA/+mpYfYYi+940pKddirLLZumdMPNfQCsNau98rvyjMnWFrZ6DUfpLvR0v9fBFELWfKdZAaShXHfJzI3ZF3xNlsHY6UCnr3c/nomXSgYox6pS0+5H5Ca4Qg1LRc7jaoZI4+Vbw/t/V7h4UtcXbbkgiqVy3BOl/XQuxZkFuEVLJ5tLWUWw8h1zyv+09FPEDL0DqYTJQ0WTlsLbfG9aAEWDlxB7bXAIhm2uQfeV6r4za4T8YV1638e33QfywK5C69xQV4Yj3GwVr6NHgXQbobZvEeok9q10oxIJt75/e1kdMtvX2AzWLVZsHSJQ29ZjeOPaNMV4ZVPbky7rXaUiedKOSCJqu3A2yaa0qIvO2uAftTu+ppjbkW6/tyOUoccx1iB9wLrJznoCz6EUkx92m+pDGS/aNu8F33A/x0efDefdxpJ/9DWQTHbolQe5DJec8Cd5zF6QeOAvu/GfUTp5ceF9/IvpNZ/aXP0V1LMyctGzuS89d1d9yM4SMoHSagzK+EFv0RWmbaUd2ZZXOjbzo3PfVZ8EjxlyPQofF2GKeYiPYZZ8W39bVYVDRD35jwEiZNV/Xb0Qixl93BWhTbwc/hci9iYi5+8qNQjFGjzUq44tpHY1mGV2XzJN7zYlpPtdGsel8j/OegT1wb8imGqQeOh9IlMDabk/ER+ugDK33nq4mSsn4+zWjvPFg8H7fRfKkG9Qq33Lb0RBLXvPdsyP2SQ/gO/VH+ZXzNA44eqeLzFIg1FbtlEx/lb9bg2KmVp/dwXsMhLtqEVr+NDLHGINN3/4uhNxADwtGXhBcK+HhlTezVVQdan9COo+FFhxR5gzwtoTSrKB3yBldJeHFqNT+MLl9owHAhhcpVRAF3JH+MIcGgR3lYerWaPX0YzIqZmvMArKSKpDSoio5XetAHb7xxRCjA5OngYYhC6NE/IDzkTj2GrWQNF0xEGjx521kTBOKBm46EcUbAeOJNyO+7+lovf+ncOY8BmvnMUiefBN41+08RKMtjwJoqVPO8MQslThN/ygqUHUvZP59PZx5Uw3G3PbCk4OHqDhb7Hd4LhG7TjVD6xb9fwmufBjVzhfl4to+/OgnpDpjO899jzY7WDybzboHlfxq+X86CCgdeqz9knUomY4/lP1Lvz9IsCuUz6H3WiHY8Z0WfEujryA2VxDTwqwajtgiGV8IGGm/NDl4k1U6cCQwGVKYlIcPlw+vf9EhlA8furS83zCUnj8VrLQarfefDWunAxDf+0ehxmm5/Vg4H81E2S9ehfvpW0i/+Fe1wpeMuw2Ztx+A++mb2o3BeMuEBHWnpBolZz4MpBqQnnEzxOfvqhBgjMKRKUtw7qPmfef+yulcttRBNHwRWODNsz18C6F5Ho5ieKZ1sJBjqcGW8vqz4Nwzw3x7NTPdYPIKX0TU8t1ofC8DD1uD1T6MxSrVQrAfPO9bYNUFj1P5MX2D8kWsqH5Zi4E3xckkR3irBLL2cyNqQ35sygAqC5WbMSROuR3pJ3+hw4mprVVxZd22B+4D1nV7ZcBj5bQNkBz8adtk+Py3ltuPg/vRyx778+Ubz5JfcKzlH6fgPxaMEc9dR6fmzxndzrRmppoZrCRXOkZb7XrxQDGWE6VDwytvjfOIQEAnfTlHP8j1PJkU++WyiR1HoI49+Y0Do7yhb4mTBVmptUj9ZT6RiWcaX1zSBRnAGMqmEAn9MuXI+QuBd+qL2N6nI/381bCHnYjS8fcoVkeg5Lz7BFLTLtfmTRLjyMjgR+GhkdSRiDx+OUmUVaPDi5i9UeUvhFi5vavmfA8tH1HSRg+aLgOh0WQ2cqTBDWlUgTO5SxlO04GwZu4aK4ZqJuKFQLUdRtTGbd/xOCiHiooSnEgTRtgQEhdoIL9Z1QFaHsFVeftRf1QjFuk9o5DF9EyKAXtxPGkskFqAouwkCJRpF1aVMmw5C6d7W0U3aqDohzdhvvjAaCu2yLUPY0IDo7JKk7/mpqKP1yycs8X1aB3W7dL1/pkRm1C5wq9satG+VAFar+m1vw02wxHKzVN93J12h6juDN7UCL58MVgTiQHGwAhNDDMsj/+YjsRMrDEkSmc0Y2yrooUE87YEhsKCvOeKpAaSACNLaawEvKKH2gusDCJkfS0AfoXwJupkWIi1RjtBY4tmeUEZjUEdGt8+WQsxKd1KodPjvIzz5kYAbsaREb5jut/aClC07kmLvl5PBCDoiUeBGO31kgeIXnVCTK/QPG1v3hbtrzZHsdniOaaYl5c/sEJKzvDxaiH+71Ok0O4ZjwkZB05pQ60uQ6QkoaHhA1cUZMwxFTX6mnOh0DgvNFfMNizWbH6VPOcGtDYzaGD0wJGs7krHaACjP9iCAhs5hQoeLoHFIQQThycvX6WtkF/x51sBRqpD5g+97hISP6XGFD37wdljn1zVhID14VzwZfoAJhPY2upInzH6ojQFkWAeMAYJFZtFHen5jjR+W7O0vRlcKP3QCPceaKsORXu0HQbV7vIRKZw3C0K7morm7TVu4HiaS0tH7MpRSK3jy2evHWn6dp8phDBFXsp/tI2p4gN+gZhZ/ltRcA4t+iZItlcJ1fdt9KU5NqLjpNgYb29cRt9r73lflG4hpsgDxmgpUZopcPSt0ib2hbiP0Q7RvlDqacYeif/6i1Pba65Nvf+tAWPT/3XvEUvyBeT4LZNlWq/TpTvcgYOB0jJVH+v9WeDL29zSGKp3IEordx2pwo75wNheX0bHUxSQ/d+FxlZHMLWtMekDf1vMpth4b69eZrmLMQF1XWVOu4C8H74hQiWQO6XP45TaUZ+e9Qvti9SBf5oBfjkiGGY79K6y49DqaJBKz0Ibqlu08MYKWbQN2hjd6p22Ot1IP1eTcII5K6wpFhqJdnR2bQwwFpjpHV0nOzpWollsypgnUbq1hcM2gJHHmLcl0NsrHR34HZTZbQv1TjoztPSPNcs3Ffjae6+jXddeOht9X/62c2Vaxpa4UnYNtUcsDnfEAZBduyuLoPXOTLD1RgAMf39mgV5W4yuwSoeBcaML2MEXOsLDOphU6LGNSndTR7yZowdyoTnq6/iKjRLf7cQDRUVkzH/tVdwHV2U00yCrPXeIURieP/5uqejq5E+s9vLpyP0oEBbpgDb7JdpOHVaiGYy5DY1jR6qxuTxDRvLWZgJG2vHClI7Rimu2GPgxmsBoLp7FFizveQtoyDp8YMW1q8kv6Wv5fGvA2Hx5tzMtjn/QRgJzfKufsRjcAw4FKqqAbAbWay+CNdbled3ltR+NLwpUSzvjlPHFAcsa26C8JizEvtpadTsy/wq93xG86ggT9J8pNHcVczN1qF6PtsmiCrIh32iam/pRybc9SZlA0WQXxepWcCSb9TAy6kgbRvG9LWbcXnp590N0yQsGFzzkHQLVluRfTPlnFFrt1S8wNovN+I1qVzMf73sU3Iv1ayGmGF2bouKvn5ZmjB4okvElrv/5sRiVp5XXNu0x3mh9KZSjI3BxxbXrtPf81/D5VoBR/hY8k+k6Kyvk8KKdX1UNMeZw7XOXSYPNmw2+fKnh8qDfDDWavyVQnRwpINNuDhgLjYaCANEBqtAubTDQvhgKb2xnbhSF3NjEizwfHfX+Y+YsNl7VkWg6kHexBztax0LPFSlTB0qT5w9UrBgdLV6QZ97sMhvUG70daS+zEsXqXiidQqhVbJX1N+60lU575TDua8ZIbjqenjHhidHEGGmn6JexStPeIs4Wzt+wfo8Rd+IrC3oTrV6Hxs5X+VDTJVUHWbb1b0e07WAutx8IOdIwyqRagYZ68E8+BL6gwKXhUmmdl9DbXsmXMeOCF2CMAaLSl+jgLbocR0ZkdJkrsOypSwa78Db06kyDm5El3SxPG2kGluNIx+R7dURi0kfr3N5yba4+HahzUJz2qFlBW2sbM69Q3gX6L+d76aVl0J5wfxRwQ2m3zJvmutKhuRONqGO+ZI4hf9AXpXPGOI2CXHRs5bVfcfaQ1zTGBb9dyYruOzUpxthMjJGAkURpDouMLqRnJMqnfPN1gYJ1MpK9/lm4UygGheOIoytvqKN9jl/551thjM0/r35RCBwSuG8YSBV1ixO7DQV2HxbykmdPPw7W0qwNAJHO1g7etCPEA0Y6+6SDzWb2S+F4dW0v1x1hFOFncr/ChKcjKRWrlF/y/DSieYedSvIdqcPt4TuO+PmGW9Usf87ZN1w/cy4Xw1gzVf128RiY/spYjCxG38yvj48MujTR9tA1Ldxjha621WvF26TYiMj1b+F0275aCAML1ye/1n7KbY1Vc0NE/kiQ5EuD1iYtSivWGCfG6OkXaTugxxgDA5Y3IMwRQ76tCmw95NX5eH6vKkAPe6Pkr7X7f5m4i34rN8ye+EdIwSua669iY+5NfePA2PCziv0si7/qio7vZpc9egGDhgCdOgPNTWDTnyuMCurYFR2sVjNGB5y2zKnWNro5mEkFhoC/9Sg4klA/83GP/fDgnrfA4TH0qV+E4Z9PxYilT8D2z1cJXCgKyJN5oqPvh+kvlx4tM5/zv7crn3qVMV1FzLoGLVWorv5N754aeQbMRN1C/PshhPENB5EjH6M+qN6AjkYsVkkVCHgaKoc3IbRrR1SpaoBX0fhZHVhoCrWzaorotCsA737bh9rdbG+vfyPNG4Y+T7wIrQyFdBNmFGcvwbzjM83dRZF0g6YIPM/DiuGgqAXu5y0URh1VW+XGghKlPWBUbNEAxoAxlpVD7rob0LMPUFau31+zGuxVHdw37xPpRosR/5GHV93UoA812sSPfOxEq2G7Pp8B6McYFnGJn200MNKu2LVjBl8Bxn4CyL7dZywoo814HSkTGR2bL6qY4YKNDnZMmMt9Macmv7M8uVStJN7ECzCPnhF0DKYEhTxS4JjRJ/aZm5t0dv6JKvqXz14KSR76nsSTw6/B2zuMC1WzqmUVjpp3NYau0FGh/dTCGw8NB2gDdHLP5FxhwvPGZzFmljmeZVsUXVoi49D5zbnJmnPtzokq+m5OwR+wIH81VuZgcxIauzz0i8Lz2CHlhzq+SfW5vq7/MrjSu0fXKLykMjoztadFvxN+V8UG8zaEUBGD5veu5drULLpn96ZgNPosOKXX1LvDJJ0RoL8zhbbaI1I9R9cBLumMWf+7vk42ALquvkum0qB3PViMUBlzDSkw6HNjKddXuUnmj6Yw7JutnQtgEu13nz371/2ezrmPm3n74zyXSi4YRM79KuBgxujNjZXoBlpznIWFXHPkewOGROkoY/R8GHsD+/wAABucSURBVFUUPPI6OHEcUKLPIwo+ixYA71LovSJqi9woUWW2OWaVrmrYh44t6AgGFXqmftYECh31YHCP4bmNBsa1Y4dMkcBJfiKJDOtc/foH7cfKAlB7QenRMfCpjg6YnQdI5n5LP/1CBTTX7CiwqR1SZJH29ktzP0hBCIAjPhFmAMzIObf+dP37mIfRlOiC9RXbwaXzgI3P7sufwwmzL0PSMYIGm2gbraxZljAa6g0i5pY5owH8r7YlUZIQZJlDayp0YLkKpapOryegAhw6WUEyRsZ/VzCWVYGzGMvScdCS0z04YCwrmHrWEf67HA4kpcOFpANS6Oh6AkDun3ziez4GJ0To4328+cppFkU6L1Qvg1/Qa9625LxQAR1acY2+iIroqkjGGhME3aLzuCRhKEG3Bk9IySm8AZNCOQ1JAZtLWLQzmUnYELC4pO+SwhPFoP/SM+o3h9SnmUgZk3SN4o8JWAS8+tBvLSVFu98HAX8BC4edCW1Nymd3+fipr5htHx2Lhd6JElx/Yvlp5es4cjhSYPs76RhbmizYcdIvMs8iTTtY9QmByir9vcOB3n1Cc0k+Ow1s/froxq/gGbN/6Ts1rhDih1V3ND+8KcAo559f3tgS/1ACfkEcbmH3jQLGNQcPPh6CPeG12Ycc7JLuMz54oSMFkhNR0pQqf8+VcpdgNSgACgUVgtFOLvSeVyi9dVRvC6SAtQoYTZSN0kNTtDAzD6homEc6PIHPuo3AGzudjoV9Dg50n10al+K0189Bz/qP2m8OXxqKgDUxKwZGgOaCSYpImiHwAkNGgGckZMayZLLKcreXHM11sP+bgUX7RDPCoueYSyDImHRIzUrbplQoNg6a6WFG5iMOU+cwqXv6EpEm9Vtdo3vK95o8U9TZPSpJdd3rBvVXNavnjmi+5z/nNwpBrHnNZIfRhgu3vE4/UMDkwW74bfKAiUYeFN47/nUCRg+RVU/4bpT0HD2j/qqDlbyFnMDUg5zgvtbSqKWDnvU4sGKcHqMlMLWYgC0JVIWkqItxLhBnAjEpBJ0NmGASCehTNeNcihiBrQQSBL5Mg2oArCFcizZStBGD8d3+sGz7iY1LyAdGHxR1dDfPj9H3U917HyCbBdatA0jlVVoKLPaCb5vspxDJMOa0zbC0Nd28e7fJ2Og90w2zJt4pIc8ykPeqqj0n/W6jgHH12CFEMY9gwPPdEqnj2AuL24rpFWrn+rNLf8OA39OsjwzhQPGthVb/E9m4X2ANKdRVKh4jBWAmcZrgROrjU/XHTD0navqiRTh3X+AsZoZhWNp1OJ4cdS3WVO2sUo87zThh1qXY4/NnNbL48CIgWZKtI320YCwNsLS00CoZUi7jadholUBGcmJujBidQ/GiiZ35sQY0sAn0yKaPtaQsXReLT81YVoMXkUmLutSSHqPzJqpQXE+zNw10mv7RZJacUWPpe/4z6j0tDWnA01oHDZ7+tZwUl2tQxbsM8KUSEcE0G9UvQ0hSz+lh1LMeYG8sUwyNqQhomkCn2sADPaYDIPpDgwRq4ssKgujQQ2/I+HIitVYAlKo1KLShHlZ+7RmtbNRaOuiPar3gPXVqLEG757/uxaZQ95nWClCHqzw8xqrst8RSIYidyhiXMsEEkkyKJHNRYgkkpZRJLmWJbJX9KdyiytyD5lwFw+ojv9JRBUtunvhVy7VsWJTOCdO5J3OGHOF6xhdijN4/Yosq5okPjF7SbUNuIRkgjCBaXyKvq7yr9bIIuLT5s37Wxb8G2NXGQ29Ujlx5IGOPuxsFjGvGDFnLGLrEhLNjp5kfLu1oIRrPiA9iFp+VldB7/Tbp0/6K5QORYoykY8ySHESEK9fdZtaFiCjdN3MK5eqHCvRC+pEaK4Mknh3xa8wdmgsvtseiKRjzn+tQ0lqraQjN/Z1j9yLGUwQy68p3Kuve/EmTJhpCcpoPNJ3ImOfp3bgHWEpbpvV4ssJJ71LlusfV27HJTZa1wtPzqbWAJAoveoTS21GaaocfAZQPah7AabDTQMaZSz7xckPlrmUPDf7bOQctvfHRoeueXk7vkXJbPavCxitKqQBSKXO4vu9SUCB/xvjPqUb0LBIUstG7bxn3Ff7471Ei3kd/s9RpBRszTOhAP/N5oldueNYH91XN1X1trfF/e3VkLleHNyjAI9BS36mzci2pAFA/o6LvUsQ3RpK2pQBTarDTayp1sgJDyodkdQW66h61jMUYl8wR4MpQS897ek71vgZogliS8VVa6rr3jA+uTLCY/DhzjmKlvjHIDzfJPUUqFc4LY0lo68Uh1opYb6dRVKKOEreO9kk2zZBJaaOLb3ghl2S180XHPw6oTi5NM/eOdr/uVovJtHDdfarvyc5tr4xS/taun1X/R8bwS0Pp8BG33f0rht2idtNsHDCOHUKHEn/aY8YHHQ4ZJk9EvKE8/qoA2ysnc0UUq1Hx1kSnQqgW7T2/JbwDi7QBRusa1bZC5oVlUs95Da7S0AnpPdakqyC2SX+9397ZUvq+vmakoL772+AW7XQEnj/oWqQT+iD6ZKoOw+Y/gt0Wv4AeNYsE286etLz7qOTbA04btrjb6BGjP7nxsX0+u2uRMhkxRpFGKWsFaASQJP4qwCMxWDJlT+qdbbnEYWzeukTiX8rsQUyPnieW6AGpAlHJSFkm6JvUpgR11f+uAM8DRmoZx7Jw28iXftMQ7zWcSTc7aMOLt5308c/+TXilwMsDKfW+B2gK2ChXPz6SoANJlQtFbkT7z3MPTP1QkfSO953AMhxBMjesbbI6ej/NwxjMgU/66uhE8J91BRi9T799TWxagJn3FVgLMFdIRmV3XeoC/WE+2HrMkNLzQdTi9A79ttSSRGBqS+8aMU+PUVIa5IFhWSo6GCdIVODnSjpFlERzbkmLCSa5YpuOBk0Swwm7lDFIU1Ddk3RPA6syJtEt6m7pIGEtzVzu6TZzZ197veF3ivJz9XXYEezRyK1BS8Xp9b4zLpVTNt1XbLZAfGCzD2ieNDfQ6sKU+ExitHbVocp6+kWz13wdfyEcCDqjDWOM9z4H/tvQlN6n3+PwTpMrDJH1syY8Rqaf4K7EJzHGDyoddUOw93qjgHH1mCGLOLC++yvz928Plf37tT+J/55x/IYOVwuAxHdmLbIomKuUD0SFvGECNud9UX+IzamtgdqfUekaSX5R2OOdc+Qw7c7jgV14t4ZWAPqBW4N+8VvK+xvs9PJ/A2go74nnxlyLxQNGh5pHhWZQTDCn9ko6jWsunrnPry3XcTgnzkZ6QEYSSMAg9TUlXYlymdmx0nEuWZOIn5/lzLE0eGrA84Dvk96Hdtll3YtrbQ+k6D49p80KZEohxSXtGtBgR3/p923DX/5VTbzvsVTomGj9+IhPr75kZN1Ta+i3gywVSHWJ7ernY2TXNT5kdTA3XobuW/khZ0LPuvnM0NcKk/Uia9i5VLoZIEumJe8T5KUKlitUNmU8Q+n4t/1n6Lx6Lx3KIks2de+TFWDqMTrNlMCR8rT0NdqUwATNco91kgnLLwsBsaWBVz8H5nDJYtqur8BTid2UJgGra3HvpIHgGgEkKVGUSOyCu0zqZyg9BgJPrhwS6LuUlgJaYXHhyJLYisxNkkptgqH/3R/kAUKaSmddgdA88Pex+xMwoBSeyT4ATg2WCjg1+IPYoioggSKBIQGjJ0YrWuwFGgmxUcM7KIotUTwohj1KGcHl9dX3ZH/RFj7J9y/r1JROnS8kjmMMq1wbP+r03Ul15jsbBYxrxg6+k2xJPWbM92Kqtw2PG35of8+22LOOgDrmJzSbom5vCjULMEn/utFBeRY3490cu/NZo+fTqEDSi1Sv5FWv7N4qpWUq739B6ED9UACSBggGZaBONtQgBJif9dkHb3znLHzaZz8IP+S/l50t0mu7NS15+ZCPr31mQO27tcRpCbwc4UrLUjpFQeOLmI4StMBElkH2TbdOdCwsqk2WPgtXAx39s+k+gJk7/GyHFC+3f7DkqkXSAk0ZGXc0YKnfHgBJi6nrpByOW5DXj/jPFQ3xnqdR8eKyZeapSy64eOem15tM5XHCZjLlX/AOpUiQzdr/JIFkDLI1BSTt8HV1LcbU8Tv0DDlntJAY29rquInCLhZEUIjAm6PLShPpKyN0Co1ZRq3gfYg+0VeiCyXeX5YFS9LZONGh6j9E17OS0X16znyQ2eG8MmlweiZtaxClpiCPMDVGfFW2C0bvBddtSQDHFAgToFkaGDUYx4xrksG/t7LHWNaaPDnbecM1TufGLwgYHQJJR/IYPaP1iJyAkyiYSyCZlqUla9NTpEQ8b1umyRBDQYINQIwCZh6g5vSH1MOv7nUJRvz3PpS2bvAS0fNHhQTzWKFmiNroooFT6x8UgG0M8kTBw3w3gpqW0pCIEzo96E5rG53avrsxxcOaMYP3BWOvS5sP7fni+/PbSrruVOzALfutrIvuPqaZUnHBkHLG7jU/bYU5eahaPGcFjL7oS6xRue94Ry6TPKpYYthXJADFAmwwaCDtHOf1fg5D1WDwixN5P2uXYE3nndGa7Cw+Hjj60qrWxYtHLpvyBTFAy4bIusTamAKtWIyipGUVoMU8NihdNe0lTaS+TnrKChsnu3bCIWAjgJMeCMks5F9Hz/nrOfOO+FWXzNqsjwxKXZ9lssR7rhlAaYxJ9TcO9feGnV6/qCXW5bK4aH7gwiWHX97FWRoo/GQcsjwJKTOQDSTzpyFLyY3H+2Rb4TZ31uA2cANcDIbEib5xO2/h6ajSaJPHc6FjyfEY+OLVsJMOeIyAxAfRJrBupWA1JWANLng1gLo6fb5fUIAqgHnMk5M7bOTTnAYrBzkmA82kyi4H+Q4wNBOE608L+QrEJeMecLY6GlRpgaAYJ6VxsJQjWToGVuKClSzvcyRrLbkWahWQNbKq4YzmLms/JLAlIM4yybNZcALYhB1j/neWFaWJdZkZkqzbxuQJ1Fc+MSkCgGqO+tvO6BkFoDkUNcH23UGn4vkD/4B95/4NY9/8c7ASBrxCsUmyQHvH5xAYWp5u0TtRN9qYphTtz/eQ378xx5Q6IDy8cj3DyLcKtdmss2/XKSBV1SZ9NgoYKYe1Y4e8CIaa7i/PP6VYjqtORLfSGJ/pSDYoqLDBqtR7oZbwfCV8tZ/RsXmWk+hqYbLMYJXzwJEU/8pQ4jl8EyB6orYyisg4Ym4vMJRA8Do49uqANKoiFANKowzR4Cn6t7E7QQE7c5vL+V4yzuticQgCKwK1uIAgpiLJM86CTNIZ7zaTIgNJrCpZwoRIM9lLNu1puTi4pqriavJHKEtByjiTFOO8ItEgp+xyz4CPq0bfd8Vr2x9YlYAkp9LqZI651dDvUv2b1vfOLZC0XIkWSNEMefegx3ocvvCkNT0qIft28t4j09poOGxMDgg3aYRtwS+RYWPxzxC3O+dA0a4CsxrCIMnLwKgd/aquawLr4f2gezWtYJ1LIOkvnX9Y1wryRVAjhZeCNabBqlClQDW2rO8vmMsvzzWbXO12qxmbqmioYXEwAtbyOJTvAgFrmktO7NgSoqykxn1Pu/gYjR5gm/7iy0DGj9DX4BkjDQLM1kQ1VncehLcHn44Ptz9UZdB9w4c47/HDQqKgr3P3nbiVvtJnkL6Bx2eMJiaYUldUujTHUPSd6Pjy9Y1MLnFSYv9uT2HVpgzBjQbGdWN230VAvMcYO637jA8eL5Rp3SnsSRfsuA5FWtmUUrfzjm+dVuzQY4+kdyRuoxmlbl07vSOYzC2wbuJzSN4cBkQTBA2wDAFn9LrPcv3JwZBNlcQGpWKx+pJSJmRKg1pZBRfEUirjdVIkIKtLIDes1y917ge5dh3glkLuWo8rHeCJmnIolu5UhrUS13xnye8E7GGXvTLgyHRnyMEAFiwEUp0gh/eCfHwhZLdBtN0IAlfpU1a+hmb/n0nSJyzeeVwMvwPDwgijHJT7PVOtMcCcVWAUTmpBLRgG6eZK1ITfsxvBSpcNIWdlpfNVHy4fkXssUL52vAWsphzM8sC1IQNWjWpkRLqsc0v6EylREurcEMAV6CKfTNAtg00GPz0gmnzow/i0dy6gS2mqBmc+cyK61S1WcykXvIQMODpwr69L9A06PmhGycTXNXAsJmd2elSO2ZT0NxoYKZO1Y4eeLiFvZVwc1v2lhfqAY+Oz4URcyRi7SslY5smQHruLxppV/WGIy37DmWKAfz94zPui/pisUeXpxcnzxWpKyDsFU62IVCa3AjzVP1RuaddDJlfoa9oRTRt7DVk5d2qeN4qiwOmnaFy3ORYtT8qR2RLIHmWQTi2kU5EDp/RqSAIxerXxY0iaRDMPzBVt3y/wQKw3cifeX+V7LepynvnUso/AsGDysf1zk2lTRsO2d76xFigo9nsjr/bgoYOzQr5vFMa17MyQLpmPCYUwZ2cNpslasERP/Z3GUB+wN7MSOpRfCB1zkysqhkafDc05rwD0zufdR+DOI55UV8pa1+P0F09Drw2eNi0kDXoqJ0/fqOaOZ2wJVGL+6Yv+tI+gUO5YHC8tE7wjPeTPf/XXn5IeaxSQ13d7DG0aYop1+CYBIyW2ZuyQ3wH4OYCf9Jgxf6qZQe0xqJZxzIRk3/GP9NA+w74C10DBApYU9VxQUx8BTZ7j93rOzh9OO6oj0SuaYoq+8THVByxLmiX6CCC5BojVEWLmUNoExADho02pfcT88EjaNU+XmQaCzdHsuji+8xD8+/GFYCcOgsRVADXe7/KHbx6Tk+ehk+vg9/ZduKhQJ/7kqRU720x8BMamTj6m33Hf2MzeltHX2gJrxw5ZLoG+QSZMXt3j5QVXmplGwXXdcdg/buFZR6IiEJl9pAvp78OGFOM83WDs5nlqQOLB0XcikW3CoXOvQ0XLGm/06kmiR32uRFqjpOenvu7r6M0a5EzRsrknZKoLwLNg8QawkvXKouWtFQHSezOr6L5ZJaVrr5IPbVvuX/kIPBls47prk4FRgeOYIbcBOE8yXNNDzP8dm5nTR607ChU8jjMZMCKI4rBxZdvkp42AyH6P+b3n15e5dbseL6VNqmCHlS3/J4vXu8qpWrvA5FTw+iySnGomNwpC5TOh3hsT5DG0hkvc3eVJLNjUyjhn4xjCWPsuhBYfP70zpi07g0lMBvDS5GP7H7Kp+Wx7b/NqgTVjhrwFhr38UjHgje4z5u/XXinXHYVdEMNPLaB3ofhV5txgMUXlgp040WGvniXPeXJkJP9JY0ulvzVSbRNVPmOhkpGXrN4PRN60yoEu9/GO7VYX1C4kmoQ1u54opXEYNs/CLl85h8WaOrDH1khcO5z8lzv4x/+3d7WxTZVR+Dn9WBk4BjLWDdmmyBC2zg9C4g+/YIUpxAxKVIjGIKUgiBKJP4zEECDRxBh/kCEJbN0w/jAGYkdggsC6KUJUVJB1w8wfaiewdW5B0cDW9R7z9mN00G39uGs3ec/P3vOec97nNufe956vybUYkIIzHHY3uexY2G/l7VxQvFkheh+MCwro1dyGpi8Tkzjyqz0Lix5lRXMy4ON4V46zOeLb2MhbMryGXht2XmNsz7RDxFBuIWutexcYGwH8WG3JH7Qj+vCaJMdoQsBjNp1lxoNhNnUbnS4Ru/nfUffCGZm9yngHAY+H5eKLfV7TMy+6s6H5VLI3ndAbY8hYj7n4KWaqgnhKEY4R086pzqajo/Ej/y+LZxom9o5rBAefxoQyY73reLKBj1afdy0+01di0COytdZ9HAzRzaKz2pLnT42SNLYR4Geh9XSZPARkMOMKCK1E+Cq73rVlbO9saOuDgd1dIPF/7qeuNEU3b3LjuahLkNXASBXHKAzxzC+6gzUa0ZVikz/7HvwbgQ5B4c97DPgu74vmiG88Yi0XFaW1G1GY29AS95EzGjDaF5aUaBSuYKA/tKFVaE5WY9PP0axPNg/bMKeP8LK+Eq8PpntNrdvFjGJxbJmQNn5SxZIpIuVQkkRgTCIgSiH/LDV9qADrb2yATxqdzeJtMmmkmmMMWdxuLplB4PVgrAaQFfqdwJdEWhgBfzHoKqCkgWkSCCLl6z4Rp0g36HMyjpwdkZGIHWbTWQw8mgjT/s02XJ8SS5egpN0ZkcxrwzZinNHZMUjLcsBa2+YGc57/AUPaR2qW3XU6mTZKXRIBtREQzrGz1HSCgfBUm+U3B3nV1hsuT3XHGBL+6/y7x2VQxpNM/JgCiNrqB4JVVAP3w+gE+DS0dMrX11szrbE1rijScCB1mIv3gGld2FNIYdZsyGlo2jvc2lRcF8cpbyZa9T24nz4WtRSRyepwi5TIQOcK0KZqS15FKuyVOiUCaiLQZS4u6lPIFQrcMqEup971tJo6hpI1Yo4xktKuxTMn9vWMm8qKL12rV7qv6HxdhTH0dEwEFM8Ck5UJ9qAD+VYL2pLlPO9MROZIru2x4RkwrAY7lgylx+po2wZQAUi5zhpNXU359MMjaZeULREIIbC61r0CjPVareatqvLp38SDzKX5s7J02rSlYCXdpyiHc8PaGd4UgOoyOl39J9B4dMWyJqmOMRbD1ObtNM+exay1KMyNOQ0twaESamtRRx6/BoP3Gs4zY7vBjrhatqtjiZQiERgcAavDLYZQlfm/4hB9YF+WJ/obRk2dpXPm+qA5RoFKSXHiqTc6m/oDL+1m0xlizAtc47+NzubMqIUnyHjbOMYEcUrq8l4b9hBhpY6QS3v9zWgkSQRGHQJWh1t89vI7NQKO2y35wklGTZ5SU2N4IJSAq41TXJOf2w9fMFAqar8DrTQZJ4wNrqTl6UrHGPVtTA6jdy22M2MrAe/oq/B2crRKLRKB2BGwOtzioS16WAi6XG3JnxaLlI5Sk+iJ4m9PxODNOsKp9sv8U3YWilmnEbOlZgTliT7nZVn1TSdikZ8Ir3SMiaCn4lp+ERO8BohKolUEdOv6cC/tiz9zX0XTpCiJQEQErI62VoALQxcV+B7aZ7nnXLRweUpNFxiY7XeMGlomBjURaVcCLKaQ3hh/ybzV2NAcPpslWhVx80nHGDd06izkddB7FYiB1TsAFPilEjamVWK3OhqkFInAyCCw5qB7NyvYECbdXm3Jt0WrLdiMpmYI/otEeCO73vVptDLV4pOOUS0kY5TjXYs3WfGXfC0CBb7TBOmTtCo8H6M4yS4RSDoCLx1qK9T4+Dw40Pzc39Bcy3M/Ki+IulCjw1zygsh7DpY/iubevzPoay376to7cMTU0hI+CSNpe5SOMWlQD1TktaGOcUsqzg/6HjwxVN5iisyVaiUCERFYc/CPVayw3T9AQxDzgerlBTcGTY1R3KRjTNGN67NhnQLsCakn4KguHSuoArKkL0X3RKqNDwGrw11GoPcU4gM1S/Pe7R+dG5+4UbFKOsYU3QZ+BTneXlxk4DIBO/RVqByNTTdSBI9UKxFIKQLSMaYQ/t7VeFj/D76n/ZGn5aXQNKlaInBbI/Af7NFDa4Ye3CIAAAAASUVORK5CYII="},16722:function(rn,Tt,oe){"use strict";oe.d(Tt,{Z:function(){return te}});const y=ne=>typeof ne=="object"&&ne!=null&&ne.nodeType===1,ie=(ne,x)=>(!x||ne!=="hidden")&&ne!=="visible"&&ne!=="clip",fe=(ne,x)=>{if(ne.clientHeight<ne.scrollHeight||ne.clientWidth<ne.scrollWidth){const b=getComputedStyle(ne,null);return ie(b.overflowY,x)||ie(b.overflowX,x)||(ee=>{const E=(re=>{if(!re.ownerDocument||!re.ownerDocument.defaultView)return null;try{return re.ownerDocument.defaultView.frameElement}catch(ce){return null}})(ee);return!!E&&(E.clientHeight<ee.scrollHeight||E.clientWidth<ee.scrollWidth)})(ne)}return!1},de=(ne,x,b,ee,E,re,ce,le)=>re<ne&&ce>x||re>ne&&ce<x?0:re<=ne&&le<=b||ce>=x&&le>=b?re-ne-ee:ce>x&&le<b||re<ne&&le>b?ce-x+E:0,ue=ne=>{const x=ne.parentElement;return x==null?ne.getRootNode().host||null:x},ae=(ne,x)=>{var b,ee,E,re;if(typeof document=="undefined")return[];const{scrollMode:ce,block:le,inline:ve,boundary:Se,skipOverflowHiddenElements:ge}=x,_e=typeof Se=="function"?Se:rt=>rt!==Se;if(!y(ne))throw new TypeError("Invalid target");const Ce=document.scrollingElement||document.documentElement,he=[];let be=ne;for(;y(be)&&_e(be);){if(be=ue(be),be===Ce){he.push(be);break}be!=null&&be===document.body&&fe(be)&&!fe(document.documentElement)||be!=null&&fe(be,ge)&&he.push(be)}const Ee=(ee=(b=window.visualViewport)==null?void 0:b.width)!=null?ee:innerWidth,Ae=(re=(E=window.visualViewport)==null?void 0:E.height)!=null?re:innerHeight,{scrollX:De,scrollY:je}=window,{height:Fe,width:Re,top:qe,right:Je,bottom:He,left:ze}=ne.getBoundingClientRect(),{top:Qe,right:$e,bottom:ht,left:Ge}=(rt=>{const Xe=window.getComputedStyle(rt);return{top:parseFloat(Xe.scrollMarginTop)||0,right:parseFloat(Xe.scrollMarginRight)||0,bottom:parseFloat(Xe.scrollMarginBottom)||0,left:parseFloat(Xe.scrollMarginLeft)||0}})(ne);let Ue=le==="start"||le==="nearest"?qe-Qe:le==="end"?He+ht:qe+Fe/2-Qe+ht,Ke=ve==="center"?ze+Re/2-Ge+$e:ve==="end"?Je+$e:ze-Ge;const et=[];for(let rt=0;rt<he.length;rt++){const Xe=he[rt],{height:ut,width:lt,top:kt,right:pt,bottom:Mt,left:wt}=Xe.getBoundingClientRect();if(ce==="if-needed"&&qe>=0&&ze>=0&&He<=Ae&&Je<=Ee&&(Xe===Ce&&!fe(Xe)||qe>=kt&&He<=Mt&&ze>=wt&&Je<=pt))return et;const bt=getComputedStyle(Xe),gt=parseInt(bt.borderLeftWidth,10),We=parseInt(bt.borderTopWidth,10),Ie=parseInt(bt.borderRightWidth,10),xe=parseInt(bt.borderBottomWidth,10);let Be=0,Ye=0;const Pe="offsetWidth"in Xe?Xe.offsetWidth-Xe.clientWidth-gt-Ie:0,Le="offsetHeight"in Xe?Xe.offsetHeight-Xe.clientHeight-We-xe:0,pe="offsetWidth"in Xe?Xe.offsetWidth===0?0:lt/Xe.offsetWidth:0,we="offsetHeight"in Xe?Xe.offsetHeight===0?0:ut/Xe.offsetHeight:0;if(Ce===Xe)Be=le==="start"?Ue:le==="end"?Ue-Ae:le==="nearest"?de(je,je+Ae,Ae,We,xe,je+Ue,je+Ue+Fe,Fe):Ue-Ae/2,Ye=ve==="start"?Ke:ve==="center"?Ke-Ee/2:ve==="end"?Ke-Ee:de(De,De+Ee,Ee,gt,Ie,De+Ke,De+Ke+Re,Re),Be=Math.max(0,Be+je),Ye=Math.max(0,Ye+De);else{Be=le==="start"?Ue-kt-We:le==="end"?Ue-Mt+xe+Le:le==="nearest"?de(kt,Mt,ut,We,xe+Le,Ue,Ue+Fe,Fe):Ue-(kt+ut/2)+Le/2,Ye=ve==="start"?Ke-wt-gt:ve==="center"?Ke-(wt+lt/2)+Pe/2:ve==="end"?Ke-pt+Ie+Pe:de(wt,pt,lt,gt,Ie+Pe,Ke,Ke+Re,Re);const{scrollLeft:ke,scrollTop:Me}=Xe;Be=we===0?0:Math.max(0,Math.min(Me+Be/we,Xe.scrollHeight-ut/we+Le)),Ye=pe===0?0:Math.max(0,Math.min(ke+Ye/pe,Xe.scrollWidth-lt/pe+Pe)),Ue+=Me-Be,Ke+=ke-Ye}et.push({el:Xe,top:Be,left:Ye})}return et},se=ne=>ne===!1?{block:"end",inline:"nearest"}:(x=>x===Object(x)&&Object.keys(x).length!==0)(ne)?ne:{block:"start",inline:"nearest"};function te(ne,x){if(!ne.isConnected||!(E=>{let re=E;for(;re&&re.parentNode;){if(re.parentNode===document)return!0;re=re.parentNode instanceof ShadowRoot?re.parentNode.host:re.parentNode}return!1})(ne))return;const b=(E=>{const re=window.getComputedStyle(E);return{top:parseFloat(re.scrollMarginTop)||0,right:parseFloat(re.scrollMarginRight)||0,bottom:parseFloat(re.scrollMarginBottom)||0,left:parseFloat(re.scrollMarginLeft)||0}})(ne);if((E=>typeof E=="object"&&typeof E.behavior=="function")(x))return x.behavior(ae(ne,x));const ee=typeof x=="boolean"||x==null?void 0:x.behavior;for(const{el:E,top:re,left:ce}of ae(ne,se(x))){const le=re-b.top+b.bottom,ve=ce-b.left+b.right;E.scroll({top:le,left:ve,behavior:ee})}}}}]);
|