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

313 lines
1.3 MiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

(self.webpackChunk=self.webpackChunk||[]).push([[7460],{33463:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},28575:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},18699:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},81893:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},55304:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},73148:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},56747:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},53555:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},50881:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},22751:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},34182:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},74664:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},32693:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},91034:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(87462),fe=ee(67294),be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},_e=be,ce=ee(74643),pe=function(de,ge){return fe.createElement(ce.Z,(0,te.Z)({},de,{ref:ge,icon:_e}))},ae=fe.forwardRef(pe)},71736:function(ot,Ze){"use strict";Ze.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},77969:function(ot,Ze){"use strict";Ze.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"}},12867:function(){"use strict"},22707:function(ot,Ze,ee){"use strict";var te=ee(67294),fe=Object.defineProperty,be=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,pe=(de,ge,le)=>ge in de?fe(de,ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):de[ge]=le,ae=(de,ge)=>{for(var le in ge||(ge={}))_e.call(ge,le)&&pe(de,le,ge[le]);if(be)for(var le of be(ge))ce.call(ge,le)&&pe(de,le,ge[le]);return de};const me=de=>React.createElement("svg",ae({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},de),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"})));Ze.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},8861:function(ot,Ze,ee){"use strict";var te=ee(67294),fe=Object.defineProperty,be=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,pe=(de,ge,le)=>ge in de?fe(de,ge,{enumerable:!0,configurable:!0,writable:!0,value:le}):de[ge]=le,ae=(de,ge)=>{for(var le in ge||(ge={}))_e.call(ge,le)&&pe(de,le,ge[le]);if(be)for(var le of be(ge))ce.call(ge,le)&&pe(de,le,ge[le]);return de};const me=de=>React.createElement("svg",ae({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},de),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"})));Ze.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},18023:function(){"use strict";function ot(ne,y,a,E){a===void 0&&(a=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=y,this._minimum=a,this._maximum=E}Object.defineProperty(ot.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(ot.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(ot.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(ot.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,y){var a=go.Shape._FigureParameters[ne];return a?a[y]:null},go.Shape.setFigureParameter=function(ne,y,a){if(!(a instanceof ot))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[y]=a};var Ze=[];function ee(ne,y){var a=Ze.pop();return a===void 0?new go.Point(ne,y):(a.x=ne,a.y=y,a)}function te(){var ne=Ze.pop();return ne===void 0?new go.Point:ne}function fe(ne){Ze.push(ne)}function be(ne,y,a,E,b,x,z,oe,ie){ie||(ie=new go.Point);var ue=ne-a,ve=b-z,Se=NaN,Le=NaN;if(ue===0)if(ve===0)ne===a&&(Se=ne,Le=y);else{var we=(x-oe)/ve,Ne=x-we*b;Se=ne,Le=we*Se+Ne}else if(ve===0){var xe=(y-E)/ue,st=y-xe*ne;Se=b,Le=xe*Se+st}else{var xe=(y-E)/ue,we=(x-oe)/ve,st=y-xe*ne,Ne=x-we*b;Se=(Ne-st)/(xe-we),Le=xe*Se+st}return ie.x=Se,ie.y=Le,ie}function _e(ne,y,a,E,b,x,z,oe,ie,ue,ve,Se,Le,we){var Ne=1-ie,xe=ie,st=ne*Ne+a*xe,Ye=y*Ne+E*xe,lt=a*Ne+b*xe,Me=E*Ne+x*xe,Be=b*Ne+z*xe,Re=x*Ne+oe*xe,ke=st*Ne+lt*xe,Ge=Ye*Ne+Me*xe,Et=lt*Ne+Be*xe,It=Me*Ne+Re*xe,en=ke*Ne+Et*xe,Zt=Ge*Ne+It*xe;ue.x=st,ue.y=Ye,ve.x=ke,ve.y=Ge,Se.x=en,Se.y=Zt,Le.x=Et,Le.y=It,we.x=Be,we.y=Re}var ce=new go.Spot(.156,.156),pe=new go.Spot(.844,.844),ae=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ot("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*ae,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-E)).add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,b,a,0,a-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=a/2,E.endX=y,E.endY=a/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y/2,E.startY=0,E.endX=y/2,E.endY=a,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,y,a){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*y,(1-E)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,y,a){var E=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ce,b.spot2=pe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}),go.Shape.defineFigureGenerator("Line2",function(ne,y,a){var E=new go.Geometry(go.Geometry.Line);return E.startX=y,E.startY=0,E.endX=0,E.endY=a,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,ae*y,0,y,(1-ae)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,ae*a,(1-ae)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,ae*a,ae*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-ae)*y,0,0,(1-ae)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ot("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ot("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y:E>y&&(E=y);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ot("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*y;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ot("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ot("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-y?E=-y/2:E>y&&(E=y/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&x.setSpots(b/y,0,(y-b)/y,1),x}});var me=[];function de(){var ne=me.pop();return ne===void 0?[]:ne}function ge(ne){ne.length=0,me.push(ne)}function le(ne){for(var y=de(),a=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,y[z]=new go.Point(E+a*Math.cos(x),E+a*Math.sin(x));return y.push(y[0]),y}function he(ne){var y=re(ne),a=de();a[0]=y[0];for(var E=1,b=1;E<y.length;E+=2,b+=3)a[b]=y[E],a[b+1]=y[E],a[b+2]=y[E+1];return ge(y),a}function re(ne){for(var y=le(ne),a=de(),E=Math.floor(y.length/2),b=y.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var oe=y[z],ie=y[z+1],ue=y[(E+z-1)%b],ve=y[(E+z+x)%b];a[z*2]=oe,a[z*2+1]=be(oe.x,oe.y,ue.x,ue.y,ie.x,ie.y,ve.x,ve.y,new go.Point)}return a[a.length]=a[0],ge(y),a}go.Shape.defineFigureGenerator("Pentagon",function(ne,y,a){var E=le(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,y,a){var E=le(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,y,a){var E=le(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,y,a){var E=le(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,y,a){var E=le(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,y,a){var E=le(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,y,a){var E=le(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,y,a){var E=re(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,y,a){var E=re(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,y,a){var E=re(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,y,a){var E=re(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,y,a){var E=re(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,y,a){var E=re(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*y,E[z].y*a));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*y,E[0].y*a).close()),ge(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,y,a){var E=he(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),ge(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,y,a){var E=he(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),ge(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,y,a){var E=he(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),ge(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,y,a){var E=he(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),ge(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,y,a){var E=he(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),ge(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,y,a){var E=he(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*y,E[0].y*a,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*y,E[z+2].y*a,E[z].x*y,E[z].y*a,E[z+1].x*y,E[z+1].y*a));return x.segments.last().close(),ge(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ot("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ot("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,y,a){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ot("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=y/2,x=new go.Geometry,z=new go.PathFigure(y,y/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var oe=Math.max(b-E,0);return oe>0&&(z.add(new go.PathSegment(go.PathSegment.Move,y/2+oe,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,oe,oe).close())),x.spot1=ce,x.spot2=pe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,y,a){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,E*a).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ot("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ot("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,y,a){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,oe=Math.min(y,a)/2;return new go.Geometry().add(new go.PathFigure(oe,oe).add(new go.PathSegment(go.PathSegment.Arc,x,z,oe,oe,oe,oe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,y,a){var E=ae/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,x*a,y,(1-E)*a,(b+E)*y,(x+E)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ot("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ot("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,y)/2,x=y/2,z=a/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,a)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ot("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,y,a){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var x=y/2,z=a/2,oe=Math.atan2(a,y),ie=E-Math.min(Math.cos(oe)*E/2,x),ue=E-Math.min(Math.sin(oe)*E/2,z),b=new go.Geometry,ve=new go.PathFigure(ie,0,!0);return b.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,x,.2*a)),ve.add(new go.PathSegment(go.PathSegment.Line,y-ie,0)),ve.add(new go.PathSegment(go.PathSegment.Line,y,ue)),ve.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,y,a-ue)),ve.add(new go.PathSegment(go.PathSegment.Line,y-ie,a)),ve.add(new go.PathSegment(go.PathSegment.Line,x,.8*a)),ve.add(new go.PathSegment(go.PathSegment.Line,ie,a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,a-ue)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ue).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ot("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ot("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,(1-E)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*y,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ot("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-E)*y,.25*a,Math.abs(1-E)*y,.75*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,ae*y,0,y,(.5-ae/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+ae/2)*a,ae*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var x=.2,z=.3,oe=0,ie=x*ae;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+oe)*a,(.5-x+z)*y,(.5+ie+oe)*a,(.5-ie+z)*y,(.5+x+oe)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+oe)*a,(.5+ie+z)*y,(.5+x+oe)*a,(.5+x+z)*y,(.5+ie+oe)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+oe)*a,(1-.5+x+z)*y,(.5-ie+oe)*a,(.5+ie+z)*y,(.5-x+oe)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-ie+z)*y,(.5-x+oe)*a,(.5-x+z+.05)*y,(.5-ie+oe-.02)*a)),x=.2,z=0,oe=-.3,ie=x*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*y,(.5+oe)*a,(.5+ie+z)*y,(.5+x+oe)*a,(.5+x+z)*y,(.5+ie+oe)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+oe)*a,(1-.5+x+z)*y,(.5-ie+oe)*a,(.5+ie+z)*y,(.5-x+oe)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+oe)*a,(.5-ie+z)*y,(.5-x+oe)*a,(.5-x+z)*y,(.5-ie+oe)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+z)*y,(.5+x+oe)*a,(.5-x+z)*y,(.5+ie+oe)*a,(.5-ie+z)*y,(.5+x+oe)*a)),x=.2,z=-.3,oe=0,ie=x*ae,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-x+oe)*a,(1-.5+x+z-.05)*y,(.5-ie+oe-.02)*a,(.5+ie+z)*y,(.5-x+oe)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*y,(.5+oe)*a,(.5-ie+z)*y,(.5-x+oe)*a,(.5-x+z)*y,(.5-ie+oe)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+x+oe)*a,(.5-x+z)*y,(.5+ie+oe)*a,(.5-ie+z)*y,(.5+x+oe)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+ie+z)*y,(.5+x+oe)*a,(.5+x+z)*y,(.5+ie+oe)*a).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var x=.1,z=.5,oe=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*y,oe*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*oe,x*y,x*y).close()),b=new go.PathFigure(y*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),oe=.75,b=new go.PathFigure((z+x)*y,oe*a,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*oe,x*y,x*y).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,y,a){var E=.8535533905932737,b=.5*y,x=.5*a;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,E*a)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=.5,z=.5,oe=.5,ie=new go.PathFigure(z*y,(oe-x)*a);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,oe*a,(z-b)*y,(oe-x)*a,(z-x)*y,(oe-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+x)*a,(z-x)*y,(oe+b)*a,(z-b)*y,(oe+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,oe*a,(z+b)*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-x)*a,(z+x)*y,(oe-b)*a,(z+b)*y,(oe-x)*a)),x=.4,b=ae*.4;var ue=te(),ve=te(),Se=te(),Le=te();_e(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.42,ue,ve,Se,Le,Le);var we=te(),Ne=te(),xe=te();_e(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.58,Le,Le,xe,we,Ne);var st=te(),Ye=te(),lt=te();_e(z,oe+x,z-b,oe+x,z-x,oe+b,z-x,oe,.42,st,Ye,lt,Le,Le);var Me=te(),Be=te(),Re=te();return _e(z,oe+x,z-b,oe+x,z-x,oe+b,z-x,oe,.58,Le,Le,Re,Me,Be),ie.add(new go.PathSegment(go.PathSegment.Move,Re.x*y,Re.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,oe*a,Me.x*y,Me.y*a,Be.x*y,Be.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-x)*a,(z-x)*y,(oe-b)*a,(z-b)*y,(oe-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Se.x*y,Se.y*a,ue.x*y,ue.y*a,ve.x*y,ve.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,Re.x*y,Re.y*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,lt.x*y,lt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,xe.x*y,xe.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,oe*a,we.x*y,we.y*a,Ne.x*y,Ne.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+x)*a,(z+x)*y,(oe+b)*a,(z+b)*y,(oe+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,lt.x*y,lt.y*a,st.x*y,st.y*a,Ye.x*y,Ye.y*a).close()),fe(ue),fe(ve),fe(Se),fe(Le),fe(we),fe(Ne),fe(xe),fe(st),fe(Ye),fe(lt),fe(Me),fe(Be),fe(Re),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ot("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>y&&(E=y);var b=(y-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,y,a){var E=new go.Geometry,b=ae*.4,x=.4,z=.5,oe=.5,ie=te(),ue=te(),ve=te(),Se=te(),Le=new go.PathFigure((z-x)*y,oe*a,!1);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-x)*a,(z-x)*y,(oe-b)*a,(z-b)*y,(oe-x)*a)),_e(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.44,ve,Se,ue,ie,ie),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*y,ue.y*a,ve.x*y,ve.y*a,Se.x*y,Se.y*a));var we=ee(ue.x,ue.y);_e(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.56,ie,ie,ue,ve,Se);var Ne=ee(ue.x,ue.y);Le.add(new go.PathSegment(go.PathSegment.Line,(we.x*.1+.95*.9)*y,we.y*.1*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*y,we.y*.1*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),Le.add(new go.PathSegment(go.PathSegment.Line,y,0)),Le.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),Le.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.9)*y,.15*a)),Le.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.9)*y,(Ne.y*.1+.05*.9)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,Ne.x*y,Ne.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,oe*a,ve.x*y,ve.y*a,Se.x*y,Se.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+x)*a,(z+x)*y,(oe+b)*a,(z+b)*y,(oe+x)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,oe*a,(z-b)*y,(oe+x)*a,(z-x)*y,(oe+b)*a)),x=.35,b=ae*.35;var xe=new go.PathFigure(z*y,(oe-x)*a,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,oe*a,(z-b)*y,(oe-x)*a,(z-x)*y,(oe-b)*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+x)*a,(z-x)*y,(oe+b)*a,(z-b)*y,(oe+x)*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,oe*a,(z+b)*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-x)*a,(z+x)*y,(oe-b)*a,(z+b)*y,(oe-x)*a));var st=new go.PathFigure((z-x)*y,oe*a,!1);return E.add(st),fe(ie),fe(ue),fe(ve),fe(Se),fe(we),fe(Ne),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,y,a){var E=new go.Geometry,b=.375,x=0,z=-.125,oe=b*ae,ie=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+oe+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+oe+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-oe+z)*a,(.5+oe+x)*y,(.5-b+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-oe+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-oe+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+oe+z)*a,(.5-oe+x)*y,(.5+b+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,x=0,z=-.125,oe=b*ae;var ie=new go.PathFigure((1-.5+b+x)*y,(.5+z)*a,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5+b+z)*a,(.5+b+x)*y,(.5+oe+z)*a,(.5+oe+x)*y,(.5+b+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-oe+x)*y,(.5+b+z)*a,(.5-b+x)*y,(.5+oe+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-oe+z)*a,(.5-oe+x)*y,(.5-b+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*y,(.5+z)*a,(.5+oe+x)*y,(.5-b+z)*a,(1-.5+b+x)*y,(.5-oe+z)*a));var ie=new go.PathFigure((.525+x)*y,(.5+b+z)*a,!1);return E.add(ie),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,y,a){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,y,a){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,y,a){var E=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,y,a){var E=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,E*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*y,E*a,E*y,E*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ot("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ot("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*y,z=(.5-b/2)*a,oe=(.5+b/2)*a,ie=new go.Geometry,ue=new go.PathFigure(0,z,!0);ie.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x,z)),ue.add(new go.PathSegment(go.PathSegment.Line,x,0)),ue.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ue.add(new go.PathSegment(go.PathSegment.Line,x,a)),ue.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ue.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ie.spot1=new go.Spot(0,z/a);var ve=be(0,oe/a,1,oe/a,x/y,1,1,.5,te());return ie.spot2=new go.Spot(ve.x,ve.y),fe(ve),ie}),go.Shape.setFigureParameter("Arrow2",0,new ot("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ot("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>y&&(E=y);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var x=y-E,z=(a-b)/2,oe=z+b,ie=new go.Geometry,ue=new go.PathFigure(0,z,!0);ie.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x,z)),ue.add(new go.PathSegment(go.PathSegment.Line,x,0)),ue.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ue.add(new go.PathSegment(go.PathSegment.Line,x,a)),ue.add(new go.PathSegment(go.PathSegment.Line,x,oe)),ue.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ie.spot1=new go.Spot(0,z/a);var ve=be(0,oe/a,1,oe/a,x/y,1,1,.5,te());return ie.spot2=new go.Spot(ve.x,ve.y),fe(ve),ie}),go.Shape.defineFigureGenerator("Chevron",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ot("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,oe=new go.PathFigure(y,.5*a,!0);z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var ie=be(0,.5,.3,0,0,b/a,.1,b/a,te());return z.spot1=new go.Spot(ie.x,ie.y),ie=be(.7,1,1,.5,0,x/a,1,x/a,ie),z.spot2=new go.Spot(ie.x,ie.y),fe(ie),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ot("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ot("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,oe=(a-b)/2,ie=oe+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,oe=0,ie=a):(x=0,z=a,oe=0,ie=a));var ue=new go.Geometry,ve=new go.PathFigure(y,.5*a,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,ie)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*y,ie)),ve.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*y,oe)),ve.add(new go.PathSegment(go.PathSegment.Line,.3*y,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,oe).close());var Se=be(0,.5,.3,oe/a,0,x/a,1,x/a,te());return ue.spot1=new go.Spot(Se.x,Se.y),Se=be(.7,ie/a,1,.5,0,z/a,1,z/a,Se),ue.spot2=new go.Spot(Se.x,Se.y),fe(Se),ue}),go.Shape.setFigureParameter("IBeamArrow",0,new ot("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,oe=new go.PathFigure(y,.5*a,!0);z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var ie=be(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ie.x,ie.y),fe(ie),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ot("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ot("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(a-E)/2,z=x+E,oe=(a-b)/2,ie=oe+b;(E>a||b>a)&&(b>E?(E=E*a/b,x=(a-E)/2,z=x+E,oe=0,ie=a):(x=0,z=a,oe=0,ie=a));var ue=new go.Geometry,ve=new go.PathFigure(y,.5*a,!0);ue.add(ve),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,ie)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,ie)),ve.add(new go.PathSegment(go.PathSegment.Line,0,ie)),ve.add(new go.PathSegment(go.PathSegment.Line,0,oe)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,oe)),ve.add(new go.PathSegment(go.PathSegment.Line,.2*y,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),ve.add(new go.PathSegment(go.PathSegment.Line,.7*y,oe).close()),ue.spot1=new go.Spot(0,x/a);var Se=be(.7,ie/a,1,.5,0,z/a,1,z/a,te());return ue.spot2=new go.Spot(Se.x,Se.y),fe(Se),ue}),go.Shape.setFigureParameter("Pointer",0,new ot("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=be(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ot("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*y,.75*a,E*y,.25*a).close()),b.spot1=new go.Spot(E,.35);var z=be(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ot("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*a,x=(.5+E/2)*a,z=new go.Geometry,oe=new go.PathFigure(y,.5*a,!0);z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var ie=be(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ie.x,ie.y),fe(ie),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ot("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(a-E)/2,x=b+E;E>a&&(b=0,x=a);var z=new go.Geometry,oe=new go.PathFigure(y,.5*a,!0);z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,x)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var ie=be(.7,1,1,.5,0,x/a,1,x/a,te());return z.spot2=new go.Spot(ie.x,ie.y),fe(ie),z}),go.Shape.setFigureParameter("SquareArrow",0,new ot("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(y,.5*a,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=ae*.1,z=new go.PathFigure(0,.9*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var x=new go.PathFigure(0,.9*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var x=new go.PathFigure(0,.3*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ae*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ae*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,E,(.5+x)*y,0,1*y,ae*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-ae*E,(.5+x)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,1*a,0,a-ae*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var oe=new go.PathFigure(y,E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*E,1*y,2*E-ae*E,(.5+x)*y,2*E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*y,2*E,0,2*E-ae*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ae*.5,z=new go.PathFigure(0,a-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ae*E,(.5-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E,(.5+x)*y,0,y,ae*E)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-ae*E,(.5+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-E,(.5-x)*y,a,0,a-ae*E));var oe=new go.PathFigure(0,a-E,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*E,0,a-E-ae*E,(.5-x)*y,a-2*E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,y,a-E,(.5+x)*y,a-2*E,y,a-E-ae*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ae*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ae*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-ae*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ae*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,ae*E,0));var oe=new go.PathFigure(E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*a,E+ae*E,0,2*E,(.5-x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,a,2*E,(.5+x)*a,E+ae*E,a)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ae*.5,z=new go.PathFigure(y-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ae*E,0,y,(.5-x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y,(.5+x)*a,y-ae*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ae*E,a,0,(.5+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*a,ae*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-E,0));var oe=new go.PathFigure(y-E,0,!1);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,y-2*E,.5*a,y-E-ae*E,0,y-2*E,(.5-x)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,y-E,a,y-2*E,(.5+x)*a,y-E-ae*E,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.25*y,.25*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var x=new go.PathFigure(.5*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),x.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,y,a){var E=new go.Geometry,b=.2,x=.1,z=ae*b,oe=ae*x,ie=.5,ue=.1,ve=new go.PathFigure(ie*y,(ue+x)*a,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie-b)*y,ue*a,(ie-z)*y,(ue+x)*a,(ie-b)*y,(ue+oe)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue-x)*a,(ie-b)*y,(ue-oe)*a,(ie-z)*y,(ue-x)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie+b)*y,ue*a,(ie+z)*y,(ue-x)*a,(ie+b)*y,(ue-oe)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue+x)*a,(ie+b)*y,(ue+oe)*a,(ie+z)*y,(ue+x)*a));var Se=.05,Le=ae*Se;ie=.05,ue=.25;var we=new go.PathFigure(.5*y,.2*a,!0);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),ie=.95,ue=.25,we.add(new go.PathSegment(go.PathSegment.Bezier,(ie+Se)*y,ue*a,(ie+Le)*y,(ue-Se)*a,(ie+Se)*y,(ue-Le)*a)),we.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),we.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),we.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),Se=.025,Le=ae*Se,ie=.825,ue=.35,we.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue-Se)*a,(ie+Se)*y,(ue-Le)*a,(ie+Le)*y,(ue-Se)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Se)*y,ue*a,(ie-Le)*y,(ue-Se)*a,(ie-Se)*y,(ue-Le)*a)),we.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),we.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),we.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),Se=.05,Le=ae*Se,ie=.5,ue=.7,we.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue-Se)*a,(ie+Se)*y,(ue-Le)*a,(ie+Le)*y,(ue-Se)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Se)*y,ue*a,(ie-Le)*y,(ue-Se)*a,(ie-Se)*y,(ue-Le)*a)),we.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),we.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),we.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),Se=.025,Le=ae*Se,ie=.175,ue=.35,we.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue-Se)*a,(ie+Se)*y,(ue-Le)*a,(ie+Le)*y,(ue-Se)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Se)*y,ue*a,(ie-Le)*y,(ue-Se)*a,(ie-Se)*y,(ue-Le)*a)),we.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),we.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),we.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),Se=.05,Le=ae*Se,ie=.05,ue=.25,we.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue-Se)*a,(ie-Se)*y,(ue-Le)*a,(ie-Le)*y,(ue-Se)*a)),we.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ot("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,y,a){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(y,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*a)),x.add(new go.PathSegment(go.PathSegment.Line,E*y,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var x=new go.PathFigure(.5*y,.5*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("Database",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=ae*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var oe=new go.PathFigure(y,.1*a,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+x)*a,(.5+b)*y,.4*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+x)*a)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=ae*.1,z=new go.PathFigure(y,.1*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+x)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-x)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-x)*a));var oe=new go.PathFigure(y,.1*a,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+x)*a,(.5+b)*y,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+x)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+x)*a,(.5+b)*y,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+x)*a)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ae*.2,z=new go.PathFigure(0,.2*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-x)*a,(.2-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+x)*y,0,y,(.2-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+x)*a,(.8+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-x)*y,a,0,(.8+x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var oe=new go.PathFigure(0,b*a,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),E}),go.Shape.defineFigureGenerator("Document",function(ne,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(.1*y,.4*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(.75*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var x=new go.PathFigure(y,.5*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var oe=new go.PathFigure(b*y,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),oe.add(new go.PathSegment(go.PathSegment.Move,0,x*a)),oe.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,y,a){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ae*.5,oe=.5,ie=new go.PathFigure(y,oe*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*y,a,y,(oe+z)*a,(oe+z)*y,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*a,(oe-z)*y,a,0,(oe+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*y,0,0,(oe-z)*a,(oe-z)*y,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,y,oe*a,(oe+z)*y,0,y,(oe-z)*a));var ue=new go.PathFigure((x+b)*y,(x+b)*a,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)),ue.add(new go.PathSegment(go.PathSegment.Move,x*y,(x+b)*a)),ue.add(new go.PathSegment(go.PathSegment.Line,(x+b)*y,x*a)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var x=new go.PathFigure(.1*y,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=.5,z=new go.PathFigure(.5*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*y,.9*a,y,(x+b)*a,(x+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,b*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var x=new go.PathFigure(.1*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var x=new go.PathFigure(.2*y,.1*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),x.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var oe=new go.PathFigure(.5*b*y,b*a,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var oe=new go.PathFigure(y,.5*a,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,y,a){var E=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E}),go.Shape.defineFigureGenerator("Process",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var x=new go.PathFigure(0,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*y,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,y,a){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=.5,z=new go.PathFigure(y,x*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,a,y,(x+b)*a,(x+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*a,(x-b)*y,a,0,(x+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*y,0,0,(x-b)*a,(x-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x*a,(x+b)*y,0,y,(x-b)*a));var oe=new go.PathFigure(y,x*a,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y,x*a));var ie=new go.PathFigure(.8*y,.75*a,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,y,a){var E=new go.Geometry,b=ae*.1,x=.1,z=.9,oe=.5,ie=new go.PathFigure(.8*y,.5*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var ue=new go.PathFigure((z+x)*y,oe*a,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+x)*a,(z+x)*y,(oe+b)*a,(z+b)*y,(oe+x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,oe*a,(z-b)*y,(oe+x)*a,(z-x)*y,(oe+b)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-x)*a,(z-x)*y,(oe-b)*a,(z-b)*y,(oe-x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,oe*a,(z+b)*y,(oe-x)*a,(z+x)*y,(oe-b)*a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=ae*.4,z=ae*.1,oe=.1,ie=.9,ue=.5,ve=new go.PathFigure(.8*y,.5*a,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+x)*a,(.4+b)*y,a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,a)),ve.add(new go.PathSegment(go.PathSegment.Line,0,0)),ve.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ve.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-x)*a));var Se=new go.PathFigure((ie+oe)*y,ue*a,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue+oe)*a,(ie+oe)*y,(ue+z)*a,(ie+z)*y,(ue+oe)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*y,ue*a,(ie-z)*y,(ue+oe)*a,(ie-oe)*y,(ue+z)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue-oe)*a,(ie-oe)*y,(ue-z)*a,(ie-z)*y,(ue-oe)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*y,ue*a,(ie+z)*y,(ue-oe)*a,(ie+oe)*y,(ue-z)*a)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,y,a){var E=new go.Geometry,b=.5,x=ae*b,z=0,oe=.5,ie=new go.PathFigure(.8*y,.5*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(oe-b)*a,.7*y,(oe-x)*a)),b=.1,x=ae*.1,z=.9,oe=.5;var ue=new go.PathFigure((z-b)*y,oe*a,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-b)*a,(z-b)*y,(oe-x)*a,(z-x)*y,(oe-b)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,oe*a,(z+x)*y,(oe-b)*a,(z+b)*y,(oe-x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+b)*a,(z+b)*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,oe*a,(z-x)*y,(oe+b)*a,(z-b)*y,(oe+x)*a)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,y,a){var E=new go.Geometry,b=.5,x=ae*b,z=0,oe=.5,ie=new go.PathFigure(0,0,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x+x)*y,(oe-b)*a,.8*y,(oe-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(oe+x)*a,(z+x+x)*y,(oe+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,y,a){var E=new go.Geometry,b=.5,x=ae*b,z=.2,oe=.5,ie=new go.PathFigure(.1*y,0,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var ue=new go.PathFigure(.8*y,.5*a,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+x)*y,(oe-b)*a,.7*y,(oe-x)*a)),b=.1,x=ae*.1,z=.9,oe=.5;var ve=new go.PathFigure((z-b)*y,oe*a,!0);return E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-b)*a,(z-b)*y,(oe-x)*a,(z-x)*y,(oe-b)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,oe*a,(z+x)*y,(oe-b)*a,(z+b)*y,(oe-x)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+b)*a,(z+b)*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,oe*a,(z-x)*y,(oe+b)*a,(z-b)*y,(oe+x)*a)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,y,a){var E=new go.Geometry,b=.5,x=ae*b,z=.2,oe=.5,ie=new go.PathFigure(.1*y,0,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var ue=new go.PathFigure(.2*y,0,!0);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+x)*y,(oe-b)*a,.9*y,(oe-x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,y,a){var E=new go.Geometry,b=ae*.1,x=.1,z=.1,oe=.5,ie=new go.PathFigure((z-b*.5)*y,a,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+x)*y,0,(z+b)*y,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,0,(z-b)*y,a,(z-x)*y,0)),z=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+x)*y,0,(z+b)*y,a)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,y,a){var E=new go.Geometry,b=ae*.5,x=.5,z=.5,oe=.5,ie=new go.PathFigure((z-x)*y,oe*a,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-x)*a,(z-x)*y,(oe-b)*a,(z-b)*y,(oe-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,oe*a,(z+b)*y,(oe-x)*a,(z+x)*y,(oe-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+x)*a,(z+x)*y,(oe+b)*a,(z+b)*y,(oe+x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,oe*a,(z-b)*y,(oe+x)*a,(z-x)*y,(oe+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*y,oe*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*y,oe*a,z*y,(oe-x)*a,z*y,(oe+x)*a)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,y,a){var E=new go.Geometry,b=y,x=a;y=y*.38,a=a*.6;var z=ae*.8,oe=.8,ie=0,ue=.5,ve=(b-y)/2,Se=(x-a)/2,Le=new go.PathFigure(ie*y+ve,(ue+oe)*a+Se,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*y+ve,ue*a+Se,(ie-z)*y+ve,(ue+oe)*a+Se,(ie-oe)*y+ve,(ue+z)*a+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue-oe)*a+Se,(ie-oe)*y+ve,(ue-z)*a+Se,(ie-z)*y+ve,(ue-oe)*a+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe+z*.5)*y+ve,ue*a+Se,ie*y+ve,(ue-oe)*a+Se,(ie-oe+z*.5)*y+ve,(ue-z)*a+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue+oe)*a+Se,(ie-oe+z*.5)*y+ve,(ue+z)*a+Se,ie*y+ve,(ue+oe)*a+Se).close()),z=ae*.4,oe=.4,ie=.2,ue=.5;var we=new go.PathFigure(ie*y+ve,(ue+oe)*a+Se,!0);E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*y+ve,ue*a+Se,(ie-z)*y+ve,(ue+oe)*a+Se,(ie-oe)*y+ve,(ue+z)*a+Se)),we.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue-oe)*a+Se,(ie-oe)*y+ve,(ue-z)*a+Se,(ie-z)*y+ve,(ue-oe)*a+Se)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe+z*.5)*y+ve,ue*a+Se,ie*y+ve,(ue-oe)*a+Se,(ie-oe+z*.5)*y+ve,(ue-z)*a+Se)),we.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue+oe)*a+Se,(ie-oe+z*.5)*y+ve,(ue+z)*a+Se,ie*y+ve,(ue+oe)*a+Se).close()),z=ae*.2,oe=.2,ie=.5,ue=.5;var Ne=new go.PathFigure((ie-oe)*y+ve,ue*a+Se,!0);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue-oe)*a+Se,(ie-oe)*y+ve,(ue-z)*a+Se,(ie-z)*y+ve,(ue-oe)*a+Se)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*y+ve,ue*a+Se,(ie+z)*y+ve,(ue-oe)*a+Se,(ie+oe)*y+ve,(ue-z)*a+Se)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue+oe)*a+Se,(ie+oe)*y+ve,(ue+z)*a+Se,(ie+z)*y+ve,(ue+oe)*a+Se)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*y+ve,ue*a+Se,(ie-z)*y+ve,(ue+oe)*a+Se,(ie-oe)*y+ve,(ue+z)*a+Se)),z=ae*.4,oe=.4,ie=.8,ue=.5;var xe=new go.PathFigure(ie*y+ve,(ue-oe)*a+Se,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*y+ve,ue*a+Se,(ie+z)*y+ve,(ue-oe)*a+Se,(ie+oe)*y+ve,(ue-z)*a+Se)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue+oe)*a+Se,(ie+oe)*y+ve,(ue+z)*a+Se,(ie+z)*y+ve,(ue+oe)*a+Se)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe-z*.5)*y+ve,ue*a+Se,ie*y+ve,(ue+oe)*a+Se,(ie+oe-z*.5)*y+ve,(ue+z)*a+Se)),xe.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue-oe)*a+Se,(ie+oe-z*.5)*y+ve,(ue-z)*a+Se,ie*y+ve,(ue-oe)*a+Se).close()),z=ae*.8,oe=.8,ie=1,ue=.5;var st=new go.PathFigure(ie*y+ve,(ue-oe)*a+Se,!0);return E.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*y+ve,ue*a+Se,(ie+z)*y+ve,(ue-oe)*a+Se,(ie+oe)*y+ve,(ue-z)*a+Se)),st.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue+oe)*a+Se,(ie+oe)*y+ve,(ue+z)*a+Se,(ie+z)*y+ve,(ue+oe)*a+Se)),st.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe-z*.5)*y+ve,ue*a+Se,ie*y+ve,(ue+oe)*a+Se,(ie+oe-z*.5)*y+ve,(ue+z)*a+Se)),st.add(new go.PathSegment(go.PathSegment.Bezier,ie*y+ve,(ue-oe)*a+Se,(ie+oe-z*.5)*y+ve,(ue-z)*a+Se,ie*y+ve,(ue-oe)*a+Se).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Move,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var x=new go.PathFigure(.1*y,a,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var oe=new go.PathFigure(0,.5*a,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),E}),go.Shape.defineFigureGenerator("Power",function(ne,y,a){var E=new go.Geometry,b=ae*.4,x=.4,z=.5,oe=.5,ie=te(),ue=te(),ve=te(),Se=te();_e(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.5,ie,ie,ue,ve,Se);var Le=ee(ue.x,ue.y),we=new go.PathFigure(ue.x*y,ue.y*a,!0);E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,oe*a,ve.x*y,ve.y*a,Se.x*y,Se.y*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+x)*a,(z+x)*y,(oe+b)*a,(z+b)*y,(oe+x)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,oe*a,(z-b)*y,(oe+x)*a,(z-x)*y,(oe+b)*a)),_e(z-x,oe,z-x,oe-b,z-b,oe-x,z,oe-x,.5,ve,Se,ue,ie,ie),we.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*y,ue.y*a,ve.x*y,ve.y*a,Se.x*y,Se.y*a)),b=ae*.3,x=.3,_e(z-x,oe,z-x,oe-b,z-b,oe-x,z,oe-x,.5,ve,Se,ue,ie,ie),we.add(new go.PathSegment(go.PathSegment.Line,ue.x*y,ue.y*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*y,oe*a,Se.x*y,Se.y*a,ve.x*y,ve.y*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+x)*a,(z-x)*y,(oe+b)*a,(z-b)*y,(oe+x)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*y,oe*a,(z+b)*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),_e(z,oe-x,z+b,oe-x,z+x,oe-b,z+x,oe,.5,ie,ie,ue,ve,Se),we.add(new go.PathSegment(go.PathSegment.Bezier,ue.x*y,ue.y*a,Se.x*y,Se.y*a,ve.x*y,ve.y*a).close());var we=new go.PathFigure(.45*y,0,!0);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),we.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),we.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),fe(ie),fe(ue),fe(ve),fe(Se),fe(Le),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function x(z,oe,ie){z.add(new go.PathSegment(go.PathSegment.Move,(.3+oe)*y,(.8+ie)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+oe)*y,(.5+ie)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+oe)*y,(.5+ie)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+oe)*y,(.8+ie)*a).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,y,a){var E=new go.Geometry,b=.5,x=0,z=0,oe=b*ae,ie=.4*Math.SQRT2/2+.5,ue=.5-.5*Math.SQRT2/2,ve=1,Se=.5,Le=.5,we=0,Ne=new go.PathFigure(ie*y,(1-ue)*a,!1);return E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,Se*a,ve*y,.7*a,ve*y,Se*a)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Le+x)*y,(we+x)*a,(.5+b+x)*y,(.5-oe+x)*a,(.5+oe+x)*y,(.5-b+x)*a)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*y,(.5+z)*a,(.5-oe+x)*y,(.5-b+z)*a,(.5-b+x)*y,(.5-oe+z)*a)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*y,.9*a,(.5-b+x)*y,(.5+oe+z)*a,(.5-oe+x)*y,.9*a)),Ne.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*y,.8*a)),Ne.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*y,.9*a)),Ne.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*y,.95*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var x=new go.PathFigure(.45*y,.73*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),x.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),x.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*y,(1-.555)*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),x.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,oe=.5,ie=z,ue=Math.PI/4,ve=4*(1-Math.cos(ue))/(3*Math.sin(ue)),Se=ve*.5,Le=z,we=z,Ne=ve*Le,xe=ve*we;x.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Le)*y,ie*a,(oe-(Ne+Le)/2)*y,(ie+(we+xe)/2)*a,(oe-Le)*y,(ie+xe)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,oe*y,(ie-we)*a,(oe-Le)*y,(ie-xe)*a,(oe-Ne)*y,(ie-we)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Le)*y,ie*a,(oe+Ne)*y,(ie-we)*a,(oe+Le)*y,(ie-xe)*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(oe+Le)*y,(ie+xe)*a,(oe+(Ne+Le)/2)*y,(ie+(we+xe)/2)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),x.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var st=new go.PathFigure(.2*y,a,!1);E.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var Ye=new go.PathFigure(.8*y,a,!1);return E.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var x=new go.PathFigure(.2*y,.2*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(y,a,!1);E.add(x);var z=new go.PathFigure(.1*y,a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,x*y,x*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var x=new go.PathFigure(.475*y,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),x.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),x.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,y,a){var E=new go.Geometry,b=.5,x=ae*.5,z=new go.PathFigure(y,b*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+x)*a,(b+x)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-x)*y,a,0,(b+x)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-x)*a,(b-x)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+x)*y,0,y,(b-x)*a));var oe=new go.PathFigure(b*y,0,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),oe.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),oe.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),oe.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),oe.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),E}),go.Shape.defineFigureGenerator("Package",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var x=new go.PathFigure(0,.15*a,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var x=new go.PathFigure(0,.2*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),x.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var x=new go.PathFigure(.15*y,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(y,.8*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,oe=ae*.1,ie=.2,ue=.9,ve=new go.PathFigure((ie-z)*y,ue*a,!0);E.add(ve),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue-z)*a,(ie-z)*y,(ue-oe)*a,(ie-oe)*y,(ue-z)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie+z)*y,ue*a,(ie+oe)*y,(ue-z)*a,(ie+z)*y,(ue-oe)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue+z)*a,(ie+z)*y,(ue+oe)*a,(ie+oe)*y,(ue+z)*a)),ve.add(new go.PathSegment(go.PathSegment.Bezier,(ie-z)*y,ue*a,(ie-oe)*y,(ue+z)*a,(ie-z)*y,(ue+oe)*a).close()),z=.1,oe=ae*.1,ie=.8,ue=.9;var Se=new go.PathFigure((ie-z)*y,ue*a,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue-z)*a,(ie-z)*y,(ue-oe)*a,(ie-oe)*y,(ue-z)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+z)*y,ue*a,(ie+oe)*y,(ue-z)*a,(ie+z)*y,(ue-oe)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ie*y,(ue+z)*a,(ie+z)*y,(ue+oe)*a,(ie+oe)*y,(ue+z)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-z)*y,ue*a,(ie-oe)*y,(ue+z)*a,(ie-z)*y,(ue+oe)*a).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var oe=new go.PathFigure(.5*y,.7*a,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var ie=.1,ue=ae*.1,ve=.1,Se=.9,Le=new go.PathFigure((ve-ie)*y,Se*a,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Se-ie)*a,(ve-ie)*y,(Se-ue)*a,(ve-ue)*y,(Se-ie)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*y,Se*a,(ve+ue)*y,(Se-ie)*a,(ve+ie)*y,(Se-ue)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Se+ie)*a,(ve+ie)*y,(Se+ue)*a,(ve+ue)*y,(Se+ie)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*y,Se*a,(ve-ue)*y,(Se+ie)*a,(ve-ie)*y,(Se+ue)*a)),ie=.1,ue=ae*.1,ve=.4,Se=.9;var we=new go.PathFigure((ve-ie)*y,Se*a,!0);return E.add(we),we.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Se-ie)*a,(ve-ie)*y,(Se-ue)*a,(ve-ue)*y,(Se-ie)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ve+ie)*y,Se*a,(ve+ue)*y,(Se-ie)*a,(ve+ie)*y,(Se-ue)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,ve*y,(Se+ie)*a,(ve+ie)*y,(Se+ue)*a,(ve+ue)*y,(Se+ie)*a)),we.add(new go.PathSegment(go.PathSegment.Bezier,(ve-ie)*y,Se*a,(ve-ue)*y,(Se+ie)*a,(ve-ie)*y,(Se+ue)*a)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var x=new go.PathFigure(.45*y,.7*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var ve=.05,Se=ae*.05,Le=.175,we=.95,oe=new go.PathFigure((Le-ve)*y,we*a,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(we-ve)*a,(Le-ve)*y,(we-Se)*a,(Le-Se)*y,(we-ve)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*y,we*a,(Le+Se)*y,(we-ve)*a,(Le+ve)*y,(we-Se)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(we+ve)*a,(Le+ve)*y,(we+Se)*a,(Le+Se)*y,(we+ve)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*y,we*a,(Le-Se)*y,(we+ve)*a,(Le-ve)*y,(we+Se)*a));var ve=.05,Se=ae*.05,Le=.375,we=.95,ie=new go.PathFigure((Le-ve)*y,we*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(we-ve)*a,(Le-ve)*y,(we-Se)*a,(Le-Se)*y,(we-ve)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*y,we*a,(Le+Se)*y,(we-ve)*a,(Le+ve)*y,(we-Se)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(we+ve)*a,(Le+ve)*y,(we+Se)*a,(Le+Se)*y,(we+ve)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*y,we*a,(Le-Se)*y,(we+ve)*a,(Le-ve)*y,(we+Se)*a));var ve=.05,Se=ae*.05,Le=.625,we=.95,ue=new go.PathFigure((Le-ve)*y,we*a,!0);E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(we-ve)*a,(Le-ve)*y,(we-Se)*a,(Le-Se)*y,(we-ve)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*y,we*a,(Le+Se)*y,(we-ve)*a,(Le+ve)*y,(we-Se)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(we+ve)*a,(Le+ve)*y,(we+Se)*a,(Le+Se)*y,(we+ve)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*y,we*a,(Le-Se)*y,(we+ve)*a,(Le-ve)*y,(we+Se)*a));var ve=.05,Se=ae*.05,Le=.825,we=.95,Ne=new go.PathFigure((Le-ve)*y,we*a,!0);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(we-ve)*a,(Le-ve)*y,(we-Se)*a,(Le-Se)*y,(we-ve)*a)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Le+ve)*y,we*a,(Le+Se)*y,(we-ve)*a,(Le+ve)*y,(we-Se)*a)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,Le*y,(we+ve)*a,(Le+ve)*y,(we+Se)*a,(Le+Se)*y,(we+ve)*a)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(Le-ve)*y,we*a,(Le-Se)*y,(we+ve)*a,(Le-ve)*y,(we+Se)*a).close());var xe=new go.PathFigure(0,a,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var oe=.05,ie=ae*.05,ue=.35,ve=.775,Se=new go.PathFigure((ue-oe)*y,ve*a,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*y,(ve-oe)*a,(ue-oe)*y,(ve-ie)*a,(ue-ie)*y,(ve-oe)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue+oe)*y,ve*a,(ue+ie)*y,(ve-oe)*a,(ue+oe)*y,(ve-ie)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ue*y,(ve+oe)*a,(ue+oe)*y,(ve+ie)*a,(ue+ie)*y,(ve+oe)*a)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ue-oe)*y,ve*a,(ue-ie)*y,(ve+oe)*a,(ue-oe)*y,(ve+ie)*a).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,y,a){var E=new go.Geometry,b=.3,x=ae*.3,z=.5,oe=.7,ie=new go.PathFigure((z-b)*y,oe*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-b)*a,(z-b)*y,(oe-x)*a,(z-x)*y,(oe-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,oe*a,(z+x)*y,(oe-b)*a,(z+b)*y,(oe-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+b)*a,(z+b)*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,oe*a,(z-x)*y,(oe+b)*a,(z-b)*y,(oe+x)*a));var ue=new go.PathFigure(0,.7*a,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var x=new go.PathFigure(0,.6*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),x.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,y,a){var E=new go.Geometry,b=.5,x=ae*.5,z=.5,oe=.5,ie=new go.PathFigure((z-b)*y,oe*a,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-b)*a,(z-b)*y,(oe-x)*a,(z-x)*y,(oe-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,oe*a,(z+x)*y,(oe-b)*a,(z+b)*y,(oe-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+b)*a,(z+b)*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,oe*a,(z-x)*y,(oe+b)*a,(z-b)*y,(oe+x)*a));var ue=new go.PathFigure(.15*y,.5*a,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,y,a){var E=new go.Geometry,b=.5,x=ae*.5,z=.5,oe=.5,ie=new go.PathFigure((z-b)*y,oe*a,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-b)*a,(z-b)*y,(oe-x)*a,(z-x)*y,(oe-b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,oe*a,(z+x)*y,(oe-b)*a,(z+b)*y,(oe-x)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+b)*a,(z+b)*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,oe*a,(z-x)*y,(oe+b)*a,(z-b)*y,(oe+x)*a).close()),b=.05,x=ae*.05,z=.5,oe=.8;var ue=new go.PathFigure((z-b)*y,oe*a,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe-b)*a,(z-b)*y,(oe-x)*a,(z-x)*y,(oe-b)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,oe*a,(z+x)*y,(oe-b)*a,(z+b)*y,(oe-x)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(oe+b)*a,(z+b)*y,(oe+x)*a,(z+x)*y,(oe+b)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,oe*a,(z-x)*y,(oe+b)*a,(z-b)*y,(oe+x)*a).close()),ue.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),E}),go.Shape.defineFigureGenerator("Location",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var x=new go.PathFigure(.2*y,.5*a,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),x.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var x=new go.PathFigure(0,a*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),x.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var x=new go.PathFigure(.126*y,.85*a,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),x.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var oe=new go.PathFigure(.678*y,.85*a,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var ie=new go.PathFigure(.5*y,.1*a,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,a*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var x=new go.PathFigure(y*.204,a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var oe=new go.PathFigure(y*.612,a,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),oe.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),oe.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var ie=new go.PathFigure(y*.816,a,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var x=new go.PathFigure(y*.055,.07*a,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),x.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var oe=new go.PathFigure(y*.055,.18*a,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),oe.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),oe.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var ie=new go.PathFigure(y*1,0,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),x.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var oe=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var ie=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,y,a){var E=new go.Geometry,b=8,x=b*ae,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var oe=new go.PathFigure(y*.83,0,!1);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var ie=new go.PathFigure(y*.83,a*1,!1);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var ue=new go.PathFigure(y*.78,a*.05,!1);return E.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),ue.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),ue.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,y,a){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,y/3),E=Math.min(E,a/3);var b=E*ae,x=a*.8,z=new go.Geometry,oe=new go.PathFigure(E,0,!0);return z.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y-E,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,y,E,y-b,0,y,b)),oe.add(new go.PathSegment(go.PathSegment.Line,y,x-E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,y-E,x,y,x-b,y-b,x)),oe.add(new go.PathSegment(go.PathSegment.Line,y*.7,x)),oe.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),oe.add(new go.PathSegment(go.PathSegment.Line,y*.55,x)),oe.add(new go.PathSegment(go.PathSegment.Line,E,x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),oe.add(new go.PathSegment(go.PathSegment.Line,0,E)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var x=new go.PathFigure(y*1,a*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),x.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),x.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),x.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var x=new go.PathFigure(y*.1,a*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),x.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),x.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,y,a){var E=new go.Geometry,b=15,x=b*ae,z=new go.PathFigure(y*.62,a*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-x,y-x,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,x,a,0,a-x)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.4,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-x)).close());var z=new go.PathFigure(y*.5,a*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var x=new go.PathFigure(y*.235,a*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),x.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),x.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,y,a){var E=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016: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 ot={},Ze="5.0",ee={},te=null,fe=!1,be=!1,_e=null,ce=!1,pe=null,ae=null,me=0;me<arguments.length;me++){var de=arguments[me];if(de!==null)switch(typeof de){case"number":Ze=de.toFixed(1);break;case"string":de.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ze=de:_e=de;break;case"object":typeof de.is3D!="undefined"?te=de:ee=de;break;case"boolean":fe=de,be=!0;break}}te===null&&(te={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ee.material_id!==void 0&&!be&&(fe=!0)),_e!==null&&ee.id===void 0&&(ee.id=_e);var ge="",le="",he=!1,re=null,ne=null,y=null,a=!1,E=null,b=null,x=null,z=null,oe=null;ee.height!==void 0&&(ee.height=Math.round(ee.height)),ee.width!==void 0&&(ee.width=Math.round(ee.width));var ie=function(rt){return parseFloat(rt)>4?parseFloat(rt):5};ot.setHTML5Codebase=function(rt,at){ae=rt,It(rt,at)},ot.setJavaCodebase=ot.setJavaCodebaseVersion=ot.isCompiledInstalled=ot.setPreCompiledScriptPath=ot.setPreCompiledResourcePath=function(){},ot.setHTML5CodebaseVersion=function(rt,at){var Ct=parseFloat(rt);if(Ct!==NaN&&Ct<5){console.log("The GeoGebra HTML5 codebase version "+Ct+" is deprecated. Using version latest instead.");return}pe=rt,Et(rt,at)},ot.getHTML5CodebaseVersion=function(){return ne},ot.getParameters=function(){return ee},ot.setFontsCSSURL=function(rt){z=rt},ot.setGiacJSURL=function(rt){},ot.setJNLPFile=function(rt){ge=rt},ot.setJNLPBaseDir=function(rt){},ot.inject=function(){function rt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var at="auto",Ct=ee.id,qt,Gt=!1,xt=0;xt<arguments.length;xt++){var Ve=arguments[xt];typeof Ve=="string"?(Ve=Ve.toLowerCase(),Ve.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?at=Ve:Ct=arguments[xt]):typeof Ve=="boolean"?Gt=Ve:Ve instanceof HTMLElement&&(qt=Ve)}Qt();function Qt(){if(!ce){setTimeout(Qt,200);return}at=ke(at);var Ln=qt||document.getElementById(Ct);if(!Ln){console.log("possibly bug on ajax loading? ");return}if(ot.removeExistingApplet(Ln,!1),ee.width===void 0&&Ln.clientWidth&&(ee.width=Ln.clientWidth),ee.height===void 0&&Ln.clientHeight&&(ee.height=Ln.clientHeight),!(ee.width&&ee.height)&&at==="html5"&&(delete ee.width,delete ee.height),re=at,at==="screenshot")Ye(Ln,ee);else{var Hn=!1;ee.hasOwnProperty("playButton")&&ee.playButton||ee.hasOwnProperty("clickToLoad")&&ee.clickToLoad?Hn=!0:ee.hasOwnProperty("playButtonAutoDecide")&&ee.playButtonAutoDecide&&(Hn=(!ue()||rt())&&ve()),Hn?(re="screenshot",Me(Ln,ee,Gt,at)):st(Ln,ee,Gt)}}};function ue(){try{return window.self!==window.top}catch(rt){return!0}}function ve(){return ee.hasOwnProperty("screenshotGenerator")&&ee.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ot.getViews=function(){return te},ot.isJavaInstalled=function(){return!1};var Se=function(rt){var at=function(xt){var Ve=JSON.parse(xt),Qt=function(mn){return mn.type=="G"||mn.type=="E"},Ln=Ve.elements?Ve.elements.filter(Qt)[0]:Ve;if(!Ln||!Ln.url){Ct();return}ee.fileName=Ln.url,Le(Ln.settings||{}),te.is3D=!0;var Hn="https://www.geogebra.org/images/";ot.setPreviewImage(E||Ln.previewUrl,Hn+"GeoGebra_loading.png",Hn+"applet_play.png"),rt()},Ct=function(){ee.onError&&ee.onError(),en("Error: Fetching material (id "+ee.material_id+") failed.",ee)},qt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Gt="/materials/"+ee.material_id+"?scope=basic";we("https://"+qt+"/api/proxy.php?path="+encodeURIComponent(Gt),at,Ct)};function Le(rt){var at=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ct){rt[Ct]=!!rt[Ct]}),at.forEach(function(Ct){ee[Ct]===void 0&&rt[Ct]!==void 0&&(ee[Ct]=rt[Ct])}),ee.showToolBarHelp===void 0&&(ee.showToolBarHelp=ee.showToolBar)}function we(rt,at,Ct){var qt=new XMLHttpRequest;qt.open("GET",rt),qt.onload=function(){at(qt.responseText)},qt.onerror=Ct,qt.send()}ot.isHTML5Installed=function(){return!0},ot.getLoadedAppletType=function(){return re},ot.setPreviewImage=function(rt,at,Ct){E=rt,b=at,x=Ct},ot.removeExistingApplet=function(rt,at){var Ct;typeof rt=="string"&&(rt=document.getElementById(rt)),re=null;var qt=null;for(Ct=0;Ct<rt.childNodes.length;Ct++){var Gt=rt.childNodes[Ct],xt=Gt.className;xt==="applet_screenshot"?at?(Gt.style.display="block",re="screenshot"):Gt.style.display="none":xt!=="applet_scaler prerender"&&(rt.removeChild(Gt),qt=xt&&xt.indexOf("appletParameters")!=-1?Gt.id:null,Ct--)}var Ve=ee.id!==void 0?ee.id:qt,Qt=window[Ve];Qt&&typeof Qt.getBase64=="function"&&(Qt.remove(),window[Ve]=null)},ot.refreshHitPoints=function(){if(ie(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var rt=ot.getAppletObject();return rt&&typeof rt.recalculateEnvironments=="function"?(rt.recalculateEnvironments(),!0):!1},ot.startAnimation=function(){var rt=ot.getAppletObject();return rt&&typeof rt.startAnimation=="function"?(rt.startAnimation(),!0):!1},ot.stopAnimation=function(){var rt=ot.getAppletObject();return rt&&typeof rt.stopAnimation=="function"?(rt.stopAnimation(),!0):!1},ot.getAppletObject=function(){var rt=ee.id!==void 0?ee.id:"ggbApplet";return window[rt]},ot.resize=function(){};var Ne=function(rt,at,Ct){var qt=document.createElement("param");qt.setAttribute("name",at),qt.setAttribute("value",Ct),rt.appendChild(qt)},xe=function(rt){return rt&&rt!=="false"},st=function(rt,at,Ct){ie(ne)<=4.2&&(Ct=!0);var qt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(qt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Gt=document.createElement("div");Gt.classList.add("appletParameters","notranslate");var xt=at.width,Ve=at.height;if(at.disableAutoScale=at.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():at.disableAutoScale,at.width!==void 0)if(ie(ne)<=4.4)xe(at.showToolBar)&&(at.height-=7),xe(at.showAlgebraInput)&&(at.height-=37),at.width<605&&xe(at.showToolBar)&&(at.width=605,xt=605);else{var Qt=100;(xe(at.showToolBar)||xe(at.showMenuBar))&&(at.hasOwnProperty("customToolBar")&&(at.customToolbar=at.customToolBar),Qt=xe(at.showMenuBar)?245:155),xt<Qt&&(at.width=Qt,xt=Qt)}Gt.style.border="none",Gt.style.display="inline-block";for(var Ln in at)at.hasOwnProperty(Ln)&&Ln!=="appletOnLoad"&&Gt.setAttribute("data-param-"+Ln,at[Ln]);z&&Gt.setAttribute("data-param-fontscssurl",z),ot.resize=function(){GGBAppletUtils.responsiveResize(rt,at)},window.addEventListener("resize",function(Wt){ot.resize()});var Hn=typeof at.appletOnLoad=="function"?at.appletOnLoad:function(){};if(!Ct&&at.width!==void 0){at.hasOwnProperty("showSplash")||Gt.setAttribute("data-param-showSplash","false");var mn=rt.querySelector(".applet_scaler.prerender"),zt=mn!==null;if(zt)var et=mn.querySelector(".ggb_preview");else{var et=Re(xt,Ve,at.borderColor,!1);mn=document.createElement("div"),mn.className="applet_scaler",mn.style.position="relative",mn.style.display="block",mn.style.width=xt+"px",mn.style.height=Ve+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(mn,"66%"),ie(ne)>=5?(at.appletOnLoad=function(Wt){var He=rt.querySelector(".ggb_preview");He&&He.parentNode.removeChild(He),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(mn),window.GGBT_wsf_view&&$(window).trigger("resize"),Hn(Wt)},zt||mn.appendChild(et)):Gt.appendChild(et),mn.appendChild(Gt),zt||rt.appendChild(mn),setTimeout(function(){ot.resize()},1)}else{var Xe=document.createElement("div");Xe.className="applet_scaler",Xe.style.position="relative",Xe.style.display="block",Xe.appendChild(Gt),rt.appendChild(Xe),at.appletOnLoad=function(Wt){ot.resize(),Hn(Wt)}}function qe(Wt,He){He&&typeof He.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Wt,He.appletOnLoad):renderGGBElement(Wt),en("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",He)}function ft(Wt,He){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Wt,params:He}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ut){qe(ut.article,ut.params)}),html5AppletsToProcess=null)},ie(ne)<5&&(Wt.className+=" geogebraweb")):qe(Wt,He)}if(qt){scriptLoadStarted=!0;for(var Dt=0;Dt<Gt.childNodes.length;Dt++){var tt=Gt.childNodes[Dt].tagName;tt==="TABLE"&&(Gt.removeChild(Gt.childNodes[Dt]),Dt--)}if(ggbHTML5LoadedScript!==null){var vt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');vt!=null&&vt.parentNode.removeChild(vt)}var bt=document.createElement("script"),Qe=function(){ft(Gt,at)};bt.src=le+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=bt.src,en("GeoGebra HTML5 codebase loaded: '"+le+"'.",at),!ae&&(!pe||pe=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Qe()):le.requirejs?__webpack_require__.e(12).then(function(){var Wt=[__webpack_require__(12)];Qe.apply(null,Wt)}.bind(this)).catch(__webpack_require__.oe):(bt.onload=Qe,rt.appendChild(bt))}else ft(Gt,at);at.height=Ve,at.width=xt},Ye=function(rt,at,Ct){var qt=Re(at.width,at.height,at.borderColor,Ct),Gt=document.createElement("div");Gt.style.position="relative",Gt.style.display="block",Gt.style.width=at.width+"px",Gt.style.height=at.height+"px",Gt.className="applet_screenshot applet_scaler"+(Ct?" applet_screenshot_play":""),Gt.appendChild(qt);var xt=GGBAppletUtils.getScale(at,rt,Ct);Ct?(rt.appendChild(Be()),window.GGBT_wsf_view||(rt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Gt,"66%"),rt.appendChild(Gt),xt!==1&&!isNaN(xt)&&(GGBAppletUtils.scaleElement(Gt,xt),Gt.style.width=at.width+"px",Gt.style.height=at.height+"px",Gt.parentNode.style.width=at.width*xt+"px",Gt.parentNode.style.height=at.height*xt+"px"),ot.resize=function(){lt(rt,qt,Gt,Ct)},window.addEventListener("resize",function(Ve){ot.resize()}),ot.resize()};function lt(rt,at,Ct,qt){if(rt.contains(at)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(rt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(rt)}var Gt=GGBAppletUtils.getScale(ee,rt,qt);Ct.parentNode!==null&&(!isNaN(Gt)&&Gt!==1?(GGBAppletUtils.scaleElement(Ct,Gt),Ct.parentNode.style.width=ee.width*Gt+"px",Ct.parentNode.style.height=ee.height*Gt+"px"):(GGBAppletUtils.scaleElement(Ct,1),Ct.parentNode.style.width=ee.width+"px",Ct.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(rt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ot.onExitFullscreen=function(rt,at){at.appendChild(rt)};var Me=function(rt,at,Ct,qt){Ye(rt,at,!0);for(var Gt=function(){var Qt=[];for(Ve=0;Ve<rt.childNodes.length;Ve++)Qt.push(rt.childNodes[Ve]);if(window.GGBT_wsf_view){var Ln=window.GGBT_wsf_view.renderFullScreen(rt,at.id),Hn=document.getElementById("fullscreencontainer"),mn=jQuery(rt).find(".fullscreencontent");mn.length>0?(Ln.remove(),mn.attr("id","fullscreencontent").show(),jQuery(Hn).append(mn),window.dispatchEvent(new Event("resize"))):st(Ln,at,!1),window.GGBT_wsf_view.launchFullScreen(Hn)}else re=qt,st(rt,at,!1);if(!window.GGBT_wsf_view)for(Ve=0;Ve<Qt.length;Ve++)rt.removeChild(Qt[Ve])},xt=rt.getElementsByClassName("ggb_preview_play"),Ve=0;Ve<xt.length;Ve++)xt[Ve].addEventListener("click",Gt,!1),xt[Ve].addEventListener("ontouchstart",Gt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(rt),ve()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Be=function(){var rt=document.createElement("div");if(rt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var at='.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");}',Ct=document.createElement("style");Ct.styleSheet?Ct.styleSheet.cssText=at:Ct.appendChild(document.createTextNode(at)),document.getElementsByTagName("head")[0].appendChild(Ct)}return rt},Re=function(rt,at,Ct,qt){var Gt=document.createElement("div");Gt.className="ggb_preview",Gt.style.position="absolute",Gt.style.zIndex="90",Gt.style.width=rt-2+"px",Gt.style.height=at-2+"px",Gt.style.top="0px",Gt.style.left="0px",Gt.style.overflow="hidden",Gt.style.backgroundColor="white";var xt="lightgrey";Ct!==void 0&&(Ct==="none"?xt="transparent":xt=Ct),Gt.style.border="1px solid "+xt;var Ve=document.createElement("img");if(Ve.style.position="relative",Ve.style.zIndex="1000",Ve.style.top="-1px",Ve.style.left="-1px",E!==null&&Ve.setAttribute("src",E),Ve.style.opacity=.7,b!==null){var Qt,Ln,Hn;if(!qt){Qt=document.createElement("img"),Qt.style.position="absolute",Qt.style.zIndex="1001",Qt.style.opacity=1,Ve.style.opacity=.3,Ln=360,Ln>rt/4*3&&(Ln=rt/4*3),Hn=Ln/5.8,Qt.setAttribute("src",b),Qt.setAttribute("width",Ln),Qt.setAttribute("height",Hn);var mn=(rt-Ln)/2,zt=(at-Hn)/2;Qt.style.left=mn+"px",Qt.style.top=zt+"px",Gt.appendChild(Qt)}}return Gt.appendChild(Ve),Gt},ke=function(rt){return rt=rt.toLowerCase(),rt==="html5"||rt==="screenshot"?rt:"html5"},Ge=["web","webSimple","web3d","tablet","tablet3d","phone"],Et=function(rt,at){if(ne=rt,at){It(ne,!0);return}var Ct=!fe;if(Ct){var qt=ie(ne);!isNaN(qt)&&qt<4.4&&(Ct=!1)}var Gt,xt;window.location.protocol.substr(0,4)==="http"?Gt=window.location.protocol:Gt="http:";var Ve=ne.indexOf("//");Ve>0?xt=ne:Ve===0?xt=Gt+ne:xt="https://www.geogebra.org/apps/5.2.814.0/";for(var Qt in Ge)if(ne.slice(Ge[Qt].length*-1)===Ge[Qt]||ne.slice((Ge[Qt].length+1)*-1)===Ge[Qt]+"/"){It(xt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ct&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!xe(ee.showToolBar)&&!xe(ee.showMenuBar)&&!xe(ee.showAlgebraInput)&&!xe(ee.enableRightClick)&&(!ee.appName||ee.appName=="classic")?xt+="webSimple/":xt+="web3d/",It(xt,!1)},It=function(rt,at){if(rt.requirejs){le=rt;return}rt.slice(-1)!=="/"&&(rt+="/"),le=rt,at===null&&(at=rt.indexOf("http")===-1),he=at,y="web.nocache.js",a=!1;var Ct=le.split("/");Ct.length>1&&(!at&&Ct[Ct.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):Ge.indexOf(Ct[Ct.length-2])>=0&&(y=Ct[Ct.length-2]+".nocache.js")),Ct=rt.split("/"),ne=Ct[Ct.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var qt=parseFloat(ne);qt!==NaN&&qt<5&&rt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+qt+" is deprecated. Using version latest instead."),Et("5.0",at))},en=function(rt,at){window.console&&window.console.log&&(!at||typeof at.showLogging=="undefined"||at.showLogging&&at.showLogging!=="false")&&console.log(rt)};ee.material_id!==void 0?Se(Zt):Zt();function Zt(){var rt=Ze;pe!==null?rt=pe:parseFloat(rt)<5&&(rt="5.0"),Et(rt,!1),ae!==null&&It(ae,he),ce=!0}return ot},GGBAppletUtils=function(){"use strict";function ot(){return window.GGBT_wsf_edit!==void 0}function Ze(ce,pe){pe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+pe+","+pe+")",ce.style.webkitTransform="scale("+pe+","+pe+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function ee(ce,pe,ae,me,de,ge){var le=null;if(ge!=null&&ge!="")for(var he=ce.parentNode;he!=null;)if((" "+he.className+" ").indexOf(" "+ge+" ")>-1){le=he;break}else he=he.parentNode;var re=0,ne=0,y=0,a=0,E=0,b=0,x=0;if(le)re=le.offsetWidth,ne=Math.max(me?le.offsetWidth:0,le.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),y=re):(re=window.innerWidth,ne=window.innerHeight,y=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=re&&(de===void 0||!de)&&(document.dir==="rtl"?(E=re-z.width-z.left,b=y<=480?10:30):(b=z.left,E=y<=480?10:30),a=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var oe=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,x=40)}}return ce&&((ae===void 0||!ae)&&pe>0&&pe+a<re?re=pe:re-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ae===void 0||!ae)&&(ne-=x)),{width:re,height:ne}}function te(ce,pe,ae,me,de){if(ce.isScreenshoGenerator)return 1;var ge=me!==void 0&&me,le=ce.noScaleMargin!=null&&ce.noScaleMargin,he=function(oe){return oe&&oe!=="false"},re=he(ce.autoHeight),ne=ee(pe,ce.width,ae,re,ge&&window.GGBT_wsf_view||le,de),y=parseInt(ne.width),a=ce.width,E=ce.height;if(a===void 0){var b=pe.querySelector(".appletParameters");b&&(a=b.offsetWidth,E=b.offsetHeight)}var x=y/a,z=ge?1:ne.height/E;return ae!==void 0&&!ae&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function fe(ce,pe,ae){var me=1,de,ge=!1;if(ce.hasOwnProperty("allowUpscale")&&(ge=ce.allowUpscale),ce.hasOwnProperty("scale")&&(me=parseFloat(ce.scale),(isNaN(me)||me===null||me===0)&&(me=1),me>1&&(ge=!0)),pe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ge=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))de=te(ce,pe,ge,ae,ce.scaleContainerClass);else return me;return ge&&(!ce.hasOwnProperty("scale")||me===1)?de:Math.min(me,de)}function be(ce){var pe=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),me=ce.getBoundingClientRect(),de=(pe-me.width)/2,ge=(ae-me.height)/2;ge<0&&(ge=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(de<40?ce.style.left="40px":ce.style.left=de+"px",ce.style.top=ge+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ge<40?ce.style.top="40px":ce.style.top=ge+"px",ce.style.left=de+"px")}function _e(ce,pe){var ae=ce.querySelector(".appletParameters");if(ae){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(pe.id!==ae.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(ae.parentElement&&/fullscreen/.test(ae.parentElement.className))return;var me=fe(pe,ce);ot()&&ae.setAttribute("data-param-scale",me);for(var de=null,ge=0;ge<ce.childNodes.length;ge++)if(ce.childNodes[ge].className!==void 0&&ce.childNodes[ge].className.match(/^applet_scaler/)){de=ce.childNodes[ge];break}if(de!==null&&de.querySelector(".noscale")!==null)return;var le=pe.id!==void 0?pe.id:"ggbApplet",he=window[le];(he==null||!he.recalculateEnvironments)&&de!==null&&!de.className.match(/fullscreen/)&&(de.parentNode.style.transform="",!isNaN(me)&&me!==1?(de.parentNode.style.width=pe.width*me+"px",de.parentNode.style.height=pe.height*me+"px",Ze(de,me)):(Ze(de,1),de.parentNode.style.width=pe.width+"px",de.parentNode.style.height=pe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&be(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ae).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:ot,positionCenter:be,getScale:fe,scaleElement:Ze}}();__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 ot=n.location.search;return ot.indexOf(J)!=-1||ot.indexOf(K)!=-1}function q(ot,Ze){}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(ot){var Ze=s[L].bindings;s[L].bindings=function(){for(var ee=Ze?Ze():{},te=ot[webModule.__softPermutationId],fe=O;fe<te.length;fe++){var be=te[fe];ee[be[O]]=be[P]}return ee}};var t;function u(){return v(),t}function v(){if(!t){var ot=o.createElement(Q);if(ot.id=L,ot.style.cssText=R+S,ot.tabIndex=-1,o.body.appendChild(ot),t=ot.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ze=document.compatMode==U?V:W;t.write(Ze+X),t.close()}}}function w(ot){function Ze(te){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var be=fe();if(be){te();return}function _e(){if(!be){if(!fe())return;be=!0,te(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var ce=setInterval(function(){_e()},$)}function ee(te){var fe=u(),be=fe.body,_e=fe.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=te,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),be.appendChild(_e)}Ze(function(){ee(ot)})}webModule.__startLoadingFragment=function(ot){return C(ot)},webModule.__installRunAsyncCode=function(ot){var Ze=u(),ee=Ze.body,te=Ze.createElement(_);te.language=ab,te.text=ot,ee.appendChild(te),ee.removeChild(te)};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(ot){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ot){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ot){var Ze=c[ot];return Ze==null?null:Ze},r=d,webModule.__errFn=e}function B(){function ot(ce){var pe=ce.lastIndexOf(rb);pe==-1&&(pe=ce.length);var ae=ce.indexOf(sb);ae==-1&&(ae=ce.length);var me=ce.lastIndexOf(tb,Math.min(ae,pe));return me>=O?ce.substring(O,me+P):W}function Ze(ce){if(!ce.match(/^\w+:\/\//)){var pe=o.createElement(ub);pe.src=ce+vb,ce=ot(pe.src)}return ce}function ee(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function te(){for(var ce=o.getElementsByTagName(_),pe=O;pe<ce.length;++pe)if(ce[pe].src.indexOf(xb)!=-1)return ot(ce[pe].src);return W}function fe(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function be(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var _e=ee();return _e==W&&(_e=te()),_e==W&&(_e=fe()),_e==W&&be()&&(_e=ot(o.location.href)),_e=Ze(_e),_e}function C(ot){return ot.match(/^\//)||ot.match(/^[a-zA-Z]+:\/\//)?ot:webModule.__moduleBase+ot}function D(){var ot=[],Ze=O,ee=[],te=[];function fe(ce){var pe=te[ce](),ae=ee[ce];if(pe in ae)return pe;var me=[];for(var de in ae)me[ae[de]]=de;throw r&&r(ce,me,pe),null}if(__gwt_isKnownPropertyValue=function(ce,pe){return pe in ee[ce]},webModule.__getPropMap=function(){var ce={};for(var pe in ee)ee.hasOwnProperty(pe)&&(ce[pe]=fe(pe));return ce},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var _e=be.indexOf(Db);_e!=-1&&(Ze=parseInt(be.substring(_e+P),$),be=be.substring(O,_e))}catch(ce){}return webModule.__softPermutationId=Ze,C(be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/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})()},15476:function(ot,Ze,ee){"use strict";ee.d(Ze,{Ax:function(){return _e},Ds:function(){return ce},KI:function(){return ae},SI:function(){return be},f1:function(){return fe}});var te=ee(11320);function fe(me){let de=!0;if(me.length>0){for(let ge=0;ge<me.length;ge++)if(me[ge].compile_success==0||!me[ge].compile_success){de=!1;break}}else de=!1;return de}function be(me,de=""){let ge=[];for(let le=0;le<me.length;le++){let he=me[le],re=de?`${de}/${he.name}`:`${he.name}`;ge.push({title:he.name,type:he.type,isLeaf:he.type!=="tree",key:re})}return ge}function _e(me,de,ge){for(let le=0;le<me.length;le++){let he=me[le];if(he.key===de){he.children=ge;break}he.children&&_e(he.children,de,ge)}return me}function ce(me,de,ge){let le;return function(){let he=this,re=arguments,ne=function(){le=null,ge||me.apply(he,re)},y=ge&&!le;clearTimeout(le),le=setTimeout(ne,de),y&&me.apply(he,re)}}const pe=!0,ae=te.Z.API_SERVER},95235:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return b}});var te=ee(67294),fe=ee(33170),be=ee(25934),_e=ee(94184),ce=ee.n(_e),pe={upload:"upload___jpwPD"},ae=Object.defineProperty,me=Object.defineProperties,de=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,re=(x,z,oe)=>z in x?ae(x,z,{enumerable:!0,configurable:!0,writable:!0,value:oe}):x[z]=oe,ne=(x,z)=>{for(var oe in z||(z={}))le.call(z,oe)&&re(x,oe,z[oe]);if(ge)for(var oe of ge(z))he.call(z,oe)&&re(x,oe,z[oe]);return x},y=(x,z)=>me(x,de(z)),a=(x,z,oe)=>new Promise((ie,ue)=>{var ve=we=>{try{Le(oe.next(we))}catch(Ne){ue(Ne)}},Se=we=>{try{Le(oe.throw(we))}catch(Ne){ue(Ne)}},Le=we=>we.done?ie(we.value):Promise.resolve(we.value).then(ve,Se);Le((oe=oe.apply(x,z)).next())});const E=({chunkSize:x=1024*1024*2,options:z={},onCancel:oe,onComplete:ie,onError:ue,onProgress:ve,onBefore:Se,onBeginInitFile:Le,children:we,accept:Ne,className:xe,style:st={},concurrency:Ye=4},lt)=>{let[Me,Be]=(0,te.useState)("ready");const[Re,ke]=(0,te.useState)(0),[Ge,Et]=(0,te.useState)(""),[It,en]=(0,te.useState)(null),Zt=(0,te.useRef)(null),rt=(0,te.useRef)((0,be.Z)()),at=(0,te.useRef)(!1);(0,te.useImperativeHandle)(lt,()=>({cancel:Gt,file:It,uploadStatus:Me}));const Ct=()=>{const Ve=document.getElementById(rt.current);Ve&&(Ve.value="")},qt=Ve=>a(void 0,null,function*(){var Qt;if(Me==="uploading")return;Le&&Le(Ve);const Ln=Ve.size,Hn=Math.ceil(Ln/x);at.current=!1,Be("uploading"),ke(0),Et("");try{const mn=yield(0,fe.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:Ve.name,chunkCount:Hn},z)});if(at.current||(mn==null?void 0:mn.status)!==0)throw new Error;const{upload_id:zt}=mn;Zt.current=new AbortController;const et=[];let Xe=0;for(let tt=0;tt<Hn;tt++){const vt=tt*x,bt=Math.min(vt+x,Ln),Qe=Ve.slice(vt,bt),Wt=new FormData;Wt.append("chunk",Qe),Wt.append("fileName",Ve.name),Wt.append("chunkIndex",(tt+1).toString()),Wt.append("uploadId",zt);for(const He in z)Object.prototype.hasOwnProperty.call(z,He)&&Wt.append(He,z[He]);et.push(()=>(0,fe.ZP)("/api/attachments/multipart_upload",{method:"POST",body:Wt,signal:Zt.current.signal},!0).then(He=>{console.log(He,444),Xe++;const ut=Math.round(Xe/Hn*100);ke(ut),ve&&ve(y(ne({},He),{file:Ve,percent:ut}))}))}let qe=0,ft=Ye;for(console.log(et,"promises");qe<et.length;){const tt=(Qt=et.slice(qe,qe+ft))==null?void 0:Qt.map(vt=>vt());if(tt.length>0){const vt=yield Promise.all(tt);qe+=ft}}const Dt=yield(0,fe.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:Ve.name,chunkCount:Hn,uploadId:zt},z)});Dt.object?(Be("success"),Ct(),ie&&ie(y(ne({},Dt),{file:Ve,percent:100}))):(Be("error"),Et("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ue&&ue(Ve.name))}catch(mn){Be("error"),Et("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Ct(),ue&&ue(Ve.name)}}),Gt=(0,te.useCallback)(()=>{at.current=!0,Zt.current&&(Zt.current.abort(),oe&&oe())},[oe]),xt=Ve=>{var Qt,Ln;const Hn=(Ln=(Qt=Ve==null?void 0:Ve.target)==null?void 0:Qt.files)==null?void 0:Ln[0];if(en(Hn),Me="ready",!!Hn){if(Se){Se(Hn)||qt(Hn),Ct();return}qt(Hn)}};return te.createElement(te.Fragment,null,te.createElement("input",{type:"file",id:rt.current,style:{display:"none"},onChange:xt,accept:Ne}),te.createElement("label",{className:ce()(pe.upload,xe),htmlFor:rt.current,style:st},we))};var b=(0,te.forwardRef)(E)},63205:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return he}});var te=ee(67294),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=ee(94184),_e=ee.n(be),ce=ee(57953),pe=ee(15979),ae=ee(33170),me=ee(28706),de=ee(35973),ge=(re,ne,y)=>new Promise((a,E)=>{var b=oe=>{try{z(y.next(oe))}catch(ie){E(ie)}},x=oe=>{try{z(y.throw(oe))}catch(ie){E(ie)}},z=oe=>oe.done?a(oe.value):Promise.resolve(oe.value).then(b,x);z((y=y.apply(re,ne)).next())}),he=({data:re,className:ne,fullWidth:y,style:a={},onClose:E,onOk:b,showFullTools:x,noAssociationId:z})=>{const oe=(0,de.useIntl)(),ie=(0,te.useRef)(null),ue=(0,te.useRef)(null),ve=(0,te.useRef)(null),Se=(0,te.useRef)(null),[Le,we]=(0,te.useState)(!1),[Ne,xe]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ve.current||(ve.current=document.createElement("style"),document.head.appendChild(ve.current)),re!=null&&re.visible?(document.body.setAttribute("data-custom","y-hidden"),ve.current.innerHTML=" html { overflow-y: hidden; }",re!=null&&re.src&&st()):(document.body.removeAttribute("data-custom"),ve.current&&(document.head.removeChild(ve.current),ve.current=null))},[re==null?void 0:re.visible]);const st=()=>ge(void 0,null,function*(){we(!0),xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Re=yield(0,me.ZJ)(re==null?void 0:re.src);ie.current.src="",ie.current.src=Re,ie.current.onload=function(){Be()},we(!1),xe("")}),Ye=()=>{document.body.removeAttribute("data-custom"),ve.current.innerHTML=" ",E()},lt=Re=>ge(void 0,null,function*(){we(!0),xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ke=yield(0,ae.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:re.title,file:Re.dataUrl}});ke!=null&&ke.id&&!z?(yield(0,ae.ZP)(`/api/attachments/${re.id}/add_subitem.json`,{method:"post",body:{subitem_id:ke==null?void 0:ke.id,settings:JSON.stringify(Re.state)}})).status===0&&b():ke!=null&&ke.id&&b(ke),document.body.removeAttribute("data-custom"),ve.current.innerHTML=" ",we(!1),xe("")}),Me=()=>{const Re=document.querySelector('a[href="https://markerjs.com/"]');Re&&Re.parentNode&&(Re.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:oe.formatMessage({id:"shixuns.text",defaultMessage:"\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:oe.formatMessage({id:"classroomClassroomExperiments.save",defaultMessage:"\u4FDD\u5B58"})},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ge=>{const Et=document.querySelector(Ge.name);Et&&Et.setAttribute("title",Ge.title)})},Be=()=>{ue.current=new pe.hP(ie.current),ue.current.targetRoot=Se.current,ue.current.addEventListener("render",lt),ue.current.addEventListener("beforeclose",Ye),x&&(ue.current.availableMarkerTypes=ue.current.ALL_MARKER_TYPES,ue.current.uiStyleSettings.redoButtonVisible=!0,ue.current.uiStyleSettings.notesButtonVisible=!0,ue.current.uiStyleSettings.zoomButtonVisible=!0,ue.current.uiStyleSettings.zoomOutButtonVisible=!0,ue.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ue.current.uiStyleSettings,ue.current.show(),re!=null&&re.snapshotData&&ue.current.restoreState(re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Me()},300)};return te.createElement(te.Fragment,null,(re==null?void 0:re.visible)&&te.createElement(ce.Z,{spinning:Le,tip:Ne,style:{position:"absolute"}},te.createElement("div",{ref:Se,className:_e()(fe.imageDimensions,ne,y?fe.fullWidth:""),style:a},te.createElement("img",{className:fe.img,ref:ie}))))}},36527:function(ot,Ze,ee){"use strict";var te=ee(67294),fe=ee(71230),be=ee(15746),_e=ee(66368),ce=ee(71577),pe=ee(85725),ae=ee(71736),me=ee(84279),de=ee(35973),ge=ee(67294);const le=(0,te.forwardRef)(({callback:he,showSaveButton:re,value:ne=""},y)=>{const a=(0,te.useRef)(),E=(0,de.useIntl)(),b=[{name:E.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\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 "}]}]}],x=[{name:E.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:E.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],z=ue=>{a.current.setValue(a.current.getValue()+" "+ue.value+" ")},oe=[{key:"1",label:E.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:ge.createElement(fe.Z,{className:ae.Z.lists,gutter:[10,10]},b.map((ue,ve)=>ge.createElement(be.Z,{flex:"110px",className:ae.Z.item},ge.createElement("div",null,ge.createElement(pe.Z,{value:`$$${ue.value}$$`}),ue.name),ge.createElement("div",{className:ae.Z.children},ue.children.map((Se,Le)=>ge.createElement("div",{key:Le},ge.createElement("h1",null,Se.name),ge.createElement(fe.Z,{gutter:[10,10]},Se.data.map((we,Ne)=>ge.createElement(be.Z,{key:Ne,onClick:()=>z(we),className:ae.Z.diamond},ge.createElement(pe.Z,{value:"`$$"+we.value+"$$`"}))))))))))},{key:"2",label:E.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:ge.createElement(fe.Z,{className:ae.Z.lists,gutter:[10,10]},x.map((ue,ve)=>ge.createElement(be.Z,{flex:"110px",className:ae.Z.item},ge.createElement("div",null,ge.createElement(pe.Z,{value:"`$$"+ue.value+"$$`"}),ue.name),ge.createElement("div",{className:ae.Z.children},ue.children.map((Se,Le)=>ge.createElement("div",{key:Le},Se.name&&ge.createElement("h1",null,Se.name),ge.createElement(fe.Z,{gutter:[10,10]},Se.data.map((we,Ne)=>ge.createElement(be.Z,{key:Ne,onClick:()=>z(we),className:ae.Z.diamond},ge.createElement(pe.Z,{value:"`$$"+we.value+"$$`"}))))))))))}],ie=()=>{var ue=document.createElement("div");ue.innerHTML=a.current.getValue();var ve=ue.innerText;return he&&he(ve),ve};return(0,te.useImperativeHandle)(y,()=>({getData:ie})),ge.createElement("div",{className:ae.Z.mathWrap},ge.createElement(_e.default,{defaultActiveKey:"1",items:oe}),ge.createElement("math-field",{locale:"zh_cn",className:ae.Z.mathField,placeholder:E.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:a,style:{width:800,marginTop:30,fontSize:18}},ne||""),re&&ge.createElement("div",{className:ae.Z.button},ge.createElement(ce.ZP,{size:"large",onClick:ie,style:{zIndex:8,marginTop:10},type:"primary"},E.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});Ze.Z=le},7621:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return _e}});var te=ee(35973),fe={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=ee(67294),_e=({message:ce,className:pe,children:ae,style:me={}})=>be.createElement("div",{className:`custom-spinner ${fe.idsRingWrapper} ${pe}`},be.createElement("div",{className:fe.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),ce?be.createElement("p",{style:me},ce):null,ae,be.createElement(te.Outlet,null))},60076:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return _e}});var te=ee(67294),fe=ee(33054),be=ee(67294),_e=({defaultX:ce="40%",leftChild:pe,rightChild:ae,className:me,hideResize:de=!1})=>{const[ge,le]=(0,te.useState)(ce),he=(0,te.useRef)();function re(){he.current=!0}(0,te.useEffect)(()=>{function a(b){he.current&&(fe.Z.publish("resize-move-bar",b),le(b.pageX))}function E(){he.current=!1}return window.addEventListener("mousemove",a),window.addEventListener("mouseup",E),()=>{window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",E)}},[]);const ne=typeof ge=="number"&&ge!==.01?`${ge}px`:ce,y=`calc(100% - ${de?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${me}`},be.createElement("section",{style:{width:ne,display:ge===.01?"none":""}},pe),be.createElement("section",{className:"resize-x-bar",onMouseDown:re},be.createElement("a",{className:"btn-resize"},be.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},be.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"})))),be.createElement("section",{style:{width:y}},ae))}},38658:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ae}});var te=ee(67294),fe={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_"},be=ee(94184),_e=ee.n(be),ce=ee(35973),ae=({className:me,style:de={},leftNode:ge,leftTitle:le,rightNode:he,rightTitle:re})=>{const ne=(0,ce.useIntl)();return te.createElement("div",{className:_e()(fe.result,me),style:de},te.createElement("div",{className:fe.left},te.createElement("div",{className:fe.title},te.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),te.createElement("span",null,le||ne.formatMessage({id:"shixuns.selfTestInput",defaultMessage:"\u81EA\u6D4B\u8F93\u5165"}))),te.createElement("div",{className:fe.leftNode},ge)),te.createElement("div",{className:fe.right},te.createElement("div",{className:fe.title},te.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),te.createElement("span",null,re||ne.formatMessage({id:"shixuns.executionResults",defaultMessage:"\u8FD0\u884C\u7ED3\u679C"}))),te.createElement("div",{className:fe.rightNode},he)))}},88508:function(ot,Ze,ee){"use strict";var te=ee(67294);const fe=_e=>String(_e).length===1?`0${_e}`:_e,be=({className:_e="",onChange:ce,defaultValue:pe=0})=>{const[ae,me]=(0,te.useState)(pe);(0,te.useEffect)(()=>{const he=setTimeout(()=>{me(ae+1e3)},1e3);return ce(ae+1e3),()=>{clearInterval(he)}},[ae]);const de=parseInt(ae/(60*6e4))||"00",ge=parseInt(ae%(60*6e4)/6e4)||"00",le=parseInt(ae%6e4/1e3)||"00";return te.createElement("div",{className:_e},fe(de),":",fe(ge),":",fe(le))};Ze.Z=be},6104:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return E}});var te=ee(67294),fe=ee(2453),be=ee(85418),_e=ee(24577),ce=ee(67631),pe=ee.n(ce),ae=ee(52262),me=ee(74855),de=ee(51959),ge={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"},le=ee(35973),he=(b,x,z)=>new Promise((oe,ie)=>{var ue=Le=>{try{Se(z.next(Le))}catch(we){ie(we)}},ve=Le=>{try{Se(z.throw(Le))}catch(we){ie(we)}},Se=Le=>Le.done?oe(Le.value):Promise.resolve(Le.value).then(ue,ve);Se((z=z.apply(b,x)).next())});function re(b){if(isNaN(b))return{minutes:"00",seconds:"00"};const x=new Date(b*1e3).toISOString().substr(11,8);return{hour:x.substr(0,2),minutes:x.substr(3,2),seconds:x.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function ne(b,x){return b-x}function y(b){b.sort(ne);let x=0;for(let z=0;z<b.length-1;z++){let oe=Math.abs(b[z+1]-b[z]);oe<21&&(x+=oe)}return x}const a=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var E=(0,te.forwardRef)(({allow_skip:b,src:x,toLog:z,videoId:oe,logWatchHistory:ie,courseId:ue=null,startTime:ve,handlePause:Se=()=>{},handlePlay:Le=()=>{},handlePlayEnded:we=()=>{},autoPlay:Ne=!1,onPlayEnded:xe=()=>{},isShowWaterMark:st=!0},Ye)=>{var lt;const Me=(0,le.useIntl)(),Re=((lt=x==null?void 0:x.split("."))==null?void 0:lt.pop())==="flv",ke=(0,te.useRef)(),Ge=(0,te.useRef)(),Et=(0,te.useRef)(),It=(0,te.useRef)(),en=(0,te.useRef)(),Zt=(0,te.useRef)(),rt=(0,te.useRef)(),at=(0,te.useRef)(),Ct=(0,te.useRef)(),qt=(0,te.useRef)(),Gt=(0,te.useRef)(),xt=(0,te.useRef)(),Ve=(0,te.useRef)(),Qt=(0,te.useRef)(),Ln=navigator.userAgent.toLowerCase().match(a),Hn=Ln?Ln[0]:"pc",mn=(0,te.useRef)(!1),zt=(0,ae.eY)();let et=0,Xe=0,qe=0,ft=null,Dt=!1,tt=20,vt=1,bt=!1,Qe=!1,Wt=[];(0,te.useImperativeHandle)(Ye,()=>({getLastUpdatedTime:()=>ke.current.currentTime,getDuration:()=>ke.current.duration})),fe.ZP.config({maxCount:1,getContainer:()=>Et.current});const He=(0,te.useCallback)((fn,nr=!1)=>{let wt={point:ke.current.currentTime};ft?(wt.log_id=ft,wt.watch_duration=y(Wt),wt.total_duration=Xe):(ue?(wt.video_id=parseInt(oe,10),wt.course_id=ue):wt.video_id=oe,wt.duration=et,wt.device=Hn),nr&&(wt.ed="1");function xn(){return he(this,null,function*(){bt=!0,ft=yield ie==null?void 0:ie(wt),bt=!1,fn&&fn()})}xn()},[oe,ue]);(0,te.useEffect)(()=>{ke.current&&(It.current.style.display="none",en.current.style.display="block"),fe.ZP.destroy();let fn=null;return _e.Z.isSupported&&Re&&x&&(x==null?void 0:x.indexOf(".m3u8"))<0?(fn=_e.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:x,muted:!1}),ke.current&&(fn.attachMediaElement(ke.current),fn.load())):ke.current.setAttribute("src",x),En(),()=>{fn&&(fn.unload(),fn.pause(),fn.destroy(),fn=null)}},[ke,Re,x]);function ut(){ke.current.paused?(It.current.style.display="none",en.current.style.display="block"):(It.current.style.display="block",en.current.style.display="none")}function En(){Gt.current.style.display="none",Ve.current.style.display="none",xt.current.style.display="none",ke.current.muted||ke.current.volume===0?Gt.current.style.display="block":ke.current.volume>0&&ke.current.volume<=.5?Ve.current.style.display="block":xt.current.style.display="block"}(0,te.useEffect)(()=>{const fn=document.getElementById("play"),nr=document.querySelectorAll(".playback-icons use");function wt(){Le(),ve&&!mn.current&&(ke.current.currentTime=ve),mn.current=!0,Wt.push(ke.current.currentTime),Dt||(Dt=!0,z&&He())}function xn(){return he(this,null,function*(){ut(),Wt.push(ke.current.currentTime),z&&He(()=>{ft=null,qe=0,Dt=!1,bt=!1,Qe=!1,Wt=[],Xe=0,vt=1},!0),xe()})}function zn(){Zt.current.value=Math.round(ke.current.currentTime),rt.current.value=Math.round(ke.current.currentTime)}function Gr(){const ur=re(Math.round(ke.current.currentTime));Ct.current.innerText=`${ur.hour>0?ur.hour+":":""}${ur.minutes}:${ur.seconds}`,Ct.current.setAttribute("datetime",`${ur.hour>0?" "+ur.hour+" ":""}${ur.minutes}m ${ur.seconds}s`)}function vr(){var ur,$r,zr,To,Fo,po,Lr;const vo=Math.round((ur=ke.current)==null?void 0:ur.duration);(zr=($r=Zt.current)==null?void 0:$r.setAttribute)==null||zr.call($r,"max",vo),(Fo=(To=rt.current)==null?void 0:To.setAttribute)==null||Fo.call(To,"max",vo);const hn=re(vo);at.current&&(at.current.innerText=`${hn.hour>0?hn.hour+":":""}${hn.minutes}:${hn.seconds}`,(Lr=(po=at.current).setAttribute)==null||Lr.call(po,"datetime",`${hn.hour>0?" "+hn.hour+" ":""}${hn.minutes}m ${hn.seconds}s`))}function cr(){try{const ur=Math.round(ke.current.duration);Zt.current.setAttribute("max",ur),rt.current.setAttribute("max",ur);const $r=re(ur);at.current.innerText=`${$r.hour>0?$r.hour+":":""}${$r.minutes}:${$r.seconds}`,at.current.setAttribute("datetime",`${$r.hour>0?" "+$r.hour+" ":""}${$r.minutes}m ${$r.seconds}s`),zn(),Gr();const{width:zr,height:To,x:Fo,y:po}=Ge.current.getBoundingClientRect();if(Fo<0||po<0||!zr)return;if(!Qe){let Lr=ke.current.currentTime,vo=Lr-qe;Math.abs(vo)<10?(Xe+=Math.abs(vo),qe=Lr,bt||Xe-vt*tt>=0&&(vt++,Wt.push(qe),z&&He())):(qe=Lr,z&&He())}}catch(ur){console.log(ur)}}function wn(){Qe=!0}function jr(){ke.current.playing&&Wt.push(ke.current.currentTime,qe),qe=ke.current.currentTime,Qe=!1}function Hr(){et=ke.current.duration,et<=20&&(tt=et/3),ke.current.addEventListener("play",wt)}function mo(ur){ur.preventDefault(),(0,de.vp)()?(ke.current.style.width="100%",ke.current.style.height="100%"):ke.current.style.cssText=""}function da(){Se()}function Ro(ur){if(!b){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const $r=ur.target.dataset.seek?ur.target.dataset.seek:ur.target.value;ke.current.currentTime=$r,rt.current.value=$r,Zt.current.value=$r}function Jo(ur){const $r=Math.round(ur.offsetX/ur.target.clientWidth*parseInt(ur.target.getAttribute("max"),10));Zt.current.setAttribute("data-seek",$r);const zr=re($r);qt.current.textContent=`${zr.hour>0?zr.hour+":":""}${zr.minutes}:${zr.seconds}`;const To=ke.current.getBoundingClientRect();qt.current.style.left=`${ur.pageX-To.left}px`}function qo(ur){switch(ur.code){case"Space":ur.preventDefault(),sn();break;case"ArrowRight":if(ur.preventDefault(),!b){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(ke.current.currentTime>=ke.current.duration)break;ke.current.currentTime=parseInt(ke.current.currentTime)+5,zn();break;case"ArrowLeft":if(ur.preventDefault(),!b){fe.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(ke.current.currentTime===0)break;ke.current.currentTime=parseInt(ke.current.currentTime)-5,zn();break;case"ArrowUp":ur.preventDefault(),ke.current.volume<1&&(ke.current.volume=(parseInt(ke.current.volume*10)+1)/10);break;case"ArrowDown":ur.preventDefault(),ke.current.volume>0&&(ke.current.volume=(parseInt(ke.current.volume*10)-1)/10);break}}return Et.current.addEventListener((0,de.gH)(),mo),ke.current.addEventListener("canplay",Hr),ke.current.addEventListener("ended",xn),ke.current.addEventListener("seeking",wn),ke.current.addEventListener("seeked",jr),ke.current.addEventListener("loadedmetadata",vr),Zt.current.addEventListener("mousemove",Jo),Zt.current.addEventListener("input",Ro),ke.current.addEventListener("timeupdate",cr),ke.current.addEventListener("pause",da),ke.current.addEventListener("volumechange",En),document.addEventListener("keydown",qo),()=>{var ur,$r,zr,To,Fo,po,Lr,vo,hn,se,ye,Pe;(ur=ke.current)==null||ur.removeEventListener("canplay",Hr),($r=ke.current)==null||$r.removeEventListener("play",wt),(zr=ke.current)==null||zr.removeEventListener("ended",xn),(To=ke.current)==null||To.removeEventListener("seeking",wn),(Fo=ke.current)==null||Fo.removeEventListener("seeked",jr),(po=Zt.current)==null||po.removeEventListener("mousemove",Jo),(Lr=Zt.current)==null||Lr.removeEventListener("input",Ro),(vo=ke.current)==null||vo.removeEventListener("timeupdate",cr),(hn=ke.current)==null||hn.removeEventListener("pause",da),(se=ke.current)==null||se.removeEventListener("loadedmetadata",vr),(ye=ke.current)==null||ye.removeEventListener("volumechange",En),document.removeEventListener("keydown",qo),(Pe=ke.current)!=null&&Pe.playing&&(Wt.push(qe,ke.current.currentTime),z&&He())}},[ke,x]),(0,te.useEffect)(()=>{if(ke.current.onended=()=>{we(ke)},ke.current.oncontextmenu=()=>!1,(x==null?void 0:x.indexOf(".m3u8"))>-1){if(ke.current.canPlayType("application/vnd.apple.mpegurl"))ke.current.src=x;else if(pe().isSupported()){var fn=new(pe());fn.loadSource(x),fn.attachMedia(ke.current)}}},[x]);const[un,ht]=(0,te.useState)(1),sn=()=>{ke.current.paused||ke.current.ended?ke.current.play():ke.current.pause(),ut()};function ln(){ke.current.muted=!ke.current.muted,ke.current.muted?(Qt.current.setAttribute("data-volume",volume.value),Qt.current.value=0):Qt.current.value=Qt.current.dataset.volume}return te.createElement("div",{style:{position:"relative"},ref:Et},te.createElement("div",{ref:Ge,className:`${ge.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${ge.animate__loop}`},st&&zt?zt.login:" "),te.createElement("div",{className:ge.container},te.createElement("div",{className:ge["video-container"],id:"video-container"},te.createElement("div",{className:ge["playback-animation"],id:"playback-animation"},te.createElement("svg",{className:ge["playback-icons"]},te.createElement("use",{className:"hidden",href:"#play-icon"}),te.createElement("use",{href:"#pause"}))),te.createElement("video",{className:ge.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:ke,autoPlay:Ne}),te.createElement("div",{className:`${ge["video-controls"]} `,id:"video-controls"},te.createElement("div",{className:ge["bottom-controls"]},te.createElement("div",{className:ge["left-controls"]},te.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:sn},te.createElement("svg",{className:ge["playback-icons"]},te.createElement("use",{ref:en,href:"#play-icon"}),te.createElement("use",{ref:It,style:{display:"none"},href:"#pause"}))),te.createElement("div",{className:ge.time},te.createElement("time",{id:"time-elapsed",ref:Ct},"00:00"),te.createElement("span",null," / "),te.createElement("time",{id:"duration",ref:at},"00:00"))),te.createElement("div",{className:ge["right-controls"]},b&&te.createElement(be.Z,{placement:"top",overlayClassName:ge.rateOverlay,getPopupContainer:fn=>fn.parentNode,menu:{items:[{key:"1",label:te.createElement("span",{onClick:()=>{ht(1),ke.current.playbackRate=1}},"1.0x")},{key:"2",label:te.createElement("span",{onClick:()=>{ht(1.5),ke.current.playbackRate=1.5}},"1.5x")},{key:"3",label:te.createElement("span",{onClick:()=>{ht(2),ke.current.playbackRate=2}},"2.0x")}]}},te.createElement("div",{className:`${ge.controlText} mr5`},Me.formatMessage({id:"classroomUploadVideoResourcesCheckIn.playbackSpeed",defaultMessage:"\u500D\u901F"}))),te.createElement(me.CopyToClipboard,{text:x,onCopy:()=>fe.ZP.success(Me.formatMessage({id:"classrooms.copySuccess",defaultMessage:"\u590D\u5236\u6210\u529F"}))},te.createElement("button",{"data-title":Me.formatMessage({id:"classrooms.copyLink",defaultMessage:"\u590D\u5236\u94FE\u63A5"})},te.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),te.createElement("div",{className:ge["volume-controls"]},te.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:ge["volume-button"],id:"volume-button",onClick:ln},te.createElement("i",{ref:Gt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:Ve,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),te.createElement("i",{ref:xt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),te.createElement("input",{className:ge.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Qt,style:{display:"none"},onClick:En})),te.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:ge["fullscreen-button"],onClick:()=>{(0,de.vp)()?(0,de.BU)():(0,de.Dj)(Et.current)}},te.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),te.createElement("div",{className:ge["video-progress"]},te.createElement("progress",{ref:rt,value:"0",min:"0"}),te.createElement("input",{className:ge.seek,ref:Zt,value:"0",min:"0",type:"range",step:"1"}),te.createElement("div",{className:ge["seek-tooltip"],ref:qt,id:"seek-tooltip"},"00:00"))))),te.createElement("svg",{style:{display:"none"}},te.createElement("defs",null,te.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},te.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),te.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},te.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),te.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},te.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"})),te.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},te.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"})),te.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},te.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"})),te.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},te.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"})),te.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},te.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"})),te.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},te.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"})))))})},71865:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return _e}});var te=ee(67294),fe=ee(33054),be=ee(99398),_e=()=>{const[ce,pe]=(0,te.useState)(""),[ae,me]=(0,te.useState)(0);let[de,ge]=(0,te.useState)(),[le,he]=(0,te.useState)();const[re,ne]=(0,te.useState)(!1),y=(0,te.useRef)("");(0,te.useEffect)(()=>fe.Z.subscribe("preview-image",Le=>{pe(Le),console.log(ue.current),document.body.style.overflow="hidden"}),[]),(0,te.useEffect)(()=>(document.addEventListener("keydown",a),()=>{document.removeEventListener("keydown",a)}),[]),(0,te.useEffect)(()=>{y.current=ce},[ce]);function a(Se){Se.keyCode==27&&y.current&&E()}function E(){document.body.style.overflow="auto",ge(void 0),he(void 0),me(0),pe("")}function b(){me(ae+90)}function x(){de=ue.current.width*1.1,le=ue.current.height*1.1,he(le),ge(de)}function z(){de=ue.current.width/1.1,le=ue.current.height/1.1,he(le),ge(de)}const oe=(0,te.useRef)(),ie=(0,te.useRef)(),ue=(0,te.useRef)(),ve=Se=>{(Se.nativeEvent.target===oe.current||Se.nativeEvent.target===ie.current)&&E()};return te.createElement(te.Fragment,null,ce?te.createElement("div",null,te.createElement("div",{className:"preview-wrp-group",ref:ie},te.createElement(be.Z,{className:"image-preview",src:ce,style:{display:"none"},preview:{visible:!0,src:ce,movable:!1,onVisibleChange:Se=>{pe("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},57444:function(ot,Ze,ee){"use strict";ee.d(Ze,{h:function(){return ie}});var te=ee(67294),fe=ee(11713),be=ee(22150),_e=ee(71577),ce=ee(4631),pe=ee.n(ce),ae=ee(71749),me=ee(30483),de=ee(35973),ge=Object.defineProperty,le=Object.defineProperties,he=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,a=(ue,ve,Se)=>ve in ue?ge(ue,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):ue[ve]=Se,E=(ue,ve)=>{for(var Se in ve||(ve={}))ne.call(ve,Se)&&a(ue,Se,ve[Se]);if(re)for(var Se of re(ve))y.call(ve,Se)&&a(ue,Se,ve[Se]);return ue},b=(ue,ve)=>le(ue,he(ve));const x=fe.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},oe={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"]};Ze.Z=({callback:ue,onCancel:ve})=>{const[Se,Le]=(0,te.useState)("python");function we(st){Le(oe[st][1])}function Ne(st){ue(st)}const xe=(0,de.useIntl)();return te.createElement(be.default,b(E({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ne,style:{width:500}}),te.createElement(be.default.Item,{label:xe.formatMessage({id:"markdownEditor.codeLanguage",defaultMessage:"\u4EE3\u7801\u8BED\u8A00"}),name:"language"},te.createElement(fe.default,{getPopupContainer:st=>st.parentNode,onChange:we},Object.keys(oe).map(st=>te.createElement(x,{key:st,value:st},oe[st][0])))),te.createElement(be.default.Item,{label:xe.formatMessage({id:"markdownEditor.codeContent",defaultMessage:"\u4EE3\u7801\u5185\u5BB9"}),name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ie,{mode:Se})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},xe.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),te.createElement(_e.ZP,{type:"ghost",onClick:ve},xe.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))};function ie({value:ue,onChange:ve,mode:Se,options:Le={}}){const we=(0,te.useRef)(),[Ne,xe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Ne){let st=function(Ye){const lt=Ye.getValue();ve&&ve(lt)};return Ne.on("change",st),()=>{Ne.off("change",st)}}},[Ne,ve]),(0,te.useEffect)(()=>{Ne&&Ne.setOption("mode",Se)},[Ne,Se]),(0,te.useEffect)(()=>{Ne&&(ue!==Ne.getValue()||ue==="")&&setTimeout(()=>{Ne.setValue(ue||"")},300)},[Ne,ue]),(0,te.useEffect)(()=>{if(we.current&&!Ne){const st=pe().fromTextArea(we.current,E({mode:Se,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Le));xe(st)}},[we.current,Ne]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:we}))}},35567:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return hn}});var te=ee(67294),fe=ee(4631),be=ee.n(fe),_e=ee(91033),ce=ee(71749),pe=ee(57341),ae=ee(82801),me=ee(88386),de=ee(49047),ge=ee(80785),le=ee(85725),he=({value:se="",className:ye,showTextOnly:Pe,showLines:Ae,style:Oe={}})=>{const Je=(0,te.useMemo)(()=>"",[se]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Je}}))},re=ee(35973),ne=ee(67294),y=Object.defineProperty,a=Object.defineProperties,E=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,oe=(se,ye,Pe)=>ye in se?y(se,ye,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[ye]=Pe,ie=(se,ye)=>{for(var Pe in ye||(ye={}))x.call(ye,Pe)&&oe(se,Pe,ye[Pe]);if(b)for(var Pe of b(ye))z.call(ye,Pe)&&oe(se,Pe,ye[Pe]);return se},ue=(se,ye)=>a(se,E(ye));function ve({onActionCallback:se,title:ye,icon:Pe,actionName:Ae,className:Oe="",children:Je}){function pt(){se(Ae)}return ne.createElement("a",{title:ye,className:Oe,onClick:pt},ne.createElement("i",{className:`${Pe}`}),Je)}var Se=({watch:se,showNullButton:ye,showNullProgramButton:Pe,onActionCallback:Ae,fullScreen:Oe,insertTemp:Je,hidetoolBar:pt,extraUse:gn})=>{const $t=(0,re.useIntl)(),hr=[...[{title:$t.formatMessage({id:"markdownEditor.bold",defaultMessage:"\u7C97\u4F53"}),icon:"md-iconfont icon-bold",actionName:"bold"},{title:$t.formatMessage({id:"markdownEditor.italic",defaultMessage:"\u659C\u4F53"}),icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:$t.formatMessage({id:"markdownEditor.unorderedList",defaultMessage:"\u65E0\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:$t.formatMessage({id:"markdownEditor.orderedList",defaultMessage:"\u6709\u5E8F\u5217\u8868"}),icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:$t.formatMessage({id:"markdownEditor.inlineCode",defaultMessage:"\u884C\u5185\u4EE3\u7801"}),icon:"md-iconfont icon-code",actionName:"code"},{title:$t.formatMessage({id:"markdownEditor.codeBlockMultiLanguage",defaultMessage:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09"}),icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:$t.formatMessage({id:"markdownEditor.link",defaultMessage:"\u94FE\u63A5"}),icon:"md-iconfont icon-link",actionName:"link"},"|",{title:$t.formatMessage({id:"markdownEditor.inlineFormula",defaultMessage:"\u884C\u5185\u516C\u5F0F"}),icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:$t.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:$t.formatMessage({id:"markdownEditor.multiLineFormula",defaultMessage:"\u591A\u884C\u516C\u5F0F"}),icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:$t.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:$t.formatMessage({id:"markdownEditor.insertDrawing",defaultMessage:"\u63D2\u5165\u753B\u56FE"}),icon:"iconfont icon-sheji",actionName:"draw-image"},{title:$t.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:$t.formatMessage({id:"markdownEditor.table",defaultMessage:"\u8868\u683C"}),icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:$t.formatMessage({id:"markdownEditor.lineBreak",defaultMessage:"\u6362\u884C"}),icon:"md-iconfont icon-minus",actionName:"line-break"},{title:$t.formatMessage({id:"markdownEditor.clear",defaultMessage:"\u6E05\u7A7A"}),icon:"md-iconfont icon-eraser",actionName:"eraser"}],{title:`${se?$t.formatMessage({id:"markdownEditor.disableRealTimePreview",defaultMessage:"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8"}):$t.formatMessage({id:"markdownEditor.enableRealTimePreview",defaultMessage:"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"})}`,icon:`${se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ne.createElement("ul",{className:"markdown-toolbar-container"},!pt&&hr.map((gr,Nt)=>ne.createElement("li",{key:Nt},gr.actionName?ne.createElement(ve,ue(ie({},gr),{onActionCallback:Ae})):ne.createElement("span",{className:"v-line"}))),ye?ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Ae},ne.createElement("span",{className:"fill-tip"},$t.formatMessage({id:"questionBankAddQuestion.clickToInsertBlank",defaultMessage:"\u70B9\u51FB\u63D2\u5165"}),"\b",$t.formatMessage({id:"questionBankAddQuestion.blank",defaultMessage:"\u586B\u7A7A\u9879"})))):null,Pe?ne.createElement(ne.Fragment,null,ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Ae},ne.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Ae},ne.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Je&&ne.createElement("li",null,ne.createElement(ve,{icon:"md-iconfont icon-edit",className:"btn-null",title:$t.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"}),actionName:`inster-template-${Je}`,onActionCallback:Ae},ne.createElement("span",{className:"fill-tip"},$t.formatMessage({id:"onlineCourses.insertTemplate",defaultMessage:"\u63D2\u5165\u6A21\u677F"})))),gn&&ne.createElement("li",null,gn),ne.createElement("li",{className:"btn-full-screen"},ne.createElement(ve,{icon:`${Oe?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Oe?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Ae})))},Le=ee(76621),we=ee(22150),Ne=ee(69677),xe=ee(71577),st=Object.defineProperty,Ye=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ke=(se,ye,Pe)=>ye in se?st(se,ye,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[ye]=Pe,Ge=(se,ye)=>{for(var Pe in ye||(ye={}))Be.call(ye,Pe)&&ke(se,Pe,ye[Pe]);if(Me)for(var Pe of Me(ye))Re.call(ye,Pe)&&ke(se,Pe,ye[Pe]);return se},Et=(se,ye)=>Ye(se,lt(ye));const It={labelCol:{span:4},wrapperCol:{span:20}};var en=({callback:se,onCancel:ye})=>{function Pe(Oe){se(Oe)}const Ae=(0,re.useIntl)();return te.createElement(we.default,Et(Ge({},It),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),te.createElement(we.default.Item,{label:Ae.formatMessage({id:"markdownEditor.linkAddress",defaultMessage:"\u94FE\u63A5\u5730\u5740"}),name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Ne.default,null)),te.createElement(we.default.Item,{label:Ae.formatMessage({id:"markdownEditor.linkTitle",defaultMessage:"\u94FE\u63A5\u6807\u9898"}),name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Ne.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ae.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),te.createElement(xe.ZP,{type:"ghost",onClick:ye},Ae.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},Zt=ee(57444),rt=ee(70859),at=ee(14446),Ct=ee(71230),qt=ee(63205),Gt=ee(67294),xt=({callback:se,onCancel:ye})=>{const Pe=document.createElement("canvas"),Ae=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,Ae.fillStyle="#ffffff",Ae.fillRect(0,0,Pe.width,Pe.height);const Oe=Pe.toDataURL("image/png");return Gt.createElement(at.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Gt.createElement(Ct.Z,{style:{height:"100vh"}},Gt.createElement(qt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Oe,visible:!0,title:String(Date.now())},onOk:Je=>{se({src:Je.url})},onClose:ye})))},Ve=ee(23495);function Qt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Qt,go.CommandHandler),Qt.prototype.canAlignSelection=function(){var se=this.diagram;return!(se===null||se.isReadOnly||se.isModelReadOnly||se.selection.count<2)},Qt.prototype.alignLeft=function(){var se=this.diagram;se.startTransaction("aligning left");var ye=1/0;se.selection.each(function(Pe){Pe instanceof go.Link||(ye=Math.min(Pe.position.x,ye))}),se.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ye,Pe.position.y))}),se.commitTransaction("aligning left")},Qt.prototype.alignRight=function(){var se=this.diagram;se.startTransaction("aligning right");var ye=-1/0;se.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ae=Pe.actualBounds.x+Pe.actualBounds.width;ye=Math.max(Ae,ye)}}),se.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ye-Pe.actualBounds.width,Pe.position.y))}),se.commitTransaction("aligning right")},Qt.prototype.alignTop=function(){var se=this.diagram;se.startTransaction("alignTop");var ye=1/0;se.selection.each(function(Pe){Pe instanceof go.Link||(ye=Math.min(Pe.position.y,ye))}),se.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,ye))}),se.commitTransaction("alignTop")},Qt.prototype.alignBottom=function(){var se=this.diagram;se.startTransaction("aligning bottom");var ye=-1/0;se.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var Ae=Pe.actualBounds.y+Pe.actualBounds.height;ye=Math.max(Ae,ye)}}),se.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,ye-Pe.actualBounds.height))}),se.commitTransaction("aligning bottom")},Qt.prototype.alignCenterX=function(){var se=this.diagram,ye=se.selection.first();if(ye){se.startTransaction("aligning Center X");var Pe=ye.actualBounds.x+ye.actualBounds.width/2;se.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(Pe-Ae.actualBounds.width/2,Ae.actualBounds.y))}),se.commitTransaction("aligning Center X")}},Qt.prototype.alignCenterY=function(){var se=this.diagram,ye=se.selection.first();if(ye){se.startTransaction("aligning Center Y");var Pe=ye.actualBounds.y+ye.actualBounds.height/2;se.selection.each(function(Ae){Ae instanceof go.Link||Ae.move(new go.Point(Ae.actualBounds.x,Pe-Ae.actualBounds.height/2))}),se.commitTransaction("aligning Center Y")}},Qt.prototype.alignColumn=function(se){var ye=this.diagram;ye.startTransaction("align Column"),se===void 0&&(se=0),se=parseFloat(se);var Pe=new Array;ye.selection.each(function(gn){gn instanceof go.Link||Pe.push(gn)});for(var Ae=0;Ae<Pe.length-1;Ae++){var Oe=Pe[Ae],Je=Oe.actualBounds.y+Oe.actualBounds.height+se,pt=Pe[Ae+1];pt.move(new go.Point(Oe.actualBounds.x,Je))}ye.commitTransaction("align Column")},Qt.prototype.alignRow=function(se){se===void 0&&(se=0),se=parseFloat(se);var ye=this.diagram;ye.startTransaction("align Row");var Pe=new Array;ye.selection.each(function(gn){gn instanceof go.Link||Pe.push(gn)});for(var Ae=0;Ae<Pe.length-1;Ae++){var Oe=Pe[Ae],Je=Oe.actualBounds.x+Oe.actualBounds.width+se,pt=Pe[Ae+1];pt.move(new go.Point(Je,Oe.actualBounds.y))}ye.commitTransaction("align Row")},Qt.prototype.canRotate=function(se){var ye=this.diagram;return!(ye===null||ye.isReadOnly||ye.isModelReadOnly||ye.selection.count<1)},Qt.prototype.rotate=function(se){se===void 0&&(se=90);var ye=this.diagram;ye.startTransaction("rotate "+se.toString());var ye=this.diagram;ye.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=se)}),ye.commitTransaction("rotate "+se.toString())},Qt.prototype.pullToFront=function(){var se=this.diagram;se.startTransaction("pullToFront");var ye=new go.Map;se.selection.each(function(Pe){ye.set(Pe.layer,0)}),ye.iteratorKeys.each(function(Pe){var Ae=0;Pe.parts.each(function(Oe){if(!Oe.isSelected){var Je=Oe.zOrder;isNaN(Je)?Oe.zOrder=0:Ae=Math.max(Ae,Je)}}),ye.set(Pe,Ae)}),se.selection.each(function(Pe){Qt._assignZOrder(Pe,ye.get(Pe.layer)+1)}),se.commitTransaction("pullToFront")},Qt.prototype.pushToBack=function(){var se=this.diagram;se.startTransaction("pushToBack");var ye=new go.Map;se.selection.each(function(Pe){ye.set(Pe.layer,0)}),ye.iteratorKeys.each(function(Pe){var Ae=0;Pe.parts.each(function(Oe){if(!Oe.isSelected){var Je=Oe.zOrder;isNaN(Je)?Oe.zOrder=0:Ae=Math.min(Ae,Je)}}),ye.set(Pe,Ae)}),se.selection.each(function(Pe){Qt._assignZOrder(Pe,ye.get(Pe.layer)-1-Qt._findGroupDepth(Pe))}),se.commitTransaction("pushToBack")},Qt._assignZOrder=function(se,ye,Pe){Pe===void 0&&(Pe=se),se.layer===Pe.layer&&(se.zOrder=ye),se instanceof go.Group&&se.memberParts.each(function(Ae){Qt._assignZOrder(Ae,ye+1,Pe)})},Qt._findGroupDepth=function(se){if(se instanceof go.Group){var ye=0;return se.memberParts.each(function(Pe){ye=Math.max(ye,Qt._findGroupDepth(Pe))}),ye+1}else return 0},Qt.prototype.doKeyDown=function(){var se=this.diagram;if(se!==null){var ye=se.lastInput;if(ye.key==="Up"||ye.key==="Down"||ye.key==="Left"||ye.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Qt.prototype._getAllParts=function(){var se=new Array;return this.diagram.nodes.each(function(ye){se.push(ye)}),this.diagram.parts.each(function(ye){se.push(ye)}),se},Qt.prototype._arrowKeyMove=function(){var se=this.diagram,ye=se.lastInput,Pe=0,Ae=0;if(ye.control||ye.meta)Pe=1,Ae=1;else if(se.grid!==null){var Oe=se.grid.gridCellSize;Ae=Oe.width,Pe=Oe.height}se.startTransaction("arrowKeyMove"),se.selection.each(function(Je){ye.key==="Up"?Je.move(new go.Point(Je.actualBounds.x,Je.actualBounds.y-Pe)):ye.key==="Down"?Je.move(new go.Point(Je.actualBounds.x,Je.actualBounds.y+Pe)):ye.key==="Left"?Je.move(new go.Point(Je.actualBounds.x-Ae,Je.actualBounds.y)):ye.key==="Right"&&Je.move(new go.Point(Je.actualBounds.x+Ae,Je.actualBounds.y))}),se.commitTransaction("arrowKeyMove")},Qt.prototype._arrowKeySelect=function(){var se=this.diagram,ye=se.lastInput,Pe=null;ye.key==="Up"?Pe=this._findNearestPartTowards(270):ye.key==="Down"?Pe=this._findNearestPartTowards(90):ye.key==="Left"?Pe=this._findNearestPartTowards(180):ye.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(ye.shift?Pe.isSelected=!0:ye.control||ye.meta?Pe.isSelected=!Pe.isSelected:se.select(Pe))},Qt.prototype._findNearestPartTowards=function(se){var ye=this.diagram.selection.first();if(ye===null)return null;for(var Pe=ye.actualBounds.center,Ae=this._getAllParts(),Oe=1/0,Je=ye,pt=0;pt<Ae.length;pt++){var gn=Ae[pt];if(gn!==ye&&gn.canSelect()){var $t=gn.actualBounds.center,Bn=Pe.directionPoint($t),hr=this._angleCloseness(Bn,se);if(hr<=45){var gr=Pe.distanceSquaredPoint($t);gr*=1+Math.sin(hr*Math.PI/180),gr<Oe&&(Oe=gr,Je=gn)}}}return Je},Qt.prototype._angleCloseness=function(se,ye){return Math.min(Math.abs(ye-se),Math.min(Math.abs(ye+360-se),Math.abs(ye-360-se)))},Qt.prototype._arrowKeyTree=function(){var se=this.diagram,ye=se.selection.first();if(ye instanceof go.Node){var Pe=se.lastInput;if(Pe.key==="Right"){if(!ye.isTreeLeaf)if(!ye.isTreeExpanded)se.commandHandler.canExpandTree(ye)&&se.commandHandler.expandTree(ye);else{var Ae=this._sortTreeChildrenByY(ye).first();Ae!==null&&se.select(Ae)}}else if(Pe.key==="Left")if(!ye.isTreeLeaf&&ye.isTreeExpanded)se.commandHandler.canCollapseTree(ye)&&se.commandHandler.collapseTree(ye);else{var Oe=ye.findTreeParentNode();Oe!==null&&se.select(Oe)}else if(Pe.key==="Up"){var Oe=ye.findTreeParentNode();if(Oe!==null){var Je=this._sortTreeChildrenByY(Oe),pt=Je.indexOf(ye);if(pt>0){for(var gn=Je.elt(pt-1);gn!==null&&gn.isTreeExpanded&&!gn.isTreeLeaf;){var $t=this._sortTreeChildrenByY(gn);gn=$t.last()}gn!==null&&se.select(gn)}else se.select(Oe)}}else if(Pe.key==="Down")if(ye.isTreeExpanded&&!ye.isTreeLeaf){var Ae=this._sortTreeChildrenByY(ye).first();Ae!==null&&se.select(Ae)}else for(;ye!==null;){var Oe=ye.findTreeParentNode();if(Oe===null)break;var Je=this._sortTreeChildrenByY(Oe),pt=Je.indexOf(ye);if(pt<Je.length-1){se.select(Je.elt(pt+1));break}else ye=Oe}var Bn=se.selection.first();Bn!==null&&se.scrollToRect(Bn.actualBounds)}},Qt.prototype._sortTreeChildrenByY=function(se){var ye=new go.List().addAll(se.findTreeChildrenNodes());return ye.sort(function(Pe,Ae){var Oe=Pe.location,Je=Ae.location;return Oe.y<Je.y?-1:Oe.y>Je.y?1:Oe.x<Je.x?-1:Oe.x>Je.x?1:0}),ye},Qt.prototype.copyToClipboard=function(se){go.CommandHandler.prototype.copyToClipboard.call(this,se),this._lastPasteOffset.set(this.pasteOffset)},Qt.prototype.pasteFromClipboard=function(){var se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),se},Object.defineProperty(Qt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(se){if(se!=="move"&&se!=="select"&&se!=="scroll"&&se!=="tree"&&se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+se);this._arrowKeyBehavior=se}}),Object.defineProperty(Qt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(se){if(!(se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+se);this._pasteOffset.set(se)}});var Ln=Qt,Hn=ee(18023),mn=ee(15746),zt=ee(33170),et={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Xe=ee(67294),qe=(se,ye,Pe)=>new Promise((Ae,Oe)=>{var Je=$t=>{try{gn(Pe.next($t))}catch(Bn){Oe(Bn)}},pt=$t=>{try{gn(Pe.throw($t))}catch(Bn){Oe(Bn)}},gn=$t=>$t.done?Ae($t.value):Promise.resolve($t.value).then(Je,pt);gn((Pe=Pe.apply(se,ye)).next())});function ft({onCancel:se,callback:ye}){let Pe=(0,te.useRef)(),Ae=(0,te.useRef)(),Oe=(0,te.useRef)(),Je=(0,te.useRef)(!1);const pt=(0,te.useRef)(!1),[gn,$t]=(0,te.useState)(0);function Bn(){const Nt=Ve.bx.make,Wn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Pe.current=new Ve.S0(Ae.current,{padding:20,grid:Nt(Ve.s_,"Grid",Nt(Ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Nt(Ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Pn=>{var mr=Pn.diagram.commandHandler.addTopLevelParts(Pn.diagram.selection,!0);mr||Pn.diagram.currentTool.doCancel()},commandHandler:Nt(Ln),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Pn=>{var mr=Pn.subject;mr.location=mr.location.copy().snapToGridPoint(Pn.diagram.grid.gridOrigin,Pn.diagram.grid.gridCellSize),setTimeout(()=>{Pn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Pn=>{var mr=Pn.subject;setTimeout(()=>{Pn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Pn=>{var mr=Pn.parameter.part;mr.invalidateConnectedLinks();var tr=Pn.subject;Pn.diagram.toolManager.linkingTool.isForwards?tr.toNode.invalidateConnectedLinks():tr.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=Nt(Ve.NB,"Auto",{locationSpot:Ve.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ve.$u(120,60),minSize:new Ve.$u(40,40),resizable:!0,resizeCellSize:new Ve.$u(10,10),rotatable:!0},new Ve.KX("location","loc",Ve.E9.parse).makeTwoWay(Ve.E9.stringify),new Ve.KX("desiredSize","size",Ve.$u.parse).makeTwoWay(Ve.$u.stringify),Nt(Ve.bn,{name:"SHAPE",fill:Wn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ve.z6.AllSides,toSpot:Ve.z6.AllSides},new Ve.KX("figure"),new Ve.KX("fill"),new Ve.KX("stroke","borderColor"),new Ve.KX("strokeWidth","thickness"),new Ve.KX("strokeDashArray","dash")),Nt(Ve.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Nt(Ve.al,{margin:1,textAlign:"center",overflow:Ve.al.OverflowEllipsis,editable:!0},new Ve.KX("text").makeTwoWay(),new Ve.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=Nt("ToolTip",Nt(Ve.s_,"Vertical",{maxSize:new Ve.$u(200,NaN)},Nt(Ve.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ve.KX("text")),Nt(Ve.al,{font:"10pt sans-serif",textAlign:"center"},new Ve.KX("text","details"))));function qn(Pn,mr){var tr=(er,$o)=>{er.handled=!0,er.diagram.model.commit(ha=>{var ba=$o.part.adornedPart,Ha=new Ve.E9().setRectSpot(ba.actualBounds,Pn);Ha.subtract(ba.location),Ha.scale(2,2),Ha.x+=Math.sign(Ha.x)*130,Ha.y+=Math.sign(Ha.y)*130,Ha.add(ba.location),Ha.snapToGridPoint(er.diagram.grid.gridOrigin,er.diagram.grid.gridCellSize);var ri=ha.copyNodeData(ba.data);ha.setGroupKeyForNodeData(ri,ha.getGroupKeyForNodeData(ba.data)),ha.addNodeData(ri);var gt={from:ba.key,to:ha.getKeyForNodeData(ri)};ha.addLinkData(gt);var dt=er.diagram.findNodeForData(ri);dt.location=Ha,er.diagram.select(dt),setTimeout(()=>{er.diagram.commandHandler.editTextBlock()},20)})};return Nt(Ve.bn,{figure:mr,alignment:Pn,alignmentFocus:Pn.opposite(),width:Pn.equals(Ve.z6.Top)||Pn.equals(Ve.z6.Bottom)?25:18,height:Pn.equals(Ve.z6.Top)||Pn.equals(Ve.z6.Bottom)?18:25,fill:"orange",stroke:Wn.white,strokeWidth:4,mouseEnter:(er,$o)=>$o.fill="dodgerblue",mouseLeave:(er,$o)=>$o.fill="orange",isActionable:!0,click:tr,contextClick:tr})}function Sn(Pn){return Nt(Ve.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(mr,tr)=>tr.fill="dodgerblue",mouseLeave:(mr,tr)=>tr.fill="orange",click:(mr,tr)=>{mr.diagram.commandHandler.showContextMenu(tr.part.adornedPart)}},Pn||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=Nt(Ve.uz,"Spot",Nt(Ve.Vm,{padding:10}),qn(Ve.z6.Top,"TriangleUp"),qn(Ve.z6.Left,"TriangleLeft"),qn(Ve.z6.Right,"TriangleRight"),qn(Ve.z6.Bottom,"TriangleDown"),Sn({alignment:new Ve.z6(.75,0)}));function Mn(Pn,mr){return(tr,er)=>{tr.handled=!0,tr.diagram.model.commit($o=>{$o.set(er.part.adornedPart.data,Pn,mr)})}}function Xn(Pn,mr){return mr||(mr="color"),Nt(Ve.bn,{width:16,height:16,stroke:"lightgray",fill:Pn,margin:1,background:"transparent",mouseEnter:(tr,er)=>er.stroke="dodgerblue",mouseLeave:(tr,er)=>er.stroke="lightgray",click:Mn(mr,Pn),contextClick:Mn(mr,Pn)})}function Pr(){return[Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",Xn(Wn.white,"fill"),Xn(Wn.beige,"fill"),Xn(Wn.extralightblue,"fill"),Xn(Wn.extralightred,"fill"))),Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",Xn(Wn.lightgray,"fill"),Xn(Wn.lightgreen,"fill"),Xn(Wn.lightblue,"fill"),Xn(Wn.lightred,"fill")))]}function ar(){return[Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",Xn(Wn.black),Xn(Wn.green),Xn(Wn.blue),Xn(Wn.red))),Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",Xn(Wn.white),Xn(Wn.magenta),Xn(Wn.purple),Xn(Wn.orange)))]}function ga(Pn,mr){return mr||(mr="thickness"),Nt(Ve.bn,"LineH",{width:16,height:16,strokeWidth:Pn,margin:1,background:"transparent",mouseEnter:(tr,er)=>er.background="dodgerblue",mouseLeave:(tr,er)=>er.background="transparent",click:Mn(mr,Pn),contextClick:Mn(mr,Pn)})}function bo(Pn,mr){return mr||(mr="dash"),Nt(Ve.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Pn,margin:1,background:"transparent",mouseEnter:(tr,er)=>er.background="dodgerblue",mouseLeave:(tr,er)=>er.background="transparent",click:Mn(mr,Pn),contextClick:Mn(mr,Pn)})}function fr(){return[Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",ga(1),ga(2),ga(3),ga(4))),Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",bo(null),bo([2,4]),bo([4,4])))]}function Qr(Pn,mr){return mr||(mr="figure"),Nt(Ve.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Pn,margin:1,background:"transparent",mouseEnter:(tr,er)=>er.fill="dodgerblue",mouseLeave:(tr,er)=>er.fill="lightgray",click:Mn(mr,Pn),contextClick:Mn(mr,Pn)})}Pe.current.nodeTemplate.contextMenu=Nt("ContextMenu",Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",Qr("Rectangle"),Qr("RoundedRectangle"),Qr("Ellipse"),Qr("Diamond"))),Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",Qr("Parallelogram2"),Qr("ManualOperation"),Qr("Procedure"),Qr("Cylinder1"))),Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",Qr("Terminator"),Qr("CreateRequest"),Qr("Document"),Qr("TriangleDown"))),Pr(),ar(),fr()),Pe.current.groupTemplate=Nt(Ve.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ve.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Pn,mr)=>{var tr=mr.addMembers(mr.diagram.selection,!0);tr||mr.diagram.currentTool.doCancel()},avoidable:!1},new Ve.KX("location","loc",Ve.E9.parse).makeTwoWay(Ve.E9.stringify),Nt(Ve.s_,"Auto",{name:"BODY"},Nt(Ve.bn,{parameter1:10,fill:Wn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ve.z6.AllSides,toSpot:Ve.z6.AllSides},new Ve.KX("fill"),new Ve.KX("stroke","color"),new Ve.KX("strokeWidth","thickness"),new Ve.KX("strokeDashArray","dash")),Nt(Ve.Vm,{background:"transparent",margin:20})),Nt(Ve.al,{alignment:Ve.z6.Top,alignmentFocus:Ve.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ve.KX("text"),new Ve.KX("stroke","color"))),Pe.current.groupTemplate.selectionAdornmentTemplate=Nt(Ve.uz,"Spot",Nt(Ve.s_,"Auto",Nt(Ve.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Nt(Ve.Vm,{margin:1.5})),Sn({alignment:Ve.z6.TopRight,alignmentFocus:Ve.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=Nt("ContextMenu",Pr(),ar(),fr()),Pe.current.linkTemplate=Nt(Ve.rU,{layerName:"Foreground",routing:Ve.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ve.KX("fromSpot","fromSpot",Ve.z6.parse),new Ve.KX("toSpot","toSpot",Ve.z6.parse),new Ve.KX("fromShortLength","dir",Pn=>Pn>=1?10:0),new Ve.KX("toShortLength","dir",Pn=>Pn>=1?10:0),new Ve.KX("points").makeTwoWay(),Nt(Ve.bn,{strokeWidth:2},new Ve.KX("stroke","color"),new Ve.KX("strokeWidth","thickness"),new Ve.KX("strokeDashArray","dash")),Nt(Ve.bn,{segmentIndex:0,segmentOffset:new Ve.E9(15,0),segmentOrientation:Ve.rU.OrientAlong,alignmentFocus:Ve.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ve.KX("fill","color"),new Ve.KX("visible","dir",Pn=>Pn===1)),Nt(Ve.bn,{segmentIndex:-1,segmentOffset:new Ve.E9(-10,6),segmentOrientation:Ve.rU.OrientPlus90,alignmentFocus:Ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ve.KX("fill","color"),new Ve.KX("visible","dir",Pn=>Pn>=1),new Ve.KX("width","thickness",Pn=>7+3*Pn),new Ve.KX("height","thickness",Pn=>7+3*Pn),new Ve.KX("segmentOffset","thickness",Pn=>new Ve.E9(-15,4+1.5*Pn))),Nt(Ve.bn,{segmentIndex:0,segmentOffset:new Ve.E9(15,-6),segmentOrientation:Ve.rU.OrientMinus90,alignmentFocus:Ve.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ve.KX("fill","color"),new Ve.KX("visible","dir",Pn=>Pn===2),new Ve.KX("width","thickness",Pn=>7+3*Pn),new Ve.KX("height","thickness",Pn=>7+3*Pn),new Ve.KX("segmentOffset","thickness",Pn=>new Ve.E9(-15,4+1.5*Pn))),Nt(Ve.al,{alignmentFocus:new Ve.z6(0,1,-4,0),editable:!0},new Ve.KX("text").makeTwoWay(),new Ve.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=Nt(Ve.uz,Nt(Ve.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ko(2)},new Ve.KX("pathPattern","thickness",ko)),Sn({alignmentFocus:new Ve.z6(0,0,-6,-4)}));function ko(Pn){return Nt(Ve.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Pn+4).toString()+" H3"})}function Go(Pn){var mr="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Pn===0?mr="M0 0 M16 16 M0 8 L16 8":Pn===2&&(mr="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Nt(Ve.bn,{geometryString:mr,margin:2,background:"transparent",mouseEnter:(tr,er)=>er.background="dodgerblue",mouseLeave:(tr,er)=>er.background="transparent",click:Mn("dir",Pn),contextClick:Mn("dir",Pn)})}function on(Pn){var mr=(tr,er)=>{tr.handled=!0,tr.diagram.model.commit($o=>{var ha=er.part.adornedPart;$o.set(ha.data,Pn?"toSpot":"fromSpot",Ve.z6.stringify(Ve.z6.AllSides)),(Pn?ha.toNode:ha.fromNode).invalidateConnectedLinks()})};return Nt(Ve.bn,{width:12,height:12,fill:"transparent",mouseEnter:(tr,er)=>er.background="dodgerblue",mouseLeave:(tr,er)=>er.background="transparent",click:mr,contextClick:mr})}function sa(Pn,mr){var tr=0,er=Ve.z6.RightSide;Pn.equals(Ve.z6.Top)?(tr=270,er=Ve.z6.TopSide):Pn.equals(Ve.z6.Left)?(tr=180,er=Ve.z6.LeftSide):Pn.equals(Ve.z6.Bottom)&&(tr=90,er=Ve.z6.BottomSide),mr||(tr-=180);var $o=(ha,ba)=>{ha.handled=!0,ha.diagram.model.commit(Ha=>{var ri=ba.part.adornedPart;Ha.set(ri.data,mr?"toSpot":"fromSpot",Ve.z6.stringify(er)),(mr?ri.toNode:ri.fromNode).invalidateConnectedLinks()})};return Nt(Ve.bn,{alignment:Pn,alignmentFocus:Pn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:tr,background:"transparent",mouseEnter:(ha,ba)=>ba.background="dodgerblue",mouseLeave:(ha,ba)=>ba.background="transparent",click:$o,contextClick:$o})}Pe.current.linkTemplate.contextMenu=Nt("ContextMenu",ar(),fr(),Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",Go(0),Go(1),Go(2))),Nt("ContextMenuButton",Nt(Ve.s_,"Horizontal",Nt(Ve.s_,"Spot",on(!1),sa(Ve.z6.Top,!1),sa(Ve.z6.Left,!1),sa(Ve.z6.Right,!1),sa(Ve.z6.Bottom,!1)),Nt(Ve.s_,"Spot",{margin:new Ve.Zt(0,0,0,2)},on(!0),sa(Ve.z6.Top,!0),sa(Ve.z6.Left,!0),sa(Ve.z6.Right,!0),sa(Ve.z6.Bottom,!0)))));const Za=`{ "class": "GraphLinksModel",
"nodeDataArray": [
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
],
"linkDataArray": [
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
]}`;var Pa=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function so(Pn){return console.log("shapeName:",Pn),Pa.indexOf(Pn)>=0}var ni=new Ve.YI(Oe.current,{maxSelectionCount:1,linkTemplate:Nt(Ve.rU,{locationSpot:Ve.z6.Center,selectionAdornmentTemplate:Nt(Ve.uz,"Link",{locationSpot:Ve.z6.Center},Nt(Ve.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Nt(Ve.bn,{toArrow:"Standard",stroke:null}))},{routing:Ve.rU.AvoidsNodes,curve:Ve.rU.JumpOver,corner:5,toShortLength:4},new Ve.KX("points"),Nt(Ve.bn,{isPanelMain:!0,strokeWidth:2}),Nt(Ve.bn,{toArrow:"Standard",stroke:null})),model:new Ve.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ve.bn.getFigureGenerators().toArray().map(Pn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Pn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Pn){var mr;const tr=Pn.subject.part;var er=(mr=document.activeElement)==null?void 0:mr.value;typeof er=="string"&&er.trim()===""&&Pe.current.model.commit(function($o){$o.set(tr.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),ni.nodeTemplate=Nt(Ve.NB,"Auto",{locationSpot:Ve.z6.Center},new Ve.KX("location","location",Ve.E9.parse).makeTwoWay(Ve.E9.stringify),Nt(Ve.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ve.KX("stroke").makeTwoWay(),new Ve.KX("fill").makeTwoWay(),new Ve.KX("figure")),Nt(Ve.al,{margin:new Ve.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ve.$u(16,16),maxSize:new Ve.$u(10,NaN),textAlign:"center",editable:!0},new Ve.KX("key").makeTwoWay())),setTimeout(()=>{Pe.current.grid=Nt(Ve.s_,"Grid",Nt(Ve.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Nt(Ve.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const hr=()=>qe(this,null,function*(){var Nt=Pe.current.makeImage();const Wn=yield(0,zt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Nt.src}});ye({src:Wn.url})});(0,te.useEffect)(()=>(setTimeout(()=>{Bn()},500),$t(gn+1),()=>{Pe.current=null}),[]);const gr=(0,re.useIntl)();return Xe.createElement("div",{ref:pt,className:Je.current?`${et.maxH60} body-overflow-initial`:"body-overflow-initial"},Xe.createElement(at.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!gn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Xe.createElement(Ct.Z,null,Xe.createElement(mn.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Xe.createElement(mn.Z,{onClick:()=>{var Nt,Wn,qn=Pe.current.selection.first();if(Je.current=!Je.current,document.activeElement&&qn){let Sn=(Wn=(Nt=document.activeElement)==null?void 0:Nt.value)==null?void 0:Wn.trim();typeof Sn=="string"&&Pe.current.model.commit(function(Mn){Mn.set(qn.data,"text",Sn||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}$t(gn+1)}},Xe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},gr.formatMessage({id:"shixuns.expand",defaultMessage:"\u5C55\u5F00"})," /",gr.formatMessage({id:"shixuns.collapse",defaultMessage:"\u6536\u8D77"})))),onCancel:se},Xe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:et.flowChartWrp},Xe.createElement("div",{style:{display:"flex",height:"100%"}},Xe.createElement("div",{style:{width:"300px",height:"100%"}},Xe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Xe.createElement("div",{style:{height:"calc(100% - 50px)"},className:et.myPaletteDiv,ref:Oe})),Xe.createElement("div",{style:{flex:1,position:"relative"}},Xe.createElement("div",{ref:Ae,style:{height:"80vh"}}))),Xe.createElement("div",{className:"tr"},Xe.createElement(xe.ZP,{size:"large",onClick:hr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},gr.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))))}var Dt=ft,tt=ee(78045),vt=ee(31795);const bt=tt.ZP.Group,Qe={margin:"0 8px"};var Wt=({callback:se,onCancel:ye})=>{function Pe(Oe){se(Oe)}const Ae=(0,re.useIntl)();return te.createElement(we.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:Qe},Ae.formatMessage({id:"markdownEditor.numberOfCells",defaultMessage:"\u5355\u5143\u683C\u6570"}),"\uFF1A"),te.createElement("span",{style:Qe},Ae.formatMessage({id:"markdownEditor.numberOfRows",defaultMessage:"\u884C\u6570"})),te.createElement(we.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(vt.Z,null)),te.createElement("span",{style:Qe},Ae.formatMessage({id:"markdownEditor.numberOfColumns",defaultMessage:"\u5217\u6570"})),te.createElement(we.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(vt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:Qe},Ae.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),"\uFF1A"),te.createElement(we.default.Item,{name:"align"},te.createElement(bt,null,te.createElement(tt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(tt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(tt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(tt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},Ae.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),te.createElement(xe.ZP,{type:"ghost",onClick:ye},Ae.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"}))))},He=ee(47897),ut=ee(61016),En=ee.n(ut),ht=(0,te.forwardRef)(({use3d:se,width:ye,height:Pe,callback:Ae,showSaveButton:Oe},Je)=>{const pt=(0,te.useRef)(),gn=(0,te.useRef)(),$t=(0,re.useIntl)(),[Bn,hr]=(0,te.useState)(!1),gr=(0,te.useRef)({id:pt,appName:"graphing",width:ye||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{gn.current=new(En())(gr.current,!0),window.onload=function(){gn.current.inject("applet_container")}},[]);const Nt=()=>{var Wn=window.ggbApplet.getPNGBase64(1,!0,72);return Ae&&Ae(Wn),Wn};return(0,te.useEffect)(()=>{gr.current.appName=Bn?"3D":"graphing",gn.current.inject("applet_container")},[Bn]),(0,te.useEffect)(()=>{hr(se)},[se]),(0,te.useImperativeHandle)(Je,()=>({getImgData:Nt})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:pt}),te.createElement(Ct.Z,{align:"middle"},te.createElement(mn.Z,{flex:1},te.createElement(He.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:$t.formatMessage({id:"markdownEditor.enable3DImage",defaultMessage:"\u5F00\u542F3D\u56FE\u50CF"}),checked:Bn,onChange:Wn=>hr(Wn)})),te.createElement(mn.Z,null,te.createElement(xe.ZP,{size:"large",onClick:Nt,style:{zIndex:8,marginTop:10},type:"primary"},$t.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"})))))}),sn=ee(36527),ln=ee(25934),fn=ee(2453);const nr="link",wt="upload-image",xn="add-flowchart",zn="draw-image",Gr="add-flowchart",vr="code-block",cr="add-table",wn="------------",jr={default:wn,left:`:${wn}`,center:`:${wn}:`,right:`${wn}:`};var Hr=ee(99914),mo=(se,ye,Pe)=>new Promise((Ae,Oe)=>{var Je=$t=>{try{gn(Pe.next($t))}catch(Bn){Oe(Bn)}},pt=$t=>{try{gn(Pe.throw($t))}catch(Bn){Oe(Bn)}},gn=$t=>$t.done?Ae($t.value):Promise.resolve($t.value).then(Je,pt);gn((Pe=Pe.apply(se,ye)).next())});function da(){}let Ro=0;const Jo=1e4,qo="\u2581",ur="@\u2581\u2581@",$r="@\u2581@",zr=`
**\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`,To=["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 Fo(se){return/^\d+$/.test(se)?`${se}px`:se}const Lr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",vo={[Lr+"-B"]:"bold",[Lr+"-I"]:"italic"};var hn=({defaultValue:se="",onChange:ye,width:Pe="100%",height:Ae=400,miniToolbar:Oe=!1,isFocus:Je=!1,watch:pt,insertTemp:gn,mode:$t="markdown",id:Bn="markdown-editor-id",showResizeBar:hr=!1,noStorage:gr=!1,showNullButton:Nt=!1,showNullProgramButton:Wn=!1,hidetoolBar:qn=!1,fullScreen:Sn=!1,onBlur:Mn,onCMBeforeChange:Xn,onFullScreen:Pr,className:ar="",disablePaste:ga=!1,disabled:bo=!1,disabledFill:fr=!1,placeholder:Qr="",values:ko="",extraUse:Go})=>{const[on,sa]=(0,te.useState)(null),[Za,Pa]=(0,te.useState)(se),[so,ni]=(0,te.useState)(pt),[Pn,mr]=(0,te.useState)(Sn),[tr,er]=(0,te.useState)(""),[$o,ha]=(0,te.useState)(0),[ba,Ha]=(0,te.useState)(Ae),[ri,gt]=(0,te.useState)(!1),dt=(0,te.useRef)((0,ln.Z)()),Tt=(0,te.useRef)(!1),Yt=(0,te.useRef)(),[yn,ir]=(0,te.useState)(0),[Er,Tr]=(0,te.useState)(0),_r=(0,te.useRef)(),yo=(0,te.useRef)(),Do=(0,te.useRef)(),Bo=(0,te.useRef)(),fa=()=>mo(void 0,null,function*(){var Bt;const Kt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:dt.current}});(Bt=Kt==null?void 0:Kt.attachments)!=null&&Bt.length&&(console.log("cm:",on,_r),Kt.attachments.map(rn=>{rn.content_type.indexOf("image")>-1?on.replaceSelection(`![,](/api/attachments/${rn.id}?type=${rn.content_type})`):rn.content_type.indexOf("video")>-1?on.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):rn.content_type.indexOf("pdf")>-1?on.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${rn.id}?type=${rn.content_type}&disposition=inline" target="_blank">${rn.name}</a>`):on.replaceSelection(`[${rn.name}](${ENV.API_SERVER}/api/attachments/${rn.id}?type=${rn.content_type})`)}))});(0,te.useEffect)(()=>{const Bt=window.scrollY||window.pageYOffset;Pa(ko),on==null||on.setValue(ko),window.scrollTo(0,Bt)},[ko]),(0,te.useEffect)(()=>{Pr==null||Pr(Pn)},[Pn]),(0,te.useEffect)(()=>{if(_r.current){let Bt=function(rn,an){var Vn;if(ga){an.preventDefault();return}const lr=an.clipboardData;if(lr){const $e=lr.types.toString(),Fe=lr.items;if($e==="Files"||lr.types.indexOf("Files")>-1){if(an.preventDefault(),$t=="stex")return;try{let nt=Fe[1];((Vn=Fe[0])==null?void 0:Vn.kind)==="file"&&(nt=Fe[0]);const St=nt.getAsFile(),Mt=St.name.split(".").pop();(0,rt.I)(St,Ht=>{var dn,_n,An;Ht.id?((dn=St==null?void 0:St.type)==null?void 0:dn.indexOf("image"))>-1?Kt.replaceSelection(`<img width="100%" src="/api/attachments/${Ht.id}?type=${Ht.content_type})" alt="" />`):((_n=St==null?void 0:St.type)==null?void 0:_n.indexOf("video"))>-1?Kt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ht.id}"></video>`):((An=St==null?void 0:St.type)==null?void 0:An.indexOf("pdf"))>-1?Kt.replaceSelection(`<a href="/api/attachments/${Ht.id}?type=${St.type}&disposition=inline" target="_blank">${St.name}</a>`):To.includes(Mt)?Kt.replaceSelection(`<a href="/api/attachments/${Ht.id}?type=office&disposition=inline" target="_blank">${St.name}</a>`):Kt.replaceSelection(`[${St.name}](/api/attachments/${Ht.id}?type=${Ht.content_type})`):(Ht==null?void 0:Ht.status)===401&&(fn.ZP.warning((Ht==null?void 0:Ht.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(nt){fn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Kt=be().fromTextArea(_r.current,{mode:$t,lineNumbers:!Oe,lineWrapping:!0,value:se,autoCloseTags:!Wn,autoCloseBrackets:!0});return Kt.on("keyup",function(rn,an){an.keyCode===8&&(rn.getValue()==""?Kt.setOption("placeholder",Qr):Kt.setOption("placeholder",null))}),Kt.on("keydown",function(rn,an){if(an.keyCode===8){var Vn=_t(rn);Vn&&an.preventDefault()}}),Je&&Kt.focus(),Kt.on("paste",Bt),Kt.on("dragleave",function(rn,an){yo.current.classList.remove("mouse-hover-md")}),bo&&Kt.on("beforeChange",function(rn,an){(an.origin==="paste"||an.origin==="+input")&&an.cancel()}),sa(Kt),()=>{Kt.off("paste",Bt)}}},[]);const yt=(0,te.useCallback)(()=>{if(yo.current)try{}catch(Bt){console.log(Bt,"---- to set md editor body height")}},[ba,yo,Pn]);(0,te.useEffect)(()=>{function Bt(){let Kt=new _e.Z(rn=>{for(let an of rn)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&(yt(),on.setSize("100%","100%"),on.refresh())});return Kt.observe(_r.current.parentElement),Kt}if(on){const Kt=Bt();return()=>{var rn,an;(rn=_r.current)!=null&&rn.parentElement&&Kt.unobserve((an=_r.current)==null?void 0:an.parentElement)}}},[on,yt]),(0,te.useEffect)(()=>{if(on){let Bt=[];for(const[Kt,rn]of Object.entries(vo)){let an={[Kt]:()=>{jt(rn)}};Bt.push(an),on.addKeyMap(an)}return Yt.current=setInterval(()=>{Tt.current&&fa()},4e3),()=>{clearInterval(Yt.current);for(let Kt of Bt)on.removeKeyMap(Kt)}}},[on]),(0,te.useEffect)(()=>{Sn!==Pn&&mr(Sn)},[Sn]),(0,Hr.Z)(()=>{if(!gr&&$o>0){let Bt=new Date().getTime(),Kt=window.sessionStorage.getItem(Bn);Bt>=$o+Jo&&(!Kt||Kt!==Za)&&(window.sessionStorage.setItem(Bn,Za),gt(!0))}},Jo),(0,te.useEffect)(()=>{ni(pt)},[on,pt]),(0,te.useEffect)(()=>{on&&Je&&on.focus()},[on,Je]),(0,te.useEffect)(()=>{if(so&&on){let Bt=function(rn){let an=rn.target;if(Bo.current){let Vn=an.scrollTop/an.scrollHeight;Bo.current.scrollTop=Bo.current.scrollHeight*Vn}};const Kt=on.getScrollerElement();return Kt.addEventListener("scroll",Bt),()=>{Kt.removeEventListener("scroll",Bt)}}},[on,so]),(0,te.useEffect)(()=>{if(on&&Xn){let Bt=function(Kt,rn){Xn(Kt,rn)};return on.on("beforeChange",Bt),()=>{on.off("beforeChange",Bt)}}},[on,Xn]),(0,te.useEffect)(()=>{if(on&&Mn){let Bt=function(){Mn(on.getValue())};return on.on("blur",Bt),()=>{on.off("blur",Bt)}}},[on,Mn]);function _t(Bt,Kt){var rn=Bt.getDoc(),an=rn.getCursor(),Vn=rn.getLine(an.line),lr=Vn.charAt(an.ch-1),$e=Vn.lastIndexOf("@\u2581@",an.ch),Fe=Vn.lastIndexOf("@\u2581\u2581@",an.ch),nt=$e>Fe?$e:Fe,St=$e>Fe?3:4;if(ur.indexOf(lr)===-1)return null;if(console.log("change1:",Kt,Bt,Vn,an,nt,$e,Fe,lr),nt>=0&&an.ch-nt<5){var Mt=nt+St;return rn.replaceRange("",{line:an.line,ch:nt},{line:an.line,ch:Mt}),{line:an.line,ch:Mt}}return null}(0,te.useEffect)(()=>{if(on){let Bt=function(Kt,rn){const an=Kt.getValue();Pa(an),ha(new Date().getTime()),Kt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ye&&(Wn?ye(an,vn(an)):ye(an))};return on.on("change",Bt),()=>{on.off("change",Bt)}}},[on,ye]),(0,te.useEffect)(()=>{if(on)if(se==null)on.setValue(""),Pa("");else{const Bt=window.scrollY||window.pageYOffset;se!==on.getValue()&&(on.setValue(se),Pa(se),on.setCursor(bo?1:on.lineCount(),0),window.scrollTo(0,Bt))}},[on,se]);const jt=(0,te.useCallback)(Bt=>{const Kt=on.getCursor(),rn=on.getSelection();let an=rn.split(`
`);switch(Bt){case"bold":return on.replaceSelection("**"+rn+"**"),rn===""&&on.setCursor(Kt.line,Kt.ch+2),on.focus();case"italic":return on.replaceSelection("*"+rn+"*"),rn===""&&on.setCursor(Kt.line,Kt.ch+1),on.focus();case"code":return on.replaceSelection("`"+rn+"`"),rn===""&&on.setCursor(Kt.line,Kt.ch+1),on.focus();case"inline-latex":return er("inline-latex"),on.focus();case"latex":return on.replaceSelection("```latex\n"+rn+"\n```"),on.setCursor(Kt.line+1,rn.length+1),on.focus();case"line-break":return on.replaceSelection(`<br/>
`),on.focus();case"list-ul":return rn===""?on.replaceSelection("- "+rn):on.replaceSelection(an.map(Vn=>Vn===""?"":`- ${Vn}`).join(`
`)),on.focus();case"list-ol":return rn===""?on.replaceSelection("1. "+rn):on.replaceSelection(an.map((Vn,lr)=>Vn===""?"":`${lr+1}. ${Vn}`).join(`
`)),on.focus();case"add-null-ch":return rn===""&&on.setCursor(Kt.line,Kt.ch),on.replaceSelection(qo),on.focus();case"add-signal":return rn===""&&on.setCursor(Kt.line,Kt.ch),on.replaceSelection($r),on.focus();case"add-multiple":return rn===""&&on.setCursor(Kt.line,Kt.ch),on.replaceSelection(ur),on.focus();case"inster-template-1":return rn===""&&on.setCursor(Kt.line,Kt.ch),on.replaceSelection(zr),on.focus();case"eraser":return on.setValue(""),on.focus();case"trigger-watch":return ni(!so),on.focus();case"trigger-full-screen":return mr(!Pn),on.focus();case nr:er(nr);return;case vr:er(vr);return;case wt:er(wt);return;case zn:er(zn);return;case"maths-latex":er("maths-latex");return;case xn:er(xn);return;case cr:er(cr);return;default:throw new Error}},[on,so,Pn]),Ue=(0,te.useCallback)((Bt,Kt)=>{var rn,an,Vn,lr,$e,Fe;switch(er(""),tr){case nr:const{title:dn,link:_n}=Bt;return on.replaceSelection(`[${dn}](${_n})`),on.focus();case vr:const{language:An,content:Un}=Bt;return on.replaceSelection(["```"+An,Un,"```"].join(`
`)),on.focus();case"maths-latex":for(var nt=atob(Bt),St=new Uint8Array(nt.length),Mt=0;Mt<nt.length;Mt++)St[Mt]=nt.charCodeAt(Mt);var Ht=new Blob([St],{type:"image/png"});(0,rt.I)(Ht,Jr=>{Jr.id?on.replaceSelection(`![,](/api/attachments/${Jr.id}?type=${Jr.content_type})`):(Jr==null?void 0:Jr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":on.replaceSelection("`$$"+Bt+"$$`");break;case wt:case zn:case Gr:const{src:Tn,alt:In}=Bt,Gn=Kt,Br=(Vn=(an=(rn=Gn==null?void 0:Gn.name)==null?void 0:rn.split("."))==null?void 0:an.pop)==null?void 0:Vn.call(an);return((lr=Gn==null?void 0:Gn.type)==null?void 0:lr.indexOf("image"))>-1||!(Gn!=null&&Gn.type)?Gn.align||Gn.width?on.replaceSelection(`<p style="text-align:${Gn.align||"initial"}"><img width="${Gn.width?Gn.width+"%":"initial"}" src="${Tn}" alt="${In||""}" /></p>`):on.replaceSelection(`<img width="100%" src="${Tn}" alt="${In||""}" />`):(($e=Gn==null?void 0:Gn.type)==null?void 0:$e.indexOf("video"))>-1?on.replaceSelection(`<video width="100%" controls src="${Tn}"></video>`):((Fe=Gn==null?void 0:Gn.type)==null?void 0:Fe.indexOf("pdf"))>-1?on.replaceSelection(`<a href="${Tn}?type=${Gn.type}&disposition=inline" target="_blank">${Gn.name}</a>`):To.includes(Br)?on.replaceSelection(`<a href="${Tn}?type=office&disposition=inline" target="_blank">${Gn.name}</a>`):on.replaceSelection(`[${Gn.name}](${Tn})`),on.focus();case cr:const{row:qr,col:Eo,align:Yr}=Bt;let to=`
`;for(let Jr=0;Jr<qr;Jr++){let Ko=[],Mr=[];for(let no=0;no<Eo;no++)Jr===1&&Mr.push(jr[Yr]),Ko.push(" ");Jr===1&&(to+=`| ${Mr.join(" | ")} |
`),to+=`| ${Ko.join(Eo===1?"":" | ")} |
`}return on.replaceSelection(to+`
`),on.focus();default:throw new Error}},[on,tr]),Ut=(0,te.useMemo)(()=>{switch(tr){case nr:return te.createElement(en,{callback:Ue,onCancel:Xt});case vr:return te.createElement(Zt.Z,{callback:Ue,onCancel:Xt});case wt:return te.createElement(rt.Z,{callback:Ue,onCancel:Xt});case xn:return te.createElement(Dt,{callback:Ue,onCancel:Xt});case cr:return te.createElement(Wt,{callback:Ue,onCancel:Xt});case"maths-latex":return te.createElement(ht,{showSaveButton:!0,callback:Ue});case"inline-latex":return te.createElement(sn.Z,{showSaveButton:!0,callback:Ue});default:return null}},[tr]);function Xt(){er("")}(0,te.useEffect)(()=>{if(Do.current){let Bt=function($e){Vn=!0,lr=$e.pageY},Kt=function(){Vn=!1},rn=function($e){if(Vn){let Fe=$e.pageY-lr;Fe<0&&(Fe=0),Fe>300&&(Fe=300);let nt=Ae+Fe+"px";Ha(nt)}},an=Do.current,Vn=!1,lr=0;return an.addEventListener("mousedown",Bt),document.addEventListener("mousemove",rn),document.addEventListener("mouseup",Kt),()=>{an.removeEventListener("mousedown",Bt),document.removeEventListener("mousemove",rn),document.removeEventListener("mouseup",Kt)}}},[on,Do]),(0,te.useEffect)(()=>{Ha(Ae)},[Ae]);const pn=Fo(Pe),Lt=Fo(ba),Ft={width:pn,height:Lt},Ot=(0,te.useMemo)(()=>{if($o){let Bt=new Date($o),Kt=Bt.getHours(),rn=Bt.getMinutes(),an=Bt.getSeconds();return Kt=Kt<10?"0"+Kt:Kt,rn=rn<10?"0"+rn:rn,an=an<10?"0"+an:an,`${Kt}:${rn}:${an}`}return 0},[$o]),vn=Bt=>{const Kt=[];if(Wn){let rn=-1;Bt=Bt.replace(/(@▁▁@|@▁@)/g,function(an,Vn,lr){Kt.push({multiLine:an!==$r})})}return Kt};function Fn(){window.sessionStorage.removeItem(Bn),gt(!1),ha(0)}function Kn(){gt(!1),ha(0),on.setValue(window.sessionStorage.getItem(Bn))}const kn=(0,re.useIntl)(),Qn={[nr]:"\u6DFB\u52A0\u94FE\u63A5",[vr]:kn.formatMessage({id:"markdownEditor.addCodeBlock",defaultMessage:"\u6DFB\u52A0\u4EE3\u7801\u5757"}),[wt]:kn.formatMessage({id:"markdownEditor.addImage",defaultMessage:"\u6DFB\u52A0\u56FE\u7247"}),[zn]:"\u6DFB\u52A0\u753B\u56FE",[xn]:kn.formatMessage({id:"markdownEditor.insertFlowchart",defaultMessage:"\u63D2\u5165\u6D41\u7A0B\u56FE"}),[cr]:"\u6DFB\u52A0\u8868\u683C","maths-latex":kn.formatMessage({id:"markdownEditor.mathImage",defaultMessage:"\u6570\u5B66\u56FE\u50CF"}),"inline-latex":kn.formatMessage({id:"markdownEditor.latexFormula",defaultMessage:"LATEX\u516C\u5F0F"})};(0,te.useEffect)(()=>{Qn[tr]&&tr!==zn&&tr!==xn&&setTimeout(()=>{const Bt=document.getElementsByClassName("markdown-popup-form")[0],Kt=window.innerWidth/2-Bt.offsetWidth/2,rn=window.innerHeight/2-Bt.offsetHeight/2;ir(Kt),Tr(rn)},0)},[tr]);const sr=Bt=>{Bt.preventDefault();const Kt=Bt.clientX-yn,rn=Bt.clientY-Er;document.body.onmousemove=an=>{let Vn=an.clientX-Kt,lr=an.clientY-rn;const $e=document.getElementsByClassName("markdown-popup-form")[0],Fe=window.innerWidth-$e.offsetWidth,nt=window.innerHeight-$e.offsetHeight;Vn=Math.max(0,Math.min(Vn,Fe)),lr=Math.max(0,Math.min(lr,nt)),xr(an.clientX,an.clientY,Kt,rn)&&(ir(Vn),Tr(lr))},document.body.onmouseup=function(){document.body.onmousemove=null}},xr=(Bt,Kt,rn,an)=>{const Vn=document.body.clientHeight,lr=document.body.clientWidth;return Bt<20&&rn>Bt||Bt>lr-20&&rn<Bt||Kt<20&&an>Kt||Kt>Vn-20&&an<Kt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:yo},te.createElement("div",{className:`markdown-editor-container ${ar} ${so?"on-preview":""} ${Oe?"mini":""} ${Pn?"full-screen":""}`,style:Ft},te.createElement(Se,{insertTemp:gn,watch:so,fullScreen:Pn,showNullButton:Nt,showNullProgramButton:Wn,onActionCallback:jt,hidetoolBar:qn,extraUse:Go}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:_r,placeholder:Qr})),so?te.createElement("div",{ref:Bo,className:"preview-container"},$t==="stex"&&te.createElement(he,{value:Za}),$t!=="stex"&&te.createElement(le.Z,{disabledFill:fr,showProgramFill:Wn,value:Za})):null))),hr?te.createElement("a",{ref:Do,className:"editor-resize"}):null,tr===zn&&te.createElement(xt,{callback:Ue,onCancel:Xt}),tr===xn&&te.createElement(Dt,{callback:Ue,onCancel:Xt}),te.createElement(Le.Z,null,Qn[tr]&&tr!==zn&&tr!==xn?te.createElement(at.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:yn,top:Er},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:sr},Qn[tr]),open:!0,onCancel:Xt,footer:null,destroyOnClose:!0,width:tr===xn?"1200px":null,height:tr===xn?"80vh":null,className:"markdown-popup-form"},Ut):null))}},70859:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return Se},I:function(){return we}});var te=ee(22150),fe=ee(2453),be=ee(69677),_e=ee(93421),ce=ee(31795),pe=ee(78045),ae=ee(71577),me=ee(15476),de=ee(67294),ge=ee(52262),le=ee(35973),he=ee(67294),re=Object.defineProperty,ne=Object.defineProperties,y=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(Ne,xe,st)=>xe in Ne?re(Ne,xe,{enumerable:!0,configurable:!0,writable:!0,value:st}):Ne[xe]=st,z=(Ne,xe)=>{for(var st in xe||(xe={}))E.call(xe,st)&&x(Ne,st,xe[st]);if(a)for(var st of a(xe))b.call(xe,st)&&x(Ne,st,xe[st]);return Ne},oe=(Ne,xe)=>ne(Ne,y(xe));const{useForm:ie}=te.default,ue={width:280,marginRight:10},ve={labelCol:{span:5},wrapperCol:{span:19}};var Se=({callback:Ne,onCancel:xe})=>{const[st]=ie();let Ye=(0,de.useRef)();const lt=(0,le.useIntl)();function Me(ke){Ye.current.width=st.getFieldValue("width"),Ye.current.align=st.getFieldValue("align"),Ne(ke,Ye.current)}function Be(ke,Ge){if(ke.status===-1){fe.ZP.error(ke.message);return}st.setFieldsValue({src:`/api/attachments/${ke.id}`,type:Ge.type})}function Re(ke){let Ge=ke.target.files[0];Ye.current=Ge,we(Ge,Be)}return he.createElement(te.default,oe(z({form:st},ve),{className:"upload-image-panel",onFinish:Me,style:{width:470,overflow:"hidden"}}),he.createElement(te.default.Item,{label:lt.formatMessage({id:"markdownEditor.imageAddress",defaultMessage:"\u56FE\u7247\u5730\u5740"}),required:!0},he.createElement("div",{className:"flex-container"},he.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},he.createElement(be.default,{style:ue})),he.createElement(Le,{onFileChange:Re}))),he.createElement(te.default.Item,{label:lt.formatMessage({id:"markdownEditor.imageDescription",defaultMessage:"\u56FE\u7247\u63CF\u8FF0"}),name:"alt"},he.createElement(be.default,{style:{width:264}})),he.createElement(te.default.Item,{label:lt.formatMessage({id:"markdownEditor.imageWidth",defaultMessage:"\u56FE\u7247\u5BBD\u5EA6"}),name:"width"},he.createElement(_e.Z,null,he.createElement(te.default.Item,{name:"width",style:{margin:0}},he.createElement(ce.Z,{style:{width:264}})),he.createElement("span",{className:"ml8"},"%"))),he.createElement(te.default.Item,{label:lt.formatMessage({id:"markdownEditor.alignment",defaultMessage:"\u5BF9\u9F50\u65B9\u5F0F"}),name:"align"},he.createElement(pe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:lt.formatMessage({id:"markdownEditor.leftAlign",defaultMessage:"\u5DE6\u5BF9\u9F50"})},{value:"center",label:lt.formatMessage({id:"markdownEditor.centerAlign",defaultMessage:"\u5C45\u4E2D\u5BF9\u9F50"})},{value:"right",label:lt.formatMessage({id:"markdownEditor.rightAlign",defaultMessage:"\u53F3\u5BF9\u9F50"})}]})),he.createElement("aside",null,he.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},he.createElement(ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},lt.formatMessage({id:"markdownEditor.confirm",defaultMessage:"\u786E\u5B9A"})),he.createElement(ae.ZP,{type:"default",onClick:xe},lt.formatMessage({id:"markdownEditor.cancel",defaultMessage:"\u53D6\u6D88"})))))};function Le({onFileChange:Ne}){return he.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",he.createElement("input",{type:"file",onChange:Ne}))}function we(Ne,xe){if(!Ne)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ge.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let st=new FormData;st.append("editormd-image-file",Ne),st.append("file_param_name","editormd-image-file"),st.append("byxhr","true");var Ye=new window.XMLHttpRequest;Ye.withCredentials=!0,Ye.addEventListener("load",function(lt){xe(JSON.parse(lt.target.responseText),Ne)},!1),Ye.addEventListener("error",function(lt){console.error(lt)},!1),Ye.open("POST",`${me.KI}/api/attachments.json`),Ye.send(st)}},76621:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return be}});var te=ee(67294),fe=ee(73935);class be extends te.Component{constructor(ce){super(ce);const pe=window.document;this.node=pe.createElement("div"),pe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,fe.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},21434:function(ot,Ze,ee){"use strict";var te=ee(12867),fe=ee(11713),be=ee(47897),_e=ee(35973),ce=ee(67294);const pe=fe.default.Option;Ze.Z=({isTheoretical:ae,onFontSizeChange:me,cmFontSize:de,cmCodeMode:ge,autoFormat:le,onCodeModeChange:he,onTabToSpace:re,onAutoFormat:ne,formatDocument:y,className:a="",tabToSpace:E,children:b,code_editor:x,challenge:z,shixun_environment_id:oe,shixun_environments:ie})=>{var ue;const ve=(0,_e.useIntl)(),Se={1:ve.formatMessage({id:"shixuns.easy",defaultMessage:"\u7B80\u5355"}),2:ve.formatMessage({id:"shixuns.medium",defaultMessage:"\u9002\u4E2D"}),3:ve.formatMessage({id:"shixuns.difficult",defaultMessage:"\u56F0\u96BE"})},Le=(ue=ie==null?void 0:ie.find(we=>we.shixun_environment_id===oe))==null?void 0:ue.program_language;return ce.createElement("div",{className:`tpi-code-setting ${a}`},ce.createElement("h3",null,ve.formatMessage({id:"shixuns.codeFormat",defaultMessage:"\u4EE3\u7801\u683C\u5F0F"})),ce.createElement("section",null,ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.displayMode",defaultMessage:"\u663E\u793A\u6A21\u5F0F"})),ce.createElement(fe.default,{bordered:!1,size:"small",value:ge,onChange:he},ce.createElement(pe,{value:"vs"},ve.formatMessage({id:"shixuns.whiteBackground",defaultMessage:"\u767D\u8272\u80CC\u666F"})),ce.createElement(pe,{value:"vs-dark"},ve.formatMessage({id:"shixuns.blackBackground",defaultMessage:"\u9ED1\u8272\u80CC\u666F"})))),!ae&&ce.createElement(ce.Fragment,null,ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.fontSize",defaultMessage:"\u5B57\u4F53\u5927\u5C0F"})),ce.createElement(fe.default,{bordered:!1,size:"small",value:de,onChange:me},ce.createElement(pe,{value:12},"12px"),ce.createElement(pe,{value:14},"14px"),ce.createElement(pe,{value:16},"16px"),ce.createElement(pe,{value:18},"18px"),ce.createElement(pe,{value:20},"20px"),ce.createElement(pe,{value:22},"22px"))),ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.tabConversion",defaultMessage:"Tab\u8F6C\u6362"})),ce.createElement(be.Z,{checked:E,onChange:re})),ce.createElement("div",{className:"file-item",onClick:y},ce.createElement("b",{style:{cursor:"pointer"}},ve.formatMessage({id:"shixuns.formatCode",defaultMessage:"\u683C\u5F0F\u5316\u4EE3\u7801"}))))),!ae&&ce.createElement(ce.Fragment,null,ce.createElement("h3",null,ve.formatMessage({id:"shixuns.shortcuts",defaultMessage:"\u5FEB\u6377\u952E"})),ce.createElement("section",null,ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.saveCode",defaultMessage:"\u4FDD\u5B58\u4EE3\u7801"})),ce.createElement("span",null,"Ctrl + S")),ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.showShortcutsList",defaultMessage:"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"})),ce.createElement("span",null,"F1 / Alt + F1")),ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.indentLeftRight",defaultMessage:"\u5DE6\u53F3\u7F29\u8FDB"})),ce.createElement("span",null,"Ctrl + ]/[")),ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.jumpToMatchingBracket",defaultMessage:"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"})),ce.createElement("span",null,"Ctrl + Shift + \\")),ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.goToLineStart",defaultMessage:"\u8F6C\u5230\u884C\u9996"})),ce.createElement("span",null,"Home")),ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.goToLineEnd",defaultMessage:"\u8F6C\u5230\u884C\u5C3E"})),ce.createElement("span",null,"End"))),b),!ae&&ce.createElement(ce.Fragment,null,ce.createElement("h3",null,ve.formatMessage({id:"shixuns.shortcuts",defaultMessage:"\u5FEB\u6377\u952E"})),ce.createElement("section",null,Le&&ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"questionBankAddQuestion.programmingLanguage",defaultMessage:"\u7F16\u7A0B\u8BED\u8A00"})),ce.createElement("span",null,Le)),ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.practicalDifficulty",defaultMessage:"\u5B9E\u8BAD\u96BE\u6613\u5EA6"})),ce.createElement("span",null,Se[z==null?void 0:z.difficulty])),ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.labEnvironment",defaultMessage:"\u5B9E\u9A8C\u73AF\u5883"})),ce.createElement("span",null,x==null?void 0:x.name)),ce.createElement("div",{className:"file-item"},ce.createElement("b",null,ve.formatMessage({id:"shixuns.labContainerNetwork",defaultMessage:"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"})),ce.createElement("span",null,x!=null&&x.close_internet?ve.formatMessage({id:"shixuns.closeInternet",defaultMessage:"\u5173\u95ED\u5916\u7F51"}):ve.formatMessage({id:"shixuns.enableExternalNetwork",defaultMessage:"\u5F00\u542F\u5916\u7F51"}))))))}},99914:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return fe}});var te=ee(67294);function fe(be,_e){const ce=(0,te.useRef)();(0,te.useEffect)(()=>{ce.current=be}),(0,te.useEffect)(()=>{function pe(){ce.current()}if(_e!==null){let ae=setInterval(pe,_e);return()=>clearInterval(ae)}},[_e])}},72971:function(ot,Ze,ee){"use strict";ee.d(Ze,{Im:function(){return Ne},ZP:function(){return Be},gZ:function(){return lt}});var te=ee(67294),fe=ee(69677),be=ee(71577),_e=ee(42922),ce=ee(53978),pe=ee(94189),ae=ee(19575),me=ee(7621),de=ee(85725),ge=ee(28706),le=ee(38658),he=ee(12320),re=ee(94184),ne=ee.n(re),y=ee(35973),a=ee(67294),E=Object.defineProperty,b=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ue=(Re,ke,Ge)=>ke in Re?E(Re,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Re[ke]=Ge,ve=(Re,ke)=>{for(var Ge in ke||(ke={}))oe.call(ke,Ge)&&ue(Re,Ge,ke[Ge]);if(z)for(var Ge of z(ke))ie.call(ke,Ge)&&ue(Re,Ge,ke[Ge]);return Re},Se=(Re,ke)=>b(Re,x(ke));const{TextArea:Le}=fe.default,we={visible:!1,tabIndex:"0"},Ne={[pe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[pe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[pe.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 xe=(Re=>(Re[Re.SET_VISIBLE=0]="SET_VISIBLE",Re[Re.SET_TABINDEX=1]="SET_TABINDEX",Re))(xe||{});function st(Re,ke){switch(ke.type){case 0:return Se(ve({},Re),{visible:ke.payload});case 1:return Se(ve({},Re),{tabIndex:ke.payload});default:throw new Error}}function Ye({value:Re,className:ke}){const Ge=(0,y.useIntl)(),[Et,It]=(0,te.useState)(!1),en=(0,te.useRef)(),Zt=(0,te.useRef)();return(0,te.useEffect)(()=>{Et&&(Zt.current.reset(),Zt.current.write((0,ge.pp)(Re||"")))},[Re,Et]),(0,te.useEffect)(()=>{var rt,at,Ct,qt;if(en.current){Zt.current=new he.Terminal({fontSize:14,disableStdin:!0}),Zt.current.open(en.current);const Gt=en.current.offsetWidth-14,xt=((qt=(Ct=(at=(rt=Zt.current)==null?void 0:rt._core)==null?void 0:at._renderService)==null?void 0:Ct.dimensions)==null?void 0:qt.actualCellWidth)||9.5,Ve=Math.ceil(Gt/xt);Zt.current.resize(Ve,8),It(!0)}},[]),a.createElement("div",{ref:en,className:ne()("XtermText-valueRef",ke)})}function lt(Re){const ke=(0,y.useIntl)(),{status:Ge,error_msg:Et,output:It,input:en,expected_output:Zt,is_file:rt,input_file_url:at,output_file_url:Ct,expected_output_file_url:qt}=Re;let Gt=null;const xt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(Ge){case pe.h.NOMATCH:Gt=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!rt&&a.createElement(Ye,{className:"mb10",value:en}),rt&&a.createElement("div",{style:xt},a.createElement("a",{onClick:()=>(0,ge.LR)(at,en)},en)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!rt&&a.createElement(Ye,{className:"mb10",value:It&&ae.Base64.decode(It)||""}),rt&&a.createElement("div",{style:xt},a.createElement("a",{onClick:()=>(0,ge.LR)(Ct,It)},It)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!rt&&a.createElement(Ye,{className:"mb10",value:Zt&&ae.Base64.decode(Zt)||""}),rt&&a.createElement("div",{style:xt},a.createElement("a",{onClick:()=>(0,ge.LR)(qt,Zt)},Zt)));break;case pe.h.EXECUTEFAILURE:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!rt&&a.createElement(de.Z,{value:en,style:xt}),rt&&a.createElement("div",{style:xt},a.createElement("a",{onClick:()=>(0,ge.LR)(at,en)},en)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(Et)));break;case pe.h.COMPILEFAILURE:Gt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!rt&&a.createElement(de.Z,{value:en,style:xt}),rt&&a.createElement("div",{style:xt},a.createElement("a",{onClick:()=>(0,ge.LR)(at,en)},en)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(Et)));break;case pe.h.PODFAILURE:Gt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:Gt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Gt," ")}function Me(Re){const ke=(0,y.useIntl)(),{status:Ge,error_msg:Et,execute_time:It,output:en,input:Zt,expected_output:rt,is_file:at,input_file_url:Ct,output_file_url:qt,expected_output_file_url:Gt}=Re;let xt=null;switch(Ge){case pe.h.OK:xt=a.createElement(a.Fragment,null,a.createElement("p",null,ke.formatMessage({id:"classrooms.executionTime",defaultMessage:"\u6267\u884C\u7528\u65F6"}),"\uFF1A",It,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ae.Base64.decode(en)));break;case pe.h.NOMATCH:xt=a.createElement(a.Fragment,null,a.createElement("p",null,ke.formatMessage({id:"shixuns.input",defaultMessage:"\u8F93\u5165"}),"\uFF1A",a.createElement("pre",null,Zt)),a.createElement("p",null,ke.formatMessage({id:"questionBankAddQuestion.output",defaultMessage:"\u8F93\u51FA"}),"\uFF1A",en&&ae.Base64.decode(en)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",rt&&ae.Base64.decode(rt)));break;case pe.h.EXECUTEFAILURE:xt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Zt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(Et)));break;case pe.h.COMPILEFAILURE:xt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,Zt)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ae.Base64.decode(Et)));break;case pe.h.PODFAILURE:xt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case pe.h.TIMEOUT:xt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",xt," ")}var Be=({id:Re,is_file:ke,input:Ge,debuging:Et,submitting:It,executingMessage:en,debugResult:Zt,onChangeInput:rt,onDebugCode:at,onSubmitCode:Ct})=>{const qt=(0,y.useIntl)(),[Gt,xt]=(0,te.useReducer)(st,we),{visible:Ve,tabIndex:Qt}=Gt;(0,te.useEffect)(()=>{xt({type:0,payload:!1})},[Re]);function Ln(et){let Xe=et.target.id;xt({type:1,payload:Xe})}function Hn(){xt({type:0,payload:!Ve})}const mn=(0,te.useMemo)(()=>{if(Zt){const{status:et}=Zt;return a.createElement(a.Fragment,null,Me(Zt))}return null},[Zt]);function zt(){xt({type:0,payload:!0}),xt({type:1,payload:"1"}),at()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${Ve?"active":""}`},a.createElement("ul",{className:"s-navs"},a.createElement("li",null,a.createElement("a",{className:"active"},qt.formatMessage({id:"problemset.debugResult",defaultMessage:"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"})))),a.createElement(le.Z,{leftTitle:qt.formatMessage({id:"questionBankAddQuestion.customTestCase",defaultMessage:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"}),rightTitle:qt.formatMessage({id:"questionBankAddQuestion.codeExecutionResult",defaultMessage:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"}),style:{height:240},leftNode:a.createElement(Le,{placeholder:qt.formatMessage({id:"classrooms.pleaseEnterSelfTestCase",defaultMessage:"\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:ke?"":Ge,onChange:rt}),rightNode:Et?a.createElement(me.Z,{message:qt.formatMessage({id:"shixuns.codeExecuting",defaultMessage:"\u4EE3\u7801\u6267\u884C\u4E2D"})+"..."}):Zt?mn:a.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")})),a.createElement("a",{className:`btn-collapse ${Ve?"up":""}`,onClick:Hn},Ve?a.createElement(_e.Z,null):a.createElement(ce.Z,null)),a.createElement("footer",{className:"footer"},a.createElement("span",{style:{visibility:"hidden"}},qt.formatMessage({id:"problemset.console",defaultMessage:"\u63A7\u5236\u53F0"})),a.createElement("div",{className:"flex-container"},a.createElement(be.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},qt.formatMessage({id:"testPaperBank.previousQuestion",defaultMessage:"\u4E0A\u4E00\u9898"})),a.createElement(be.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},qt.formatMessage({id:"testPaperBank.nextQuestion",defaultMessage:"\u4E0B\u4E00\u9898"})),a.createElement(be.ZP,{className:"btn-green",type:"ghost",loading:Et,onClick:zt},qt.formatMessage({id:"questionBankAddQuestion.debugCode",defaultMessage:"\u8C03\u8BD5\u4EE3\u7801"})),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:It,disabled:It,onClick:()=>{xt({type:0,payload:!1}),Ct()}},qt.formatMessage({id:"questionBankAddQuestion.evaluateAndSubmit",defaultMessage:"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"})))))}},10903:function(ot,Ze,ee){"use strict";ee.r(Ze),ee.d(Ze,{default:function(){return tl}});var te=ee(67294),fe=ee(53555),be=ee(32693),_e=ee(35973),ce=ee(55054),pe=ee(2453),ae=ee(14446),me=ee(57953),de=ee(11713),ge=ee(33227),le=ee(60076),he=ee(11320),re=ee(55304),ne=ee(72565),y=ee(36295),a=ee(76621),E=ee(40471),b=ee(21434),x=ee(67294),z=Object.defineProperty,oe=Object.defineProperties,ie=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Le=(Ie,ze,Ke)=>ze in Ie?z(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,we=(Ie,ze)=>{for(var Ke in ze||(ze={}))ve.call(ze,Ke)&&Le(Ie,Ke,ze[Ke]);if(ue)for(var Ke of ue(ze))Se.call(ze,Ke)&&Le(Ie,Ke,ze[Ke]);return Ie},Ne=(Ie,ze)=>oe(Ie,ie(ze));const xe={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var st=(Ie=>(Ie[Ie.set_font_size=0]="set_font_size",Ie[Ie.set_theme=1]="set_theme",Ie[Ie.on_tab_to_space=2]="on_tab_to_space",Ie[Ie.set_show_editor_setting=3]="set_show_editor_setting",Ie))(st||{});function Ye(Ie,ze){switch(ze.type){case 3:return Ne(we({},Ie),{showEditorSetting:ze.payload});case 1:return Ne(we({},Ie),{theme:ze.payload});case 0:return Ne(we({},Ie),{fontSize:ze.payload});case 2:return Ne(we({},Ie),{tabToSpace:ze.payload});default:throw new Error}}var lt=({isLoading:Ie,value:ze,onChange:Ke,language:Jn,onUpdateCode:bn,ActionBarRender:Dn=Vt=>x.createElement(Me,{onShowCodeSetting:Vt})})=>{const[Vt,nn]=(0,te.useReducer)(Ye,xe),{theme:kt,fontSize:Nn,showEditorSetting:eo,tabToSpace:lo}=Vt,kr=(0,te.useRef)(),oo=(0,te.useRef)(),Ir={onFontSizeChange:Kr=>{nn({type:0,payload:Kr}),(0,E.t)("cmFontSize",Kr)},tabToSpace:lo,cmFontSize:Nn,className:"oj",cmCodeMode:kt,onTabToSpace:Kr=>{nn({type:2,payload:Kr}),(0,E.t)("cmTabToSpace",Kr)},onCodeModeChange:Kr=>{nn({type:1,payload:Kr}),(0,E.t)("cmCodeMode",Kr)}};function Zo(){nn({type:3,payload:!1})}function Wr(){nn({type:3,payload:!0})}const ra={value:ze,language:Jn,theme:kt,height:"calc(100% - 56px)",options:{fontSize:Nn,insertSpaces:lo},onChange:Kr=>{Ke(Kr),oo.current=Kr,clearTimeout(kr.current),kr.current=setTimeout(()=>{bn(oo.current)},1e4)},onEditBlur:Kr=>{oo.current&&bn(oo.current)}};return x.createElement(te.Fragment,null,x.createElement("div",{className:"code-panel-container"},Dn(Wr),!Ie&&x.createElement(y.ZP,we({},ra))),x.createElement(a.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:eo,onClose:Zo},x.createElement(b.Z,we({},Ir)))))};function Me({onShowCodeSetting:Ie}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Ie},x.createElement("i",{className:"iconfont icon-shezhi"})))}var Be=ee(19575),Re=ee(77969),ke=ee(72971),Ge=ee(69677),Et=ee(22150),It=ee(71577);const{TextArea:en}=Ge.default,Zt=5e3;var rt=({callback:Ie,onCancel:ze,notes:Ke})=>{const Jn=(0,_e.useIntl)();function bn(Dn){Ie(Dn)}return te.createElement(Et.default,{className:"note-form-panel",onFinish:bn,initialValues:{notes:Ke}},te.createElement(Et.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:Zt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${Zt}`}]},te.createElement(en,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),te.createElement(Et.default.Item,{style:{textAlign:"right"}},te.createElement(It.ZP,{type:"ghost",onClick:ze,style:{marginRight:10}}," ",Jn.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"})," "),te.createElement(It.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},at={"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"},Ct={pagination:"pagination___npPu7",info:"info___aRH6C"},qt=ee(9430),Gt=ee(28452),xt=ee(3407),Ve=ee(18699),Qt=ee(94189),Ln=ee(28706),Hn=ee(27484),mn=ee.n(Hn);const{Column:zt}=qt.default;var et=({submitResult:Ie,submitting:ze,submitRecords:Ke,page:Jn,onPageChange:bn,topicId:Dn})=>{const Vt=(0,_e.useIntl)(),{status:nn,id:kt,input:Nn,output:eo,expected_output:lo,is_file:kr,input_file_url:oo,output_file_url:Ir,expected_output_file_url:Zo,error_msg:Wr}=Ie||{},{records:ra,records_count:Kr}=Ke||{},Oa=(0,_e.useParams)();function ua(){kr?(0,Ln.vQ)(Be.Base64.decode(Wr)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,Ln.vQ)(Be.Base64.decode(eo)).then(()=>{pe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return te.createElement(me.Z,{spinning:ze,tip:Vt.formatMessage({id:"competitions.inEvaluation",defaultMessage:"\u8BC4\u6D4B\u4E2D"})+"...",indicator:te.createElement(xt.Z,{style:{fontSize:24},spin:!0})},kt?te.createElement(te.Fragment,null,te.createElement("ul",{className:Ct.info},te.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",te.createElement("span",{className:nn===Qt.h.OK?"c-green":"c-red"},ke.Im[nn])),te.createElement("li",{className:Ct.error},te.createElement("a",{onClick:ua},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",te.createElement(Ve.Z,null)," ")),te.createElement("li",null,te.createElement(_e.Link,{to:`/problems/${Dn}/record-detail/${kt}?backId=${Oa==null?void 0:Oa.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),nn!==Qt.h.OK?te.createElement(te.Fragment,null,te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),te.createElement("pre",null,!kr&&Nn,kr&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Ln.LR)(oo,Nn)},Nn)),te.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),te.createElement("pre",null,(nn===4||nn===5)&&Be.Base64.decode(Wr),nn!=4&&nn!=5&&(kr?te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Ln.LR)(Ir,eo)},eo):Be.Base64.decode(eo))),te.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),te.createElement("pre",null,!kr&&Be.Base64.decode(lo),kr&&te.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,Ln.LR)(Zo,lo)},lo))):null):null,(ra==null?void 0:ra.length)>0?te.createElement(qt.default,{dataSource:ra,rowKey:"id",pagination:!1},te.createElement(zt,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(ho,oa)=>te.createElement("span",null," ",mn()(ho).format("YYYY-MM-DD HH:mm:ss"))}),te.createElement(zt,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(ho,oa)=>{var Yn;return te.createElement(_e.Link,{className:ho===0?"c-green":"c-red",to:`/problems/${Dn}/record-detail/${oa.id}?backId=${Oa==null?void 0:Oa.save_identifier}`},(Yn=ke.Im[ho])==null?void 0:Yn.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),te.createElement(zt,{title:`${Vt.formatMessage({id:"classrooms.executionTime",defaultMessage:"\u6267\u884C\u7528\u65F6"})} (S)`,dataIndex:"execute_time",key:"execute_time"}),te.createElement(zt,{title:`${Vt.formatMessage({id:"classrooms.memoryConsumption",defaultMessage:"\u5185\u5B58\u6D88\u8017"})}\uFF08MB\uFF09`,dataIndex:"execute_memory",key:"execute_memory"}),te.createElement(zt,{title:Vt.formatMessage({id:"classrooms.language",defaultMessage:"\u8BED\u8A00"}),dataIndex:"language",key:"language"})):null,Kr>15?te.createElement(Gt.Z,{className:Ct.pagination,current:Jn,pageSize:15,total:Kr,onChange:bn}):null)},Xe=ee(26194),qe=ee(66309),ft=ee(93421),Dt={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},tt=ee(85725),vt=ee(67294),bt=({hack:Ie,onTriggerPraise:ze,toDiscuss:Ke})=>{const Jn=(0,_e.useIntl)(),{language:bn,difficulty:Dn,time_limit:Vt,username:nn,user_path:kt,user_praise:Nn,comments_count:eo,praises_count:lo,description:kr,pass_count:oo,submit_count:Ir}=Ie,Zo=(0,_e.useLocation)();console.log(Ie.language,"language");const ra={1:{name:Jn.formatMessage({id:"shixuns.easy",defaultMessage:"\u7B80\u5355"}),color:"#52c41a"},2:{name:Jn.formatMessage({id:"shixuns.medium",defaultMessage:"\u9002\u4E2D"}),color:"#faad14"},3:{name:Jn.formatMessage({id:"shixuns.difficult",defaultMessage:"\u56F0\u96BE"}),color:"#f5222d"}}[Dn];return vt.createElement(vt.Fragment,null,vt.createElement("ul",{className:Dt.info},vt.createElement("li",null,Jn.formatMessage({id:"questionBankList.difficulty",defaultMessage:"\u96BE\u5EA6"}),"\uFF1A",vt.createElement(qe.default,{color:ra==null?void 0:ra.color},ra==null?void 0:ra.name)),vt.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",vt.createElement("b",null,Vt,"\u79D2"))),vt.createElement(tt.Z,{value:kr,className:Dt.desc}),vt.createElement("ul",{className:Dt["commit-info"]},vt.createElement("li",null,vt.createElement(ft.Z,{size:4},vt.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",vt.createElement("b",null,oo))),vt.createElement("li",null,vt.createElement(ft.Z,{size:4},vt.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",vt.createElement("b",null,Ir))," "),vt.createElement("li",{style:{flex:"1 0 0"}}),vt.createElement("li",null,vt.createElement(ft.Z,{size:4},vt.createElement("i",{className:"iconfont icon-huifu1",onClick:Ke})," ",vt.createElement("b",null,eo))," ")))},Qe=ee(33054),Wt=Object.defineProperty,He=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,En=Object.prototype.propertyIsEnumerable,un=(Ie,ze,Ke)=>ze in Ie?Wt(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,ht=(Ie,ze)=>{for(var Ke in ze||(ze={}))ut.call(ze,Ke)&&un(Ie,Ke,ze[Ke]);if(He)for(var Ke of He(ze))En.call(ze,Ke)&&un(Ie,Ke,ze[Ke]);return Ie};const sn=Ie=>React.createElement("svg",ht({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Ie),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 ln="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",fn=ee(33170);function nr(Ie){return(0,fn.U2)("comments.json",Ie)}function wt(Ie){return(0,fn.v_)(`/discusses/${Ie}/plus.json`,{container_type:"Discuss",type:1})}function xn(Ie){return(0,fn.v_)("comments/reply.json",Ie)}function zn(Ie){return(0,fn.v_)("comments.json",Ie)}function Gr(Ie){return(0,fn.v_)(`comments/${Ie==null?void 0:Ie.id}/hidden.json`,Ie)}function vr(Ie){return(0,fn.IV)(`comments/${Ie==null?void 0:Ie.id}.json`)}var cr=ee(93989),wn=ee(52262);function jr({author:Ie}){const ze=(0,_e.useIntl)();return te.createElement("a",{href:`/users/${Ie.login}`,target:"_blank"},te.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${he.Z.IMG_SERVER}/images/${Ie.image_url}`,width:"50"}))}function Hr({data:Ie,index:ze,parentDiscussIndex:Ke,user:Jn,onSetActionType:bn}){const Dn=(0,_e.useIntl)(),{author:Vt,can_delete:nn,content:kt,id:Nn,time:eo}=Ie;function lo(){bn({id:Nn,index:ze,type:"delete-discuss",parentDiscussIndex:Ke,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const kr=Jn.admin||nn||Vt.user_id===Jn.user_id;return te.createElement("div",{className:"discuss-item-container second-discuss "},te.createElement(jr,{author:Vt}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${Vt.login}`,target:"_blank"},Vt.name),te.createElement("span",{className:"grey"},eo),te.createElement("div",{className:"btn-group",style:{marginBottom:0}},kr?te.createElement("a",{onClick:lo,title:Dn.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"})},te.createElement("i",{className:"iconfont icon-shanchu"})):null)),te.createElement(tt.Z,{className:"discuss-content",value:kt})))}var mo=({user:Ie,data:ze,index:Ke,onPlusDiscuss:Jn,onSetActionType:bn,activeDiscussIndex:Dn,onReplyDiscuss:Vt,onSetActiveDiscussIndex:nn})=>{const{content:kt,children:Nn,hidden:eo,id:lo,praise_count:kr,time:oo,user_praise:Ir,can_delete:Zo,author:Wr}=ze;console.log(Zo&&(!Nn||Nn.length==0),"children22");function ra(){nn(lo)}function Kr(){Jn(lo,!Ir,Ke)}function Oa(){bn({id:lo,index:Ke,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function ua(){bn({id:lo,index:Ke,params:{hidden:eo?"0":"1"},type:"hidden-discuss",message:eo?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const ho=Ie.admin||Ie.user_id===Wr.user_id;return te.createElement("div",{className:"discuss-item-container",key:lo},te.createElement(jr,{author:Wr}),te.createElement("section",null,te.createElement("div",{className:"discuss-info"},te.createElement("a",{href:`/users/${Wr.login}`,target:"_blank"}," ",Wr.name," "),te.createElement("span",{className:"grey"},oo)),te.createElement(tt.Z,{className:"discuss-content",value:kt}),Nn&&Nn.length>0?te.createElement("div",{className:"reply-discuss-container"},Nn.map((oa,Yn)=>te.createElement(Hr,{key:oa.id,data:oa,index:Yn,user:Ie,onSetActionType:bn,parentDiscussIndex:Ke}))):null,te.createElement("div",{className:"btn-group"},(0,wn.Ny)()?te.createElement("a",{onClick:ua,title:eo?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},te.createElement("i",{className:eo?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Zo&&(!Nn||Nn.length==0)?te.createElement("a",{onClick:Oa,title:intl.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"})},te.createElement("i",{className:"iconfont icon-shanchu"})):null,te.createElement("a",{onClick:ra,title:"\u56DE\u590D"}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," "),te.createElement("a",{onClick:Kr,className:Ir?"c-orange":""},te.createElement("i",{className:Ir?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),te.createElement("span",null,kr||""))),te.createElement(cr.Z,{id:lo,activeDiscussIndex:Dn,onReplyDiscuss:Vt})))},da=ee(71865),Ro=ee(35567),Jo=(Ie,ze,Ke)=>new Promise((Jn,bn)=>{var Dn=kt=>{try{nn(Ke.next(kt))}catch(Nn){bn(Nn)}},Vt=kt=>{try{nn(Ke.throw(kt))}catch(Nn){bn(Nn)}},nn=kt=>kt.done?Jn(kt.value):Promise.resolve(kt.value).then(Dn,Vt);nn((Ke=Ke.apply(Ie,ze)).next())}),qo=({user_praise:Ie,praise_count:ze,praisePlus:Ke,onCreateDiscuss:Jn,discuss_count:bn})=>{const Dn=(0,_e.useIntl)(),[Vt,nn]=(0,te.useState)(!1),[kt,Nn]=(0,te.useState)("");function eo(Ir){Nn(Ir)}function lo(){nn(!0)}function kr(){nn(!1)}function oo(){return Jo(this,null,function*(){Jn(kt),Nn(""),nn(!1)})}return te.createElement("div",{className:`dis-input-editor-container ${Vt?"active":""} `},te.createElement("div",{className:Vt?"text-area hide":"text-area"},te.createElement("input",{placeholder:Dn.formatMessage({id:"shixuns.saySomething",defaultMessage:"\u8BF4\u70B9\u4EC0\u4E48"}),onClick:lo}),te.createElement("a",{style:{alignItems:"center"}}," ",te.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",bn," "),te.createElement("a",{className:"c-light-black",onClick:Ke,style:{alignItems:"center"},title:Ie?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},te.createElement("i",{className:`mr3 ${Ie?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),ze?te.createElement("span",null,ze):"")),Vt?te.createElement("div",{className:"input-mask",onClick:kr}):null,te.createElement("div",{className:Vt?"md-container":"md-container hide"},te.createElement(Ro.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:kt,height:240,onChange:eo}),te.createElement("div",{className:"tip-container",onClick:kr},te.createElement("a",{className:"btn-send",onClick:oo}," ",Dn.formatMessage({id:"shixuns.send",defaultMessage:"\u53D1\u9001"})))))},ur=Object.defineProperty,$r=Object.defineProperties,zr=Object.getOwnPropertyDescriptors,To=Object.getOwnPropertySymbols,Fo=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,Lr=(Ie,ze,Ke)=>ze in Ie?ur(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,vo=(Ie,ze)=>{for(var Ke in ze||(ze={}))Fo.call(ze,Ke)&&Lr(Ie,Ke,ze[Ke]);if(To)for(var Ke of To(ze))po.call(ze,Ke)&&Lr(Ie,Ke,ze[Ke]);return Ie},hn=(Ie,ze)=>$r(Ie,zr(ze)),se=(Ie,ze,Ke)=>new Promise((Jn,bn)=>{var Dn=kt=>{try{nn(Ke.next(kt))}catch(Nn){bn(Nn)}},Vt=kt=>{try{nn(Ke.throw(kt))}catch(Nn){bn(Nn)}},nn=kt=>kt.done?Jn(kt.value):Promise.resolve(kt.value).then(Dn,Vt);nn((Ke=Ke.apply(Ie,ze)).next())});const ye={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var Pe=(Ie=>(Ie[Ie.GET_DISCUSSES=0]="GET_DISCUSSES",Ie[Ie.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Ie[Ie.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Ie[Ie.PLUS_DISCUSS=3]="PLUS_DISCUSS",Ie[Ie.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Ie[Ie.SET_PAGE=5]="SET_PAGE",Ie[Ie.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Ie))(Pe||{});function Ae(Ie,ze){switch(ze.type){case 6:return hn(vo({},Ie),{loading:!0});case 0:return vo(vo({},Ie),ze.payload);case 1:return vo(vo({},Ie),ze.payload);case 4:return vo(vo({},Ie),ze.payload);case 3:return vo(vo({},Ie),ze.payload);case 5:return vo(vo({},Ie),ze.payload);case 2:return vo(vo({},Ie),ze.payload);default:throw new Error}}var Oe=({user:Ie,identifier:ze,hack:Ke,onTriggerPraise:Jn,setDiscussTotal:bn})=>{const Dn=(0,_e.useIntl)(),[Vt,nn]=(0,te.useReducer)(Ae,ye),{loading:kt,page:Nn,data:eo,count:lo,actionType:kr,activeDiscussIndex:oo}=Vt;console.log("---",Vt);const Ir=(0,te.useCallback)(()=>se(void 0,null,function*(){nn({type:6});const Yn=yield nr({container_type:"Practice",container_identifier:ze,limit:10,page:Nn}),{comments:_a,disscuss_count:zo}=Yn;nn({type:0,payload:{data:_a,count:zo,loading:!1}}),bn(zo)}),[Nn,ze]);(0,te.useEffect)(()=>{Ir()},[ze,Nn]);function Zo(Yn){nn({type:5,payload:{page:Yn}})}function Wr(Yn){nn({type:4,payload:{actionType:Yn}})}function ra(Yn){nn(oo===Yn?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Yn}})}function Kr(Yn,_a,zo){return se(this,null,function*(){try{const ka=yield wt(Yn);eo[zo].user_praise=_a,eo[zo].praise_count=ka.praise_count,nn({type:3,payload:{data:[...eo]}})}catch(ka){console.log(ka)}})}function Oa(){return se(this,null,function*(){const{id:Yn,params:_a,type:zo,index:ka,parentDiscussIndex:yi}=kr;zo==="hidden-discuss"&&(console.log(_a,"params"),yield Gr(vo({id:Yn,container_type:"Practice",container_identifier:ze},_a)),yi?eo[yi].children[ka].hidden=_a.hidden==1:eo[ka].hidden=_a.hidden==1,nn({type:4,payload:{actionType:null,data:[...eo]}})),zo==="delete-discuss"&&(yield vr({id:Yn,container_type:"Practice",container_identifier:ze}),nn({type:4,payload:{actionType:null}}),yield Ir())})}function ua(){nn({type:4,payload:{actionType:null}})}function ho(Yn,_a){return se(this,null,function*(){try{yield xn({container_type:"Practice",container_identifier:ze,comments:{content:_a,parent_id:Yn}}),Ir()}catch(zo){console.log(zo)}})}function oa(Yn){return se(this,null,function*(){nn({type:6}),yield zn({comments:{content:Yn},container_type:"Practice",container_identifier:ze}),Ir()})}return te.createElement(te.Fragment,null,te.createElement("div",{className:"discuss-panel"},eo.length===0?te.createElement(Xe.Z,null):te.createElement(me.Z,{spinning:kt},eo.map((Yn,_a)=>te.createElement(mo,{onReplyDiscuss:ho,onPlusDiscuss:Kr,onSetActiveDiscussIndex:ra,onSetActionType:Wr,data:Yn,index:_a,user:Ie,activeDiscussIndex:oo}))),lo>10?te.createElement("div",{className:"pagination-container mt10 mb10"},te.createElement(Gt.Z,{showQuickJumper:!0,onChange:Zo,current:Nn,total:lo,showTotal:Yn=>te.createElement("span",{style:{color:"#656F87"}},Dn.formatMessage({id:"common.total",defaultMessage:"\u5171"}),te.createElement("span",{className:"c-light-primary"},Yn),Dn.formatMessage({id:"problemset.pieceOfData",defaultMessage:"\u6761\u6570\u636E"}))})):null),te.createElement(qo,{user_praise:Ke.user_praise,praise_count:Ke.praises_count,praisePlus:Jn,discuss_count:Ke.comments_count,onCreateDiscuss:oa}),te.createElement(a.Z,null,te.createElement(ae.default,{centered:!0,title:Dn.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),open:!!kr,onOk:Oa,onCancel:ua},te.createElement("p",null,kr?kr.message:"")),te.createElement(da.Z,null)))},Je={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"},pt={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"},gn=Object.defineProperty,$t=Object.getOwnPropertySymbols,Bn=Object.prototype.hasOwnProperty,hr=Object.prototype.propertyIsEnumerable,gr=(Ie,ze,Ke)=>ze in Ie?gn(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,Nt=(Ie,ze)=>{for(var Ke in ze||(ze={}))Bn.call(ze,Ke)&&gr(Ie,Ke,ze[Ke]);if($t)for(var Ke of $t(ze))hr.call(ze,Ke)&&gr(Ie,Ke,ze[Ke]);return Ie};const Wn=Ie=>React.createElement("svg",Nt({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Ie),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 qn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Sn=Object.defineProperty,Mn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Pr=Object.prototype.propertyIsEnumerable,ar=(Ie,ze,Ke)=>ze in Ie?Sn(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,ga=(Ie,ze)=>{for(var Ke in ze||(ze={}))Xn.call(ze,Ke)&&ar(Ie,Ke,ze[Ke]);if(Mn)for(var Ke of Mn(ze))Pr.call(ze,Ke)&&ar(Ie,Ke,ze[Ke]);return Ie};const bo=Ie=>React.createElement("svg",ga({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ie),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 fr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Qr=Object.defineProperty,ko=Object.getOwnPropertySymbols,Go=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,sa=(Ie,ze,Ke)=>ze in Ie?Qr(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,Za=(Ie,ze)=>{for(var Ke in ze||(ze={}))Go.call(ze,Ke)&&sa(Ie,Ke,ze[Ke]);if(ko)for(var Ke of ko(ze))on.call(ze,Ke)&&sa(Ie,Ke,ze[Ke]);return Ie};const Pa=Ie=>React.createElement("svg",Za({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ie),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 so="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",ni=Object.defineProperty,Pn=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,er=(Ie,ze,Ke)=>ze in Ie?ni(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,$o=(Ie,ze)=>{for(var Ke in ze||(ze={}))mr.call(ze,Ke)&&er(Ie,Ke,ze[Ke]);if(Pn)for(var Ke of Pn(ze))tr.call(ze,Ke)&&er(Ie,Ke,ze[Ke]);return Ie};const ha=Ie=>React.createElement("svg",$o({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ie),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 ba="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",Ha=Object.defineProperty,ri=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Tt=(Ie,ze,Ke)=>ze in Ie?Ha(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,Yt=(Ie,ze)=>{for(var Ke in ze||(ze={}))gt.call(ze,Ke)&&Tt(Ie,Ke,ze[Ke]);if(ri)for(var Ke of ri(ze))dt.call(ze,Ke)&&Tt(Ie,Ke,ze[Ke]);return Ie};const yn=Ie=>React.createElement("svg",Yt({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Ie),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 ir="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",Tr=({style:Ie={},onClick:ze,onAssist:Ke,onHide:Jn,data:bn,active:Dn,showLine:Vt})=>te.createElement(te.Fragment,null,te.createElement("div",{className:Dn===(bn==null?void 0:bn.id)?`${pt.list} ${pt.active}`:pt.list,style:Ie,onClick:()=>ze(bn)},(bn==null?void 0:bn.video)&&te.createElement("div",{className:pt.left},te.createElement("img",{src:bn==null?void 0:bn.video_cover}),te.createElement("div",null,te.createElement("img",{src:qn}),te.createElement("span",null,bn==null?void 0:bn.video_duration)),te.createElement("div",{className:pt.mask})),te.createElement("div",{className:pt.right},te.createElement("div",{className:pt.name},te.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(bn==null?void 0:bn.image_url),width:30,height:30}),te.createElement("div",{title:bn==null?void 0:bn.name,className:pt.title},bn==null?void 0:bn.name),(bn==null?void 0:bn.is_authority)&&te.createElement("div",{className:pt.b},"\u5B98\u65B9"),(bn==null?void 0:bn.is_excellent)&&te.createElement("div",{className:pt.a},"\u7CBE\u9009")),te.createElement("div",{className:pt.des},te.createElement(tt.Z,{showLines:2,showTextOnly:!0,value:(bn==null?void 0:bn.content)||"\u6682\u65E0\u5185\u5BB9"})),te.createElement("div",{className:pt.tag},te.createElement("span",{className:"current",onClick:nn=>{nn.stopPropagation(),Ke(bn)}},te.createElement("img",{src:bn!=null&&bn.user_liker?so:fr}),te.createElement("span",{style:{color:bn!=null&&bn.user_liker?"#0152d9":"#656f87"}},bn==null?void 0:bn.praises_count)),te.createElement("span",null,te.createElement("img",{src:ba}),te.createElement("span",null,bn==null?void 0:bn.discusses_count)),te.createElement("span",null,te.createElement("img",{src:ir}),te.createElement("span",null,bn==null?void 0:bn.viewed_count)),(0,wn.Ny)()&&te.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:nn=>{nn.stopPropagation(),Jn(bn)}},bn!=null&&bn.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),Vt&&te.createElement("div",{className:pt.line})),_r={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"},yo=ee(83062),Do=Object.defineProperty,Bo=Object.getOwnPropertySymbols,fa=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,_t=(Ie,ze,Ke)=>ze in Ie?Do(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,jt=(Ie,ze)=>{for(var Ke in ze||(ze={}))fa.call(ze,Ke)&&_t(Ie,Ke,ze[Ke]);if(Bo)for(var Ke of Bo(ze))yt.call(ze,Ke)&&_t(Ie,Ke,ze[Ke]);return Ie};const Ue=Ie=>React.createElement("svg",jt({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Ie),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 Ut="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Xt=Object.defineProperty,pn=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Ot=(Ie,ze,Ke)=>ze in Ie?Xt(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,vn=(Ie,ze)=>{for(var Ke in ze||(ze={}))Lt.call(ze,Ke)&&Ot(Ie,Ke,ze[Ke]);if(pn)for(var Ke of pn(ze))Ft.call(ze,Ke)&&Ot(Ie,Ke,ze[Ke]);return Ie};const Fn=Ie=>React.createElement("svg",vn({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Ie),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 Kn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",kn=Object.defineProperty,Qn=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,Bt=(Ie,ze,Ke)=>ze in Ie?kn(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,Kt=(Ie,ze)=>{for(var Ke in ze||(ze={}))sr.call(ze,Ke)&&Bt(Ie,Ke,ze[Ke]);if(Qn)for(var Ke of Qn(ze))xr.call(ze,Ke)&&Bt(Ie,Ke,ze[Ke]);return Ie};const rn=Ie=>React.createElement("svg",Kt({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Ie),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 an="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",Vn=ee(95235),lr=Object.defineProperty,$e=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Ht=(Ie,ze,Ke)=>ze in Ie?lr(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,dn=(Ie,ze)=>{for(var Ke in ze||(ze={}))St.call(ze,Ke)&&Ht(Ie,Ke,ze[Ke]);if(nt)for(var Ke of nt(ze))Mt.call(ze,Ke)&&Ht(Ie,Ke,ze[Ke]);return Ie},_n=(Ie,ze)=>$e(Ie,Fe(ze)),An=(Ie,ze,Ke)=>new Promise((Jn,bn)=>{var Dn=kt=>{try{nn(Ke.next(kt))}catch(Nn){bn(Nn)}},Vt=kt=>{try{nn(Ke.throw(kt))}catch(Nn){bn(Nn)}},nn=kt=>kt.done?Jn(kt.value):Promise.resolve(kt.value).then(Dn,Vt);nn((Ke=Ke.apply(Ie,ze)).next())}),Tn=({onClose:Ie,onOk:ze,identifier:Ke,active:Jn})=>{var bn;const Dn=(0,_e.useIntl)(),[Vt]=Et.default.useForm(),[nn,kt]=(0,te.useState)({}),[Nn,eo]=(0,te.useState)(!1),[lo,kr]=(0,te.useState)(!1),[oo,Ir]=(0,te.useState)([]),Zo=(0,wn.eY)(),Wr=(0,_e.useParams)(),ra=(0,te.useRef)();(0,te.useEffect)(()=>{Jn&&Kr()},[Jn]);const Kr=()=>An(void 0,null,function*(){var Ar,Vr,ao,ci,Qo,Cs,hs,ts,ws,Hi;const fi=yield(0,ge.M3)(Ke,{active:Jn});if((fi==null?void 0:fi.status)===0){const co={name:(Ar=fi==null?void 0:fi.data)==null?void 0:Ar.name,content:(Vr=fi==null?void 0:fi.data)==null?void 0:Vr.content};Vt.setFieldsValue(co),kt(co),(ci=(ao=fi==null?void 0:fi.data)==null?void 0:ao.videos)!=null&&ci[0]&&Ir([{video_id:(hs=(Cs=(Qo=fi==null?void 0:fi.data)==null?void 0:Qo.videos)==null?void 0:Cs[0])==null?void 0:hs.video_id,name:(Hi=(ws=(ts=fi==null?void 0:fi.data)==null?void 0:ts.videos)==null?void 0:ws[0])==null?void 0:Hi.title,loaded:100}])}}),Oa=(Ar,Vr)=>{kt(dn({},Vr))},ua=Ar=>An(void 0,null,function*(){const Vr={videos:oo,articles:Ar};kr(!0);let ao;Jn?(Vr.active=Jn,ao=yield(0,ge.gu)(Ke,Vr)):ao=yield(0,ge.bx)(Ke,Vr),(ao==null?void 0:ao.status)===0&&(console.log(Jn||(ao==null?void 0:ao.id),44),ze(Jn||(ao==null?void 0:ao.id))),kr(!1)}),ho=(Ar,Vr)=>{ae.default.confirm({title:Dn.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),centered:!0,okText:Dn.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Dn.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),content:te.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Vr?Dn.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"}):Dn.formatMessage({id:"classroomUploadVideoResourcesCheckIn.cancelUpload",defaultMessage:"\u53D6\u6D88\u4E0A\u4F20"}),"\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Vr?Ir([]):(ra.current.cancel(),Ir([]))}})},oa=()=>te.createElement(Vn.Z,_n(dn({},Sr),{ref:ra}),te.createElement("div",{className:_r.main},te.createElement("img",{src:Ut,alt:""}),te.createElement("span",null,Dn.formatMessage({id:"classrooms.uploadVideo",defaultMessage:"\u4E0A\u4F20\u89C6\u9891"})))),Yn=Ar=>te.createElement("div",{className:_r.mainLoading},te.createElement("div",{className:_r.proWarp},te.createElement("div",{className:_r.pro},te.createElement("div",{style:{width:Ar}})),te.createElement("span",null,Ar||0,"%")),te.createElement("aside",null,Dn.formatMessage({id:"shixuns.uploading",defaultMessage:"\u4E0A\u4F20\u4E2D"})),te.createElement("div",{className:_r.tip},te.createElement(yo.Z,{getPopupContainer:Vr=>Vr.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001",Dn.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadVideoAgreement",defaultMessage:"\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F"}),te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},Dn.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadContentAgreement",defaultMessage:"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"})),"\uFF0C",Dn.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadVideoAgreement",defaultMessage:"\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"}),"\uFF1B"),te.createElement("div",null,Dn.formatMessage({id:"paths.fileSizeLimit",defaultMessage:"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7"}),"1G\uFF1B"),te.createElement("div",null,Dn.formatMessage({id:"paths.supportedFileFormats",defaultMessage:"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"})))},te.createElement("img",{src:an,alt:""})))),_a=Ar=>te.createElement("div",{className:_r.mainSucceed},te.createElement("img",{src:Kn,alt:""}),te.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),te.createElement("div",{className:_r.tip},te.createElement(yo.Z,{getPopupContainer:Vr=>Vr.parentNode,title:te.createElement("div",null,te.createElement("div",null,"1\u3001",Dn.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadVideoAgreement",defaultMessage:"\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F"}),te.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},Dn.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadContentAgreement",defaultMessage:"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"})),"\uFF0C",Dn.formatMessage({id:"classroomUploadVideoResourcesCheckIn.uploadVideoAgreement",defaultMessage:"\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1"}),"\uFF1B"),te.createElement("div",null,Dn.formatMessage({id:"paths.fileSizeLimit",defaultMessage:"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7"}),"1G\uFF1B"),te.createElement("div",null,Dn.formatMessage({id:"paths.supportedFileFormats",defaultMessage:"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"})))},te.createElement("img",{src:an,alt:""}))),te.createElement("div",{className:_r.del,onClick:()=>ho(Ar.name,Ar.loaded==100)},te.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),zo=()=>te.createElement(te.Fragment,null,oo==null?void 0:oo.map((Ar,Vr)=>te.createElement(te.Fragment,{key:Vr},Ar.loaded==100?_a(Ar):Yn(Ar.loaded)))),ka=()=>{ae.default.confirm({centered:!0,width:500,okText:Dn.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Dn.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:Dn.formatMessage({id:"classrooms.note1",defaultMessage:"\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:Ie})},Sr={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:Ar=>{const ao=Ar.name.toLowerCase();return ao&&ao.indexOf(".avi")==-1&&ao.indexOf(".flv")==-1&&ao.indexOf(".f4v")==-1&&ao.indexOf(".m4v")==-1&&ao.indexOf(".mov")==-1&&ao.indexOf(".mp4")==-1&&ao.indexOf(".rmvb")==-1&&ao.indexOf(".swf")==-1&&ao.indexOf(".webm")==-1&&ao.indexOf(".wmv")==-1?(pe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):Ar.size>1024*1024*1024?(pe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):oo!=null&&oo.find(ci=>ci.name===Ar.name)?(pe.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),!0):!1},onBeginInitFile:Ar=>{Ir([{name:Ar.filename,loaded:0}])},onComplete:Ar=>{Ir([{name:Ar.filename,loaded:Ar.percent,video_id:Ar.id}])},onError:()=>{Ir([])},onProgress:Ar=>{Ir([{name:Ar.filename,loaded:Ar.percent}])},chunkSize:1024*1024*2,options:{user_id:(bn=Zo==null?void 0:Zo.userInfo)==null?void 0:bn.user_id}},wa=oo==null?void 0:oo.length;return te.createElement("div",{className:_r.listForm},te.createElement("header",null,Jn?Dn.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"}):"\u53D1\u5E03","\u9898\u89E3"),te.createElement("section",{className:_r.scroll,id:"sss"},te.createElement("div",{className:_r.formWrap}," ",te.createElement(Et.default,{form:Vt,scrollToFirstError:!0,layout:"vertical",onValuesChange:Oa,onFinish:ua},te.createElement(Et.default.Item,{name:"name",label:Dn.formatMessage({id:"classroomUploadVideoResourcesCheckIn.title",defaultMessage:"\u6807\u9898"})+":",rules:[{required:!0,message:Dn.formatMessage({id:"paths.enterName",defaultMessage:"\u8BF7\u8F93\u5165\u540D\u79F0"})},{whitespace:!0,message:Dn.formatMessage({id:"paths.noSpaces",defaultMessage:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"})}]},te.createElement(Ge.default,{bordered:!1,placeholder:Dn.formatMessage({id:"paths.enterName",defaultMessage:"\u8BF7\u8F93\u5165\u540D\u79F0"})})),te.createElement(Et.default.Item,{name:"content",label:"\u5185\u5BB9:"},te.createElement(Ro.Z,{defaultValue:nn.content||"",watch:!0})))),te.createElement("div",{className:_r.upload},wa?zo():oa())),te.createElement("div",{className:_r.btns},te.createElement(It.ZP,{onClick:ka,type:"primary",ghost:!0},Dn.formatMessage({id:"user.disable",defaultMessage:"\u5173\u95ED"})),te.createElement(It.ZP,{loading:lo,disabled:Nn,onClick:()=>Vt.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},In={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"},Gn=ee(46303),Br=Object.defineProperty,qr=Object.getOwnPropertySymbols,Eo=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable,to=(Ie,ze,Ke)=>ze in Ie?Br(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,Jr=(Ie,ze)=>{for(var Ke in ze||(ze={}))Eo.call(ze,Ke)&&to(Ie,Ke,ze[Ke]);if(qr)for(var Ke of qr(ze))Yr.call(ze,Ke)&&to(Ie,Ke,ze[Ke]);return Ie};const Ko=Ie=>React.createElement("svg",Jr({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Ie),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 Mr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",no=Object.defineProperty,Lo=Object.getOwnPropertySymbols,la=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,na=(Ie,ze,Ke)=>ze in Ie?no(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,jo=(Ie,ze)=>{for(var Ke in ze||(ze={}))la.call(ze,Ke)&&na(Ie,Ke,ze[Ke]);if(Lo)for(var Ke of Lo(ze))So.call(ze,Ke)&&na(Ie,Ke,ze[Ke]);return Ie};const Ga=Ie=>React.createElement("svg",jo({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Ie),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 Ea="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",ma=Object.defineProperty,_o=Object.getOwnPropertySymbols,wo=Object.prototype.hasOwnProperty,Vo=Object.prototype.propertyIsEnumerable,pa=(Ie,ze,Ke)=>ze in Ie?ma(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,Da=(Ie,ze)=>{for(var Ke in ze||(ze={}))wo.call(ze,Ke)&&pa(Ie,Ke,ze[Ke]);if(_o)for(var Ke of _o(ze))Vo.call(ze,Ke)&&pa(Ie,Ke,ze[Ke]);return Ie};const Io=Ie=>React.createElement("svg",Da({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Ie),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 xa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Ma={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"},$a=ee(71230),Ra=ee(15746),Oo={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"},Wa=(Ie,ze,Ke)=>new Promise((Jn,bn)=>{var Dn=kt=>{try{nn(Ke.next(kt))}catch(Nn){bn(Nn)}},Vt=kt=>{try{nn(Ke.throw(kt))}catch(Nn){bn(Nn)}},nn=kt=>kt.done?Jn(kt.value):Promise.resolve(kt.value).then(Dn,Vt);nn((Ke=Ke.apply(Ie,ze)).next())});const ea=({id:Ie,cb:ze})=>{const[Ke,Jn]=(0,te.useState)(""),bn=(0,_e.useIntl)();return te.createElement("aside",{className:"mt10"},te.createElement(Ro.Z,{defaultValue:Ke,id:"writeForumsReviewId",onChange:Dn=>{Jn(Dn)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement($a.Z,null,te.createElement(Ra.Z,{flex:"1"}),te.createElement(Ra.Z,null,te.createElement(It.ZP,{type:"primary",size:"middle",onClick:()=>Wa(void 0,null,function*(){Ke===""?pe.ZP.error(bn.formatMessage({id:"classrooms.enterContent",defaultMessage:"\u8BF7\u8F93\u5165\u5185\u5BB9"})):ze(Ie,Ke)})},bn.formatMessage({id:"shixuns.send",defaultMessage:"\u53D1\u9001"})))))},Ca=({data:Ie})=>{var ze;return te.createElement("div",{className:Oo.thirdlyLevelDiscuss},te.createElement("span",{className:"c-grey-333"},te.createElement("span",{className:"font 14 c-light-primary"},(ze=Ie==null?void 0:Ie.author)==null?void 0:ze.name),"@",te.createElement("span",{className:"font 14 c-light-primary"},Ie==null?void 0:Ie.parent_name),":"),te.createElement(tt.Z,{value:Ie==null?void 0:Ie.content}))},ii=({data:Ie,onReplyDiscuss:ze,thirdlyReply:Ke,setThirdlyReply:Jn})=>{var bn,Dn,Vt,nn;const kt=(0,wn.eY)();return console.log(kt,"user"),te.createElement("div",{className:Oo.list},te.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((bn=Ie==null?void 0:Ie.author)==null?void 0:bn.image_url)}),te.createElement("div",{className:Oo.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333"},(Dn=Ie==null?void 0:Ie.author)==null?void 0:Dn.name),(kt==null?void 0:kt.login)!==((Vt=Ie==null?void 0:Ie.author)==null?void 0:Vt.login)&&te.createElement("span",{onClick:()=>Jn(Ie==null?void 0:Ie.id),className:"c-grey-999 current",style:{float:"right"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),te.createElement("span",null,"\u56DE\u590D"))),te.createElement(tt.Z,{value:Ie==null?void 0:Ie.content}),(nn=Ie==null?void 0:Ie.children)==null?void 0:nn.map(Nn=>te.createElement(Ca,{key:Nn.id,data:Nn})),Ke===(Ie==null?void 0:Ie.id)&&te.createElement("div",null,te.createElement(ea,{id:Ie==null?void 0:Ie.id,cb:ze}),te.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>Jn(null),className:"c-light-primary current"},te.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),te.createElement("div",{className:Oo.line})))};var Sa=({data:Ie,onReplyDiscuss:ze,secondReply:Ke,setSecondReply:Jn,thirdlyReply:bn,setThirdlyReply:Dn,onPlusDiscuss:Vt})=>{var nn,kt,Nn,eo;const[lo,kr]=(0,te.useState)(!1);return console.log(Ie,"data"),te.createElement("div",{className:Oo.discussItem},te.createElement("div",{className:Oo.list},te.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((nn=Ie==null?void 0:Ie.author)==null?void 0:nn.image_url)}),te.createElement("div",{className:Oo.wrap},te.createElement("div",{className:"font14",style:{marginBottom:6}},te.createElement("span",{className:"c-grey-333 mr30"},(kt=Ie==null?void 0:Ie.author)==null?void 0:kt.name),te.createElement("span",{className:"c-grey-999"},Ie==null?void 0:Ie.time)),te.createElement(tt.Z,{value:Ie==null?void 0:Ie.content}),te.createElement("div",{className:Oo.btns},te.createElement("div",{onClick:()=>Vt(Ie==null?void 0:Ie.id),className:Ie!=null&&Ie.user_praise?"c-light-primary":"c-grey-999"},te.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),te.createElement("span",null,Ie==null?void 0:Ie.praise_count)),te.createElement("div",{onClick:()=>{var oo;((oo=Ie==null?void 0:Ie.children)==null?void 0:oo.length)!==0&&(Jn(null),kr(!lo))},style:{color:lo?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),te.createElement("span",null,lo?"\u6536\u8D77\u8BC4\u8BBA":(Nn=Ie==null?void 0:Ie.children)==null?void 0:Nn.length)),te.createElement("div",{onClick:()=>{kr(!1),Jn(Ke===(Ie==null?void 0:Ie.id)?null:Ie==null?void 0:Ie.id)},style:{color:Ke===(Ie==null?void 0:Ie.id)?"#0152d9":"#999999"}},te.createElement("i",{className:"iconfont icon-huifu3 mr3"}),te.createElement("span",null,Ke===(Ie==null?void 0:Ie.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Ke===(Ie==null?void 0:Ie.id)&&te.createElement(ea,{id:Ie==null?void 0:Ie.id,cb:(oo,Ir)=>{ze(oo,Ir),kr(!0)}}),lo&&te.createElement("div",{className:Oo.secondLevelDiscuss},(eo=Ie==null?void 0:Ie.children)==null?void 0:eo.map(oo=>te.createElement(ii,{thirdlyReply:bn,setThirdlyReply:Dn,key:oo.id,data:oo,onReplyDiscuss:ze}))))))},ca=(Ie,ze,Ke)=>new Promise((Jn,bn)=>{var Dn=kt=>{try{nn(Ke.next(kt))}catch(Nn){bn(Nn)}},Vt=kt=>{try{nn(Ke.throw(kt))}catch(Nn){bn(Nn)}},nn=kt=>kt.done?Jn(kt.value):Promise.resolve(kt.value).then(Dn,Vt);nn((Ke=Ke.apply(Ie,ze)).next())}),ji=({identifier:Ie,active:ze,onOk:Ke})=>{const Jn=(0,_e.useIntl)(),[bn,Dn]=(0,te.useState)(""),[Vt,nn]=(0,te.useState)(1),[kt,Nn]=(0,te.useState)([]),[eo,lo]=(0,te.useState)(0),[kr,oo]=(0,te.useState)(null),[Ir,Zo]=(0,te.useState)(null);(0,te.useEffect)(()=>{Wr(1),nn(1)},[ze]);const Wr=ho=>ca(void 0,null,function*(){const oa=yield nr({container_type:"QuestionSolutionArticle",container_identifier:ze,limit:5,page:ho});oa!=null&&oa.comments&&(Nn((oa==null?void 0:oa.comments)||[]),nn(ho),lo(oa==null?void 0:oa.disscuss_count))}),ra=()=>ca(void 0,null,function*(){if(bn===""){pe.ZP.error(Jn.formatMessage({id:"classrooms.enterContent",defaultMessage:"\u8BF7\u8F93\u5165\u5185\u5BB9"}));return}const ho=yield zn({comments:{content:bn},container_type:"QuestionSolutionArticle",container_identifier:ze});ho!=null&&ho.discuss&&(Dn(""),Wr(Vt),Ke())}),Kr=(ho,oa,Yn)=>ca(void 0,null,function*(){const _a=yield xn({container_type:"QuestionSolutionArticle",container_identifier:ze,comments:{content:oa,parent_id:ho}});oo(null),Zo(null),Wr(Vt)}),Oa=ho=>ca(void 0,null,function*(){const oa=yield wt(ho);Wr(Vt)}),ua=ho=>{nn(ho),Wr(ho)};return te.createElement("div",{className:Ma.discuss},te.createElement("aside",{className:Ma.reply,style:{borderWidth:eo?1:0}},te.createElement(Ro.Z,{defaultValue:bn,id:"writeForumsReviewId",onChange:ho=>{Dn(ho)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),te.createElement($a.Z,null,te.createElement(Ra.Z,{flex:"1"}),te.createElement(Ra.Z,null,te.createElement(It.ZP,{type:"primary",size:"middle",onClick:()=>ra()},Jn.formatMessage({id:"shixuns.send",defaultMessage:"\u53D1\u9001"}))))),kt==null?void 0:kt.map(ho=>te.createElement(Sa,{secondReply:kr,setSecondReply:oo,thirdlyReply:Ir,setThirdlyReply:Zo,key:ho.id,data:ho,onReplyDiscuss:Kr,onPlusDiscuss:Oa})),te.createElement(Gt.Z,{className:Ma.pagination,showTotal:ho=>te.createElement("span",{style:{color:"#656F87"}},Jn.formatMessage({id:"common.total",defaultMessage:"\u5171"}),te.createElement("span",{className:"c-light-primary"},ho),Jn.formatMessage({id:"problemset.pieceOfData",defaultMessage:"\u6761\u6570\u636E"})),current:Vt,onChange:ua,total:eo,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},Ci=ee(6104),wi=Object.defineProperty,Li=Object.getOwnPropertySymbols,xi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,si=(Ie,ze,Ke)=>ze in Ie?wi(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,zi=(Ie,ze)=>{for(var Ke in ze||(ze={}))xi.call(ze,Ke)&&si(Ie,Ke,ze[Ke]);if(Li)for(var Ke of Li(ze))di.call(ze,Ke)&&si(Ie,Ke,ze[Ke]);return Ie},Mi=(Ie,ze,Ke)=>new Promise((Jn,bn)=>{var Dn=kt=>{try{nn(Ke.next(kt))}catch(Nn){bn(Nn)}},Vt=kt=>{try{nn(Ke.throw(kt))}catch(Nn){bn(Nn)}},nn=kt=>kt.done?Jn(kt.value):Promise.resolve(kt.value).then(Dn,Vt);nn((Ke=Ke.apply(Ie,ze)).next())}),cs=({active:Ie,identifier:ze,onAssist:Ke,onEdit:Jn,onArticlesSkip:bn,onClose:Dn,onOk:Vt,onDelete:nn,detailsIndex:kt,btnShowStatus:Nn})=>{var eo,lo,kr,oo,Ir,Zo,Wr,ra,Kr,Oa;const ua=(0,_e.useIntl)(),[ho,oa]=(0,te.useState)(!0),[Yn,_a]=(0,te.useState)({});(0,te.useEffect)(()=>{Ie&&zo()},[Ie,kt]);const zo=(Ar=!0)=>Mi(void 0,null,function*(){Ar&&oa(!0);const Vr=yield(0,ge.wO)(ze,{active:Ie});(Vr==null?void 0:Vr.status)===0&&_a((Vr==null?void 0:Vr.data)||{}),oa(!1)}),ka=Ar=>Mi(void 0,null,function*(){const Vr=yield(0,ge.qe)(ze,zi({active:Ie},Ar));(Vr==null?void 0:Vr.status)===0&&(zo(!1),Vt())}),yi=Ar=>Mi(void 0,null,function*(){(yield(0,ge.Rg)(ze,{active:Ar==null?void 0:Ar.id})).status===0&&(zo(!1),Vt())}),Sr=Ar=>{ae.default.confirm({centered:!0,width:500,okText:ua.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:ua.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:ua.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u9898\u89E3\u5417?",onOk:()=>nn(Ar)})},wa=()=>{zo(!1),Vt()};return te.createElement("div",{className:In.listDetails},te.createElement(Gn.Z,{className:"pt20 pl20 pr20",loading:ho,active:!0,paragraph:{rows:5}},te.createElement("div",{className:In.head},te.createElement("div",{className:In.name},te.createElement("div",{title:Yn==null?void 0:Yn.name,className:In.title},Yn==null?void 0:Yn.name),(Yn==null?void 0:Yn.is_authority)&&te.createElement("div",{className:In.b},"\u5B98\u65B9"),(Yn==null?void 0:Yn.is_excellent)&&te.createElement("div",{className:In.a},"\u7CBE\u9009")),te.createElement("div",{className:In.tag},te.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(Yn==null?void 0:Yn.image_url)}),te.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Yn==null?void 0:Yn.username),te.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",mn()(Yn==null?void 0:Yn.created_at).format("YYYY-MM-DD")),te.createElement("span",null,te.createElement("img",{src:fr}),te.createElement("span",null,Yn==null?void 0:Yn.praises_count)),te.createElement("span",null,te.createElement("img",{src:ba}),te.createElement("span",null,Yn==null?void 0:Yn.discusses_count)),te.createElement("span",null,te.createElement("img",{src:ir}),te.createElement("span",null,Yn==null?void 0:Yn.viewed_count)),te.createElement("div",{className:In.btn},((0,wn.Ny)()||(Yn==null?void 0:Yn.is_self))&&te.createElement(te.Fragment,null,te.createElement(It.ZP,{onClick:()=>Sr(Yn),type:"primary",ghost:!0},ua.formatMessage({id:"questionBankAddQuestion.delete",defaultMessage:"\u5220\u9664"})),te.createElement(It.ZP,{onClick:()=>Jn(Yn),type:"primary",ghost:!0},ua.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"}))),(0,wn.Ny)()&&te.createElement(It.ZP,{onClick:()=>ka({is_authority:!(Yn!=null&&Yn.is_authority)}),type:"primary"},te.createElement("img",{src:Ea}),Yn!=null&&Yn.is_authority?ua.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}):"\u8BBE\u4E3A","\u5B98\u65B9"),(0,wn.Ny)()&&te.createElement(It.ZP,{onClick:()=>ka({is_excellent:!(Yn!=null&&Yn.is_excellent)}),type:"primary"},te.createElement("img",{src:Mr}),Yn!=null&&Yn.is_excellent?ua.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}):"\u8BBE\u4E3A","\u7CBE\u9009")))),te.createElement("div",{className:In.scroll},((lo=(eo=Yn==null?void 0:Yn.videos)==null?void 0:eo[0])==null?void 0:lo.id)&&te.createElement("div",{className:In.video},te.createElement(me.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((oo=(kr=Yn==null?void 0:Yn.videos)==null?void 0:kr[0])!=null&&oo.transcoded)},te.createElement(Ci.Z,{poster:(Zo=(Ir=Yn==null?void 0:Yn.videos)==null?void 0:Ir[0])==null?void 0:Zo.cover_url,src:((ra=(Wr=Yn==null?void 0:Yn.videos)==null?void 0:Wr[0])==null?void 0:ra.play_url)||"",videoId:(Oa=(Kr=Yn==null?void 0:Yn.videos)==null?void 0:Kr[0])==null?void 0:Oa.id,logWatchHistory:()=>{}}))),te.createElement(tt.Z,{className:In.html,value:(Yn==null?void 0:Yn.content)||""}),te.createElement("div",{onClick:()=>yi(Yn),className:In.g},te.createElement("img",{className:"mr10",src:(Yn!=null&&Yn.user_liker,xa)}),te.createElement("span",null,Yn==null?void 0:Yn.praises_count)),te.createElement(ji,{onOk:wa,active:Ie,identifier:ze})),te.createElement("div",{className:In.btns},te.createElement(It.ZP,{onClick:()=>Dn(),type:"primary",ghost:!0},ua.formatMessage({id:"user.disable",defaultMessage:"\u5173\u95ED"})),Nn[0]&&te.createElement(It.ZP,{onClick:Ar=>bn(Ar,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),Nn[1]&&te.createElement(It.ZP,{onClick:Ar=>bn(Ar,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},Xi=Object.defineProperty,us=Object.getOwnPropertySymbols,ds=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,Bi=(Ie,ze,Ke)=>ze in Ie?Xi(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,Ui=(Ie,ze)=>{for(var Ke in ze||(ze={}))ds.call(ze,Ke)&&Bi(Ie,Ke,ze[Ke]);if(us)for(var Ke of us(ze))Qi.call(ze,Ke)&&Bi(Ie,Ke,ze[Ke]);return Ie};const gs=Ie=>React.createElement("svg",Ui({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Ie),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 as="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",Ji=ee(28575),Ns=ee(33463),As=Object.defineProperty,Rs=Object.defineProperties,Ts=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,ys=Object.prototype.hasOwnProperty,Ka=Object.prototype.propertyIsEnumerable,xo=(Ie,ze,Ke)=>ze in Ie?As(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,ai=(Ie,ze)=>{for(var Ke in ze||(ze={}))ys.call(ze,Ke)&&xo(Ie,Ke,ze[Ke]);if(Ss)for(var Ke of Ss(ze))Ka.call(ze,Ke)&&xo(Ie,Ke,ze[Ke]);return Ie},Ai=(Ie,ze)=>Rs(Ie,Ts(ze)),li=(Ie,ze,Ke)=>new Promise((Jn,bn)=>{var Dn=kt=>{try{nn(Ke.next(kt))}catch(Nn){bn(Nn)}},Vt=kt=>{try{nn(Ke.throw(kt))}catch(Nn){bn(Nn)}},nn=kt=>kt.done?Jn(kt.value):Promise.resolve(kt.value).then(Dn,Vt);nn((Ke=Ke.apply(Ie,ze)).next())}),Ki=({identifier:Ie,tabStatus:ze,setFilterListTotal:Ke,setListStatus:Jn})=>{const bn=(0,_e.useIntl)(),Dn={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[Vt,nn]=(0,te.useState)(ai({},Dn));const[kt,Nn]=(0,te.useState)(!1),[eo,lo]=(0,te.useState)(0),[kr,oo]=(0,te.useState)(1),[Ir,Zo]=(0,te.useState)(null),[Wr,ra]=(0,te.useState)([]),[Kr,Oa]=(0,te.useState)([!0,!0]),[ua,ho]=(0,te.useState)(0),oa=(0,te.useRef)(null);(0,te.useEffect)(()=>{ao()},[ze]),(0,te.useEffect)(()=>{Yn()},[Ir]),(0,te.useEffect)(()=>{zo(ai({},Dn)),ao()},[Ie]),(0,te.useEffect)(()=>(window.addEventListener("resize",_a),Jn(ua),()=>{window.removeEventListener("resize",_a)}),[ua]);const Yn=()=>li(void 0,null,function*(){if(!Ir){Oa([!0,!0]);return}const co=[!0,!0],ja=Wr==null?void 0:Wr.findIndex(_i=>_i.id===Ir);ja===0&&Vt.page===1&&(co[0]=!1),(Vt.page-1)*Vt.limit+(ja+1)===Vt.total&&(co[1]=!1),Oa(co)}),_a=()=>{var co;if(ua){const ja=window.innerWidth-((co=oa.current)==null?void 0:co.clientWidth);lo(ja)}},zo=co=>li(void 0,null,function*(){var ja,_i,is;Nn(!0);const Pi=yield(0,ge.WH)(Ie,co);return(Pi==null?void 0:Pi.status)===0&&(ra(((ja=Pi==null?void 0:Pi.data)==null?void 0:ja.articles)||[]),nn(Ai(ai({},co),{total:(_i=Pi==null?void 0:Pi.data)==null?void 0:_i.articles_count})),Ke((is=Pi==null?void 0:Pi.data)==null?void 0:is.articles_count)),Nn(!1),Pi}),ka=()=>{(Vt==null?void 0:Vt.sort_direction)===null?Vt.sort_direction="asc":(Vt==null?void 0:Vt.sort_direction)==="asc"?Vt.sort_direction="desc":(Vt==null?void 0:Vt.sort_direction)==="desc"&&(Vt.sort_direction=null),Vt.page=1,ao(),nn(ai({},Vt)),zo(Vt)},yi=()=>{Vt.page=1,Vt.search=Vt==null?void 0:Vt.save_search,ao(),nn(ai({},Vt)),zo(Vt)},Sr=()=>{var co;const ja=document.getElementsByClassName("btn-resize");ja[0].style.visibility="hidden";const _i=window.innerWidth-((co=oa.current)==null?void 0:co.clientWidth);lo(_i)},wa=()=>{Sr(),ho(1)},Ar=co=>{Sr(),Zo(co==null?void 0:co.id),ho(3)},Vr=co=>{Sr(),Zo(co==null?void 0:co.id),ho(2)},ao=()=>{const co=document.getElementsByClassName("btn-resize");co[0].style.visibility="visible",lo(0),ho(0),Zo(null)},ci=co=>{ho(3),Zo(co),Vt.page=1,nn(ai({},Vt)),zo(Vt)},Qo=co=>{ho(3),Zo(co),nn(ai({},Vt)),zo(Vt)},Cs=co=>{nn(ai({},Vt)),zo(Vt)},hs=co=>li(void 0,null,function*(){(yield(0,ge.Rg)(Ie,{active:co==null?void 0:co.id})).status===0&&(zo(Vt),oo(kr+1))}),ts=co=>li(void 0,null,function*(){(yield(0,ge.rL)(Ie,{active:co==null?void 0:co.id})).status===0&&(zo(Vt),oo(kr+1))}),ws=co=>li(void 0,null,function*(){(yield(0,ge.de)(Ie,{active:co==null?void 0:co.id})).status===0&&(ao(),zo(Vt))}),Hi=co=>{Vt.page=co,nn(ai({},Vt)),zo(Vt)},fi=(co,ja)=>li(void 0,null,function*(){var _i,is,Pi,Fi;const Gi=Wr==null?void 0:Wr.findIndex(Va=>Va.id===Ir);if(console.log(Gi,ja,22),ja==="prev"){if(Gi===void 0){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Gi===0){if(Vt.page===1){pe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Vt.page!==1){Vt.page=Vt.page-1,nn(ai({},Vt));const Va=yield zo(Vt);if((Va==null?void 0:Va.status)===0){const Ee=(Pi=Va==null?void 0:Va.data)==null?void 0:Pi.articles[((is=(_i=Va==null?void 0:Va.data)==null?void 0:_i.articles)==null?void 0:is.length)-1];Zo(Ee==null?void 0:Ee.id),console.log(co.target,555)}}}else{const Va=Wr[Gi-1];Zo(Va==null?void 0:Va.id)}}if(ja==="next"){if(Gi===void 0){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((Vt.page-1)*Vt.limit+(Gi+1)===Vt.total){pe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Gi+1===Vt.limit){Vt.page=Vt.page+1,nn(ai({},Vt));const Va=yield zo(Vt);if((Va==null?void 0:Va.status)===0){const Ee=(Fi=Va==null?void 0:Va.data)==null?void 0:Fi.articles[0];Zo(Ee==null?void 0:Ee.id)}}else{const Va=Wr[Gi+1];Zo(Va==null?void 0:Va.id)}}});return te.createElement("div",{className:Je.wrap,ref:oa},te.createElement("div",{className:Je.head},te.createElement("div",{className:Je.sort,onClick:ka},te.createElement("span",null,"\u6700\u65B0"),te.createElement("aside",null,te.createElement(Ji.Z,{style:{color:(Vt==null?void 0:Vt.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),te.createElement(Ns.Z,{style:{color:(Vt==null?void 0:Vt.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),te.createElement(Ge.default.Search,{value:Vt.save_search,className:Je["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:co=>{Vt.save_search=co.target.value,nn(ai({},Vt))},onSearch:yi}),te.createElement("div",{onClick:wa,className:Je.btn},te.createElement("img",{src:as}),"\u5199\u9898\u89E3")),te.createElement("div",{className:Je.listWarp},te.createElement(me.Z,{spinning:kt,className:"mt20"},Wr==null?void 0:Wr.map((co,ja)=>{let _i=!0;return ja+1===Wr.length&&ja!==0&&(_i=!1),te.createElement(Tr,{active:Ir,key:co.id,data:co,showLine:_i,onClick:Ar,onAssist:hs,onHide:ts})}),(Wr==null?void 0:Wr.length)===0&&te.createElement(Xe.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),te.createElement(Gt.Z,{className:Je.pagination,showTotal:co=>te.createElement("span",{style:{color:"#656F87"}},bn.formatMessage({id:"common.total",defaultMessage:"\u5171"}),te.createElement("span",{className:"c-light-primary"},co),bn.formatMessage({id:"problemset.pieceOfData",defaultMessage:"\u6761\u6570\u636E"})),total:Vt.total,showSizeChanger:!1,current:Vt==null?void 0:Vt.page,onChange:Hi,hideOnSinglePage:!0,showQuickJumper:!0}),ua>0&&te.createElement("div",{className:Je.fixedRight,style:{width:eo}},ua===1&&te.createElement(Tn,{identifier:Ie,onClose:ao,onOk:ci}),ua===2&&te.createElement(Tn,{active:Ir,identifier:Ie,onClose:ao,onOk:Qo}),ua===3&&te.createElement(cs,{btnShowStatus:Kr,onArticlesSkip:fi,detailsIndex:kr,active:Ir,identifier:Ie,onClose:ao,onOk:Cs,onEdit:Vr,onAssist:hs,onDelete:ws})))},Di={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"},Bs=Object.defineProperty,_s=Object.defineProperties,Ps=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,Ws=Object.prototype.hasOwnProperty,Ks=Object.prototype.propertyIsEnumerable,Vs=(Ie,ze,Ke)=>ze in Ie?Bs(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,es=(Ie,ze)=>{for(var Ke in ze||(ze={}))Ws.call(ze,Ke)&&Vs(Ie,Ke,ze[Ke]);if(fs)for(var Ke of fs(ze))Ks.call(ze,Ke)&&Vs(Ie,Ke,ze[Ke]);return Ie},Fs=(Ie,ze)=>_s(Ie,Ps(ze)),bs=(Ie,ze,Ke)=>new Promise((Jn,bn)=>{var Dn=kt=>{try{nn(Ke.next(kt))}catch(Nn){bn(Nn)}},Vt=kt=>{try{nn(Ke.throw(kt))}catch(Nn){bn(Nn)}},nn=kt=>kt.done?Jn(kt.value):Promise.resolve(kt.value).then(Dn,Vt);nn((Ke=Ke.apply(Ie,ze)).next())}),Ys=({visible:Ie,onVisible:ze,value:Ke,onChange:Jn,setIndex:bn})=>{var Dn;const Vt=(0,_e.useIntl)(),nn={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[kt,Nn]=(0,te.useState)(nn);const[eo,lo]=(0,te.useState)([]),[kr,oo]=(0,te.useState)([]),[Ir,Zo]=(0,te.useState)(!1),Wr=(0,te.useRef)([]),ra=(0,te.useRef)(null),Kr=(0,_e.useParams)();(0,te.useEffect)(()=>(Kr!=null&&Kr.id&&(ra.current=setInterval(()=>{Oa(30)},3e4)),()=>{clearInterval(ra.current)}),[]);const Oa=Sr=>bs(void 0,null,function*(){const wa=yield(0,ge.uc)(Kr==null?void 0:Kr.id,{practice_time:Sr})});(0,te.useEffect)(()=>{zo(kt),Yn()},[]),(0,te.useEffect)(()=>(window.addEventListener("click",ho),()=>{window.removeEventListener("click",ho)}),[Kr==null?void 0:Kr.save_identifier,Ie]),(0,te.useEffect)(()=>{const Sr=Wr.current.findIndex(ci=>ci.identifier===(Kr==null?void 0:Kr.save_identifier)),wa=Wr.current[Sr-1],Ar=Wr.current[Sr+1],Vr=document.getElementById("oj-prev"),ao=document.getElementById("oj-next");wa?Vr.style.display="block":Vr.style.display="none",Ar?ao.style.display="block":ao.style.display="none"},[Kr==null?void 0:Kr.save_identifier,Wr.current]);const ua=(Sr,wa)=>{if(Sr.id===wa)return Sr;for(let Ar=0,Vr=Sr;Vr=Vr.parentNode;Ar++){if(Vr.id===wa)return Vr;if(Vr==document.documentElement)return!1}},ho=Sr=>bs(void 0,null,function*(){!ua(Sr.target,"oj-drawer")&&Ie&&ze(!1);const wa=Wr.current.findIndex(ao=>ao.identifier===(Kr==null?void 0:Kr.save_identifier)),Ar=Wr.current[wa-1],Vr=Wr.current[wa+1];if(Sr.target.id==="oj-prev"){if(!Ar||wa===-1){pe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}Sr.target.style.pointerEvents="none",Sr.target.style.cursor="not-allowed",yield ka(Ar==null?void 0:Ar.identifier),bn("0"),setTimeout(()=>{Sr.target.style.pointerEvents="auto",Sr.target.style.cursor="pointer"},400)}if(Sr.target.id==="oj-next"||Sr.target.id==="oj-modal-next"){if(!Vr||wa===-1){pe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}Sr.target.style.pointerEvents="none",Sr.target.style.cursor="not-allowed",yield ka(Vr==null?void 0:Vr.identifier),bn("0"),setTimeout(()=>{Sr.target.style.pointerEvents="auto",Sr.target.style.cursor="pointer"},400)}});(0,te.useEffect)(()=>{Jn(Kr==null?void 0:Kr.save_identifier);const Sr=kr.findIndex(wa=>wa.some(Ar=>Ar.identifier===(Kr==null?void 0:Kr.save_identifier)));Nn(Sr===-1?Fs(es({},kt),{page:1}):Fs(es({},kt),{page:Sr+1}))},[Kr==null?void 0:Kr.save_identifier,kr]);const oa=Sr=>{kt.page=1,kt.tag_discipline_id=Sr,Nn(es({},kt)),zo(kt)},Yn=()=>bs(void 0,null,function*(){const Sr=yield(0,fn.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});lo(Sr.tag_disciplines||[])}),_a=Sr=>{kt.page=1,kt.difficulty=typeof Sr=="number"?Sr:null,Nn(es({},kt)),zo(kt)},zo=Sr=>bs(void 0,null,function*(){var wa,Ar;Zo(!0);const Vr=yield(0,ge.KC)(Sr);if(Vr!=null&&Vr.practices_list){for(var ao=(wa=Vr==null?void 0:Vr.practices_list)==null?void 0:wa.length,ci=[],Qo=0;Qo<ao;Qo+=kt==null?void 0:kt.per_page)ci.push((Ar=Vr==null?void 0:Vr.practices_list)==null?void 0:Ar.slice(Qo,Qo+(kt==null?void 0:kt.per_page)));Nn(Fs(es({},kt),{total:Vr==null?void 0:Vr.practices_count})),Wr.current=(Vr==null?void 0:Vr.practices_list)||[],oo(ci)}Zo(!1)}),ka=(Sr,wa)=>bs(void 0,null,function*(){const Ar=yield(0,fn.ZP)(`/api/practices/${Sr}/start`,{method:"get"});(Ar==null?void 0:Ar.status)===0&&_e.history.push(`/problems/${Ar==null?void 0:Ar.identifier}/oj/${Sr}`)}),yi=Sr=>{kt.page=Sr,Nn(es({},kt))};return te.createElement("div",{className:Di.wrap,id:"oj-drawer",style:{left:Ie?0:-700}},te.createElement("div",{className:Di.head},te.createElement("div",{className:Di.title},"\u9898\u76EE\u5217\u8868"),te.createElement(Ge.default.Search,{value:kt==null?void 0:kt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:Sr=>{kt.save_search=Sr.target.value,Nn(es({},kt))},onSearch:()=>{kt.page=1,kt.search=kt.save_search,Nn(es({},kt)),zo(kt)}}),te.createElement(de.default,{value:kt==null?void 0:kt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:Sr=>Sr.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:oa},eo.map(Sr=>te.createElement(de.default.Option,{key:Sr.id,value:Sr.id},Sr.name))),te.createElement(de.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:Vt.formatMessage({id:"questionBankList.difficulty",defaultMessage:"\u96BE\u5EA6"}),getPopupContainer:Sr=>Sr.parentNode,value:kt==null?void 0:kt.difficulty,onChange:_a},te.createElement(de.default.Option,{value:1},Vt.formatMessage({id:"shixuns.easy",defaultMessage:"\u7B80\u5355"})),te.createElement(de.default.Option,{value:2},Vt.formatMessage({id:"shixuns.medium",defaultMessage:"\u9002\u4E2D"})),te.createElement(de.default.Option,{value:3},Vt.formatMessage({id:"shixuns.difficult",defaultMessage:"\u56F0\u96BE"})))),te.createElement("div",{className:Di.content},te.createElement(me.Z,{spinning:Ir},(Dn=kr==null?void 0:kr[kt.page-1])==null?void 0:Dn.map(Sr=>te.createElement("div",{key:Sr.identifier,className:Di.list,onClick:wa=>ka(Sr.identifier,wa)},te.createElement("i",{style:{visibility:Ke===Sr.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),te.createElement("span",{style:{fontWeight:Ke===Sr.identifier?"bold":400,color:Ke===Sr.identifier?"#ffffff":"#bac4cd"},title:Sr==null?void 0:Sr.name},Sr.name),(Sr==null?void 0:Sr.difficulty)===1&&te.createElement("b",{style:{color:"#2FA34F"}},Vt.formatMessage({id:"shixuns.easy",defaultMessage:"\u7B80\u5355"})),(Sr==null?void 0:Sr.difficulty)===2&&te.createElement("b",{style:{color:"#0152d9"}},Vt.formatMessage({id:"shixuns.medium",defaultMessage:"\u9002\u4E2D"})),(Sr==null?void 0:Sr.difficulty)===3&&te.createElement("b",{style:{color:"#FA6400"}},Vt.formatMessage({id:"shixuns.difficult",defaultMessage:"\u56F0\u96BE"})))))),te.createElement("div",{className:Di.footer},te.createElement(Gt.Z,{showTotal:Sr=>te.createElement("span",{style:{color:"#656F87"}},Vt.formatMessage({id:"common.total",defaultMessage:"\u5171"}),te.createElement("span",{className:"c-light-primary"},Sr),Vt.formatMessage({id:"problemset.pieceOfData",defaultMessage:"\u6761\u6570\u636E"})),total:kt.total,pageSize:kt==null?void 0:kt.per_page,current:kt==null?void 0:kt.page,showSizeChanger:!1,onChange:yi,showQuickJumper:!0,hideOnSinglePage:!0})))},sl=({hack:Ie,onTriggerPraise:ze,topicId:Ke,page:Jn,onPageChange:bn,user:Dn,submitRecords:Vt,submitting:nn,submitResult:kt})=>{const Nn=(0,_e.useIntl)(),[eo]=(0,_e.useSearchParams)(),lo=(0,_e.useLocation)(),[kr,oo]=(0,te.useState)(eo.get("tab")||"0"),[Ir,Zo]=(0,te.useState)(0),[Wr,ra]=(0,te.useState)(0),[Kr,Oa]=(0,te.useState)(0),[ua,ho]=(0,te.useState)(),[oa,Yn]=(0,te.useState)(!1);function _a(ka){const yi=ka.target.id;if(kr==="3"&&yi!==kr&&(Wr===1||Wr===2)){ae.default.confirm({centered:!0,width:500,okText:Nn.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Nn.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:Nn.formatMessage({id:"classrooms.note1",defaultMessage:"\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:()=>{oo(yi)}});return}oo(yi)}(0,te.useEffect)(()=>Qe.Z.subscribe("to-commit-info",()=>{oo("1")}),[]);function zo(){oo("2")}return te.createElement("div",{className:at["left-panel"]},te.createElement("ul",{className:`${at["s-navs"]} ${at["bg-white"]} ${at.b1}`},te.createElement("li",{className:"mr40 current"},te.createElement("img",{onClick:()=>Yn(!0),src:ln})),te.createElement("li",{className:at["oj-mr"]},te.createElement("a",{className:kr==="0"?at.active:"",id:"0",onClick:_a},Nn.formatMessage({id:"classrooms.taskDescription",defaultMessage:"\u4EFB\u52A1\u63CF\u8FF0"}))),te.createElement("li",{className:at["oj-mr"]},te.createElement("a",{className:kr==="3"?at.active:"",id:"3",onClick:_a},"\u9898\u89E3",Kr?`(${Kr})`:"")),te.createElement("li",{className:at["oj-mr"]},te.createElement("a",{className:kr==="2"?at.active:"",id:"2",onClick:_a},Nn.formatMessage({id:"questionBankAddQuestion.comments",defaultMessage:"\u8BC4\u8BBA"}),Ir?`(${Ir})`:"")),te.createElement("li",null,te.createElement("a",{className:kr==="1"?at.active:"",id:"1",onClick:_a},Nn.formatMessage({id:"shixuns.submissionRecords",defaultMessage:"\u63D0\u4EA4\u8BB0\u5F55"})))),te.createElement("div",{className:`${at["tab-panel-body"]} ${kr==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},te.createElement(bt,{hack:Ie,onTriggerPraise:ze,toDiscuss:zo})),te.createElement("div",{className:`${at["tab-panel-body"]} ${kr==="1"?"":"hide"}`},Vt!=null&&Vt.records_count?te.createElement(et,{page:Jn,onPageChange:bn,topicId:Ke,submitting:nn,submitRecords:Vt,submitResult:kt}):te.createElement(Xe.Z,null)),te.createElement("div",{className:`${at["tab-panel-body"]} ${kr==="2"?"":"hide"}`,style:{padding:0}},te.createElement(Oe,{setDiscussTotal:Zo,user:Dn,identifier:Ie.identifier,hack:Ie,onTriggerPraise:ze})),te.createElement("div",{className:`${at["tab-panel-body"]} ${kr==="3"?"":"hide"}`,style:{padding:0}},te.createElement(Ki,{setListStatus:ra,setFilterListTotal:Oa,tabStatus:kr,identifier:Ie.identifier})),te.createElement(Ys,{visible:oa,setIndex:oo,onVisible:ka=>Yn(ka),value:ua,onChange:ka=>ho(ka)}))},ll=ee(88508),cl=ee(62522),ul=ee(22707),Xs=ee(8861),ks=ee(96486),dl=ee.n(ks),gl=ee(74855),Or=ee(67294),js=Object.defineProperty,zs=Object.defineProperties,Us=Object.getOwnPropertyDescriptors,Es=Object.getOwnPropertySymbols,Hs=Object.prototype.hasOwnProperty,fl=Object.prototype.propertyIsEnumerable,Qs=(Ie,ze,Ke)=>ze in Ie?js(Ie,ze,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Ie[ze]=Ke,ya=(Ie,ze)=>{for(var Ke in ze||(ze={}))Hs.call(ze,Ke)&&Qs(Ie,Ke,ze[Ke]);if(Es)for(var Ke of Es(ze))fl.call(ze,Ke)&&Qs(Ie,Ke,ze[Ke]);return Ie},Ja=(Ie,ze)=>zs(Ie,Us(ze)),hl=(Ie,ze)=>{var Ke={};for(var Jn in Ie)Hs.call(Ie,Jn)&&ze.indexOf(Jn)<0&&(Ke[Jn]=Ie[Jn]);if(Ie!=null&&Es)for(var Jn of Es(Ie))ze.indexOf(Jn)<0&&fl.call(Ie,Jn)&&(Ke[Jn]=Ie[Jn]);return Ke},gi=(Ie,ze,Ke)=>new Promise((Jn,bn)=>{var Dn=kt=>{try{nn(Ke.next(kt))}catch(Nn){bn(Nn)}},Vt=kt=>{try{nn(Ke.throw(kt))}catch(Nn){bn(Nn)}},nn=kt=>kt.done?Jn(kt.value):Promise.resolve(kt.value).then(Dn,Vt);nn((Ke=Ke.apply(Ie,ze)).next())});const{Countdown:Js}=ce.default,Ds={Java:"java",C:"c",Python:"py","C++":"c"};var qs=(Ie=>(Ie[Ie.SET_LOADING=0]="SET_LOADING",Ie[Ie.GET_DATA=1]="GET_DATA",Ie[Ie.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Ie[Ie.SET_DATA=3]="SET_DATA",Ie[Ie.SET_DEBUGING=4]="SET_DEBUGING",Ie[Ie.SET_SUBMITING=5]="SET_SUBMITING",Ie[Ie.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Ie[Ie.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Ie[Ie.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Ie[Ie.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Ie[Ie.SET_PAGE=10]="SET_PAGE",Ie[Ie.GET_LANGUAGE=11]="GET_LANGUAGE",Ie[Ie.GET_DRAWER=12]="GET_DRAWER",Ie))(qs||{});function Os(){return new Date().getTime()}const Gs={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 el(Ie,ze){switch(ze.type){case 1:return ya(ya({},Ie),ze.payload);case 3:return Ja(ya({},Ie),{data:ze.payload});case 0:return Ja(ya({},Ie),{loading:ze.payload});case 11:return Ja(ya({},Ie),{languageList:ze.payload});case 12:return Ja(ya({},Ie),{drawerData:ze.payload});case 9:return Ja(ya({},Ie),{showNote:ze.payload});case 4:return Ja(ya({},Ie),{debuging:ze.payload});case 5:return Ja(ya({},Ie),{submitting:ze.payload});case 2:return Ja(ya({},Ie),{submitRecords:ze.payload});case 10:return Ja(ya({},Ie),{submitRecordPage:ze.payload});case 6:return Ja(ya({},Ie),{executingMessage:ze.payload});case 7:return ya(ya({},Ie),ze.payload);case 8:return ya(ya({},Ie),ze.payload);default:throw new Error}}var tl=({children:Ie})=>{var ze,Ke,Jn,bn;const Dn=(0,_e.useIntl)(),[Vt,nn]=(0,te.useReducer)(el,Gs),{id:kt}=(0,_e.useParams)(),Nn=(0,_e.useLocation)(),[eo]=(0,_e.useSearchParams)(),{languageValue:lo,languageList:kr,loading:oo,data:Ir,debugResult:Zo,submitResult:Wr,submitRecords:ra,submitRecordPage:Kr,showNote:Oa,debuging:ua,submitting:ho,executingMessage:oa}=Vt,[Yn,_a]=(0,te.useState)("#FFF"),[zo,ka]=(0,te.useState)(null),[yi,Sr]=(0,te.useState)({}),[wa,Ar]=(0,te.useState)(!1),Vr=(0,te.useRef)(null),ao=(0,te.useRef)(null),ci=Ir==null?void 0:Ir.user,Qo=Ir==null?void 0:Ir.hack;(0,te.useEffect)(()=>((0,_e.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,_e.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,_e.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,_e.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,te.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,te.useEffect)(()=>{var je;if(wa){const We=document.getElementById("oj-next"),it=document.getElementById("oj-modal-next");((je=We==null?void 0:We.style)==null?void 0:je.display)==="none"?it.style.display="none":it.style.display="block"}},[wa]),(0,te.useEffect)(()=>{function je(){return gi(this,null,function*(){var We,it,mt;const ct=yield(0,ge.fu)(kt);if(ct.status===401)document.location.href="/user/login";else{ct.hack=ct.practice,ct.hack.code=Be.Base64.decode((We=ct==null?void 0:ct.hack)==null?void 0:We.code);const Pt=`${ci==null?void 0:ci.login}-language`;localStorage.getItem(Pt)&&(ct.hack.language=localStorage.getItem(Pt)),ao.current=dl().cloneDeep(ct),ao.current.language=(it=ct==null?void 0:ct.hack)==null?void 0:it.language,nn({type:1,payload:{loading:!1,data:ct}}),nn({type:8,payload:{languageValue:(mt=ct==null?void 0:ct.hack)==null?void 0:mt.language}})}})}kt&&je()},[kt]),(0,te.useEffect)(()=>{nn({type:8,payload:{debugResult:void 0}}),ts(),Ar(!1)},[kt]),(0,te.useEffect)(()=>{clearTimeout(Vr.current)},[kt]),(0,te.useEffect)(()=>{hs()},[kt,Kr]);const Cs=()=>{window.parent.postMessage("backExercise","*")};function hs(){return gi(this,null,function*(){try{const je=yield(0,ge.zO)(kt,{limit:15,page:Kr});nn({type:2,payload:je})}catch(je){console.log(je)}})}function ts(){return gi(this,null,function*(){try{const je=yield(0,ge.dd)(kt);nn({type:11,payload:je==null?void 0:je.data})}catch(je){console.log(je)}})}function ws(je){nn({type:10,payload:je})}function Hi(je){return gi(this,null,function*(){var We,it,mt;const ct=((mt=(it=(We=window==null?void 0:window.location)==null?void 0:We.pathname)==null?void 0:it.split("/"))==null?void 0:mt[2])||kt;return yield(0,ge.n4)(ct,je||{code:Be.Base64.encode(Qo.code),language:lo})})}function fi(){return gi(this,null,function*(){var je;if(!Qo.code||((je=Qo.code)==null?void 0:je.trim())===""){pe.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(!ho){nn({type:5,payload:!0});try{if(Qe.Z.publish("to-commit-info"),(yield Hi()).status===0){let At=function(){return gi(this,null,function*(){const{status:tn,data:Jt}=yield(0,ge.rX)(kt,"submit"),Rn=Os()-Rt>(ct*Pt+3)*1e3;if(tn!==0&&!Rn&&setTimeout(At,1e3),Rn){ae.default.error({centered:!0,okText:Dn.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),nn({type:5,payload:!1});return}if(tn===0){Jt.status===2&&ae.default.error({centered:!0,okText:Dn.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const Cn=yield(0,ge.zO)(kt,{limit:15,page:Kr});nn({type:8,payload:Ja(ya({},Vt),{submitResult:Jt,submitting:!1,submitRecords:Cn})}),(Jt==null?void 0:Jt.status)===0&&Ar(!0)}})},it={};const mt=yield(0,ge.bM)(kt,it);if(mt.status===-1&&eo.get("exercisesId")){window.parent.location.href=`/classrooms/${eo.get("coursesId")}/exercise/${eo.get("exercisesId")}/detail`;return}const{time_limit:ct,test_case_size:Pt}=Qo,Rt=Os();(mt==null?void 0:mt.status)>-1?At():nn({type:4,payload:!1})}}catch(We){nn({type:5,payload:!1})}}})}function co(){return gi(this,null,function*(){var je;if(!Qo.code||((je=Qo.code)==null?void 0:je.trim())===""){pe.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}Vt.debuging=!0,nn({type:4,payload:!0});try{if((yield Hi()).status===0){let Rt=function(){return gi(this,null,function*(){const{status:At,message:tn,data:Jt}=yield(0,ge.rX)(kt,"debug"),Rn=Os()-Pt>(it+3)*1e3;if(At!==0&&!Rn&&(nn({type:6,payload:tn}),setTimeout(Rt,1e3)),Rn){ae.default.error({centered:!0,okText:Dn.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),nn({type:4,payload:!1});return}At===0&&(nn({type:4,payload:!1}),Jt.status===2&&ae.default.error({centered:!0,okText:Dn.formatMessage({id:"onlineCourses.gotIt",defaultMessage:"\u77E5\u9053\u5566"}),title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),nn({type:7,payload:Ja(ya({},Vt),{debugResult:Jt,debuging:!1})}))})};const{time_limit:it}=Qo;let mt={input:encodeURIComponent(Ir.test_case.input)};const ct=yield(0,ge.MU)(kt,mt);if(ct.status===-1&&eo.get("exercisesId")){window.parent.location.href=`/classrooms/${eo.get("coursesId")}/exercise/${eo.get("exercisesId")}/detail`;return}const Pt=Os();(ct==null?void 0:ct.status)>-1?Rt():nn({type:4,payload:!1})}else nn({type:4,payload:!1})}catch(We){console.log(We)}finally{}})}function ja(je){var We;clearTimeout(Vr.current),Vr.current=setTimeout(()=>{var it;Hi({code:Be.Base64.encode(je),language:(it=ao==null?void 0:ao.current)==null?void 0:it.language})},2e3),nn({type:3,payload:Ja(ya({},ao==null?void 0:ao.current),{hack:Ja(ya({},(We=ao==null?void 0:ao.current)==null?void 0:We.hack),{code:je})})})}function _i(je){let We=je.target.value;nn({type:3,payload:Ja(ya({},Ir),{test_case:{input:We}})})}const is=je=>gi(void 0,null,function*(){var We;if(nn({type:0,payload:!0}),(yield Hi()).status===0){nn({type:8,payload:{languageValue:je}}),ao.current.language=je;const mt=`${ci==null?void 0:ci.login}-language`;localStorage.setItem(mt,je);const ct=yield(0,ge.dd)(kt);if(ct.status===0){const Pt=(We=ct==null?void 0:ct.data)==null?void 0:We.find(Rt=>Rt.language===je);ja(Be.Base64.decode(Pt.code))}setTimeout(()=>{nn({type:0,payload:!1})},300)}});function Pi(){return gi(this,null,function*(){try{const je=yield(0,ge.H7)(kt,{language:lo});je.status===401?_e.history.replace("/login",{from:Nn.pathname}):(ja(Be.Base64.decode(je.code)),ts())}catch(je){console.log(je)}})}function Fi(){ae.default.confirm({centered:!0,okText:Dn.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Dn.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:Dn.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),content:Or.createElement("p",null,"\u521D\u59CB\u4EE3\u7801\u6709\u4FEE\u6539\uFF0C\u66F4\u65B0\u540E\u5C06\u8986\u76D6\u73B0\u6709\u4EE3\u7801\u54E6~ ",Or.createElement("br",null),"\u8BF7\u5C06\u60A8\u7F16\u8F91\u7684\u4EE3\u7801\u4FDD\u5B58\u81F3\u672C\u5730\uFF0C\u4EE5\u9632\u4E22\u5931"),onOk(){return gi(this,null,function*(){const je=yield(0,ge.fi)(kt,{language:lo});je.status===401?_e.history.replace("/login",{from:Nn.pathname}):ja(Be.Base64.decode(je.code))})}})}function Gi(){nn({type:9,payload:!0})}function Va(){nn({type:9,payload:!1})}function Ee(je){return gi(this,null,function*(){yield(0,ge.MK)(kt,je),nn({type:1,payload:{showNote:!1,data:Ja(ya({},Ir),{hack:Ja(ya({},Qo),{notes:je.notes})})}})})}const Ce={input:(ze=Ir==null?void 0:Ir.test_case)==null?void 0:ze.input,is_file:(Ke=Ir==null?void 0:Ir.test_case)==null?void 0:Ke.is_file,language:((Jn=ao.current)==null?void 0:Jn.language)||(Qo==null?void 0:Qo.language),code:Qo==null?void 0:Qo.code,title:"main."+Ds[Qo==null?void 0:Qo.language],modify_code:Qo==null?void 0:Qo.modify_code,notes:Qo==null?void 0:Qo.notes,debugResult:Zo,debuging:ua,submitting:ho,executingMessage:oa,id:kt,languageValue:lo,languageList:kr,onChangeLanguage:is,onCancelNote:Va,onAddNote:Ee,showNote:Oa,onShowNote:Gi,onSubmitCode:fi,onChangeCode:ja,onChangeInput:_i,onDebugCode:co,onResetCode:Pi,onSyncCode:Fi,onUpdateCode:Hi};function De(){return gi(this,null,function*(){const{praise_count:je}=yield(0,ge.vl)(Qo.id,{container_type:"Hack",type:1});let We=Ja(ya({},Ir),{hack:Ja(ya({},Qo),{praises_count:je,user_praise:!Qo.user_praise})});nn({type:3,payload:We})})}const Te={topicId:kt,submitResult:Wr,submitRecords:ra,submitting:ho,page:Kr,onPageChange:ws,hack:Qo,user:Ir==null?void 0:Ir.user,onTriggerPraise:De};return console.log(Ir,ao==null?void 0:ao.current,"data--------"),Or.createElement(Or.Fragment,null,Or.createElement(me.Z,{className:"oj-custom-large-spin",size:"large",spinning:oo},Ir?Or.createElement("div",{className:"oj-custom-warp"},Or.createElement("header",{className:Re.Z.header,style:{minWidth:1200}},Or.createElement("div",null,Or.createElement("img",{src:`${he.Z.IMG_SERVER}/images/${ci.image_url}`,alt:"user",width:30}),Or.createElement("span",null,ci.name)),Or.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},Or.createElement("div",null,Qo.name),Or.createElement(ll.Z,{onChange:je=>{},className:"font12 c-grey-999"})),Or.createElement(gl.CopyToClipboard,{text:`${(bn=window.location)==null?void 0:bn.origin}/problems/${Qo.identifier}/share`,onCopy:()=>pe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},Or.createElement("span",{className:Re.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",Or.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Qo.edit_privilege?Or.createElement(_e.Link,{className:Re.Z.btn_back,to:`/problems/${Qo.identifier}/ojedit`,style:{marginRight:10}}," ",Or.createElement(fe.Z,null)," ",Dn.formatMessage({id:"classroomExams.edit",defaultMessage:"\u7F16\u8F91"})):null,Or.createElement(_e.Link,{className:Re.Z.btn_back,onClick:()=>{},to:"/problems"}," ",Or.createElement(be.Z,null),"\u9000\u51FA")),Or.createElement(le.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:Or.createElement(sl,ya({},Te)),rightChild:Or.createElement($s,ya({},Ce))})):null),Or.createElement(ae.default,{centered:!0,closable:!1,width:680,footer:null,open:wa,className:"oj-modal"},Or.createElement("section",{className:"oj-modal-content"},Or.createElement("div",{className:"oj-modal-head"},Or.createElement("img",{src:cl,alt:""}),Or.createElement("i",{onClick:()=>Ar(!1),className:"iconfont icon-guanbi1"})),Or.createElement("aside",null,Or.createElement("img",{className:"mr30",src:Xs.Z}),Dn.formatMessage({id:"classroomProgrammingHomework.runTime",defaultMessage:"\u8FD0\u884C\u65F6\u95F4"}),":\xA0",Or.createElement("span",{style:{color:"#75d6ba",marginRight:100}},Wr==null?void 0:Wr.execute_time,"s"),"\u4F18\u4E8E",Or.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Wr==null?void 0:Wr.time_better_than)||100,"%"),"\u7684\u7528\u6237"),Or.createElement("aside",{className:"mb50"},Or.createElement("img",{src:ul.Z,className:"mr30"}),Or.createElement("span",{className:"oj-modal-tt"},Or.createElement("span",null,Or.createElement("span",null,Dn.formatMessage({id:"classroomProgrammingHomework.memoryUsed",defaultMessage:"\u5360\u7528\u5185\u5B58"}),":\xA0"),Or.createElement("span",{className:"c-light-primary"},Wr==null?void 0:Wr.execute_memory,"mb")),Or.createElement("span",null,Or.createElement("span",null))),"\u4F18\u4E8E",Or.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Wr==null?void 0:Wr.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),Or.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function nl({languageValue:Ie,languageList:ze,onChangeLanguage:Ke,title:Jn,modify_code:bn,onSyncCode:Dn,onShowCodeSetting:Vt,onResetCode:nn}){const kt=(0,_e.useLocation)(),Nn=(0,_e.useIntl)(),eo=()=>{ae.default.confirm({title:Nn.formatMessage({id:"shixuns.restoreInitialCode",defaultMessage:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"}),icon:Or.createElement(re.Z,null),content:Nn.formatMessage({id:"shixuns.contentWillBeLost",defaultMessage:"\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:Nn.formatMessage({id:"shixuns.confirm1",defaultMessage:"\u786E\u5B9A"}),cancelText:Nn.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onOk:nn})};return Or.createElement("div",{className:"action-bar"},Or.createElement(de.default,{className:"oj-select",value:Ie,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Ke},ze==null?void 0:ze.map(lo=>Or.createElement(de.default.Option,{key:lo.language,value:lo.language},lo.language))),Or.createElement("span",null),Or.createElement("a",{title:Nn.formatMessage({id:"shixuns.restoreInitialCode",defaultMessage:"\u6062\u590D\u521D\u59CB\u4EE3\u7801"}),onClick:eo},Or.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),Or.createElement("a",{onClick:Vt},Or.createElement("i",{className:"iconfont icon-shezhi"})))}function $s(Ie){var ze=Ie,{id:Ke,input:Jn,is_file:bn,showNote:Dn,onShowNote:Vt,notes:nn,onCancelNote:kt,onAddNote:Nn,debugResult:eo,language:lo,debuging:kr,submitting:oo,executingMessage:Ir,code:Zo,onSubmitCode:Wr,onDebugCode:ra,onChangeCode:Kr,onChangeInput:Oa,onUpdateCode:ua}=ze,ho=hl(ze,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function oa(_a){return Or.createElement(nl,Ja(ya({},ho),{onShowCodeSetting:_a}))}const Yn={id:Ke,input:Jn,debugResult:eo,debuging:kr,is_file:bn,submitting:oo,executingMessage:Ir,onDebugCode:ra,onChangeCode:Kr,onSubmitCode:Wr,onChangeInput:Oa};return Or.createElement("div",{className:"right-panel"},Or.createElement(lt,{onUpdateCode:()=>{},language:lo,value:Zo,onChange:Kr,ActionBarRender:oa}),Or.createElement("div",{className:`note-form-area ${Dn?"active":""}`},Or.createElement(rt,{onCancel:kt,notes:nn,callback:Nn})),Or.createElement(ke.ZP,ya({},Yn)))}},94189:function(ot,Ze,ee){"use strict";ee.d(Ze,{h:function(){return te}});var te=(fe=>(fe[fe.NOMATCH=-1]="NOMATCH",fe[fe.OK=0]="OK",fe[fe.TIMEOUT=2]="TIMEOUT",fe[fe.PODFAILURE=3]="PODFAILURE",fe[fe.COMPILEFAILURE=4]="COMPILEFAILURE",fe[fe.EXECUTEFAILURE=5]="EXECUTEFAILURE",fe[fe.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",fe))(te||{})},33227:function(ot,Ze,ee){"use strict";ee.d(Ze,{H7:function(){return de},KC:function(){return ne},M3:function(){return b},MK:function(){return me},MU:function(){return _e},Rg:function(){return oe},WH:function(){return y},X6:function(){return pe},bM:function(){return be},bx:function(){return a},dd:function(){return he},de:function(){return ue},fi:function(){return ge},fu:function(){return fe},gu:function(){return E},n4:function(){return le},qe:function(){return z},rL:function(){return ie},rX:function(){return ae},uc:function(){return ve},vl:function(){return re},wO:function(){return x},zO:function(){return ce}});var te=ee(33170);function fe(Se){return(0,te.U2)(`mypractices/${Se}.json`,{hidePopLogin:!0})}function be(Se,Le){return(0,te.v_)(`mypractices/${Se}/code_submit.json`,Le)}function _e(Se,Le){return(0,te.v_)(`mypractices/${Se}/code_debug.json`,Le)}function ce(Se,Le){return Le.language&&(Le.language=encodeURIComponent(Le.language)),(0,te.U2)(`mypractices/${Se}/submit_records.json`,Le)}function pe(Se){return(0,te.U2)("mypractices/record_detail.json",{id:Se})}function ae(Se,Le){return(0,te.U2)(`mypractices/${Se}/result.json`,{mode:Le})}function me(Se,Le){return(0,te.v_)(`mypractices/${Se}/add_notes.json`,Le)}function de(Se,Le){return(0,te.v_)(`mypractices/${Se}/restore_initial_code.json`,Le)}function ge(Se,Le){return(0,te.v_)(`mypractices/${Se}/sync_code.json`,Le)}function le(Se,Le){return(0,te.v_)(`mypractices/${Se}/update_code.json`,Le)}function he(Se){return(0,te.v_)(`mypractices/${Se}/initial_codes.json`)}function re(Se,Le){return(0,te.v_)(`discusses/${Se}/plus.json`,Le)}function ne(Se){return(0,te.U2)("practices/practices_list.json",Se)}function y(Se,Le){return(0,te.U2)(`practices/${Se}/question_solution_articles`,Le)}function a(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles`,Le)}function E(Se,Le){return(0,te.gz)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function b(Se,Le){return(0,te.U2)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/edit`,Le)}function x(Se,Le){return(0,te.U2)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function z(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/set_authority_or_excellent`,Le)}function oe(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/praise_or_treads`,Le)}function ie(Se,Le){return(0,te.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/hide`)}function ue(Se,Le){return(0,te.IV)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function ve(Se,Le){return(0,te.v_)(`mypractices/${Se}/update_practice_time_sum`,Le)}},93989:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ne}});var te=ee(67294),fe=ee(2453),be=ee(83062),_e=ee(57953),ce=ee(71230),pe=ee(15746),ae=ee(28452),me=ee(71577),de=ee(35567),ge=ee(33170),le=ee(85725),he=ee(35973),re=(a,E,b)=>new Promise((x,z)=>{var oe=ve=>{try{ue(b.next(ve))}catch(Se){z(Se)}},ie=ve=>{try{ue(b.throw(ve))}catch(Se){z(Se)}},ue=ve=>ve.done?x(ve.value):Promise.resolve(ve.value).then(oe,ie);ue((b=b.apply(a,E)).next())}),ne=({id:a,activeDiscussIndex:E,onReplyDiscuss:b,adminOrOperator:x})=>{const z=(0,he.useIntl)(),[oe,ie]=(0,te.useState)(""),[ue,ve]=(0,te.useState)(!1);function Se(we){ie(we)}function Le(){if(!oe){fe.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}b(a,oe),ie("")}return(0,te.useEffect)(()=>{E!=a&&ve(!1)},[E]),te.createElement("div",{key:a,className:"discuss-item-editor",style:{display:E===a?"block":"none",width:"100%"}},te.createElement(de.Z,{miniToolbar:!0,startInit:E===a,defaultValue:oe,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:Se,extraUse:x&&te.createElement(be.Z,{color:"#fff",open:ue,destroyTooltipOnHide:!0,title:y({id:a,isOpen:ue,activeDiscussIndex:E,onChange:Se,setIsOpen:ve}),overlayStyle:{maxWidth:600}},te.createElement("a",{title:ue?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>ve(!ue)},te.createElement("i",{className:"iconfont icon-dianzan11"})))}),te.createElement("a",{onClick:Le,className:"btn-send"},z.formatMessage({id:"shixuns.send",defaultMessage:"\u53D1\u9001"})))};const y=a=>{const E=(0,he.useIntl)(),[b,x]=(0,te.useState)(!1),[z,oe]=(0,te.useState)([]),[ie,ue]=(0,te.useState)(1);(0,te.useEffect)(()=>{a!=null&&a.isOpen?ve():(ue(1),oe([]))},[a==null?void 0:a.isOpen]);const ve=()=>re(void 0,null,function*(){x(!0);const Se=yield(0,ge.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(Se==null?void 0:Se.status)==0&&oe(Se==null?void 0:Se.answer),x(!1)});return te.createElement(_e.Z,{spinning:b},te.createElement("div",{style:{color:"#000"}},te.createElement(le.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(z==null?void 0:z[ie-1])||""}),te.createElement(ce.Z,{justify:"end",align:"middle"},te.createElement(pe.Z,null,te.createElement(ae.Z,{simple:!0,current:ie,pageSize:1,total:(z==null?void 0:z.length)||0,onChange:Se=>{ue(Se)}})),te.createElement(pe.Z,null,te.createElement(me.ZP,{onClick:()=>re(void 0,null,function*(){a==null||a.onChange(z==null?void 0:z[ie-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},51959:function(ot,Ze,ee){"use strict";ee.d(Ze,{BU:function(){return fe},Dj:function(){return te},gH:function(){return be},vp:function(){return _e}});function te(ce){try{ce.mozRequestFullScreen?ce.mozRequestFullScreen():ce.webkitRequestFullScreen&&ce.webkitRequestFullScreen()}catch(pe){console.log(pe,":e")}}function fe(){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 be=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function _e(){var ce=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,pe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",ce),window.isFullScreen?window.isFullScreen:ce!=null}},40471:function(ot,Ze,ee){"use strict";ee.d(Ze,{G:function(){return ce},t:function(){return _e}});var te=ee(58971),fe=ee.n(te);const be=null;function _e(pe,ae){let me=fe().get("__ec");me||(me={}),me[pe]=ae,fe().set("__ec",me)}function ce(pe,ae){let me=fe().get("__ec");return me?me[pe]===void 0?ae:me[pe]:ae}},24577:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return vo}});class te{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(se,ye){return se.__proto__=ye,se},Object.assign=Object.assign||function(se){if(se==null)throw new TypeError("Cannot convert undefined or null to object");let ye=Object(se);for(let Pe=1;Pe<arguments.length;Pe++){let Ae=arguments[Pe];if(Ae!=null)for(let Oe in Ae)Ae.hasOwnProperty(Oe)&&(ye[Oe]=Ae[Oe])}return ye},typeof self.Promise!="function"&&ee(82702).polyfill()}}te.install();var fe=te,be=ee(17187),_e=ee.n(be);class ce{static e(se,ye){(!se||ce.FORCE_GLOBAL_TAG)&&(se=ce.GLOBAL_TAG);let Pe=`[${se}] > ${ye}`;ce.ENABLE_CALLBACK&&ce.emitter.emit("log","error",Pe),ce.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(se,ye){(!se||ce.FORCE_GLOBAL_TAG)&&(se=ce.GLOBAL_TAG);let Pe=`[${se}] > ${ye}`;ce.ENABLE_CALLBACK&&ce.emitter.emit("log","info",Pe),ce.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(se,ye){(!se||ce.FORCE_GLOBAL_TAG)&&(se=ce.GLOBAL_TAG);let Pe=`[${se}] > ${ye}`;ce.ENABLE_CALLBACK&&ce.emitter.emit("log","warn",Pe),ce.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(se,ye){(!se||ce.FORCE_GLOBAL_TAG)&&(se=ce.GLOBAL_TAG);let Pe=`[${se}] > ${ye}`;ce.ENABLE_CALLBACK&&ce.emitter.emit("log","debug",Pe),ce.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(se,ye){(!se||ce.FORCE_GLOBAL_TAG)&&(se=ce.GLOBAL_TAG);let Pe=`[${se}] > ${ye}`;ce.ENABLE_CALLBACK&&ce.emitter.emit("log","verbose",Pe),ce.ENABLE_VERBOSE&&console.log(Pe)}}ce.GLOBAL_TAG="flv.js",ce.FORCE_GLOBAL_TAG=!1,ce.ENABLE_ERROR=!0,ce.ENABLE_INFO=!0,ce.ENABLE_WARN=!0,ce.ENABLE_DEBUG=!0,ce.ENABLE_VERBOSE=!0,ce.ENABLE_CALLBACK=!1,ce.emitter=new(_e());var pe=ce;class ae{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(se){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=se,this._totalBytes+=se):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=se,this._totalBytes+=se):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=se,this._totalBytes+=se,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let se=(this._now()-this._lastCheckpoint)/1e3;return se==0&&(se=1),this._intervalBytes/se/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let se=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/se/1024}}var me=ae;class de{constructor(se){this._message=se}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class ge extends de{constructor(se){super(se)}get name(){return"IllegalStateException"}}class le extends de{constructor(se){super(se)}get name(){return"InvalidArgumentException"}}class he extends de{constructor(se){super(se)}get name(){return"NotImplementedException"}}const re={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},ne={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class y{constructor(se){this._type=se||"undefined",this._status=re.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=re.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===re.kConnecting||this._status===re.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(se){this._onContentLengthKnown=se}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(se){this._onURLRedirect=se}get onDataArrival(){return this._onDataArrival}set onDataArrival(se){this._onDataArrival=se}get onError(){return this._onError}set onError(se){this._onError=se}get onComplete(){return this._onComplete}set onComplete(se){this._onComplete=se}open(se,ye){throw new he("Unimplemented abstract function!")}abort(){throw new he("Unimplemented abstract function!")}}let a={};function E(){let hn=self.navigator.userAgent.toLowerCase(),se=/(edge)\/([\w.]+)/.exec(hn)||/(opr)[\/]([\w.]+)/.exec(hn)||/(chrome)[ \/]([\w.]+)/.exec(hn)||/(iemobile)[\/]([\w.]+)/.exec(hn)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(hn)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(hn)||/(webkit)[ \/]([\w.]+)/.exec(hn)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(hn)||/(msie) ([\w.]+)/.exec(hn)||hn.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(hn)||hn.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(hn)||[],ye=/(ipad)/.exec(hn)||/(ipod)/.exec(hn)||/(windows phone)/.exec(hn)||/(iphone)/.exec(hn)||/(kindle)/.exec(hn)||/(android)/.exec(hn)||/(windows)/.exec(hn)||/(mac)/.exec(hn)||/(linux)/.exec(hn)||/(cros)/.exec(hn)||[],Pe={browser:se[5]||se[3]||se[1]||"",version:se[2]||se[4]||"0",majorVersion:se[4]||se[2]||"0",platform:ye[0]||""},Ae={};if(Pe.browser){Ae[Pe.browser]=!0;let Oe=Pe.majorVersion.split(".");Ae.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},Oe.length>1&&(Ae.version.minor=parseInt(Oe[1],10)),Oe.length>2&&(Ae.version.build=parseInt(Oe[2],10))}if(Pe.platform&&(Ae[Pe.platform]=!0),(Ae.chrome||Ae.opr||Ae.safari)&&(Ae.webkit=!0),Ae.rv||Ae.iemobile){Ae.rv&&delete Ae.rv;let Oe="msie";Pe.browser=Oe,Ae[Oe]=!0}if(Ae.edge){delete Ae.edge;let Oe="msedge";Pe.browser=Oe,Ae[Oe]=!0}if(Ae.opr){let Oe="opera";Pe.browser=Oe,Ae[Oe]=!0}if(Ae.safari&&Ae.android){let Oe="android";Pe.browser=Oe,Ae[Oe]=!0}Ae.name=Pe.browser,Ae.platform=Pe.platform;for(let Oe in a)a.hasOwnProperty(Oe)&&delete a[Oe];Object.assign(a,Ae)}E();var b=a;class x extends y{static isSupported(){try{let se=b.msedge&&b.version.minor>=15048,ye=b.msedge?se:!0;return self.fetch&&self.ReadableStream&&ye}catch(se){return!1}}constructor(se,ye){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=se,this._config=ye,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(se,ye){this._dataSource=se,this._range=ye;let Pe=se.url;this._config.reuseRedirectedURL&&se.redirectedURL!=null&&(Pe=se.redirectedURL);let Ae=this._seekHandler.getConfig(Pe,ye),Oe=new self.Headers;if(typeof Ae.headers=="object"){let pt=Ae.headers;for(let gn in pt)pt.hasOwnProperty(gn)&&Oe.append(gn,pt[gn])}let Je={method:"GET",headers:Oe,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let pt in this._config.headers)Oe.append(pt,this._config.headers[pt]);se.cors===!1&&(Je.mode="same-origin"),se.withCredentials&&(Je.credentials="include"),se.referrerPolicy&&(Je.referrerPolicy=se.referrerPolicy),this._status=re.kConnecting,self.fetch(Ae.url,Je).then(pt=>{if(this._requestAbort){this._requestAbort=!1,this._status=re.kIdle;return}if(pt.ok&&pt.status>=200&&pt.status<=299){if(pt.url!==Ae.url&&this._onURLRedirect){let $t=this._seekHandler.removeURLParameters(pt.url);this._onURLRedirect($t)}let gn=pt.headers.get("Content-Length");return gn!=null&&(this._contentLength=parseInt(gn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,pt.body.getReader())}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:pt.status,msg:pt.statusText});else throw new de("FetchStreamLoader: Http code invalid, "+pt.status+" "+pt.statusText)}).catch(pt=>{if(this._status=re.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:pt.message});else throw pt})}abort(){this._requestAbort=!0}_pump(se){return se.read().then(ye=>{if(ye.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=re.kError;let Pe=ne.EARLY_EOF,Ae={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(Pe,Ae);else throw new de(Ae.msg)}else this._status=re.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=re.kComplete,se.cancel();this._status=re.kBuffering;let Pe=ye.value.buffer,Ae=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength,this._onDataArrival&&this._onDataArrival(Pe,Ae,this._receivedLength),this._pump(se)}}).catch(ye=>{if(ye.code===11&&b.msedge)return;this._status=re.kError;let Pe=0,Ae=null;if((ye.code===19||ye.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(Pe=ne.EARLY_EOF,Ae={code:ye.code,msg:"Fetch stream meet Early-EOF"}):(Pe=ne.EXCEPTION,Ae={code:ye.code,msg:ye.message}),this._onError)this._onError(Pe,Ae);else throw new de(Ae.msg)})}}var z=x;class oe extends y{static isSupported(){try{let se=new XMLHttpRequest;return se.open("GET","https://example.com",!0),se.responseType="moz-chunked-arraybuffer",se.responseType==="moz-chunked-arraybuffer"}catch(se){return pe.w("MozChunkedLoader",se.message),!1}}constructor(se,ye){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=se,this._config=ye,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(se,ye){this._dataSource=se,this._range=ye;let Pe=se.url;this._config.reuseRedirectedURL&&se.redirectedURL!=null&&(Pe=se.redirectedURL);let Ae=this._seekHandler.getConfig(Pe,ye);this._requestURL=Ae.url;let Oe=this._xhr=new XMLHttpRequest;if(Oe.open("GET",Ae.url,!0),Oe.responseType="moz-chunked-arraybuffer",Oe.onreadystatechange=this._onReadyStateChange.bind(this),Oe.onprogress=this._onProgress.bind(this),Oe.onloadend=this._onLoadEnd.bind(this),Oe.onerror=this._onXhrError.bind(this),se.withCredentials&&(Oe.withCredentials=!0),typeof Ae.headers=="object"){let Je=Ae.headers;for(let pt in Je)Je.hasOwnProperty(pt)&&Oe.setRequestHeader(pt,Je[pt])}if(typeof this._config.headers=="object"){let Je=this._config.headers;for(let pt in Je)Je.hasOwnProperty(pt)&&Oe.setRequestHeader(pt,Je[pt])}this._status=re.kConnecting,Oe.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=re.kComplete}_onReadyStateChange(se){let ye=se.target;if(ye.readyState===2){if(ye.responseURL!=null&&ye.responseURL!==this._requestURL&&this._onURLRedirect){let Pe=this._seekHandler.removeURLParameters(ye.responseURL);this._onURLRedirect(Pe)}if(ye.status!==0&&(ye.status<200||ye.status>299))if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ye.status,msg:ye.statusText});else throw new de("MozChunkedLoader: Http code invalid, "+ye.status+" "+ye.statusText);else this._status=re.kBuffering}}_onProgress(se){if(this._status===re.kError)return;this._contentLength===null&&se.total!==null&&se.total!==0&&(this._contentLength=se.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let ye=se.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=ye.byteLength,this._onDataArrival&&this._onDataArrival(ye,Pe,this._receivedLength)}_onLoadEnd(se){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===re.kError)return;this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(se){this._status=re.kError;let ye=0,Pe=null;if(this._contentLength&&se.loaded<this._contentLength?(ye=ne.EARLY_EOF,Pe={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(ye=ne.EXCEPTION,Pe={code:-1,msg:se.constructor.name+" "+se.type}),this._onError)this._onError(ye,Pe);else throw new de(Pe.msg)}}var ie=oe;class ue extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let se=new XMLHttpRequest;return se.open("GET","https://example.com",!0),se.responseType="ms-stream",se.responseType==="ms-stream"}catch(se){return Log.w("MSStreamLoader",se.message),!1}}constructor(se,ye){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=se,this._config=ye,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(se,ye){this._internalOpen(se,ye,!1)}_internalOpen(se,ye,Pe){this._dataSource=se,Pe?this._currentRange=ye:this._totalRange=ye;let Ae=se.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Ae=this._currentRedirectedURL:se.redirectedURL!=null&&(Ae=se.redirectedURL));let Oe=this._seekHandler.getConfig(Ae,ye);this._currentRequestURL=Oe.url;let Je=this._reader=new self.MSStreamReader;Je.onprogress=this._msrOnProgress.bind(this),Je.onload=this._msrOnLoad.bind(this),Je.onerror=this._msrOnError.bind(this);let pt=this._xhr=new XMLHttpRequest;if(pt.open("GET",Oe.url,!0),pt.responseType="ms-stream",pt.onreadystatechange=this._xhrOnReadyStateChange.bind(this),pt.onerror=this._xhrOnError.bind(this),se.withCredentials&&(pt.withCredentials=!0),typeof Oe.headers=="object"){let gn=Oe.headers;for(let $t in gn)gn.hasOwnProperty($t)&&pt.setRequestHeader($t,gn[$t])}if(typeof this._config.headers=="object"){let gn=this._config.headers;for(let $t in gn)gn.hasOwnProperty($t)&&pt.setRequestHeader($t,gn[$t])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,pt.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(se){let ye=se.target;if(ye.readyState===2)if(ye.status>=200&&ye.status<=299){if(this._status=LoaderStatus.kBuffering,ye.responseURL!=null){let Ae=this._seekHandler.removeURLParameters(ye.responseURL);ye.responseURL!==this._currentRequestURL&&Ae!==this._currentRedirectedURL&&(this._currentRedirectedURL=Ae,this._onURLRedirect&&this._onURLRedirect(Ae))}let Pe=ye.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){let Ae=parseInt(Pe);Ae>0&&(this._contentLength=Ae,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:ye.status,msg:ye.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+ye.status+" "+ye.statusText);else if(ye.readyState===3&&ye.status>=200&&ye.status<=299){this._status=LoaderStatus.kBuffering;let Pe=ye.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(se){this._status=LoaderStatus.kError;let ye=LoaderErrors.EXCEPTION,Pe={code:-1,msg:se.constructor.name+" "+se.type};if(this._onError)this._onError(ye,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(se){let Pe=se.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let Ae=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let Oe=this._totalRange.from+this._receivedLength;this._receivedLength+=Ae.byteLength,this._onDataArrival&&this._onDataArrival(Ae,Oe,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Oe+Ae.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let se={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,se,!0)}}_msrOnLoad(se){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(se){this._status=LoaderStatus.kError;let ye=0,Pe=null;if(this._contentLength&&this._receivedLength<this._contentLength?(ye=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:"MSStream meet Early-Eof"}):(ye=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:se.constructor.name+" "+se.type}),this._onError)this._onError(ye,Pe);else throw new RuntimeException(Pe.msg)}}var ve=null;class Se extends y{static isSupported(){try{let se=new XMLHttpRequest;return se.open("GET","https://example.com",!0),se.responseType="arraybuffer",se.responseType==="arraybuffer"}catch(se){return pe.w("RangeLoader",se.message),!1}}constructor(se,ye){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=se,this._config=ye,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 me,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(se,ye){this._dataSource=se,this._range=ye,this._status=re.kConnecting;let Pe=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(Pe=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!Pe?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let se=this._currentChunkSizeKB*1024,ye=this._range.from+this._receivedLength,Pe=ye+se;this._contentLength!=null&&Pe-this._range.from>=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:ye,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(se,ye){this._lastTimeLoaded=0;let Pe=se.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:se.redirectedURL!=null&&(Pe=se.redirectedURL));let Ae=this._seekHandler.getConfig(Pe,ye);this._currentRequestURL=Ae.url;let Oe=this._xhr=new XMLHttpRequest;if(Oe.open("GET",Ae.url,!0),Oe.responseType="arraybuffer",Oe.onreadystatechange=this._onReadyStateChange.bind(this),Oe.onprogress=this._onProgress.bind(this),Oe.onload=this._onLoad.bind(this),Oe.onerror=this._onXhrError.bind(this),se.withCredentials&&(Oe.withCredentials=!0),typeof Ae.headers=="object"){let Je=Ae.headers;for(let pt in Je)Je.hasOwnProperty(pt)&&Oe.setRequestHeader(pt,Je[pt])}if(typeof this._config.headers=="object"){let Je=this._config.headers;for(let pt in Je)Je.hasOwnProperty(pt)&&Oe.setRequestHeader(pt,Je[pt])}Oe.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=re.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(se){let ye=se.target;if(ye.readyState===2){if(ye.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(ye.responseURL);ye.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(ye.status>=200&&ye.status<=299){if(this._waitForTotalLength)return;this._status=re.kBuffering}else if(this._status=re.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ye.status,msg:ye.statusText});else throw new de("RangeLoader: Http code invalid, "+ye.status+" "+ye.statusText)}}_onProgress(se){if(this._status===re.kError)return;if(this._contentLength===null){let Pe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Pe=!0;let Ae=se.total;this._internalAbort(),Ae!=null&Ae!==0&&(this._totalLength=Ae)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,Pe){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let ye=se.loaded-this._lastTimeLoaded;this._lastTimeLoaded=se.loaded,this._speedSampler.addBytes(ye)}_normalizeSpeed(se){let ye=this._chunkSizeKBList,Pe=ye.length-1,Ae=0,Oe=0,Je=Pe;if(se<ye[0])return ye[0];for(;Oe<=Je;){if(Ae=Oe+Math.floor((Je-Oe)/2),Ae===Pe||se>=ye[Ae]&&se<ye[Ae+1])return ye[Ae];ye[Ae]<se?Oe=Ae+1:Je=Ae-1}}_onLoad(se){if(this._status===re.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let ye=this._speedSampler.lastSecondKBps;if(ye===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(ye=this._speedSampler.currentKBps)),ye!==0){let Je=this._normalizeSpeed(ye);this._currentSpeedNormalized!==Je&&(this._currentSpeedNormalized=Je,this._currentChunkSizeKB=Je)}let Pe=se.target.response,Ae=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let Oe=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Oe=!0,this._onDataArrival&&this._onDataArrival(Pe,Ae,this._receivedLength),Oe&&(this._status=re.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(se){this._status=re.kError;let ye=0,Pe=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(ye=ne.EARLY_EOF,Pe={code:-1,msg:"RangeLoader meet Early-Eof"}):(ye=ne.EXCEPTION,Pe={code:-1,msg:se.constructor.name+" "+se.type}),this._onError)this._onError(ye,Pe);else throw new de(Pe.msg)}}var Le=Se;class we extends y{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(se){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(se){try{let ye=this._ws=new self.WebSocket(se.url);ye.binaryType="arraybuffer",ye.onopen=this._onWebSocketOpen.bind(this),ye.onclose=this._onWebSocketClose.bind(this),ye.onmessage=this._onWebSocketMessage.bind(this),ye.onerror=this._onWebSocketError.bind(this),this._status=re.kConnecting}catch(ye){this._status=re.kError;let Pe={code:ye.code,msg:ye.message};if(this._onError)this._onError(ne.EXCEPTION,Pe);else throw new de(Pe.msg)}}abort(){let se=this._ws;se&&(se.readyState===0||se.readyState===1)&&(this._requestAbort=!0,se.close()),this._ws=null,this._status=re.kComplete}_onWebSocketOpen(se){this._status=re.kBuffering}_onWebSocketClose(se){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=re.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(se){if(se.data instanceof ArrayBuffer)this._dispatchArrayBuffer(se.data);else if(se.data instanceof Blob){let ye=new FileReader;ye.onload=()=>{this._dispatchArrayBuffer(ye.result)},ye.readAsArrayBuffer(se.data)}else{this._status=re.kError;let ye={code:-1,msg:"Unsupported WebSocket message type: "+se.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,ye);else throw new de(ye.msg)}}_dispatchArrayBuffer(se){let ye=se,Pe=this._receivedLength;this._receivedLength+=ye.byteLength,this._onDataArrival&&this._onDataArrival(ye,Pe,this._receivedLength)}_onWebSocketError(se){this._status=re.kError;let ye={code:se.code,msg:se.message};if(this._onError)this._onError(ne.EXCEPTION,ye);else throw new de(ye.msg)}}var Ne=we;class xe{constructor(se){this._zeroStart=se||!1}getConfig(se,ye){let Pe={};if(ye.from!==0||ye.to!==-1){let Ae;ye.to!==-1?Ae=`bytes=${ye.from.toString()}-${ye.to.toString()}`:Ae=`bytes=${ye.from.toString()}-`,Pe.Range=Ae}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:se,headers:Pe}}removeURLParameters(se){return se}}var st=xe;class Ye{constructor(se,ye){this._startName=se,this._endName=ye}getConfig(se,ye){let Pe=se;if(ye.from!==0||ye.to!==-1){let Ae=!0;Pe.indexOf("?")===-1&&(Pe+="?",Ae=!1),Ae&&(Pe+="&"),Pe+=`${this._startName}=${ye.from.toString()}`,ye.to!==-1&&(Pe+=`&${this._endName}=${ye.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(se){let ye=se.split("?")[0],Pe,Ae=se.indexOf("?");Ae!==-1&&(Pe=se.substring(Ae+1));let Oe="";if(Pe!=null&&Pe.length>0){let Je=Pe.split("&");for(let pt=0;pt<Je.length;pt++){let gn=Je[pt].split("="),$t=pt>0;gn[0]!==this._startName&&gn[0]!==this._endName&&($t&&(Oe+="&"),Oe+=Je[pt])}}return Oe.length===0?ye:ye+"?"+Oe}}var lt=Ye;class Me{constructor(se,ye,Pe){this.TAG="IOController",this._config=ye,this._extraData=Pe,this._stashInitialSize=1024*384,ye.stashInitialSize!=null&&ye.stashInitialSize>0&&(this._stashInitialSize=ye.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,ye.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=se,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(se.url),this._refTotalLength=se.filesize?se.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new me,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(se){this._extraData=se}get onDataArrival(){return this._onDataArrival}set onDataArrival(se){this._onDataArrival=se}get onSeeked(){return this._onSeeked}set onSeeked(se){this._onSeeked=se}get onError(){return this._onError}set onError(se){this._onError=se}get onComplete(){return this._onComplete}set onComplete(se){this._onComplete=se}get onRedirect(){return this._onRedirect}set onRedirect(se){this._onRedirect=se}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(se){this._onRecoveredEarlyEof=se}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===Le?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let se=this._config;if(se.seekType==="range")this._seekHandler=new st(this._config.rangeLoadZeroStart);else if(se.seekType==="param"){let ye=se.seekParamStart||"bstart",Pe=se.seekParamEnd||"bend";this._seekHandler=new lt(ye,Pe)}else if(se.seekType==="custom"){if(typeof se.customSeekHandler!="function")throw new le("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new se.customSeekHandler}else throw new le(`Invalid seekType in config: ${se.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Ne;else if(z.isSupported())this._loaderClass=z;else if(ie.isSupported())this._loaderClass=ie;else if(Le.isSupported())this._loaderClass=Le;else throw new de("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(se){this._currentRange={from:0,to:-1},se&&(this._currentRange.from=se),this._speedSampler.reset(),se||(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 se=this._resumeFrom;this._resumeFrom=0,this._internalSeek(se,!0)}}seek(se){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(se,!0)}_internalSeek(se,ye){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ye),this._loader.destroy(),this._loader=null;let Pe={from:se,to:-1};this._currentRange={from:Pe.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Pe),this._onSeeked&&this._onSeeked()}updateUrl(se){if(!se||typeof se!="string"||se.length===0)throw new le("Url must be a non-empty string!");this._dataSource.url=se}_expandBuffer(se){let ye=this._stashSize;for(;ye+1024*1024*1<se;)ye*=2;if(ye+=1024*1024*1,ye===this._bufferSize)return;let Pe=new ArrayBuffer(ye);if(this._stashUsed>0){let Ae=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,ye).set(Ae,0)}this._stashBuffer=Pe,this._bufferSize=ye}_normalizeSpeed(se){let ye=this._speedNormalizeList,Pe=ye.length-1,Ae=0,Oe=0,Je=Pe;if(se<ye[0])return ye[0];for(;Oe<=Je;){if(Ae=Oe+Math.floor((Je-Oe)/2),Ae===Pe||se>=ye[Ae]&&se<ye[Ae+1])return ye[Ae];ye[Ae]<se?Oe=Ae+1:Je=Ae-1}}_adjustStashSize(se){let ye=0;this._config.isLive||se<512?ye=se:se>=512&&se<=1024?ye=Math.floor(se*1.5):ye=se*2,ye>8192&&(ye=8192);let Pe=ye*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=ye*1024}_dispatchChunks(se,ye){return this._currentRange.to=ye+se.byteLength-1,this._onDataArrival(se,ye)}_onURLRedirect(se){this._redirectedURL=se,this._onRedirect&&this._onRedirect(se)}_onContentLengthKnown(se){se&&this._fullRequestFlag&&(this._totalLength=se,this._fullRequestFlag=!1)}_onLoaderChunkArrival(se,ye,Pe){if(!this._onDataArrival)throw new ge("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(se.byteLength);let Ae=this._speedSampler.lastSecondKBps;if(Ae!==0){let Oe=this._normalizeSpeed(Ae);this._speedNormalized!==Oe&&(this._speedNormalized=Oe,this._adjustStashSize(Oe))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=ye),this._stashUsed+se.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(se),this._stashUsed),this._stashUsed+=se.byteLength;else{let Oe=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let Je=this._stashBuffer.slice(0,this._stashUsed),pt=this._dispatchChunks(Je,this._stashByteStart);if(pt<Je.byteLength){if(pt>0){let gn=new Uint8Array(Je,pt);Oe.set(gn,0),this._stashUsed=gn.byteLength,this._stashByteStart+=pt}}else this._stashUsed=0,this._stashByteStart+=pt;this._stashUsed+se.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+se.byteLength),Oe=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Oe.set(new Uint8Array(se),this._stashUsed),this._stashUsed+=se.byteLength}else{let Je=this._dispatchChunks(se,ye);if(Je<se.byteLength){let pt=se.byteLength-Je;pt>this._bufferSize&&(this._expandBuffer(pt),Oe=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Oe.set(new Uint8Array(se,Je),0),this._stashUsed+=pt,this._stashByteStart=ye+Je}}}else if(this._stashUsed===0){let Oe=this._dispatchChunks(se,ye);if(Oe<se.byteLength){let Je=se.byteLength-Oe;Je>this._bufferSize&&this._expandBuffer(Je),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(se,Oe),0),this._stashUsed+=Je,this._stashByteStart=ye+Oe}}else{this._stashUsed+se.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+se.byteLength);let Oe=new Uint8Array(this._stashBuffer,0,this._bufferSize);Oe.set(new Uint8Array(se),this._stashUsed),this._stashUsed+=se.byteLength;let Je=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(Je<this._stashUsed&&Je>0){let pt=new Uint8Array(this._stashBuffer,Je);Oe.set(pt,0)}this._stashUsed-=Je,this._stashByteStart+=Je}}_flushStashBuffer(se){if(this._stashUsed>0){let ye=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(ye,this._stashByteStart),Ae=ye.byteLength-Pe;if(Pe<ye.byteLength)if(se)pe.w(this.TAG,`${Ae} bytes unconsumed data remain when flush buffer, dropped`);else{if(Pe>0){let Oe=new Uint8Array(this._stashBuffer,0,this._bufferSize),Je=new Uint8Array(ye,Pe);Oe.set(Je,0),this._stashUsed=Je.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,Ae}return 0}_onLoaderComplete(se,ye){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(se,ye){switch(pe.e(this.TAG,`Loader error, code = ${ye.code}, msg = ${ye.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,se=ne.UNRECOVERABLE_EARLY_EOF),se){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe<this._totalLength&&(pe.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}se=ne.UNRECOVERABLE_EARLY_EOF;break}case ne.UNRECOVERABLE_EARLY_EOF:case ne.CONNECTING_TIMEOUT:case ne.HTTP_STATUS_CODE_INVALID:case ne.EXCEPTION:break}if(this._onError)this._onError(se,ye);else throw new de("IOException: "+ye.msg)}}var Be=Me;const Re={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 ke(){return Object.assign({},Re)}class Ge{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let se=new Be({},ke()),ye=se.loaderType;return se.destroy(),ye=="fetch-stream-loader"||ye=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let se=new Be({},ke()),ye=se.loaderType;return se.destroy(),ye}static supportNativeMediaPlayback(se){Ge.videoElement==null&&(Ge.videoElement=window.document.createElement("video"));let ye=Ge.videoElement.canPlayType(se);return ye==="probably"||ye=="maybe"}static getFeatureList(){let se={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return se.mseFlvPlayback=Ge.supportMSEH264Playback(),se.networkStreamIO=Ge.supportNetworkStreamIO(),se.networkLoaderName=Ge.getNetworkLoaderTypeName(),se.mseLiveFlvPlayback=se.mseFlvPlayback&&se.networkStreamIO,se.nativeMP4H264Playback=Ge.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),se.nativeWebmVP8Playback=Ge.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),se.nativeWebmVP9Playback=Ge.supportNativeMediaPlayback('video/webm; codecs="vp9"'),se}}var Et=Ge,en={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 Zt{static get forceGlobalTag(){return pe.FORCE_GLOBAL_TAG}static set forceGlobalTag(se){pe.FORCE_GLOBAL_TAG=se,Zt._notifyChange()}static get globalTag(){return pe.GLOBAL_TAG}static set globalTag(se){pe.GLOBAL_TAG=se,Zt._notifyChange()}static get enableAll(){return pe.ENABLE_VERBOSE&&pe.ENABLE_DEBUG&&pe.ENABLE_INFO&&pe.ENABLE_WARN&&pe.ENABLE_ERROR}static set enableAll(se){pe.ENABLE_VERBOSE=se,pe.ENABLE_DEBUG=se,pe.ENABLE_INFO=se,pe.ENABLE_WARN=se,pe.ENABLE_ERROR=se,Zt._notifyChange()}static get enableDebug(){return pe.ENABLE_DEBUG}static set enableDebug(se){pe.ENABLE_DEBUG=se,Zt._notifyChange()}static get enableVerbose(){return pe.ENABLE_VERBOSE}static set enableVerbose(se){pe.ENABLE_VERBOSE=se,Zt._notifyChange()}static get enableInfo(){return pe.ENABLE_INFO}static set enableInfo(se){pe.ENABLE_INFO=se,Zt._notifyChange()}static get enableWarn(){return pe.ENABLE_WARN}static set enableWarn(se){pe.ENABLE_WARN=se,Zt._notifyChange()}static get enableError(){return pe.ENABLE_ERROR}static set enableError(se){pe.ENABLE_ERROR=se,Zt._notifyChange()}static getConfig(){return{globalTag:pe.GLOBAL_TAG,forceGlobalTag:pe.FORCE_GLOBAL_TAG,enableVerbose:pe.ENABLE_VERBOSE,enableDebug:pe.ENABLE_DEBUG,enableInfo:pe.ENABLE_INFO,enableWarn:pe.ENABLE_WARN,enableError:pe.ENABLE_ERROR,enableCallback:pe.ENABLE_CALLBACK}}static applyConfig(se){pe.GLOBAL_TAG=se.globalTag,pe.FORCE_GLOBAL_TAG=se.forceGlobalTag,pe.ENABLE_VERBOSE=se.enableVerbose,pe.ENABLE_DEBUG=se.enableDebug,pe.ENABLE_INFO=se.enableInfo,pe.ENABLE_WARN=se.enableWarn,pe.ENABLE_ERROR=se.enableError,pe.ENABLE_CALLBACK=se.enableCallback}static _notifyChange(){let se=Zt.emitter;if(se.listenerCount("change")>0){let ye=Zt.getConfig();se.emit("change",ye)}}static registerListener(se){Zt.emitter.addListener("change",se)}static removeListener(se){Zt.emitter.removeListener("change",se)}static addLogListener(se){pe.emitter.addListener("log",se),pe.emitter.listenerCount("log")>0&&(pe.ENABLE_CALLBACK=!0,Zt._notifyChange())}static removeLogListener(se){pe.emitter.removeListener("log",se),pe.emitter.listenerCount("log")===0&&(pe.ENABLE_CALLBACK=!1,Zt._notifyChange())}}Zt.emitter=new(_e());var rt=Zt;class at{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 se=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ye=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&&se&&ye}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(se){if(this.keyframesIndex==null)return null;let ye=this.keyframesIndex,Pe=this._search(ye.times,se);return{index:Pe,milliseconds:ye.times[Pe],fileposition:ye.filepositions[Pe]}}_search(se,ye){let Pe=0,Ae=se.length-1,Oe=0,Je=0,pt=Ae;for(ye<se[0]&&(Pe=0,Je=pt+1);Je<=pt;)if(Oe=Je+Math.floor((pt-Je)/2),Oe===Ae||ye>=se[Oe]&&ye<se[Oe+1]){Pe=Oe;break}else se[Oe]<ye?Je=Oe+1:pt=Oe-1;return Pe}}var Ct=at;function qt(hn,se,ye){let Pe=hn;if(se+ye<Pe.length){for(;ye--;)if((Pe[++se]&192)!==128)return!1;return!0}else return!1}function Gt(hn){let se=[],ye=hn,Pe=0,Ae=hn.length;for(;Pe<Ae;){if(ye[Pe]<128){se.push(String.fromCharCode(ye[Pe])),++Pe;continue}else if(!(ye[Pe]<192)){if(ye[Pe]<224){if(qt(ye,Pe,1)){let Oe=(ye[Pe]&31)<<6|ye[Pe+1]&63;if(Oe>=128){se.push(String.fromCharCode(Oe&65535)),Pe+=2;continue}}}else if(ye[Pe]<240){if(qt(ye,Pe,2)){let Oe=(ye[Pe]&15)<<12|(ye[Pe+1]&63)<<6|ye[Pe+2]&63;if(Oe>=2048&&(Oe&63488)!==55296){se.push(String.fromCharCode(Oe&65535)),Pe+=3;continue}}}else if(ye[Pe]<248&&qt(ye,Pe,3)){let Oe=(ye[Pe]&7)<<18|(ye[Pe+1]&63)<<12|(ye[Pe+2]&63)<<6|ye[Pe+3]&63;if(Oe>65536&&Oe<1114112){Oe-=65536,se.push(String.fromCharCode(Oe>>>10|55296)),se.push(String.fromCharCode(Oe&1023|56320)),Pe+=4;continue}}}se.push("\uFFFD"),++Pe}return se.join("")}var xt=Gt;let Ve=function(){let hn=new ArrayBuffer(2);return new DataView(hn).setInt16(0,256,!0),new Int16Array(hn)[0]===256}();class Qt{static parseScriptData(se,ye,Pe){let Ae={};try{let Oe=Qt.parseValue(se,ye,Pe),Je=Qt.parseValue(se,ye+Oe.size,Pe-Oe.size);Ae[Oe.data]=Je.data}catch(Oe){pe.e("AMF",Oe.toString())}return Ae}static parseObject(se,ye,Pe){if(Pe<3)throw new ge("Data not enough when parse ScriptDataObject");let Ae=Qt.parseString(se,ye,Pe),Oe=Qt.parseValue(se,ye+Ae.size,Pe-Ae.size),Je=Oe.objectEnd;return{data:{name:Ae.data,value:Oe.data},size:Ae.size+Oe.size,objectEnd:Je}}static parseVariable(se,ye,Pe){return Qt.parseObject(se,ye,Pe)}static parseString(se,ye,Pe){if(Pe<2)throw new ge("Data not enough when parse String");let Oe=new DataView(se,ye,Pe).getUint16(0,!Ve),Je;return Oe>0?Je=xt(new Uint8Array(se,ye+2,Oe)):Je="",{data:Je,size:2+Oe}}static parseLongString(se,ye,Pe){if(Pe<4)throw new ge("Data not enough when parse LongString");let Oe=new DataView(se,ye,Pe).getUint32(0,!Ve),Je;return Oe>0?Je=xt(new Uint8Array(se,ye+4,Oe)):Je="",{data:Je,size:4+Oe}}static parseDate(se,ye,Pe){if(Pe<10)throw new ge("Data size invalid when parse Date");let Ae=new DataView(se,ye,Pe),Oe=Ae.getFloat64(0,!Ve),Je=Ae.getInt16(8,!Ve);return Oe+=Je*60*1e3,{data:new Date(Oe),size:10}}static parseValue(se,ye,Pe){if(Pe<1)throw new ge("Data not enough when parse Value");let Ae=new DataView(se,ye,Pe),Oe=1,Je=Ae.getUint8(0),pt,gn=!1;try{switch(Je){case 0:pt=Ae.getFloat64(1,!Ve),Oe+=8;break;case 1:{pt=!!Ae.getUint8(1),Oe+=1;break}case 2:{let $t=Qt.parseString(se,ye+1,Pe-1);pt=$t.data,Oe+=$t.size;break}case 3:{pt={};let $t=0;for((Ae.getUint32(Pe-4,!Ve)&16777215)===9&&($t=3);Oe<Pe-4;){let Bn=Qt.parseObject(se,ye+Oe,Pe-Oe-$t);if(Bn.objectEnd)break;pt[Bn.data.name]=Bn.data.value,Oe+=Bn.size}Oe<=Pe-3&&(Ae.getUint32(Oe-1,!Ve)&16777215)===9&&(Oe+=3);break}case 8:{pt={},Oe+=4;let $t=0;for((Ae.getUint32(Pe-4,!Ve)&16777215)===9&&($t=3);Oe<Pe-8;){let Bn=Qt.parseVariable(se,ye+Oe,Pe-Oe-$t);if(Bn.objectEnd)break;pt[Bn.data.name]=Bn.data.value,Oe+=Bn.size}Oe<=Pe-3&&(Ae.getUint32(Oe-1,!Ve)&16777215)===9&&(Oe+=3);break}case 9:pt=void 0,Oe=1,gn=!0;break;case 10:{pt=[];let $t=Ae.getUint32(1,!Ve);Oe+=4;for(let Bn=0;Bn<$t;Bn++){let hr=Qt.parseValue(se,ye+Oe,Pe-Oe);pt.push(hr.data),Oe+=hr.size}break}case 11:{let $t=Qt.parseDate(se,ye+1,Pe-1);pt=$t.data,Oe+=$t.size;break}case 12:{let $t=Qt.parseString(se,ye+1,Pe-1);pt=$t.data,Oe+=$t.size;break}default:Oe=Pe,pe.w("AMF","Unsupported AMF value type "+Je)}}catch($t){pe.e("AMF",$t.toString())}return{data:pt,size:Oe,objectEnd:gn}}}var Ln=Qt;class Hn{constructor(se){this.TAG="ExpGolomb",this._buffer=se,this._buffer_index=0,this._total_bytes=se.byteLength,this._total_bits=se.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let se=this._total_bytes-this._buffer_index;if(se<=0)throw new ge("ExpGolomb: _fillCurrentWord() but no bytes available");let ye=Math.min(4,se),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+ye)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=ye,this._current_word_bits_left=ye*8}readBits(se){if(se>32)throw new le("ExpGolomb: readBits() bits exceeded max 32bits!");if(se<=this._current_word_bits_left){let Je=this._current_word>>>32-se;return this._current_word<<=se,this._current_word_bits_left-=se,Je}let ye=this._current_word_bits_left?this._current_word:0;ye=ye>>>32-this._current_word_bits_left;let Pe=se-this._current_word_bits_left;this._fillCurrentWord();let Ae=Math.min(Pe,this._current_word_bits_left),Oe=this._current_word>>>32-Ae;return this._current_word<<=Ae,this._current_word_bits_left-=Ae,ye=ye<<Ae|Oe,ye}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let se;for(se=0;se<this._current_word_bits_left;se++)if(this._current_word&2147483648>>>se)return this._current_word<<=se,this._current_word_bits_left-=se,se;return this._fillCurrentWord(),se+this._skipLeadingZero()}readUEG(){let se=this._skipLeadingZero();return this.readBits(se+1)-1}readSEG(){let se=this.readUEG();return se&1?se+1>>>1:-1*(se>>>1)}}var mn=Hn;class zt{static _ebsp2rbsp(se){let ye=se,Pe=ye.byteLength,Ae=new Uint8Array(Pe),Oe=0;for(let Je=0;Je<Pe;Je++)Je>=2&&ye[Je]===3&&ye[Je-1]===0&&ye[Je-2]===0||(Ae[Oe]=ye[Je],Oe++);return new Uint8Array(Ae.buffer,0,Oe)}static parseSPS(se){let ye=zt._ebsp2rbsp(se),Pe=new mn(ye);Pe.readByte();let Ae=Pe.readByte();Pe.readByte();let Oe=Pe.readByte();Pe.readUEG();let Je=zt.getProfileString(Ae),pt=zt.getLevelString(Oe),gn=1,$t=420,Bn=[0,420,422,444],hr=8;if((Ae===100||Ae===110||Ae===122||Ae===244||Ae===44||Ae===83||Ae===86||Ae===118||Ae===128||Ae===138||Ae===144)&&(gn=Pe.readUEG(),gn===3&&Pe.readBits(1),gn<=3&&($t=Bn[gn]),hr=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let tr=gn!==3?8:12;for(let er=0;er<tr;er++)Pe.readBool()&&(er<6?zt._skipScalingList(Pe,16):zt._skipScalingList(Pe,64))}Pe.readUEG();let gr=Pe.readUEG();if(gr===0)Pe.readUEG();else if(gr===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();let tr=Pe.readUEG();for(let er=0;er<tr;er++)Pe.readSEG()}let Nt=Pe.readUEG();Pe.readBits(1);let Wn=Pe.readUEG(),qn=Pe.readUEG(),Sn=Pe.readBits(1);Sn===0&&Pe.readBits(1),Pe.readBits(1);let Mn=0,Xn=0,Pr=0,ar=0;Pe.readBool()&&(Mn=Pe.readUEG(),Xn=Pe.readUEG(),Pr=Pe.readUEG(),ar=Pe.readUEG());let bo=1,fr=1,Qr=0,ko=!0,Go=0,on=0;if(Pe.readBool()){if(Pe.readBool()){let tr=Pe.readByte(),er=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],$o=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];tr>0&&tr<16?(bo=er[tr-1],fr=$o[tr-1]):tr===255&&(bo=Pe.readByte()<<8|Pe.readByte(),fr=Pe.readByte()<<8|Pe.readByte())}if(Pe.readBool()&&Pe.readBool(),Pe.readBool()&&(Pe.readBits(4),Pe.readBool()&&Pe.readBits(24)),Pe.readBool()&&(Pe.readUEG(),Pe.readUEG()),Pe.readBool()){let tr=Pe.readBits(32),er=Pe.readBits(32);ko=Pe.readBool(),Go=er,on=tr*2,Qr=Go/on}}let Za=1;(bo!==1||fr!==1)&&(Za=bo/fr);let Pa=0,so=0;if(gn===0)Pa=1,so=2-Sn;else{let tr=gn===3?1:2,er=gn===1?2:1;Pa=tr,so=er*(2-Sn)}let ni=(Wn+1)*16,Pn=(2-Sn)*((qn+1)*16);ni-=(Mn+Xn)*Pa,Pn-=(Pr+ar)*so;let mr=Math.ceil(ni*Za);return Pe.destroy(),Pe=null,{profile_string:Je,level_string:pt,bit_depth:hr,ref_frames:Nt,chroma_format:$t,chroma_format_string:zt.getChromaFormatString($t),frame_rate:{fixed:ko,fps:Qr,fps_den:on,fps_num:Go},sar_ratio:{width:bo,height:fr},codec_size:{width:ni,height:Pn},present_size:{width:mr,height:Pn}}}static _skipScalingList(se,ye){let Pe=8,Ae=8,Oe=0;for(let Je=0;Je<ye;Je++)Ae!==0&&(Oe=se.readSEG(),Ae=(Pe+Oe+256)%256),Pe=Ae===0?Pe:Ae}static getProfileString(se){switch(se){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(se){return(se/10).toFixed(1)}static getChromaFormatString(se){switch(se){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var et=zt,qe={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function ft(hn){return hn>>>8&255|(hn&255)<<8}function Dt(hn){return(hn&4278190080)>>>24|(hn&16711680)>>>8|(hn&65280)<<8|(hn&255)<<24}function tt(hn,se){return hn[se]<<24|hn[se+1]<<16|hn[se+2]<<8|hn[se+3]}class vt{constructor(se,ye){this.TAG="FLVDemuxer",this._config=ye,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=se.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=se.hasAudioTrack,this._hasVideo=se.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Ct,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 Pe=new ArrayBuffer(2);return new DataView(Pe).setInt16(0,256,!0),new Int16Array(Pe)[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(se){let ye=new Uint8Array(se),Pe={match:!1};if(ye[0]!==70||ye[1]!==76||ye[2]!==86||ye[3]!==1)return Pe;let Ae=(ye[4]&4)>>>2!==0,Oe=(ye[4]&1)!==0,Je=tt(ye,5);return Je<9?Pe:{match:!0,consumed:Je,dataOffset:Je,hasAudioTrack:Ae,hasVideoTrack:Oe}}bindDataSource(se){return se.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(se){this._onTrackMetadata=se}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(se){this._onMediaInfo=se}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(se){this._onMetaDataArrived=se}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(se){this._onScriptDataArrived=se}get onError(){return this._onError}set onError(se){this._onError=se}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(se){this._onDataAvailable=se}get timestampBase(){return this._timestampBase}set timestampBase(se){this._timestampBase=se}get overridedDuration(){return this._duration}set overridedDuration(se){this._durationOverrided=!0,this._duration=se,this._mediaInfo.duration=se}set overridedHasAudio(se){this._hasAudioFlagOverrided=!0,this._hasAudio=se,this._mediaInfo.hasAudio=se}set overridedHasVideo(se){this._hasVideoFlagOverrided=!0,this._hasVideo=se,this._mediaInfo.hasVideo=se}resetMediaInfo(){this._mediaInfo=new Ct}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(se,ye){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new ge("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,Ae=this._littleEndian;if(ye===0)if(se.byteLength>13)Pe=vt.probe(se).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,ye+Pe!==this._dataOffset&&pe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(se,Pe).getUint32(0,!Ae)!==0&&pe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pe<se.byteLength;){this._dispatch=!0;let Oe=new DataView(se,Pe);if(Pe+11+4>se.byteLength)break;let Je=Oe.getUint8(0),pt=Oe.getUint32(0,!Ae)&16777215;if(Pe+11+pt+4>se.byteLength)break;if(Je!==8&&Je!==9&&Je!==18){pe.w(this.TAG,`Unsupported tag type ${Je}, skipped`),Pe+=11+pt+4;continue}let gn=Oe.getUint8(4),$t=Oe.getUint8(5),Bn=Oe.getUint8(6),hr=Oe.getUint8(7),gr=Bn|$t<<8|gn<<16|hr<<24;(Oe.getUint32(7,!Ae)&16777215)!==0&&pe.w(this.TAG,"Meet tag which has StreamID != 0!");let Wn=Pe+11;switch(Je){case 8:this._parseAudioData(se,Wn,pt,gr);break;case 9:this._parseVideoData(se,Wn,pt,gr,ye+Pe);break;case 18:this._parseScriptData(se,Wn,pt);break}let qn=Oe.getUint32(11+pt,!Ae);qn!==11+pt&&pe.w(this.TAG,`Invalid PrevTagSize ${qn}`),Pe+=11+pt+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(se,ye,Pe){let Ae=Ln.parseScriptData(se,ye,Pe);if(Ae.hasOwnProperty("onMetaData")){if(Ae.onMetaData==null||typeof Ae.onMetaData!="object"){pe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&pe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=Ae;let Oe=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Oe)),typeof Oe.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Oe.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Oe.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Oe.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Oe.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Oe.audiodatarate),typeof Oe.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Oe.videodatarate),typeof Oe.width=="number"&&(this._mediaInfo.width=Oe.width),typeof Oe.height=="number"&&(this._mediaInfo.height=Oe.height),typeof Oe.duration=="number"){if(!this._durationOverrided){let Je=Math.floor(Oe.duration*this._timescale);this._duration=Je,this._mediaInfo.duration=Je}}else this._mediaInfo.duration=0;if(typeof Oe.framerate=="number"){let Je=Math.floor(Oe.framerate*1e3);if(Je>0){let pt=Je/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=pt,this._referenceFrameRate.fps_num=Je,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=pt}}if(typeof Oe.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let Je=Oe.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(Je),Oe.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Oe,pe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(Ae).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},Ae))}_parseKeyframesIndex(se){let ye=[],Pe=[];for(let Ae=1;Ae<se.times.length;Ae++){let Oe=this._timestampBase+Math.floor(se.times[Ae]*1e3);ye.push(Oe),Pe.push(se.filepositions[Ae])}return{times:ye,filepositions:Pe}}_parseAudioData(se,ye,Pe,Ae){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Oe=this._littleEndian,pt=new DataView(se,ye,Pe).getUint8(0),gn=pt>>>4;if(gn!==2&&gn!==10){this._onError(qe.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+gn);return}let $t=0,Bn=(pt&12)>>>2;if(Bn>=0&&Bn<=4)$t=this._flvSoundRateTable[Bn];else{this._onError(qe.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Bn);return}let hr=(pt&2)>>>1,gr=pt&1,Nt=this._audioMetadata,Wn=this._audioTrack;if(Nt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Nt=this._audioMetadata={},Nt.type="audio",Nt.id=Wn.id,Nt.timescale=this._timescale,Nt.duration=this._duration,Nt.audioSampleRate=$t,Nt.channelCount=gr===0?1:2),gn===10){let qn=this._parseAACAudioData(se,ye+1,Pe-1);if(qn==null)return;if(qn.packetType===0){Nt.config&&pe.w(this.TAG,"Found another AudioSpecificConfig!");let Sn=qn.data;Nt.audioSampleRate=Sn.samplingRate,Nt.channelCount=Sn.channelCount,Nt.codec=Sn.codec,Nt.originalCodec=Sn.originalCodec,Nt.config=Sn.config,Nt.refSampleDuration=1024/Nt.audioSampleRate*Nt.timescale,pe.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",Nt);let Mn=this._mediaInfo;Mn.audioCodec=Nt.originalCodec,Mn.audioSampleRate=Nt.audioSampleRate,Mn.audioChannelCount=Nt.channelCount,Mn.hasVideo?Mn.videoCodec!=null&&(Mn.mimeType='video/x-flv; codecs="'+Mn.videoCodec+","+Mn.audioCodec+'"'):Mn.mimeType='video/x-flv; codecs="'+Mn.audioCodec+'"',Mn.isComplete()&&this._onMediaInfo(Mn)}else if(qn.packetType===1){let Sn=this._timestampBase+Ae,Mn={unit:qn.data,length:qn.data.byteLength,dts:Sn,pts:Sn};Wn.samples.push(Mn),Wn.length+=qn.data.length}else pe.e(this.TAG,`Flv: Unsupported AAC data type ${qn.packetType}`)}else if(gn===2){if(!Nt.codec){let Xn=this._parseMP3AudioData(se,ye+1,Pe-1,!0);if(Xn==null)return;Nt.audioSampleRate=Xn.samplingRate,Nt.channelCount=Xn.channelCount,Nt.codec=Xn.codec,Nt.originalCodec=Xn.originalCodec,Nt.refSampleDuration=1152/Nt.audioSampleRate*Nt.timescale,pe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Nt);let Pr=this._mediaInfo;Pr.audioCodec=Nt.codec,Pr.audioSampleRate=Nt.audioSampleRate,Pr.audioChannelCount=Nt.channelCount,Pr.audioDataRate=Xn.bitRate,Pr.hasVideo?Pr.videoCodec!=null&&(Pr.mimeType='video/x-flv; codecs="'+Pr.videoCodec+","+Pr.audioCodec+'"'):Pr.mimeType='video/x-flv; codecs="'+Pr.audioCodec+'"',Pr.isComplete()&&this._onMediaInfo(Pr)}let qn=this._parseMP3AudioData(se,ye+1,Pe-1,!1);if(qn==null)return;let Sn=this._timestampBase+Ae,Mn={unit:qn,length:qn.byteLength,dts:Sn,pts:Sn};Wn.samples.push(Mn),Wn.length+=qn.length}}_parseAACAudioData(se,ye,Pe){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let Ae={},Oe=new Uint8Array(se,ye,Pe);return Ae.packetType=Oe[0],Oe[0]===0?Ae.data=this._parseAACAudioSpecificConfig(se,ye+1,Pe-1):Ae.data=Oe.subarray(1),Ae}_parseAACAudioSpecificConfig(se,ye,Pe){let Ae=new Uint8Array(se,ye,Pe),Oe=null,Je=0,pt=0,gn=null,$t=0,Bn=null;if(Je=pt=Ae[0]>>>3,$t=(Ae[0]&7)<<1|Ae[1]>>>7,$t<0||$t>=this._mpegSamplingRates.length){this._onError(qe.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let hr=this._mpegSamplingRates[$t],gr=(Ae[1]&120)>>>3;if(gr<0||gr>=8){this._onError(qe.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Je===5&&(Bn=(Ae[1]&7)<<1|Ae[2]>>>7,gn=(Ae[2]&124)>>>2);let Nt=self.navigator.userAgent.toLowerCase();return Nt.indexOf("firefox")!==-1?$t>=6?(Je=5,Oe=new Array(4),Bn=$t-3):(Je=2,Oe=new Array(2),Bn=$t):Nt.indexOf("android")!==-1?(Je=2,Oe=new Array(2),Bn=$t):(Je=5,Bn=$t,Oe=new Array(4),$t>=6?Bn=$t-3:gr===1&&(Je=2,Oe=new Array(2),Bn=$t)),Oe[0]=Je<<3,Oe[0]|=($t&15)>>>1,Oe[1]=($t&15)<<7,Oe[1]|=(gr&15)<<3,Je===5&&(Oe[1]|=(Bn&15)>>>1,Oe[2]=(Bn&1)<<7,Oe[2]|=8,Oe[3]=0),{config:Oe,samplingRate:hr,channelCount:gr,codec:"mp4a.40."+Je,originalCodec:"mp4a.40."+pt}}_parseMP3AudioData(se,ye,Pe,Ae){if(Pe<4){pe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Oe=this._littleEndian,Je=new Uint8Array(se,ye,Pe),pt=null;if(Ae){if(Je[0]!==255)return;let gn=Je[1]>>>3&3,$t=(Je[1]&6)>>1,Bn=(Je[2]&240)>>>4,hr=(Je[2]&12)>>>2,Nt=(Je[3]>>>6&3)!==3?2:1,Wn=0,qn=0,Sn=34,Mn="mp3";switch(gn){case 0:Wn=this._mpegAudioV25SampleRateTable[hr];break;case 2:Wn=this._mpegAudioV20SampleRateTable[hr];break;case 3:Wn=this._mpegAudioV10SampleRateTable[hr];break}switch($t){case 1:Sn=34,Bn<this._mpegAudioL3BitRateTable.length&&(qn=this._mpegAudioL3BitRateTable[Bn]);break;case 2:Sn=33,Bn<this._mpegAudioL2BitRateTable.length&&(qn=this._mpegAudioL2BitRateTable[Bn]);break;case 3:Sn=32,Bn<this._mpegAudioL1BitRateTable.length&&(qn=this._mpegAudioL1BitRateTable[Bn]);break}pt={bitRate:qn,samplingRate:Wn,channelCount:Nt,codec:Mn,originalCodec:Mn}}else pt=Je;return pt}_parseVideoData(se,ye,Pe,Ae,Oe){if(Pe<=1){pe.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let Je=new Uint8Array(se,ye,Pe)[0],pt=(Je&240)>>>4,gn=Je&15;if(gn!==7){this._onError(qe.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${gn}`);return}this._parseAVCVideoPacket(se,ye+1,Pe-1,Ae,Oe,pt)}_parseAVCVideoPacket(se,ye,Pe,Ae,Oe,Je){if(Pe<4){pe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let pt=this._littleEndian,gn=new DataView(se,ye,Pe),$t=gn.getUint8(0),hr=(gn.getUint32(0,!pt)&16777215)<<8>>8;if($t===0)this._parseAVCDecoderConfigurationRecord(se,ye+4,Pe-4);else if($t===1)this._parseAVCVideoData(se,ye+4,Pe-4,Ae,Oe,Je,hr);else if($t!==2){this._onError(qe.FORMAT_ERROR,`Flv: Invalid video packet type ${$t}`);return}}_parseAVCDecoderConfigurationRecord(se,ye,Pe){if(Pe<7){pe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let Ae=this._videoMetadata,Oe=this._videoTrack,Je=this._littleEndian,pt=new DataView(se,ye,Pe);Ae?typeof Ae.avcc!="undefined"&&pe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),Ae=this._videoMetadata={},Ae.type="video",Ae.id=Oe.id,Ae.timescale=this._timescale,Ae.duration=this._duration);let gn=pt.getUint8(0),$t=pt.getUint8(1),Bn=pt.getUint8(2),hr=pt.getUint8(3);if(gn!==1||$t===0){this._onError(qe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(pt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(qe.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let gr=pt.getUint8(5)&31;if(gr===0){this._onError(qe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else gr>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${gr}`);let Nt=6;for(let qn=0;qn<gr;qn++){let Sn=pt.getUint16(Nt,!Je);if(Nt+=2,Sn===0)continue;let Mn=new Uint8Array(se,ye+Nt,Sn);Nt+=Sn;let Xn=et.parseSPS(Mn);if(qn!==0)continue;Ae.codecWidth=Xn.codec_size.width,Ae.codecHeight=Xn.codec_size.height,Ae.presentWidth=Xn.present_size.width,Ae.presentHeight=Xn.present_size.height,Ae.profile=Xn.profile_string,Ae.level=Xn.level_string,Ae.bitDepth=Xn.bit_depth,Ae.chromaFormat=Xn.chroma_format,Ae.sarRatio=Xn.sar_ratio,Ae.frameRate=Xn.frame_rate,(Xn.frame_rate.fixed===!1||Xn.frame_rate.fps_num===0||Xn.frame_rate.fps_den===0)&&(Ae.frameRate=this._referenceFrameRate);let Pr=Ae.frameRate.fps_den,ar=Ae.frameRate.fps_num;Ae.refSampleDuration=Ae.timescale*(Pr/ar);let ga=Mn.subarray(1,4),bo="avc1.";for(let Qr=0;Qr<3;Qr++){let ko=ga[Qr].toString(16);ko.length<2&&(ko="0"+ko),bo+=ko}Ae.codec=bo;let fr=this._mediaInfo;fr.width=Ae.codecWidth,fr.height=Ae.codecHeight,fr.fps=Ae.frameRate.fps,fr.profile=Ae.profile,fr.level=Ae.level,fr.refFrames=Xn.ref_frames,fr.chromaFormat=Xn.chroma_format_string,fr.sarNum=Ae.sarRatio.width,fr.sarDen=Ae.sarRatio.height,fr.videoCodec=bo,fr.hasAudio?fr.audioCodec!=null&&(fr.mimeType='video/x-flv; codecs="'+fr.videoCodec+","+fr.audioCodec+'"'):fr.mimeType='video/x-flv; codecs="'+fr.videoCodec+'"',fr.isComplete()&&this._onMediaInfo(fr)}let Wn=pt.getUint8(Nt);if(Wn===0){this._onError(qe.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Wn>1&&pe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Wn}`);Nt++;for(let qn=0;qn<Wn;qn++){let Sn=pt.getUint16(Nt,!Je);Nt+=2,Sn!==0&&(Nt+=Sn)}Ae.avcc=new Uint8Array(Pe),Ae.avcc.set(new Uint8Array(se,ye,Pe),0),pe.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",Ae)}_parseAVCVideoData(se,ye,Pe,Ae,Oe,Je,pt){let gn=this._littleEndian,$t=new DataView(se,ye,Pe),Bn=[],hr=0,gr=0;const Nt=this._naluLengthSize;let Wn=this._timestampBase+Ae,qn=Je===1;for(;gr<Pe;){if(gr+4>=Pe){pe.w(this.TAG,`Malformed Nalu near timestamp ${Wn}, offset = ${gr}, dataSize = ${Pe}`);break}let Sn=$t.getUint32(gr,!gn);if(Nt===3&&(Sn>>>=8),Sn>Pe-Nt){pe.w(this.TAG,`Malformed Nalus near timestamp ${Wn}, NaluSize > DataSize!`);return}let Mn=$t.getUint8(gr+Nt)&31;Mn===5&&(qn=!0);let Xn=new Uint8Array(se,ye+gr,Nt+Sn),Pr={type:Mn,data:Xn};Bn.push(Pr),hr+=Xn.byteLength,gr+=Nt+Sn}if(Bn.length){let Sn=this._videoTrack,Mn={units:Bn,length:hr,isKeyframe:qn,dts:Wn,cts:pt,pts:Wn+pt};qn&&(Mn.fileposition=Oe),Sn.samples.push(Mn),Sn.length+=hr}}}var bt=vt;class Qe{static init(){Qe.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 ye in Qe.types)Qe.types.hasOwnProperty(ye)&&(Qe.types[ye]=[ye.charCodeAt(0),ye.charCodeAt(1),ye.charCodeAt(2),ye.charCodeAt(3)]);let se=Qe.constants={};se.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),se.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),se.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),se.STSC=se.STCO=se.STTS,se.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),se.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]),se.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]),se.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),se.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),se.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(se){let ye=8,Pe=null,Ae=Array.prototype.slice.call(arguments,1),Oe=Ae.length;for(let pt=0;pt<Oe;pt++)ye+=Ae[pt].byteLength;Pe=new Uint8Array(ye),Pe[0]=ye>>>24&255,Pe[1]=ye>>>16&255,Pe[2]=ye>>>8&255,Pe[3]=ye&255,Pe.set(se,4);let Je=8;for(let pt=0;pt<Oe;pt++)Pe.set(Ae[pt],Je),Je+=Ae[pt].byteLength;return Pe}static generateInitSegment(se){let ye=Qe.box(Qe.types.ftyp,Qe.constants.FTYP),Pe=Qe.moov(se),Ae=new Uint8Array(ye.byteLength+Pe.byteLength);return Ae.set(ye,0),Ae.set(Pe,ye.byteLength),Ae}static moov(se){let ye=Qe.mvhd(se.timescale,se.duration),Pe=Qe.trak(se),Ae=Qe.mvex(se);return Qe.box(Qe.types.moov,ye,Pe,Ae)}static mvhd(se,ye){return Qe.box(Qe.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,se>>>24&255,se>>>16&255,se>>>8&255,se&255,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&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(se){return Qe.box(Qe.types.trak,Qe.tkhd(se),Qe.mdia(se))}static tkhd(se){let ye=se.id,Pe=se.duration,Ae=se.presentWidth,Oe=se.presentHeight;return Qe.box(Qe.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&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,Ae>>>8&255,Ae&255,0,0,Oe>>>8&255,Oe&255,0,0]))}static mdia(se){return Qe.box(Qe.types.mdia,Qe.mdhd(se),Qe.hdlr(se),Qe.minf(se))}static mdhd(se){let ye=se.timescale,Pe=se.duration;return Qe.box(Qe.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(se){let ye=null;return se.type==="audio"?ye=Qe.constants.HDLR_AUDIO:ye=Qe.constants.HDLR_VIDEO,Qe.box(Qe.types.hdlr,ye)}static minf(se){let ye=null;return se.type==="audio"?ye=Qe.box(Qe.types.smhd,Qe.constants.SMHD):ye=Qe.box(Qe.types.vmhd,Qe.constants.VMHD),Qe.box(Qe.types.minf,ye,Qe.dinf(),Qe.stbl(se))}static dinf(){return Qe.box(Qe.types.dinf,Qe.box(Qe.types.dref,Qe.constants.DREF))}static stbl(se){return Qe.box(Qe.types.stbl,Qe.stsd(se),Qe.box(Qe.types.stts,Qe.constants.STTS),Qe.box(Qe.types.stsc,Qe.constants.STSC),Qe.box(Qe.types.stsz,Qe.constants.STSZ),Qe.box(Qe.types.stco,Qe.constants.STCO))}static stsd(se){return se.type==="audio"?se.codec==="mp3"?Qe.box(Qe.types.stsd,Qe.constants.STSD_PREFIX,Qe.mp3(se)):Qe.box(Qe.types.stsd,Qe.constants.STSD_PREFIX,Qe.mp4a(se)):Qe.box(Qe.types.stsd,Qe.constants.STSD_PREFIX,Qe.avc1(se))}static mp3(se){let ye=se.channelCount,Pe=se.audioSampleRate,Ae=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ye,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Qe.box(Qe.types[".mp3"],Ae)}static mp4a(se){let ye=se.channelCount,Pe=se.audioSampleRate,Ae=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ye,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return Qe.box(Qe.types.mp4a,Ae,Qe.esds(se))}static esds(se){let ye=se.config||[],Pe=ye.length,Ae=new Uint8Array([0,0,0,0,3,23+Pe,0,1,0,4,15+Pe,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Pe]).concat(ye).concat([6,1,2]));return Qe.box(Qe.types.esds,Ae)}static avc1(se){let ye=se.avcc,Pe=se.codecWidth,Ae=se.codecHeight,Oe=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,Pe>>>8&255,Pe&255,Ae>>>8&255,Ae&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 Qe.box(Qe.types.avc1,Oe,Qe.box(Qe.types.avcC,ye))}static mvex(se){return Qe.box(Qe.types.mvex,Qe.trex(se))}static trex(se){let ye=se.id,Pe=new Uint8Array([0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return Qe.box(Qe.types.trex,Pe)}static moof(se,ye){return Qe.box(Qe.types.moof,Qe.mfhd(se.sequenceNumber),Qe.traf(se,ye))}static mfhd(se){let ye=new Uint8Array([0,0,0,0,se>>>24&255,se>>>16&255,se>>>8&255,se&255]);return Qe.box(Qe.types.mfhd,ye)}static traf(se,ye){let Pe=se.id,Ae=Qe.box(Qe.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),Oe=Qe.box(Qe.types.tfdt,new Uint8Array([0,0,0,0,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255])),Je=Qe.sdtp(se),pt=Qe.trun(se,Je.byteLength+16+16+8+16+8+8);return Qe.box(Qe.types.traf,Ae,Oe,pt,Je)}static sdtp(se){let ye=se.samples||[],Pe=ye.length,Ae=new Uint8Array(4+Pe);for(let Oe=0;Oe<Pe;Oe++){let Je=ye[Oe].flags;Ae[Oe+4]=Je.isLeading<<6|Je.dependsOn<<4|Je.isDependedOn<<2|Je.hasRedundancy}return Qe.box(Qe.types.sdtp,Ae)}static trun(se,ye){let Pe=se.samples||[],Ae=Pe.length,Oe=12+16*Ae,Je=new Uint8Array(Oe);ye+=8+Oe,Je.set([0,0,15,1,Ae>>>24&255,Ae>>>16&255,Ae>>>8&255,Ae&255,ye>>>24&255,ye>>>16&255,ye>>>8&255,ye&255],0);for(let pt=0;pt<Ae;pt++){let gn=Pe[pt].duration,$t=Pe[pt].size,Bn=Pe[pt].flags,hr=Pe[pt].cts;Je.set([gn>>>24&255,gn>>>16&255,gn>>>8&255,gn&255,$t>>>24&255,$t>>>16&255,$t>>>8&255,$t&255,Bn.isLeading<<2|Bn.dependsOn,Bn.isDependedOn<<6|Bn.hasRedundancy<<4|Bn.isNonSync,0,0,hr>>>24&255,hr>>>16&255,hr>>>8&255,hr&255],12+16*pt)}return Qe.box(Qe.types.trun,Je)}static mdat(se){return Qe.box(Qe.types.mdat,se)}}Qe.init();var Wt=Qe;class He{static getSilentFrame(se,ye){if(se==="mp4a.40.2"){if(ye===1)return new Uint8Array([0,200,0,128,35,128]);if(ye===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ye===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ye===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ye===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(ye===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(ye===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(ye===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(ye===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 ut=He;class En{constructor(se,ye,Pe,Ae,Oe){this.dts=se,this.pts=ye,this.duration=Pe,this.originalDts=Ae,this.isSyncPoint=Oe,this.fileposition=null}}class un{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(se){se.isSyncPoint=!0,this.syncPoints.push(se)}}class ht{constructor(){this._list=[]}clear(){this._list=[]}appendArray(se){let ye=this._list;se.length!==0&&(ye.length>0&&se[0].originalDts<ye[ye.length-1].originalDts&&this.clear(),Array.prototype.push.apply(ye,se))}getLastSyncPointBeforeDts(se){if(this._list.length==0)return null;let ye=this._list,Pe=0,Ae=ye.length-1,Oe=0,Je=0,pt=Ae;for(se<ye[0].dts&&(Pe=0,Je=pt+1);Je<=pt;)if(Oe=Je+Math.floor((pt-Je)/2),Oe===Ae||se>=ye[Oe].dts&&se<ye[Oe+1].dts){Pe=Oe;break}else ye[Oe].dts<se?Je=Oe+1:pt=Oe-1;return this._list[Pe]}}class sn{constructor(se){this._type=se,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(se){let ye=this._list;if(ye.length===0)return-2;let Pe=ye.length-1,Ae=0,Oe=0,Je=Pe,pt=0;if(se<ye[0].originalBeginDts)return pt=-1,pt;for(;Oe<=Je;)if(Ae=Oe+Math.floor((Je-Oe)/2),Ae===Pe||se>ye[Ae].lastSample.originalDts&&se<ye[Ae+1].originalBeginDts){pt=Ae;break}else ye[Ae].originalBeginDts<se?Oe=Ae+1:Je=Ae-1;return pt}_searchNearestSegmentAfter(se){return this._searchNearestSegmentBefore(se)+1}append(se){let ye=this._list,Pe=se,Ae=this._lastAppendLocation,Oe=0;Ae!==-1&&Ae<ye.length&&Pe.originalBeginDts>=ye[Ae].lastSample.originalDts&&(Ae===ye.length-1||Ae<ye.length-1&&Pe.originalBeginDts<ye[Ae+1].originalBeginDts)?Oe=Ae+1:ye.length>0&&(Oe=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=Oe,this._list.splice(Oe,0,Pe)}getLastSegmentBefore(se){let ye=this._searchNearestSegmentBefore(se);return ye>=0?this._list[ye]:null}getLastSampleBefore(se){let ye=this.getLastSegmentBefore(se);return ye!=null?ye.lastSample:null}getLastSyncPointBefore(se){let ye=this._searchNearestSegmentBefore(se),Pe=this._list[ye].syncPoints;for(;Pe.length===0&&ye>0;)ye--,Pe=this._list[ye].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class ln{constructor(se){this.TAG="MP4Remuxer",this._config=se,this._isLive=se.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 sn("audio"),this._videoSegmentInfoList=new sn("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661)),this._fillSilentAfterSeek=b.msedge||b.msie,this._mp3UseMpegAudio=!b.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(se){return se.onDataAvailable=this.remux.bind(this),se.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(se){this._onInitSegment=se}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(se){this._onMediaSegment=se}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(se){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(se,ye){if(!this._onMediaSegment)throw new ge("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(se,ye),this._remuxVideo(ye),this._remuxAudio(se)}_onTrackMetadataReceived(se,ye){let Pe=null,Ae="mp4",Oe=ye.codec;if(se==="audio")this._audioMeta=ye,ye.codec==="mp3"&&this._mp3UseMpegAudio?(Ae="mpeg",Oe="",Pe=new Uint8Array):Pe=Wt.generateInitSegment(ye);else if(se==="video")this._videoMeta=ye,Pe=Wt.generateInitSegment(ye);else return;if(!this._onInitSegment)throw new ge("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(se,{type:se,data:Pe.buffer,codec:Oe,container:`${se}/${Ae}`,mediaDuration:ye.duration})}_calculateDtsBase(se,ye){this._dtsBaseInited||(se.samples&&se.samples.length&&(this._audioDtsBase=se.samples[0].dts),ye.samples&&ye.samples.length&&(this._videoDtsBase=ye.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let se=this._videoStashedLastSample,ye=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};se!=null&&(Pe.samples.push(se),Pe.length=se.length);let Ae={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ye!=null&&(Ae.samples.push(ye),Ae.length=ye.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(Ae,!0)}_remuxAudio(se,ye){if(this._audioMeta==null)return;let Pe=se,Ae=Pe.samples,Oe,Je=-1,pt=-1,gn=-1,$t=this._audioMeta.refSampleDuration,Bn=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,hr=this._dtsBaseInited&&this._audioNextDts===void 0,gr=!1;if(!Ae||Ae.length===0||Ae.length===1&&!ye)return;let Nt=0,Wn=null,qn=0;Bn?(Nt=0,qn=Pe.length):(Nt=8,qn=8+Pe.length);let Sn=null;if(Ae.length>1&&(Sn=Ae.pop(),qn-=Sn.length),this._audioStashedLastSample!=null){let fr=this._audioStashedLastSample;this._audioStashedLastSample=null,Ae.unshift(fr),qn+=fr.length}Sn!=null&&(this._audioStashedLastSample=Sn);let Mn=Ae[0].dts-this._dtsBase;if(this._audioNextDts)Oe=Mn-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Oe=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(gr=!0);else{let fr=this._audioSegmentInfoList.getLastSampleBefore(Mn);if(fr!=null){let Qr=Mn-(fr.originalDts+fr.duration);Qr<=3&&(Qr=0);let ko=fr.dts+fr.duration+Qr;Oe=Mn-ko}else Oe=0}if(gr){let fr=Mn-Oe,Qr=this._videoSegmentInfoList.getLastSegmentBefore(Mn);if(Qr!=null&&Qr.beginDts<fr){let ko=ut.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(ko){let Go=Qr.beginDts,on=fr-Qr.beginDts;pe.v(this.TAG,`InsertPrefixSilentAudio: dts: ${Go}, duration: ${on}`),Ae.unshift({unit:ko,dts:Go,pts:Go}),qn+=ko.byteLength}}else gr=!1}let Xn=[];for(let fr=0;fr<Ae.length;fr++){let Qr=Ae[fr],ko=Qr.unit,Go=Qr.dts-this._dtsBase,on=Go-Oe;Je===-1&&(Je=on);let sa=0;fr!==Ae.length-1?sa=Ae[fr+1].dts-this._dtsBase-Oe-on:Sn!=null?sa=Sn.dts-this._dtsBase-Oe-on:Xn.length>=1?sa=Xn[Xn.length-1].duration:sa=Math.floor($t);let Za=!1,Pa=null;if(sa>$t*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Za=!0;let so=Math.abs(sa-$t),ni=Math.ceil(so/$t),Pn=on+$t;pe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${on+sa} ms, expected: ${on+Math.round($t)} ms, delta: ${Math.round(so)} ms, generate: ${ni} frames`);let mr=ut.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);mr==null&&(pe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),mr=ko),Pa=[];for(let er=0;er<ni;er++){let $o=Math.round(Pn);if(Pa.length>0){let ba=Pa[Pa.length-1];ba.duration=$o-ba.dts}let ha={dts:$o,pts:$o,cts:0,unit:mr,size:mr.byteLength,duration:0,originalDts:Go,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Pa.push(ha),qn+=ha.size,Pn+=$t}let tr=Pa[Pa.length-1];tr.duration=on+sa-tr.dts,sa=Math.round($t)}Xn.push({dts:on,pts:on,cts:0,unit:Qr.unit,size:Qr.unit.byteLength,duration:sa,originalDts:Go,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Za&&Xn.push.apply(Xn,Pa)}Bn?Wn=new Uint8Array(qn):(Wn=new Uint8Array(qn),Wn[0]=qn>>>24&255,Wn[1]=qn>>>16&255,Wn[2]=qn>>>8&255,Wn[3]=qn&255,Wn.set(Wt.types.mdat,4));for(let fr=0;fr<Xn.length;fr++){let Qr=Xn[fr].unit;Wn.set(Qr,Nt),Nt+=Qr.byteLength}let Pr=Xn[Xn.length-1];pt=Pr.dts+Pr.duration,this._audioNextDts=pt;let ar=new un;ar.beginDts=Je,ar.endDts=pt,ar.beginPts=Je,ar.endPts=pt,ar.originalBeginDts=Xn[0].originalDts,ar.originalEndDts=Pr.originalDts+Pr.duration,ar.firstSample=new En(Xn[0].dts,Xn[0].pts,Xn[0].duration,Xn[0].originalDts,!1),ar.lastSample=new En(Pr.dts,Pr.pts,Pr.duration,Pr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ar),Pe.samples=Xn,Pe.sequenceNumber++;let ga=null;Bn?ga=new Uint8Array:ga=Wt.moof(Pe,Je),Pe.samples=[],Pe.length=0;let bo={type:"audio",data:this._mergeBoxes(ga,Wn).buffer,sampleCount:Xn.length,info:ar};Bn&&hr&&(bo.timestampOffset=Je),this._onMediaSegment("audio",bo)}_remuxVideo(se,ye){if(this._videoMeta==null)return;let Pe=se,Ae=Pe.samples,Oe,Je=-1,pt=-1,gn=-1,$t=-1;if(!Ae||Ae.length===0||Ae.length===1&&!ye)return;let Bn=8,hr=null,gr=8+se.length,Nt=null;if(Ae.length>1&&(Nt=Ae.pop(),gr-=Nt.length),this._videoStashedLastSample!=null){let Pr=this._videoStashedLastSample;this._videoStashedLastSample=null,Ae.unshift(Pr),gr+=Pr.length}Nt!=null&&(this._videoStashedLastSample=Nt);let Wn=Ae[0].dts-this._dtsBase;if(this._videoNextDts)Oe=Wn-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Oe=0;else{let Pr=this._videoSegmentInfoList.getLastSampleBefore(Wn);if(Pr!=null){let ar=Wn-(Pr.originalDts+Pr.duration);ar<=3&&(ar=0);let ga=Pr.dts+Pr.duration+ar;Oe=Wn-ga}else Oe=0}let qn=new un,Sn=[];for(let Pr=0;Pr<Ae.length;Pr++){let ar=Ae[Pr],ga=ar.dts-this._dtsBase,bo=ar.isKeyframe,fr=ga-Oe,Qr=ar.cts,ko=fr+Qr;Je===-1&&(Je=fr,gn=ko);let Go=0;if(Pr!==Ae.length-1?Go=Ae[Pr+1].dts-this._dtsBase-Oe-fr:Nt!=null?Go=Nt.dts-this._dtsBase-Oe-fr:Sn.length>=1?Go=Sn[Sn.length-1].duration:Go=Math.floor(this._videoMeta.refSampleDuration),bo){let on=new En(fr,ko,Go,ar.dts,!0);on.fileposition=ar.fileposition,qn.appendSyncPoint(on)}Sn.push({dts:fr,pts:ko,cts:Qr,units:ar.units,size:ar.length,isKeyframe:bo,duration:Go,originalDts:ga,flags:{isLeading:0,dependsOn:bo?2:1,isDependedOn:bo?1:0,hasRedundancy:0,isNonSync:bo?0:1}})}hr=new Uint8Array(gr),hr[0]=gr>>>24&255,hr[1]=gr>>>16&255,hr[2]=gr>>>8&255,hr[3]=gr&255,hr.set(Wt.types.mdat,4);for(let Pr=0;Pr<Sn.length;Pr++){let ar=Sn[Pr].units;for(;ar.length;){let bo=ar.shift().data;hr.set(bo,Bn),Bn+=bo.byteLength}}let Mn=Sn[Sn.length-1];if(pt=Mn.dts+Mn.duration,$t=Mn.pts+Mn.duration,this._videoNextDts=pt,qn.beginDts=Je,qn.endDts=pt,qn.beginPts=gn,qn.endPts=$t,qn.originalBeginDts=Sn[0].originalDts,qn.originalEndDts=Mn.originalDts+Mn.duration,qn.firstSample=new En(Sn[0].dts,Sn[0].pts,Sn[0].duration,Sn[0].originalDts,Sn[0].isKeyframe),qn.lastSample=new En(Mn.dts,Mn.pts,Mn.duration,Mn.originalDts,Mn.isKeyframe),this._isLive||this._videoSegmentInfoList.append(qn),Pe.samples=Sn,Pe.sequenceNumber++,this._forceFirstIDR){let Pr=Sn[0].flags;Pr.dependsOn=2,Pr.isNonSync=0}let Xn=Wt.moof(Pe,Je);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Xn,hr).buffer,sampleCount:Sn.length,info:qn})}_mergeBoxes(se,ye){let Pe=new Uint8Array(se.byteLength+ye.byteLength);return Pe.set(se,0),Pe.set(ye,se.byteLength),Pe}}var fn=ln,wt={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 xn{constructor(se,ye){this.TAG="TransmuxingController",this._emitter=new(_e()),this._config=ye,se.segments||(se.segments=[{duration:se.duration,filesize:se.filesize,url:se.url}]),typeof se.cors!="boolean"&&(se.cors=!0),typeof se.withCredentials!="boolean"&&(se.withCredentials=!1),this._mediaDataSource=se,this._currentSegmentIndex=0;let Pe=0;this._mediaDataSource.segments.forEach(Ae=>{Ae.timestampBase=Pe,Pe+=Ae.duration,Ae.cors=se.cors,Ae.withCredentials=se.withCredentials,ye.referrerPolicy&&(Ae.referrerPolicy=ye.referrerPolicy)}),!isNaN(Pe)&&this._mediaDataSource.duration!==Pe&&(this._mediaDataSource.duration=Pe),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(se,ye){this._emitter.addListener(se,ye)}off(se,ye){this._emitter.removeListener(se,ye)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(se,ye){this._currentSegmentIndex=se;let Pe=this._mediaDataSource.segments[se],Ae=this._ioctl=new Be(Pe,this._config,se);Ae.onError=this._onIOException.bind(this),Ae.onSeeked=this._onIOSeeked.bind(this),Ae.onComplete=this._onIOComplete.bind(this),Ae.onRedirect=this._onIORedirect.bind(this),Ae.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),ye?this._demuxer.bindDataSource(this._ioctl):Ae.onDataArrival=this._onInitChunkArrival.bind(this),Ae.open(ye)}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(se){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let ye=this._searchSegmentIndexContains(se);if(ye===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[ye];if(Pe==null)this._pendingSeekTime=se;else{let Ae=Pe.getNearestKeyframe(se);this._remuxer.seek(Ae.milliseconds),this._ioctl.seek(Ae.fileposition),this._pendingResolveSeekPoint=Ae.milliseconds}}else{let Pe=this._mediaInfo.segments[ye];if(Pe==null)this._pendingSeekTime=se,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ye);else{let Ae=Pe.getNearestKeyframe(se);this._internalAbort(),this._remuxer.seek(se),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ye].timestampBase,this._loadSegment(ye,Ae.fileposition),this._pendingResolveSeekPoint=Ae.milliseconds,this._reportSegmentMediaInfo(ye)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(se){let ye=this._mediaDataSource.segments,Pe=ye.length-1;for(let Ae=0;Ae<ye.length;Ae++)if(se<ye[Ae].timestampBase){Pe=Ae-1;break}return Pe}_onInitChunkArrival(se,ye){let Pe=null,Ae=0;if(ye>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,Ae=this._demuxer.parseChunks(se,ye);else if((Pe=bt.probe(se)).match){this._demuxer=new bt(Pe,this._config),this._remuxer||(this._remuxer=new fn(this._config));let Oe=this._mediaDataSource;Oe.duration!=null&&!isNaN(Oe.duration)&&(this._demuxer.overridedDuration=Oe.duration),typeof Oe.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Oe.hasAudio),typeof Oe.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Oe.hasVideo),this._demuxer.timestampBase=Oe.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),Ae=this._demuxer.parseChunks(se,ye)}else Pe=null,pe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(wt.DEMUX_ERROR,qe.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),Ae=0;return Ae}_onMediaInfo(se){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},se),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ct.prototype));let ye=Object.assign({},se);Object.setPrototypeOf(ye,Ct.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=ye,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(se){this._emitter.emit(wt.METADATA_ARRIVED,se)}_onScriptDataArrived(se){this._emitter.emit(wt.SCRIPTDATA_ARRIVED,se)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(se){let Pe=se+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(wt.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(se){let ye=this._ioctl.extraData;this._mediaDataSource.segments[ye].redirectedURL=se}_onIORecoveredEarlyEof(){this._emitter.emit(wt.RECOVERED_EARLY_EOF)}_onIOException(se,ye){pe.e(this.TAG,`IOException: type = ${se}, code = ${ye.code}, msg = ${ye.msg}`),this._emitter.emit(wt.IO_ERROR,se,ye),this._disableStatisticsReporter()}_onDemuxException(se,ye){pe.e(this.TAG,`DemuxException: type = ${se}, info = ${ye}`),this._emitter.emit(wt.DEMUX_ERROR,se,ye)}_onRemuxerInitSegmentArrival(se,ye){this._emitter.emit(wt.INIT_SEGMENT,se,ye)}_onRemuxerMediaSegmentArrival(se,ye){if(this._pendingSeekTime==null&&(this._emitter.emit(wt.MEDIA_SEGMENT,se,ye),this._pendingResolveSeekPoint!=null&&se==="video")){let Pe=ye.info.syncPoints,Ae=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&Pe.length>0&&Pe[0].originalDts===Ae&&(Ae=Pe[0].pts),this._emitter.emit(wt.RECOMMEND_SEEKPOINT,Ae)}}_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(se){let ye=this._mediaInfo.segments[se],Pe=Object.assign({},ye);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(wt.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let se={};se.url=this._ioctl.currentURL,se.hasRedirect=this._ioctl.hasRedirect,se.hasRedirect&&(se.redirectedURL=this._ioctl.currentRedirectedURL),se.speed=this._ioctl.currentSpeed,se.loaderType=this._ioctl.loaderType,se.currentSegmentIndex=this._currentSegmentIndex,se.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(wt.STATISTICS_INFO,se)}}var zn=xn,vr=function(hn){let se="TransmuxingWorker",ye=null,Pe=qn.bind(this);fe.install(),hn.addEventListener("message",function(Sn){switch(Sn.data.cmd){case"init":ye=new zn(Sn.data.param[0],Sn.data.param[1]),ye.on(wt.IO_ERROR,gr.bind(this)),ye.on(wt.DEMUX_ERROR,Nt.bind(this)),ye.on(wt.INIT_SEGMENT,Ae.bind(this)),ye.on(wt.MEDIA_SEGMENT,Oe.bind(this)),ye.on(wt.LOADING_COMPLETE,Je.bind(this)),ye.on(wt.RECOVERED_EARLY_EOF,pt.bind(this)),ye.on(wt.MEDIA_INFO,gn.bind(this)),ye.on(wt.METADATA_ARRIVED,$t.bind(this)),ye.on(wt.SCRIPTDATA_ARRIVED,Bn.bind(this)),ye.on(wt.STATISTICS_INFO,hr.bind(this)),ye.on(wt.RECOMMEND_SEEKPOINT,Wn.bind(this));break;case"destroy":ye&&(ye.destroy(),ye=null),hn.postMessage({msg:"destroyed"});break;case"start":ye.start();break;case"stop":ye.stop();break;case"seek":ye.seek(Sn.data.param);break;case"pause":ye.pause();break;case"resume":ye.resume();break;case"logging_config":{let Mn=Sn.data.param;rt.applyConfig(Mn),Mn.enableCallback===!0?rt.addLogListener(Pe):rt.removeLogListener(Pe);break}}});function Ae(Sn,Mn){let Xn={msg:wt.INIT_SEGMENT,data:{type:Sn,data:Mn}};hn.postMessage(Xn,[Mn.data])}function Oe(Sn,Mn){let Xn={msg:wt.MEDIA_SEGMENT,data:{type:Sn,data:Mn}};hn.postMessage(Xn,[Mn.data])}function Je(){let Sn={msg:wt.LOADING_COMPLETE};hn.postMessage(Sn)}function pt(){let Sn={msg:wt.RECOVERED_EARLY_EOF};hn.postMessage(Sn)}function gn(Sn){let Mn={msg:wt.MEDIA_INFO,data:Sn};hn.postMessage(Mn)}function $t(Sn){let Mn={msg:wt.METADATA_ARRIVED,data:Sn};hn.postMessage(Mn)}function Bn(Sn){let Mn={msg:wt.SCRIPTDATA_ARRIVED,data:Sn};hn.postMessage(Mn)}function hr(Sn){let Mn={msg:wt.STATISTICS_INFO,data:Sn};hn.postMessage(Mn)}function gr(Sn,Mn){hn.postMessage({msg:wt.IO_ERROR,data:{type:Sn,info:Mn}})}function Nt(Sn,Mn){hn.postMessage({msg:wt.DEMUX_ERROR,data:{type:Sn,info:Mn}})}function Wn(Sn){hn.postMessage({msg:wt.RECOMMEND_SEEKPOINT,data:Sn})}function qn(Sn,Mn){hn.postMessage({msg:"logcat_callback",data:{type:Sn,logcat:Mn}})}};class cr{constructor(se,ye){if(this.TAG="Transmuxer",this._emitter=new(_e()),ye.enableWorker&&typeof Worker!="undefined")try{let Pe=ee(18034);this._worker=Pe(vr),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[se,ye]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},rt.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:rt.getConfig()})}catch(Pe){pe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new zn(se,ye)}else this._controller=new zn(se,ye);if(this._controller){let Pe=this._controller;Pe.on(wt.IO_ERROR,this._onIOError.bind(this)),Pe.on(wt.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(wt.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(wt.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(wt.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(wt.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(wt.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(wt.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(wt.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(wt.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(wt.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),rt.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(se,ye){this._emitter.addListener(se,ye)}off(se,ye){this._emitter.removeListener(se,ye)}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(se){this._worker?this._worker.postMessage({cmd:"seek",param:se}):this._controller.seek(se)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(se,ye){Promise.resolve().then(()=>{this._emitter.emit(wt.INIT_SEGMENT,se,ye)})}_onMediaSegment(se,ye){Promise.resolve().then(()=>{this._emitter.emit(wt.MEDIA_SEGMENT,se,ye)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(wt.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(wt.RECOVERED_EARLY_EOF)})}_onMediaInfo(se){Promise.resolve().then(()=>{this._emitter.emit(wt.MEDIA_INFO,se)})}_onMetaDataArrived(se){Promise.resolve().then(()=>{this._emitter.emit(wt.METADATA_ARRIVED,se)})}_onScriptDataArrived(se){Promise.resolve().then(()=>{this._emitter.emit(wt.SCRIPTDATA_ARRIVED,se)})}_onStatisticsInfo(se){Promise.resolve().then(()=>{this._emitter.emit(wt.STATISTICS_INFO,se)})}_onIOError(se,ye){Promise.resolve().then(()=>{this._emitter.emit(wt.IO_ERROR,se,ye)})}_onDemuxError(se,ye){Promise.resolve().then(()=>{this._emitter.emit(wt.DEMUX_ERROR,se,ye)})}_onRecommendSeekpoint(se){Promise.resolve().then(()=>{this._emitter.emit(wt.RECOMMEND_SEEKPOINT,se)})}_onLoggingConfigChanged(se){this._worker&&this._worker.postMessage({cmd:"logging_config",param:se})}_onWorkerMessage(se){let ye=se.data,Pe=ye.data;if(ye.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ye.msg){case wt.INIT_SEGMENT:case wt.MEDIA_SEGMENT:this._emitter.emit(ye.msg,Pe.type,Pe.data);break;case wt.LOADING_COMPLETE:case wt.RECOVERED_EARLY_EOF:this._emitter.emit(ye.msg);break;case wt.MEDIA_INFO:Object.setPrototypeOf(Pe,Ct.prototype),this._emitter.emit(ye.msg,Pe);break;case wt.METADATA_ARRIVED:case wt.SCRIPTDATA_ARRIVED:case wt.STATISTICS_INFO:this._emitter.emit(ye.msg,Pe);break;case wt.IO_ERROR:case wt.DEMUX_ERROR:this._emitter.emit(ye.msg,Pe.type,Pe.info);break;case wt.RECOMMEND_SEEKPOINT:this._emitter.emit(ye.msg,Pe);break;case"logcat_callback":pe.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var wn=cr,Hr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class mo{constructor(se){this.TAG="MSEController",this._config=se,this._emitter=new(_e()),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 ht}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(se,ye){this._emitter.addListener(se,ye)}off(se,ye){this._emitter.removeListener(se,ye)}attachMediaElement(se){if(this._mediaSource)throw new ge("MediaSource has been attached to an HTMLMediaElement!");let ye=this._mediaSource=new window.MediaSource;ye.addEventListener("sourceopen",this.e.onSourceOpen),ye.addEventListener("sourceended",this.e.onSourceEnded),ye.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=se,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),se.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let se=this._mediaSource;for(let ye in this._sourceBuffers){let Pe=this._pendingSegments[ye];Pe.splice(0,Pe.length),this._pendingSegments[ye]=null,this._pendingRemoveRanges[ye]=null,this._lastInitSegments[ye]=null;let Ae=this._sourceBuffers[ye];if(Ae){if(se.readyState!=="closed"){try{se.removeSourceBuffer(Ae)}catch(Oe){pe.e(this.TAG,Oe.message)}Ae.removeEventListener("error",this.e.onSourceBufferError),Ae.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ye]=null,this._sourceBuffers[ye]=null}}if(se.readyState==="open")try{se.endOfStream()}catch(ye){pe.e(this.TAG,ye.message)}se.removeEventListener("sourceopen",this.e.onSourceOpen),se.removeEventListener("sourceended",this.e.onSourceEnded),se.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(se,ye){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(se),this._pendingSegments[se.type].push(se);return}let Pe=se,Ae=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(Ae+=`;codecs=${Pe.codec}`);let Oe=!1;if(pe.v(this.TAG,"Received Initialization Segment, mimeType: "+Ae),this._lastInitSegments[Pe.type]=Pe,Ae!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])pe.v(this.TAG,`Notice: ${Pe.type} mimeType changed, origin: ${this._mimeTypes[Pe.type]}, target: ${Ae}`);else{Oe=!0;try{let Je=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(Ae);Je.addEventListener("error",this.e.onSourceBufferError),Je.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Je){pe.e(this.TAG,Je.message),this._emitter.emit(Hr.ERROR,{code:Je.code,msg:Je.message});return}}this._mimeTypes[Pe.type]=Ae}ye||this._pendingSegments[Pe.type].push(Pe),Oe||this._sourceBuffers[Pe.type]&&!this._sourceBuffers[Pe.type].updating&&this._doAppendSegments(),b.safari&&Pe.container==="audio/mpeg"&&Pe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Pe.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(se){let ye=se;this._pendingSegments[ye.type].push(ye),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[ye.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(se){for(let ye in this._sourceBuffers){if(!this._sourceBuffers[ye])continue;let Pe=this._sourceBuffers[ye];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(Oe){pe.e(this.TAG,Oe.message)}this._idrList.clear();let Ae=this._pendingSegments[ye];if(Ae.splice(0,Ae.length),this._mediaSource.readyState!=="closed"){for(let Oe=0;Oe<Pe.buffered.length;Oe++){let Je=Pe.buffered.start(Oe),pt=Pe.buffered.end(Oe);this._pendingRemoveRanges[ye].push({start:Je,end:pt})}if(Pe.updating||this._doRemoveRanges(),b.safari){let Oe=this._lastInitSegments[ye];Oe&&(this._pendingSegments[ye].push(Oe),Pe.updating||this._doAppendSegments())}}}}endOfStream(){let se=this._mediaSource,ye=this._sourceBuffers;if(!se||se.readyState!=="open"){se&&se.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}ye.video&&ye.video.updating||ye.audio&&ye.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,se.endOfStream())}getNearestKeyframe(se){return this._idrList.getLastSyncPointBeforeDts(se)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let se=this._mediaElement.currentTime;for(let ye in this._sourceBuffers){let Pe=this._sourceBuffers[ye];if(Pe){let Ae=Pe.buffered;if(Ae.length>=1&&se-Ae.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let se=this._mediaElement.currentTime;for(let ye in this._sourceBuffers){let Pe=this._sourceBuffers[ye];if(Pe){let Ae=Pe.buffered,Oe=!1;for(let Je=0;Je<Ae.length;Je++){let pt=Ae.start(Je),gn=Ae.end(Je);if(pt<=se&&se<gn+3){if(se-pt>=this._config.autoCleanupMaxBackwardDuration){Oe=!0;let $t=se-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ye].push({start:pt,end:$t})}}else gn<se&&(Oe=!0,this._pendingRemoveRanges[ye].push({start:pt,end:gn}))}Oe&&!Pe.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let se=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||se.video&&se.video.updating||se.audio&&se.audio.updating)return;let ye=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(ye)||Pe>ye)&&(pe.v(this.TAG,`Update MediaSource duration from ${ye} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let se in this._pendingRemoveRanges){if(!this._sourceBuffers[se]||this._sourceBuffers[se].updating)continue;let ye=this._sourceBuffers[se],Pe=this._pendingRemoveRanges[se];for(;Pe.length&&!ye.updating;){let Ae=Pe.shift();ye.remove(Ae.start,Ae.end)}}}_doAppendSegments(){let se=this._pendingSegments;for(let ye in se)if(!(!this._sourceBuffers[ye]||this._sourceBuffers[ye].updating)&&se[ye].length>0){let Pe=se[ye].shift();if(Pe.timestampOffset){let Ae=this._sourceBuffers[ye].timestampOffset,Oe=Pe.timestampOffset/1e3;Math.abs(Ae-Oe)>.1&&(pe.v(this.TAG,`Update MPEG audio timestampOffset from ${Ae} to ${Oe}`),this._sourceBuffers[ye].timestampOffset=Oe),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[ye].appendBuffer(Pe.data),this._isBufferFull=!1,ye==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(Ae){this._pendingSegments[ye].unshift(Pe),Ae.code===22?(this._isBufferFull||this._emitter.emit(Hr.BUFFER_FULL),this._isBufferFull=!0):(pe.e(this.TAG,Ae.message),this._emitter.emit(Hr.ERROR,{code:Ae.code,msg:Ae.message}))}}}_onSourceOpen(){if(pe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let se=this._pendingSourceBufferInit;for(;se.length;){let ye=se.shift();this.appendInitSegment(ye,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Hr.SOURCE_OPEN)}_onSourceEnded(){pe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){pe.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 se=this._pendingSegments;return se.video.length>0||se.audio.length>0}_hasPendingRemoveRanges(){let se=this._pendingRemoveRanges;return se.video.length>0||se.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Hr.UPDATE_END)}_onSourceBufferError(se){pe.e(this.TAG,`SourceBuffer Error: ${se}`)}}var da=mo;const Ro={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Jo={NETWORK_EXCEPTION:ne.EXCEPTION,NETWORK_STATUS_CODE_INVALID:ne.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:ne.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:ne.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:qe.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:qe.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:qe.CODEC_UNSUPPORTED};class qo{constructor(se,ye){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(_e()),this._config=ke(),typeof ye=="object"&&Object.assign(this._config,ye),se.type.toLowerCase()!=="flv")throw new le("FlvPlayer requires an flv MediaDataSource input!");se.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=se,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 Pe=b.chrome&&(b.version.major<50||b.version.major===50&&b.version.build<2661);this._alwaysSeekKeyframe=!!(Pe||b.msedge||b.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(se,ye){se===en.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(en.MEDIA_INFO,this.mediaInfo)}):se===en.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(en.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(se,ye)}off(se,ye){this._emitter.removeListener(se,ye)}attachMediaElement(se){if(this._mediaElement=se,se.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),se.addEventListener("seeking",this.e.onvSeeking),se.addEventListener("canplay",this.e.onvCanPlay),se.addEventListener("stalled",this.e.onvStalled),se.addEventListener("progress",this.e.onvProgress),this._msectl=new da(this._config),this._msectl.on(Hr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Hr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Hr.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Hr.ERROR,ye=>{this._emitter.emit(en.ERROR,Ro.MEDIA_ERROR,Jo.MEDIA_MSE_ERROR,ye)}),this._msectl.attachMediaElement(se),this._pendingSeekTime!=null)try{se.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ye){}}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 ge("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new ge("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 wn(this._mediaDataSource,this._config),this._transmuxer.on(wt.INIT_SEGMENT,(se,ye)=>{this._msectl.appendInitSegment(ye)}),this._transmuxer.on(wt.MEDIA_SEGMENT,(se,ye)=>{if(this._msectl.appendMediaSegment(ye),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;ye.info.endDts>=(Pe+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(wt.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(en.LOADING_COMPLETE)}),this._transmuxer.on(wt.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(en.RECOVERED_EARLY_EOF)}),this._transmuxer.on(wt.IO_ERROR,(se,ye)=>{this._emitter.emit(en.ERROR,Ro.NETWORK_ERROR,se,ye)}),this._transmuxer.on(wt.DEMUX_ERROR,(se,ye)=>{this._emitter.emit(en.ERROR,Ro.MEDIA_ERROR,se,{code:-1,msg:ye})}),this._transmuxer.on(wt.MEDIA_INFO,se=>{this._mediaInfo=se,this._emitter.emit(en.MEDIA_INFO,Object.assign({},se))}),this._transmuxer.on(wt.METADATA_ARRIVED,se=>{this._emitter.emit(en.METADATA_ARRIVED,se)}),this._transmuxer.on(wt.SCRIPTDATA_ARRIVED,se=>{this._emitter.emit(en.SCRIPTDATA_ARRIVED,se)}),this._transmuxer.on(wt.STATISTICS_INFO,se=>{this._statisticsInfo=this._fillStatisticsInfo(se),this._emitter.emit(en.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(wt.RECOMMEND_SEEKPOINT,se=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=se/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(se){this._mediaElement.volume=se}get muted(){return this._mediaElement.muted}set muted(se){this._mediaElement.muted=se}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(se){this._mediaElement?this._internalSeek(se):this._pendingSeekTime=se}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(se){if(se.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return se;let ye=!0,Pe=0,Ae=0;if(this._mediaElement.getVideoPlaybackQuality){let Oe=this._mediaElement.getVideoPlaybackQuality();Pe=Oe.totalVideoFrames,Ae=Oe.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Ae=this._mediaElement.webkitDroppedFrameCount):ye=!1;return ye&&(se.decodedFrames=Pe,se.droppedFrames=Ae),se}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let se=this._mediaElement.buffered,ye=this._mediaElement.currentTime,Pe=0,Ae=0;for(let Oe=0;Oe<se.length;Oe++){let Je=se.start(Oe),pt=se.end(Oe);if(Je<=ye&&ye<pt){Pe=Je,Ae=pt;break}}Ae>=ye+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(pe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){pe.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 se=this._mediaElement.currentTime,ye=this._mediaElement.buffered,Pe=!1;for(let Ae=0;Ae<ye.length;Ae++){let Oe=ye.start(Ae),Je=ye.end(Ae);if(se>=Oe&&se<Je){se>=Je-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(pe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(se){let ye=this._mediaElement.buffered;for(let Pe=0;Pe<ye.length;Pe++){let Ae=ye.start(Pe),Oe=ye.end(Pe);if(se>=Ae&&se<Oe)return!0}return!1}_internalSeek(se){let ye=this._isTimepointBuffered(se),Pe=!1,Ae=0;if(se<1&&this._mediaElement.buffered.length>0){let Oe=this._mediaElement.buffered.start(0);(Oe<1&&se<Oe||b.safari)&&(Pe=!0,Ae=b.safari?.1:Oe)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=Ae;else if(ye){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=se;else{let Oe=this._msectl.getNearestKeyframe(Math.floor(se*1e3));this._requestSetTime=!0,Oe!=null?this._mediaElement.currentTime=Oe.dts/1e3:this._mediaElement.currentTime=se}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(se),this._transmuxer.seek(Math.floor(se*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=se)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let se=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(se)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(se),this._transmuxer.seek(Math.floor(se*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=se))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(se){let ye=this._mediaElement;if(se||!this._receivedCanPlay||ye.readyState<2){let Pe=ye.buffered;Pe.length>0&&ye.currentTime<Pe.start(0)&&(pe.w(this.TAG,`Playback seems stuck at ${ye.currentTime}, seek to ${Pe.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=Pe.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(se){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(se){let ye=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(ye<1&&Pe.length>0){let Ae=Pe.start(0);if(Ae<1&&ye<Ae||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:Ae;return}}if(this._isTimepointBuffered(ye)){if(this._alwaysSeekKeyframe){let Ae=this._msectl.getNearestKeyframe(Math.floor(ye*1e3));Ae!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=Ae.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:ye,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(se){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(se){this._checkAndResumeStuckPlayback(!0)}_onvProgress(se){this._checkAndResumeStuckPlayback()}}var ur=qo;class $r{constructor(se,ye){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(_e()),this._config=ke(),typeof ye=="object"&&Object.assign(this._config,ye),se.type.toLowerCase()==="flv")throw new le("NativePlayer does't support flv MediaDataSource input!");if(se.hasOwnProperty("segments"))throw new le(`NativePlayer(${se.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=se,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(se,ye){se===en.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(en.MEDIA_INFO,this.mediaInfo)}):se===en.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(en.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(se,ye)}off(se,ye){this._emitter.removeListener(se,ye)}attachMediaElement(se){if(this._mediaElement=se,se.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{se.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ye){}}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 ge("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(se){this._mediaElement.volume=se}get muted(){return this._mediaElement.muted}set muted(se){this._mediaElement.muted=se}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(se){this._mediaElement?this._mediaElement.currentTime=se:this._pendingSeekTime=se}get mediaInfo(){let ye={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(ye.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(ye.width=this._mediaElement.videoWidth,ye.height=this._mediaElement.videoHeight)),ye}get statisticsInfo(){let se={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return se;let ye=!0,Pe=0,Ae=0;if(this._mediaElement.getVideoPlaybackQuality){let Oe=this._mediaElement.getVideoPlaybackQuality();Pe=Oe.totalVideoFrames,Ae=Oe.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,Ae=this._mediaElement.webkitDroppedFrameCount):ye=!1;return ye&&(se.decodedFrames=Pe,se.droppedFrames=Ae),se}_onvLoadedMetadata(se){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(en.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(en.STATISTICS_INFO,this.statisticsInfo)}}var zr=$r;fe.install();function To(hn,se){let ye=hn;if(ye==null||typeof ye!="object")throw new le("MediaDataSource must be an javascript object!");if(!ye.hasOwnProperty("type"))throw new le("MediaDataSource must has type field to indicate video file type!");switch(ye.type){case"flv":return new ur(ye,se);default:return new zr(ye,se)}}function Fo(){return Et.supportMSEH264Playback()}function po(){return Et.getFeatureList()}let Lr={};Lr.createPlayer=To,Lr.isSupported=Fo,Lr.getFeatureList=po,Lr.BaseLoader=y,Lr.LoaderStatus=re,Lr.LoaderErrors=ne,Lr.Events=en,Lr.ErrorTypes=Ro,Lr.ErrorDetails=Jo,Lr.FlvPlayer=ur,Lr.NativePlayer=zr,Lr.LoggingControl=rt,Object.defineProperty(Lr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var vo=Lr},38780:function(ot,Ze){"use strict";function ee(){const te=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let fe=1;fe<arguments.length;fe++){const be=fe<0||arguments.length<=fe?void 0:arguments[fe];be&&Object.keys(be).forEach(_e=>{const ce=be[_e];ce!==void 0&&(te[_e]=ce)})}return te}Ze.Z=ee},66367:function(ot,Ze,ee){"use strict";ee.d(Ze,{F:function(){return te},Z:function(){return fe}});function te(be){return be!=null&&be===be.window}function fe(be,_e){var ce,pe;if(typeof window=="undefined")return 0;const ae=_e?"scrollTop":"scrollLeft";let me=0;return te(be)?me=be[_e?"pageYOffset":"pageXOffset"]:be instanceof Document?me=be.documentElement[ae]:(be instanceof HTMLElement||be)&&(me=be[ae]),be&&!te(be)&&typeof me!="number"&&(me=(pe=((ce=be.ownerDocument)!==null&&ce!==void 0?ce:be).documentElement)===null||pe===void 0?void 0:pe[ae]),me}},57838:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return fe}});var te=ee(67294);function fe(){const[,be]=te.useReducer(_e=>_e+1,0);return be}},58375:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return _e}});var te=ee(96523);function fe(ce,pe,ae,me){const de=ae-pe;return ce/=me/2,ce<1?de/2*ce*ce*ce+pe:de/2*((ce-=2)*ce*ce+2)+pe}var be=ee(66367);function _e(ce){let pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ae=()=>window,callback:me,duration:de=450}=pe,ge=ae(),le=(0,be.Z)(ge,!0),he=Date.now(),re=()=>{const y=Date.now()-he,a=fe(y>de?de:y,le,ce,de);(0,be.F)(ge)?ge.scrollTo(window.pageXOffset,a):ge instanceof Document||ge.constructor.name==="HTMLDocument"?ge.documentElement.scrollTop=a:ge.scrollTop=a,y<de?(0,te.Z)(re):typeof me=="function"&&me()};(0,te.Z)(re)}},84567:function(ot,Ze,ee){"use strict";ee.d(Ze,{default:function(){return ve}});var te=ee(94184),fe=ee.n(te),be=ee(95860),_e=ee(67294),ce=ee(53124),pe=ee(98866),ae=ee(65223),de=_e.createContext(null),ge=ee(63185),le=ee(45353),he=ee(92429),re=function(Se,Le){var we={};for(var Ne in Se)Object.prototype.hasOwnProperty.call(Se,Ne)&&Le.indexOf(Ne)<0&&(we[Ne]=Se[Ne]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ne=Object.getOwnPropertySymbols(Se);xe<Ne.length;xe++)Le.indexOf(Ne[xe])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ne[xe])&&(we[Ne[xe]]=Se[Ne[xe]]);return we};const ne=(Se,Le)=>{var we;const{prefixCls:Ne,className:xe,rootClassName:st,children:Ye,indeterminate:lt=!1,style:Me,onMouseEnter:Be,onMouseLeave:Re,skipGroup:ke=!1,disabled:Ge}=Se,Et=re(Se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:It,direction:en,checkbox:Zt}=_e.useContext(ce.E_),rt=_e.useContext(de),{isFormItemInput:at}=_e.useContext(ae.aM),Ct=_e.useContext(pe.Z),qt=(we=(rt==null?void 0:rt.disabled)||Ge)!==null&&we!==void 0?we:Ct,Gt=_e.useRef(Et.value);_e.useEffect(()=>{rt==null||rt.registerValue(Et.value)},[]),_e.useEffect(()=>{if(!ke)return Et.value!==Gt.current&&(rt==null||rt.cancelValue(Gt.current),rt==null||rt.registerValue(Et.value),Gt.current=Et.value),()=>rt==null?void 0:rt.cancelValue(Et.value)},[Et.value]);const xt=It("checkbox",Ne),[Ve,Qt]=(0,ge.ZP)(xt),Ln=Object.assign({},Et);rt&&!ke&&(Ln.onChange=function(){Et.onChange&&Et.onChange.apply(Et,arguments),rt.toggleOption&&rt.toggleOption({label:Ye,value:Et.value})},Ln.name=rt.name,Ln.checked=rt.value.includes(Et.value));const Hn=fe()(`${xt}-wrapper`,{[`${xt}-rtl`]:en==="rtl",[`${xt}-wrapper-checked`]:Ln.checked,[`${xt}-wrapper-disabled`]:qt,[`${xt}-wrapper-in-form-item`]:at},Zt==null?void 0:Zt.className,xe,st,Qt),mn=fe()({[`${xt}-indeterminate`]:lt},he.A,Qt),zt=lt?"mixed":void 0;return Ve(_e.createElement(le.Z,{component:"Checkbox",disabled:qt},_e.createElement("label",{className:Hn,style:Object.assign(Object.assign({},Zt==null?void 0:Zt.style),Me),onMouseEnter:Be,onMouseLeave:Re},_e.createElement(be.Z,Object.assign({"aria-checked":zt},Ln,{prefixCls:xt,className:mn,disabled:qt,ref:Le})),Ye!==void 0&&_e.createElement("span",null,Ye))))};var a=_e.forwardRef(ne),E=ee(74902),b=ee(10366),x=function(Se,Le){var we={};for(var Ne in Se)Object.prototype.hasOwnProperty.call(Se,Ne)&&Le.indexOf(Ne)<0&&(we[Ne]=Se[Ne]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ne=Object.getOwnPropertySymbols(Se);xe<Ne.length;xe++)Le.indexOf(Ne[xe])<0&&Object.prototype.propertyIsEnumerable.call(Se,Ne[xe])&&(we[Ne[xe]]=Se[Ne[xe]]);return we};const z=(Se,Le)=>{const{defaultValue:we,children:Ne,options:xe=[],prefixCls:st,className:Ye,rootClassName:lt,style:Me,onChange:Be}=Se,Re=x(Se,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ke,direction:Ge}=_e.useContext(ce.E_),[Et,It]=_e.useState(Re.value||we||[]),[en,Zt]=_e.useState([]);_e.useEffect(()=>{"value"in Re&&It(Re.value||[])},[Re.value]);const rt=_e.useMemo(()=>xe.map(et=>typeof et=="string"||typeof et=="number"?{label:et,value:et}:et),[xe]),at=et=>{Zt(Xe=>Xe.filter(qe=>qe!==et))},Ct=et=>{Zt(Xe=>[].concat((0,E.Z)(Xe),[et]))},qt=et=>{const Xe=Et.indexOf(et.value),qe=(0,E.Z)(Et);Xe===-1?qe.push(et.value):qe.splice(Xe,1),"value"in Re||It(qe),Be==null||Be(qe.filter(ft=>en.includes(ft)).sort((ft,Dt)=>{const tt=rt.findIndex(bt=>bt.value===ft),vt=rt.findIndex(bt=>bt.value===Dt);return tt-vt}))},Gt=ke("checkbox",st),xt=`${Gt}-group`,[Ve,Qt]=(0,ge.ZP)(Gt),Ln=(0,b.Z)(Re,["value","disabled"]),Hn=xe.length?rt.map(et=>_e.createElement(a,{prefixCls:Gt,key:et.value.toString(),disabled:"disabled"in et?et.disabled:Re.disabled,value:et.value,checked:Et.includes(et.value),onChange:et.onChange,className:`${xt}-item`,style:et.style,title:et.title},et.label)):Ne,mn={toggleOption:qt,value:Et,disabled:Re.disabled,name:Re.name,registerValue:Ct,cancelValue:at},zt=fe()(xt,{[`${xt}-rtl`]:Ge==="rtl"},Ye,lt,Qt);return Ve(_e.createElement("div",Object.assign({className:zt,style:Me},Ln,{ref:Le}),_e.createElement(de.Provider,{value:mn},Hn)))},oe=_e.forwardRef(z);var ie=_e.memo(oe);const ue=a;ue.Group=ie,ue.__ANT_CHECKBOX=!0;var ve=ue},63185:function(ot,Ze,ee){"use strict";ee.d(Ze,{C2:function(){return ce}});var te=ee(14747),fe=ee(45503),be=ee(67968);const _e=pe=>{const{checkboxCls:ae}=pe,me=`${ae}-wrapper`;return[{[`${ae}-group`]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{display:"inline-flex",flexWrap:"wrap",columnGap:pe.marginXS,[`> ${pe.antCls}-row`]:{flex:1}}),[me]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${me}`]:{marginInlineStart:0},[`&${me}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ae]:Object.assign(Object.assign({},(0,te.Wf)(pe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:pe.borderRadiusSM,alignSelf:"center",[`${ae}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ae}-inner`]:Object.assign({},(0,te.oN)(pe))},[`${ae}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:pe.checkboxSize,height:pe.checkboxSize,direction:"ltr",backgroundColor:pe.colorBgContainer,border:`${pe.lineWidth}px ${pe.lineType} ${pe.colorBorder}`,borderRadius:pe.borderRadiusSM,borderCollapse:"separate",transition:`all ${pe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:pe.checkboxSize/14*5,height:pe.checkboxSize/14*8,border:`${pe.lineWidthBold}px solid ${pe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${pe.motionDurationFast} ${pe.motionEaseInBack}, opacity ${pe.motionDurationFast}`}},"& + span":{paddingInlineStart:pe.paddingXS,paddingInlineEnd:pe.paddingXS}})},{[`
${me}:not(${me}-disabled),
${ae}:not(${ae}-disabled)
`]:{[`&:hover ${ae}-inner`]:{borderColor:pe.colorPrimary}},[`${me}:not(${me}-disabled)`]:{[`&:hover ${ae}-checked:not(${ae}-disabled) ${ae}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ae}-checked:not(${ae}-disabled):after`]:{borderColor:pe.colorPrimaryHover}}},{[`${ae}-checked`]:{[`${ae}-inner`]:{backgroundColor:pe.colorPrimary,borderColor:pe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${pe.motionDurationMid} ${pe.motionEaseOutBack} ${pe.motionDurationFast}`}}},[`
${me}-checked:not(${me}-disabled),
${ae}-checked:not(${ae}-disabled)
`]:{[`&:hover ${ae}-inner`]:{backgroundColor:pe.colorPrimaryHover,borderColor:"transparent"}}},{[ae]:{"&-indeterminate":{[`${ae}-inner`]:{backgroundColor:pe.colorBgContainer,borderColor:pe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:pe.fontSizeLG/2,height:pe.fontSizeLG/2,backgroundColor:pe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${me}-disabled`]:{cursor:"not-allowed"},[`${ae}-disabled`]:{[`&, ${ae}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ae}-inner`]:{background:pe.colorBgContainerDisabled,borderColor:pe.colorBorder,"&:after":{borderColor:pe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:pe.colorTextDisabled},[`&${ae}-indeterminate ${ae}-inner::after`]:{background:pe.colorTextDisabled}}}]};function ce(pe,ae){const me=(0,fe.TS)(ae,{checkboxCls:`.${pe}`,checkboxSize:ae.controlInteractiveSize});return[_e(me)]}Ze.ZP=(0,be.Z)("Checkbox",(pe,ae)=>{let{prefixCls:me}=ae;return[ce(me,pe)]})},72565:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return ri}});var te=ee(94184),fe=ee.n(te),be=ee(1413),_e=ee(97685),ce=ee(67294),pe=ee(73935);function ae(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var me={};function de(gt,dt){}function ge(gt,dt){}function le(){me={}}function he(gt,dt,Tt){!dt&&!me[Tt]&&(gt(!1,Tt),me[Tt]=!0)}function re(gt,dt){he(de,gt,dt)}function ne(gt,dt){he(ge,gt,dt)}var y=null,a=ee(71002),E=ee(18459);function b(gt,dt,Tt){var Yt=ce.useRef({});return(!("value"in Yt.current)||Tt(Yt.current.condition,dt))&&(Yt.current.value=gt(),Yt.current.condition=dt),Yt.current.value}function x(gt,dt){typeof gt=="function"?gt(dt):(0,a.Z)(gt)==="object"&&gt&&"current"in gt&&(gt.current=dt)}function z(){for(var gt=arguments.length,dt=new Array(gt),Tt=0;Tt<gt;Tt++)dt[Tt]=arguments[Tt];var Yt=dt.filter(function(yn){return yn});return Yt.length<=1?Yt[0]:function(yn){dt.forEach(function(ir){x(ir,yn)})}}function oe(){for(var gt=arguments.length,dt=new Array(gt),Tt=0;Tt<gt;Tt++)dt[Tt]=arguments[Tt];return b(function(){return z.apply(void 0,dt)},dt,function(Yt,yn){return Yt.length===yn.length&&Yt.every(function(ir,Er){return ir===yn[Er]})})}function ie(gt){var dt,Tt,Yt=(0,E.isMemo)(gt)?gt.type.type:gt.type;return!(typeof Yt=="function"&&!((dt=Yt.prototype)!==null&&dt!==void 0&&dt.render)||typeof gt=="function"&&!((Tt=gt.prototype)!==null&&Tt!==void 0&&Tt.render))}var ue=ce.createContext(null),ve=ue,Se=ee(74902),Le=ae()?ce.useLayoutEffect:ce.useEffect,we=Le,Ne=function(dt,Tt){var Yt=React.useRef(!0);Le(function(){if(!Yt.current)return dt()},Tt),Le(function(){return Yt.current=!1,function(){Yt.current=!0}},[])},xe=[];function st(gt,dt){var Tt=ce.useState(function(){if(!ae())return null;var _t=document.createElement("div");return _t}),Yt=(0,_e.Z)(Tt,1),yn=Yt[0],ir=ce.useRef(!1),Er=ce.useContext(ve),Tr=ce.useState(xe),_r=(0,_e.Z)(Tr,2),yo=_r[0],Do=_r[1],Bo=Er||(ir.current?void 0:function(_t){Do(function(jt){var Ue=[_t].concat((0,Se.Z)(jt));return Ue})});function fa(){yn.parentElement||document.body.appendChild(yn),ir.current=!0}function yt(){var _t;(_t=yn.parentElement)===null||_t===void 0||_t.removeChild(yn),ir.current=!1}return we(function(){return gt?Er?Er(fa):fa():yt(),yt},[gt]),we(function(){yo.length&&(yo.forEach(function(_t){return _t()}),Do(xe))},[yo]),[yn,Bo]}function Ye(gt,dt){if(!gt)return!1;if(gt.contains)return gt.contains(dt);for(var Tt=dt;Tt;){if(Tt===gt)return!0;Tt=Tt.parentNode}return!1}var lt="data-rc-order",Me="rc-util-key",Be=new Map;function Re(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},dt=gt.mark;return dt?dt.startsWith("data-")?dt:"data-".concat(dt):Me}function ke(gt){if(gt.attachTo)return gt.attachTo;var dt=document.querySelector("head");return dt||document.body}function Ge(gt){return gt==="queue"?"prependQueue":gt?"prepend":"append"}function Et(gt){return Array.from((Be.get(gt)||gt).children).filter(function(dt){return dt.tagName==="STYLE"})}function It(gt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ae())return null;var Tt=dt.csp,Yt=dt.prepend,yn=document.createElement("style");yn.setAttribute(lt,Ge(Yt)),Tt!=null&&Tt.nonce&&(yn.nonce=Tt==null?void 0:Tt.nonce),yn.innerHTML=gt;var ir=ke(dt),Er=ir.firstChild;if(Yt){if(Yt==="queue"){var Tr=Et(ir).filter(function(_r){return["prepend","prependQueue"].includes(_r.getAttribute(lt))});if(Tr.length)return ir.insertBefore(yn,Tr[Tr.length-1].nextSibling),yn}ir.insertBefore(yn,Er)}else ir.appendChild(yn);return yn}function en(gt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tt=ke(dt);return Et(Tt).find(function(Yt){return Yt.getAttribute(Re(dt))===gt})}function Zt(gt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tt=en(gt,dt);if(Tt){var Yt=ke(dt);Yt.removeChild(Tt)}}function rt(gt,dt){var Tt=Be.get(gt);if(!Tt||!Ye(document,Tt)){var Yt=It("",dt),yn=Yt.parentNode;Be.set(gt,yn),gt.removeChild(Yt)}}function at(){Be.clear()}function Ct(gt,dt){var Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Yt=ke(Tt);rt(Yt,Tt);var yn=en(dt,Tt);if(yn){var ir,Er;if((ir=Tt.csp)!==null&&ir!==void 0&&ir.nonce&&yn.nonce!==((Er=Tt.csp)===null||Er===void 0?void 0:Er.nonce)){var Tr;yn.nonce=(Tr=Tt.csp)===null||Tr===void 0?void 0:Tr.nonce}return yn.innerHTML!==gt&&(yn.innerHTML=gt),yn}var _r=It(gt,Tt);return _r.setAttribute(Re(Tt),dt),_r}var qt;function Gt(gt){if(typeof document=="undefined")return 0;if(gt||qt===void 0){var dt=document.createElement("div");dt.style.width="100%",dt.style.height="200px";var Tt=document.createElement("div"),Yt=Tt.style;Yt.position="absolute",Yt.top="0",Yt.left="0",Yt.pointerEvents="none",Yt.visibility="hidden",Yt.width="200px",Yt.height="150px",Yt.overflow="hidden",Tt.appendChild(dt),document.body.appendChild(Tt);var yn=dt.offsetWidth;Tt.style.overflow="scroll";var ir=dt.offsetWidth;yn===ir&&(ir=Tt.clientWidth),document.body.removeChild(Tt),qt=yn-ir}return qt}function xt(gt){var dt=gt.match(/^(.*)px$/),Tt=Number(dt==null?void 0:dt[1]);return Number.isNaN(Tt)?Gt():Tt}function Ve(gt){if(typeof document=="undefined"||!gt||!(gt instanceof Element))return{width:0,height:0};var dt=getComputedStyle(gt,"::-webkit-scrollbar"),Tt=dt.width,Yt=dt.height;return{width:xt(Tt),height:xt(Yt)}}function Qt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Ln="rc-util-locker-".concat(Date.now()),Hn=0;function mn(gt){var dt=!!gt,Tt=ce.useState(function(){return Hn+=1,"".concat(Ln,"_").concat(Hn)}),Yt=(0,_e.Z)(Tt,1),yn=Yt[0];we(function(){if(dt){var ir=Ve(document.body).width,Er=Qt();Ct(`
html body {
overflow-y: hidden;
`.concat(Er?"width: calc(100% - ".concat(ir,"px);"):"",`
}`),yn)}else Zt(yn);return function(){Zt(yn)}},[dt,yn])}var zt=!1;function et(gt){return typeof gt=="boolean"&&(zt=gt),zt}var Xe=function(dt){return dt===!1?!1:!ae()||!dt?null:typeof dt=="string"?document.querySelector(dt):typeof dt=="function"?dt():dt},qe=ce.forwardRef(function(gt,dt){var Tt=gt.open,Yt=gt.autoLock,yn=gt.getContainer,ir=gt.debug,Er=gt.autoDestroy,Tr=Er===void 0?!0:Er,_r=gt.children,yo=ce.useState(Tt),Do=(0,_e.Z)(yo,2),Bo=Do[0],fa=Do[1],yt=Bo||Tt;ce.useEffect(function(){(Tr||Tt)&&fa(Tt)},[Tt,Tr]);var _t=ce.useState(function(){return Xe(yn)}),jt=(0,_e.Z)(_t,2),Ue=jt[0],Ut=jt[1];ce.useEffect(function(){var sr=Xe(yn);Ut(sr!=null?sr:null)});var Xt=st(yt&&!Ue,ir),pn=(0,_e.Z)(Xt,2),Lt=pn[0],Ft=pn[1],Ot=Ue!=null?Ue:Lt;mn(Yt&&Tt&&ae()&&(Ot===Lt||Ot===document.body));var vn=null;if(_r&&ie(_r)&&dt){var Fn=_r;vn=Fn.ref}var Kn=oe(vn,dt);if(!yt||!ae()||Ue===void 0)return null;var kn=Ot===!1||et(),Qn=_r;return dt&&(Qn=ce.cloneElement(_r,{ref:Kn})),ce.createElement(ve.Provider,{value:Ft},kn?Qn:(0,pe.createPortal)(Qn,Ot))}),ft=qe,Dt=ft;function tt(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var vt=tt()?ce.useLayoutEffect:ce.useEffect,bt=function(dt,Tt){var Yt=ce.useRef(!0);vt(function(){return dt(Yt.current)},Tt),vt(function(){return Yt.current=!1,function(){Yt.current=!0}},[])},Qe=function(dt,Tt){bt(function(Yt){if(!Yt)return dt()},Tt)},Wt=bt,He=ce.createContext(null),ut=ce.createContext({}),En=He,un=ee(4942),ht=ee(87462),sn=ee(62874),ln={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(dt){var Tt=dt.keyCode;if(dt.altKey&&!dt.ctrlKey||dt.metaKey||Tt>=ln.F1&&Tt<=ln.F12)return!1;switch(Tt){case ln.ALT:case ln.CAPS_LOCK:case ln.CONTEXT_MENU:case ln.CTRL:case ln.DOWN:case ln.END:case ln.ESC:case ln.HOME:case ln.INSERT:case ln.LEFT:case ln.MAC_FF_META:case ln.META:case ln.NUMLOCK:case ln.NUM_CENTER:case ln.PAGE_DOWN:case ln.PAGE_UP:case ln.PAUSE:case ln.PRINT_SCREEN:case ln.RIGHT:case ln.SHIFT:case ln.UP:case ln.WIN_KEY:case ln.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(dt){if(dt>=ln.ZERO&&dt<=ln.NINE||dt>=ln.NUM_ZERO&&dt<=ln.NUM_MULTIPLY||dt>=ln.A&&dt<=ln.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&dt===0)return!0;switch(dt){case ln.SPACE:case ln.QUESTION_MARK:case ln.NUM_PLUS:case ln.NUM_MINUS:case ln.NUM_PERIOD:case ln.NUM_DIVISION:case ln.SEMICOLON:case ln.DASH:case ln.EQUALS:case ln.COMMA:case ln.PERIOD:case ln.SLASH:case ln.APOSTROPHE:case ln.SINGLE_QUOTE:case ln.OPEN_SQUARE_BRACKET:case ln.BACKSLASH:case ln.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},fn=ln,nr=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,wt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,xn="".concat(nr," ").concat(wt).split(/[\s\n]+/),zn="aria-",Gr="data-";function vr(gt,dt){return gt.indexOf(dt)===0}function cr(gt){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt;dt===!1?Tt={aria:!0,data:!0,attr:!0}:dt===!0?Tt={aria:!0}:Tt=(0,be.Z)({},dt);var Yt={};return Object.keys(gt).forEach(function(yn){(Tt.aria&&(yn==="role"||vr(yn,zn))||Tt.data&&vr(yn,Gr)||Tt.attr&&xn.includes(yn))&&(Yt[yn]=gt[yn])}),Yt}function wn(gt){var dt=React.useRef();dt.current=gt;var Tt=React.useCallback(function(){for(var Yt,yn=arguments.length,ir=new Array(yn),Er=0;Er<yn;Er++)ir[Er]=arguments[Er];return(Yt=dt.current)===null||Yt===void 0?void 0:Yt.call.apply(Yt,[dt].concat(ir))},[]);return Tt}function jr(gt){var dt=React.useRef(!1),Tt=React.useState(gt),Yt=_slicedToArray(Tt,2),yn=Yt[0],ir=Yt[1];React.useEffect(function(){return dt.current=!1,function(){dt.current=!0}},[]);function Er(Tr,_r){_r&&dt.current||ir(Tr)}return[yn,Er]}function Hr(gt){return gt!==void 0}function mo(gt,dt){var Tt=dt||{},Yt=Tt.defaultValue,yn=Tt.value,ir=Tt.onChange,Er=Tt.postState,Tr=useState(function(){return Hr(yn)?yn:Hr(Yt)?typeof Yt=="function"?Yt():Yt:typeof gt=="function"?gt():gt}),_r=_slicedToArray(Tr,2),yo=_r[0],Do=_r[1],Bo=yn!==void 0?yn:yo,fa=Er?Er(Bo):Bo,yt=useEvent(ir),_t=useState([Bo]),jt=_slicedToArray(_t,2),Ue=jt[0],Ut=jt[1];useLayoutUpdateEffect(function(){var pn=Ue[0];yo!==pn&&yt(yo,pn)},[Ue]),useLayoutUpdateEffect(function(){Hr(yn)||Do(yn)},[yn]);var Xt=useEvent(function(pn,Lt){Do(pn,Lt),Ut([Bo],Lt)});return[fa,Xt]}var da=ee(33993);function Ro(gt,dt,Tt){var Yt=ce.useRef({});return(!("value"in Yt.current)||Tt(Yt.current.condition,dt))&&(Yt.current.value=gt(),Yt.current.condition=dt),Yt.current.value}function Jo(gt,dt){typeof gt=="function"?gt(dt):(0,a.Z)(gt)==="object"&&gt&&"current"in gt&&(gt.current=dt)}function qo(){for(var gt=arguments.length,dt=new Array(gt),Tt=0;Tt<gt;Tt++)dt[Tt]=arguments[Tt];var Yt=dt.filter(function(yn){return yn});return Yt.length<=1?Yt[0]:function(yn){dt.forEach(function(ir){Jo(ir,yn)})}}function ur(){for(var gt=arguments.length,dt=new Array(gt),Tt=0;Tt<gt;Tt++)dt[Tt]=arguments[Tt];return Ro(function(){return qo.apply(void 0,dt)},dt,function(Yt,yn){return Yt.length!==yn.length||Yt.every(function(ir,Er){return ir!==yn[Er]})})}function $r(gt){var dt,Tt,Yt=isMemo(gt)?gt.type.type:gt.type;return!(typeof Yt=="function"&&!((dt=Yt.prototype)!==null&&dt!==void 0&&dt.render)||typeof gt=="function"&&!((Tt=gt.prototype)!==null&&Tt!==void 0&&Tt.render))}function zr(gt){return!isValidElement(gt)||isFragment(gt)?!1:$r(gt)}function To(gt,dt,Tt,Yt){if(!dt.length)return Tt;var yn=_toArray(dt),ir=yn[0],Er=yn.slice(1),Tr;return!gt&&typeof ir=="number"?Tr=[]:Array.isArray(gt)?Tr=_toConsumableArray(gt):Tr=_objectSpread({},gt),Yt&&Tt===void 0&&Er.length===1?delete Tr[ir][Er[0]]:Tr[ir]=To(Tr[ir],Er,Tt,Yt),Tr}function Fo(gt,dt,Tt){var Yt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return dt.length&&Yt&&Tt===void 0&&!get(gt,dt.slice(0,-1))?gt:To(gt,dt,Tt,Yt)}function po(gt){return _typeof(gt)==="object"&&gt!==null&&Object.getPrototypeOf(gt)===Object.prototype}function Lr(gt){return Array.isArray(gt)?[]:{}}var vo=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function hn(){for(var gt=arguments.length,dt=new Array(gt),Tt=0;Tt<gt;Tt++)dt[Tt]=arguments[Tt];var Yt=Lr(dt[0]);return dt.forEach(function(yn){function ir(Er,Tr){var _r=new Set(Tr),yo=get(yn,Er),Do=Array.isArray(yo);if(Do||po(yo)){if(!_r.has(yo)){_r.add(yo);var Bo=get(Yt,Er);Do?Yt=Fo(Yt,Er,[]):(!Bo||_typeof(Bo)!=="object")&&(Yt=Fo(Yt,Er,Lr(yo))),vo(yo).forEach(function(fa){ir([].concat(_toConsumableArray(Er),[fa]),_r)})}}else Yt=Fo(Yt,Er,yo)}ir([])}),Yt}var se={},ye=[],Pe=function(dt){ye.push(dt)};function Ae(gt,dt){if(0)var Tt}function Oe(gt,dt){if(0)var Tt}function Je(){se={}}function pt(gt,dt,Tt){!dt&&!se[Tt]&&(gt(!1,Tt),se[Tt]=!0)}function gn(gt,dt){pt(Ae,gt,dt)}function $t(gt,dt){pt(Oe,gt,dt)}gn.preMessage=Pe,gn.resetWarned=Je,gn.noteOnce=$t;var Bn=gn,hr=function(dt){var Tt=dt.prefixCls,Yt=dt.className,yn=dt.style,ir=dt.children,Er=dt.containerRef,Tr=dt.id,_r=dt.onMouseEnter,yo=dt.onMouseOver,Do=dt.onMouseLeave,Bo=dt.onClick,fa=dt.onKeyDown,yt=dt.onKeyUp,_t={onMouseEnter:_r,onMouseOver:yo,onMouseLeave:Do,onClick:Bo,onKeyDown:fa,onKeyUp:yt},jt=ce.useContext(ut),Ue=jt.panel,Ut=ur(Ue,Er);return ce.createElement(ce.Fragment,null,ce.createElement("div",(0,ht.Z)({id:Tr,className:fe()("".concat(Tt,"-content"),Yt),style:(0,be.Z)({},yn),"aria-modal":"true",role:"dialog",ref:Ut},_t),ir))},gr=hr;function Nt(gt){return typeof gt=="string"&&String(Number(gt))===gt?(Bn(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(gt)):gt}function Wn(gt){warning(!("wrapperClassName"in gt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!gt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var qn={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Sn(gt,dt){var Tt,Yt,yn,ir,Er=gt.prefixCls,Tr=gt.open,_r=gt.placement,yo=gt.inline,Do=gt.push,Bo=gt.forceRender,fa=gt.autoFocus,yt=gt.keyboard,_t=gt.rootClassName,jt=gt.rootStyle,Ue=gt.zIndex,Ut=gt.className,Xt=gt.id,pn=gt.style,Lt=gt.motion,Ft=gt.width,Ot=gt.height,vn=gt.children,Fn=gt.contentWrapperStyle,Kn=gt.mask,kn=gt.maskClosable,Qn=gt.maskMotion,sr=gt.maskClassName,xr=gt.maskStyle,Bt=gt.afterOpenChange,Kt=gt.onClose,rn=gt.onMouseEnter,an=gt.onMouseOver,Vn=gt.onMouseLeave,lr=gt.onClick,$e=gt.onKeyDown,Fe=gt.onKeyUp,nt=ce.useRef(),St=ce.useRef(),Mt=ce.useRef();ce.useImperativeHandle(dt,function(){return nt.current});var Ht=function(no){var Lo=no.keyCode,la=no.shiftKey;switch(Lo){case fn.TAB:{if(Lo===fn.TAB){if(!la&&document.activeElement===Mt.current){var So;(So=St.current)===null||So===void 0||So.focus({preventScroll:!0})}else if(la&&document.activeElement===St.current){var na;(na=Mt.current)===null||na===void 0||na.focus({preventScroll:!0})}}break}case fn.ESC:{Kt&&yt&&(no.stopPropagation(),Kt(no));break}}};ce.useEffect(function(){if(Tr&&fa){var Mr;(Mr=nt.current)===null||Mr===void 0||Mr.focus({preventScroll:!0})}},[Tr]);var dn=ce.useState(!1),_n=(0,_e.Z)(dn,2),An=_n[0],Un=_n[1],Tn=ce.useContext(En),In;Do===!1?In={distance:0}:Do===!0?In={}:In=Do||{};var Gn=(Tt=(Yt=(yn=In)===null||yn===void 0?void 0:yn.distance)!==null&&Yt!==void 0?Yt:Tn==null?void 0:Tn.pushDistance)!==null&&Tt!==void 0?Tt:180,Br=ce.useMemo(function(){return{pushDistance:Gn,push:function(){Un(!0)},pull:function(){Un(!1)}}},[Gn]);ce.useEffect(function(){if(Tr){var Mr;Tn==null||(Mr=Tn.push)===null||Mr===void 0||Mr.call(Tn)}else{var no;Tn==null||(no=Tn.pull)===null||no===void 0||no.call(Tn)}},[Tr]),ce.useEffect(function(){return function(){var Mr;Tn==null||(Mr=Tn.pull)===null||Mr===void 0||Mr.call(Tn)}},[]);var qr=Kn&&ce.createElement(sn.Z,(0,ht.Z)({key:"mask"},Qn,{visible:Tr}),function(Mr,no){var Lo=Mr.className,la=Mr.style;return ce.createElement("div",{className:fe()("".concat(Er,"-mask"),Lo,sr),style:(0,be.Z)((0,be.Z)({},la),xr),onClick:kn&&Tr?Kt:void 0,ref:no})}),Eo=typeof Lt=="function"?Lt(_r):Lt,Yr={};if(An&&Gn)switch(_r){case"top":Yr.transform="translateY(".concat(Gn,"px)");break;case"bottom":Yr.transform="translateY(".concat(-Gn,"px)");break;case"left":Yr.transform="translateX(".concat(Gn,"px)");break;default:Yr.transform="translateX(".concat(-Gn,"px)");break}_r==="left"||_r==="right"?Yr.width=Nt(Ft):Yr.height=Nt(Ot);var to={onMouseEnter:rn,onMouseOver:an,onMouseLeave:Vn,onClick:lr,onKeyDown:$e,onKeyUp:Fe},Jr=ce.createElement(sn.Z,(0,ht.Z)({key:"panel"},Eo,{visible:Tr,forceRender:Bo,onVisibleChanged:function(no){Bt==null||Bt(no)},removeOnLeave:!1,leavedClassName:"".concat(Er,"-content-wrapper-hidden")}),function(Mr,no){var Lo=Mr.className,la=Mr.style;return ce.createElement("div",(0,ht.Z)({className:fe()("".concat(Er,"-content-wrapper"),Lo),style:(0,be.Z)((0,be.Z)((0,be.Z)({},Yr),la),Fn)},cr(gt,{data:!0})),ce.createElement(gr,(0,ht.Z)({id:Xt,containerRef:no,prefixCls:Er,className:Ut,style:pn},to),vn))}),Ko=(0,be.Z)({},jt);return Ue&&(Ko.zIndex=Ue),ce.createElement(En.Provider,{value:Br},ce.createElement("div",{className:fe()(Er,"".concat(Er,"-").concat(_r),_t,(ir={},(0,un.Z)(ir,"".concat(Er,"-open"),Tr),(0,un.Z)(ir,"".concat(Er,"-inline"),yo),ir)),style:Ko,tabIndex:-1,ref:nt,onKeyDown:Ht},qr,ce.createElement("div",{tabIndex:0,ref:St,style:qn,"aria-hidden":"true","data-sentinel":"start"}),Jr,ce.createElement("div",{tabIndex:0,ref:Mt,style:qn,"aria-hidden":"true","data-sentinel":"end"})))}var Mn=ce.forwardRef(Sn),Xn=Mn,Pr=function(dt){var Tt=dt.open,Yt=Tt===void 0?!1:Tt,yn=dt.prefixCls,ir=yn===void 0?"rc-drawer":yn,Er=dt.placement,Tr=Er===void 0?"right":Er,_r=dt.autoFocus,yo=_r===void 0?!0:_r,Do=dt.keyboard,Bo=Do===void 0?!0:Do,fa=dt.width,yt=fa===void 0?378:fa,_t=dt.mask,jt=_t===void 0?!0:_t,Ue=dt.maskClosable,Ut=Ue===void 0?!0:Ue,Xt=dt.getContainer,pn=dt.forceRender,Lt=dt.afterOpenChange,Ft=dt.destroyOnClose,Ot=dt.onMouseEnter,vn=dt.onMouseOver,Fn=dt.onMouseLeave,Kn=dt.onClick,kn=dt.onKeyDown,Qn=dt.onKeyUp,sr=dt.panelRef,xr=ce.useState(!1),Bt=(0,_e.Z)(xr,2),Kt=Bt[0],rn=Bt[1],an=ce.useState(!1),Vn=(0,_e.Z)(an,2),lr=Vn[0],$e=Vn[1];Wt(function(){$e(!0)},[]);var Fe=lr?Yt:!1,nt=ce.useRef(),St=ce.useRef();Wt(function(){Fe&&(St.current=document.activeElement)},[Fe]);var Mt=function(Un){var Tn;if(rn(Un),Lt==null||Lt(Un),!Un&&St.current&&!((Tn=nt.current)!==null&&Tn!==void 0&&Tn.contains(St.current))){var In;(In=St.current)===null||In===void 0||In.focus({preventScroll:!0})}},Ht=ce.useMemo(function(){return{panel:sr}},[sr]);if(!pn&&!Kt&&!Fe&&Ft)return null;var dn={onMouseEnter:Ot,onMouseOver:vn,onMouseLeave:Fn,onClick:Kn,onKeyDown:kn,onKeyUp:Qn},_n=(0,be.Z)((0,be.Z)({},dt),{},{open:Fe,prefixCls:ir,placement:Tr,autoFocus:yo,keyboard:Bo,width:yt,mask:jt,maskClosable:Ut,inline:Xt===!1,afterOpenChange:Mt,ref:nt},dn);return ce.createElement(ut.Provider,{value:Ht},ce.createElement(Dt,{open:Fe||pn||Kt,autoDestroy:!1,getContainer:Xt,autoLock:jt&&(Fe||Kt)},ce.createElement(Xn,_n)))},ar=Pr,ga=ar,bo=ee(33603),fr=ee(53124),Qr=ee(65223),ko=ee(69760),on=gt=>{const{prefixCls:dt,title:Tt,footer:Yt,extra:yn,closeIcon:ir,closable:Er,onClose:Tr,headerStyle:_r,drawerStyle:yo,bodyStyle:Do,footerStyle:Bo,children:fa}=gt,yt=ce.useCallback(Xt=>ce.createElement("button",{type:"button",onClick:Tr,"aria-label":"Close",className:`${dt}-close`},Xt),[Tr]),[_t,jt]=(0,ko.Z)(Er,ir,yt,void 0,!0),Ue=ce.useMemo(()=>!Tt&&!_t?null:ce.createElement("div",{style:_r,className:fe()(`${dt}-header`,{[`${dt}-header-close-only`]:_t&&!Tt&&!yn})},ce.createElement("div",{className:`${dt}-header-title`},jt,Tt&&ce.createElement("div",{className:`${dt}-title`},Tt)),yn&&ce.createElement("div",{className:`${dt}-extra`},yn)),[_t,jt,yn,_r,dt,Tt]),Ut=ce.useMemo(()=>{if(!Yt)return null;const Xt=`${dt}-footer`;return ce.createElement("div",{className:Xt,style:Bo},Yt)},[Yt,Bo,dt]);return ce.createElement("div",{className:`${dt}-wrapper-body`,style:yo},Ue,ce.createElement("div",{className:`${dt}-body`,style:Do},fa),Ut)},sa=ee(4173),Za=ee(67968),Pa=ee(45503),ni=gt=>{const{componentCls:dt,motionDurationSlow:Tt}=gt,Yt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Tt}`}}};return{[dt]:{[`${dt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${Tt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${dt}-panel-motion`]:{"&-left":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Yt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Pn=gt=>{const{componentCls:dt,zIndexPopup:Tt,colorBgMask:Yt,colorBgElevated:yn,motionDurationSlow:ir,motionDurationMid:Er,padding:Tr,paddingLG:_r,fontSizeLG:yo,lineHeightLG:Do,lineWidth:Bo,lineType:fa,colorSplit:yt,marginSM:_t,colorIcon:jt,colorIconHover:Ue,colorText:Ut,fontWeightStrong:Xt,footerPaddingBlock:pn,footerPaddingInline:Lt}=gt,Ft=`${dt}-content-wrapper`;return{[dt]:{position:"fixed",inset:0,zIndex:Tt,pointerEvents:"none","&-pure":{position:"relative",background:yn,[`&${dt}-left`]:{boxShadow:gt.boxShadowDrawerLeft},[`&${dt}-right`]:{boxShadow:gt.boxShadowDrawerRight},[`&${dt}-top`]:{boxShadow:gt.boxShadowDrawerUp},[`&${dt}-bottom`]:{boxShadow:gt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${dt}-mask`]:{position:"absolute",inset:0,zIndex:Tt,background:Yt,pointerEvents:"auto"},[Ft]:{position:"absolute",zIndex:Tt,maxWidth:"100vw",transition:`all ${ir}`,"&-hidden":{display:"none"}},[`&-left > ${Ft}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:gt.boxShadowDrawerLeft},[`&-right > ${Ft}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:gt.boxShadowDrawerRight},[`&-top > ${Ft}`]:{top:0,insetInline:0,boxShadow:gt.boxShadowDrawerUp},[`&-bottom > ${Ft}`]:{bottom:0,insetInline:0,boxShadow:gt.boxShadowDrawerDown},[`${dt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:yn,pointerEvents:"auto"},[`${dt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${dt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Tr}px ${_r}px`,fontSize:yo,lineHeight:Do,borderBottom:`${Bo}px ${fa} ${yt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${dt}-extra`]:{flex:"none"},[`${dt}-close`]:{display:"inline-block",marginInlineEnd:_t,color:jt,fontWeight:Xt,fontSize:yo,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Er}`,textRendering:"auto","&:focus, &:hover":{color:Ue,textDecoration:"none"}},[`${dt}-title`]:{flex:1,margin:0,color:Ut,fontWeight:gt.fontWeightStrong,fontSize:yo,lineHeight:Do},[`${dt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:_r,overflow:"auto"},[`${dt}-footer`]:{flexShrink:0,padding:`${pn}px ${Lt}px`,borderTop:`${Bo}px ${fa} ${yt}`},"&-rtl":{direction:"rtl"}}}};var mr=(0,Za.Z)("Drawer",gt=>{const dt=(0,Pa.TS)(gt,{});return[Pn(dt),ni(dt)]},gt=>({zIndexPopup:gt.zIndexPopupBase,footerPaddingBlock:gt.paddingXS,footerPaddingInline:gt.padding})),tr=ee(16569),er=function(gt,dt){var Tt={};for(var Yt in gt)Object.prototype.hasOwnProperty.call(gt,Yt)&&dt.indexOf(Yt)<0&&(Tt[Yt]=gt[Yt]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,Yt=Object.getOwnPropertySymbols(gt);yn<Yt.length;yn++)dt.indexOf(Yt[yn])<0&&Object.prototype.propertyIsEnumerable.call(gt,Yt[yn])&&(Tt[Yt[yn]]=gt[Yt[yn]]);return Tt};const $o=null,ha={distance:180},ba=gt=>{var dt;const{rootClassName:Tt,width:Yt,height:yn,size:ir="default",mask:Er=!0,push:Tr=ha,open:_r,afterOpenChange:yo,onClose:Do,prefixCls:Bo,getContainer:fa,style:yt,className:_t,visible:jt,afterVisibleChange:Ue}=gt,Ut=er(gt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Xt,getPrefixCls:pn,direction:Lt,drawer:Ft}=ce.useContext(fr.E_),Ot=pn("drawer",Bo),[vn,Fn]=mr(Ot),Kn=fa===void 0&&Xt?()=>Xt(document.body):fa,kn=fe()({"no-mask":!Er,[`${Ot}-rtl`]:Lt==="rtl"},Tt,Fn),Qn=ce.useMemo(()=>Yt!=null?Yt:ir==="large"?736:378,[Yt,ir]),sr=ce.useMemo(()=>yn!=null?yn:ir==="large"?736:378,[yn,ir]),xr={motionName:(0,bo.m)(Ot,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Bt=rn=>({motionName:(0,bo.m)(Ot,`panel-motion-${rn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Kt=(0,tr.H)();return vn(ce.createElement(sa.BR,null,ce.createElement(Qr.Ux,{status:!0,override:!0},ce.createElement(ga,Object.assign({prefixCls:Ot,onClose:Do,maskMotion:xr,motion:Bt},Ut,{open:_r!=null?_r:jt,mask:Er,push:Tr,width:Qn,height:sr,style:Object.assign(Object.assign({},Ft==null?void 0:Ft.style),yt),className:fe()(Ft==null?void 0:Ft.className,_t),rootClassName:kn,getContainer:Kn,afterOpenChange:yo!=null?yo:Ue,panelRef:Kt}),ce.createElement(on,Object.assign({prefixCls:Ot},Ut,{onClose:Do}))))))},Ha=gt=>{const{prefixCls:dt,style:Tt,className:Yt,placement:yn="right"}=gt,ir=er(gt,["prefixCls","style","className","placement"]),{getPrefixCls:Er}=ce.useContext(fr.E_),Tr=Er("drawer",dt),[_r,yo]=mr(Tr),Do=fe()(Tr,`${Tr}-pure`,`${Tr}-${yn}`,yo,Yt);return _r(ce.createElement("div",{className:Do,style:Tt},ce.createElement(on,Object.assign({prefixCls:Tr},ir))))};ba._InternalPanelDoNotUseOrYouWillBeFired=Ha;var ri=ba},35874:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return Xe}});var te=ee(67294),fe=ee(91034),be=ee(94184),_e=ee.n(be),ce=ee(87462),pe=ee(4942),ae=ee(97685),me=ee(45987),de=ee(62709),ge=ee(71002),le=ee(12060);function he(qe,ft,Dt){var tt=React.useRef({});return(!("value"in tt.current)||Dt(tt.current.condition,ft))&&(tt.current.value=qe(),tt.current.condition=ft),tt.current.value}function re(qe,ft){typeof qe=="function"?qe(ft):(0,ge.Z)(qe)==="object"&&qe&&"current"in qe&&(qe.current=ft)}function ne(){for(var qe=arguments.length,ft=new Array(qe),Dt=0;Dt<qe;Dt++)ft[Dt]=arguments[Dt];var tt=ft.filter(function(vt){return vt});return tt.length<=1?tt[0]:function(vt){ft.forEach(function(bt){re(bt,vt)})}}function y(){for(var qe=arguments.length,ft=new Array(qe),Dt=0;Dt<qe;Dt++)ft[Dt]=arguments[Dt];return useMemo(function(){return ne.apply(void 0,ft)},ft,function(tt,vt){return tt.length===vt.length&&tt.every(function(bt,Qe){return bt===vt[Qe]})})}function a(qe){var ft,Dt,tt=(0,le.isMemo)(qe)?qe.type.type:qe.type;return!(typeof tt=="function"&&!((ft=tt.prototype)!==null&&ft!==void 0&&ft.render)||typeof qe=="function"&&!((Dt=qe.prototype)!==null&&Dt!==void 0&&Dt.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ft){var Dt=ft.keyCode;if(ft.altKey&&!ft.ctrlKey||ft.metaKey||Dt>=E.F1&&Dt<=E.F12)return!1;switch(Dt){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ft){if(ft>=E.ZERO&&ft<=E.NINE||ft>=E.NUM_ZERO&&ft<=E.NUM_MULTIPLY||ft>=E.A&&ft<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ft===0)return!0;switch(ft){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(ft){return+setTimeout(ft,16)},z=function(ft){return clearTimeout(ft)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(ft){return window.requestAnimationFrame(ft)},z=function(ft){return window.cancelAnimationFrame(ft)});var oe=0,ie=new Map;function ue(qe){ie.delete(qe)}var ve=function(ft){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;oe+=1;var tt=oe;function vt(bt){if(bt===0)ue(tt),ft();else{var Qe=x(function(){vt(bt-1)});ie.set(tt,Qe)}}return vt(Dt),tt};ve.cancel=function(qe){var ft=ie.get(qe);return ue(ft),z(ft)};var Se=ve,Le=b.ESC,we=b.TAB;function Ne(qe){var ft=qe.visible,Dt=qe.triggerRef,tt=qe.onVisibleChange,vt=qe.autoFocus,bt=qe.overlayRef,Qe=te.useRef(!1),Wt=function(){if(ft){var un,ht;(un=Dt.current)===null||un===void 0||(ht=un.focus)===null||ht===void 0||ht.call(un),tt==null||tt(!1)}},He=function(){var un;return(un=bt.current)!==null&&un!==void 0&&un.focus?(bt.current.focus(),Qe.current=!0,!0):!1},ut=function(un){switch(un.keyCode){case Le:Wt();break;case we:{var ht=!1;Qe.current||(ht=He()),ht?un.preventDefault():Wt();break}}};te.useEffect(function(){return ft?(window.addEventListener("keydown",ut),vt&&Se(He,3),function(){window.removeEventListener("keydown",ut),Qe.current=!1}):function(){Qe.current=!1}},[ft])}var xe=(0,te.forwardRef)(function(qe,ft){var Dt=qe.overlay,tt=qe.arrow,vt=qe.prefixCls,bt=(0,te.useMemo)(function(){var Wt;return typeof Dt=="function"?Wt=Dt():Wt=Dt,Wt},[Dt]),Qe=ne(ft,bt==null?void 0:bt.ref);return te.createElement(te.Fragment,null,tt&&te.createElement("div",{className:"".concat(vt,"-arrow")}),te.cloneElement(bt,{ref:a(bt)?Qe:void 0}))}),st=xe,Ye={adjustX:1,adjustY:1},lt=[0,0],Me={topLeft:{points:["bl","tl"],overflow:Ye,offset:[0,-4],targetOffset:lt},top:{points:["bc","tc"],overflow:Ye,offset:[0,-4],targetOffset:lt},topRight:{points:["br","tr"],overflow:Ye,offset:[0,-4],targetOffset:lt},bottomLeft:{points:["tl","bl"],overflow:Ye,offset:[0,4],targetOffset:lt},bottom:{points:["tc","bc"],overflow:Ye,offset:[0,4],targetOffset:lt},bottomRight:{points:["tr","br"],overflow:Ye,offset:[0,4],targetOffset:lt}},Be=Me,Re=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function ke(qe,ft){var Dt,tt=qe.arrow,vt=tt===void 0?!1:tt,bt=qe.prefixCls,Qe=bt===void 0?"rc-dropdown":bt,Wt=qe.transitionName,He=qe.animation,ut=qe.align,En=qe.placement,un=En===void 0?"bottomLeft":En,ht=qe.placements,sn=ht===void 0?Be:ht,ln=qe.getPopupContainer,fn=qe.showAction,nr=qe.hideAction,wt=qe.overlayClassName,xn=qe.overlayStyle,zn=qe.visible,Gr=qe.trigger,vr=Gr===void 0?["hover"]:Gr,cr=qe.autoFocus,wn=qe.overlay,jr=qe.children,Hr=qe.onVisibleChange,mo=(0,me.Z)(qe,Re),da=te.useState(),Ro=(0,ae.Z)(da,2),Jo=Ro[0],qo=Ro[1],ur="visible"in qe?zn:Jo,$r=te.useRef(null),zr=te.useRef(null),To=te.useRef(null);te.useImperativeHandle(ft,function(){return $r.current});var Fo=function(Oe){qo(Oe),Hr==null||Hr(Oe)};Ne({visible:ur,triggerRef:To,onVisibleChange:Fo,autoFocus:cr,overlayRef:zr});var po=function(Oe){var Je=qe.onOverlayClick;qo(!1),Je&&Je(Oe)},Lr=function(){return te.createElement(st,{ref:zr,overlay:wn,prefixCls:Qe,arrow:vt})},vo=function(){return typeof wn=="function"?Lr:Lr()},hn=function(){var Oe=qe.minOverlayWidthMatchTrigger,Je=qe.alignPoint;return"minOverlayWidthMatchTrigger"in qe?Oe:!Je},se=function(){var Oe=qe.openClassName;return Oe!==void 0?Oe:"".concat(Qe,"-open")},ye=te.cloneElement(jr,{className:_e()((Dt=jr.props)===null||Dt===void 0?void 0:Dt.className,ur&&se()),ref:a(jr)?ne(To,jr.ref):void 0}),Pe=nr;return!Pe&&vr.indexOf("contextMenu")!==-1&&(Pe=["click"]),te.createElement(de.Z,(0,ce.Z)({builtinPlacements:sn},mo,{prefixCls:Qe,ref:$r,popupClassName:_e()(wt,(0,pe.Z)({},"".concat(Qe,"-show-arrow"),vt)),popupStyle:xn,action:vr,showAction:fn,hideAction:Pe,popupPlacement:un,popupAlign:ut,popupTransitionName:Wt,popupAnimation:He,popupVisible:ur,stretch:hn()?"minWidth":"",popup:vo(),onPopupVisibleChange:Fo,onPopupClick:po,getPopupContainer:ln}),ye)}var Ge=te.forwardRef(ke),Et=Ge,It=ee(60276),en=ee(5663),Zt=ee(10366),rt=ee(80636),at=ee(8745),Ct=ee(96159),qt=ee(53124),Gt=ee(68508),xt=ee(76529),Ve=ee(46605),Qt=ee(66748);const Ln=null,Hn=qe=>{const{menu:ft,arrow:Dt,prefixCls:tt,children:vt,trigger:bt,disabled:Qe,dropdownRender:Wt,getPopupContainer:He,overlayClassName:ut,rootClassName:En,open:un,onOpenChange:ht,visible:sn,onVisibleChange:ln,mouseEnterDelay:fn=.15,mouseLeaveDelay:nr=.1,autoAdjustOverflow:wt=!0,placement:xn="",overlay:zn,transitionName:Gr}=qe,{getPopupContainer:vr,getPrefixCls:cr,direction:wn}=te.useContext(qt.E_),jr=te.useMemo(()=>{const ye=cr();return Gr!==void 0?Gr:xn.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[cr,xn,Gr]),Hr=te.useMemo(()=>xn?xn.includes("Center")?xn.slice(0,xn.indexOf("Center")):xn:wn==="rtl"?"bottomRight":"bottomLeft",[xn,wn]),mo=cr("dropdown",tt),[da,Ro]=(0,Qt.Z)(mo),[,Jo]=(0,Ve.Z)(),qo=te.Children.only(vt),ur=(0,Ct.Tm)(qo,{className:_e()(`${mo}-trigger`,{[`${mo}-rtl`]:wn==="rtl"},qo.props.className),disabled:Qe}),$r=Qe?[]:bt;let zr;$r&&$r.includes("contextMenu")&&(zr=!0);const[To,Fo]=(0,en.Z)(!1,{value:un!=null?un:sn}),po=(0,It.useEvent)(ye=>{ht==null||ht(ye),ln==null||ln(ye),Fo(ye)}),Lr=_e()(ut,En,Ro,{[`${mo}-rtl`]:wn==="rtl"}),vo=(0,rt.Z)({arrowPointAtCenter:typeof Dt=="object"&&Dt.pointAtCenter,autoAdjustOverflow:wt,offset:Jo.marginXXS,arrowWidth:Dt?Jo.sizePopupArrow:0,borderRadius:Jo.borderRadius}),hn=te.useCallback(()=>{Fo(!1)},[]),se=()=>{let ye;return ft!=null&&ft.items?ye=te.createElement(Gt.default,Object.assign({},ft)):typeof zn=="function"?ye=zn():ye=zn,Wt&&(ye=Wt(ye)),ye=te.Children.only(typeof ye=="string"?te.createElement("span",null,ye):ye),te.createElement(xt.J,{prefixCls:`${mo}-menu`,expandIcon:te.createElement("span",{className:`${mo}-menu-submenu-arrow`},te.createElement(fe.Z,{className:`${mo}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:hn,validator:Pe=>{let{mode:Ae}=Pe}},ye)};return da(te.createElement(Et,Object.assign({alignPoint:zr},(0,Zt.Z)(qe,["rootClassName"]),{mouseEnterDelay:fn,mouseLeaveDelay:nr,visible:To,builtinPlacements:vo,arrow:!!Dt,overlayClassName:Lr,prefixCls:mo,getPopupContainer:He||vr,transitionName:jr,trigger:$r,overlay:se,placement:Hr,onVisibleChange:po}),ur))};function mn(qe){return Object.assign(Object.assign({},qe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const zt=(0,at.Z)(Hn,"dropdown",qe=>qe,mn),et=qe=>te.createElement(zt,Object.assign({},qe),te.createElement("span",null));Hn._InternalPanelDoNotUseOrYouWillBeFired=et;var Xe=Hn},85418:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return y}});var te=ee(35874),fe=ee(94184),be=ee.n(fe),_e=ee(67294),ce=ee(25877),pe=ee(71577),ae=ee(53124),me=ee(93421),de=ee(4173),ge=ee(66748),le=function(a,E){var b={};for(var x in a)Object.prototype.hasOwnProperty.call(a,x)&&E.indexOf(x)<0&&(b[x]=a[x]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(a);z<x.length;z++)E.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(a,x[z])&&(b[x[z]]=a[x[z]]);return b};const he=a=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=_e.useContext(ae.E_),{prefixCls:z,type:oe="default",danger:ie,disabled:ue,loading:ve,onClick:Se,htmlType:Le,children:we,className:Ne,menu:xe,arrow:st,autoFocus:Ye,overlay:lt,trigger:Me,align:Be,open:Re,onOpenChange:ke,placement:Ge,getPopupContainer:Et,href:It,icon:en=_e.createElement(ce.Z,null),title:Zt,buttonsRender:rt=Qe=>Qe,mouseEnterDelay:at,mouseLeaveDelay:Ct,overlayClassName:qt,overlayStyle:Gt,destroyPopupOnHide:xt,dropdownRender:Ve}=a,Qt=le(a,["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"]),Ln=b("dropdown",z),Hn=`${Ln}-button`,[mn,zt]=(0,ge.Z)(Ln),et={menu:xe,arrow:st,autoFocus:Ye,align:Be,disabled:ue,trigger:ue?[]:Me,onOpenChange:ke,getPopupContainer:Et||E,mouseEnterDelay:at,mouseLeaveDelay:Ct,overlayClassName:qt,overlayStyle:Gt,destroyPopupOnHide:xt,dropdownRender:Ve},{compactSize:Xe,compactItemClassnames:qe}=(0,de.ri)(Ln,x),ft=be()(Hn,qe,Ne,zt);"overlay"in a&&(et.overlay=lt),"open"in a&&(et.open=Re),"placement"in a?et.placement=Ge:et.placement=x==="rtl"?"bottomLeft":"bottomRight";const Dt=_e.createElement(pe.ZP,{type:oe,danger:ie,disabled:ue,loading:ve,onClick:Se,htmlType:Le,href:It,title:Zt},we),tt=_e.createElement(pe.ZP,{type:oe,danger:ie,icon:en}),[vt,bt]=rt([Dt,tt]);return mn(_e.createElement(me.Z.Compact,Object.assign({className:ft,size:Xe,block:!0},Qt),vt,_e.createElement(te.Z,Object.assign({},et),bt)))};he.__ANT_BUTTON=!0;var re=he;const ne=te.Z;ne.Button=re;var y=ne},66748:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return le}});var te=ee(14747),fe=ee(67771),be=ee(33297),_e=ee(50438),ce=ee(97414),pe=ee(67968),ae=ee(45503),de=he=>{const{componentCls:re,menuCls:ne,colorError:y,colorTextLightSolid:a}=he,E=`${ne}-item`;return{[`${re}, ${re}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const ge=he=>{const{componentCls:re,menuCls:ne,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:oe,fontSize:ie,dropdownEdgeChildPadding:ue,colorTextDisabled:ve,fontSizeIcon:Se,controlPaddingHorizontal:Le,colorBgElevated:we}=he;return[{[re]:Object.assign(Object.assign({},(0,te.Wf)(he)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:Se}},[`${re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:Se},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${re}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${re}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${re}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${re}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${re}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${re}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${re}-placement-topRight`]:{animationName:fe.ly}})},(0,ce.ZP)(he,{colorBg:we,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${re} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${re}, ${re}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ue,listStyleType:"none",backgroundColor:we,backgroundClip:"padding-box",borderRadius:he.borderRadiusLG,outline:"none",boxShadow:he.boxShadowSecondary},(0,te.Qy)(he)),{[`${ne}-item-group-title`]:{padding:`${oe}px ${Le}px`,color:he.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:ie,marginInlineEnd:he.marginXS,fontSize:he.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${oe}px ${Le}px`,color:he.colorText,fontWeight:"normal",fontSize:ie,lineHeight:he.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:he.borderRadiusSM,"&:hover, &-active":{backgroundColor:he.controlItemBgHover}},(0,te.Qy)(he)),{"&-selected":{color:he.colorPrimary,backgroundColor:he.controlItemBgActive,"&:hover, &-active":{backgroundColor:he.controlItemBgActiveHover}},"&-disabled":{color:ve,cursor:"not-allowed","&:hover":{color:ve,backgroundColor:we,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${he.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:he.colorSplit},[`${re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:he.paddingXS,[`${re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:he.colorTextDescription,fontSize:Se,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${he.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:Le+he.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${re}-menu-submenu-title`]:{[`&, ${re}-menu-submenu-arrow-icon`]:{color:ve,backgroundColor:we,cursor:"not-allowed"}},[`${ne}-submenu-selected ${re}-menu-submenu-title`]:{color:he.colorPrimary}})}},[(0,fe.oN)(he,"slide-up"),(0,fe.oN)(he,"slide-down"),(0,be.Fm)(he,"move-up"),(0,be.Fm)(he,"move-down"),(0,_e._y)(he,"zoom-big")]]};var le=(0,pe.Z)("Dropdown",(he,re)=>{let{rootPrefixCls:ne}=re;const{marginXXS:y,sizePopupArrow:a,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:oe,borderRadiusLG:ie}=he,ue=(E-b*x)/2,{dropdownArrowOffset:ve}=(0,ce.fS)({contentRadius:ie}),Se=(0,ae.TS)(he,{menuCls:`${oe}-menu`,rootPrefixCls:ne,dropdownArrowDistance:a/2+y,dropdownArrowOffset:ve,dropdownPaddingVertical:ue,dropdownEdgeChildPadding:z});return[ge(Se),de(Se)]},he=>({zIndexPopup:he.zIndexPopupBase+50}))},25378:function(ot,Ze,ee){"use strict";var te=ee(67294),fe=ee(14075),be=ee(57838),_e=ee(74443);function ce(){let pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ae=(0,te.useRef)({}),me=(0,be.Z)(),de=(0,_e.ZP)();return(0,fe.Z)(()=>{const ge=de.subscribe(le=>{ae.current=le,pe&&me()});return()=>de.unsubscribe(ge)},[]),ae.current}Ze.Z=ce},99398:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return lr}});var te=ee(67294),fe=ee.t(te,2),be=ee(99569),_e=ee(94184),ce=ee.n(_e),pe=ee(87462),ae=ee(1413),me=ee(4942),de=ee(97685),ge=ee(71002),le=ee(45987),he=/margin|padding|width|height|max|min|offset/,re={left:!0,top:!0},ne={cssFloat:1,styleFloat:1,float:1};function y($e){return $e.nodeType===1?$e.ownerDocument.defaultView.getComputedStyle($e,null):{}}function a($e,Fe,nt){if(Fe=Fe.toLowerCase(),nt==="auto"){if(Fe==="height")return $e.offsetHeight;if(Fe==="width")return $e.offsetWidth}return Fe in re||(re[Fe]=he.test(Fe)),re[Fe]?parseFloat(nt)||0:nt}function E($e,Fe){var nt=arguments.length,St=y($e);return Fe=ne[Fe]?"cssFloat"in $e.style?"cssFloat":"styleFloat":Fe,nt===1?St:a($e,Fe,St[Fe]||$e.style[Fe])}function b($e,Fe,nt){var St=arguments.length;if(Fe=ne[Fe]?"cssFloat"in $e.style?"cssFloat":"styleFloat":Fe,St===3)return typeof nt=="number"&&he.test(Fe)&&(nt="".concat(nt,"px")),$e.style[Fe]=nt,nt;for(var Mt in Fe)Fe.hasOwnProperty(Mt)&&b($e,Mt,Fe[Mt]);return y($e)}function x($e){return $e===document.body?document.documentElement.clientWidth:$e.offsetWidth}function z($e){return $e===document.body?window.innerHeight||document.documentElement.clientHeight:$e.offsetHeight}function oe(){var $e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Fe=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:$e,height:Fe}}function ie(){var $e=document.documentElement.clientWidth,Fe=window.innerHeight||document.documentElement.clientHeight;return{width:$e,height:Fe}}function ue(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function ve($e){var Fe=$e.getBoundingClientRect(),nt=document.documentElement;return{left:Fe.left+(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||document.body.clientLeft||0),top:Fe.top+(window.pageYOffset||nt.scrollTop)-(nt.clientTop||document.body.clientTop||0)}}function Se($e){var Fe=te.useRef();Fe.current=$e;var nt=te.useCallback(function(){for(var St,Mt=arguments.length,Ht=new Array(Mt),dn=0;dn<Mt;dn++)Ht[dn]=arguments[dn];return(St=Fe.current)===null||St===void 0?void 0:St.call.apply(St,[Fe].concat(Ht))},[]);return nt}function Le(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var we=Le()?te.useLayoutEffect:te.useEffect,Ne=function(Fe,nt){var St=te.useRef(!0);we(function(){return Fe(St.current)},nt),we(function(){return St.current=!1,function(){St.current=!0}},[])},xe=function(Fe,nt){Ne(function(St){if(!St)return Fe()},nt)},st=null;function Ye($e){var Fe=te.useRef(!1),nt=te.useState($e),St=(0,de.Z)(nt,2),Mt=St[0],Ht=St[1];te.useEffect(function(){return Fe.current=!1,function(){Fe.current=!0}},[]);function dn(_n,An){An&&Fe.current||Ht(_n)}return[Mt,dn]}function lt($e){return $e!==void 0}function Me($e,Fe){var nt=Fe||{},St=nt.defaultValue,Mt=nt.value,Ht=nt.onChange,dn=nt.postState,_n=Ye(function(){return lt(Mt)?Mt:lt(St)?typeof St=="function"?St():St:typeof $e=="function"?$e():$e}),An=(0,de.Z)(_n,2),Un=An[0],Tn=An[1],In=Mt!==void 0?Mt:Un,Gn=dn?dn(In):In,Br=Se(Ht),qr=Ye([In]),Eo=(0,de.Z)(qr,2),Yr=Eo[0],to=Eo[1];xe(function(){var Ko=Yr[0];Un!==Ko&&Br(Un,Ko)},[Yr]),xe(function(){lt(Mt)||Tn(Mt)},[Mt]);var Jr=Se(function(Ko,Mr){Tn(Ko,Mr),to([In],Mr)});return[Gn,Jr]}var Be=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],Re=te.createContext(null),ke=0;function Ge($e,Fe){var nt=te.useState(function(){return ke+=1,String(ke)}),St=(0,de.Z)(nt,1),Mt=St[0],Ht=te.useContext(Re),dn={data:Fe,canPreview:$e};return te.useEffect(function(){if(Ht)return Ht.register(Mt,dn)},[]),te.useEffect(function(){Ht&&Ht.register(Mt,dn)},[$e,Fe]),Mt}function Et($e){return new Promise(function(Fe){var nt=document.createElement("img");nt.onerror=function(){return Fe(!1)},nt.onload=function(){return Fe(!0)},nt.src=$e})}function It($e){var Fe=$e.src,nt=$e.isCustomPlaceholder,St=$e.fallback,Mt=(0,te.useState)(nt?"loading":"normal"),Ht=(0,de.Z)(Mt,2),dn=Ht[0],_n=Ht[1],An=(0,te.useRef)(!1),Un=dn==="error";(0,te.useEffect)(function(){Et(Fe).then(function(Br){Br||_n("error")})},[Fe]),(0,te.useEffect)(function(){nt&&!An.current?_n("loading"):Un&&_n("normal")},[Fe]);var Tn=function(){_n("normal")},In=function(qr){An.current=!1,dn==="loading"&&qr!=null&&qr.complete&&(qr.naturalWidth||qr.naturalHeight)&&(An.current=!0,Tn())},Gn=Un&&St?{src:St}:{onLoad:Tn,src:Fe};return[In,Gn,dn]}var en=ee(2788),Zt=te.createContext({});function rt($e,Fe){if(!$e)return!1;if($e.contains)return $e.contains(Fe);for(var nt=Fe;nt;){if(nt===$e)return!0;nt=nt.parentNode}return!1}function at(){var $e=(0,ae.Z)({},fe);return $e.useId}var Ct=0;function qt(){}function Gt($e){var Fe=te.useState("ssr-id"),nt=(0,de.Z)(Fe,2),St=nt[0],Mt=nt[1],Ht=at(),dn=Ht==null?void 0:Ht();return te.useEffect(function(){if(!Ht){var _n=Ct;Ct+=1,Mt("rc_unique_".concat(_n))}},[]),$e||dn||St}var xt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var nt=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||nt>=xt.F1&&nt<=xt.F12)return!1;switch(nt){case xt.ALT:case xt.CAPS_LOCK:case xt.CONTEXT_MENU:case xt.CTRL:case xt.DOWN:case xt.END:case xt.ESC:case xt.HOME:case xt.INSERT:case xt.LEFT:case xt.MAC_FF_META:case xt.META:case xt.NUMLOCK:case xt.NUM_CENTER:case xt.PAGE_DOWN:case xt.PAGE_UP:case xt.PAUSE:case xt.PRINT_SCREEN:case xt.RIGHT:case xt.SHIFT:case xt.UP:case xt.WIN_KEY:case xt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=xt.ZERO&&Fe<=xt.NINE||Fe>=xt.NUM_ZERO&&Fe<=xt.NUM_MULTIPLY||Fe>=xt.A&&Fe<=xt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case xt.SPACE:case xt.QUESTION_MARK:case xt.NUM_PLUS:case xt.NUM_MINUS:case xt.NUM_PERIOD:case xt.NUM_DIVISION:case xt.SEMICOLON:case xt.DASH:case xt.EQUALS:case xt.COMMA:case xt.PERIOD:case xt.SLASH:case xt.APOSTROPHE:case xt.SINGLE_QUOTE:case xt.OPEN_SQUARE_BRACKET:case xt.BACKSLASH:case xt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ve=xt,Qt=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,Ln=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Hn="".concat(Qt," ").concat(Ln).split(/[\s\n]+/),mn="aria-",zt="data-";function et($e,Fe){return $e.indexOf(Fe)===0}function Xe($e){var Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt;Fe===!1?nt={aria:!0,data:!0,attr:!0}:Fe===!0?nt={aria:!0}:nt=(0,ae.Z)({},Fe);var St={};return Object.keys($e).forEach(function(Mt){(nt.aria&&(Mt==="role"||et(Mt,mn))||nt.data&&et(Mt,zt)||nt.attr&&Hn.includes(Mt))&&(St[Mt]=$e[Mt])}),St}function qe($e,Fe,nt){var St=Fe;return!St&&nt&&(St="".concat($e,"-").concat(nt)),St}function ft($e,Fe){var nt=$e["page".concat(Fe?"Y":"X","Offset")],St="scroll".concat(Fe?"Top":"Left");if(typeof nt!="number"){var Mt=$e.document;nt=Mt.documentElement[St],typeof nt!="number"&&(nt=Mt.body[St])}return nt}function Dt($e){var Fe=$e.getBoundingClientRect(),nt={left:Fe.left,top:Fe.top},St=$e.ownerDocument,Mt=St.defaultView||St.parentWindow;return nt.left+=ft(Mt),nt.top+=ft(Mt,!0),nt}var tt=ee(62874),vt=ee(59864);function bt($e,Fe,nt){var St=te.useRef({});return(!("value"in St.current)||nt(St.current.condition,Fe))&&(St.current.value=$e(),St.current.condition=Fe),St.current.value}function Qe($e,Fe){typeof $e=="function"?$e(Fe):(0,ge.Z)($e)==="object"&&$e&&"current"in $e&&($e.current=Fe)}function Wt(){for(var $e=arguments.length,Fe=new Array($e),nt=0;nt<$e;nt++)Fe[nt]=arguments[nt];var St=Fe.filter(function(Mt){return Mt});return St.length<=1?St[0]:function(Mt){Fe.forEach(function(Ht){Qe(Ht,Mt)})}}function He(){for(var $e=arguments.length,Fe=new Array($e),nt=0;nt<$e;nt++)Fe[nt]=arguments[nt];return bt(function(){return Wt.apply(void 0,Fe)},Fe,function(St,Mt){return St.length===Mt.length&&St.every(function(Ht,dn){return Ht===Mt[dn]})})}function ut($e){var Fe,nt,St=isMemo($e)?$e.type.type:$e.type;return!(typeof St=="function"&&!((Fe=St.prototype)!==null&&Fe!==void 0&&Fe.render)||typeof $e=="function"&&!((nt=$e.prototype)!==null&&nt!==void 0&&nt.render))}var En=te.memo(function($e){var Fe=$e.children;return Fe},function($e,Fe){var nt=Fe.shouldUpdate;return!nt}),un={width:0,height:0,overflow:"hidden",outline:"none"},ht=te.forwardRef(function($e,Fe){var nt=$e.prefixCls,St=$e.className,Mt=$e.style,Ht=$e.title,dn=$e.ariaId,_n=$e.footer,An=$e.closable,Un=$e.closeIcon,Tn=$e.onClose,In=$e.children,Gn=$e.bodyStyle,Br=$e.bodyProps,qr=$e.modalRender,Eo=$e.onMouseDown,Yr=$e.onMouseUp,to=$e.holderRef,Jr=$e.visible,Ko=$e.forceRender,Mr=$e.width,no=$e.height,Lo=te.useContext(Zt),la=Lo.panel,So=He(to,la),na=(0,te.useRef)(),jo=(0,te.useRef)();te.useImperativeHandle(Fe,function(){return{focus:function(){var pa;(pa=na.current)===null||pa===void 0||pa.focus()},changeActive:function(pa){var Da=document,Io=Da.activeElement;pa&&Io===jo.current?na.current.focus():!pa&&Io===na.current&&jo.current.focus()}}});var Ga={};Mr!==void 0&&(Ga.width=Mr),no!==void 0&&(Ga.height=no);var Ea;_n&&(Ea=te.createElement("div",{className:"".concat(nt,"-footer")},_n));var ma;Ht&&(ma=te.createElement("div",{className:"".concat(nt,"-header")},te.createElement("div",{className:"".concat(nt,"-title"),id:dn},Ht)));var _o;An&&(_o=te.createElement("button",{type:"button",onClick:Tn,"aria-label":"Close",className:"".concat(nt,"-close")},Un||te.createElement("span",{className:"".concat(nt,"-close-x")})));var wo=te.createElement("div",{className:"".concat(nt,"-content")},_o,ma,te.createElement("div",(0,pe.Z)({className:"".concat(nt,"-body"),style:Gn},Br),In),Ea);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":Ht?dn:null,"aria-modal":"true",ref:So,style:(0,ae.Z)((0,ae.Z)({},Mt),Ga),className:ce()(nt,St),onMouseDown:Eo,onMouseUp:Yr},te.createElement("div",{tabIndex:0,ref:na,style:un,"aria-hidden":"true"}),te.createElement(En,{shouldUpdate:Jr||Ko},qr?qr(wo):wo),te.createElement("div",{tabIndex:0,ref:jo,style:un,"aria-hidden":"true"}))}),sn=ht,ln=te.forwardRef(function($e,Fe){var nt=$e.prefixCls,St=$e.title,Mt=$e.style,Ht=$e.className,dn=$e.visible,_n=$e.forceRender,An=$e.destroyOnClose,Un=$e.motionName,Tn=$e.ariaId,In=$e.onVisibleChanged,Gn=$e.mousePosition,Br=(0,te.useRef)(),qr=te.useState(),Eo=(0,de.Z)(qr,2),Yr=Eo[0],to=Eo[1],Jr={};Yr&&(Jr.transformOrigin=Yr);function Ko(){var Mr=Dt(Br.current);to(Gn?"".concat(Gn.x-Mr.left,"px ").concat(Gn.y-Mr.top,"px"):"")}return te.createElement(tt.Z,{visible:dn,onVisibleChanged:In,onAppearPrepare:Ko,onEnterPrepare:Ko,forceRender:_n,motionName:Un,removeOnLeave:An,ref:Br},function(Mr,no){var Lo=Mr.className,la=Mr.style;return te.createElement(sn,(0,pe.Z)({},$e,{ref:Fe,title:St,ariaId:Tn,prefixCls:nt,holderRef:no,style:(0,ae.Z)((0,ae.Z)((0,ae.Z)({},la),Mt),Jr),className:ce()(Ht,Lo)}))})});ln.displayName="Content";var fn=ln;function nr($e){var Fe=$e.prefixCls,nt=$e.style,St=$e.visible,Mt=$e.maskProps,Ht=$e.motionName;return te.createElement(tt.Z,{key:"mask",visible:St,motionName:Ht,leavedClassName:"".concat(Fe,"-mask-hidden")},function(dn,_n){var An=dn.className,Un=dn.style;return te.createElement("div",(0,pe.Z)({ref:_n,style:(0,ae.Z)((0,ae.Z)({},Un),nt),className:ce()("".concat(Fe,"-mask"),An)},Mt))})}function wt($e){var Fe=$e.prefixCls,nt=Fe===void 0?"rc-dialog":Fe,St=$e.zIndex,Mt=$e.visible,Ht=Mt===void 0?!1:Mt,dn=$e.keyboard,_n=dn===void 0?!0:dn,An=$e.focusTriggerAfterClose,Un=An===void 0?!0:An,Tn=$e.wrapStyle,In=$e.wrapClassName,Gn=$e.wrapProps,Br=$e.onClose,qr=$e.afterOpenChange,Eo=$e.afterClose,Yr=$e.transitionName,to=$e.animation,Jr=$e.closable,Ko=Jr===void 0?!0:Jr,Mr=$e.mask,no=Mr===void 0?!0:Mr,Lo=$e.maskTransitionName,la=$e.maskAnimation,So=$e.maskClosable,na=So===void 0?!0:So,jo=$e.maskStyle,Ga=$e.maskProps,Ea=$e.rootClassName,ma=(0,te.useRef)(),_o=(0,te.useRef)(),wo=(0,te.useRef)(),Vo=te.useState(Ht),pa=(0,de.Z)(Vo,2),Da=pa[0],Io=pa[1],xa=Gt();function Ma(){rt(_o.current,document.activeElement)||(ma.current=document.activeElement)}function $a(){if(!rt(_o.current,document.activeElement)){var ca;(ca=wo.current)===null||ca===void 0||ca.focus()}}function Ra(ca){if(ca)$a();else{if(Io(!1),no&&ma.current&&Un){try{ma.current.focus({preventScroll:!0})}catch(oi){}ma.current=null}Da&&(Eo==null||Eo())}qr==null||qr(ca)}function Oo(ca){Br==null||Br(ca)}var Wa=(0,te.useRef)(!1),ea=(0,te.useRef)(),Ca=function(){clearTimeout(ea.current),Wa.current=!0},ii=function(){ea.current=setTimeout(function(){Wa.current=!1})},mi=null;na&&(mi=function(oi){Wa.current?Wa.current=!1:_o.current===oi.target&&Oo(oi)});function Sa(ca){if(_n&&ca.keyCode===Ve.ESC){ca.stopPropagation(),Oo(ca);return}Ht&&ca.keyCode===Ve.TAB&&wo.current.changeActive(!ca.shiftKey)}return(0,te.useEffect)(function(){Ht&&(Io(!0),Ma())},[Ht]),(0,te.useEffect)(function(){return function(){clearTimeout(ea.current)}},[]),te.createElement("div",(0,pe.Z)({className:ce()("".concat(nt,"-root"),Ea)},Xe($e,{data:!0})),te.createElement(nr,{prefixCls:nt,visible:no&&Ht,motionName:qe(nt,Lo,la),style:(0,ae.Z)({zIndex:St},jo),maskProps:Ga}),te.createElement("div",(0,pe.Z)({tabIndex:-1,onKeyDown:Sa,className:ce()("".concat(nt,"-wrap"),In),ref:_o,onClick:mi,style:(0,ae.Z)((0,ae.Z)({zIndex:St},Tn),{},{display:Da?null:"none"})},Gn),te.createElement(fn,(0,pe.Z)({},$e,{onMouseDown:Ca,onMouseUp:ii,ref:wo,closable:Ko,ariaId:xa,prefixCls:nt,visible:Ht&&Da,onClose:Oo,onVisibleChanged:Ra,motionName:qe(nt,Yr,to)}))))}var xn=function(Fe){var nt=Fe.visible,St=Fe.getContainer,Mt=Fe.forceRender,Ht=Fe.destroyOnClose,dn=Ht===void 0?!1:Ht,_n=Fe.afterClose,An=Fe.panelRef,Un=te.useState(nt),Tn=(0,de.Z)(Un,2),In=Tn[0],Gn=Tn[1],Br=te.useMemo(function(){return{panel:An}},[An]);return te.useEffect(function(){nt&&Gn(!0)},[nt]),!Mt&&dn&&!In?null:te.createElement(Zt.Provider,{value:Br},te.createElement(en.Z,{open:nt||Mt||In,autoDestroy:!1,getContainer:St,autoLock:nt||In},te.createElement(wt,(0,pe.Z)({},Fe,{destroyOnClose:dn,afterClose:function(){_n==null||_n(),Gn(!1)}}))))};xn.displayName="Dialog";var zn=xn,Gr=zn,vr=ee(73935);function cr($e,Fe,nt,St){var Mt=vr.unstable_batchedUpdates?function(dn){vr.unstable_batchedUpdates(nt,dn)}:nt;return $e!=null&&$e.addEventListener&&$e.addEventListener(Fe,Mt,St),{remove:function(){$e!=null&&$e.removeEventListener&&$e.removeEventListener(Fe,Mt,St)}}}var wn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var nt=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||nt>=wn.F1&&nt<=wn.F12)return!1;switch(nt){case wn.ALT:case wn.CAPS_LOCK:case wn.CONTEXT_MENU:case wn.CTRL:case wn.DOWN:case wn.END:case wn.ESC:case wn.HOME:case wn.INSERT:case wn.LEFT:case wn.MAC_FF_META:case wn.META:case wn.NUMLOCK:case wn.NUM_CENTER:case wn.PAGE_DOWN:case wn.PAGE_UP:case wn.PAUSE:case wn.PRINT_SCREEN:case wn.RIGHT:case wn.SHIFT:case wn.UP:case wn.WIN_KEY:case wn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=wn.ZERO&&Fe<=wn.NINE||Fe>=wn.NUM_ZERO&&Fe<=wn.NUM_MULTIPLY||Fe>=wn.A&&Fe<=wn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case wn.SPACE:case wn.QUESTION_MARK:case wn.NUM_PLUS:case wn.NUM_MINUS:case wn.NUM_PERIOD:case wn.NUM_DIVISION:case wn.SEMICOLON:case wn.DASH:case wn.EQUALS:case wn.COMMA:case wn.PERIOD:case wn.SLASH:case wn.APOSTROPHE:case wn.SINGLE_QUOTE:case wn.OPEN_SQUARE_BRACKET:case wn.BACKSLASH:case wn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},jr=wn,Hr={},mo=[],da=function(Fe){mo.push(Fe)};function Ro($e,Fe){if(0)var nt}function Jo($e,Fe){if(0)var nt}function qo(){Hr={}}function ur($e,Fe,nt){!Fe&&!Hr[nt]&&($e(!1,nt),Hr[nt]=!0)}function $r($e,Fe){ur(Ro,$e,Fe)}function zr($e,Fe){ur(Jo,$e,Fe)}$r.preMessage=da,$r.resetWarned=qo,$r.noteOnce=zr;var To=$r;function Fo($e,Fe,nt,St){var Mt=Fe+nt,Ht=(nt-St)/2;if(nt>St){if(Fe>0)return(0,me.Z)({},$e,Ht);if(Fe<0&&Mt<St)return(0,me.Z)({},$e,-Ht)}else if(Fe<0||Mt>St)return(0,me.Z)({},$e,Fe<0?Ht:-Ht);return{}}function po($e,Fe,nt,St){var Mt=ie(),Ht=Mt.width,dn=Mt.height,_n=null;return $e<=Ht&&Fe<=dn?_n={x:0,y:0}:($e>Ht||Fe>dn)&&(_n=(0,ae.Z)((0,ae.Z)({},Fo("x",nt,$e,Ht)),Fo("y",St,Fe,dn))),_n}function Lr($e,Fe){var nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,St=new Set;function Mt(Ht,dn){var _n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,An=St.has(Ht);if(To(!An,"Warning: There may be circular references"),An)return!1;if(Ht===dn)return!0;if(nt&&_n>1)return!1;St.add(Ht);var Un=_n+1;if(Array.isArray(Ht)){if(!Array.isArray(dn)||Ht.length!==dn.length)return!1;for(var Tn=0;Tn<Ht.length;Tn++)if(!Mt(Ht[Tn],dn[Tn],Un))return!1;return!0}if(Ht&&dn&&(0,ge.Z)(Ht)==="object"&&(0,ge.Z)(dn)==="object"){var In=Object.keys(Ht);return In.length!==Object.keys(dn).length?!1:In.every(function(Gn){return Mt(Ht[Gn],dn[Gn],Un)})}return!1}return Mt($e,Fe)}var vo=Lr,hn=function(Fe){return+setTimeout(Fe,16)},se=function(Fe){return clearTimeout(Fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(hn=function(Fe){return window.requestAnimationFrame(Fe)},se=function(Fe){return window.cancelAnimationFrame(Fe)});var ye=0,Pe=new Map;function Ae($e){Pe.delete($e)}var Oe=function(Fe){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ye+=1;var St=ye;function Mt(Ht){if(Ht===0)Ae(St),Fe();else{var dn=hn(function(){Mt(Ht-1)});Pe.set(St,dn)}}return Mt(nt),St};Oe.cancel=function($e){var Fe=Pe.get($e);return Ae(Fe),se(Fe)};var Je=Oe,pt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function gn($e,Fe,nt,St){var Mt=(0,te.useRef)(null),Ht=(0,te.useRef)([]),dn=(0,te.useState)(pt),_n=(0,de.Z)(dn,2),An=_n[0],Un=_n[1],Tn=function(qr){Un(pt),St&&!vo(pt,An)&&St({transform:pt,action:qr})},In=function(qr,Eo){Mt.current===null&&(Ht.current=[],Mt.current=Je(function(){Un(function(Yr){var to=Yr;return Ht.current.forEach(function(Jr){to=(0,ae.Z)((0,ae.Z)({},to),Jr)}),Mt.current=null,St==null||St({transform:to,action:Eo}),to})})),Ht.current.push((0,ae.Z)((0,ae.Z)({},An),qr))},Gn=function(qr,Eo,Yr,to){var Jr=$e.current,Ko=Jr.width,Mr=Jr.height,no=Jr.offsetWidth,Lo=Jr.offsetHeight,la=Jr.offsetLeft,So=Jr.offsetTop,na=qr,jo=An.scale*qr;jo>nt?(na=nt/An.scale,jo=nt):jo<Fe&&(na=Fe/An.scale,jo=Fe);var Ga=Yr!=null?Yr:innerWidth/2,Ea=to!=null?to:innerHeight/2,ma=na-1,_o=ma*Ko*.5,wo=ma*Mr*.5,Vo=ma*(Ga-An.x-la),pa=ma*(Ea-An.y-So),Da=An.x-(Vo-_o),Io=An.y-(pa-wo);if(qr<1&&jo===1){var xa=no*jo,Ma=Lo*jo,$a=ie(),Ra=$a.width,Oo=$a.height;xa<=Ra&&Ma<=Oo&&(Da=0,Io=0)}In({x:Da,y:Io,scale:jo},Eo)};return{transform:An,resetTransform:Tn,updateTransform:In,dispatchZoomChange:Gn}}var $t=function(Fe){var nt=Fe.visible,St=Fe.maskTransitionName,Mt=Fe.getContainer,Ht=Fe.prefixCls,dn=Fe.rootClassName,_n=Fe.icons,An=Fe.countRender,Un=Fe.showSwitch,Tn=Fe.showProgress,In=Fe.current,Gn=Fe.transform,Br=Fe.count,qr=Fe.scale,Eo=Fe.minScale,Yr=Fe.maxScale,to=Fe.closeIcon,Jr=Fe.onSwitchLeft,Ko=Fe.onSwitchRight,Mr=Fe.onClose,no=Fe.onZoomIn,Lo=Fe.onZoomOut,la=Fe.onRotateRight,So=Fe.onRotateLeft,na=Fe.onFlipX,jo=Fe.onFlipY,Ga=Fe.toolbarRender,Ea=(0,te.useContext)(Re),ma=_n.rotateLeft,_o=_n.rotateRight,wo=_n.zoomIn,Vo=_n.zoomOut,pa=_n.close,Da=_n.left,Io=_n.right,xa=_n.flipX,Ma=_n.flipY,$a="".concat(Ht,"-operations-operation");te.useEffect(function(){var ea=function(ii){ii.keyCode===jr.ESC&&Mr()};return nt&&window.addEventListener("keydown",ea),function(){window.removeEventListener("keydown",ea)}},[nt]);var Ra=[{icon:Ma,onClick:jo,type:"flipY"},{icon:xa,onClick:na,type:"flipX"},{icon:ma,onClick:So,type:"rotateLeft"},{icon:_o,onClick:la,type:"rotateRight"},{icon:Vo,onClick:Lo,type:"zoomOut",disabled:qr===Eo},{icon:wo,onClick:no,type:"zoomIn",disabled:qr===Yr}],Oo=Ra.map(function(ea){var Ca,ii=ea.icon,mi=ea.onClick,Sa=ea.type,ca=ea.disabled;return te.createElement("div",{className:ce()($a,(Ca={},(0,me.Z)(Ca,"".concat(Ht,"-operations-operation-").concat(Sa),!0),(0,me.Z)(Ca,"".concat(Ht,"-operations-operation-disabled"),!!ca),Ca)),onClick:mi,key:Sa},ii)}),Wa=te.createElement("div",{className:"".concat(Ht,"-operations")},Oo);return te.createElement(tt.Z,{visible:nt,motionName:St},function(ea){var Ca=ea.className,ii=ea.style;return te.createElement(en.Z,{open:!0,getContainer:Mt!=null?Mt:document.body},te.createElement("div",{className:ce()("".concat(Ht,"-operations-wrapper"),Ca,dn),style:ii},to===null?null:te.createElement("button",{className:"".concat(Ht,"-close"),onClick:Mr},to||pa),Un&&te.createElement(te.Fragment,null,te.createElement("div",{className:ce()("".concat(Ht,"-switch-left"),(0,me.Z)({},"".concat(Ht,"-switch-left-disabled"),In===0)),onClick:Jr},Da),te.createElement("div",{className:ce()("".concat(Ht,"-switch-right"),(0,me.Z)({},"".concat(Ht,"-switch-right-disabled"),In===Br-1)),onClick:Ko},Io)),te.createElement("div",{className:"".concat(Ht,"-footer")},Tn&&te.createElement("div",{className:"".concat(Ht,"-progress")},An?An(In+1,Br):"".concat(In+1," / ").concat(Br)),Ga?Ga(Wa,(0,ae.Z)({icons:{flipYIcon:Oo[0],flipXIcon:Oo[1],rotateLeftIcon:Oo[2],rotateRightIcon:Oo[3],zoomOutIcon:Oo[4],zoomInIcon:Oo[5]},actions:{onFlipY:jo,onFlipX:na,onRotateLeft:So,onRotateRight:la,onZoomOut:Lo,onZoomIn:no},transform:Gn},Ea?{current:In,total:Br}:{})):Wa)))})},Bn=$t,hr=1,gr=1,Nt=["fallback","src","imgRef"],Wn=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],qn=function(Fe){var nt=Fe.fallback,St=Fe.src,Mt=Fe.imgRef,Ht=(0,le.Z)(Fe,Nt),dn=It({src:St,fallback:nt}),_n=(0,de.Z)(dn,2),An=_n[0],Un=_n[1];return te.createElement("img",(0,pe.Z)({ref:function(In){Mt.current=In,An(In)}},Ht,Un))},Sn=function(Fe){var nt=Fe.prefixCls,St=Fe.src,Mt=Fe.alt,Ht=Fe.fallback,dn=Fe.movable,_n=dn===void 0?!0:dn,An=Fe.onClose,Un=Fe.visible,Tn=Fe.icons,In=Tn===void 0?{}:Tn,Gn=Fe.rootClassName,Br=Fe.closeIcon,qr=Fe.getContainer,Eo=Fe.current,Yr=Eo===void 0?0:Eo,to=Fe.count,Jr=to===void 0?1:to,Ko=Fe.countRender,Mr=Fe.scaleStep,no=Mr===void 0?.5:Mr,Lo=Fe.minScale,la=Lo===void 0?1:Lo,So=Fe.maxScale,na=So===void 0?50:So,jo=Fe.transitionName,Ga=jo===void 0?"zoom":jo,Ea=Fe.maskTransitionName,ma=Ea===void 0?"fade":Ea,_o=Fe.imageRender,wo=Fe.imgCommonProps,Vo=Fe.toolbarRender,pa=Fe.onTransform,Da=Fe.onChange,Io=(0,le.Z)(Fe,Wn),xa=(0,te.useRef)(),Ma=(0,te.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),$a=(0,te.useState)(!1),Ra=(0,de.Z)($a,2),Oo=Ra[0],Wa=Ra[1],ea=(0,te.useContext)(Re),Ca=ea&&Jr>1,ii=ea&&Jr>=1,mi=gn(xa,la,na,pa),Sa=mi.transform,ca=mi.resetTransform,oi=mi.updateTransform,ji=mi.dispatchZoomChange,Ci=(0,te.useState)(!0),wi=(0,de.Z)(Ci,2),Li=wi[0],xi=wi[1],di=Sa.rotate,si=Sa.scale,zi=Sa.x,Mi=Sa.y,Ms=ce()((0,me.Z)({},"".concat(nt,"-moving"),Oo));(0,te.useEffect)(function(){Li||xi(!0)},[Li]);var cs=function(){ca("close")},Xi=function(){ji(hr+no,"zoomIn")},us=function(){ji(hr/(hr+no),"zoomOut")},ds=function(){oi({rotate:di+90},"rotateRight")},Qi=function(){oi({rotate:di-90},"rotateLeft")},Bi=function(){oi({flipX:!Sa.flipX},"flipX")},Ui=function(){oi({flipY:!Sa.flipY},"flipY")},gs=function(xo){xo==null||xo.preventDefault(),xo==null||xo.stopPropagation(),Yr>0&&(xi(!1),ca("prev"),Da==null||Da(Yr-1,Yr))},as=function(xo){xo==null||xo.preventDefault(),xo==null||xo.stopPropagation(),Yr<Jr-1&&(xi(!1),ca("next"),Da==null||Da(Yr+1,Yr))},Ji=function(){if(Un&&Oo){Wa(!1);var xo=Ma.current,ai=xo.transformX,Ai=xo.transformY,li=zi!==ai&&Mi!==Ai;if(!li)return;var qi=xa.current.offsetWidth*si,Ki=xa.current.offsetHeight*si,Di=xa.current.getBoundingClientRect(),Bs=Di.left,_s=Di.top,Ps=di%180!==0,fs=po(Ps?Ki:qi,Ps?qi:Ki,Bs,_s);fs&&oi((0,ae.Z)({},fs),"dragRebound")}},Ns=function(xo){!_n||xo.button!==0||(xo.preventDefault(),xo.stopPropagation(),Ma.current={deltaX:xo.pageX-Sa.x,deltaY:xo.pageY-Sa.y,transformX:Sa.x,transformY:Sa.y},Wa(!0))},As=function(xo){Un&&Oo&&oi({x:xo.pageX-Ma.current.deltaX,y:xo.pageY-Ma.current.deltaY},"move")},Rs=function(xo){if(!(!Un||xo.deltaY==0)){var ai=Math.abs(xo.deltaY/100),Ai=Math.min(ai,gr),li=hr+Ai*no;xo.deltaY>0&&(li=hr/li),ji(li,"wheel",xo.clientX,xo.clientY)}},Ts=function(xo){!Un||!Ca||(xo.keyCode===jr.LEFT?gs():xo.keyCode===jr.RIGHT&&as())},Ss=function(xo){Un&&(si!==1?oi({x:0,y:0,scale:1},"doubleClick"):ji(hr+no,"doubleClick",xo.clientX,xo.clientY))};(0,te.useEffect)(function(){var Ka,xo,ai,Ai;if(_n){ai=cr(window,"mouseup",Ji,!1),Ai=cr(window,"mousemove",As,!1);try{window.top!==window.self&&(Ka=cr(window.top,"mouseup",Ji,!1),xo=cr(window.top,"mousemove",As,!1))}catch(li){Ro(!1,"[rc-image] ".concat(li))}}return function(){var li,qi,Ki,Di;(li=ai)===null||li===void 0||li.remove(),(qi=Ai)===null||qi===void 0||qi.remove(),(Ki=Ka)===null||Ki===void 0||Ki.remove(),(Di=xo)===null||Di===void 0||Di.remove()}},[Un,Oo,zi,Mi,di,_n]),(0,te.useEffect)(function(){var Ka=cr(window,"keydown",Ts,!1);return function(){Ka.remove()}},[Un,Ca,Yr]);var ys=te.createElement(qn,(0,pe.Z)({},wo,{width:Fe.width,height:Fe.height,imgRef:xa,className:"".concat(nt,"-img"),alt:Mt,style:{transform:"translate3d(".concat(Sa.x,"px, ").concat(Sa.y,"px, 0) scale3d(").concat(Sa.flipX?"-":"").concat(si,", ").concat(Sa.flipY?"-":"").concat(si,", 1) rotate(").concat(di,"deg)"),transitionDuration:!Li&&"0s"},fallback:Ht,src:St,onWheel:Rs,onMouseDown:Ns,onDoubleClick:Ss}));return te.createElement(te.Fragment,null,te.createElement(Gr,(0,pe.Z)({transitionName:Ga,maskTransitionName:ma,closable:!1,keyboard:!0,prefixCls:nt,onClose:An,visible:Un,wrapClassName:Ms,rootClassName:Gn,getContainer:qr},Io,{afterClose:cs}),te.createElement("div",{className:"".concat(nt,"-img-wrapper")},_o?_o(ys,(0,ae.Z)({transform:Sa},ea?{current:Yr}:{})):ys)),te.createElement(Bn,{visible:Un,transform:Sa,maskTransitionName:ma,closeIcon:Br,getContainer:qr,prefixCls:nt,rootClassName:Gn,icons:In,countRender:Ko,showSwitch:Ca,showProgress:ii,current:Yr,count:Jr,scale:si,minScale:la,maxScale:na,toolbarRender:Vo,onSwitchLeft:gs,onSwitchRight:as,onZoomIn:Xi,onZoomOut:us,onRotateRight:ds,onRotateLeft:Qi,onFlipX:Bi,onFlipY:Ui,onClose:An}))},Mn=Sn,Xn=ee(74902);function Pr($e){var Fe=te.useState({}),nt=(0,de.Z)(Fe,2),St=nt[0],Mt=nt[1],Ht=te.useCallback(function(_n,An){return Mt(function(Un){return(0,ae.Z)((0,ae.Z)({},Un),{},(0,me.Z)({},_n,An))}),function(){Mt(function(Un){var Tn=(0,ae.Z)({},Un);return delete Tn[_n],Tn})}},[]),dn=te.useMemo(function(){return $e?$e.map(function(_n){if(typeof _n=="string")return{data:{src:_n}};var An={};return Object.keys(_n).forEach(function(Un){["src"].concat((0,Xn.Z)(Be)).includes(Un)&&(An[Un]=_n[Un])}),{data:An}}):Object.keys(St).reduce(function(_n,An){var Un=St[An],Tn=Un.canPreview,In=Un.data;return Tn&&_n.push({data:In,id:An}),_n},[])},[$e,St]);return[dn,Ht]}var ar=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ga=["src"],bo=function(Fe){var nt,St=Fe.previewPrefixCls,Mt=St===void 0?"rc-image-preview":St,Ht=Fe.children,dn=Fe.icons,_n=dn===void 0?{}:dn,An=Fe.items,Un=Fe.preview,Tn=Fe.fallback,In=(0,ge.Z)(Un)==="object"?Un:{},Gn=In.visible,Br=In.onVisibleChange,qr=In.getContainer,Eo=In.current,Yr=In.movable,to=In.minScale,Jr=In.maxScale,Ko=In.countRender,Mr=In.closeIcon,no=In.onChange,Lo=In.onTransform,la=In.toolbarRender,So=In.imageRender,na=(0,le.Z)(In,ar),jo=Pr(An),Ga=(0,de.Z)(jo,2),Ea=Ga[0],ma=Ga[1],_o=Me(0,{value:Eo}),wo=(0,de.Z)(_o,2),Vo=wo[0],pa=wo[1],Da=(0,te.useState)(!1),Io=(0,de.Z)(Da,2),xa=Io[0],Ma=Io[1],$a=((nt=Ea[Vo])===null||nt===void 0?void 0:nt.data)||{},Ra=$a.src,Oo=(0,le.Z)($a,ga),Wa=Me(!!Gn,{value:Gn,onChange:function(di,si){Br==null||Br(di,si,Vo)}}),ea=(0,de.Z)(Wa,2),Ca=ea[0],ii=ea[1],mi=(0,te.useState)(null),Sa=(0,de.Z)(mi,2),ca=Sa[0],oi=Sa[1],ji=te.useCallback(function(xi,di,si){var zi=Ea.findIndex(function(Mi){return Mi.id===xi});ii(!0),oi({x:di,y:si}),pa(zi<0?0:zi),Ma(!0)},[Ea]);te.useEffect(function(){Ca?xa||pa(0):Ma(!1)},[Ca]);var Ci=function(di,si){pa(di),no==null||no(di,si)},wi=function(){ii(!1),oi(null)},Li=te.useMemo(function(){return{register:ma,onPreview:ji}},[ma,ji]);return te.createElement(Re.Provider,{value:Li},Ht,te.createElement(Mn,(0,pe.Z)({"aria-hidden":!Ca,movable:Yr,visible:Ca,prefixCls:Mt,closeIcon:Mr,onClose:wi,mousePosition:ca,imgCommonProps:Oo,src:Ra,fallback:Tn,icons:_n,minScale:to,maxScale:Jr,getContainer:qr,current:Vo,count:Ea.length,countRender:Ko,onTransform:Lo,toolbarRender:la,imageRender:So,onChange:Ci},na)))},fr=bo,Qr=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ko=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Go=function(Fe){var nt=Fe.src,St=Fe.alt,Mt=Fe.onPreviewClose,Ht=Fe.prefixCls,dn=Ht===void 0?"rc-image":Ht,_n=Fe.previewPrefixCls,An=_n===void 0?"".concat(dn,"-preview"):_n,Un=Fe.placeholder,Tn=Fe.fallback,In=Fe.width,Gn=Fe.height,Br=Fe.style,qr=Fe.preview,Eo=qr===void 0?!0:qr,Yr=Fe.className,to=Fe.onClick,Jr=Fe.onError,Ko=Fe.wrapperClassName,Mr=Fe.wrapperStyle,no=Fe.rootClassName,Lo=(0,le.Z)(Fe,Qr),la=Un&&Un!==!0,So=(0,ge.Z)(Eo)==="object"?Eo:{},na=So.src,jo=So.visible,Ga=jo===void 0?void 0:jo,Ea=So.onVisibleChange,ma=Ea===void 0?Mt:Ea,_o=So.getContainer,wo=_o===void 0?void 0:_o,Vo=So.mask,pa=So.maskClassName,Da=So.movable,Io=So.icons,xa=So.scaleStep,Ma=So.minScale,$a=So.maxScale,Ra=So.imageRender,Oo=So.toolbarRender,Wa=(0,le.Z)(So,ko),ea=na!=null?na:nt,Ca=Me(!!Ga,{value:Ga,onChange:ma}),ii=(0,de.Z)(Ca,2),mi=ii[0],Sa=ii[1],ca=It({src:nt,isCustomPlaceholder:la,fallback:Tn}),oi=(0,de.Z)(ca,3),ji=oi[0],Ci=oi[1],wi=oi[2],Li=(0,te.useState)(null),xi=(0,de.Z)(Li,2),di=xi[0],si=xi[1],zi=(0,te.useContext)(Re),Mi=!!Eo,Ms=function(){Sa(!1),si(null)},cs=ce()(dn,Ko,no,(0,me.Z)({},"".concat(dn,"-error"),wi==="error")),Xi=(0,te.useMemo)(function(){var Bi={};return Be.forEach(function(Ui){Fe[Ui]!==void 0&&(Bi[Ui]=Fe[Ui])}),Bi},Be.map(function(Bi){return Fe[Bi]})),us=(0,te.useMemo)(function(){return(0,ae.Z)((0,ae.Z)({},Xi),{},{src:ea})},[ea,Xi]),ds=Ge(Mi,us),Qi=function(Ui){var gs=ve(Ui.target),as=gs.left,Ji=gs.top;zi?zi.onPreview(ds,as,Ji):(si({x:as,y:Ji}),Sa(!0)),to==null||to(Ui)};return te.createElement(te.Fragment,null,te.createElement("div",(0,pe.Z)({},Lo,{className:cs,onClick:Mi?Qi:to,style:(0,ae.Z)({width:In,height:Gn},Mr)}),te.createElement("img",(0,pe.Z)({},Xi,{className:ce()("".concat(dn,"-img"),(0,me.Z)({},"".concat(dn,"-img-placeholder"),Un===!0),Yr),style:(0,ae.Z)({height:Gn},Br),ref:ji},Ci,{width:In,height:Gn,onError:Jr})),wi==="loading"&&te.createElement("div",{"aria-hidden":"true",className:"".concat(dn,"-placeholder")},Un),Vo&&Mi&&te.createElement("div",{className:ce()("".concat(dn,"-mask"),pa),style:{display:(Br==null?void 0:Br.display)==="none"?"none":void 0}},Vo)),!zi&&Mi&&te.createElement(Mn,(0,pe.Z)({"aria-hidden":!mi,visible:mi,prefixCls:An,onClose:Ms,mousePosition:di,src:ea,alt:St,fallback:Tn,getContainer:wo,icons:Io,movable:Da,scaleStep:xa,minScale:Ma,maxScale:$a,rootClassName:no,imageRender:Ra,imgCommonProps:Xi,toolbarRender:Oo},Wa)))};Go.PreviewGroup=fr,Go.displayName="Image";var on=Go,sa=on,Za=ee(33603),Pa=ee(53124),so=ee(24457),ni=ee(73475),Pn=ee(22751),mr=ee(91034),tr={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"},er=tr,$o=ee(74643),ha=function(Fe,nt){return te.createElement($o.Z,(0,pe.Z)({},Fe,{ref:nt,icon:er}))},ba=te.forwardRef(ha),Ha={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"},ri=Ha,gt=function(Fe,nt){return te.createElement($o.Z,(0,pe.Z)({},Fe,{ref:nt,icon:ri}))},dt=te.forwardRef(gt),Tt={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"},Yt=Tt,yn=function(Fe,nt){return te.createElement($o.Z,(0,pe.Z)({},Fe,{ref:nt,icon:Yt}))},ir=te.forwardRef(yn),Er={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"},Tr=Er,_r=function(Fe,nt){return te.createElement($o.Z,(0,pe.Z)({},Fe,{ref:nt,icon:Tr}))},yo=te.forwardRef(_r),Do={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"},Bo=Do,fa=function(Fe,nt){return te.createElement($o.Z,(0,pe.Z)({},Fe,{ref:nt,icon:Bo}))},yt=te.forwardRef(fa),_t=ee(84780),jt=ee(71194),Ue=ee(14747),Ut=ee(50438),Xt=ee(16932),pn=ee(67968),Lt=ee(45503);const Ft=$e=>({position:$e||"absolute",inset:0}),Ot=$e=>{const{iconCls:Fe,motionDurationSlow:nt,paddingXXS:St,marginXXS:Mt,prefixCls:Ht,colorTextLightSolid:dn}=$e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:dn,background:new _t.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${nt}`,[`.${Ht}-mask-info`]:Object.assign(Object.assign({},Ue.vS),{padding:`0 ${St}px`,[Fe]:{marginInlineEnd:Mt,svg:{verticalAlign:"baseline"}}})}},vn=$e=>{const{previewCls:Fe,modalMaskBg:nt,paddingSM:St,marginXL:Mt,margin:Ht,paddingLG:dn,previewOperationColorDisabled:_n,previewOperationHoverColor:An,motionDurationSlow:Un,iconCls:Tn,colorTextLightSolid:In}=$e,Gn=new _t.C(nt).setAlpha(.1),Br=Gn.clone().setAlpha(.2);return{[`${Fe}-footer`]:{position:"fixed",bottom:Mt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:$e.previewOperationColor},[`${Fe}-progress`]:{marginBottom:Ht},[`${Fe}-close`]:{position:"fixed",top:Mt,right:{_skip_check_:!0,value:Mt},display:"flex",color:In,backgroundColor:Gn.toRgbString(),borderRadius:"50%",padding:St,outline:0,border:0,cursor:"pointer",transition:`all ${Un}`,"&:hover":{backgroundColor:Br.toRgbString()},[`& > ${Tn}`]:{fontSize:$e.previewOperationSize}},[`${Fe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${dn}px`,backgroundColor:Gn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:St,padding:St,cursor:"pointer",transition:`all ${Un}`,userSelect:"none",[`&:not(${Fe}-operations-operation-disabled):hover > ${Tn}`]:{color:An},"&-disabled":{color:_n,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Tn}`]:{fontSize:$e.previewOperationSize}}}}},Fn=$e=>{const{modalMaskBg:Fe,iconCls:nt,previewOperationColorDisabled:St,previewCls:Mt,zIndexPopup:Ht,motionDurationSlow:dn}=$e,_n=new _t.C(Fe).setAlpha(.1),An=_n.clone().setAlpha(.2);return{[`${Mt}-switch-left, ${Mt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Ht+1,display:"flex",alignItems:"center",justifyContent:"center",width:$e.imagePreviewSwitchSize,height:$e.imagePreviewSwitchSize,marginTop:-$e.imagePreviewSwitchSize/2,color:$e.previewOperationColor,background:_n.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${dn}`,userSelect:"none","&:hover":{background:An.toRgbString()},"&-disabled":{"&, &:hover":{color:St,background:"transparent",cursor:"not-allowed",[`> ${nt}`]:{cursor:"not-allowed"}}},[`> ${nt}`]:{fontSize:$e.previewOperationSize}},[`${Mt}-switch-left`]:{insetInlineStart:$e.marginSM},[`${Mt}-switch-right`]:{insetInlineEnd:$e.marginSM}}},Kn=$e=>{const{motionEaseOut:Fe,previewCls:nt,motionDurationSlow:St,componentCls:Mt}=$e;return[{[`${Mt}-preview-root`]:{[nt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${nt}-body`]:Object.assign(Object.assign({},Ft()),{overflow:"hidden"}),[`${nt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${St} ${Fe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Ft()),{transition:`transform ${St} ${Fe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${nt}-moving`]:{[`${nt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Mt}-preview-root`]:{[`${nt}-wrap`]:{zIndex:$e.zIndexPopup}}},{[`${Mt}-preview-operations-wrapper`]:{position:"fixed",zIndex:$e.zIndexPopup+1},"&":[vn($e),Fn($e)]}]},kn=$e=>{const{componentCls:Fe}=$e;return{[Fe]:{position:"relative",display:"inline-block",[`${Fe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Fe}-img-placeholder`]:{backgroundColor:$e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Fe}-mask`]:Object.assign({},Ot($e)),[`${Fe}-mask:hover`]:{opacity:1},[`${Fe}-placeholder`]:Object.assign({},Ft())}}},Qn=$e=>{const{previewCls:Fe}=$e;return{[`${Fe}-root`]:(0,Ut._y)($e,"zoom"),"&":(0,Xt.J$)($e,!0)}};var sr=(0,pn.Z)("Image",$e=>{const Fe=`${$e.componentCls}-preview`,nt=(0,Lt.TS)($e,{previewCls:Fe,modalMaskBg:new _t.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:$e.controlHeightLG});return[kn(nt),Kn(nt),(0,jt.QA)((0,Lt.TS)(nt,{componentCls:Fe})),Qn(nt)]},$e=>({zIndexPopup:$e.zIndexPopupBase+80,previewOperationColor:new _t.C($e.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new _t.C($e.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new _t.C($e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:$e.fontSizeIcon*1.5})),xr=function($e,Fe){var nt={};for(var St in $e)Object.prototype.hasOwnProperty.call($e,St)&&Fe.indexOf(St)<0&&(nt[St]=$e[St]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,St=Object.getOwnPropertySymbols($e);Mt<St.length;Mt++)Fe.indexOf(St[Mt])<0&&Object.prototype.propertyIsEnumerable.call($e,St[Mt])&&(nt[St[Mt]]=$e[St[Mt]]);return nt};const Bt={rotateLeft:te.createElement(ba,null),rotateRight:te.createElement(dt,null),zoomIn:te.createElement(yo,null),zoomOut:te.createElement(yt,null),close:te.createElement(ni.Z,null),left:te.createElement(Pn.Z,null),right:te.createElement(mr.Z,null),flipX:te.createElement(ir,null),flipY:te.createElement(ir,{rotate:90})};var rn=$e=>{var{previewPrefixCls:Fe,preview:nt}=$e,St=xr($e,["previewPrefixCls","preview"]);const{getPrefixCls:Mt}=te.useContext(Pa.E_),Ht=Mt("image",Fe),dn=`${Ht}-preview`,_n=Mt(),[An,Un]=sr(Ht),Tn=te.useMemo(()=>{var In;if(nt===!1)return nt;const Gn=typeof nt=="object"?nt:{},Br=ce()(Un,(In=Gn.rootClassName)!==null&&In!==void 0?In:"");return Object.assign(Object.assign({},Gn),{transitionName:(0,Za.m)(_n,"zoom",Gn.transitionName),maskTransitionName:(0,Za.m)(_n,"fade",Gn.maskTransitionName),rootClassName:Br})},[nt]);return An(te.createElement(sa.PreviewGroup,Object.assign({preview:Tn,previewPrefixCls:dn,icons:Bt},St)))},an=function($e,Fe){var nt={};for(var St in $e)Object.prototype.hasOwnProperty.call($e,St)&&Fe.indexOf(St)<0&&(nt[St]=$e[St]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,St=Object.getOwnPropertySymbols($e);Mt<St.length;Mt++)Fe.indexOf(St[Mt])<0&&Object.prototype.propertyIsEnumerable.call($e,St[Mt])&&(nt[St[Mt]]=$e[St[Mt]]);return nt};const Vn=$e=>{const{prefixCls:Fe,preview:nt,className:St,rootClassName:Mt,style:Ht}=$e,dn=an($e,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:_n,locale:An=so.Z,getPopupContainer:Un,image:Tn}=te.useContext(Pa.E_),In=_n("image",Fe),Gn=_n(),Br=An.Image||so.Z.Image,[qr,Eo]=sr(In),Yr=ce()(Mt,Eo),to=ce()(St,Eo,Tn==null?void 0:Tn.className),Jr=te.useMemo(()=>{if(nt===!1)return nt;const Mr=typeof nt=="object"?nt:{},{getContainer:no}=Mr,Lo=an(Mr,["getContainer"]);return Object.assign(Object.assign({mask:te.createElement("div",{className:`${In}-mask-info`},te.createElement(be.Z,null),Br==null?void 0:Br.preview),icons:Bt},Lo),{getContainer:no||Un,transitionName:(0,Za.m)(Gn,"zoom",Mr.transitionName),maskTransitionName:(0,Za.m)(Gn,"fade",Mr.maskTransitionName)})},[nt,Br]),Ko=Object.assign(Object.assign({},Tn==null?void 0:Tn.style),Ht);return qr(te.createElement(sa,Object.assign({prefixCls:In,preview:Jr,rootClassName:Yr,className:to,style:Ko},dn)))};Vn.PreviewGroup=rn;var lr=Vn},71322:function(ot,Ze,ee){"use strict";ee.d(Ze,{D:function(){return x},Z:function(){return ie}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(ve,Se){return fe.createElement(ce.Z,(0,te.Z)({},ve,{ref:Se,icon:_e}))},ae=fe.forwardRef(pe),me=ee(22751),de=ee(91034),ge=ee(94184),le=ee.n(ge),he=ee(10366),ne=ue=>!isNaN(parseFloat(ue))&&isFinite(ue),y=ee(53124),a=ee(84321),E=function(ue,ve){var Se={};for(var Le in ue)Object.prototype.hasOwnProperty.call(ue,Le)&&ve.indexOf(Le)<0&&(Se[Le]=ue[Le]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,Le=Object.getOwnPropertySymbols(ue);we<Le.length;we++)ve.indexOf(Le[we])<0&&Object.prototype.propertyIsEnumerable.call(ue,Le[we])&&(Se[Le[we]]=ue[Le[we]]);return Se};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=fe.createContext({}),z=(()=>{let ue=0;return function(){let ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ue+=1,`${ve}${ue}`}})();var ie=fe.forwardRef((ue,ve)=>{const{prefixCls:Se,className:Le,trigger:we,children:Ne,defaultCollapsed:xe=!1,theme:st="dark",style:Ye={},collapsible:lt=!1,reverseArrow:Me=!1,width:Be=200,collapsedWidth:Re=80,zeroWidthTriggerStyle:ke,breakpoint:Ge,onCollapse:Et,onBreakpoint:It}=ue,en=E(ue,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Zt}=(0,fe.useContext)(a.Gs),[rt,at]=(0,fe.useState)("collapsed"in ue?ue.collapsed:xe),[Ct,qt]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ue&&at(ue.collapsed)},[ue.collapsed]);const Gt=(mn,zt)=>{"collapsed"in ue||at(mn),Et==null||Et(mn,zt)},xt=(0,fe.useRef)();xt.current=mn=>{qt(mn.matches),It==null||It(mn.matches),rt!==mn.matches&&Gt(mn.matches,"responsive")},(0,fe.useEffect)(()=>{function mn(et){return xt.current(et)}let zt;if(typeof window!="undefined"){const{matchMedia:et}=window;if(et&&Ge&&Ge in b){zt=et(`(max-width: ${b[Ge]})`);try{zt.addEventListener("change",mn)}catch(Xe){zt.addListener(mn)}mn(zt)}}return()=>{try{zt==null||zt.removeEventListener("change",mn)}catch(et){zt==null||zt.removeListener(mn)}}},[Ge]),(0,fe.useEffect)(()=>{const mn=z("ant-sider-");return Zt.addSider(mn),()=>Zt.removeSider(mn)},[]);const Ve=()=>{Gt(!rt,"clickTrigger")},{getPrefixCls:Qt}=(0,fe.useContext)(y.E_),Ln=()=>{const mn=Qt("layout-sider",Se),zt=(0,he.Z)(en,["collapsed"]),et=rt?Re:Be,Xe=ne(et)?`${et}px`:String(et),qe=parseFloat(String(Re||0))===0?fe.createElement("span",{onClick:Ve,className:le()(`${mn}-zero-width-trigger`,`${mn}-zero-width-trigger-${Me?"right":"left"}`),style:ke},we||fe.createElement(ae,null)):null,tt={expanded:Me?fe.createElement(de.Z,null):fe.createElement(me.Z,null),collapsed:Me?fe.createElement(me.Z,null):fe.createElement(de.Z,null)}[rt?"collapsed":"expanded"],vt=we!==null?qe||fe.createElement("div",{className:`${mn}-trigger`,onClick:Ve,style:{width:Xe}},we||tt):null,bt=Object.assign(Object.assign({},Ye),{flex:`0 0 ${Xe}`,maxWidth:Xe,minWidth:Xe,width:Xe}),Qe=le()(mn,`${mn}-${st}`,{[`${mn}-collapsed`]:!!rt,[`${mn}-has-trigger`]:lt&&we!==null&&!qe,[`${mn}-below`]:!!Ct,[`${mn}-zero-width`]:parseFloat(Xe)===0},Le);return fe.createElement("aside",Object.assign({className:Qe},zt,{style:bt,ref:ve}),fe.createElement("div",{className:`${mn}-children`},Ne),lt||Ct&&qe?vt:null)},Hn=fe.useMemo(()=>({siderCollapsed:rt}),[rt]);return fe.createElement(x.Provider,{value:Hn},Ln())})},84321:function(ot,Ze,ee){"use strict";ee.d(Ze,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return re},ZP:function(){return oe}});var te=ee(74902),fe=ee(94184),be=ee.n(fe),_e=ee(10366),ce=ee(67294),pe=ee(53124),ae=ee(67968),de=ie=>{const{componentCls:ue,bodyBg:ve,lightSiderBg:Se,lightTriggerBg:Le,lightTriggerColor:we}=ie;return{[`${ue}-sider-light`]:{background:Se,[`${ue}-sider-trigger`]:{color:we,background:Le},[`${ue}-sider-zero-width-trigger`]:{color:we,background:Le,border:`1px solid ${ve}`,borderInlineStart:0}}}};const ge=ie=>{const{antCls:ue,componentCls:ve,colorText:Se,triggerColor:Le,footerBg:we,triggerBg:Ne,headerHeight:xe,headerPadding:st,headerColor:Ye,footerPadding:lt,triggerHeight:Me,zeroTriggerHeight:Be,zeroTriggerWidth:Re,motionDurationMid:ke,motionDurationSlow:Ge,fontSize:Et,borderRadius:It,bodyBg:en,headerBg:Zt,siderBg:rt}=ie;return{[ve]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:en,"&, *":{boxSizing:"border-box"},[`&${ve}-has-sider`]:{flexDirection:"row",[`> ${ve}, > ${ve}-content`]:{width:0}},[`${ve}-header, &${ve}-footer`]:{flex:"0 0 auto"},[`${ve}-sider`]:{position:"relative",minWidth:0,background:rt,transition:`all ${ke}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ue}-menu${ue}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Me},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Me,color:Le,lineHeight:`${Me}px`,textAlign:"center",background:Ne,cursor:"pointer",transition:`all ${ke}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-Re,zIndex:1,width:Re,height:Be,color:Le,fontSize:ie.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:rt,borderStartStartRadius:0,borderStartEndRadius:It,borderEndEndRadius:It,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ge} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ge}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Re,borderStartStartRadius:It,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:It}}}}},de(ie)),{"&-rtl":{direction:"rtl"}}),[`${ve}-header`]:{height:xe,padding:st,color:Ye,lineHeight:`${xe}px`,background:Zt,[`${ue}-menu`]:{lineHeight:"inherit"}},[`${ve}-footer`]:{padding:lt,color:Se,fontSize:Et,background:we},[`${ve}-content`]:{flex:"auto",minHeight:0}}};var le=(0,ae.Z)("Layout",ie=>[ge(ie)],ie=>{const{colorBgLayout:ue,controlHeight:ve,controlHeightLG:Se,colorText:Le,controlHeightSM:we,marginXXS:Ne,colorTextLightSolid:xe,colorBgContainer:st}=ie,Ye=Se*1.25;return{colorBgHeader:"#001529",colorBgBody:ue,colorBgTrigger:"#002140",bodyBg:ue,headerBg:"#001529",headerHeight:ve*2,headerPadding:`0 ${Ye}px`,headerColor:Le,footerPadding:`${we}px ${Ye}px`,footerBg:ue,siderBg:"#001529",triggerHeight:Se+Ne*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:Se,zeroTriggerHeight:Se,lightSiderBg:st,lightTriggerBg:st,lightTriggerColor:Le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),he=function(ie,ue){var ve={};for(var Se in ie)Object.prototype.hasOwnProperty.call(ie,Se)&&ue.indexOf(Se)<0&&(ve[Se]=ie[Se]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Se=Object.getOwnPropertySymbols(ie);Le<Se.length;Le++)ue.indexOf(Se[Le])<0&&Object.prototype.propertyIsEnumerable.call(ie,Se[Le])&&(ve[Se[Le]]=ie[Se[Le]]);return ve};const re=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(ie){let{suffixCls:ue,tagName:ve,displayName:Se}=ie;return Le=>ce.forwardRef((Ne,xe)=>ce.createElement(Le,Object.assign({ref:xe,suffixCls:ue,tagName:ve},Ne)))}const y=ce.forwardRef((ie,ue)=>{const{prefixCls:ve,suffixCls:Se,className:Le,tagName:we}=ie,Ne=he(ie,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=ce.useContext(pe.E_),st=xe("layout",ve),[Ye,lt]=le(st),Me=Se?`${st}-${Se}`:st;return Ye(ce.createElement(we,Object.assign({className:be()(ve||Me,Le,lt),ref:ue},Ne)))}),a=ce.forwardRef((ie,ue)=>{const{direction:ve}=ce.useContext(pe.E_),[Se,Le]=ce.useState([]),{prefixCls:we,className:Ne,rootClassName:xe,children:st,hasSider:Ye,tagName:lt,style:Me}=ie,Be=he(ie,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Re=(0,_e.Z)(Be,["suffixCls"]),{getPrefixCls:ke,layout:Ge}=ce.useContext(pe.E_),Et=ke("layout",we),[It,en]=le(Et),Zt=be()(Et,{[`${Et}-has-sider`]:typeof Ye=="boolean"?Ye:Se.length>0,[`${Et}-rtl`]:ve==="rtl"},Ge==null?void 0:Ge.className,Ne,xe,en),rt=ce.useMemo(()=>({siderHook:{addSider:at=>{Le(Ct=>[].concat((0,te.Z)(Ct),[at]))},removeSider:at=>{Le(Ct=>Ct.filter(qt=>qt!==at))}}}),[]);return It(ce.createElement(re.Provider,{value:rt},ce.createElement(lt,Object.assign({ref:ue,className:Zt,style:Object.assign(Object.assign({},Ge==null?void 0:Ge.style),Me)},Re),st)))}),E=ne({tagName:"div",displayName:"Layout"})(a),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(y),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var oe=E},76529:function(ot,Ze,ee){"use strict";ee.d(Ze,{J:function(){return pe}});var te=ee(67294),fe=ee(4173),be=ee(60276),_e=function(ae,me){var de={};for(var ge in ae)Object.prototype.hasOwnProperty.call(ae,ge)&&me.indexOf(ge)<0&&(de[ge]=ae[ge]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ge=Object.getOwnPropertySymbols(ae);le<ge.length;le++)me.indexOf(ge[le])<0&&Object.prototype.propertyIsEnumerable.call(ae,ge[le])&&(de[ge[le]]=ae[ge[le]]);return de};const ce=te.createContext(null),pe=te.forwardRef((ae,me)=>{const{children:de}=ae,ge=_e(ae,["children"]),le=te.useContext(ce),he=te.useMemo(()=>Object.assign(Object.assign({},le),ge),[le,ge.prefixCls,ge.mode,ge.selectable]);return te.createElement(ce.Provider,{value:he},te.createElement(fe.BR,null,(0,be.supportNodeRef)(de)?te.cloneElement(de,{ref:me}):de))});Ze.Z=ce},68508:function(ot,Ze,ee){"use strict";ee.d(Ze,{default:function(){return mn}});var te=ee(78595),fe=ee(67294),be=ee(71322),_e=ee(94184),ce=ee.n(_e),pe=ee(53124),ae=function(zt,et){var Xe={};for(var qe in zt)Object.prototype.hasOwnProperty.call(zt,qe)&&et.indexOf(qe)<0&&(Xe[qe]=zt[qe]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,qe=Object.getOwnPropertySymbols(zt);ft<qe.length;ft++)et.indexOf(qe[ft])<0&&Object.prototype.propertyIsEnumerable.call(zt,qe[ft])&&(Xe[qe[ft]]=zt[qe[ft]]);return Xe},de=zt=>{const{prefixCls:et,className:Xe,dashed:qe}=zt,ft=ae(zt,["prefixCls","className","dashed"]),{getPrefixCls:Dt}=fe.useContext(pe.E_),tt=Dt("menu",et),vt=ce()({[`${tt}-item-divider-dashed`]:!!qe},Xe);return fe.createElement(te.iz,Object.assign({className:vt},ft))},ge=ee(37419),le=ee(10366),he=ee(83062),re=ee(96159),y=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=zt=>{var et;const{className:Xe,children:qe,icon:ft,title:Dt,danger:tt}=zt,{prefixCls:vt,firstLevel:bt,direction:Qe,disableMenuItemTitleTooltip:Wt,inlineCollapsed:He}=fe.useContext(y),ut=fn=>{const nr=fe.createElement("span",{className:`${vt}-title-content`},qe);return(!ft||(0,re.l$)(qe)&&qe.type==="span")&&qe&&fn&&bt&&typeof qe=="string"?fe.createElement("div",{className:`${vt}-inline-collapsed-noicon`},qe.charAt(0)):nr},{siderCollapsed:En}=fe.useContext(be.D);let un=Dt;typeof Dt=="undefined"?un=bt?qe:"":Dt===!1&&(un="");const ht={title:un};!En&&!He&&(ht.title=null,ht.open=!1);const sn=(0,ge.Z)(qe).length;let ln=fe.createElement(te.ck,Object.assign({},(0,le.Z)(zt,["title","icon","danger"]),{className:ce()({[`${vt}-item-danger`]:tt,[`${vt}-item-only-child`]:(ft?sn+1:sn)===1},Xe),title:typeof Dt=="string"?Dt:void 0}),(0,re.Tm)(ft,{className:ce()((0,re.l$)(ft)?(et=ft.props)===null||et===void 0?void 0:et.className:"",`${vt}-item-icon`)}),ut(He));return Wt||(ln=fe.createElement(he.Z,Object.assign({},ht,{placement:Qe==="rtl"?"left":"right",overlayClassName:`${vt}-inline-collapsed-tooltip`}),ln)),ln},x=zt=>{var et;const{popupClassName:Xe,icon:qe,title:ft,theme:Dt}=zt,tt=fe.useContext(y),{prefixCls:vt,inlineCollapsed:bt,theme:Qe}=tt,Wt=(0,te.Xl)();let He;if(!qe)He=bt&&!Wt.length&&ft&&typeof ft=="string"?fe.createElement("div",{className:`${vt}-inline-collapsed-noicon`},ft.charAt(0)):fe.createElement("span",{className:`${vt}-title-content`},ft);else{const En=(0,re.l$)(ft)&&ft.type==="span";He=fe.createElement(fe.Fragment,null,(0,re.Tm)(qe,{className:ce()((0,re.l$)(qe)?(et=qe.props)===null||et===void 0?void 0:et.className:"",`${vt}-item-icon`)}),En?ft:fe.createElement("span",{className:`${vt}-title-content`},ft))}const ut=fe.useMemo(()=>Object.assign(Object.assign({},tt),{firstLevel:!1}),[tt]);return fe.createElement(y.Provider,{value:ut},fe.createElement(te.Wd,Object.assign({},(0,le.Z)(zt,["icon"]),{title:He,popupClassName:ce()(vt,Xe,`${vt}-${Dt||Qe}`)})))},z=ee(25877),oe=ee(60276),ie=ee(33603),ue=ee(76529),ve=function(zt,et){var Xe={};for(var qe in zt)Object.prototype.hasOwnProperty.call(zt,qe)&&et.indexOf(qe)<0&&(Xe[qe]=zt[qe]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,qe=Object.getOwnPropertySymbols(zt);ft<qe.length;ft++)et.indexOf(qe[ft])<0&&Object.prototype.propertyIsEnumerable.call(zt,qe[ft])&&(Xe[qe[ft]]=zt[qe[ft]]);return Xe};function Se(zt){return(zt||[]).map((et,Xe)=>{if(et&&typeof et=="object"){const qe=et,{label:ft,children:Dt,key:tt,type:vt}=qe,bt=ve(qe,["label","children","key","type"]),Qe=tt!=null?tt:`tmp-${Xe}`;return Dt||vt==="group"?vt==="group"?fe.createElement(te.BW,Object.assign({key:Qe},bt,{title:ft}),Se(Dt)):fe.createElement(x,Object.assign({key:Qe},bt,{title:ft}),Se(Dt)):vt==="divider"?fe.createElement(de,Object.assign({key:Qe},bt)):fe.createElement(E,Object.assign({key:Qe},bt),ft)}return null}).filter(et=>et)}function Le(zt){return fe.useMemo(()=>zt&&Se(zt),[zt])}var we=ee(84780),Ne=ee(14747),xe=ee(33507),st=ee(67771),Ye=ee(50438),lt=ee(67968),Me=ee(45503),Re=zt=>{const{componentCls:et,motionDurationSlow:Xe,horizontalLineHeight:qe,colorSplit:ft,lineWidth:Dt,lineType:tt,itemPaddingInline:vt}=zt;return{[`${et}-horizontal`]:{lineHeight:qe,border:0,borderBottom:`${Dt}px ${tt} ${ft}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${et}-item, ${et}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:vt},[`> ${et}-item:hover,
> ${et}-item-active,
> ${et}-submenu ${et}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${et}-item, ${et}-submenu-title`]:{transition:[`border-color ${Xe}`,`background ${Xe}`].join(",")},[`${et}-submenu-arrow`]:{display:"none"}}}},Ge=zt=>{let{componentCls:et,menuArrowOffset:Xe}=zt;return{[`${et}-rtl`]:{direction:"rtl"},[`${et}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${et}-rtl${et}-vertical,
${et}-submenu-rtl ${et}-vertical`]:{[`${et}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Xe})`},"&::after":{transform:`rotate(45deg) translateY(${Xe})`}}}}};const Et=zt=>Object.assign({},(0,Ne.oN)(zt));var en=(zt,et)=>{const{componentCls:Xe,itemColor:qe,itemSelectedColor:ft,groupTitleColor:Dt,itemBg:tt,subMenuItemBg:vt,itemSelectedBg:bt,activeBarHeight:Qe,activeBarWidth:Wt,activeBarBorderWidth:He,motionDurationSlow:ut,motionEaseInOut:En,motionEaseOut:un,itemPaddingInline:ht,motionDurationMid:sn,itemHoverColor:ln,lineType:fn,colorSplit:nr,itemDisabledColor:wt,dangerItemColor:xn,dangerItemHoverColor:zn,dangerItemSelectedColor:Gr,dangerItemActiveBg:vr,dangerItemSelectedBg:cr,itemHoverBg:wn,itemActiveBg:jr,menuSubMenuBg:Hr,horizontalItemSelectedColor:mo,horizontalItemSelectedBg:da,horizontalItemBorderRadius:Ro,horizontalItemHoverBg:Jo,popupBg:qo}=zt;return{[`${Xe}-${et}, ${Xe}-${et} > ${Xe}`]:{color:qe,background:tt,[`&${Xe}-root:focus-visible`]:Object.assign({},Et(zt)),[`${Xe}-item-group-title`]:{color:Dt},[`${Xe}-submenu-selected`]:{[`> ${Xe}-submenu-title`]:{color:ft}},[`${Xe}-item-disabled, ${Xe}-submenu-disabled`]:{color:`${wt} !important`},[`${Xe}-item:not(${Xe}-item-selected):not(${Xe}-submenu-selected)`]:{[`&:hover, > ${Xe}-submenu-title:hover`]:{color:ln}},[`&:not(${Xe}-horizontal)`]:{[`${Xe}-item:not(${Xe}-item-selected)`]:{"&:hover":{backgroundColor:wn},"&:active":{backgroundColor:jr}},[`${Xe}-submenu-title`]:{"&:hover":{backgroundColor:wn},"&:active":{backgroundColor:jr}}},[`${Xe}-item-danger`]:{color:xn,[`&${Xe}-item:hover`]:{[`&:not(${Xe}-item-selected):not(${Xe}-submenu-selected)`]:{color:zn}},[`&${Xe}-item:active`]:{background:vr}},[`${Xe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Xe}-item-selected`]:{color:ft,[`&${Xe}-item-danger`]:{color:Gr},"a, a:hover":{color:"inherit"}},[`& ${Xe}-item-selected`]:{backgroundColor:bt,[`&${Xe}-item-danger`]:{backgroundColor:cr}},[`${Xe}-item, ${Xe}-submenu-title`]:{[`&:not(${Xe}-item-disabled):focus-visible`]:Object.assign({},Et(zt))},[`&${Xe}-submenu > ${Xe}`]:{backgroundColor:Hr},[`&${Xe}-popup > ${Xe}`]:{backgroundColor:qo},[`&${Xe}-horizontal`]:Object.assign(Object.assign({},et==="dark"?{borderBottom:0}:{}),{[`> ${Xe}-item, > ${Xe}-submenu`]:{top:He,marginTop:-He,marginBottom:0,borderRadius:Ro,"&::after":{position:"absolute",insetInline:ht,bottom:0,borderBottom:`${Qe}px solid transparent`,transition:`border-color ${ut} ${En}`,content:'""'},"&:hover, &-active, &-open":{background:Jo,"&::after":{borderBottomWidth:Qe,borderBottomColor:mo}},"&-selected":{color:mo,backgroundColor:da,"&:hover":{backgroundColor:da},"&::after":{borderBottomWidth:Qe,borderBottomColor:mo}}}}),[`&${Xe}-root`]:{[`&${Xe}-inline, &${Xe}-vertical`]:{borderInlineEnd:`${He}px ${fn} ${nr}`}},[`&${Xe}-inline`]:{[`${Xe}-sub${Xe}-inline`]:{background:vt},[`${Xe}-item, ${Xe}-submenu-title`]:He&&Wt?{width:`calc(100% + ${He}px)`}:{},[`${Xe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Wt}px solid ${ft}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${sn} ${un}`,`opacity ${sn} ${un}`].join(","),content:'""'},[`&${Xe}-item-danger`]:{"&::after":{borderInlineEndColor:Gr}}},[`${Xe}-selected, ${Xe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${sn} ${En}`,`opacity ${sn} ${En}`].join(",")}}}}}};const Zt=zt=>{const{componentCls:et,itemHeight:Xe,itemMarginInline:qe,padding:ft,menuArrowSize:Dt,marginXS:tt,itemMarginBlock:vt}=zt,bt=ft+Dt+tt;return{[`${et}-item`]:{position:"relative",overflow:"hidden"},[`${et}-item, ${et}-submenu-title`]:{height:Xe,lineHeight:`${Xe}px`,paddingInline:ft,overflow:"hidden",textOverflow:"ellipsis",marginInline:qe,marginBlock:vt,width:`calc(100% - ${qe*2}px)`},[`> ${et}-item,
> ${et}-submenu > ${et}-submenu-title`]:{height:Xe,lineHeight:`${Xe}px`},[`${et}-item-group-list ${et}-submenu-title,
${et}-submenu-title`]:{paddingInlineEnd:bt}}};var at=zt=>{const{componentCls:et,iconCls:Xe,itemHeight:qe,colorTextLightSolid:ft,dropdownWidth:Dt,controlHeightLG:tt,motionDurationMid:vt,motionEaseOut:bt,paddingXL:Qe,itemMarginInline:Wt,fontSizeLG:He,motionDurationSlow:ut,paddingXS:En,boxShadowSecondary:un,collapsedWidth:ht,collapsedIconSize:sn}=zt,ln={height:qe,lineHeight:`${qe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[et]:{"&-inline, &-vertical":Object.assign({[`&${et}-root`]:{boxShadow:"none"}},Zt(zt))},[`${et}-submenu-popup`]:{[`${et}-vertical`]:Object.assign(Object.assign({},Zt(zt)),{boxShadow:un})}},{[`${et}-submenu-popup ${et}-vertical${et}-sub`]:{minWidth:Dt,maxHeight:`calc(100vh - ${tt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${et}-inline`]:{width:"100%",[`&${et}-root`]:{[`${et}-item, ${et}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ut}`,`background ${ut}`,`padding ${vt} ${bt}`].join(","),[`> ${et}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${et}-sub${et}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${et}-submenu > ${et}-submenu-title`]:ln,[`& ${et}-item-group-title`]:{paddingInlineStart:Qe}},[`${et}-item`]:ln}},{[`${et}-inline-collapsed`]:{width:ht,[`&${et}-root`]:{[`${et}-item, ${et}-submenu ${et}-submenu-title`]:{[`> ${et}-inline-collapsed-noicon`]:{fontSize:He,textAlign:"center"}}},[`> ${et}-item,
> ${et}-item-group > ${et}-item-group-list > ${et}-item,
> ${et}-item-group > ${et}-item-group-list > ${et}-submenu > ${et}-submenu-title,
> ${et}-submenu > ${et}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${He/2}px - ${Wt}px)`,textOverflow:"clip",[`
${et}-submenu-arrow,
${et}-submenu-expand-icon
`]:{opacity:0},[`${et}-item-icon, ${Xe}`]:{margin:0,fontSize:sn,lineHeight:`${qe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${et}-item-icon, ${Xe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${et}-item-icon, ${Xe}`]:{display:"none"},"a, a:hover":{color:ft}},[`${et}-item-group-title`]:Object.assign(Object.assign({},Ne.vS),{paddingInline:En})}}]};const Ct=zt=>{const{componentCls:et,motionDurationSlow:Xe,motionDurationMid:qe,motionEaseInOut:ft,motionEaseOut:Dt,iconCls:tt,iconSize:vt,iconMarginInlineEnd:bt}=zt;return{[`${et}-item, ${et}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Xe}`,`background ${Xe}`,`padding ${Xe} ${ft}`].join(","),[`${et}-item-icon, ${tt}`]:{minWidth:vt,fontSize:vt,transition:[`font-size ${qe} ${Dt}`,`margin ${Xe} ${ft}`,`color ${Xe}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${Xe} ${ft}`,`margin ${Xe}`,`color ${Xe}`].join(",")}},[`${et}-item-icon`]:Object.assign({},(0,Ne.Ro)()),[`&${et}-item-only-child`]:{[`> ${tt}, > ${et}-item-icon`]:{marginInlineEnd:0}}},[`${et}-item-disabled, ${et}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${et}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},qt=zt=>{const{componentCls:et,motionDurationSlow:Xe,motionEaseInOut:qe,borderRadius:ft,menuArrowSize:Dt,menuArrowOffset:tt}=zt;return{[`${et}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:zt.margin,width:Dt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Xe} ${qe}, opacity ${Xe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Dt*.6,height:Dt*.15,backgroundColor:"currentcolor",borderRadius:ft,transition:[`background ${Xe} ${qe}`,`transform ${Xe} ${qe}`,`top ${Xe} ${qe}`,`color ${Xe} ${qe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${tt})`},"&::after":{transform:`rotate(-45deg) translateY(${tt})`}}}}},Gt=zt=>{const{antCls:et,componentCls:Xe,fontSize:qe,motionDurationSlow:ft,motionDurationMid:Dt,motionEaseInOut:tt,paddingXS:vt,padding:bt,colorSplit:Qe,lineWidth:Wt,zIndexPopup:He,borderRadiusLG:ut,subMenuItemBorderRadius:En,menuArrowSize:un,menuArrowOffset:ht,lineType:sn,menuPanelMaskInset:ln,groupTitleLineHeight:fn,groupTitleFontSize:nr}=zt;return[{"":{[`${Xe}`]:Object.assign(Object.assign({},(0,Ne.dF)()),{"&-hidden":{display:"none"}})},[`${Xe}-submenu-hidden`]:{display:"none"}},{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ne.Wf)(zt)),(0,Ne.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:qe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ft} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Xe}-item`]:{flex:"none"}},[`${Xe}-item, ${Xe}-submenu, ${Xe}-submenu-title`]:{borderRadius:zt.itemBorderRadius},[`${Xe}-item-group-title`]:{padding:`${vt}px ${bt}px`,fontSize:nr,lineHeight:fn,transition:`all ${ft}`},[`&-horizontal ${Xe}-submenu`]:{transition:[`border-color ${ft} ${tt}`,`background ${ft} ${tt}`].join(",")},[`${Xe}-submenu, ${Xe}-submenu-inline`]:{transition:[`border-color ${ft} ${tt}`,`background ${ft} ${tt}`,`padding ${Dt} ${tt}`].join(",")},[`${Xe}-submenu ${Xe}-sub`]:{cursor:"initial",transition:[`background ${ft} ${tt}`,`padding ${ft} ${tt}`].join(",")},[`${Xe}-title-content`]:{transition:`color ${ft}`},[`${Xe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Xe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Qe,borderStyle:sn,borderWidth:0,borderTopWidth:Wt,marginBlock:Wt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ct(zt)),{[`${Xe}-item-group`]:{[`${Xe}-item-group-list`]:{margin:0,padding:0,[`${Xe}-item, ${Xe}-submenu-title`]:{paddingInline:`${qe*2}px ${bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:He,borderRadius:ut,boxShadow:"none",transformOrigin:"0 0",[`&${Xe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ln}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ln},"\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:zt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:zt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:zt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:zt.paddingXS},[`> ${Xe}`]:Object.assign(Object.assign(Object.assign({borderRadius:ut},Ct(zt)),qt(zt)),{[`${Xe}-item, ${Xe}-submenu > ${Xe}-submenu-title`]:{borderRadius:En},[`${Xe}-submenu-title::after`]:{transition:`transform ${ft} ${tt}`}})}}),qt(zt)),{[`&-inline-collapsed ${Xe}-submenu-arrow,
&-inline ${Xe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ht})`},"&::after":{transform:`rotate(45deg) translateX(-${ht})`}},[`${Xe}-submenu-open${Xe}-submenu-inline > ${Xe}-submenu-title > ${Xe}-submenu-arrow`]:{transform:`translateY(-${un*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ht})`},"&::before":{transform:`rotate(45deg) translateX(${ht})`}}})},{[`${et}-layout-header`]:{[Xe]:{lineHeight:"inherit"}}}]};var xt=(zt,et)=>(0,lt.Z)("Menu",qe=>{if(et===!1)return[];const{colorBgElevated:ft,colorPrimary:Dt,colorTextLightSolid:tt,controlHeightLG:vt,fontSize:bt,darkItemColor:Qe,darkDangerItemColor:Wt,darkItemBg:He,darkSubMenuItemBg:ut,darkItemSelectedColor:En,darkItemSelectedBg:un,darkDangerItemSelectedBg:ht,darkItemHoverBg:sn,darkGroupTitleColor:ln,darkItemHoverColor:fn,darkItemDisabledColor:nr,darkDangerItemHoverColor:wt,darkDangerItemSelectedColor:xn,darkDangerItemActiveBg:zn}=qe,Gr=bt/7*5,vr=(0,Me.TS)(qe,{menuArrowSize:Gr,menuHorizontalHeight:vt*1.15,menuArrowOffset:`${Gr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ft}),cr=(0,Me.TS)(vr,{itemColor:Qe,itemHoverColor:fn,groupTitleColor:ln,itemSelectedColor:En,itemBg:He,popupBg:He,subMenuItemBg:ut,itemActiveBg:"transparent",itemSelectedBg:un,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:sn,itemDisabledColor:nr,dangerItemColor:Wt,dangerItemHoverColor:wt,dangerItemSelectedColor:xn,dangerItemActiveBg:zn,dangerItemSelectedBg:ht,menuSubMenuBg:ut,horizontalItemSelectedColor:tt,horizontalItemSelectedBg:Dt});return[Gt(vr),Re(vr),at(vr),en(vr,"light"),en(cr,"dark"),Ge(vr),(0,xe.Z)(vr),(0,st.oN)(vr,"slide-up"),(0,st.oN)(vr,"slide-down"),(0,Ye._y)(vr,"zoom-big")]},qe=>{const{colorPrimary:ft,colorError:Dt,colorTextDisabled:tt,colorErrorBg:vt,colorText:bt,colorTextDescription:Qe,colorBgContainer:Wt,colorFillAlter:He,colorFillContent:ut,lineWidth:En,lineWidthBold:un,controlItemBgActive:ht,colorBgTextHover:sn,controlHeightLG:ln,lineHeight:fn,colorBgElevated:nr,marginXXS:wt,padding:xn,fontSize:zn,controlHeightSM:Gr,fontSizeLG:vr,colorTextLightSolid:cr,colorErrorHover:wn}=qe,jr=new we.C(cr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:qe.zIndexPopupBase+50,radiusItem:qe.borderRadiusLG,itemBorderRadius:qe.borderRadiusLG,radiusSubMenuItem:qe.borderRadiusSM,subMenuItemBorderRadius:qe.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:ft,horizontalItemHoverColor:ft,colorGroupTitle:Qe,groupTitleColor:Qe,colorItemTextSelected:ft,itemSelectedColor:ft,colorItemTextSelectedHorizontal:ft,horizontalItemSelectedColor:ft,colorItemBg:Wt,itemBg:Wt,colorItemBgHover:sn,itemHoverBg:sn,colorItemBgActive:ut,itemActiveBg:ht,colorSubItemBg:He,subMenuItemBg:He,colorItemBgSelected:ht,itemSelectedBg:ht,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:un,activeBarHeight:un,colorActiveBarBorderSize:En,activeBarBorderWidth:En,colorItemTextDisabled:tt,itemDisabledColor:tt,colorDangerItemText:Dt,dangerItemColor:Dt,colorDangerItemTextHover:Dt,dangerItemHoverColor:Dt,colorDangerItemTextSelected:Dt,dangerItemSelectedColor:Dt,colorDangerItemBgActive:vt,dangerItemActiveBg:vt,colorDangerItemBgSelected:vt,dangerItemSelectedBg:vt,itemMarginInline:qe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ln,groupTitleLineHeight:fn,collapsedWidth:ln*2,popupBg:nr,itemMarginBlock:wt,itemPaddingInline:xn,horizontalLineHeight:`${ln*1.15}px`,iconSize:zn,iconMarginInlineEnd:Gr-zn,collapsedIconSize:vr,groupTitleFontSize:zn,darkItemDisabledColor:new we.C(cr).setAlpha(.25).toRgbString(),darkItemColor:jr,darkDangerItemColor:Dt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:cr,darkItemSelectedBg:ft,darkDangerItemSelectedBg:Dt,darkItemHoverBg:"transparent",darkGroupTitleColor:jr,darkItemHoverColor:cr,darkDangerItemHoverColor:wn,darkDangerItemSelectedColor:cr,darkDangerItemActiveBg:Dt}},{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"]]})(zt),Ve=function(zt,et){var Xe={};for(var qe in zt)Object.prototype.hasOwnProperty.call(zt,qe)&&et.indexOf(qe)<0&&(Xe[qe]=zt[qe]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,qe=Object.getOwnPropertySymbols(zt);ft<qe.length;ft++)et.indexOf(qe[ft])<0&&Object.prototype.propertyIsEnumerable.call(zt,qe[ft])&&(Xe[qe[ft]]=zt[qe[ft]]);return Xe},Ln=(0,fe.forwardRef)((zt,et)=>{var Xe,qe;const ft=fe.useContext(ue.Z),Dt=ft||{},{getPrefixCls:tt,getPopupContainer:vt,direction:bt,menu:Qe}=fe.useContext(pe.E_),Wt=tt(),{prefixCls:He,className:ut,style:En,theme:un="light",expandIcon:ht,_internalDisableMenuItemTitleTooltip:sn,inlineCollapsed:ln,siderCollapsed:fn,items:nr,children:wt,rootClassName:xn,mode:zn,selectable:Gr,onClick:vr,overflowedIndicatorPopupClassName:cr}=zt,wn=Ve(zt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),jr=(0,le.Z)(wn,["collapsedWidth"]),Hr=Le(nr)||wt;(Xe=Dt.validator)===null||Xe===void 0||Xe.call(Dt,{mode:zn});const mo=(0,oe.useEvent)(function(){var Lr;vr==null||vr.apply(void 0,arguments),(Lr=Dt.onClick)===null||Lr===void 0||Lr.call(Dt)}),da=Dt.mode||zn,Ro=Gr!=null?Gr:Dt.selectable,Jo=fe.useMemo(()=>fn!==void 0?fn:ln,[ln,fn]),qo={horizontal:{motionName:`${Wt}-slide-up`},inline:(0,ie.Z)(Wt),other:{motionName:`${Wt}-zoom-big`}},ur=tt("menu",He||Dt.prefixCls),[$r,zr]=xt(ur,!ft),To=ce()(`${ur}-${un}`,Qe==null?void 0:Qe.className,ut);let Fo;if(typeof ht=="function")Fo=ht;else if(ht===null||ht===!1)Fo=null;else if(Dt.expandIcon===null||Dt.expandIcon===!1)Fo=null;else{const Lr=ht!=null?ht:Dt.expandIcon;Fo=(0,re.Tm)(Lr,{className:ce()(`${ur}-submenu-expand-icon`,(0,re.l$)(Lr)?(qe=Lr.props)===null||qe===void 0?void 0:qe.className:"")})}const po=fe.useMemo(()=>({prefixCls:ur,inlineCollapsed:Jo||!1,direction:bt,firstLevel:!0,theme:un,mode:da,disableMenuItemTitleTooltip:sn}),[ur,Jo,bt,sn,un]);return $r(fe.createElement(ue.Z.Provider,{value:null},fe.createElement(y.Provider,{value:po},fe.createElement(te.ZP,Object.assign({getPopupContainer:vt,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(ur,`${ur}-${un}`,cr),mode:da,selectable:Ro,onClick:mo},jr,{inlineCollapsed:Jo,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),En),className:To,prefixCls:ur,direction:bt,defaultMotions:qo,expandIcon:Fo,ref:et,rootClassName:ce()(xn,zr)}),Hr))))});const Hn=(0,fe.forwardRef)((zt,et)=>{const Xe=(0,fe.useRef)(null),qe=fe.useContext(be.D);return(0,fe.useImperativeHandle)(et,()=>({menu:Xe.current,focus:ft=>{var Dt;(Dt=Xe.current)===null||Dt===void 0||Dt.focus(ft)}})),fe.createElement(Ln,Object.assign({ref:Xe},zt,qe))});Hn.Item=E,Hn.SubMenu=x,Hn.Divider=de,Hn.ItemGroup=te.BW;var mn=Hn},28452:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return Wt}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(ut,En){return fe.createElement(ce.Z,(0,te.Z)({},ut,{ref:En,icon:_e}))},ae=fe.forwardRef(pe),me=ee(81893),de=ee(22751),ge=ee(91034),le=ee(94184),he=ee.n(le),re=ee(4942),ne=ee(1413),y=ee(15671),a=ee(43144),E=ee(60136),b=ee(51630),x=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,z=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,oe="".concat(x," ").concat(z).split(/[\s\n]+/),ie="aria-",ue="data-";function ve(He,ut){return He.indexOf(ut)===0}function Se(He){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,En;ut===!1?En={aria:!0,data:!0,attr:!0}:ut===!0?En={aria:!0}:En=(0,ne.Z)({},ut);var un={};return Object.keys(He).forEach(function(ht){(En.aria&&(ht==="role"||ve(ht,ie))||En.data&&ve(ht,ue)||En.attr&&oe.includes(ht))&&(un[ht]=He[ht])}),un}var Le={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},we=Le,Ne=ee(81626),xe=function(He){(0,E.Z)(En,He);var ut=(0,b.Z)(En);function En(){var un;(0,y.Z)(this,En);for(var ht=arguments.length,sn=new Array(ht),ln=0;ln<ht;ln++)sn[ln]=arguments[ln];return un=ut.call.apply(ut,[this].concat(sn)),un.state={goInputText:""},un.getValidValue=function(){var fn=un.state.goInputText;return!fn||Number.isNaN(fn)?void 0:Number(fn)},un.buildOptionText=function(fn){return"".concat(fn," ").concat(un.props.locale.items_per_page)},un.changeSize=function(fn){un.props.changeSize(Number(fn))},un.handleChange=function(fn){un.setState({goInputText:fn.target.value})},un.handleBlur=function(fn){var nr=un.props,wt=nr.goButton,xn=nr.quickGo,zn=nr.rootPrefixCls,Gr=un.state.goInputText;wt||Gr===""||(un.setState({goInputText:""}),!(fn.relatedTarget&&(fn.relatedTarget.className.indexOf("".concat(zn,"-item-link"))>=0||fn.relatedTarget.className.indexOf("".concat(zn,"-item"))>=0))&&xn(un.getValidValue()))},un.go=function(fn){var nr=un.state.goInputText;nr!==""&&(fn.keyCode===we.ENTER||fn.type==="click")&&(un.setState({goInputText:""}),un.props.quickGo(un.getValidValue()))},un}return(0,a.Z)(En,[{key:"getPageSizeOptions",value:function(){var ht=this.props,sn=ht.pageSize,ln=ht.pageSizeOptions;return ln.some(function(fn){return fn.toString()===sn.toString()})?ln:ln.concat([sn.toString()]).sort(function(fn,nr){var wt=Number.isNaN(Number(fn))?0:Number(fn),xn=Number.isNaN(Number(nr))?0:Number(nr);return wt-xn})}},{key:"render",value:function(){var ht=this,sn=this.props,ln=sn.pageSize,fn=sn.locale,nr=sn.rootPrefixCls,wt=sn.changeSize,xn=sn.quickGo,zn=sn.goButton,Gr=sn.selectComponentClass,vr=sn.buildOptionText,cr=sn.selectPrefixCls,wn=sn.disabled,jr=this.state.goInputText,Hr="".concat(nr,"-options"),mo=Gr,da=null,Ro=null,Jo=null;if(!wt&&!xn)return null;var qo=this.getPageSizeOptions();if(wt&&mo){var ur=qo.map(function($r,zr){return fe.createElement(mo.Option,{key:zr,value:$r.toString()},(vr||ht.buildOptionText)($r))});da=fe.createElement(mo,{disabled:wn,prefixCls:cr,showSearch:!1,className:"".concat(Hr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(ln||qo[0]).toString(),onChange:this.changeSize,getPopupContainer:function(zr){return zr.parentNode},"aria-label":fn.page_size,defaultOpen:!1},ur)}return xn&&(zn&&(Jo=typeof zn=="boolean"?fe.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:wn,className:"".concat(Hr,"-quick-jumper-button")},fn.jump_to_confirm):fe.createElement("span",{onClick:this.go,onKeyUp:this.go},zn)),Ro=fe.createElement("div",{className:"".concat(Hr,"-quick-jumper")},fn.jump_to,fe.createElement("input",{disabled:wn,type:"text",value:jr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":fn.page}),fn.page,Jo)),fe.createElement("li",{className:"".concat(Hr)},da,Ro)}}]),En}(fe.Component);xe.defaultProps={pageSizeOptions:["10","20","50","100"]};var st=xe,Ye=function(ut){var En,un=ut.rootPrefixCls,ht=ut.page,sn=ut.active,ln=ut.className,fn=ut.showTitle,nr=ut.onClick,wt=ut.onKeyPress,xn=ut.itemRender,zn="".concat(un,"-item"),Gr=he()(zn,"".concat(zn,"-").concat(ht),(En={},(0,re.Z)(En,"".concat(zn,"-active"),sn),(0,re.Z)(En,"".concat(zn,"-disabled"),!ht),(0,re.Z)(En,ut.className,ln),En)),vr=function(){nr(ht)},cr=function(Hr){wt(Hr,nr,ht)},wn=xn(ht,"page",fe.createElement("a",{rel:"nofollow"},ht));return wn?fe.createElement("li",{title:fn?ht.toString():null,className:Gr,onClick:vr,onKeyPress:cr,tabIndex:0},wn):null},lt=Ye;function Me(){}function Be(He){var ut=Number(He);return typeof ut=="number"&&!Number.isNaN(ut)&&isFinite(ut)&&Math.floor(ut)===ut}var Re=function(ut,En,un){return un};function ke(He,ut,En){var un=typeof He=="undefined"?ut.pageSize:He;return Math.floor((En.total-1)/un)+1}var Ge=function(He){(0,E.Z)(En,He);var ut=(0,b.Z)(En);function En(un){var ht;(0,y.Z)(this,En),ht=ut.call(this,un),ht.paginationNode=fe.createRef(),ht.getJumpPrevPage=function(){return Math.max(1,ht.state.current-(ht.props.showLessItems?3:5))},ht.getJumpNextPage=function(){return Math.min(ke(void 0,ht.state,ht.props),ht.state.current+(ht.props.showLessItems?3:5))},ht.getItemIcon=function(wt,xn){var zn=ht.props.prefixCls,Gr=wt||fe.createElement("button",{type:"button","aria-label":xn,className:"".concat(zn,"-item-link")});return typeof wt=="function"&&(Gr=fe.createElement(wt,(0,ne.Z)({},ht.props))),Gr},ht.isValid=function(wt){var xn=ht.props.total;return Be(wt)&&wt!==ht.state.current&&Be(xn)&&xn>0},ht.shouldDisplayQuickJumper=function(){var wt=ht.props,xn=wt.showQuickJumper,zn=wt.total,Gr=ht.state.pageSize;return zn<=Gr?!1:xn},ht.handleKeyDown=function(wt){(wt.keyCode===we.ARROW_UP||wt.keyCode===we.ARROW_DOWN)&&wt.preventDefault()},ht.handleKeyUp=function(wt){var xn=ht.getValidValue(wt),zn=ht.state.currentInputValue;xn!==zn&&ht.setState({currentInputValue:xn}),wt.keyCode===we.ENTER?ht.handleChange(xn):wt.keyCode===we.ARROW_UP?ht.handleChange(xn-1):wt.keyCode===we.ARROW_DOWN&&ht.handleChange(xn+1)},ht.handleBlur=function(wt){var xn=ht.getValidValue(wt);ht.handleChange(xn)},ht.changePageSize=function(wt){var xn=ht.state.current,zn=ke(wt,ht.state,ht.props);xn=xn>zn?zn:xn,zn===0&&(xn=ht.state.current),typeof wt=="number"&&("pageSize"in ht.props||ht.setState({pageSize:wt}),"current"in ht.props||ht.setState({current:xn,currentInputValue:xn})),ht.props.onShowSizeChange(xn,wt),"onChange"in ht.props&&ht.props.onChange&&ht.props.onChange(xn,wt)},ht.handleChange=function(wt){var xn=ht.props,zn=xn.disabled,Gr=xn.onChange,vr=ht.state,cr=vr.pageSize,wn=vr.current,jr=vr.currentInputValue;if(ht.isValid(wt)&&!zn){var Hr=ke(void 0,ht.state,ht.props),mo=wt;return wt>Hr?mo=Hr:wt<1&&(mo=1),"current"in ht.props||ht.setState({current:mo}),mo!==jr&&ht.setState({currentInputValue:mo}),Gr(mo,cr),mo}return wn},ht.prev=function(){ht.hasPrev()&&ht.handleChange(ht.state.current-1)},ht.next=function(){ht.hasNext()&&ht.handleChange(ht.state.current+1)},ht.jumpPrev=function(){ht.handleChange(ht.getJumpPrevPage())},ht.jumpNext=function(){ht.handleChange(ht.getJumpNextPage())},ht.hasPrev=function(){return ht.state.current>1},ht.hasNext=function(){return ht.state.current<ke(void 0,ht.state,ht.props)},ht.runIfEnter=function(wt,xn){if(wt.key==="Enter"||wt.charCode===13){for(var zn=arguments.length,Gr=new Array(zn>2?zn-2:0),vr=2;vr<zn;vr++)Gr[vr-2]=arguments[vr];xn.apply(void 0,Gr)}},ht.runIfEnterPrev=function(wt){ht.runIfEnter(wt,ht.prev)},ht.runIfEnterNext=function(wt){ht.runIfEnter(wt,ht.next)},ht.runIfEnterJumpPrev=function(wt){ht.runIfEnter(wt,ht.jumpPrev)},ht.runIfEnterJumpNext=function(wt){ht.runIfEnter(wt,ht.jumpNext)},ht.handleGoTO=function(wt){(wt.keyCode===we.ENTER||wt.type==="click")&&ht.handleChange(ht.state.currentInputValue)},ht.renderPrev=function(wt){var xn=ht.props,zn=xn.prevIcon,Gr=xn.itemRender,vr=Gr(wt,"prev",ht.getItemIcon(zn,"prev page")),cr=!ht.hasPrev();return(0,fe.isValidElement)(vr)?(0,fe.cloneElement)(vr,{disabled:cr}):vr},ht.renderNext=function(wt){var xn=ht.props,zn=xn.nextIcon,Gr=xn.itemRender,vr=Gr(wt,"next",ht.getItemIcon(zn,"next page")),cr=!ht.hasNext();return(0,fe.isValidElement)(vr)?(0,fe.cloneElement)(vr,{disabled:cr}):vr};var sn=un.onChange!==Me,ln="current"in un;ln&&!sn&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var fn=un.defaultCurrent;"current"in un&&(fn=un.current);var nr=un.defaultPageSize;return"pageSize"in un&&(nr=un.pageSize),fn=Math.min(fn,ke(nr,void 0,un)),ht.state={current:fn,currentInputValue:fn,pageSize:nr},ht}return(0,a.Z)(En,[{key:"componentDidUpdate",value:function(ht,sn){var ln=this.props.prefixCls;if(sn.current!==this.state.current&&this.paginationNode.current){var fn=this.paginationNode.current.querySelector(".".concat(ln,"-item-").concat(sn.current));if(fn&&document.activeElement===fn){var nr;fn==null||(nr=fn.blur)===null||nr===void 0||nr.call(fn)}}}},{key:"getValidValue",value:function(ht){var sn=ht.target.value,ln=ke(void 0,this.state,this.props),fn=this.state.currentInputValue,nr;return sn===""?nr=sn:Number.isNaN(Number(sn))?nr=fn:sn>=ln?nr=ln:nr=Number(sn),nr}},{key:"getShowSizeChanger",value:function(){var ht=this.props,sn=ht.showSizeChanger,ln=ht.total,fn=ht.totalBoundaryShowSizeChanger;return typeof sn!="undefined"?sn:ln>fn}},{key:"render",value:function(){var ht=this.props,sn=ht.prefixCls,ln=ht.className,fn=ht.style,nr=ht.disabled,wt=ht.hideOnSinglePage,xn=ht.total,zn=ht.locale,Gr=ht.showQuickJumper,vr=ht.showLessItems,cr=ht.showTitle,wn=ht.showTotal,jr=ht.simple,Hr=ht.itemRender,mo=ht.showPrevNextJumpers,da=ht.jumpPrevIcon,Ro=ht.jumpNextIcon,Jo=ht.selectComponentClass,qo=ht.selectPrefixCls,ur=ht.pageSizeOptions,$r=this.state,zr=$r.current,To=$r.pageSize,Fo=$r.currentInputValue;if(wt===!0&&xn<=To)return null;var po=ke(void 0,this.state,this.props),Lr=[],vo=null,hn=null,se=null,ye=null,Pe=null,Ae=Gr&&Gr.goButton,Oe=vr?1:2,Je=zr-1>0?zr-1:0,pt=zr+1<po?zr+1:po,gn=Se(this.props,{aria:!0,data:!0}),$t=wn&&fe.createElement("li",{className:"".concat(sn,"-total-text")},wn(xn,[xn===0?0:(zr-1)*To+1,zr*To>xn?xn:zr*To]));if(jr){Ae&&(typeof Ae=="boolean"?Pe=fe.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},zn.jump_to_confirm):Pe=fe.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Ae),Pe=fe.createElement("li",{title:cr?"".concat(zn.jump_to).concat(zr,"/").concat(po):null,className:"".concat(sn,"-simple-pager")},Pe));var Bn=this.renderPrev(Je);return fe.createElement("ul",(0,te.Z)({className:he()(sn,"".concat(sn,"-simple"),(0,re.Z)({},"".concat(sn,"-disabled"),nr),ln),style:fn,ref:this.paginationNode},gn),$t,Bn?fe.createElement("li",{title:cr?zn.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:he()("".concat(sn,"-prev"),(0,re.Z)({},"".concat(sn,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Bn):null,fe.createElement("li",{title:cr?"".concat(zr,"/").concat(po):null,className:"".concat(sn,"-simple-pager")},fe.createElement("input",{type:"text",value:Fo,disabled:nr,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),fe.createElement("span",{className:"".concat(sn,"-slash")},"/"),po),fe.createElement("li",{title:cr?zn.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:he()("".concat(sn,"-next"),(0,re.Z)({},"".concat(sn,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(pt)),Pe)}if(po<=3+Oe*2){var hr={locale:zn,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:cr,itemRender:Hr};po||Lr.push(fe.createElement(lt,(0,te.Z)({},hr,{key:"noPager",page:1,className:"".concat(sn,"-item-disabled")})));for(var gr=1;gr<=po;gr+=1){var Nt=zr===gr;Lr.push(fe.createElement(lt,(0,te.Z)({},hr,{key:gr,page:gr,active:Nt})))}}else{var Wn=vr?zn.prev_3:zn.prev_5,qn=vr?zn.next_3:zn.next_5,Sn=Hr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(da,"prev page")),Mn=Hr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ro,"next page"));mo&&(vo=Sn?fe.createElement("li",{title:cr?Wn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:he()("".concat(sn,"-jump-prev"),(0,re.Z)({},"".concat(sn,"-jump-prev-custom-icon"),!!da))},Sn):null,hn=Mn?fe.createElement("li",{title:cr?qn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:he()("".concat(sn,"-jump-next"),(0,re.Z)({},"".concat(sn,"-jump-next-custom-icon"),!!Ro))},Mn):null),ye=fe.createElement(lt,{locale:zn,last:!0,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:po,page:po,active:!1,showTitle:cr,itemRender:Hr}),se=fe.createElement(lt,{locale:zn,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:cr,itemRender:Hr});var Xn=Math.max(1,zr-Oe),Pr=Math.min(zr+Oe,po);zr-1<=Oe&&(Pr=1+Oe*2),po-zr<=Oe&&(Xn=po-Oe*2);for(var ar=Xn;ar<=Pr;ar+=1){var ga=zr===ar;Lr.push(fe.createElement(lt,{locale:zn,rootPrefixCls:sn,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ar,page:ar,active:ga,showTitle:cr,itemRender:Hr}))}zr-1>=Oe*2&&zr!==3&&(Lr[0]=(0,fe.cloneElement)(Lr[0],{className:"".concat(sn,"-item-after-jump-prev")}),Lr.unshift(vo)),po-zr>=Oe*2&&zr!==po-2&&(Lr[Lr.length-1]=(0,fe.cloneElement)(Lr[Lr.length-1],{className:"".concat(sn,"-item-before-jump-next")}),Lr.push(hn)),Xn!==1&&Lr.unshift(se),Pr!==po&&Lr.push(ye)}var bo=!this.hasPrev()||!po,fr=!this.hasNext()||!po,Qr=this.renderPrev(Je),ko=this.renderNext(pt);return fe.createElement("ul",(0,te.Z)({className:he()(sn,ln,(0,re.Z)({},"".concat(sn,"-disabled"),nr)),style:fn,ref:this.paginationNode},gn),$t,Qr?fe.createElement("li",{title:cr?zn.prev_page:null,onClick:this.prev,tabIndex:bo?null:0,onKeyPress:this.runIfEnterPrev,className:he()("".concat(sn,"-prev"),(0,re.Z)({},"".concat(sn,"-disabled"),bo)),"aria-disabled":bo},Qr):null,Lr,ko?fe.createElement("li",{title:cr?zn.next_page:null,onClick:this.next,tabIndex:fr?null:0,onKeyPress:this.runIfEnterNext,className:he()("".concat(sn,"-next"),(0,re.Z)({},"".concat(sn,"-disabled"),fr)),"aria-disabled":fr},ko):null,fe.createElement(st,{disabled:nr,locale:zn,rootPrefixCls:sn,selectComponentClass:Jo,selectPrefixCls:qo,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:zr,pageSize:To,pageSizeOptions:ur,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Ae}))}}],[{key:"getDerivedStateFromProps",value:function(ht,sn){var ln={};if("current"in ht&&(ln.current=ht.current,ht.current!==sn.current&&(ln.currentInputValue=ln.current)),"pageSize"in ht&&ht.pageSize!==sn.pageSize){var fn=sn.current,nr=ke(ht.pageSize,sn,ht);fn=fn>nr?nr:fn,"current"in ht||(ln.current=fn,ln.currentInputValue=fn),ln.pageSize=ht.pageSize}return ln}}]),En}(fe.Component);Ge.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Me,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Me,locale:Ne.Z,style:{},itemRender:Re,totalBoundaryShowSizeChanger:50};var Et=Ge,It=ee(62906),en=ee(53124),Zt=ee(98675),rt=ee(25378),at=ee(10110),Ct=ee(11713);const qt=He=>fe.createElement(Ct.default,Object.assign({},He,{showSearch:!0,size:"small"})),Gt=He=>fe.createElement(Ct.default,Object.assign({},He,{showSearch:!0,size:"middle"}));qt.Option=Ct.default.Option,Gt.Option=Ct.default.Option;var xt=ee(47673),Ve=ee(14747),Qt=ee(67968),Ln=ee(45503);const Hn=He=>{const{componentCls:ut}=He;return{[`${ut}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ut}-item-link`]:{color:He.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ut}-item-link`]:{color:He.colorTextDisabled,cursor:"not-allowed"}}},[`&${ut}-disabled`]:{cursor:"not-allowed",[`${ut}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:He.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:He.colorBorder,backgroundColor:He.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:He.itemActiveBgDisabled},a:{color:He.itemActiveColorDisabled}}},[`${ut}-item-link`]:{color:He.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ut}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ut}-simple-pager`]:{color:He.colorTextDisabled},[`${ut}-jump-prev, ${ut}-jump-next`]:{[`${ut}-item-link-icon`]:{opacity:0},[`${ut}-item-ellipsis`]:{opacity:1}}},[`&${ut}-simple`]:{[`${ut}-prev, ${ut}-next`]:{[`&${ut}-disabled ${ut}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},mn=He=>{const{componentCls:ut}=He;return{[`&${ut}-mini ${ut}-total-text, &${ut}-mini ${ut}-simple-pager`]:{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`},[`&${ut}-mini ${ut}-item`]:{minWidth:He.itemSizeSM,height:He.itemSizeSM,margin:0,lineHeight:`${He.itemSizeSM-2}px`},[`&${ut}-mini:not(${ut}-disabled) ${ut}-item:not(${ut}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:He.colorBgTextHover},"&:active":{backgroundColor:He.colorBgTextActive}},[`&${ut}-mini ${ut}-prev, &${ut}-mini ${ut}-next`]:{minWidth:He.itemSizeSM,height:He.itemSizeSM,margin:0,lineHeight:`${He.itemSizeSM}px`},[`&${ut}-mini:not(${ut}-disabled)`]:{[`${ut}-prev, ${ut}-next`]:{[`&:hover ${ut}-item-link`]:{backgroundColor:He.colorBgTextHover},[`&:active ${ut}-item-link`]:{backgroundColor:He.colorBgTextActive},[`&${ut}-disabled:hover ${ut}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ut}-mini ${ut}-prev ${ut}-item-link,
&${ut}-mini ${ut}-next ${ut}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`}},[`&${ut}-mini ${ut}-jump-prev, &${ut}-mini ${ut}-jump-next`]:{height:He.itemSizeSM,marginInlineEnd:0,lineHeight:`${He.itemSizeSM}px`},[`&${ut}-mini ${ut}-options`]:{marginInlineStart:He.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:He.miniOptionsSizeChangerTop},"&-quick-jumper":{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,xt.x0)(He)),{width:He.paginationMiniQuickJumperInputWidth,height:He.controlHeightSM})}}}},zt=He=>{const{componentCls:ut}=He;return{[`
&${ut}-simple ${ut}-prev,
&${ut}-simple ${ut}-next
`]:{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`,verticalAlign:"top",[`${ut}-item-link`]:{height:He.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:He.colorBgTextHover},"&:active":{backgroundColor:He.colorBgTextActive},"&::after":{height:He.itemSizeSM,lineHeight:`${He.itemSizeSM}px`}}},[`&${ut}-simple ${ut}-simple-pager`]:{display:"inline-block",height:He.itemSizeSM,marginInlineEnd:He.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:He.marginXS,padding:`0 ${He.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:He.itemInputBg,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,borderRadius:He.borderRadius,outline:"none",transition:`border-color ${He.motionDurationMid}`,color:"inherit","&:hover":{borderColor:He.colorPrimary},"&:focus":{borderColor:He.colorPrimaryHover,boxShadow:`${He.inputOutlineOffset}px 0 ${He.controlOutlineWidth}px ${He.controlOutline}`},"&[disabled]":{color:He.colorTextDisabled,backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,cursor:"not-allowed"}}}}},et=He=>{const{componentCls:ut}=He;return{[`${ut}-jump-prev, ${ut}-jump-next`]:{outline:0,[`${ut}-item-container`]:{position:"relative",[`${ut}-item-link-icon`]:{color:He.colorPrimary,fontSize:He.fontSizeSM,opacity:0,transition:`all ${He.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ut}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:He.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:He.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:He.paginationEllipsisTextIndent,opacity:1,transition:`all ${He.motionDurationMid}`}},"&:hover":{[`${ut}-item-link-icon`]:{opacity:1},[`${ut}-item-ellipsis`]:{opacity:0}}},[`
${ut}-prev,
${ut}-jump-prev,
${ut}-jump-next
`]:{marginInlineEnd:He.marginXS},[`
${ut}-prev,
${ut}-next,
${ut}-jump-prev,
${ut}-jump-next
`]:{display:"inline-block",minWidth:He.itemSize,height:He.itemSize,color:He.colorText,fontFamily:He.fontFamily,lineHeight:`${He.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:He.borderRadius,cursor:"pointer",transition:`all ${He.motionDurationMid}`},[`${ut}-prev, ${ut}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:He.colorText,cursor:"pointer",userSelect:"none"},[`${ut}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:He.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${He.lineWidth}px ${He.lineType} transparent`,borderRadius:He.borderRadius,outline:"none",transition:`all ${He.motionDurationMid}`},[`&:hover ${ut}-item-link`]:{backgroundColor:He.colorBgTextHover},[`&:active ${ut}-item-link`]:{backgroundColor:He.colorBgTextActive},[`&${ut}-disabled:hover`]:{[`${ut}-item-link`]:{backgroundColor:"transparent"}}},[`${ut}-slash`]:{marginInlineEnd:He.paginationSlashMarginInlineEnd,marginInlineStart:He.paginationSlashMarginInlineStart},[`${ut}-options`]:{display:"inline-block",marginInlineStart:He.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:He.controlHeight,marginInlineStart:He.marginXS,lineHeight:`${He.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,xt.ik)(He)),{width:He.controlHeightLG*1.25,height:He.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:He.marginXS,marginInlineEnd:He.marginXS})}}}},Xe=He=>{const{componentCls:ut}=He;return{[`${ut}-item`]:{display:"inline-block",minWidth:He.itemSize,height:He.itemSize,marginInlineEnd:He.marginXS,fontFamily:He.fontFamily,lineHeight:`${He.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${He.lineWidth}px ${He.lineType} transparent`,borderRadius:He.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${He.paginationItemPaddingInline}px`,color:He.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ut}-item-active)`]:{"&:hover":{transition:`all ${He.motionDurationMid}`,backgroundColor:He.colorBgTextHover},"&:active":{backgroundColor:He.colorBgTextActive}},"&-active":{fontWeight:He.fontWeightStrong,backgroundColor:He.itemActiveBg,borderColor:He.colorPrimary,a:{color:He.colorPrimary},"&:hover":{borderColor:He.colorPrimaryHover},"&:hover a":{color:He.colorPrimaryHover}}}}},qe=He=>{const{componentCls:ut}=He;return{[ut]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ve.Wf)(He)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ut}-total-text`]:{display:"inline-block",height:He.itemSize,marginInlineEnd:He.marginXS,lineHeight:`${He.itemSize-2}px`,verticalAlign:"middle"}}),Xe(He)),et(He)),zt(He)),mn(He)),Hn(He)),{[`@media only screen and (max-width: ${He.screenLG}px)`]:{[`${ut}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${He.screenSM}px)`]:{[`${ut}-options`]:{display:"none"}}}),[`&${He.componentCls}-rtl`]:{direction:"rtl"}}},ft=He=>{const{componentCls:ut}=He;return{[`${ut}${ut}-disabled:not(${ut}-mini)`]:{"&, &:hover":{[`${ut}-item-link`]:{borderColor:He.colorBorder}},"&:focus-visible":{[`${ut}-item-link`]:{borderColor:He.colorBorder}},[`${ut}-item, ${ut}-item-link`]:{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,[`&:hover:not(${ut}-item-active)`]:{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,a:{color:He.colorTextDisabled}},[`&${ut}-item-active`]:{backgroundColor:He.itemActiveBgDisabled}},[`${ut}-prev, ${ut}-next`]:{"&:hover button":{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder,color:He.colorTextDisabled},[`${ut}-item-link`]:{backgroundColor:He.colorBgContainerDisabled,borderColor:He.colorBorder}}},[`${ut}:not(${ut}-mini)`]:{[`${ut}-prev, ${ut}-next`]:{"&:hover button":{borderColor:He.colorPrimaryHover,backgroundColor:He.itemBg},[`${ut}-item-link`]:{backgroundColor:He.itemLinkBg,borderColor:He.colorBorder},[`&:hover ${ut}-item-link`]:{borderColor:He.colorPrimary,backgroundColor:He.itemBg,color:He.colorPrimary},[`&${ut}-disabled`]:{[`${ut}-item-link`]:{borderColor:He.colorBorder,color:He.colorTextDisabled}}},[`${ut}-item`]:{backgroundColor:He.itemBg,border:`${He.lineWidth}px ${He.lineType} ${He.colorBorder}`,[`&:hover:not(${ut}-item-active)`]:{borderColor:He.colorPrimary,backgroundColor:He.itemBg,a:{color:He.colorPrimary}},"&-active":{borderColor:He.colorPrimary}}}}},Dt=He=>{const{componentCls:ut}=He;return{[`${ut}:not(${ut}-disabled)`]:{[`${ut}-item`]:Object.assign({},(0,Ve.Qy)(He)),[`${ut}-jump-prev, ${ut}-jump-next`]:{"&:focus-visible":Object.assign({[`${ut}-item-link-icon`]:{opacity:1},[`${ut}-item-ellipsis`]:{opacity:0}},(0,Ve.oN)(He))},[`${ut}-prev, ${ut}-next`]:{[`&:focus-visible ${ut}-item-link`]:Object.assign({},(0,Ve.oN)(He))}}}};var tt=(0,Qt.Z)("Pagination",He=>{const ut=(0,Ln.TS)(He,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:He.marginXXS/2,paginationMiniQuickJumperInputWidth:He.controlHeightLG*1.1,paginationItemPaddingInline:He.marginXXS*1.5,paginationEllipsisLetterSpacing:He.marginXXS/2,paginationSlashMarginInlineStart:He.marginXXS,paginationSlashMarginInlineEnd:He.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,xt.e5)(He),(0,xt.TM)(He));return[qe(ut),Dt(ut),He.wireframe&&ft(ut)]},He=>({itemBg:He.colorBgContainer,itemSize:He.controlHeight,itemSizeSM:He.controlHeightSM,itemActiveBg:He.colorBgContainer,itemLinkBg:He.colorBgContainer,itemActiveColorDisabled:He.colorTextDisabled,itemActiveBgDisabled:He.controlItemBgActiveDisabled,itemInputBg:He.colorBgContainer,miniOptionsSizeChangerTop:0})),vt=function(He,ut){var En={};for(var un in He)Object.prototype.hasOwnProperty.call(He,un)&&ut.indexOf(un)<0&&(En[un]=He[un]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,un=Object.getOwnPropertySymbols(He);ht<un.length;ht++)ut.indexOf(un[ht])<0&&Object.prototype.propertyIsEnumerable.call(He,un[ht])&&(En[un[ht]]=He[un[ht]]);return En},Qe=He=>{const{prefixCls:ut,selectPrefixCls:En,className:un,rootClassName:ht,style:sn,size:ln,locale:fn,selectComponentClass:nr,responsive:wt,showSizeChanger:xn}=He,zn=vt(He,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Gr}=(0,rt.Z)(wt),{getPrefixCls:vr,direction:cr,pagination:wn={}}=fe.useContext(en.E_),jr=vr("pagination",ut),[Hr,mo]=tt(jr),da=xn!=null?xn:wn.showSizeChanger,Ro=fe.useMemo(()=>{const po=fe.createElement("span",{className:`${jr}-item-ellipsis`},"\u2022\u2022\u2022"),Lr=fe.createElement("button",{className:`${jr}-item-link`,type:"button",tabIndex:-1},cr==="rtl"?fe.createElement(ge.Z,null):fe.createElement(de.Z,null)),vo=fe.createElement("button",{className:`${jr}-item-link`,type:"button",tabIndex:-1},cr==="rtl"?fe.createElement(de.Z,null):fe.createElement(ge.Z,null)),hn=fe.createElement("a",{className:`${jr}-item-link`},fe.createElement("div",{className:`${jr}-item-container`},cr==="rtl"?fe.createElement(me.Z,{className:`${jr}-item-link-icon`}):fe.createElement(ae,{className:`${jr}-item-link-icon`}),po)),se=fe.createElement("a",{className:`${jr}-item-link`},fe.createElement("div",{className:`${jr}-item-container`},cr==="rtl"?fe.createElement(ae,{className:`${jr}-item-link-icon`}):fe.createElement(me.Z,{className:`${jr}-item-link-icon`}),po));return{prevIcon:Lr,nextIcon:vo,jumpPrevIcon:hn,jumpNextIcon:se}},[cr,jr]),[Jo]=(0,at.Z)("Pagination",It.Z),qo=Object.assign(Object.assign({},Jo),fn),ur=(0,Zt.Z)(ln),$r=ur==="small"||!!(Gr&&!ur&&wt),zr=vr("select",En),To=he()({[`${jr}-mini`]:$r,[`${jr}-rtl`]:cr==="rtl"},wn==null?void 0:wn.className,un,ht,mo),Fo=Object.assign(Object.assign({},wn==null?void 0:wn.style),sn);return Hr(fe.createElement(Et,Object.assign({},Ro,zn,{style:Fo,prefixCls:jr,selectPrefixCls:zr,className:To,selectComponentClass:nr||($r?qt:Gt),locale:qo,showSizeChanger:da})))},Wt=Qe},46303:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return zt}});var te=ee(94184),fe=ee.n(te),be=ee(67294),_e=ee(53124),ce=ee(10366),ae=et=>{const{prefixCls:Xe,className:qe,style:ft,size:Dt,shape:tt}=et,vt=fe()({[`${Xe}-lg`]:Dt==="large",[`${Xe}-sm`]:Dt==="small"}),bt=fe()({[`${Xe}-circle`]:tt==="circle",[`${Xe}-square`]:tt==="square",[`${Xe}-round`]:tt==="round"}),Qe=be.useMemo(()=>typeof Dt=="number"?{width:Dt,height:Dt,lineHeight:`${Dt}px`}:{},[Dt]);return be.createElement("span",{className:fe()(Xe,vt,bt,qe),style:Object.assign(Object.assign({},Qe),ft)})},me=ee(45930),de=ee(67968),ge=ee(45503);const le=new me.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),he=et=>({height:et,lineHeight:`${et}px`}),re=et=>Object.assign({width:et},he(et)),ne=et=>({background:et.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:le,animationDuration:et.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),y=et=>Object.assign({width:et*5,minWidth:et*5},he(et)),a=et=>{const{skeletonAvatarCls:Xe,gradientFromColor:qe,controlHeight:ft,controlHeightLG:Dt,controlHeightSM:tt}=et;return{[`${Xe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:qe},re(ft)),[`${Xe}${Xe}-circle`]:{borderRadius:"50%"},[`${Xe}${Xe}-lg`]:Object.assign({},re(Dt)),[`${Xe}${Xe}-sm`]:Object.assign({},re(tt))}},E=et=>{const{controlHeight:Xe,borderRadiusSM:qe,skeletonInputCls:ft,controlHeightLG:Dt,controlHeightSM:tt,gradientFromColor:vt}=et;return{[`${ft}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:vt,borderRadius:qe},y(Xe)),[`${ft}-lg`]:Object.assign({},y(Dt)),[`${ft}-sm`]:Object.assign({},y(tt))}},b=et=>Object.assign({width:et},he(et)),x=et=>{const{skeletonImageCls:Xe,imageSizeBase:qe,gradientFromColor:ft,borderRadiusSM:Dt}=et;return{[`${Xe}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:ft,borderRadius:Dt},b(qe*2)),{[`${Xe}-path`]:{fill:"#bfbfbf"},[`${Xe}-svg`]:Object.assign(Object.assign({},b(qe)),{maxWidth:qe*4,maxHeight:qe*4}),[`${Xe}-svg${Xe}-svg-circle`]:{borderRadius:"50%"}}),[`${Xe}${Xe}-circle`]:{borderRadius:"50%"}}},z=(et,Xe,qe)=>{const{skeletonButtonCls:ft}=et;return{[`${qe}${ft}-circle`]:{width:Xe,minWidth:Xe,borderRadius:"50%"},[`${qe}${ft}-round`]:{borderRadius:Xe}}},oe=et=>Object.assign({width:et*2,minWidth:et*2},he(et)),ie=et=>{const{borderRadiusSM:Xe,skeletonButtonCls:qe,controlHeight:ft,controlHeightLG:Dt,controlHeightSM:tt,gradientFromColor:vt}=et;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${qe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:vt,borderRadius:Xe,width:ft*2,minWidth:ft*2},oe(ft))},z(et,ft,qe)),{[`${qe}-lg`]:Object.assign({},oe(Dt))}),z(et,Dt,`${qe}-lg`)),{[`${qe}-sm`]:Object.assign({},oe(tt))}),z(et,tt,`${qe}-sm`))},ue=et=>{const{componentCls:Xe,skeletonAvatarCls:qe,skeletonTitleCls:ft,skeletonParagraphCls:Dt,skeletonButtonCls:tt,skeletonInputCls:vt,skeletonImageCls:bt,controlHeight:Qe,controlHeightLG:Wt,controlHeightSM:He,gradientFromColor:ut,padding:En,marginSM:un,borderRadius:ht,titleHeight:sn,blockRadius:ln,paragraphLiHeight:fn,controlHeightXS:nr,paragraphMarginTop:wt}=et;return{[`${Xe}`]:{display:"table",width:"100%",[`${Xe}-header`]:{display:"table-cell",paddingInlineEnd:En,verticalAlign:"top",[`${qe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ut},re(Qe)),[`${qe}-circle`]:{borderRadius:"50%"},[`${qe}-lg`]:Object.assign({},re(Wt)),[`${qe}-sm`]:Object.assign({},re(He))},[`${Xe}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${ft}`]:{width:"100%",height:sn,background:ut,borderRadius:ln,[`+ ${Dt}`]:{marginBlockStart:He}},[`${Dt}`]:{padding:0,"> li":{width:"100%",height:fn,listStyle:"none",background:ut,borderRadius:ln,"+ li":{marginBlockStart:nr}}},[`${Dt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Xe}-content`]:{[`${ft}, ${Dt} > li`]:{borderRadius:ht}}},[`${Xe}-with-avatar ${Xe}-content`]:{[`${ft}`]:{marginBlockStart:un,[`+ ${Dt}`]:{marginBlockStart:wt}}},[`${Xe}${Xe}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},ie(et)),a(et)),E(et)),x(et)),[`${Xe}${Xe}-block`]:{width:"100%",[`${tt}`]:{width:"100%"},[`${vt}`]:{width:"100%"}},[`${Xe}${Xe}-active`]:{[`
${ft},
${Dt} > li,
${qe},
${tt},
${vt},
${bt}
`]:Object.assign({},ne(et))}}};var ve=(0,de.Z)("Skeleton",et=>{const{componentCls:Xe}=et,qe=(0,ge.TS)(et,{skeletonAvatarCls:`${Xe}-avatar`,skeletonTitleCls:`${Xe}-title`,skeletonParagraphCls:`${Xe}-paragraph`,skeletonButtonCls:`${Xe}-button`,skeletonInputCls:`${Xe}-input`,skeletonImageCls:`${Xe}-image`,imageSizeBase:et.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${et.gradientFromColor} 25%, ${et.gradientToColor} 37%, ${et.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ue(qe)]},et=>{const{colorFillContent:Xe,colorFill:qe}=et,ft=Xe,Dt=qe;return{color:ft,colorGradientEnd:Dt,gradientFromColor:ft,gradientToColor:Dt,titleHeight:et.controlHeight/2,blockRadius:et.borderRadiusSM,paragraphMarginTop:et.marginLG+et.marginXXS,paragraphLiHeight:et.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Le=et=>{const{prefixCls:Xe,className:qe,rootClassName:ft,active:Dt,shape:tt="circle",size:vt="default"}=et,{getPrefixCls:bt}=be.useContext(_e.E_),Qe=bt("skeleton",Xe),[Wt,He]=ve(Qe),ut=(0,ce.Z)(et,["prefixCls","className"]),En=fe()(Qe,`${Qe}-element`,{[`${Qe}-active`]:Dt},qe,ft,He);return Wt(be.createElement("div",{className:En},be.createElement(ae,Object.assign({prefixCls:`${Qe}-avatar`,shape:tt,size:vt},ut))))},Ne=et=>{const{prefixCls:Xe,className:qe,rootClassName:ft,active:Dt,block:tt=!1,size:vt="default"}=et,{getPrefixCls:bt}=be.useContext(_e.E_),Qe=bt("skeleton",Xe),[Wt,He]=ve(Qe),ut=(0,ce.Z)(et,["prefixCls"]),En=fe()(Qe,`${Qe}-element`,{[`${Qe}-active`]:Dt,[`${Qe}-block`]:tt},qe,ft,He);return Wt(be.createElement("div",{className:En},be.createElement(ae,Object.assign({prefixCls:`${Qe}-button`,size:vt},ut))))};const xe="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Ye=et=>{const{prefixCls:Xe,className:qe,rootClassName:ft,style:Dt,active:tt}=et,{getPrefixCls:vt}=be.useContext(_e.E_),bt=vt("skeleton",Xe),[Qe,Wt]=ve(bt),He=fe()(bt,`${bt}-element`,{[`${bt}-active`]:tt},qe,ft,Wt);return Qe(be.createElement("div",{className:He},be.createElement("div",{className:fe()(`${bt}-image`,qe),style:Dt},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${bt}-image-svg`},be.createElement("path",{d:xe,className:`${bt}-image-path`})))))},Me=et=>{const{prefixCls:Xe,className:qe,rootClassName:ft,active:Dt,block:tt,size:vt="default"}=et,{getPrefixCls:bt}=be.useContext(_e.E_),Qe=bt("skeleton",Xe),[Wt,He]=ve(Qe),ut=(0,ce.Z)(et,["prefixCls"]),En=fe()(Qe,`${Qe}-element`,{[`${Qe}-active`]:Dt,[`${Qe}-block`]:tt},qe,ft,He);return Wt(be.createElement("div",{className:En},be.createElement(ae,Object.assign({prefixCls:`${Qe}-input`,size:vt},ut))))},Be=ee(87462),Re={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ke=Re,Ge=ee(74643),Et=function(Xe,qe){return be.createElement(Ge.Z,(0,Be.Z)({},Xe,{ref:qe,icon:ke}))},It=be.forwardRef(Et),Zt=et=>{const{prefixCls:Xe,className:qe,rootClassName:ft,style:Dt,active:tt,children:vt}=et,{getPrefixCls:bt}=be.useContext(_e.E_),Qe=bt("skeleton",Xe),[Wt,He]=ve(Qe),ut=fe()(Qe,`${Qe}-element`,{[`${Qe}-active`]:tt},He,qe,ft),En=vt!=null?vt:be.createElement(It,null);return Wt(be.createElement("div",{className:ut},be.createElement("div",{className:fe()(`${Qe}-image`,qe),style:Dt},En)))},rt=ee(74902),Ct=et=>{const Xe=bt=>{const{width:Qe,rows:Wt=2}=et;if(Array.isArray(Qe))return Qe[bt];if(Wt-1===bt)return Qe},{prefixCls:qe,className:ft,style:Dt,rows:tt}=et,vt=(0,rt.Z)(Array(tt)).map((bt,Qe)=>be.createElement("li",{key:Qe,style:{width:Xe(Qe)}}));return be.createElement("ul",{className:fe()(qe,ft),style:Dt},vt)},Gt=et=>{let{prefixCls:Xe,className:qe,width:ft,style:Dt}=et;return be.createElement("h3",{className:fe()(Xe,qe),style:Object.assign({width:ft},Dt)})};function xt(et){return et&&typeof et=="object"?et:{}}function Ve(et,Xe){return et&&!Xe?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Qt(et,Xe){return!et&&Xe?{width:"38%"}:et&&Xe?{width:"50%"}:{}}function Ln(et,Xe){const qe={};return(!et||!Xe)&&(qe.width="61%"),!et&&Xe?qe.rows=3:qe.rows=2,qe}const Hn=et=>{const{prefixCls:Xe,loading:qe,className:ft,rootClassName:Dt,style:tt,children:vt,avatar:bt=!1,title:Qe=!0,paragraph:Wt=!0,active:He,round:ut}=et,{getPrefixCls:En,direction:un,skeleton:ht}=be.useContext(_e.E_),sn=En("skeleton",Xe),[ln,fn]=ve(sn);if(qe||!("loading"in et)){const nr=!!bt,wt=!!Qe,xn=!!Wt;let zn;if(nr){const cr=Object.assign(Object.assign({prefixCls:`${sn}-avatar`},Ve(wt,xn)),xt(bt));zn=be.createElement("div",{className:`${sn}-header`},be.createElement(ae,Object.assign({},cr)))}let Gr;if(wt||xn){let cr;if(wt){const jr=Object.assign(Object.assign({prefixCls:`${sn}-title`},Qt(nr,xn)),xt(Qe));cr=be.createElement(Gt,Object.assign({},jr))}let wn;if(xn){const jr=Object.assign(Object.assign({prefixCls:`${sn}-paragraph`},Ln(nr,wt)),xt(Wt));wn=be.createElement(Ct,Object.assign({},jr))}Gr=be.createElement("div",{className:`${sn}-content`},cr,wn)}const vr=fe()(sn,{[`${sn}-with-avatar`]:nr,[`${sn}-active`]:He,[`${sn}-rtl`]:un==="rtl",[`${sn}-round`]:ut},ht==null?void 0:ht.className,ft,Dt,fn);return ln(be.createElement("div",{className:vr,style:Object.assign(Object.assign({},ht==null?void 0:ht.style),tt)},zn,Gr))}return typeof vt!="undefined"?vt:null};Hn.Button=Ne,Hn.Avatar=Le,Hn.Input=Me,Hn.Image=Ye,Hn.Node=Zt;var mn=Hn,zt=mn},55054:function(ot,Ze,ee){"use strict";ee.d(Ze,{default:function(){return ve}});var te=ee(67294),fe=ee(57838),be=ee(96159),_e=ee(94184),ce=ee.n(_e),pe=ee(53124),ae=ee(46303),de=Se=>{const{value:Le,formatter:we,precision:Ne,decimalSeparator:xe,groupSeparator:st="",prefixCls:Ye}=Se;let lt;if(typeof we=="function")lt=we(Le);else{const Me=String(Le),Be=Me.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Be||Me==="-")lt=Me;else{const Re=Be[1];let ke=Be[2]||"0",Ge=Be[4]||"";ke=ke.replace(/\B(?=(\d{3})+(?!\d))/g,st),typeof Ne=="number"&&(Ge=Ge.padEnd(Ne,"0").slice(0,Ne>0?Ne:0)),Ge&&(Ge=`${xe}${Ge}`),lt=[te.createElement("span",{key:"int",className:`${Ye}-content-value-int`},Re,ke),Ge&&te.createElement("span",{key:"decimal",className:`${Ye}-content-value-decimal`},Ge)]}}return te.createElement("span",{className:`${Ye}-content-value`},lt)},ge=ee(14747),le=ee(67968),he=ee(45503);const re=Se=>{const{componentCls:Le,marginXXS:we,padding:Ne,colorTextDescription:xe,titleFontSize:st,colorTextHeading:Ye,contentFontSize:lt,fontFamily:Me}=Se;return{[`${Le}`]:Object.assign(Object.assign({},(0,ge.Wf)(Se)),{[`${Le}-title`]:{marginBottom:we,color:xe,fontSize:st},[`${Le}-skeleton`]:{paddingTop:Ne},[`${Le}-content`]:{color:Ye,fontSize:lt,fontFamily:Me,[`${Le}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Le}-content-prefix, ${Le}-content-suffix`]:{display:"inline-block"},[`${Le}-content-prefix`]:{marginInlineEnd:we},[`${Le}-content-suffix`]:{marginInlineStart:we}}})}};var ne=(0,le.Z)("Statistic",Se=>{const Le=(0,he.TS)(Se,{});return[re(Le)]},Se=>{const{fontSizeHeading3:Le,fontSize:we}=Se;return{titleFontSize:we,contentFontSize:Le}}),a=Se=>{const{prefixCls:Le,className:we,rootClassName:Ne,style:xe,valueStyle:st,value:Ye=0,title:lt,valueRender:Me,prefix:Be,suffix:Re,loading:ke=!1,onMouseEnter:Ge,onMouseLeave:Et,decimalSeparator:It=".",groupSeparator:en=","}=Se,{getPrefixCls:Zt,direction:rt,statistic:at}=te.useContext(pe.E_),Ct=Zt("statistic",Le),[qt,Gt]=ne(Ct),xt=te.createElement(de,Object.assign({decimalSeparator:It,groupSeparator:en,prefixCls:Ct},Se,{value:Ye})),Ve=ce()(Ct,{[`${Ct}-rtl`]:rt==="rtl"},at==null?void 0:at.className,we,Ne,Gt);return qt(te.createElement("div",{className:Ve,style:Object.assign(Object.assign({},at==null?void 0:at.style),xe),onMouseEnter:Ge,onMouseLeave:Et},lt&&te.createElement("div",{className:`${Ct}-title`},lt),te.createElement(ae.Z,{paragraph:!1,loading:ke,className:`${Ct}-skeleton`},te.createElement("div",{style:st,className:`${Ct}-content`},Be&&te.createElement("span",{className:`${Ct}-content-prefix`},Be),Me?Me(xt):xt,Re&&te.createElement("span",{className:`${Ct}-content-suffix`},Re)))))};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 b(Se,Le){let we=Se;const Ne=/\[[^\]]*]/g,xe=(Le.match(Ne)||[]).map(Me=>Me.slice(1,-1)),st=Le.replace(Ne,"[]"),Ye=E.reduce((Me,Be)=>{let[Re,ke]=Be;if(Me.includes(Re)){const Ge=Math.floor(we/ke);return we-=Ge*ke,Me.replace(new RegExp(`${Re}+`,"g"),Et=>{const It=Et.length;return Ge.toString().padStart(It,"0")})}return Me},st);let lt=0;return Ye.replace(Ne,()=>{const Me=xe[lt];return lt+=1,Me})}function x(Se,Le){const{format:we=""}=Le,Ne=new Date(Se).getTime(),xe=Date.now(),st=Math.max(Ne-xe,0);return b(st,we)}const z=1e3/30;function oe(Se){return new Date(Se).getTime()}const ie=Se=>{const{value:Le,format:we="HH:mm:ss",onChange:Ne,onFinish:xe}=Se,st=(0,fe.Z)(),Ye=te.useRef(null),lt=()=>{xe==null||xe(),Ye.current&&(clearInterval(Ye.current),Ye.current=null)},Me=()=>{const ke=oe(Le);ke>=Date.now()&&(Ye.current=setInterval(()=>{st(),Ne==null||Ne(ke-Date.now()),ke<Date.now()&&lt()},z))};te.useEffect(()=>(Me(),()=>{Ye.current&&(clearInterval(Ye.current),Ye.current=null)}),[Le]);const Be=(ke,Ge)=>x(ke,Object.assign(Object.assign({},Ge),{format:we})),Re=ke=>(0,be.Tm)(ke,{title:void 0});return te.createElement(a,Object.assign({},Se,{valueRender:Re,formatter:Be}))};var ue=te.memo(ie);a.Countdown=ue;var ve=a},49867:function(ot,Ze,ee){"use strict";ee.d(Ze,{N:function(){return te}});const te=fe=>({color:fe.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${fe.motionDurationSlow}`,"&:focus, &:hover":{color:fe.colorLinkHover},"&:active":{color:fe.colorLinkActive}})},9430:function(ot,Ze,ee){"use strict";ee.d(Ze,{default:function(){return Va}});var te={},fe="rc-table-internal-hook",be=ee(97685),_e=ee(66680),ce=ee(8410),pe=ee(91881),ae=ee(67294),me=ee(73935);function de(Ee){var Ce=ae.createContext(void 0),De=function(je){var We=je.value,it=je.children,mt=ae.useRef(We);mt.current=We;var ct=ae.useState(function(){return{getValue:function(){return mt.current},listeners:new Set}}),Pt=(0,be.Z)(ct,1),Rt=Pt[0];return(0,ce.Z)(function(){(0,me.unstable_batchedUpdates)(function(){Rt.listeners.forEach(function(At){At(We)})})},[We]),ae.createElement(Ce.Provider,{value:Rt},it)};return{Context:Ce,Provider:De,defaultValue:Ee}}function ge(Ee,Ce){var De=(0,_e.Z)(typeof Ce=="function"?Ce:function(At){if(Ce===void 0)return At;if(!Array.isArray(Ce))return At[Ce];var tn={};return Ce.forEach(function(Jt){tn[Jt]=At[Jt]}),tn}),Te=ae.useContext(Ee==null?void 0:Ee.Context),je=Te||{},We=je.listeners,it=je.getValue,mt=ae.useRef();mt.current=De(Te?it():Ee==null?void 0:Ee.defaultValue);var ct=ae.useState({}),Pt=(0,be.Z)(ct,2),Rt=Pt[1];return(0,ce.Z)(function(){if(!Te)return;function At(tn){var Jt=De(tn);(0,pe.Z)(mt.current,Jt,!0)||Rt({})}return We.add(At),function(){We.delete(At)}},[Te]),mt.current}var le=ee(87462),he=ee(42550);function re(){var Ee=ae.createContext(null);function Ce(){return ae.useContext(Ee)}function De(je,We){var it=(0,he.Yr)(je),mt=function(Pt,Rt){var At=it?{ref:Rt}:{},tn=ae.useRef(0),Jt=ae.useRef(Pt),cn=Ce();return cn!==null?ae.createElement(je,(0,le.Z)({},Pt,At)):((!We||We(Jt.current,Pt))&&(tn.current+=1),Jt.current=Pt,ae.createElement(Ee.Provider,{value:tn.current},ae.createElement(je,(0,le.Z)({},Pt,At))))};return it?ae.forwardRef(mt):mt}function Te(je,We){var it=(0,he.Yr)(je),mt=function(Pt,Rt){var At=it?{ref:Rt}:{};return Ce(),ae.createElement(je,(0,le.Z)({},Pt,At))};return it?ae.memo(ae.forwardRef(mt),We):ae.memo(mt,We)}return{makeImmutable:De,responseImmutable:Te,useImmutableMark:Ce}}var ne=re(),y=ne.makeImmutable,a=ne.responseImmutable,E=ne.useImmutableMark,b=re(),x=b.makeImmutable,z=b.responseImmutable,oe=b.useImmutableMark,ie=de(),ue=ie;function ve(Ee,Ce){var De=ae.useRef(0);De.current+=1;var Te=ae.useRef(Ee),je=[];Object.keys(Ee||{}).map(function(it){var mt;(Ee==null?void 0:Ee[it])!==((mt=Te.current)===null||mt===void 0?void 0:mt[it])&&je.push(it)}),Te.current=Ee;var We=ae.useRef([]);return je.length&&(We.current=je),ae.useDebugValue(De.current),ae.useDebugValue(We.current.join(", ")),Ce&&console.log("".concat(Ce,":"),De.current,We.current),De.current}var Se=null,Le=ae.memo(function(){var Ee=ve();return ae.createElement("h1",null,"Render Times: ",Ee)});Le.displayName="RenderBlock";var we=ee(71002),Ne=ee(1413),xe=ee(4942),st=ee(94184),Ye=ee.n(st);function lt(Ee,Ce,De){var Te=ae.useRef({});return(!("value"in Te.current)||De(Te.current.condition,Ce))&&(Te.current.value=Ee(),Te.current.condition=Ce),Te.current.value}var Me={},Be=[],Re=function(Ce){Be.push(Ce)};function ke(Ee,Ce){if(0)var De}function Ge(Ee,Ce){if(0)var De}function Et(){Me={}}function It(Ee,Ce,De){!Ce&&!Me[De]&&(Ee(!1,De),Me[De]=!0)}function en(Ee,Ce){It(ke,Ee,Ce)}function Zt(Ee,Ce){It(Ge,Ee,Ce)}en.preMessage=Re,en.resetWarned=Et,en.noteOnce=Zt;var rt=en;function at(Ee,Ce){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Te=new Set;function je(We,it){var mt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ct=Te.has(We);if(rt(!ct,"Warning: There may be circular references"),ct)return!1;if(We===it)return!0;if(De&&mt>1)return!1;Te.add(We);var Pt=mt+1;if(Array.isArray(We)){if(!Array.isArray(it)||We.length!==it.length)return!1;for(var Rt=0;Rt<We.length;Rt++)if(!je(We[Rt],it[Rt],Pt))return!1;return!0}if(We&&it&&(0,we.Z)(We)==="object"&&(0,we.Z)(it)==="object"){var At=Object.keys(We);return At.length!==Object.keys(it).length?!1:At.every(function(tn){return je(We[tn],it[tn],Pt)})}return!1}return je(Ee,Ce)}var Ct=at;function qt(Ee,Ce){for(var De=Ee,Te=0;Te<Ce.length;Te+=1){if(De==null)return;De=De[Ce[Te]]}return De}var Gt=ae.createContext({renderWithProps:!1}),xt=Gt,Ve="RC_TABLE_KEY";function Qt(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function Ln(Ee){var Ce=[],De={};return Ee.forEach(function(Te){for(var je=Te||{},We=je.key,it=je.dataIndex,mt=We||Qt(it).join("-")||Ve;De[mt];)mt="".concat(mt,"_next");De[mt]=!0,Ce.push(mt)}),Ce}function Hn(Ee){return Ee!=null}function mn(Ee){return Ee&&(0,we.Z)(Ee)==="object"&&!Array.isArray(Ee)&&!ae.isValidElement(Ee)}function zt(Ee,Ce,De,Te,je,We){var it=ae.useContext(xt),mt=oe(),ct=lt(function(){if(Hn(Te))return[Te];var Pt=Ce==null||Ce===""?[]:Array.isArray(Ce)?Ce:[Ce],Rt=qt(Ee,Pt),At=Rt,tn=void 0;if(je){var Jt=je(Rt,Ee,De);mn(Jt)?(At=Jt.children,tn=Jt.props,it.renderWithProps=!0):At=Jt}return[At,tn]},[mt,Ee,Te,Ce,je,De],function(Pt,Rt){if(We){var At=(0,be.Z)(Pt,2),tn=At[1],Jt=(0,be.Z)(Rt,2),cn=Jt[1];return We(cn,tn)}return it.renderWithProps?!0:!Ct(Pt,Rt,!0)});return ct}function et(Ee,Ce,De,Te){var je=Ee+Ce-1;return Ee<=Te&&je>=De}function Xe(Ee,Ce){return ge(ue,function(De){var Te=et(Ee,Ce||1,De.hoverStartRow,De.hoverEndRow);return[Te,De.onHover]})}var qe=function(Ce){var De=Ce.ellipsis,Te=Ce.rowType,je=Ce.children,We,it=De===!0?{showTitle:!0}:De;return it&&(it.showTitle||Te==="header")&&(typeof je=="string"||typeof je=="number"?We=je.toString():ae.isValidElement(je)&&typeof je.props.children=="string"&&(We=je.props.children)),We};function ft(Ee){var Ce,De,Te,je,We,it,mt,ct,Pt=Ee.component,Rt=Ee.children,At=Ee.ellipsis,tn=Ee.scope,Jt=Ee.prefixCls,cn=Ee.className,Rn=Ee.align,Cn=Ee.record,jn=Ee.render,On=Ee.dataIndex,$n=Ee.renderIndex,br=Ee.shouldCellUpdate,Dr=Ee.index,pr=Ee.rowType,Xr=Ee.colSpan,uo=Ee.rowSpan,rr=Ee.fixLeft,yr=Ee.fixRight,or=Ee.firstFixLeft,Zn=Ee.lastFixLeft,dr=Ee.firstFixRight,Zr=Ee.lastFixRight,Po=Ee.appendNode,io=Ee.additionalProps,Nr=io===void 0?{}:io,Co=Ee.isSticky,Mo="".concat(Jt,"-cell"),va=ge(ue,["supportSticky","allColumnsFixedLeft"]),Wo=va.supportSticky,za=va.allColumnsFixedLeft,Ua=zt(Cn,On,$n,Rt,jn,br),fo=(0,be.Z)(Ua,2),Ya=fo[0],Yo=fo[1],Ia={},Aa=typeof rr=="number"&&Wo,Oi=typeof yr=="number"&&Wo;Aa&&(Ia.position="sticky",Ia.left=rr),Oi&&(Ia.position="sticky",Ia.right=yr);var Ur=(Ce=(De=(Te=Yo==null?void 0:Yo.colSpan)!==null&&Te!==void 0?Te:Nr.colSpan)!==null&&De!==void 0?De:Xr)!==null&&Ce!==void 0?Ce:1,Fr=(je=(We=(it=Yo==null?void 0:Yo.rowSpan)!==null&&it!==void 0?it:Nr.rowSpan)!==null&&We!==void 0?We:uo)!==null&&je!==void 0?je:1,Rr=Xe(Dr,Fr),Cr=(0,be.Z)(Rr,2),Xo=Cr[0],wr=Cr[1],ro=function(Qa){var Ii;Cn&&wr(Dr,Dr+Fr-1),Nr==null||(Ii=Nr.onMouseEnter)===null||Ii===void 0||Ii.call(Nr,Qa)},Uo=function(Qa){var Ii;Cn&&wr(-1,-1),Nr==null||(Ii=Nr.onMouseLeave)===null||Ii===void 0||Ii.call(Nr,Qa)};if(Ur===0||Fr===0)return null;var No=(mt=Nr.title)!==null&&mt!==void 0?mt:qe({rowType:pr,ellipsis:At,children:Ya}),pi=Ye()(Mo,cn,(ct={},(0,xe.Z)(ct,"".concat(Mo,"-fix-left"),Aa&&Wo),(0,xe.Z)(ct,"".concat(Mo,"-fix-left-first"),or&&Wo),(0,xe.Z)(ct,"".concat(Mo,"-fix-left-last"),Zn&&Wo),(0,xe.Z)(ct,"".concat(Mo,"-fix-left-all"),Zn&&za&&Wo),(0,xe.Z)(ct,"".concat(Mo,"-fix-right"),Oi&&Wo),(0,xe.Z)(ct,"".concat(Mo,"-fix-right-first"),dr&&Wo),(0,xe.Z)(ct,"".concat(Mo,"-fix-right-last"),Zr&&Wo),(0,xe.Z)(ct,"".concat(Mo,"-ellipsis"),At),(0,xe.Z)(ct,"".concat(Mo,"-with-append"),Po),(0,xe.Z)(ct,"".concat(Mo,"-fix-sticky"),(Aa||Oi)&&Co&&Wo),(0,xe.Z)(ct,"".concat(Mo,"-row-hover"),!Yo&&Xo),ct),Nr.className,Yo==null?void 0:Yo.className),ui={};Rn&&(ui.textAlign=Rn);var Vi=(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},Ia),Nr.style),ui),Yo==null?void 0:Yo.style),Xa=Ya;return(0,we.Z)(Xa)==="object"&&!Array.isArray(Xa)&&!ae.isValidElement(Xa)&&(Xa=null),At&&(Zn||dr)&&(Xa=ae.createElement("span",{className:"".concat(Mo,"-content")},Xa)),ae.createElement(Pt,(0,le.Z)({},Yo,Nr,{className:pi,style:Vi,title:No,scope:tn,onMouseEnter:ro,onMouseLeave:Uo,colSpan:Ur!==1?Ur:null,rowSpan:Fr!==1?Fr:null}),Po,Xa)}var Dt=ae.memo(ft);function tt(Ee,Ce,De,Te,je,We){var it=De[Ee]||{},mt=De[Ce]||{},ct,Pt;it.fixed==="left"?ct=Te.left[je==="rtl"?Ce:Ee]:mt.fixed==="right"&&(Pt=Te.right[je==="rtl"?Ee:Ce]);var Rt=!1,At=!1,tn=!1,Jt=!1,cn=De[Ce+1],Rn=De[Ee-1],Cn=!(We!=null&&We.children);if(je==="rtl"){if(ct!==void 0){var jn=Rn&&Rn.fixed==="left";Jt=!jn&&Cn}else if(Pt!==void 0){var On=cn&&cn.fixed==="right";tn=!On&&Cn}}else if(ct!==void 0){var $n=cn&&cn.fixed==="left";Rt=!$n&&Cn}else if(Pt!==void 0){var br=Rn&&Rn.fixed==="right";At=!br&&Cn}return{fixLeft:ct,fixRight:Pt,lastFixLeft:Rt,firstFixRight:At,lastFixRight:tn,firstFixLeft:Jt,isSticky:Te.isSticky}}var vt=ae.createContext({}),bt=vt;function Qe(Ee){var Ce=Ee.className,De=Ee.index,Te=Ee.children,je=Ee.colSpan,We=je===void 0?1:je,it=Ee.rowSpan,mt=Ee.align,ct=ge(ue,["prefixCls","direction"]),Pt=ct.prefixCls,Rt=ct.direction,At=ae.useContext(bt),tn=At.scrollColumnIndex,Jt=At.stickyOffsets,cn=At.flattenColumns,Rn=At.columns,Cn=De+We-1,jn=Cn+1===tn?We+1:We,On=tt(De,De+jn-1,cn,Jt,Rt,Rn==null?void 0:Rn[De]);return ae.createElement(Dt,(0,le.Z)({className:Ce,index:De,component:"td",prefixCls:Pt,record:null,dataIndex:null,align:mt,colSpan:jn,rowSpan:it,render:function(){return Te}},On))}var Wt=ee(45987),He=["children"];function ut(Ee){var Ce=Ee.children,De=(0,Wt.Z)(Ee,He);return ae.createElement("tr",De,Ce)}function En(Ee){var Ce=Ee.children;return Ce}En.Row=ut,En.Cell=Qe;var un=En;function ht(Ee){var Ce=Ee.children,De=Ee.stickyOffsets,Te=Ee.flattenColumns,je=Ee.columns,We=ge(ue,"prefixCls"),it=Te.length-1,mt=Te[it],ct=ae.useMemo(function(){return{stickyOffsets:De,flattenColumns:Te,scrollColumnIndex:mt!=null&&mt.scrollbar?it:null,columns:je}},[mt,Te,it,De,je]);return ae.createElement(bt.Provider,{value:ct},ae.createElement("tfoot",{className:"".concat(We,"-summary")},Ce))}var sn=z(ht),ln=un;function fn(Ee){var Ce=ae.useRef();Ce.current=Ee;var De=ae.useCallback(function(){for(var Te,je=arguments.length,We=new Array(je),it=0;it<je;it++)We[it]=arguments[it];return(Te=Ce.current)===null||Te===void 0?void 0:Te.call.apply(Te,[Ce].concat(We))},[]);return De}function nr(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var wt=nr()?ae.useLayoutEffect:ae.useEffect,xn=function(Ce,De){var Te=React.useRef(!0);wt(function(){return Ce(Te.current)},De),wt(function(){return Te.current=!1,function(){Te.current=!0}},[])},zn=function(Ce,De){xn(function(Te){if(!Te)return Ce()},De)},Gr=null;function vr(Ee){var Ce=React.useRef(!1),De=React.useState(Ee),Te=_slicedToArray(De,2),je=Te[0],We=Te[1];React.useEffect(function(){return Ce.current=!1,function(){Ce.current=!0}},[]);function it(mt,ct){ct&&Ce.current||We(mt)}return[je,it]}function cr(Ee){return Ee!==void 0}function wn(Ee,Ce){var De=Ce||{},Te=De.defaultValue,je=De.value,We=De.onChange,it=De.postState,mt=useState(function(){return cr(je)?je:cr(Te)?typeof Te=="function"?Te():Te:typeof Ee=="function"?Ee():Ee}),ct=_slicedToArray(mt,2),Pt=ct[0],Rt=ct[1],At=je!==void 0?je:Pt,tn=it?it(At):At,Jt=useEvent(We),cn=useState([At]),Rn=_slicedToArray(cn,2),Cn=Rn[0],jn=Rn[1];useLayoutUpdateEffect(function(){var $n=Cn[0];Pt!==$n&&Jt(Pt,$n)},[Cn]),useLayoutUpdateEffect(function(){cr(je)||Rt(je)},[je]);var On=useEvent(function($n,br){Rt($n,br),jn([At],br)});return[tn,On]}var jr=ee(35110);function Hr(Ee,Ce){typeof Ee=="function"?Ee(Ce):(0,we.Z)(Ee)==="object"&&Ee&&"current"in Ee&&(Ee.current=Ce)}function mo(){for(var Ee=arguments.length,Ce=new Array(Ee),De=0;De<Ee;De++)Ce[De]=arguments[De];var Te=Ce.filter(function(je){return je});return Te.length<=1?Te[0]:function(je){Ce.forEach(function(We){Hr(We,je)})}}function da(){for(var Ee=arguments.length,Ce=new Array(Ee),De=0;De<Ee;De++)Ce[De]=arguments[De];return useMemo(function(){return mo.apply(void 0,Ce)},Ce,function(Te,je){return Te.length!==je.length||Te.every(function(We,it){return We!==je[it]})})}function Ro(Ee){var Ce,De,Te=isMemo(Ee)?Ee.type.type:Ee.type;return!(typeof Te=="function"&&!((Ce=Te.prototype)!==null&&Ce!==void 0&&Ce.render)||typeof Ee=="function"&&!((De=Ee.prototype)!==null&&De!==void 0&&De.render))}function Jo(Ee){return!isValidElement(Ee)||isFragment(Ee)?!1:Ro(Ee)}function qo(Ee,Ce,De,Te){if(!Ce.length)return De;var je=_toArray(Ce),We=je[0],it=je.slice(1),mt;return!Ee&&typeof We=="number"?mt=[]:Array.isArray(Ee)?mt=_toConsumableArray(Ee):mt=_objectSpread({},Ee),Te&&De===void 0&&it.length===1?delete mt[We][it[0]]:mt[We]=qo(mt[We],it,De,Te),mt}function ur(Ee,Ce,De){var Te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Ce.length&&Te&&De===void 0&&!get(Ee,Ce.slice(0,-1))?Ee:qo(Ee,Ce,De,Te)}function $r(Ee){return _typeof(Ee)==="object"&&Ee!==null&&Object.getPrototypeOf(Ee)===Object.prototype}function zr(Ee){return Array.isArray(Ee)?[]:{}}var To=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Fo(){for(var Ee=arguments.length,Ce=new Array(Ee),De=0;De<Ee;De++)Ce[De]=arguments[De];var Te=zr(Ce[0]);return Ce.forEach(function(je){function We(it,mt){var ct=new Set(mt),Pt=get(je,it),Rt=Array.isArray(Pt);if(Rt||$r(Pt)){if(!ct.has(Pt)){ct.add(Pt);var At=get(Te,it);Rt?Te=ur(Te,it,[]):(!At||_typeof(At)!=="object")&&(Te=ur(Te,it,zr(Pt))),To(Pt).forEach(function(tn){We([].concat(_toConsumableArray(it),[tn]),ct)})}}else Te=ur(Te,it,Pt)}We([])}),Te}var po=ee(48555),Lr=function(Ee){if(!Ee)return!1;if(Ee instanceof Element){if(Ee.offsetParent)return!0;if(Ee.getBBox){var Ce=Ee.getBBox(),De=Ce.width,Te=Ce.height;if(De||Te)return!0}if(Ee.getBoundingClientRect){var je=Ee.getBoundingClientRect(),We=je.width,it=je.height;if(We||it)return!0}}return!1},vo=function(Ce){if(nr()&&window.document.documentElement){var De=Array.isArray(Ce)?Ce:[Ce],Te=window.document.documentElement;return De.some(function(je){return je in Te.style})}return!1},hn=function(Ce,De){if(!vo(Ce))return!1;var Te=document.createElement("div"),je=Te.style[Ce];return Te.style[Ce]=De,Te.style[Ce]!==je};function se(Ee,Ce){return!Array.isArray(Ee)&&Ce!==void 0?hn(Ee,Ce):vo(Ee)}var ye;function Pe(Ee){if(typeof document=="undefined")return 0;if(Ee||ye===void 0){var Ce=document.createElement("div");Ce.style.width="100%",Ce.style.height="200px";var De=document.createElement("div"),Te=De.style;Te.position="absolute",Te.top="0",Te.left="0",Te.pointerEvents="none",Te.visibility="hidden",Te.width="200px",Te.height="150px",Te.overflow="hidden",De.appendChild(Ce),document.body.appendChild(De);var je=Ce.offsetWidth;De.style.overflow="scroll";var We=Ce.offsetWidth;je===We&&(We=De.clientWidth),document.body.removeChild(De),ye=je-We}return ye}function Ae(Ee){var Ce=Ee.match(/^(.*)px$/),De=Number(Ce==null?void 0:Ce[1]);return Number.isNaN(De)?Pe():De}function Oe(Ee){if(typeof document=="undefined"||!Ee||!(Ee instanceof Element))return{width:0,height:0};var Ce=getComputedStyle(Ee,"::-webkit-scrollbar"),De=Ce.width,Te=Ce.height;return{width:Ae(De),height:Ae(Te)}}var Je=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,pt=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,gn="".concat(Je," ").concat(pt).split(/[\s\n]+/),$t="aria-",Bn="data-";function hr(Ee,Ce){return Ee.indexOf(Ce)===0}function gr(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De;Ce===!1?De={aria:!0,data:!0,attr:!0}:Ce===!0?De={aria:!0}:De=(0,Ne.Z)({},Ce);var Te={};return Object.keys(Ee).forEach(function(je){(De.aria&&(je==="role"||hr(je,$t))||De.data&&hr(je,Bn)||De.attr&&gn.includes(je))&&(Te[je]=Ee[je])}),Te}function Nt(Ee,Ce,De,Te,je,We,it){Ee.push({record:Ce,indent:De,index:it});var mt=We(Ce),ct=je==null?void 0:je.has(mt);if(Ce&&Array.isArray(Ce[Te])&&ct)for(var Pt=0;Pt<Ce[Te].length;Pt+=1)Nt(Ee,Ce[Te][Pt],De+1,Te,je,We,Pt)}function Wn(Ee,Ce,De,Te){var je=ae.useMemo(function(){if(De!=null&&De.size){for(var We=[],it=0;it<(Ee==null?void 0:Ee.length);it+=1){var mt=Ee[it];Nt(We,mt,0,Ce,De,Te,it)}return We}return Ee==null?void 0:Ee.map(function(ct,Pt){return{record:ct,indent:0,index:Pt}})},[Ee,Ce,De,Te]);return je}function qn(Ee){var Ce=Ee.prefixCls,De=Ee.children,Te=Ee.component,je=Ee.cellComponent,We=Ee.className,it=Ee.expanded,mt=Ee.colSpan,ct=Ee.isEmpty,Pt=ge(ue,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Rt=Pt.scrollbarSize,At=Pt.fixHeader,tn=Pt.fixColumn,Jt=Pt.componentWidth,cn=Pt.horizonScroll,Rn=De;return(ct?cn&&Jt:tn)&&(Rn=ae.createElement("div",{style:{width:Jt-(At?Rt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ce,"-expanded-row-fixed")},Rn)),ae.createElement(Te,{className:We,style:{display:it?null:"none"}},ae.createElement(Dt,{component:je,prefixCls:Ce,colSpan:mt},Rn))}var Sn=qn;function Mn(Ee,Ce,De,Te){var je=ge(ue,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),We=je.flattenColumns,it=je.expandableType,mt=je.expandedKeys,ct=je.childrenColumnName,Pt=je.onTriggerExpand,Rt=je.rowExpandable,At=je.onRow,tn=je.expandRowByClick,Jt=je.rowClassName,cn=it==="nest",Rn=it==="row"&&(!Rt||Rt(Ee)),Cn=Rn||cn,jn=mt&&mt.has(Ce),On=ct&&Ee&&Ee[ct],$n=fn(Pt),br=At==null?void 0:At(Ee,De),Dr=br==null?void 0:br.onClick,pr=function(yr){tn&&Cn&&Pt(Ee,yr);for(var or=arguments.length,Zn=new Array(or>1?or-1:0),dr=1;dr<or;dr++)Zn[dr-1]=arguments[dr];Dr==null||Dr.apply(void 0,[yr].concat(Zn))},Xr;typeof Jt=="string"?Xr=Jt:typeof Jt=="function"&&(Xr=Jt(Ee,De,Te));var uo=Ln(We);return(0,Ne.Z)((0,Ne.Z)({},je),{},{columnsKey:uo,nestExpandable:cn,expanded:jn,hasNestChildren:On,record:Ee,onTriggerExpand:$n,rowSupportExpand:Rn,expandable:Cn,rowProps:(0,Ne.Z)((0,Ne.Z)({},br),{},{className:Ye()(Xr,br==null?void 0:br.className),onClick:pr})})}function Xn(Ee,Ce,De,Te,je){var We=Ee.record,it=Ee.prefixCls,mt=Ee.columnsKey,ct=Ee.fixedInfoList,Pt=Ee.expandIconColumnIndex,Rt=Ee.nestExpandable,At=Ee.indentSize,tn=Ee.expandIcon,Jt=Ee.expanded,cn=Ee.hasNestChildren,Rn=Ee.onTriggerExpand,Cn=mt[De],jn=ct[De],On;De===(Pt||0)&&Rt&&(On=ae.createElement(ae.Fragment,null,ae.createElement("span",{style:{paddingLeft:"".concat(At*Te,"px")},className:"".concat(it,"-row-indent indent-level-").concat(Te)}),tn({prefixCls:it,expanded:Jt,expandable:cn,record:We,onExpand:Rn})));var $n;return Ce.onCell&&($n=Ce.onCell(We,je)),{key:Cn,fixedInfo:jn,appendCellNode:On,additionalCellProps:$n||{}}}function Pr(Ee){var Ce=Ee.className,De=Ee.style,Te=Ee.record,je=Ee.index,We=Ee.renderIndex,it=Ee.rowKey,mt=Ee.indent,ct=mt===void 0?0:mt,Pt=Ee.rowComponent,Rt=Ee.cellComponent,At=Ee.scopeCellComponent,tn=Mn(Te,it,je,ct),Jt=tn.prefixCls,cn=tn.flattenColumns,Rn=tn.expandedRowClassName,Cn=tn.expandedRowRender,jn=tn.rowProps,On=tn.expanded,$n=tn.rowSupportExpand,br=ae.useState(!1),Dr=(0,be.Z)(br,2),pr=Dr[0],Xr=Dr[1];ae.useEffect(function(){On&&Xr(!0)},[On]);var uo=ae.createElement(Pt,(0,le.Z)({},jn,{"data-row-key":it,className:Ye()(Ce,"".concat(Jt,"-row"),"".concat(Jt,"-row-level-").concat(ct),jn==null?void 0:jn.className),style:(0,Ne.Z)((0,Ne.Z)({},De),jn==null?void 0:jn.style)}),cn.map(function(Zn,dr){var Zr=Zn.render,Po=Zn.dataIndex,io=Zn.className,Nr=Xn(tn,Zn,dr,ct,je),Co=Nr.key,Mo=Nr.fixedInfo,va=Nr.appendCellNode,Wo=Nr.additionalCellProps;return ae.createElement(Dt,(0,le.Z)({className:io,ellipsis:Zn.ellipsis,align:Zn.align,scope:Zn.rowScope,component:Zn.rowScope?At:Rt,prefixCls:Jt,key:Co,record:Te,index:je,renderIndex:We,dataIndex:Po,render:Zr,shouldCellUpdate:Zn.shouldCellUpdate},Mo,{appendNode:va,additionalProps:Wo}))})),rr;if($n&&(pr||On)){var yr=Cn(Te,je,ct+1,On),or=Rn&&Rn(Te,je,ct);rr=ae.createElement(Sn,{expanded:On,className:Ye()("".concat(Jt,"-expanded-row"),"".concat(Jt,"-expanded-row-level-").concat(ct+1),or),prefixCls:Jt,component:Pt,cellComponent:Rt,colSpan:cn.length,isEmpty:!1},yr)}return ae.createElement(ae.Fragment,null,uo,rr)}Pr.displayName="BodyRow";var ar=z(Pr);function ga(Ee){var Ce=Ee.columnKey,De=Ee.onColumnResize,Te=ae.useRef();return ae.useEffect(function(){Te.current&&De(Ce,Te.current.offsetWidth)},[]),ae.createElement(po.Z,{data:Ce},ae.createElement("td",{ref:Te,style:{padding:0,border:0,height:0}},ae.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function bo(Ee){var Ce=Ee.prefixCls,De=Ee.columnsKey,Te=Ee.onColumnResize;return ae.createElement("tr",{"aria-hidden":"true",className:"".concat(Ce,"-measure-row"),style:{height:0,fontSize:0}},ae.createElement(po.Z.Collection,{onBatchResize:function(We){We.forEach(function(it){var mt=it.data,ct=it.size;Te(mt,ct.offsetWidth)})}},De.map(function(je){return ae.createElement(ga,{key:je,columnKey:je,onColumnResize:Te})})))}function fr(Ee){var Ce=Ee.data,De=Ee.measureColumnWidth,Te=ge(ue,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),je=Te.prefixCls,We=Te.getComponent,it=Te.onColumnResize,mt=Te.flattenColumns,ct=Te.getRowKey,Pt=Te.expandedKeys,Rt=Te.childrenColumnName,At=Te.emptyNode,tn=Wn(Ce,Rt,Pt,ct),Jt=ae.useRef({renderWithProps:!1}),cn=We(["body","wrapper"],"tbody"),Rn=We(["body","row"],"tr"),Cn=We(["body","cell"],"td"),jn=We(["body","cell"],"th"),On;Ce.length?On=tn.map(function(br,Dr){var pr=br.record,Xr=br.indent,uo=br.index,rr=ct(pr,Dr);return ae.createElement(ar,{key:rr,rowKey:rr,record:pr,index:Dr,renderIndex:uo,rowComponent:Rn,cellComponent:Cn,scopeCellComponent:jn,getRowKey:ct,indent:Xr})}):On=ae.createElement(Sn,{expanded:!0,className:"".concat(je,"-placeholder"),prefixCls:je,component:Rn,cellComponent:Cn,colSpan:mt.length,isEmpty:!0},At);var $n=Ln(mt);return ae.createElement(xt.Provider,{value:Jt.current},ae.createElement(cn,{className:"".concat(je,"-tbody")},De&&ae.createElement(bo,{prefixCls:je,columnsKey:$n,onColumnResize:it}),On))}fr.displayName="Body";var Qr=z(fr),ko=["expandable"],Go="RC_TABLE_INTERNAL_COL_DEFINE";function on(Ee){var Ce=Ee.expandable,De=(0,Wt.Z)(Ee,ko),Te;return"expandable"in Ee?Te=(0,Ne.Z)((0,Ne.Z)({},De),Ce):Te=De,Te.showExpandColumn===!1&&(Te.expandIconColumnIndex=-1),Te}var sa=["columnType"];function Za(Ee){for(var Ce=Ee.colWidths,De=Ee.columns,Te=Ee.columCount,je=[],We=Te||De.length,it=!1,mt=We-1;mt>=0;mt-=1){var ct=Ce[mt],Pt=De&&De[mt],Rt=Pt&&Pt[Go];if(ct||Rt||it){var At=Rt||{},tn=At.columnType,Jt=(0,Wt.Z)(At,sa);je.unshift(ae.createElement("col",(0,le.Z)({key:mt,style:{width:ct}},Jt))),it=!0}}return ae.createElement("colgroup",null,je)}var Pa=Za,so=ee(74902),ni=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Pn(Ee,Ce){return(0,ae.useMemo)(function(){for(var De=[],Te=0;Te<Ce;Te+=1){var je=Ee[Te];if(je!==void 0)De[Te]=je;else return null}return De},[Ee.join("_"),Ce])}var mr=ae.forwardRef(function(Ee,Ce){var De=Ee.className,Te=Ee.noData,je=Ee.columns,We=Ee.flattenColumns,it=Ee.colWidths,mt=Ee.columCount,ct=Ee.stickyOffsets,Pt=Ee.direction,Rt=Ee.fixHeader,At=Ee.stickyTopOffset,tn=Ee.stickyBottomOffset,Jt=Ee.stickyClassName,cn=Ee.onScroll,Rn=Ee.maxContentScroll,Cn=Ee.children,jn=(0,Wt.Z)(Ee,ni),On=ge(ue,["prefixCls","scrollbarSize","isSticky"]),$n=On.prefixCls,br=On.scrollbarSize,Dr=On.isSticky,pr=Dr&&!Rt?0:br,Xr=ae.useRef(null),uo=ae.useCallback(function(io){Hr(Ce,io),Hr(Xr,io)},[]);ae.useEffect(function(){var io;function Nr(Co){var Mo=Co,va=Mo.currentTarget,Wo=Mo.deltaX;Wo&&(cn({currentTarget:va,scrollLeft:va.scrollLeft+Wo}),Co.preventDefault())}return(io=Xr.current)===null||io===void 0||io.addEventListener("wheel",Nr),function(){var Co;(Co=Xr.current)===null||Co===void 0||Co.removeEventListener("wheel",Nr)}},[]);var rr=ae.useMemo(function(){return We.every(function(io){return io.width})},[We]),yr=We[We.length-1],or={fixed:yr?yr.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($n,"-cell-scrollbar")}}},Zn=(0,ae.useMemo)(function(){return pr?[].concat((0,so.Z)(je),[or]):je},[pr,je]),dr=(0,ae.useMemo)(function(){return pr?[].concat((0,so.Z)(We),[or]):We},[pr,We]),Zr=(0,ae.useMemo)(function(){var io=ct.right,Nr=ct.left;return(0,Ne.Z)((0,Ne.Z)({},ct),{},{left:Pt==="rtl"?[].concat((0,so.Z)(Nr.map(function(Co){return Co+pr})),[0]):Nr,right:Pt==="rtl"?io:[].concat((0,so.Z)(io.map(function(Co){return Co+pr})),[0]),isSticky:Dr})},[pr,ct,Dr]),Po=Pn(it,mt);return ae.createElement("div",{style:(0,Ne.Z)({overflow:"hidden"},Dr?{top:At,bottom:tn}:{}),ref:uo,className:Ye()(De,(0,xe.Z)({},Jt,!!Jt))},ae.createElement("table",{style:{tableLayout:"fixed",visibility:Te||Po?null:"hidden"}},(!Te||!Rn||rr)&&ae.createElement(Pa,{colWidths:Po?[].concat((0,so.Z)(Po),[pr]):[],columCount:mt+1,columns:dr}),Cn((0,Ne.Z)((0,Ne.Z)({},jn),{},{stickyOffsets:Zr,columns:Zn,flattenColumns:dr}))))});mr.displayName="FixedHolder";var tr=ae.memo(mr);function er(Ee){var Ce=Ee.cells,De=Ee.stickyOffsets,Te=Ee.flattenColumns,je=Ee.rowComponent,We=Ee.cellComponent,it=Ee.tdCellComponent,mt=Ee.onHeaderRow,ct=Ee.index,Pt=ge(ue,["prefixCls","direction"]),Rt=Pt.prefixCls,At=Pt.direction,tn;mt&&(tn=mt(Ce.map(function(cn){return cn.column}),ct));var Jt=Ln(Ce.map(function(cn){return cn.column}));return ae.createElement(je,tn,Ce.map(function(cn,Rn){var Cn=cn.column,jn=tt(cn.colStart,cn.colEnd,Te,De,At,Cn),On;return Cn&&Cn.onHeaderCell&&(On=cn.column.onHeaderCell(Cn)),ae.createElement(Dt,(0,le.Z)({},cn,{scope:Cn.title?cn.colSpan>1?"colgroup":"col":null,ellipsis:Cn.ellipsis,align:Cn.align,component:Cn.title?We:it,prefixCls:Rt,key:Jt[Rn]},jn,{additionalProps:On,rowType:"header"}))}))}er.displayName="HeaderRow";var $o=er;function ha(Ee){var Ce=[];function De(it,mt){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ce[ct]=Ce[ct]||[];var Pt=mt,Rt=it.filter(Boolean).map(function(At){var tn={key:At.key,className:At.className||"",children:At.title,column:At,colStart:Pt},Jt=1,cn=At.children;return cn&&cn.length>0&&(Jt=De(cn,Pt,ct+1).reduce(function(Rn,Cn){return Rn+Cn},0),tn.hasSubColumns=!0),"colSpan"in At&&(Jt=At.colSpan),"rowSpan"in At&&(tn.rowSpan=At.rowSpan),tn.colSpan=Jt,tn.colEnd=tn.colStart+Jt-1,Ce[ct].push(tn),Pt+=Jt,Jt});return Rt}De(Ee,0);for(var Te=Ce.length,je=function(mt){Ce[mt].forEach(function(ct){!("rowSpan"in ct)&&!ct.hasSubColumns&&(ct.rowSpan=Te-mt)})},We=0;We<Te;We+=1)je(We);return Ce}function ba(Ee){var Ce=Ee.stickyOffsets,De=Ee.columns,Te=Ee.flattenColumns,je=Ee.onHeaderRow,We=ge(ue,["prefixCls","getComponent"]),it=We.prefixCls,mt=We.getComponent,ct=ae.useMemo(function(){return ha(De)},[De]),Pt=mt(["header","wrapper"],"thead"),Rt=mt(["header","row"],"tr"),At=mt(["header","cell"],"th"),tn=mt(["header","cell"],"td");return ae.createElement(Pt,{className:"".concat(it,"-thead")},ct.map(function(Jt,cn){var Rn=ae.createElement($o,{key:cn,flattenColumns:Te,cells:Jt,stickyOffsets:Ce,rowComponent:Rt,cellComponent:At,tdCellComponent:tn,onHeaderRow:je,index:cn});return Rn}))}var Ha=z(ba);function ri(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},De=[];return ae.Children.forEach(Ee,function(Te){Te==null&&!Ce.keepEmpty||(Array.isArray(Te)?De=De.concat(ri(Te)):(0,jr.isFragment)(Te)&&Te.props?De=De.concat(ri(Te.props.children,Ce)):De.push(Te))}),De}function gt(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ce=="number"?Ce:Ce.endsWith("%")?Ee*parseFloat(Ce)/100:null}function dt(Ee,Ce){return ae.useMemo(function(){if(Ce&&Ce>0){var De=0,Te=0;Ee.forEach(function(Pt){var Rt=gt(Ce,Pt.width);Rt?De+=Rt:Te+=1});var je=Ce-De,We=Te,it=je/Te,mt=0,ct=Ee.map(function(Pt){var Rt=(0,Ne.Z)({},Pt),At=gt(Ce,Rt.width);if(At)Rt.width=At;else{var tn=Math.floor(it);Rt.width=We===1?je:tn,je-=tn,We-=1}return mt+=Rt.width,Rt});return[ct,mt]}return[Ee,Ce]},[Ee,Ce])}var Tt=["children"],Yt=["fixed"];function yn(Ee){return ri(Ee).filter(function(Ce){return ae.isValidElement(Ce)}).map(function(Ce){var De=Ce.key,Te=Ce.props,je=Te.children,We=(0,Wt.Z)(Te,Tt),it=(0,Ne.Z)({key:De},We);return je&&(it.children=yn(je)),it})}function ir(Ee){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ee.filter(function(De){return De&&(0,we.Z)(De)==="object"}).reduce(function(De,Te,je){var We=Te.fixed,it=We===!0?"left":We,mt="".concat(Ce,"-").concat(je),ct=Te.children;return ct&&ct.length>0?[].concat((0,so.Z)(De),(0,so.Z)(ir(ct,mt).map(function(Pt){return(0,Ne.Z)({fixed:it},Pt)}))):[].concat((0,so.Z)(De),[(0,Ne.Z)((0,Ne.Z)({key:mt},Te),{},{fixed:it})])},[])}function Er(Ee){for(var Ce=!0,De=0;De<Ee.length;De+=1){var Te=Ee[De];if(Ce&&Te.fixed!=="left")Ce=!1;else if(!Ce&&Te.fixed==="left"){warning(!1,"Index ".concat(De-1," of `columns` missing `fixed='left'` prop."));break}}for(var je=!0,We=Ee.length-1;We>=0;We-=1){var it=Ee[We];if(je&&it.fixed!=="right")je=!1;else if(!je&&it.fixed==="right"){warning(!1,"Index ".concat(We+1," of `columns` missing `fixed='right'` prop."));break}}}function Tr(Ee){return Ee.map(function(Ce){var De=Ce.fixed,Te=(0,Wt.Z)(Ce,Yt),je=De;return De==="left"?je="right":De==="right"&&(je="left"),(0,Ne.Z)({fixed:je},Te)})}function _r(Ee,Ce){var De=Ee.prefixCls,Te=Ee.columns,je=Ee.children,We=Ee.expandable,it=Ee.expandedKeys,mt=Ee.columnTitle,ct=Ee.getRowKey,Pt=Ee.onTriggerExpand,Rt=Ee.expandIcon,At=Ee.rowExpandable,tn=Ee.expandIconColumnIndex,Jt=Ee.direction,cn=Ee.expandRowByClick,Rn=Ee.columnWidth,Cn=Ee.fixed,jn=Ee.scrollWidth,On=ae.useMemo(function(){return Te||yn(je)},[Te,je]),$n=ae.useMemo(function(){if(We){var yr,or=On.slice();if(!or.includes(te)){var Zn=tn||0;Zn>=0&&or.splice(Zn,0,te)}var dr=or.indexOf(te);or=or.filter(function(Nr,Co){return Nr!==te||Co===dr});var Zr=On[dr],Po;(Cn==="left"||Cn)&&!tn?Po="left":(Cn==="right"||Cn)&&tn===On.length?Po="right":Po=Zr?Zr.fixed:null;var io=(yr={},(0,xe.Z)(yr,Go,{className:"".concat(De,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,xe.Z)(yr,"title",mt),(0,xe.Z)(yr,"fixed",Po),(0,xe.Z)(yr,"className","".concat(De,"-row-expand-icon-cell")),(0,xe.Z)(yr,"width",Rn),(0,xe.Z)(yr,"render",function(Co,Mo,va){var Wo=ct(Mo,va),za=it.has(Wo),Ua=At?At(Mo):!0,fo=Rt({prefixCls:De,expanded:za,expandable:Ua,record:Mo,onExpand:Pt});return cn?ae.createElement("span",{onClick:function(Yo){return Yo.stopPropagation()}},fo):fo}),yr);return or.map(function(Nr){return Nr===te?io:Nr})}return On.filter(function(Nr){return Nr!==te})},[We,On,ct,it,Rt,Jt]),br=ae.useMemo(function(){var yr=$n;return Ce&&(yr=Ce(yr)),yr.length||(yr=[{render:function(){return null}}]),yr},[Ce,$n,Jt]),Dr=ae.useMemo(function(){return Jt==="rtl"?Tr(ir(br)):ir(br)},[br,Jt,jn]),pr=dt(Dr,jn),Xr=(0,be.Z)(pr,2),uo=Xr[0],rr=Xr[1];return[br,uo,rr]}var yo=_r;function Do(Ee){var Ce,De=Ee.prefixCls,Te=Ee.record,je=Ee.onExpand,We=Ee.expanded,it=Ee.expandable,mt="".concat(De,"-row-expand-icon");if(!it)return ae.createElement("span",{className:Ye()(mt,"".concat(De,"-row-spaced"))});var ct=function(Rt){je(Te,Rt),Rt.stopPropagation()};return ae.createElement("span",{className:Ye()(mt,(Ce={},(0,xe.Z)(Ce,"".concat(De,"-row-expanded"),We),(0,xe.Z)(Ce,"".concat(De,"-row-collapsed"),!We),Ce)),onClick:ct})}function Bo(Ee,Ce,De){var Te=[];function je(We){(We||[]).forEach(function(it,mt){Te.push(Ce(it,mt)),je(it[De])})}return je(Ee),Te}function fa(Ee,Ce,De){var Te=on(Ee),je=Te.expandIcon,We=Te.expandedRowKeys,it=Te.defaultExpandedRowKeys,mt=Te.defaultExpandAllRows,ct=Te.expandedRowRender,Pt=Te.onExpand,Rt=Te.onExpandedRowsChange,At=Te.childrenColumnName,tn=je||Do,Jt=At||"children",cn=ae.useMemo(function(){return ct?"row":Ee.expandable&&Ee.internalHooks===fe&&Ee.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Dr){return Dr&&(0,we.Z)(Dr)==="object"&&Dr[Jt]})?"nest":!1},[!!ct,Ce]),Rn=ae.useState(function(){return it||(mt?Bo(Ce,De,Jt):[])}),Cn=(0,be.Z)(Rn,2),jn=Cn[0],On=Cn[1],$n=ae.useMemo(function(){return new Set(We||jn||[])},[We,jn]),br=ae.useCallback(function(Dr){var pr=De(Dr,Ce.indexOf(Dr)),Xr,uo=$n.has(pr);uo?($n.delete(pr),Xr=(0,so.Z)($n)):Xr=[].concat((0,so.Z)($n),[pr]),On(Xr),Pt&&Pt(!uo,Dr),Rt&&Rt(Xr)},[De,$n,Ce,Pt,Rt]);return[Te,cn,$n,tn,Jt,br]}function yt(Ee,Ce,De,Te){var je=Ee.map(function(We,it){return tt(it,it,Ee,Ce,De,Te==null?void 0:Te[it])});return lt(function(){return je},[je],function(We,it){return!Ct(We,it)})}function _t(Ee){var Ce=(0,ae.useRef)(Ee),De=(0,ae.useState)({}),Te=(0,be.Z)(De,2),je=Te[1],We=(0,ae.useRef)(null),it=(0,ae.useRef)([]);function mt(ct){it.current.push(ct);var Pt=Promise.resolve();We.current=Pt,Pt.then(function(){if(We.current===Pt){var Rt=it.current,At=Ce.current;it.current=[],Rt.forEach(function(tn){Ce.current=tn(Ce.current)}),We.current=null,At!==Ce.current&&je({})}})}return(0,ae.useEffect)(function(){return function(){We.current=null}},[]),[Ce.current,mt]}function jt(Ee){var Ce=(0,ae.useRef)(Ee||null),De=(0,ae.useRef)();function Te(){window.clearTimeout(De.current)}function je(it){Ce.current=it,Te(),De.current=window.setTimeout(function(){Ce.current=null,De.current=void 0},100)}function We(){return Ce.current}return(0,ae.useEffect)(function(){return Te},[]),[je,We]}function Ue(){var Ee=ae.useState(-1),Ce=(0,be.Z)(Ee,2),De=Ce[0],Te=Ce[1],je=ae.useState(-1),We=(0,be.Z)(je,2),it=We[0],mt=We[1],ct=ae.useCallback(function(Pt,Rt){Te(Pt),mt(Rt)},[]);return[De,it,ct]}var Ut=nr()?window:null;function Xt(Ee,Ce){var De=(0,we.Z)(Ee)==="object"?Ee:{},Te=De.offsetHeader,je=Te===void 0?0:Te,We=De.offsetSummary,it=We===void 0?0:We,mt=De.offsetScroll,ct=mt===void 0?0:mt,Pt=De.getContainer,Rt=Pt===void 0?function(){return Ut}:Pt,At=Rt()||Ut;return ae.useMemo(function(){var tn=!!Ee;return{isSticky:tn,stickyClassName:tn?"".concat(Ce,"-sticky-holder"):"",offsetHeader:je,offsetSummary:it,offsetScroll:ct,container:At}},[ct,je,it,Ce,At])}function pn(Ee,Ce,De){var Te=(0,ae.useMemo)(function(){for(var je=[],We=[],it=0,mt=0,ct=0;ct<Ce;ct+=1)if(De==="rtl"){We[ct]=mt,mt+=Ee[ct]||0;var Pt=Ce-ct-1;je[Pt]=it,it+=Ee[Pt]||0}else{je[ct]=it,it+=Ee[ct]||0;var Rt=Ce-ct-1;We[Rt]=mt,mt+=Ee[Rt]||0}return{left:je,right:We}},[Ee,Ce,De]);return Te}var Lt=pn;function Ft(Ee){var Ce=Ee.className,De=Ee.children;return ae.createElement("div",{className:Ce},De)}var Ot=Ft;function vn(Ee,Ce,De,Te){var je=me.unstable_batchedUpdates?function(it){me.unstable_batchedUpdates(De,it)}:De;return Ee!=null&&Ee.addEventListener&&Ee.addEventListener(Ce,je,Te),{remove:function(){Ee!=null&&Ee.removeEventListener&&Ee.removeEventListener(Ce,je,Te)}}}var Fn=/margin|padding|width|height|max|min|offset/,Kn={left:!0,top:!0},kn={cssFloat:1,styleFloat:1,float:1};function Qn(Ee){return Ee.nodeType===1?Ee.ownerDocument.defaultView.getComputedStyle(Ee,null):{}}function sr(Ee,Ce,De){if(Ce=Ce.toLowerCase(),De==="auto"){if(Ce==="height")return Ee.offsetHeight;if(Ce==="width")return Ee.offsetWidth}return Ce in Kn||(Kn[Ce]=Fn.test(Ce)),Kn[Ce]?parseFloat(De)||0:De}function xr(Ee,Ce){var De=arguments.length,Te=Qn(Ee);return Ce=kn[Ce]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":Ce,De===1?Te:sr(Ee,Ce,Te[Ce]||Ee.style[Ce])}function Bt(Ee,Ce,De){var Te=arguments.length;if(Ce=kn[Ce]?"cssFloat"in Ee.style?"cssFloat":"styleFloat":Ce,Te===3)return typeof De=="number"&&Fn.test(Ce)&&(De="".concat(De,"px")),Ee.style[Ce]=De,De;for(var je in Ce)Ce.hasOwnProperty(je)&&Bt(Ee,je,Ce[je]);return Qn(Ee)}function Kt(Ee){return Ee===document.body?document.documentElement.clientWidth:Ee.offsetWidth}function rn(Ee){return Ee===document.body?window.innerHeight||document.documentElement.clientHeight:Ee.offsetHeight}function an(){var Ee=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ce=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ee,height:Ce}}function Vn(){var Ee=document.documentElement.clientWidth,Ce=window.innerHeight||document.documentElement.clientHeight;return{width:Ee,height:Ce}}function lr(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function $e(Ee){var Ce=Ee.getBoundingClientRect(),De=document.documentElement;return{left:Ce.left+(window.pageXOffset||De.scrollLeft)-(De.clientLeft||document.body.clientLeft||0),top:Ce.top+(window.pageYOffset||De.scrollTop)-(De.clientTop||document.body.clientTop||0)}}var Fe=function(Ce,De){var Te,je,We=Ce.scrollBodyRef,it=Ce.onScroll,mt=Ce.offsetScroll,ct=Ce.container,Pt=ge(ue,"prefixCls"),Rt=((Te=We.current)===null||Te===void 0?void 0:Te.scrollWidth)||0,At=((je=We.current)===null||je===void 0?void 0:je.clientWidth)||0,tn=Rt&&At*(At/Rt),Jt=ae.useRef(),cn=_t({scrollLeft:0,isHiddenScrollBar:!1}),Rn=(0,be.Z)(cn,2),Cn=Rn[0],jn=Rn[1],On=ae.useRef({delta:0,x:0}),$n=ae.useState(!1),br=(0,be.Z)($n,2),Dr=br[0],pr=br[1],Xr=function(){pr(!1)},uo=function(dr){dr.persist(),On.current.delta=dr.pageX-Cn.scrollLeft,On.current.x=0,pr(!0),dr.preventDefault()},rr=function(dr){var Zr,Po=dr||((Zr=window)===null||Zr===void 0?void 0:Zr.event),io=Po.buttons;if(!Dr||io===0){Dr&&pr(!1);return}var Nr=On.current.x+dr.pageX-On.current.x-On.current.delta;Nr<=0&&(Nr=0),Nr+tn>=At&&(Nr=At-tn),it({scrollLeft:Nr/At*(Rt+2)}),On.current.x=dr.pageX},yr=function(){if(We.current){var dr=$e(We.current).top,Zr=dr+We.current.offsetHeight,Po=ct===window?document.documentElement.scrollTop+window.innerHeight:$e(ct).top+ct.clientHeight;Zr-Pe()<=Po||dr>=Po-mt?jn(function(io){return(0,Ne.Z)((0,Ne.Z)({},io),{},{isHiddenScrollBar:!0})}):jn(function(io){return(0,Ne.Z)((0,Ne.Z)({},io),{},{isHiddenScrollBar:!1})})}},or=function(dr){jn(function(Zr){return(0,Ne.Z)((0,Ne.Z)({},Zr),{},{scrollLeft:dr/Rt*At||0})})};return ae.useImperativeHandle(De,function(){return{setScrollLeft:or}}),ae.useEffect(function(){var Zn=vn(document.body,"mouseup",Xr,!1),dr=vn(document.body,"mousemove",rr,!1);return yr(),function(){Zn.remove(),dr.remove()}},[tn,Dr]),ae.useEffect(function(){var Zn=vn(ct,"scroll",yr,!1),dr=vn(window,"resize",yr,!1);return function(){Zn.remove(),dr.remove()}},[ct]),ae.useEffect(function(){Cn.isHiddenScrollBar||jn(function(Zn){var dr=We.current;return dr?(0,Ne.Z)((0,Ne.Z)({},Zn),{},{scrollLeft:dr.scrollLeft/dr.scrollWidth*dr.clientWidth}):Zn})},[Cn.isHiddenScrollBar]),Rt<=At||!tn||Cn.isHiddenScrollBar?null:ae.createElement("div",{style:{height:Pe(),width:At,bottom:mt},className:"".concat(Pt,"-sticky-scroll")},ae.createElement("div",{onMouseDown:uo,ref:Jt,className:Ye()("".concat(Pt,"-sticky-scroll-bar"),(0,xe.Z)({},"".concat(Pt,"-sticky-scroll-bar-active"),Dr)),style:{width:"".concat(tn,"px"),transform:"translate3d(".concat(Cn.scrollLeft,"px, 0, 0)")}}))},nt=ae.forwardRef(Fe);function St(Ee){return null}var Mt=St;function Ht(Ee){return null}var dn=Ht,_n="rc-table",An=[],Un={};function Tn(){return"No Data"}function In(Ee){var Ce,De=(0,Ne.Z)({rowKey:"key",prefixCls:_n,emptyText:Tn},Ee),Te=De.prefixCls,je=De.className,We=De.rowClassName,it=De.style,mt=De.data,ct=De.rowKey,Pt=De.scroll,Rt=De.tableLayout,At=De.direction,tn=De.title,Jt=De.footer,cn=De.summary,Rn=De.caption,Cn=De.id,jn=De.showHeader,On=De.components,$n=De.emptyText,br=De.onRow,Dr=De.onHeaderRow,pr=De.internalHooks,Xr=De.transformColumns,uo=De.internalRefs,rr=De.tailor,yr=De.sticky,or=mt||An,Zn=!!or.length,dr=pr===fe,Zr=ae.useCallback(function(ia,Na){return qt(On,ia)||Na},[On]),Po=ae.useMemo(function(){return typeof ct=="function"?ct:function(ia){var Na=ia&&ia[ct];return Na}},[ct]),io=Zr(["body"]),Nr=Ue(),Co=(0,be.Z)(Nr,3),Mo=Co[0],va=Co[1],Wo=Co[2],za=fa(De,or,Po),Ua=(0,be.Z)(za,6),fo=Ua[0],Ya=Ua[1],Yo=Ua[2],Ia=Ua[3],Aa=Ua[4],Oi=Ua[5],Ur=Pt==null?void 0:Pt.x,Fr=ae.useState(0),Rr=(0,be.Z)(Fr,2),Cr=Rr[0],Xo=Rr[1],wr=yo((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},De),fo),{},{expandable:!!fo.expandedRowRender,columnTitle:fo.columnTitle,expandedKeys:Yo,getRowKey:Po,onTriggerExpand:Oi,expandIcon:Ia,expandIconColumnIndex:fo.expandIconColumnIndex,direction:At,scrollWidth:dr&&rr&&typeof Ur=="number"?Ur:null}),dr?Xr:null),ro=(0,be.Z)(wr,3),Uo=ro[0],No=ro[1],pi=ro[2],ui=pi!=null?pi:Ur,Vi=ae.useMemo(function(){return{columns:Uo,flattenColumns:No}},[Uo,No]),Xa=ae.useRef(),$i=ae.useRef(),Qa=ae.useRef(),Ii=ae.useRef(),Ls=ae.useRef(),ta=ae.useState(!1),aa=(0,be.Z)(ta,2),Ta=aa[0],qa=aa[1],ei=ae.useState(!1),Ao=(0,be.Z)(ei,2),bi=Ao[0],vi=Ao[1],ki=_t(new Map),ns=(0,be.Z)(ki,2),Yi=ns[0],Zs=ns[1],ss=Ln(No),Zi=ss.map(function(ia){return Yi.get(ia)}),Ni=ae.useMemo(function(){return Zi},[Zi.join("_")]),Ei=Lt(Ni,No.length,At),ti=Pt&&Hn(Pt.y),Ba=Pt&&Hn(ui)||!!fo.fixed,rs=Ba&&No.some(function(ia){var Na=ia.fixed;return Na}),xs=ae.useRef(),ms=Xt(yr,Te),os=ms.isSticky,rl=ms.offsetHeader,ml=ms.offsetSummary,Ho=ms.offsetScroll,La=ms.stickyClassName,hi=ms.container,Fa=ae.useMemo(function(){return cn==null?void 0:cn(or)},[cn,or]),Si=(ti||os)&&ae.isValidElement(Fa)&&Fa.type===un&&Fa.props.fixed,Ri,Ti,ls;ti&&(Ti={overflowY:"scroll",maxHeight:Pt.y}),Ba&&(Ri={overflowX:"auto"},ti||(Ti={overflowY:"hidden"}),ls={width:ui===!0?"auto":ui,minWidth:"100%"});var wl=ae.useCallback(function(ia,Na){Lr(Xa.current)&&Zs(function(Wi){if(Wi.get(ia)!==Na){var ps=new Map(Wi);return ps.set(ia,Na),ps}return Wi})},[]),Gl=jt(null),Ll=(0,be.Z)(Gl,2),$l=Ll[0],xl=Ll[1];function ol(ia,Na){Na&&(typeof Na=="function"?Na(ia):Na.scrollLeft!==ia&&(Na.scrollLeft=ia,Na.scrollLeft!==ia&&setTimeout(function(){Na.scrollLeft=ia},0)))}var Is=fn(function(ia){var Na=ia.currentTarget,Wi=ia.scrollLeft,ps=At==="rtl",vs=typeof Wi=="number"?Wi:Na.scrollLeft,Hl=Na||Un;if(!xl()||xl()===Hl){var _l;$l(Hl),ol(vs,$i.current),ol(vs,Qa.current),ol(vs,Ls.current),ol(vs,(_l=xs.current)===null||_l===void 0?void 0:_l.setScrollLeft)}var Pl=Na||$i.current;if(Pl){var bl=Pl.scrollWidth,El=Pl.clientWidth;if(bl===El){qa(!1),vi(!1);return}ps?(qa(-vs<bl-El),vi(-vs>0)):(qa(vs>0),vi(vs<bl-El))}}),Ml=function(){Ba&&Qa.current?Is({currentTarget:Qa.current}):(qa(!1),vi(!1))},Zl=function(Na){var Wi=Na.width;Wi!==Cr&&(Ml(),Xo(Xa.current?Xa.current.offsetWidth:Wi))},Al=ae.useRef(!1);ae.useEffect(function(){Al.current&&Ml()},[Ba,mt,Uo.length]),ae.useEffect(function(){Al.current=!0},[]);var Wl=ae.useState(0),Dl=(0,be.Z)(Wl,2),al=Dl[0],Ol=Dl[1],Kl=ae.useState(!0),Il=(0,be.Z)(Kl,2),Nl=Il[0],Vl=Il[1];ae.useEffect(function(){(!rr||!dr)&&(Qa.current instanceof Element?Ol(Oe(Qa.current).width):Ol(Oe(Ii.current).width)),Vl(se("position","sticky"))},[]),ae.useEffect(function(){dr&&uo&&(uo.body.current=Qa.current)});var Yl=ae.useCallback(function(ia){return ae.createElement(ae.Fragment,null,ae.createElement(Ha,ia),Si==="top"&&ae.createElement(sn,ia,Fa))},[Si,Fa]),Xl=ae.useCallback(function(ia){return ae.createElement(sn,ia,Fa)},[Fa]),Rl=Zr(["table"],"table"),il=ae.useMemo(function(){return Rt||(rs?ui==="max-content"?"auto":"fixed":ti||os||No.some(function(ia){var Na=ia.ellipsis;return Na})?"fixed":"auto")},[ti,rs,No,Rt,os]),pl,vl={colWidths:Ni,columCount:No.length,stickyOffsets:Ei,onHeaderRow:Dr,fixHeader:ti,scroll:Pt},Tl=ae.useMemo(function(){return Zn?null:typeof $n=="function"?$n():$n},[Zn,$n]),Bl=ae.createElement(Qr,{data:or,measureColumnWidth:ti||Ba||os}),Fl=ae.createElement(Pa,{colWidths:No.map(function(ia){var Na=ia.width;return Na}),columns:No}),kl=Rn!=null?ae.createElement("caption",{className:"".concat(Te,"-caption")},Rn):void 0,Ql=gr(De,{data:!0}),jl=gr(De,{aria:!0});if(ti||os){var Sl;typeof io=="function"?(Sl=io(or,{scrollbarSize:al,ref:Qa,onScroll:Is}),vl.colWidths=No.map(function(ia,Na){var Wi=ia.width,ps=Na===No.length-1?Wi-al:Wi;return typeof ps=="number"&&!Number.isNaN(ps)?ps:0})):Sl=ae.createElement("div",{style:(0,Ne.Z)((0,Ne.Z)({},Ri),Ti),onScroll:Is,ref:Qa,className:Ye()("".concat(Te,"-body"))},ae.createElement(Rl,(0,le.Z)({style:(0,Ne.Z)((0,Ne.Z)({},ls),{},{tableLayout:il})},jl),kl,Fl,Bl,!Si&&Fa&&ae.createElement(sn,{stickyOffsets:Ei,flattenColumns:No,columns:Uo},Fa)));var zl=(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({noData:!or.length,maxContentScroll:Ba&&ui==="max-content"},vl),Vi),{},{direction:At,stickyClassName:La,onScroll:Is});pl=ae.createElement(ae.Fragment,null,jn!==!1&&ae.createElement(tr,(0,le.Z)({},zl,{stickyTopOffset:rl,className:"".concat(Te,"-header"),ref:$i}),Yl),Sl,Si&&Si!=="top"&&ae.createElement(tr,(0,le.Z)({},zl,{stickyBottomOffset:ml,className:"".concat(Te,"-summary"),ref:Ls}),Xl),os&&ae.createElement(nt,{ref:xs,offsetScroll:Ho,scrollBodyRef:Qa,onScroll:Is,container:hi}))}else pl=ae.createElement("div",{style:(0,Ne.Z)((0,Ne.Z)({},Ri),Ti),className:Ye()("".concat(Te,"-content")),onScroll:Is,ref:Qa},ae.createElement(Rl,(0,le.Z)({style:(0,Ne.Z)((0,Ne.Z)({},ls),{},{tableLayout:il})},jl),kl,Fl,jn!==!1&&ae.createElement(Ha,(0,le.Z)({},vl,Vi)),Bl,Fa&&ae.createElement(sn,{stickyOffsets:Ei,flattenColumns:No,columns:Uo},Fa)));var yl=ae.createElement("div",(0,le.Z)({className:Ye()(Te,je,(Ce={},(0,xe.Z)(Ce,"".concat(Te,"-rtl"),At==="rtl"),(0,xe.Z)(Ce,"".concat(Te,"-ping-left"),Ta),(0,xe.Z)(Ce,"".concat(Te,"-ping-right"),bi),(0,xe.Z)(Ce,"".concat(Te,"-layout-fixed"),Rt==="fixed"),(0,xe.Z)(Ce,"".concat(Te,"-fixed-header"),ti),(0,xe.Z)(Ce,"".concat(Te,"-fixed-column"),rs),(0,xe.Z)(Ce,"".concat(Te,"-scroll-horizontal"),Ba),(0,xe.Z)(Ce,"".concat(Te,"-has-fix-left"),No[0]&&No[0].fixed),(0,xe.Z)(Ce,"".concat(Te,"-has-fix-right"),No[No.length-1]&&No[No.length-1].fixed==="right"),Ce)),style:it,id:Cn,ref:Xa},Ql),tn&&ae.createElement(Ot,{className:"".concat(Te,"-title")},tn(or)),ae.createElement("div",{ref:Ii,className:"".concat(Te,"-container")},pl),Jt&&ae.createElement(Ot,{className:"".concat(Te,"-footer")},Jt(or)));Ba&&(yl=ae.createElement(po.Z,{onResize:Zl},yl));var Ul=yt(No,Ei,At,Uo),Jl=ae.useMemo(function(){return{scrollX:ui,prefixCls:Te,getComponent:Zr,scrollbarSize:al,direction:At,fixedInfoList:Ul,isSticky:os,supportSticky:Nl,componentWidth:Cr,fixHeader:ti,fixColumn:rs,horizonScroll:Ba,tableLayout:il,rowClassName:We,expandedRowClassName:fo.expandedRowClassName,expandIcon:Ia,expandableType:Ya,expandRowByClick:fo.expandRowByClick,expandedRowRender:fo.expandedRowRender,onTriggerExpand:Oi,expandIconColumnIndex:fo.expandIconColumnIndex,indentSize:fo.indentSize,allColumnsFixedLeft:No.every(function(ia){return ia.fixed==="left"}),emptyNode:Tl,columns:Uo,flattenColumns:No,onColumnResize:wl,hoverStartRow:Mo,hoverEndRow:va,onHover:Wo,rowExpandable:fo.rowExpandable,onRow:br,getRowKey:Po,expandedKeys:Yo,childrenColumnName:Aa}},[ui,Te,Zr,al,At,Ul,os,Nl,Cr,ti,rs,Ba,il,We,fo.expandedRowClassName,Ia,Ya,fo.expandRowByClick,fo.expandedRowRender,Oi,fo.expandIconColumnIndex,fo.indentSize,Tl,Uo,No,wl,Mo,va,Wo,fo.rowExpandable,br,Po,Yo,Aa]);return ae.createElement(ue.Provider,{value:Jl},yl)}function Gn(Ee){return x(In,Ee)}var Br=Gn();Br.EXPAND_COLUMN=te,Br.INTERNAL_HOOKS=fe,Br.Column=Mt,Br.ColumnGroup=dn,Br.Summary=ln;var qr=Br,Eo=ee(73299),Yr=de(null),to=de(null);function Jr(Ee,Ce,De){var Te=Ce||1;return De[Ee+Te]-(De[Ee]||0)}function Ko(Ee){var Ce=Ee.rowInfo,De=Ee.column,Te=Ee.colIndex,je=Ee.indent,We=Ee.index,it=Ee.renderIndex,mt=Ee.record,ct=Ee.style,Pt=Ee.className,Rt=Ee.inverse,At=Ee.getHeight,tn=De.render,Jt=De.dataIndex,cn=De.className,Rn=De.width,Cn=ge(to,["columnsOffset"]),jn=Cn.columnsOffset,On=Xn(Ce,De,Te,je,We),$n=On.key,br=On.fixedInfo,Dr=On.appendCellNode,pr=On.additionalCellProps,Xr=pr.style,uo=pr.colSpan,rr=uo===void 0?1:uo,yr=pr.rowSpan,or=yr===void 0?1:yr,Zn=Te-1,dr=Jr(Zn,rr,jn),Zr=rr>1?Rn-dr:0,Po=(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},Xr),ct),{},{flex:"0 0 ".concat(dr,"px"),width:"".concat(dr,"px"),marginRight:Zr,pointerEvents:"auto"}),io=ae.useMemo(function(){return Rt?or<=1:rr===0||or===0||or>1},[or,rr,Rt]);io?Po.visibility="hidden":Rt&&(Po.height=At==null?void 0:At(or));var Nr=io?function(){return null}:tn,Co={};return(or===0||rr===0)&&(Co.rowSpan=1,Co.colSpan=1),ae.createElement(Dt,(0,le.Z)({className:Ye()(cn,Pt),ellipsis:De.ellipsis,align:De.align,scope:De.rowScope,component:"div",prefixCls:Ce.prefixCls,key:$n,record:mt,index:We,renderIndex:it,dataIndex:Jt,render:Nr,shouldCellUpdate:De.shouldCellUpdate},br,{appendNode:Dr,additionalProps:(0,Ne.Z)((0,Ne.Z)({},pr),{},{style:Po},Co)}))}var Mr=Ko,no=["data","index","className","rowKey","style","extra","getHeight"],Lo=ae.forwardRef(function(Ee,Ce){var De=Ee.data,Te=Ee.index,je=Ee.className,We=Ee.rowKey,it=Ee.style,mt=Ee.extra,ct=Ee.getHeight,Pt=(0,Wt.Z)(Ee,no),Rt=De.record,At=De.indent,tn=De.index,Jt=ge(ue,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),cn=Jt.scrollX,Rn=Jt.flattenColumns,Cn=Jt.prefixCls,jn=Jt.fixColumn,On=Jt.componentWidth,$n=Mn(Rt,We,Te,At),br=$n.rowSupportExpand,Dr=$n.expanded,pr=$n.rowProps,Xr=$n.expandedRowRender,uo=$n.expandedRowClassName,rr;if(br&&Dr){var yr=Xr(Rt,Te,At+1,Dr),or=uo==null?void 0:uo(Rt,Te,At),Zn={};jn&&(Zn={style:(0,xe.Z)({},"--virtual-width","".concat(On,"px"))});var dr="".concat(Cn,"-expanded-row-cell");rr=ae.createElement("div",{className:Ye()("".concat(Cn,"-expanded-row"),"".concat(Cn,"-expanded-row-level-").concat(At+1),or)},ae.createElement(Dt,{component:"div",prefixCls:Cn,className:Ye()(dr,(0,xe.Z)({},"".concat(dr,"-fixed"),jn)),additionalProps:Zn},yr))}var Zr=(0,Ne.Z)((0,Ne.Z)({},it),{},{width:cn});mt&&(Zr.position="absolute",Zr.pointerEvents="none");var Po=ae.createElement("div",(0,le.Z)({},pr,Pt,{ref:br?null:Ce,className:Ye()(je,"".concat(Cn,"-row"),pr==null?void 0:pr.className,(0,xe.Z)({},"".concat(Cn,"-row-extra"),mt)),style:(0,Ne.Z)((0,Ne.Z)({},Zr),pr==null?void 0:pr.style)}),Rn.map(function(io,Nr){return ae.createElement(Mr,{key:Nr,rowInfo:$n,column:io,colIndex:Nr,indent:At,index:Te,renderIndex:tn,record:Rt,inverse:mt,getHeight:ct})}));return br?ae.createElement("div",{ref:Ce},Po,rr):Po}),la=z(Lo),So=la,na=ae.forwardRef(function(Ee,Ce){var De=Ee.data,Te=Ee.onScroll,je=ge(ue,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),We=je.flattenColumns,it=je.onColumnResize,mt=je.getRowKey,ct=je.expandedKeys,Pt=je.prefixCls,Rt=je.childrenColumnName,At=je.emptyNode,tn=je.scrollX,Jt=ge(Yr),cn=Jt.scrollY,Rn=Jt.listItemHeight,Cn=ae.useRef(),jn=Wn(De,Rt,ct,mt),On=ae.useMemo(function(){var rr=0;return We.map(function(yr){var or=yr.width,Zn=yr.key;return rr+=or,[Zn,or,rr]})},[We]),$n=ae.useMemo(function(){return On.map(function(rr){return rr[2]})},[On]);ae.useEffect(function(){On.forEach(function(rr){var yr=(0,be.Z)(rr,2),or=yr[0],Zn=yr[1];it(or,Zn)})},[On]),ae.useImperativeHandle(Ce,function(){var rr={};return Object.defineProperty(rr,"scrollLeft",{get:function(){var or;return((or=Cn.current)===null||or===void 0?void 0:or.getScrollInfo().x)||0},set:function(or){var Zn;(Zn=Cn.current)===null||Zn===void 0||Zn.scrollTo({left:or})}}),rr});var br=function(yr,or){var Zn,dr=(Zn=jn[or])===null||Zn===void 0?void 0:Zn.record,Zr=yr.onCell;if(Zr){var Po,io=Zr(dr,or);return(Po=io==null?void 0:io.rowSpan)!==null&&Po!==void 0?Po:1}return 1},Dr=function(yr){var or=yr.start,Zn=yr.end,dr=yr.getSize,Zr=yr.offsetY;if(Zn<0)return null;for(var Po=We.filter(function(Ur){return br(Ur,or)===0}),io=or,Nr=function(Fr){if(Po=Po.filter(function(Rr){return br(Rr,Fr)===0}),!Po.length)return io=Fr,"break"},Co=or;Co>=0;Co-=1){var Mo=Nr(Co);if(Mo==="break")break}for(var va=We.filter(function(Ur){return br(Ur,Zn)!==1}),Wo=Zn,za=function(Fr){if(va=va.filter(function(Rr){return br(Rr,Fr)!==1}),!va.length)return Wo=Math.max(Fr-1,Zn),"break"},Ua=Zn;Ua<jn.length;Ua+=1){var fo=za(Ua);if(fo==="break")break}for(var Ya=[],Yo=function(Fr){var Rr=jn[Fr];if(!Rr)return"continue";We.some(function(Cr){return br(Cr,Fr)>1})&&Ya.push(Fr)},Ia=io;Ia<=Wo;Ia+=1)var Aa=Yo(Ia);var Oi=Ya.map(function(Ur){var Fr=jn[Ur],Rr=mt(Fr.record,Ur),Cr=function(ro){var Uo=Ur+ro-1,No=mt(jn[Uo].record,Uo),pi=dr(Rr,No);return pi.bottom-pi.top},Xo=dr(Rr);return ae.createElement(So,{key:Ur,data:Fr,rowKey:Rr,index:Ur,style:{top:-Zr+Xo.top},extra:!0,getHeight:Cr})});return Oi},pr=ae.useMemo(function(){return{columnsOffset:$n}},[$n]),Xr="".concat(Pt,"-tbody"),uo;return jn.length?uo=ae.createElement(Eo.Z,{fullHeight:!1,ref:Cn,className:Ye()(Xr,"".concat(Xr,"-virtual")),height:cn,itemHeight:Rn||24,data:jn,itemKey:function(yr){return mt(yr.record)},scrollWidth:tn,onVirtualScroll:function(yr){var or=yr.x;Te({scrollLeft:or})},extraRender:Dr},function(rr,yr,or){var Zn=mt(rr.record,yr);return ae.createElement(So,(0,le.Z)({data:rr,rowKey:Zn,index:yr},or))}):uo=ae.createElement("div",{className:Ye()("".concat(Pt,"-placeholder"))},ae.createElement(Dt,{component:"div",prefixCls:Pt},At)),ae.createElement(to.Provider,{value:pr},uo)}),jo=z(na),Ga=jo,Ea=function(Ce,De){var Te=De.ref,je=De.onScroll;return ae.createElement(Ga,{ref:Te,data:Ce,onScroll:je})},ma=100;function _o(Ee){var Ce=Ee.columns,De=Ee.scroll,Te=Ee.prefixCls,je=Te===void 0?_n:Te,We=Ee.className,it=Ee.listItemHeight,mt=De||{},ct=mt.x,Pt=mt.y;typeof ct!="number"&&(ct=((Ce||[]).length+1)*ma),typeof Pt!="number"&&(Pt=500);var Rt=ae.useMemo(function(){return{scrollY:Pt,listItemHeight:it}},[Pt,it]);return ae.createElement(Yr.Provider,{value:Rt},ae.createElement(qr,(0,le.Z)({},Ee,{className:Ye()(We,"".concat(je,"-virtual")),scroll:(0,Ne.Z)((0,Ne.Z)({},De),{},{x:ct}),components:{body:Ea},columns:Ce,internalHooks:fe,tailor:!0})))}function wo(Ee){return x(_o,Ee)}var Vo=wo(),pa=null;function Da(Ee){return null}var Io=Da;function xa(Ee){return null}var Ma=xa,$a=ee(10366),Ra=ee(58375),Oo=ee(53124),Wa=ee(88258),ea=ee(98675),Ca=ee(25378),ii=ee(24457),mi=ee(28452),Sa=ee(57953),ca=ee(46605);function oi(Ee){return function(De){let{prefixCls:Te,onExpand:je,record:We,expanded:it,expandable:mt}=De;const ct=`${Te}-row-expand-icon`;return ae.createElement("button",{type:"button",onClick:Pt=>{je(We,Pt),Pt.stopPropagation()},className:Ye()(ct,{[`${ct}-spaced`]:!mt,[`${ct}-expanded`]:mt&&it,[`${ct}-collapsed`]:mt&&!it}),"aria-label":it?Ee.collapse:Ee.expand,"aria-expanded":it})}}var ji=oi;function Ci(Ee,Ce){return"key"in Ee&&Ee.key!==void 0&&Ee.key!==null?Ee.key:Ee.dataIndex?Array.isArray(Ee.dataIndex)?Ee.dataIndex.join("."):Ee.dataIndex:Ce}function wi(Ee,Ce){return Ce?`${Ce}-${Ee}`:`${Ee}`}function Li(Ee,Ce){return typeof Ee=="function"?Ee(Ce):Ee}function xi(Ee,Ce){const De=Li(Ee,Ce);return Object.prototype.toString.call(De)==="[object Object]"?"":De}var di={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"},si=di,zi=ee(74643),Mi=function(Ce,De){return ae.createElement(zi.Z,(0,le.Z)({},Ce,{ref:De,icon:si}))},Ms=ae.forwardRef(Mi),cs=ee(7699),Xi=ee(57838);function us(Ee){const Ce=ae.useRef(Ee),De=(0,Xi.Z)();return[()=>Ce.current,Te=>{Ce.current=Te,De()}]}var ds=ee(71577),Qi=ee(84567),Bi=ee(85418),Ui=ee(32983),gs=ee(68508),as=ee(76529),Ji=ee(78045),Ns=ee(79870),As=ee(72395),Rs=ee(69677);function Ts(Ee){let{value:Ce,onChange:De,filterSearch:Te,tablePrefixCls:je,locale:We}=Ee;return Te?ae.createElement("div",{className:`${je}-filter-dropdown-search`},ae.createElement(Rs.default,{prefix:ae.createElement(As.Z,null),placeholder:We.filterSearchPlaceholder,onChange:De,value:Ce,htmlSize:1,className:`${je}-filter-dropdown-search-input`})):null}var Ss=Ts,ys=ee(92389);const Ka=Ee=>{const{keyCode:Ce}=Ee;Ce===ys.Z.ENTER&&Ee.stopPropagation()};var ai=ae.forwardRef((Ee,Ce)=>ae.createElement("div",{className:Ee.className,onClick:De=>De.stopPropagation(),onKeyDown:Ka,ref:Ce},Ee.children));function Ai(Ee){let Ce=[];return(Ee||[]).forEach(De=>{let{value:Te,children:je}=De;Ce.push(Te),je&&(Ce=[].concat((0,so.Z)(Ce),(0,so.Z)(Ai(je))))}),Ce}function li(Ee){return Ee.some(Ce=>{let{children:De}=Ce;return De})}function qi(Ee,Ce){return typeof Ce=="string"||typeof Ce=="number"?Ce==null?void 0:Ce.toString().toLowerCase().includes(Ee.trim().toLowerCase()):!1}function Ki(Ee){let{filters:Ce,prefixCls:De,filteredKeys:Te,filterMultiple:je,searchValue:We,filterSearch:it}=Ee;return Ce.map((mt,ct)=>{const Pt=String(mt.value);if(mt.children)return{key:Pt||ct,label:mt.text,popupClassName:`${De}-dropdown-submenu`,children:Ki({filters:mt.children,prefixCls:De,filteredKeys:Te,filterMultiple:je,searchValue:We,filterSearch:it})};const Rt=je?Qi.default:Ji.ZP,At={key:mt.value!==void 0?Pt:ct,label:ae.createElement(ae.Fragment,null,ae.createElement(Rt,{checked:Te.includes(Pt)}),ae.createElement("span",null,mt.text))};return We.trim()?typeof it=="function"?it(We,mt)?At:null:qi(We,mt.text)?At:null:At})}function Di(Ee){var Ce,De;const{tablePrefixCls:Te,prefixCls:je,column:We,dropdownPrefixCls:it,columnKey:mt,filterMultiple:ct,filterMode:Pt="menu",filterSearch:Rt=!1,filterState:At,triggerFilter:tn,locale:Jt,children:cn,getPopupContainer:Rn}=Ee,{filterDropdownOpen:Cn,onFilterDropdownOpenChange:jn,filterResetToDefaultFilteredValue:On,defaultFilteredValue:$n,filterDropdownVisible:br,onFilterDropdownVisibleChange:Dr}=We,[pr,Xr]=ae.useState(!1),uo=!!(At&&(!((Ce=At.filteredKeys)===null||Ce===void 0)&&Ce.length||At.forceFiltered)),rr=wr=>{Xr(wr),jn==null||jn(wr),Dr==null||Dr(wr)},yr=(De=Cn!=null?Cn:br)!==null&&De!==void 0?De:pr,or=At==null?void 0:At.filteredKeys,[Zn,dr]=us(or||[]),Zr=wr=>{let{selectedKeys:ro}=wr;dr(ro)},Po=(wr,ro)=>{let{node:Uo,checked:No}=ro;Zr(ct?{selectedKeys:wr}:{selectedKeys:No&&Uo.key?[Uo.key]:[]})};ae.useEffect(()=>{pr&&Zr({selectedKeys:or||[]})},[or]);const[io,Nr]=ae.useState([]),Co=wr=>{Nr(wr)},[Mo,va]=ae.useState(""),Wo=wr=>{const{value:ro}=wr.target;va(ro)};ae.useEffect(()=>{pr||va("")},[pr]);const za=wr=>{const ro=wr&&wr.length?wr:null;if(ro===null&&(!At||!At.filteredKeys)||(0,cs.Z)(ro,At==null?void 0:At.filteredKeys,!0))return null;tn({column:We,key:mt,filteredKeys:ro})},Ua=()=>{rr(!1),za(Zn())},fo=function(){let{confirm:wr,closeDropdown:ro}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};wr&&za([]),ro&&rr(!1),va(""),dr(On?($n||[]).map(Uo=>String(Uo)):[])},Ya=function(){let{closeDropdown:wr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};wr&&rr(!1),za(Zn())},Yo=wr=>{wr&&or!==void 0&&dr(or||[]),rr(wr),!wr&&!We.filterDropdown&&Ua()},Ia=Ye()({[`${it}-menu-without-submenu`]:!li(We.filters||[])}),Aa=wr=>{if(wr.target.checked){const ro=Ai(We==null?void 0:We.filters).map(Uo=>String(Uo));dr(ro)}else dr([])},Oi=wr=>{let{filters:ro}=wr;return(ro||[]).map((Uo,No)=>{const pi=String(Uo.value),ui={title:Uo.text,key:Uo.value!==void 0?pi:No};return Uo.children&&(ui.children=Oi({filters:Uo.children})),ui})},Ur=wr=>{var ro;return Object.assign(Object.assign({},wr),{text:wr.title,value:wr.key,children:((ro=wr.children)===null||ro===void 0?void 0:ro.map(Uo=>Ur(Uo)))||[]})};let Fr;if(typeof We.filterDropdown=="function")Fr=We.filterDropdown({prefixCls:`${it}-custom`,setSelectedKeys:wr=>Zr({selectedKeys:wr}),selectedKeys:Zn(),confirm:Ya,clearFilters:fo,filters:We.filters,visible:yr,close:()=>{rr(!1)}});else if(We.filterDropdown)Fr=We.filterDropdown;else{const wr=Zn()||[],ro=()=>(We.filters||[]).length===0?ae.createElement(Ui.Z,{image:Ui.Z.PRESENTED_IMAGE_SIMPLE,description:Jt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Pt==="tree"?ae.createElement(ae.Fragment,null,ae.createElement(Ss,{filterSearch:Rt,value:Mo,onChange:Wo,tablePrefixCls:Te,locale:Jt}),ae.createElement("div",{className:`${Te}-filter-dropdown-tree`},ct?ae.createElement(Qi.default,{checked:wr.length===Ai(We.filters).length,indeterminate:wr.length>0&&wr.length<Ai(We.filters).length,className:`${Te}-filter-dropdown-checkall`,onChange:Aa},Jt.filterCheckall):null,ae.createElement(Ns.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:ct,checkStrictly:!ct,className:`${it}-menu`,onCheck:Po,checkedKeys:wr,selectedKeys:wr,showIcon:!1,treeData:Oi({filters:We.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Mo.trim()?No=>typeof Rt=="function"?Rt(Mo,Ur(No)):qi(Mo,No.title):void 0}))):ae.createElement(ae.Fragment,null,ae.createElement(Ss,{filterSearch:Rt,value:Mo,onChange:Wo,tablePrefixCls:Te,locale:Jt}),ae.createElement(gs.default,{selectable:!0,multiple:ct,prefixCls:`${it}-menu`,className:Ia,onSelect:Zr,onDeselect:Zr,selectedKeys:wr,getPopupContainer:Rn,openKeys:io,onOpenChange:Co,items:Ki({filters:We.filters||[],filterSearch:Rt,prefixCls:je,filteredKeys:Zn(),filterMultiple:ct,searchValue:Mo})})),Uo=()=>On?(0,cs.Z)(($n||[]).map(No=>String(No)),wr,!0):wr.length===0;Fr=ae.createElement(ae.Fragment,null,ro(),ae.createElement("div",{className:`${je}-dropdown-btns`},ae.createElement(ds.ZP,{type:"link",size:"small",disabled:Uo(),onClick:()=>fo()},Jt.filterReset),ae.createElement(ds.ZP,{type:"primary",size:"small",onClick:Ua},Jt.filterConfirm)))}We.filterDropdown&&(Fr=ae.createElement(as.J,{selectable:void 0},Fr));const Rr=()=>ae.createElement(ai,{className:`${je}-dropdown`},Fr);let Cr;typeof We.filterIcon=="function"?Cr=We.filterIcon(uo):We.filterIcon?Cr=We.filterIcon:Cr=ae.createElement(Ms,null);const{direction:Xo}=ae.useContext(Oo.E_);return ae.createElement("div",{className:`${je}-column`},ae.createElement("span",{className:`${Te}-column-title`},cn),ae.createElement(Bi.Z,{dropdownRender:Rr,trigger:["click"],open:yr,onOpenChange:Yo,getPopupContainer:Rn,placement:Xo==="rtl"?"bottomLeft":"bottomRight"},ae.createElement("span",{role:"button",tabIndex:-1,className:Ye()(`${je}-trigger`,{active:uo}),onClick:wr=>{wr.stopPropagation()}},Cr)))}var Bs=Di;function _s(Ee,Ce,De){let Te=[];return(Ee||[]).forEach((je,We)=>{var it;const mt=wi(We,De);if(je.filters||"filterDropdown"in je||"onFilter"in je)if("filteredValue"in je){let ct=je.filteredValue;"filterDropdown"in je||(ct=(it=ct==null?void 0:ct.map(String))!==null&&it!==void 0?it:ct),Te.push({column:je,key:Ci(je,mt),filteredKeys:ct,forceFiltered:je.filtered})}else Te.push({column:je,key:Ci(je,mt),filteredKeys:Ce&&je.defaultFilteredValue?je.defaultFilteredValue:void 0,forceFiltered:je.filtered});"children"in je&&(Te=[].concat((0,so.Z)(Te),(0,so.Z)(_s(je.children,Ce,mt))))}),Te}function Ps(Ee,Ce,De,Te,je,We,it,mt){return De.map((ct,Pt)=>{const Rt=wi(Pt,mt),{filterMultiple:At=!0,filterMode:tn,filterSearch:Jt}=ct;let cn=ct;if(cn.filters||cn.filterDropdown){const Rn=Ci(cn,Rt),Cn=Te.find(jn=>{let{key:On}=jn;return Rn===On});cn=Object.assign(Object.assign({},cn),{title:jn=>ae.createElement(Bs,{tablePrefixCls:Ee,prefixCls:`${Ee}-filter`,dropdownPrefixCls:Ce,column:cn,columnKey:Rn,filterState:Cn,filterMultiple:At,filterMode:tn,filterSearch:Jt,triggerFilter:We,locale:je,getPopupContainer:it},Li(ct.title,jn))})}return"children"in cn&&(cn=Object.assign(Object.assign({},cn),{children:Ps(Ee,Ce,cn.children,Te,je,We,it,Rt)})),cn})}function fs(Ee){const Ce={};return Ee.forEach(De=>{let{key:Te,filteredKeys:je,column:We}=De;const{filters:it,filterDropdown:mt}=We;if(mt)Ce[Te]=je||null;else if(Array.isArray(je)){const ct=Ai(it);Ce[Te]=ct.filter(Pt=>je.includes(String(Pt)))}else Ce[Te]=null}),Ce}function Ws(Ee,Ce){return Ce.reduce((De,Te)=>{const{column:{onFilter:je,filters:We},filteredKeys:it}=Te;return je&&it&&it.length?De.filter(mt=>it.some(ct=>{const Pt=Ai(We),Rt=Pt.findIndex(tn=>String(tn)===String(ct)),At=Rt!==-1?Pt[Rt]:ct;return je(At,mt)})):De},Ee)}const Ks=Ee=>Ee.flatMap(Ce=>"children"in Ce?[Ce].concat((0,so.Z)(Ks(Ce.children||[]))):[Ce]);function Vs(Ee){let{prefixCls:Ce,dropdownPrefixCls:De,mergedColumns:Te,onFilterChange:je,getPopupContainer:We,locale:it}=Ee;const mt=ae.useMemo(()=>Ks(Te||[]),[Te]),[ct,Pt]=ae.useState(()=>_s(mt,!0)),Rt=ae.useMemo(()=>{const cn=_s(mt,!1);if(cn.length===0)return cn;let Rn=!0,Cn=!0;if(cn.forEach(jn=>{let{filteredKeys:On}=jn;On!==void 0?Rn=!1:Cn=!1}),Rn){const jn=(mt||[]).map((On,$n)=>Ci(On,wi($n)));return ct.filter(On=>{let{key:$n}=On;return jn.includes($n)}).map(On=>{const $n=mt[jn.findIndex(br=>br===On.key)];return Object.assign(Object.assign({},On),{column:Object.assign(Object.assign({},On.column),$n),forceFiltered:$n.filtered})})}return cn},[mt,ct]),At=ae.useMemo(()=>fs(Rt),[Rt]),tn=cn=>{const Rn=Rt.filter(Cn=>{let{key:jn}=Cn;return jn!==cn.key});Rn.push(cn),Pt(Rn),je(fs(Rn),Rn)};return[cn=>Ps(Ce,De,cn,Rt,it,tn,We),Rt,At]}var es=Vs;function Fs(Ee,Ce,De){const Te=ae.useRef({});function je(We){if(!Te.current||Te.current.data!==Ee||Te.current.childrenColumnName!==Ce||Te.current.getRowKey!==De){let mt=function(ct){ct.forEach((Pt,Rt)=>{const At=De(Pt,Rt);it.set(At,Pt),Pt&&typeof Pt=="object"&&Ce in Pt&&mt(Pt[Ce]||[])})};const it=new Map;mt(Ee),Te.current={data:Ee,childrenColumnName:Ce,kvMap:it,getRowKey:De}}return Te.current.kvMap.get(We)}return[je]}var bs=ee(38780),Cl=function(Ee,Ce){var De={};for(var Te in Ee)Object.prototype.hasOwnProperty.call(Ee,Te)&&Ce.indexOf(Te)<0&&(De[Te]=Ee[Te]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Te=Object.getOwnPropertySymbols(Ee);je<Te.length;je++)Ce.indexOf(Te[je])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Te[je])&&(De[Te[je]]=Ee[Te[je]]);return De};const Ys=10;function sl(Ee,Ce){const De={current:Ee.current,pageSize:Ee.pageSize};return Object.keys(Ce&&typeof Ce=="object"?Ce:{}).forEach(je=>{const We=Ee[je];typeof We!="function"&&(De[je]=We)}),De}function ll(Ee,Ce,De){const Te=De&&typeof De=="object"?De:{},{total:je=0}=Te,We=Cl(Te,["total"]),[it,mt]=(0,ae.useState)(()=>({current:"defaultCurrent"in We?We.defaultCurrent:1,pageSize:"defaultPageSize"in We?We.defaultPageSize:Ys})),ct=(0,bs.Z)(it,We,{total:je>0?je:Ee}),Pt=Math.ceil((je||Ee)/ct.pageSize);ct.current>Pt&&(ct.current=Pt||1);const Rt=(tn,Jt)=>{mt({current:tn!=null?tn:1,pageSize:Jt||ct.pageSize})},At=(tn,Jt)=>{var cn;De&&((cn=De.onChange)===null||cn===void 0||cn.call(De,tn,Jt)),Rt(tn,Jt),Ce(tn,Jt||(ct==null?void 0:ct.pageSize))};return De===!1?[{},()=>{}]:[Object.assign(Object.assign({},ct),{onChange:At}),Rt]}var cl=ll,ul=ee(42922),Xs=ee(29873),ks=ee(97153),dl=ee(83898),gl=ee(5663);const Or={},js="SELECT_ALL",zs="SELECT_INVERT",Us="SELECT_NONE",Es=[],Hs=(Ee,Ce)=>{let De=[];return(Ce||[]).forEach(Te=>{De.push(Te),Te&&typeof Te=="object"&&Ee in Te&&(De=[].concat((0,so.Z)(De),(0,so.Z)(Hs(Ee,Te[Ee]))))}),De};var Qs=(Ee,Ce)=>{const{preserveSelectedRowKeys:De,selectedRowKeys:Te,defaultSelectedRowKeys:je,getCheckboxProps:We,onChange:it,onSelect:mt,onSelectAll:ct,onSelectInvert:Pt,onSelectNone:Rt,onSelectMultiple:At,columnWidth:tn,type:Jt,selections:cn,fixed:Rn,renderCell:Cn,hideSelectAll:jn,checkStrictly:On=!0}=Ce||{},{prefixCls:$n,data:br,pageData:Dr,getRecordByKey:pr,getRowKey:Xr,expandType:uo,childrenColumnName:rr,locale:yr,getPopupContainer:or}=Ee,[Zn,dr]=(0,gl.Z)(Te||je||Es,{value:Te}),Zr=ae.useRef(new Map),Po=(0,ae.useCallback)(Ur=>{if(De){const Fr=new Map;Ur.forEach(Rr=>{let Cr=pr(Rr);!Cr&&Zr.current.has(Rr)&&(Cr=Zr.current.get(Rr)),Fr.set(Rr,Cr)}),Zr.current=Fr}},[pr,De]);ae.useEffect(()=>{Po(Zn)},[Zn]);const{keyEntities:io}=(0,ae.useMemo)(()=>{if(On)return{keyEntities:null};let Ur=br;if(De){const Fr=new Set(br.map((Cr,Xo)=>Xr(Cr,Xo))),Rr=Array.from(Zr.current).reduce((Cr,Xo)=>{let[wr,ro]=Xo;return Fr.has(wr)?Cr:Cr.concat(ro)},[]);Ur=[].concat((0,so.Z)(Ur),(0,so.Z)(Rr))}return(0,dl.I8)(Ur,{externalGetKey:Xr,childrenPropName:rr})},[br,Xr,On,rr,De]),Nr=(0,ae.useMemo)(()=>Hs(rr,Dr),[rr,Dr]),Co=(0,ae.useMemo)(()=>{const Ur=new Map;return Nr.forEach((Fr,Rr)=>{const Cr=Xr(Fr,Rr),Xo=(We?We(Fr):null)||{};Ur.set(Cr,Xo)}),Ur},[Nr,Xr,We]),Mo=(0,ae.useCallback)(Ur=>{var Fr;return!!(!((Fr=Co.get(Xr(Ur)))===null||Fr===void 0)&&Fr.disabled)},[Co,Xr]),[va,Wo]=(0,ae.useMemo)(()=>{if(On)return[Zn||[],[]];const{checkedKeys:Ur,halfCheckedKeys:Fr}=(0,ks.S)(Zn,!0,io,Mo);return[Ur||[],Fr]},[Zn,On,io,Mo]),za=(0,ae.useMemo)(()=>{const Ur=Jt==="radio"?va.slice(0,1):va;return new Set(Ur)},[va,Jt]),Ua=(0,ae.useMemo)(()=>Jt==="radio"?new Set:new Set(Wo),[Wo,Jt]),[fo,Ya]=(0,ae.useState)(null);ae.useEffect(()=>{Ce||dr(Es)},[!!Ce]);const Yo=(0,ae.useCallback)((Ur,Fr)=>{let Rr,Cr;Po(Ur),De?(Rr=Ur,Cr=Ur.map(Xo=>Zr.current.get(Xo))):(Rr=[],Cr=[],Ur.forEach(Xo=>{const wr=pr(Xo);wr!==void 0&&(Rr.push(Xo),Cr.push(wr))})),dr(Rr),it==null||it(Rr,Cr,{type:Fr})},[dr,pr,it,De]),Ia=(0,ae.useCallback)((Ur,Fr,Rr,Cr)=>{if(mt){const Xo=Rr.map(wr=>pr(wr));mt(pr(Ur),Fr,Xo,Cr)}Yo(Rr,"single")},[mt,pr,Yo]),Aa=(0,ae.useMemo)(()=>!cn||jn?null:(cn===!0?[js,zs,Us]:cn).map(Fr=>Fr===js?{key:"all",text:yr.selectionAll,onSelect(){Yo(br.map((Rr,Cr)=>Xr(Rr,Cr)).filter(Rr=>{const Cr=Co.get(Rr);return!(Cr!=null&&Cr.disabled)||za.has(Rr)}),"all")}}:Fr===zs?{key:"invert",text:yr.selectInvert,onSelect(){const Rr=new Set(za);Dr.forEach((Xo,wr)=>{const ro=Xr(Xo,wr),Uo=Co.get(ro);Uo!=null&&Uo.disabled||(Rr.has(ro)?Rr.delete(ro):Rr.add(ro))});const Cr=Array.from(Rr);Pt&&Pt(Cr),Yo(Cr,"invert")}}:Fr===Us?{key:"none",text:yr.selectNone,onSelect(){Rt==null||Rt(),Yo(Array.from(za).filter(Rr=>{const Cr=Co.get(Rr);return Cr==null?void 0:Cr.disabled}),"none")}}:Fr).map(Fr=>Object.assign(Object.assign({},Fr),{onSelect:function(){for(var Rr,Cr,Xo=arguments.length,wr=new Array(Xo),ro=0;ro<Xo;ro++)wr[ro]=arguments[ro];(Cr=Fr.onSelect)===null||Cr===void 0||(Rr=Cr).call.apply(Rr,[Fr].concat(wr)),Ya(null)}})),[cn,za,Dr,Xr,Pt,Yo]);return[(0,ae.useCallback)(Ur=>{var Fr;if(!Ce)return Ur.filter(ta=>ta!==Or);let Rr=(0,so.Z)(Ur);const Cr=new Set(za),Xo=Nr.map(Xr).filter(ta=>!Co.get(ta).disabled),wr=Xo.every(ta=>Cr.has(ta)),ro=Xo.some(ta=>Cr.has(ta)),Uo=()=>{const ta=[];wr?Xo.forEach(Ta=>{Cr.delete(Ta),ta.push(Ta)}):Xo.forEach(Ta=>{Cr.has(Ta)||(Cr.add(Ta),ta.push(Ta))});const aa=Array.from(Cr);ct==null||ct(!wr,aa.map(Ta=>pr(Ta)),ta.map(Ta=>pr(Ta))),Yo(aa,"all"),Ya(null)};let No;if(Jt!=="radio"){let ta;if(Aa){const Ao={getPopupContainer:or,items:Aa.map((bi,vi)=>{const{key:ki,text:ns,onSelect:Yi}=bi;return{key:ki!=null?ki:vi,onClick:()=>{Yi==null||Yi(Xo)},label:ns}})};ta=ae.createElement("div",{className:`${$n}-selection-extra`},ae.createElement(Bi.Z,{menu:Ao,getPopupContainer:or},ae.createElement("span",null,ae.createElement(ul.Z,null))))}const aa=Nr.map((Ao,bi)=>{const vi=Xr(Ao,bi),ki=Co.get(vi)||{};return Object.assign({checked:Cr.has(vi)},ki)}).filter(Ao=>{let{disabled:bi}=Ao;return bi}),Ta=!!aa.length&&aa.length===Nr.length,qa=Ta&&aa.every(Ao=>{let{checked:bi}=Ao;return bi}),ei=Ta&&aa.some(Ao=>{let{checked:bi}=Ao;return bi});No=!jn&&ae.createElement("div",{className:`${$n}-selection`},ae.createElement(Qi.default,{checked:Ta?qa:!!Nr.length&&wr,indeterminate:Ta?!qa&&ei:!wr&&ro,onChange:Uo,disabled:Nr.length===0||Ta,"aria-label":ta?"Custom selection":"Select all",skipGroup:!0}),ta)}let pi;Jt==="radio"?pi=(ta,aa,Ta)=>{const qa=Xr(aa,Ta),ei=Cr.has(qa);return{node:ae.createElement(Ji.ZP,Object.assign({},Co.get(qa),{checked:ei,onClick:Ao=>Ao.stopPropagation(),onChange:Ao=>{Cr.has(qa)||Ia(qa,!0,[qa],Ao.nativeEvent)}})),checked:ei}}:pi=(ta,aa,Ta)=>{var qa;const ei=Xr(aa,Ta),Ao=Cr.has(ei),bi=Ua.has(ei),vi=Co.get(ei);let ki;return uo==="nest"?ki=bi:ki=(qa=vi==null?void 0:vi.indeterminate)!==null&&qa!==void 0?qa:bi,{node:ae.createElement(Qi.default,Object.assign({},vi,{indeterminate:ki,checked:Ao,skipGroup:!0,onClick:ns=>ns.stopPropagation(),onChange:ns=>{let{nativeEvent:Yi}=ns;const{shiftKey:Zs}=Yi;let ss=-1,Zi=-1;if(Zs&&On){const Ni=new Set([fo,ei]);Xo.some((Ei,ti)=>{if(Ni.has(Ei))if(ss===-1)ss=ti;else return Zi=ti,!0;return!1})}if(Zi!==-1&&ss!==Zi&&On){const Ni=Xo.slice(ss,Zi+1),Ei=[];Ao?Ni.forEach(Ba=>{Cr.has(Ba)&&(Ei.push(Ba),Cr.delete(Ba))}):Ni.forEach(Ba=>{Cr.has(Ba)||(Ei.push(Ba),Cr.add(Ba))});const ti=Array.from(Cr);At==null||At(!Ao,ti.map(Ba=>pr(Ba)),Ei.map(Ba=>pr(Ba))),Yo(ti,"multiple")}else{const Ni=va;if(On){const Ei=Ao?(0,Xs._5)(Ni,ei):(0,Xs.L0)(Ni,ei);Ia(ei,!Ao,Ei,Yi)}else{const Ei=(0,ks.S)([].concat((0,so.Z)(Ni),[ei]),!0,io,Mo),{checkedKeys:ti,halfCheckedKeys:Ba}=Ei;let rs=ti;if(Ao){const xs=new Set(ti);xs.delete(ei),rs=(0,ks.S)(Array.from(xs),{checked:!1,halfCheckedKeys:Ba},io,Mo).checkedKeys}Ia(ei,!Ao,rs,Yi)}}Ya(Ao?null:ei)}})),checked:Ao}};const ui=(ta,aa,Ta)=>{const{node:qa,checked:ei}=pi(ta,aa,Ta);return Cn?Cn(ei,aa,Ta,qa):qa};if(!Rr.includes(Or))if(Rr.findIndex(ta=>{var aa;return((aa=ta[Go])===null||aa===void 0?void 0:aa.columnType)==="EXPAND_COLUMN"})===0){const[ta,...aa]=Rr;Rr=[ta,Or].concat((0,so.Z)(aa))}else Rr=[Or].concat((0,so.Z)(Rr));const Vi=Rr.indexOf(Or);Rr=Rr.filter((ta,aa)=>ta!==Or||aa===Vi);const Xa=Rr[Vi-1],$i=Rr[Vi+1];let Qa=Rn;Qa===void 0&&(($i==null?void 0:$i.fixed)!==void 0?Qa=$i.fixed:(Xa==null?void 0:Xa.fixed)!==void 0&&(Qa=Xa.fixed)),Qa&&Xa&&((Fr=Xa[Go])===null||Fr===void 0?void 0:Fr.columnType)==="EXPAND_COLUMN"&&Xa.fixed===void 0&&(Xa.fixed=Qa);const Ii=Ye()(`${$n}-selection-col`,{[`${$n}-selection-col-with-dropdown`]:cn&&Jt==="checkbox"}),Ls={fixed:Qa,width:tn,className:`${$n}-selection-column`,title:Ce.columnTitle||No,render:ui,onCell:Ce.onCell,[Go]:{className:Ii}};return Rr.map(ta=>ta===Or?Ls:ta)},[Xr,Nr,Ce,va,za,Ua,tn,Aa,uo,fo,Co,At,Ia,Mo]),za]},ya=ee(33463),Ja=ee(28575),hl=ee(83062);const gi="ascend",Js="descend";function Ds(Ee){return typeof Ee.sorter=="object"&&typeof Ee.sorter.multiple=="number"?Ee.sorter.multiple:!1}function qs(Ee){return typeof Ee=="function"?Ee:Ee&&typeof Ee=="object"&&Ee.compare?Ee.compare:!1}function Os(Ee,Ce){return Ce?Ee[Ee.indexOf(Ce)+1]:Ee[0]}function Gs(Ee,Ce,De){let Te=[];function je(We,it){Te.push({column:We,key:Ci(We,it),multiplePriority:Ds(We),sortOrder:We.sortOrder})}return(Ee||[]).forEach((We,it)=>{const mt=wi(it,De);We.children?("sortOrder"in We&&je(We,mt),Te=[].concat((0,so.Z)(Te),(0,so.Z)(Gs(We.children,Ce,mt)))):We.sorter&&("sortOrder"in We?je(We,mt):Ce&&We.defaultSortOrder&&Te.push({column:We,key:Ci(We,mt),multiplePriority:Ds(We),sortOrder:We.defaultSortOrder}))}),Te}function el(Ee,Ce,De,Te,je,We,it,mt){return(Ce||[]).map((ct,Pt)=>{const Rt=wi(Pt,mt);let At=ct;if(At.sorter){const tn=At.sortDirections||je,Jt=At.showSorterTooltip===void 0?it:At.showSorterTooltip,cn=Ci(At,Rt),Rn=De.find(uo=>{let{key:rr}=uo;return rr===cn}),Cn=Rn?Rn.sortOrder:null,jn=Os(tn,Cn);let On;if(ct.sortIcon)On=ct.sortIcon({sortOrder:Cn});else{const uo=tn.includes(gi)&&ae.createElement(Ja.Z,{className:Ye()(`${Ee}-column-sorter-up`,{active:Cn===gi})}),rr=tn.includes(Js)&&ae.createElement(ya.Z,{className:Ye()(`${Ee}-column-sorter-down`,{active:Cn===Js})});On=ae.createElement("span",{className:Ye()(`${Ee}-column-sorter`,{[`${Ee}-column-sorter-full`]:!!(uo&&rr)})},ae.createElement("span",{className:`${Ee}-column-sorter-inner`,"aria-hidden":"true"},uo,rr))}const{cancelSort:$n,triggerAsc:br,triggerDesc:Dr}=We||{};let pr=$n;jn===Js?pr=Dr:jn===gi&&(pr=br);const Xr=typeof Jt=="object"?Jt:{title:pr};At=Object.assign(Object.assign({},At),{className:Ye()(At.className,{[`${Ee}-column-sort`]:Cn}),title:uo=>{const rr=ae.createElement("div",{className:`${Ee}-column-sorters`},ae.createElement("span",{className:`${Ee}-column-title`},Li(ct.title,uo)),On);return Jt?ae.createElement(hl.Z,Object.assign({},Xr),rr):rr},onHeaderCell:uo=>{const rr=ct.onHeaderCell&&ct.onHeaderCell(uo)||{},yr=rr.onClick,or=rr.onKeyDown;rr.onClick=Zr=>{Te({column:ct,key:cn,sortOrder:jn,multiplePriority:Ds(ct)}),yr==null||yr(Zr)},rr.onKeyDown=Zr=>{Zr.keyCode===ys.Z.ENTER&&(Te({column:ct,key:cn,sortOrder:jn,multiplePriority:Ds(ct)}),or==null||or(Zr))};const Zn=xi(ct.title,{}),dr=Zn==null?void 0:Zn.toString();return Cn?rr["aria-sort"]=Cn==="ascend"?"ascending":"descending":rr["aria-label"]=dr||"",rr.className=Ye()(rr.className,`${Ee}-column-has-sorters`),rr.tabIndex=0,ct.ellipsis&&(rr.title=(Zn!=null?Zn:"").toString()),rr}})}return"children"in At&&(At=Object.assign(Object.assign({},At),{children:el(Ee,At.children,De,Te,je,We,it,Rt)})),At})}function tl(Ee){const{column:Ce,sortOrder:De}=Ee;return{column:Ce,order:De,field:Ce.dataIndex,columnKey:Ce.key}}function nl(Ee){const Ce=Ee.filter(De=>{let{sortOrder:Te}=De;return Te}).map(tl);return Ce.length===0&&Ee.length?Object.assign(Object.assign({},tl(Ee[Ee.length-1])),{column:void 0}):Ce.length<=1?Ce[0]||{}:Ce}function $s(Ee,Ce,De){const Te=Ce.slice().sort((it,mt)=>mt.multiplePriority-it.multiplePriority),je=Ee.slice(),We=Te.filter(it=>{let{column:{sorter:mt},sortOrder:ct}=it;return qs(mt)&&ct});return We.length?je.sort((it,mt)=>{for(let ct=0;ct<We.length;ct+=1){const Pt=We[ct],{column:{sorter:Rt},sortOrder:At}=Pt,tn=qs(Rt);if(tn&&At){const Jt=tn(it,mt,At);if(Jt!==0)return At===gi?Jt:-Jt}}return 0}).map(it=>{const mt=it[De];return mt?Object.assign(Object.assign({},it),{[De]:$s(mt,Ce,De)}):it}):je}function Ie(Ee){let{prefixCls:Ce,mergedColumns:De,onSorterChange:Te,sortDirections:je,tableLocale:We,showSorterTooltip:it}=Ee;const[mt,ct]=ae.useState(Gs(De,!0)),Pt=ae.useMemo(()=>{let cn=!0;const Rn=Gs(De,!1);if(!Rn.length)return mt;const Cn=[];function jn($n){cn?Cn.push($n):Cn.push(Object.assign(Object.assign({},$n),{sortOrder:null}))}let On=null;return Rn.forEach($n=>{On===null?(jn($n),$n.sortOrder&&($n.multiplePriority===!1?cn=!1:On=!0)):(On&&$n.multiplePriority!==!1||(cn=!1),jn($n))}),Cn},[De,mt]),Rt=ae.useMemo(()=>{const cn=Pt.map(Rn=>{let{column:Cn,sortOrder:jn}=Rn;return{column:Cn,order:jn}});return{sortColumns:cn,sortColumn:cn[0]&&cn[0].column,sortOrder:cn[0]&&cn[0].order}},[Pt]);function At(cn){let Rn;cn.multiplePriority===!1||!Pt.length||Pt[0].multiplePriority===!1?Rn=[cn]:Rn=[].concat((0,so.Z)(Pt.filter(Cn=>{let{key:jn}=Cn;return jn!==cn.key})),[cn]),ct(Rn),Te(nl(Rn),Rn)}return[cn=>el(Ce,cn,Pt,At,je,We,it),Pt,Rt,()=>nl(Pt)]}function ze(Ee,Ce){return Ee.map(De=>{const Te=Object.assign({},De);return Te.title=Li(De.title,Ce),"children"in Te&&(Te.children=ze(Te.children,Ce)),Te})}function Ke(Ee){return[ae.useCallback(De=>ze(De,Ee),[Ee])]}var Jn=Gn((Ee,Ce)=>{const{_renderTimes:De}=Ee,{_renderTimes:Te}=Ce;return De!==Te}),bn=wo((Ee,Ce)=>{const{_renderTimes:De}=Ee,{_renderTimes:Te}=Ce;return De!==Te}),Dn=ee(84780),Vt=ee(14747),nn=ee(67968),kt=ee(45503),eo=Ee=>{const{componentCls:Ce}=Ee,De=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,Te=(je,We,it)=>({[`&${Ce}-${je}`]:{[`> ${Ce}-container`]:{[`> ${Ce}-content, > ${Ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${We}px -${it+Ee.lineWidth}px`}}}}}});return{[`${Ce}-wrapper`]:{[`${Ce}${Ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ce}-title`]:{border:De,borderBottom:0},[`> ${Ce}-container`]:{borderInlineStart:De,borderTop:De,[`
> ${Ce}-content,
> ${Ce}-header,
> ${Ce}-body,
> ${Ce}-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:De},"> thead":{"> tr:not(:last-child) > th":{borderBottom:De},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ce}-cell-fix-right-first::after`]:{borderInlineEnd:De}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${Ee.tablePaddingVertical}px -${Ee.tablePaddingHorizontal+Ee.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ee.lineWidth,bottom:0,borderInlineEnd:De,content:'""'}}}}}},[`&${Ce}-scroll-horizontal`]:{[`> ${Ce}-container > ${Ce}-body`]:{"> table > tbody":{[`
> tr${Ce}-expanded-row,
> tr${Ce}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Te("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle)),Te("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall)),{[`> ${Ce}-footer`]:{border:De,borderTop:0}}),[`${Ce}-cell`]:{[`${Ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ee.lineWidth}px 0 ${Ee.lineWidth}px ${Ee.tableHeaderBg}`}},[`${Ce}-bordered ${Ce}-cell-scrollbar`]:{borderInlineEnd:De}}}},kr=Ee=>{const{componentCls:Ce}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-cell-ellipsis`]:Object.assign(Object.assign({},Vt.vS),{wordBreak:"keep-all",[`
&${Ce}-cell-fix-left-last,
&${Ce}-cell-fix-right-first
`]:{overflow:"visible",[`${Ce}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ce}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ir=Ee=>{const{componentCls:Ce}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody > tr${Ce}-placeholder`]:{textAlign:"center",color:Ee.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ee.colorBgContainer}}}}},Zo=ee(49867),ra=Ee=>{const{componentCls:Ce,antCls:De,controlInteractiveSize:Te,motionDurationSlow:je,lineWidth:We,paddingXS:it,lineType:mt,tableBorderColor:ct,tableExpandIconBg:Pt,tableExpandColumnWidth:Rt,borderRadius:At,fontSize:tn,fontSizeSM:Jt,lineHeight:cn,tablePaddingVertical:Rn,tablePaddingHorizontal:Cn,tableExpandedRowBg:jn,paddingXXS:On}=Ee,$n=Te/2-We,br=$n*2+We*3,Dr=`${We}px ${mt} ${ct}`,pr=On-We;return{[`${Ce}-wrapper`]:{[`${Ce}-expand-icon-col`]:{width:Rt},[`${Ce}-row-expand-icon-cell`]:{textAlign:"center",[`${Ce}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ce}-row-indent`]:{height:1,float:"left"},[`${Ce}-row-expand-icon`]:Object.assign(Object.assign({},(0,Zo.N)(Ee)),{position:"relative",float:"left",boxSizing:"border-box",width:br,height:br,padding:0,color:"inherit",lineHeight:`${br}px`,background:Pt,border:Dr,borderRadius:At,transform:`scale(${Te/br})`,transition:`all ${je}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${je} ease-out`,content:'""'},"&::before":{top:$n,insetInlineEnd:pr,insetInlineStart:pr,height:We},"&::after":{top:pr,bottom:pr,insetInlineStart:$n,width:We,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"}}),[`${Ce}-row-indent + ${Ce}-row-expand-icon`]:{marginTop:(tn*cn-We*3)/2-Math.ceil((Jt*1.4-We*3)/2),marginInlineEnd:it},[`tr${Ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:jn}},[`${De}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ce}-expanded-row-fixed`]:{position:"relative",margin:`-${Rn}px -${Cn}px`,padding:`${Rn}px ${Cn}px`}}}},Oa=Ee=>{const{componentCls:Ce,antCls:De,iconCls:Te,tableFilterDropdownWidth:je,tableFilterDropdownSearchWidth:We,paddingXXS:it,paddingXS:mt,colorText:ct,lineWidth:Pt,lineType:Rt,tableBorderColor:At,tableHeaderIconColor:tn,fontSizeSM:Jt,tablePaddingHorizontal:cn,borderRadius:Rn,motionDurationSlow:Cn,colorTextDescription:jn,colorPrimary:On,tableHeaderFilterActiveBg:$n,colorTextDisabled:br,tableFilterDropdownBg:Dr,tableFilterDropdownHeight:pr,controlItemBgHover:Xr,controlItemBgActive:uo,boxShadowSecondary:rr,filterDropdownMenuBg:yr}=Ee,or=`${De}-dropdown`,Zn=`${Ce}-filter-dropdown`,dr=`${De}-tree`,Zr=`${Pt}px ${Rt} ${At}`;return[{[`${Ce}-wrapper`]:{[`${Ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-it,marginInline:`${it}px ${-cn/2}px`,padding:`0 ${it}px`,color:tn,fontSize:Jt,borderRadius:Rn,cursor:"pointer",transition:`all ${Cn}`,"&:hover":{color:jn,background:$n},"&.active":{color:On}}}},{[`${De}-dropdown`]:{[Zn]:Object.assign(Object.assign({},(0,Vt.Wf)(Ee)),{minWidth:je,backgroundColor:Dr,borderRadius:Rn,boxShadow:rr,overflow:"hidden",[`${or}-menu`]:{maxHeight:pr,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:yr,"&:empty::after":{display:"block",padding:`${mt}px 0`,color:br,fontSize:Jt,textAlign:"center",content:'"Not Found"'}},[`${Zn}-tree`]:{paddingBlock:`${mt}px 0`,paddingInline:mt,[dr]:{padding:0},[`${dr}-treenode ${dr}-node-content-wrapper:hover`]:{backgroundColor:Xr},[`${dr}-treenode-checkbox-checked ${dr}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:uo}}},[`${Zn}-search`]:{padding:mt,borderBottom:Zr,"&-input":{input:{minWidth:We},[Te]:{color:br}}},[`${Zn}-checkall`]:{width:"100%",marginBottom:it,marginInlineStart:it},[`${Zn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${mt-Pt}px ${mt}px`,overflow:"hidden",borderTop:Zr}})}},{[`${De}-dropdown ${Zn}, ${Zn}-submenu`]:{[`${De}-checkbox-wrapper + span`]:{paddingInlineStart:mt,color:ct},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},ho=Ee=>{const{componentCls:Ce,lineWidth:De,colorSplit:Te,motionDurationSlow:je,zIndexTableFixed:We,tableBg:it,zIndexTableSticky:mt}=Ee,ct=Te;return{[`${Ce}-wrapper`]:{[`
${Ce}-cell-fix-left,
${Ce}-cell-fix-right
`]:{position:"sticky !important",zIndex:We,background:it},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-De,width:30,transform:"translateX(100%)",transition:`box-shadow ${je}`,content:'""',pointerEvents:"none"},[`${Ce}-cell-fix-left-all::after`]:{display:"none"},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-De,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${je}`,content:'""',pointerEvents:"none"},[`${Ce}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:mt+1,width:30,transition:`box-shadow ${je}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ce}-ping-left`]:{[`&:not(${Ce}-has-fix-left) ${Ce}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${ct}`}},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${ct}`},[`${Ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ce}-ping-right`]:{[`&:not(${Ce}-has-fix-right) ${Ce}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${ct}`}},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${ct}`}}}}},Yn=Ee=>{const{componentCls:Ce,antCls:De}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-pagination${De}-pagination`]:{margin:`${Ee.margin}px 0`},[`${Ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ee.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},zo=Ee=>{const{componentCls:Ce,tableRadius:De}=Ee;return{[`${Ce}-wrapper`]:{[Ce]:{[`${Ce}-title, ${Ce}-header`]:{borderRadius:`${De}px ${De}px 0 0`},[`${Ce}-title + ${Ce}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ce}-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:De,borderStartEndRadius:De,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:De},"> *:last-child":{borderStartEndRadius:De}}},"&-footer":{borderRadius:`0 0 ${De}px ${De}px`}}}}},yi=Ee=>{const{componentCls:Ce}=Ee;return{[`${Ce}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ce}-pagination-left`]:{justifyContent:"flex-end"},[`${Ce}-pagination-right`]:{justifyContent:"flex-start"},[`${Ce}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ce}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ce}-row-indent`]:{float:"right"}}}}},wa=Ee=>{const{componentCls:Ce,antCls:De,iconCls:Te,fontSizeIcon:je,padding:We,paddingXS:it,tableHeaderIconColor:mt,tableHeaderIconColorHover:ct,tableSelectionColumnWidth:Pt}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-selection-col`]:{width:Pt,[`&${Ce}-selection-col-with-dropdown`]:{width:Pt+je+We/4}},[`${Ce}-bordered ${Ce}-selection-col`]:{width:Pt+it*2,[`&${Ce}-selection-col-with-dropdown`]:{width:Pt+je+We/4+it*2}},[`
table tr th${Ce}-selection-column,
table tr td${Ce}-selection-column
`]:{paddingInlineEnd:Ee.paddingXS,paddingInlineStart:Ee.paddingXS,textAlign:"center",[`${De}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ce}-selection-column${Ce}-cell-fix-left`]:{zIndex:Ee.zIndexTableFixed+1},[`table tr th${Ce}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ce}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ce}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ee.tablePaddingHorizontal/4}px`,[Te]:{color:mt,fontSize:je,verticalAlign:"baseline","&:hover":{color:ct}}}}}},Vr=Ee=>{const{componentCls:Ce}=Ee,De=(Te,je,We,it)=>({[`${Ce}${Ce}-${Te}`]:{fontSize:it,[`
${Ce}-title,
${Ce}-footer,
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${je}px ${We}px`},[`${Ce}-filter-trigger`]:{marginInlineEnd:`-${We/2}px`},[`${Ce}-expanded-row-fixed`]:{margin:`-${je}px -${We}px`},[`${Ce}-tbody`]:{[`${Ce}-wrapper:only-child ${Ce}`]:{marginBlock:`-${je}px`,marginInline:`${Ee.tableExpandColumnWidth-We}px -${We}px`}},[`${Ce}-selection-column`]:{paddingInlineStart:`${We/4}px`}}});return{[`${Ce}-wrapper`]:Object.assign(Object.assign({},De("middle",Ee.tablePaddingVerticalMiddle,Ee.tablePaddingHorizontalMiddle,Ee.tableFontSizeMiddle)),De("small",Ee.tablePaddingVerticalSmall,Ee.tablePaddingHorizontalSmall,Ee.tableFontSizeSmall))}},ci=Ee=>{const{componentCls:Ce,marginXXS:De,fontSizeIcon:Te,tableHeaderIconColor:je,tableHeaderIconColorHover:We}=Ee;return{[`${Ce}-wrapper`]:{[`${Ce}-thead th${Ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ee.motionDurationSlow}`,"&:hover":{background:Ee.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ee.colorPrimary},[`
&${Ce}-cell-fix-left:hover,
&${Ce}-cell-fix-right:hover
`]:{background:Ee.tableFixedHeaderSortActiveBg}},[`${Ce}-thead th${Ce}-column-sort`]:{background:Ee.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ce}-column-sort`]:{background:Ee.tableBodySortBg},[`${Ce}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ce}-column-sorter`]:{marginInlineStart:De,color:je,fontSize:0,transition:`color ${Ee.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Te,"&.active":{color:Ee.colorPrimary}},[`${Ce}-column-sorter-up + ${Ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ce}-column-sorters:hover ${Ce}-column-sorter`]:{color:We}}}},Cs=Ee=>{const{componentCls:Ce,opacityLoading:De,tableScrollThumbBg:Te,tableScrollThumbBgHover:je,tableScrollThumbSize:We,tableScrollBg:it,zIndexTableSticky:mt,stickyScrollBarBorderRadius:ct}=Ee,Pt=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`;return{[`${Ce}-wrapper`]:{[`${Ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:mt,background:Ee.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${We}px !important`,zIndex:mt,display:"flex",alignItems:"center",background:it,borderTop:Pt,opacity:De,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:We,backgroundColor:Te,borderRadius:ct,transition:`all ${Ee.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:je}}}}}}},ts=Ee=>{const{componentCls:Ce,lineWidth:De,tableBorderColor:Te}=Ee,je=`${De}px ${Ee.lineType} ${Te}`;return{[`${Ce}-wrapper`]:{[`${Ce}-summary`]:{position:"relative",zIndex:Ee.zIndexTableFixed,background:Ee.tableBg,"> tr":{"> th, > td":{borderBottom:je}}},[`div${Ce}-summary`]:{boxShadow:`0 -${De}px 0 ${Te}`}}}},Hi=Ee=>{const{componentCls:Ce}=Ee,De=`${Ee.lineWidth}px ${Ee.lineType} ${Ee.tableBorderColor}`,Te=`${Ce}-expanded-row-cell`;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody-virtual`]:{[`${Ce}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ce}-cell`]:{borderBottom:De},[`${Ce}-expanded-row`]:{[`${Te}${Te}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ee.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ce}-bordered`]:{[`${Ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:De,position:"absolute"},[`${Ce}-cell`]:{borderInlineEnd:De,[`&${Ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ee.lineWidth,borderInlineStart:De}}}}}}};const fi=Ee=>{const{componentCls:Ce,fontWeightStrong:De,tablePaddingVertical:Te,tablePaddingHorizontal:je,lineWidth:We,lineType:it,tableBorderColor:mt,tableFontSize:ct,tableBg:Pt,tableRadius:Rt,tableHeaderTextColor:At,motionDurationMid:tn,tableHeaderBg:Jt,tableHeaderCellSplitColor:cn,tableRowHoverBg:Rn,tableSelectedRowBg:Cn,tableSelectedRowHoverBg:jn,tableFooterTextColor:On,tableFooterBg:$n,paddingContentVerticalLG:br}=Ee,Dr=`${We}px ${it} ${mt}`;return{[`${Ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Vt.dF)()),{[Ce]:Object.assign(Object.assign({},(0,Vt.Wf)(Ee)),{fontSize:ct,background:Pt,borderRadius:`${Rt}px ${Rt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Rt}px ${Rt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${br}px ${je}px`,overflowWrap:"break-word"},[`${Ce}-title`]:{padding:`${Te}px ${je}px`},[`${Ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:At,fontWeight:De,textAlign:"start",background:Jt,borderBottom:Dr,transition:`background ${tn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ce}-selection-column):not(${Ce}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:cn,transform:"translateY(-50%)",transition:`background-color ${tn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${tn}, border-color ${tn}`,borderBottom:Dr,[`
> ${Ce}-wrapper:only-child,
> ${Ce}-expanded-row-fixed > ${Ce}-wrapper:only-child
`]:{[Ce]:{marginBlock:`-${Te}px`,marginInline:`${Ee.tableExpandColumnWidth-je}px -${je}px`,[`${Ce}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:At,fontWeight:De,textAlign:"start",background:Jt,borderBottom:Dr,transition:`background ${tn} ease`},[`
&${Ce}-row:hover > th,
&${Ce}-row:hover > td,
> th${Ce}-cell-row-hover,
> td${Ce}-cell-row-hover
`]:{background:Rn},[`&${Ce}-row-selected`]:{"> th, > td":{background:Cn},"&:hover > th, &:hover > td":{background:jn}}}},[`${Ce}-footer`]:{padding:`${Te}px ${je}px`,color:On,background:$n}})}};var co=(0,nn.Z)("Table",Ee=>{const{colorTextHeading:Ce,colorSplit:De,colorIcon:Te,colorIconHover:je,opacityLoading:We,colorBgContainer:it,controlInteractiveSize:mt,headerBg:ct,headerColor:Pt,headerSortActiveBg:Rt,headerSortHoverBg:At,bodySortBg:tn,rowHoverBg:Jt,rowSelectedBg:cn,rowSelectedHoverBg:Rn,rowExpandedBg:Cn,cellPaddingBlock:jn,cellPaddingInline:On,cellPaddingBlockMD:$n,cellPaddingInlineMD:br,cellPaddingBlockSM:Dr,cellPaddingInlineSM:pr,borderColor:Xr,footerBg:uo,footerColor:rr,headerBorderRadius:yr,cellFontSize:or,cellFontSizeMD:Zn,cellFontSizeSM:dr,headerSplitColor:Zr,fixedHeaderSortActiveBg:Po,headerFilterHoverBg:io,filterDropdownBg:Nr,expandIconBg:Co,selectionColumnWidth:Mo,stickyScrollBarBg:va}=Ee,Wo=new Dn.C(Te),za=new Dn.C(je),Ua=2,fo=(0,kt.TS)(Ee,{tableFontSize:or,tableBg:it,tableRadius:yr,tablePaddingVertical:jn,tablePaddingHorizontal:On,tablePaddingVerticalMiddle:$n,tablePaddingHorizontalMiddle:br,tablePaddingVerticalSmall:Dr,tablePaddingHorizontalSmall:pr,tableBorderColor:Xr,tableHeaderTextColor:Pt,tableHeaderBg:ct,tableFooterTextColor:rr,tableFooterBg:uo,tableHeaderCellSplitColor:Zr,tableHeaderSortBg:Rt,tableHeaderSortHoverBg:At,tableHeaderIconColor:Wo.clone().setAlpha(Wo.getAlpha()*We).toRgbString(),tableHeaderIconColorHover:za.clone().setAlpha(za.getAlpha()*We).toRgbString(),tableBodySortBg:tn,tableFixedHeaderSortActiveBg:Po,tableHeaderFilterActiveBg:io,tableFilterDropdownBg:Nr,tableRowHoverBg:Jt,tableSelectedRowBg:cn,tableSelectedRowHoverBg:Rn,zIndexTableFixed:Ua,zIndexTableSticky:Ua+1,tableFontSizeMiddle:Zn,tableFontSizeSmall:dr,tableSelectionColumnWidth:Mo,tableExpandIconBg:Co,tableExpandColumnWidth:mt+2*Ee.padding,tableExpandedRowBg:Cn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:va,tableScrollThumbBgHover:Ce,tableScrollBg:De});return[fi(fo),Yn(fo),ts(fo),ci(fo),Oa(fo),eo(fo),zo(fo),ra(fo),ts(fo),Ir(fo),wa(fo),ho(fo),Cs(fo),kr(fo),Vr(fo),yi(fo),Hi(fo)]},Ee=>{const{colorFillAlter:Ce,colorBgContainer:De,colorTextHeading:Te,colorFillSecondary:je,colorFillContent:We,controlItemBgActive:it,controlItemBgActiveHover:mt,padding:ct,paddingSM:Pt,paddingXS:Rt,colorBorderSecondary:At,borderRadiusLG:tn,fontSize:Jt,controlHeight:cn,colorTextPlaceholder:Rn}=Ee,Cn=new Dn.C(je).onBackground(De).toHexShortString(),jn=new Dn.C(We).onBackground(De).toHexShortString(),On=new Dn.C(Ce).onBackground(De).toHexShortString();return{headerBg:On,headerColor:Te,headerSortActiveBg:Cn,headerSortHoverBg:jn,bodySortBg:On,rowHoverBg:On,rowSelectedBg:it,rowSelectedHoverBg:mt,rowExpandedBg:Ce,cellPaddingBlock:ct,cellPaddingInline:ct,cellPaddingBlockMD:Pt,cellPaddingInlineMD:Rt,cellPaddingBlockSM:Rt,cellPaddingInlineSM:Rt,borderColor:At,headerBorderRadius:tn,footerBg:On,footerColor:Te,cellFontSize:Jt,cellFontSizeMD:Jt,cellFontSizeSM:Jt,headerSplitColor:At,fixedHeaderSortActiveBg:Cn,headerFilterHoverBg:We,filterDropdownMenuBg:De,filterDropdownBg:De,expandIconBg:De,selectionColumnWidth:cn,stickyScrollBarBg:Rn,stickyScrollBarBorderRadius:100}});const ja=[],_i=(Ee,Ce)=>{const{prefixCls:De,className:Te,rootClassName:je,style:We,size:it,bordered:mt,dropdownPrefixCls:ct,dataSource:Pt,pagination:Rt,rowSelection:At,rowKey:tn="key",rowClassName:Jt,columns:cn,children:Rn,childrenColumnName:Cn,onChange:jn,getPopupContainer:On,loading:$n,expandIcon:br,expandable:Dr,expandedRowRender:pr,expandIconColumnIndex:Xr,indentSize:uo,scroll:rr,sortDirections:yr,locale:or,showSorterTooltip:Zn=!0,virtual:dr}=Ee,Zr=ae.useMemo(()=>cn||yn(Rn),[cn,Rn]),Po=ae.useMemo(()=>Zr.some(Ho=>Ho.responsive),[Zr]),io=(0,Ca.Z)(Po),Nr=ae.useMemo(()=>{const Ho=new Set(Object.keys(io).filter(La=>io[La]));return Zr.filter(La=>!La.responsive||La.responsive.some(hi=>Ho.has(hi)))},[Zr,io]),Co=(0,$a.Z)(Ee,["className","style","columns"]),{locale:Mo=ii.Z,direction:va,table:Wo,renderEmpty:za,getPrefixCls:Ua,getPopupContainer:fo}=ae.useContext(Oo.E_),Ya=(0,ea.Z)(it),Yo=Object.assign(Object.assign({},Mo.Table),or),Ia=Pt||ja,Aa=Ua("table",De),Oi=Ua("dropdown",ct),Ur=Object.assign({childrenColumnName:Cn,expandIconColumnIndex:Xr},Dr),{childrenColumnName:Fr="children"}=Ur,Rr=ae.useMemo(()=>Ia.some(Ho=>Ho==null?void 0:Ho[Fr])?"nest":pr||Dr&&Dr.expandedRowRender?"row":null,[Ia]),Cr={body:ae.useRef()},Xo=ae.useMemo(()=>typeof tn=="function"?tn:Ho=>Ho==null?void 0:Ho[tn],[tn]),[wr]=Fs(Ia,Fr,Xo),ro={},Uo=function(Ho,La){let hi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Fa,Si,Ri;const Ti=Object.assign(Object.assign({},ro),Ho);hi&&((Fa=ro.resetPagination)===null||Fa===void 0||Fa.call(ro),!((Si=Ti.pagination)===null||Si===void 0)&&Si.current&&(Ti.pagination.current=1),Rt&&Rt.onChange&&Rt.onChange(1,(Ri=Ti.pagination)===null||Ri===void 0?void 0:Ri.pageSize)),rr&&rr.scrollToFirstRowOnChange!==!1&&Cr.body.current&&(0,Ra.Z)(0,{getContainer:()=>Cr.body.current}),jn==null||jn(Ti.pagination,Ti.filters,Ti.sorter,{currentDataSource:Ws($s(Ia,Ti.sorterStates,Fr),Ti.filterStates),action:La})},No=(Ho,La)=>{Uo({sorter:Ho,sorterStates:La},"sort",!1)},[pi,ui,Vi,Xa]=Ie({prefixCls:Aa,mergedColumns:Nr,onSorterChange:No,sortDirections:yr||["ascend","descend"],tableLocale:Yo,showSorterTooltip:Zn}),$i=ae.useMemo(()=>$s(Ia,ui,Fr),[Ia,ui]);ro.sorter=Xa(),ro.sorterStates=ui;const Qa=(Ho,La)=>{Uo({filters:Ho,filterStates:La},"filter",!0)},[Ii,Ls,ta]=es({prefixCls:Aa,locale:Yo,dropdownPrefixCls:Oi,mergedColumns:Nr,onFilterChange:Qa,getPopupContainer:On||fo}),aa=Ws($i,Ls);ro.filters=ta,ro.filterStates=Ls;const Ta=ae.useMemo(()=>{const Ho={};return Object.keys(ta).forEach(La=>{ta[La]!==null&&(Ho[La]=ta[La])}),Object.assign(Object.assign({},Vi),{filters:Ho})},[Vi,ta]),[qa]=Ke(Ta),ei=(Ho,La)=>{Uo({pagination:Object.assign(Object.assign({},ro.pagination),{current:Ho,pageSize:La})},"paginate")},[Ao,bi]=cl(aa.length,ei,Rt);ro.pagination=Rt===!1?{}:sl(Ao,Rt),ro.resetPagination=bi;const vi=ae.useMemo(()=>{if(Rt===!1||!Ao.pageSize)return aa;const{current:Ho=1,total:La,pageSize:hi=Ys}=Ao;return aa.length<La?aa.length>hi?aa.slice((Ho-1)*hi,Ho*hi):aa:aa.slice((Ho-1)*hi,Ho*hi)},[!!Rt,aa,Ao&&Ao.current,Ao&&Ao.pageSize,Ao&&Ao.total]),[ki,ns]=Qs({prefixCls:Aa,data:aa,pageData:vi,getRowKey:Xo,getRecordByKey:wr,expandType:Rr,childrenColumnName:Fr,locale:Yo,getPopupContainer:On||fo},At),Yi=(Ho,La,hi)=>{let Fa;return typeof Jt=="function"?Fa=Ye()(Jt(Ho,La,hi)):Fa=Ye()(Jt),Ye()({[`${Aa}-row-selected`]:ns.has(Xo(Ho,La))},Fa)};Ur.__PARENT_RENDER_ICON__=Ur.expandIcon,Ur.expandIcon=Ur.expandIcon||br||ji(Yo),Rr==="nest"&&Ur.expandIconColumnIndex===void 0?Ur.expandIconColumnIndex=At?1:0:Ur.expandIconColumnIndex>0&&At&&(Ur.expandIconColumnIndex-=1),typeof Ur.indentSize!="number"&&(Ur.indentSize=typeof uo=="number"?uo:15);const Zs=ae.useCallback(Ho=>qa(ki(Ii(pi(Ho)))),[pi,Ii,ki]);let ss,Zi;if(Rt!==!1&&(Ao!=null&&Ao.total)){let Ho;Ao.size?Ho=Ao.size:Ho=Ya==="small"||Ya==="middle"?"small":void 0;const La=Si=>ae.createElement(mi.Z,Object.assign({},Ao,{className:Ye()(`${Aa}-pagination ${Aa}-pagination-${Si}`,Ao.className),size:Ho})),hi=va==="rtl"?"left":"right",{position:Fa}=Ao;if(Fa!==null&&Array.isArray(Fa)){const Si=Fa.find(ls=>ls.includes("top")),Ri=Fa.find(ls=>ls.includes("bottom")),Ti=Fa.every(ls=>`${ls}`=="none");!Si&&!Ri&&!Ti&&(Zi=La(hi)),Si&&(ss=La(Si.toLowerCase().replace("top",""))),Ri&&(Zi=La(Ri.toLowerCase().replace("bottom","")))}else Zi=La(hi)}let Ni;typeof $n=="boolean"?Ni={spinning:$n}:typeof $n=="object"&&(Ni=Object.assign({spinning:!0},$n));const[Ei,ti]=co(Aa),[,Ba]=(0,ca.Z)(),rs=Ye()(`${Aa}-wrapper`,Wo==null?void 0:Wo.className,{[`${Aa}-wrapper-rtl`]:va==="rtl"},Te,je,ti),xs=Object.assign(Object.assign({},Wo==null?void 0:Wo.style),We),ms=or&&or.emptyText||(za==null?void 0:za("Table"))||ae.createElement(Wa.Z,{componentName:"Table"}),os=dr?bn:Jn,rl={},ml=ae.useMemo(()=>{const{fontSize:Ho,lineHeight:La,padding:hi,paddingXS:Fa,paddingSM:Si}=Ba,Ri=Math.floor(Ho*La);switch(Ya){case"large":return hi*2+Ri;case"small":return Fa*2+Ri;default:return Si*2+Ri}},[Ba,Ya]);return dr&&(rl.listItemHeight=ml),Ei(ae.createElement("div",{ref:Ce,className:rs,style:xs},ae.createElement(Sa.Z,Object.assign({spinning:!1},Ni),ss,ae.createElement(os,Object.assign({},rl,Co,{columns:Nr,direction:va,expandable:Ur,prefixCls:Aa,className:Ye()({[`${Aa}-middle`]:Ya==="middle",[`${Aa}-small`]:Ya==="small",[`${Aa}-bordered`]:mt,[`${Aa}-empty`]:Ia.length===0}),data:vi,rowKey:Xo,rowClassName:Yi,emptyText:ms,internalHooks:fe,internalRefs:Cr,transformColumns:Zs})),Zi)))};var is=ae.forwardRef(_i);const Pi=(Ee,Ce)=>{const De=ae.useRef(0);return De.current+=1,ae.createElement(is,Object.assign({},Ee,{ref:Ce,_renderTimes:De.current}))},Fi=ae.forwardRef(Pi);Fi.SELECTION_COLUMN=Or,Fi.EXPAND_COLUMN=te,Fi.SELECTION_ALL=js,Fi.SELECTION_INVERT=zs,Fi.SELECTION_NONE=Us,Fi.Column=Io,Fi.ColumnGroup=Ma,Fi.Summary=ln;var Gi=Fi,Va=Gi},66309:function(ot,Ze,ee){"use strict";ee.d(Ze,{default:function(){return Ne}});var te=ee(67294),fe=ee(73475),be=ee(94184),_e=ee.n(be),ce=ee(98787),pe=ee(69760),ae=ee(45353),me=ee(53124),de=ee(14747),ge=ee(45503),le=ee(67968);const he=xe=>{const{paddingXXS:st,lineWidth:Ye,tagPaddingHorizontal:lt,componentCls:Me}=xe,Be=lt-Ye,Re=st-Ye;return{[Me]:Object.assign(Object.assign({},(0,de.Wf)(xe)),{display:"inline-block",height:"auto",marginInlineEnd:xe.marginXS,paddingInline:Be,fontSize:xe.tagFontSize,lineHeight:xe.tagLineHeight,whiteSpace:"nowrap",background:xe.defaultBg,border:`${xe.lineWidth}px ${xe.lineType} ${xe.colorBorder}`,borderRadius:xe.borderRadiusSM,opacity:1,transition:`all ${xe.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Me}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:xe.defaultColor},[`${Me}-close-icon`]:{marginInlineStart:Re,color:xe.colorTextDescription,fontSize:xe.tagIconSize,cursor:"pointer",transition:`all ${xe.motionDurationMid}`,"&:hover":{color:xe.colorTextHeading}},[`&${Me}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${xe.iconCls}-close, ${xe.iconCls}-close:hover`]:{color:xe.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Me}-checkable-checked):hover`]:{color:xe.colorPrimary,backgroundColor:xe.colorFillSecondary},"&:active, &-checked":{color:xe.colorTextLightSolid},"&-checked":{backgroundColor:xe.colorPrimary,"&:hover":{backgroundColor:xe.colorPrimaryHover}},"&:active":{backgroundColor:xe.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${xe.iconCls} + span, > span + ${xe.iconCls}`]:{marginInlineStart:Be}}),[`${Me}-borderless`]:{borderColor:"transparent",background:xe.tagBorderlessBg}}},re=xe=>{const{lineWidth:st,fontSizeIcon:Ye}=xe,lt=xe.fontSizeSM,Me=`${xe.lineHeightSM*lt}px`;return(0,ge.TS)(xe,{tagFontSize:lt,tagLineHeight:Me,tagIconSize:Ye-2*st,tagPaddingHorizontal:8,tagBorderlessBg:xe.colorFillTertiary})},ne=xe=>({defaultBg:xe.colorFillQuaternary,defaultColor:xe.colorText});var y=(0,le.Z)("Tag",xe=>{const st=re(xe);return he(st)},ne),a=function(xe,st){var Ye={};for(var lt in xe)Object.prototype.hasOwnProperty.call(xe,lt)&&st.indexOf(lt)<0&&(Ye[lt]=xe[lt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,lt=Object.getOwnPropertySymbols(xe);Me<lt.length;Me++)st.indexOf(lt[Me])<0&&Object.prototype.propertyIsEnumerable.call(xe,lt[Me])&&(Ye[lt[Me]]=xe[lt[Me]]);return Ye},b=xe=>{const{prefixCls:st,style:Ye,className:lt,checked:Me,onChange:Be,onClick:Re}=xe,ke=a(xe,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ge,tag:Et}=te.useContext(me.E_),It=Ct=>{Be==null||Be(!Me),Re==null||Re(Ct)},en=Ge("tag",st),[Zt,rt]=y(en),at=_e()(en,`${en}-checkable`,{[`${en}-checkable-checked`]:Me},Et==null?void 0:Et.className,lt,rt);return Zt(te.createElement("span",Object.assign({},ke,{style:Object.assign(Object.assign({},Ye),Et==null?void 0:Et.style),className:at,onClick:It})))},x=ee(98719);const z=xe=>(0,x.Z)(xe,(st,Ye)=>{let{textColor:lt,lightBorderColor:Me,lightColor:Be,darkColor:Re}=Ye;return{[`${xe.componentCls}-${st}`]:{color:lt,background:Be,borderColor:Me,"&-inverse":{color:xe.colorTextLightSolid,background:Re,borderColor:Re},[`&${xe.componentCls}-borderless`]:{borderColor:"transparent"}}}});var oe=(0,le.b)(["Tag","preset"],xe=>{const st=re(xe);return z(st)},ne);function ie(xe){return typeof xe!="string"?xe:xe.charAt(0).toUpperCase()+xe.slice(1)}const ue=(xe,st,Ye)=>{const lt=ie(Ye);return{[`${xe.componentCls}-${st}`]:{color:xe[`color${Ye}`],background:xe[`color${lt}Bg`],borderColor:xe[`color${lt}Border`],[`&${xe.componentCls}-borderless`]:{borderColor:"transparent"}}}};var ve=(0,le.b)(["Tag","status"],xe=>{const st=re(xe);return[ue(st,"success","Success"),ue(st,"processing","Info"),ue(st,"error","Error"),ue(st,"warning","Warning")]},ne),Se=function(xe,st){var Ye={};for(var lt in xe)Object.prototype.hasOwnProperty.call(xe,lt)&&st.indexOf(lt)<0&&(Ye[lt]=xe[lt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,lt=Object.getOwnPropertySymbols(xe);Me<lt.length;Me++)st.indexOf(lt[Me])<0&&Object.prototype.propertyIsEnumerable.call(xe,lt[Me])&&(Ye[lt[Me]]=xe[lt[Me]]);return Ye};const Le=(xe,st)=>{const{prefixCls:Ye,className:lt,rootClassName:Me,style:Be,children:Re,icon:ke,color:Ge,onClose:Et,closeIcon:It,closable:en,bordered:Zt=!0}=xe,rt=Se(xe,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:at,direction:Ct,tag:qt}=te.useContext(me.E_),[Gt,xt]=te.useState(!0);te.useEffect(()=>{"visible"in rt&&xt(rt.visible)},[rt.visible]);const Ve=(0,ce.o2)(Ge),Qt=(0,ce.yT)(Ge),Ln=Ve||Qt,Hn=Object.assign(Object.assign({backgroundColor:Ge&&!Ln?Ge:void 0},qt==null?void 0:qt.style),Be),mn=at("tag",Ye),[zt,et]=y(mn),Xe=_e()(mn,qt==null?void 0:qt.className,{[`${mn}-${Ge}`]:Ln,[`${mn}-has-color`]:Ge&&!Ln,[`${mn}-hidden`]:!Gt,[`${mn}-rtl`]:Ct==="rtl",[`${mn}-borderless`]:!Zt},lt,Me,et),qe=Qe=>{Qe.stopPropagation(),Et==null||Et(Qe),!Qe.defaultPrevented&&xt(!1)},[,ft]=(0,pe.Z)(en,It,Qe=>Qe===null?te.createElement(fe.Z,{className:`${mn}-close-icon`,onClick:qe}):te.createElement("span",{className:`${mn}-close-icon`,onClick:qe},Qe),null,!1),Dt=typeof rt.onClick=="function"||Re&&Re.type==="a",tt=ke||null,vt=tt?te.createElement(te.Fragment,null,tt,Re&&te.createElement("span",null,Re)):Re,bt=te.createElement("span",Object.assign({},rt,{ref:st,className:Xe,style:Hn}),vt,ft,Ve&&te.createElement(oe,{key:"preset",prefixCls:mn}),Qt&&te.createElement(ve,{key:"status",prefixCls:mn}));return zt(Dt?te.createElement(ae.Z,{component:"Tag"},bt):bt)},we=te.forwardRef(Le);we.CheckableTag=b;var Ne=we},79870:function(ot,Ze,ee){"use strict";ee.d(Ze,{default:function(){return fa}});var te=ee(87462),fe=ee(4942),be=ee(71002),_e=ee(1413),ce=ee(74902),pe=ee(15671),ae=ee(43144),me=ee(97326),de=ee(60136),ge=ee(51630),le=ee(94184),he=ee.n(le),re={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(_t){var jt=_t.keyCode;if(_t.altKey&&!_t.ctrlKey||_t.metaKey||jt>=re.F1&&jt<=re.F12)return!1;switch(jt){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(_t){if(_t>=re.ZERO&&_t<=re.NINE||_t>=re.NUM_ZERO&&_t<=re.NUM_MULTIPLY||_t>=re.A&&_t<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_t===0)return!0;switch(_t){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ne=re,y=ee(34952),a=ee(72978),E=ee(67294),b=ee(69610);function x(yt){var _t=yt.dropPosition,jt=yt.dropLevelOffset,Ue=yt.indent,Ut={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(_t){case-1:Ut.top=0,Ut.left=-jt*Ue;break;case 1:Ut.bottom=0,Ut.left=-jt*Ue;break;case 0:Ut.bottom=0,Ut.left=Ue;break}return E.createElement("div",{style:Ut})}var z=ee(36459),oe=ee(97685),ie=ee(45987);function ue(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var ve=ue()?E.useLayoutEffect:E.useEffect,Se=ve,Le=function(_t,jt){var Ue=React.useRef(!0);ve(function(){if(!Ue.current)return _t()},jt),ve(function(){return Ue.current=!1,function(){Ue.current=!0}},[])},we=ee(73299),Ne=ee(73935);function xe(yt){return yt instanceof HTMLElement||yt instanceof SVGElement}function st(yt){return xe(yt)?yt:yt instanceof E.Component?Ne.findDOMNode(yt):null}var Ye=ee(28580);function lt(yt,_t,jt){var Ue=React.useRef({});return(!("value"in Ue.current)||jt(Ue.current.condition,_t))&&(Ue.current.value=yt(),Ue.current.condition=_t),Ue.current.value}function Me(yt,_t){typeof yt=="function"?yt(_t):(0,be.Z)(yt)==="object"&&yt&&"current"in yt&&(yt.current=_t)}function Be(){for(var yt=arguments.length,_t=new Array(yt),jt=0;jt<yt;jt++)_t[jt]=arguments[jt];var Ue=_t.filter(function(Ut){return Ut});return Ue.length<=1?Ue[0]:function(Ut){_t.forEach(function(Xt){Me(Xt,Ut)})}}function Re(){for(var yt=arguments.length,_t=new Array(yt),jt=0;jt<yt;jt++)_t[jt]=arguments[jt];return useMemo(function(){return Be.apply(void 0,_t)},_t,function(Ue,Ut){return Ue.length===Ut.length&&Ue.every(function(Xt,pn){return Xt===Ut[pn]})})}function ke(yt){var _t,jt,Ue=(0,Ye.isMemo)(yt)?yt.type.type:yt.type;return!(typeof Ue=="function"&&!((_t=Ue.prototype)!==null&&_t!==void 0&&_t.render)||typeof yt=="function"&&!((jt=yt.prototype)!==null&&jt!==void 0&&jt.render))}function Ge(yt,_t){var jt={};return jt[yt.toLowerCase()]=_t.toLowerCase(),jt["Webkit".concat(yt)]="webkit".concat(_t),jt["Moz".concat(yt)]="moz".concat(_t),jt["ms".concat(yt)]="MS".concat(_t),jt["O".concat(yt)]="o".concat(_t.toLowerCase()),jt}function Et(yt,_t){var jt={animationend:Ge("Animation","AnimationEnd"),transitionend:Ge("Transition","TransitionEnd")};return yt&&("AnimationEvent"in _t||delete jt.animationend.animation,"TransitionEvent"in _t||delete jt.transitionend.transition),jt}var It=Et(ue(),typeof window!="undefined"?window:{}),en={};if(ue()){var Zt=document.createElement("div");en=Zt.style}var rt={};function at(yt){if(rt[yt])return rt[yt];var _t=It[yt];if(_t)for(var jt=Object.keys(_t),Ue=jt.length,Ut=0;Ut<Ue;Ut+=1){var Xt=jt[Ut];if(Object.prototype.hasOwnProperty.call(_t,Xt)&&Xt in en)return rt[yt]=_t[Xt],rt[yt]}return""}var Ct=at("animationend"),qt=at("transitionend"),Gt=!!(Ct&&qt),xt=Ct||"animationend",Ve=qt||"transitionend";function Qt(yt,_t){if(!yt)return null;if((0,be.Z)(yt)==="object"){var jt=_t.replace(/-\w/g,function(Ue){return Ue[1].toUpperCase()});return yt[jt]}return"".concat(yt,"-").concat(_t)}var Ln="none",Hn="appear",mn="enter",zt="leave",et="none",Xe="prepare",qe="start",ft="active",Dt="end";function tt(yt){var _t=E.useRef(!1),jt=E.useState(yt),Ue=(0,oe.Z)(jt,2),Ut=Ue[0],Xt=Ue[1];E.useEffect(function(){return _t.current=!1,function(){_t.current=!0}},[]);function pn(Lt,Ft){Ft&&_t.current||Xt(Lt)}return[Ut,pn]}var vt=function(_t){return+setTimeout(_t,16)},bt=function(_t){return clearTimeout(_t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(vt=function(_t){return window.requestAnimationFrame(_t)},bt=function(_t){return window.cancelAnimationFrame(_t)});var Qe=0,Wt=new Map;function He(yt){Wt.delete(yt)}var ut=function(_t){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Qe+=1;var Ue=Qe;function Ut(Xt){if(Xt===0)He(Ue),_t();else{var pn=vt(function(){Ut(Xt-1)});Wt.set(Ue,pn)}}return Ut(jt),Ue};ut.cancel=function(yt){var _t=Wt.get(yt);return He(_t),bt(_t)};var En=ut,un=function(){var yt=E.useRef(null);function _t(){En.cancel(yt.current)}function jt(Ue){var Ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;_t();var Xt=En(function(){Ut<=1?Ue({isCanceled:function(){return Xt!==yt.current}}):jt(Ue,Ut-1)});yt.current=Xt}return E.useEffect(function(){return function(){_t()}},[]),[jt,_t]},ht=ue()?E.useLayoutEffect:E.useEffect,sn=ht,ln=[Xe,qe,ft,Dt],fn=!1,nr=!0;function wt(yt){return yt===ft||yt===Dt}var xn=function(yt,_t){var jt=tt(et),Ue=(0,oe.Z)(jt,2),Ut=Ue[0],Xt=Ue[1],pn=un(),Lt=(0,oe.Z)(pn,2),Ft=Lt[0],Ot=Lt[1];function vn(){Xt(Xe,!0)}return sn(function(){if(Ut!==et&&Ut!==Dt){var Fn=ln.indexOf(Ut),Kn=ln[Fn+1],kn=_t(Ut);kn===fn?Xt(Kn,!0):Ft(function(Qn){function sr(){Qn.isCanceled()||Xt(Kn,!0)}kn===!0?sr():Promise.resolve(kn).then(sr)})}},[yt,Ut]),E.useEffect(function(){return function(){Ot()}},[]),[vn,Ut]},zn=function(yt){var _t=(0,E.useRef)(),jt=(0,E.useRef)(yt);jt.current=yt;var Ue=E.useCallback(function(pn){jt.current(pn)},[]);function Ut(pn){pn&&(pn.removeEventListener(Ve,Ue),pn.removeEventListener(xt,Ue))}function Xt(pn){_t.current&&_t.current!==pn&&Ut(_t.current),pn&&pn!==_t.current&&(pn.addEventListener(Ve,Ue),pn.addEventListener(xt,Ue),_t.current=pn)}return E.useEffect(function(){return function(){Ut(_t.current)}},[]),[Xt,Ut]};function Gr(yt,_t,jt,Ue){var Ut=Ue.motionEnter,Xt=Ut===void 0?!0:Ut,pn=Ue.motionAppear,Lt=pn===void 0?!0:pn,Ft=Ue.motionLeave,Ot=Ft===void 0?!0:Ft,vn=Ue.motionDeadline,Fn=Ue.motionLeaveImmediately,Kn=Ue.onAppearPrepare,kn=Ue.onEnterPrepare,Qn=Ue.onLeavePrepare,sr=Ue.onAppearStart,xr=Ue.onEnterStart,Bt=Ue.onLeaveStart,Kt=Ue.onAppearActive,rn=Ue.onEnterActive,an=Ue.onLeaveActive,Vn=Ue.onAppearEnd,lr=Ue.onEnterEnd,$e=Ue.onLeaveEnd,Fe=Ue.onVisibleChanged,nt=tt(),St=(0,oe.Z)(nt,2),Mt=St[0],Ht=St[1],dn=tt(Ln),_n=(0,oe.Z)(dn,2),An=_n[0],Un=_n[1],Tn=tt(null),In=(0,oe.Z)(Tn,2),Gn=In[0],Br=In[1],qr=(0,E.useRef)(!1),Eo=(0,E.useRef)(null);function Yr(){return jt()}var to=(0,E.useRef)(!1);function Jr(_o){var wo=Yr();if(!(_o&&!_o.deadline&&_o.target!==wo)){var Vo=to.current,pa;An===Hn&&Vo?pa=Vn==null?void 0:Vn(wo,_o):An===mn&&Vo?pa=lr==null?void 0:lr(wo,_o):An===zt&&Vo&&(pa=$e==null?void 0:$e(wo,_o)),An!==Ln&&Vo&&pa!==!1&&(Un(Ln,!0),Br(null,!0))}}var Ko=zn(Jr),Mr=(0,oe.Z)(Ko,1),no=Mr[0],Lo=E.useMemo(function(){var _o,wo,Vo;switch(An){case Hn:return _o={},(0,fe.Z)(_o,Xe,Kn),(0,fe.Z)(_o,qe,sr),(0,fe.Z)(_o,ft,Kt),_o;case mn:return wo={},(0,fe.Z)(wo,Xe,kn),(0,fe.Z)(wo,qe,xr),(0,fe.Z)(wo,ft,rn),wo;case zt:return Vo={},(0,fe.Z)(Vo,Xe,Qn),(0,fe.Z)(Vo,qe,Bt),(0,fe.Z)(Vo,ft,an),Vo;default:return{}}},[An]),la=xn(An,function(_o){if(_o===Xe){var wo=Lo[Xe];return wo?wo(Yr()):fn}if(jo in Lo){var Vo;Br(((Vo=Lo[jo])===null||Vo===void 0?void 0:Vo.call(Lo,Yr(),null))||null)}return jo===ft&&(no(Yr()),vn>0&&(clearTimeout(Eo.current),Eo.current=setTimeout(function(){Jr({deadline:!0})},vn))),nr}),So=(0,oe.Z)(la,2),na=So[0],jo=So[1],Ga=wt(jo);to.current=Ga,sn(function(){Ht(_t);var _o=qr.current;if(qr.current=!0,!!yt){var wo;!_o&&_t&&Lt&&(wo=Hn),_o&&_t&&Xt&&(wo=mn),(_o&&!_t&&Ot||!_o&&Fn&&!_t&&Ot)&&(wo=zt),wo&&(Un(wo),na())}},[_t]),(0,E.useEffect)(function(){(An===Hn&&!Lt||An===mn&&!Xt||An===zt&&!Ot)&&Un(Ln)},[Lt,Xt,Ot]),(0,E.useEffect)(function(){return function(){qr.current=!1,clearTimeout(Eo.current)}},[]);var Ea=E.useRef(!1);(0,E.useEffect)(function(){Mt&&(Ea.current=!0),Mt!==void 0&&An===Ln&&((Ea.current||Mt)&&(Fe==null||Fe(Mt)),Ea.current=!0)},[Mt,An]);var ma=Gn;return Lo[Xe]&&jo===qe&&(ma=(0,_e.Z)({transition:"none"},ma)),[An,jo,ma,Mt!=null?Mt:_t]}var vr=function(yt){(0,de.Z)(jt,yt);var _t=(0,ge.Z)(jt);function jt(){return(0,pe.Z)(this,jt),_t.apply(this,arguments)}return(0,ae.Z)(jt,[{key:"render",value:function(){return this.props.children}}]),jt}(E.Component),cr=vr;function wn(yt){var _t=yt;(0,be.Z)(yt)==="object"&&(_t=yt.transitionSupport);function jt(Ut){return!!(Ut.motionName&&_t)}var Ue=E.forwardRef(function(Ut,Xt){var pn=Ut.visible,Lt=pn===void 0?!0:pn,Ft=Ut.removeOnLeave,Ot=Ft===void 0?!0:Ft,vn=Ut.forceRender,Fn=Ut.children,Kn=Ut.motionName,kn=Ut.leavedClassName,Qn=Ut.eventProps,sr=jt(Ut),xr=(0,E.useRef)(),Bt=(0,E.useRef)();function Kt(){try{return xr.current instanceof HTMLElement?xr.current:st(Bt.current)}catch(Tn){return null}}var rn=Gr(sr,Lt,Kt,Ut),an=(0,oe.Z)(rn,4),Vn=an[0],lr=an[1],$e=an[2],Fe=an[3],nt=E.useRef(Fe);Fe&&(nt.current=!0);var St=E.useCallback(function(Tn){xr.current=Tn,Me(Xt,Tn)},[Xt]),Mt,Ht=(0,_e.Z)((0,_e.Z)({},Qn),{},{visible:Lt});if(!Fn)Mt=null;else if(Vn===Ln||!jt(Ut))Fe?Mt=Fn((0,_e.Z)({},Ht),St):!Ot&&nt.current&&kn?Mt=Fn((0,_e.Z)((0,_e.Z)({},Ht),{},{className:kn}),St):vn||!Ot&&!kn?Mt=Fn((0,_e.Z)((0,_e.Z)({},Ht),{},{style:{display:"none"}}),St):Mt=null;else{var dn,_n;lr===Xe?_n="prepare":wt(lr)?_n="active":lr===qe&&(_n="start"),Mt=Fn((0,_e.Z)((0,_e.Z)({},Ht),{},{className:he()(Qt(Kn,Vn),(dn={},(0,fe.Z)(dn,Qt(Kn,"".concat(Vn,"-").concat(_n)),_n),(0,fe.Z)(dn,Kn,typeof Kn=="string"),dn)),style:$e}),St)}if(E.isValidElement(Mt)&&ke(Mt)){var An=Mt,Un=An.ref;Un||(Mt=E.cloneElement(Mt,{ref:St}))}return E.createElement(cr,{ref:Bt},Mt)});return Ue.displayName="CSSMotion",Ue}var jr=wn(Gt),Hr="add",mo="keep",da="remove",Ro="removed";function Jo(yt){var _t;return yt&&(0,be.Z)(yt)==="object"&&"key"in yt?_t=yt:_t={key:yt},(0,_e.Z)((0,_e.Z)({},_t),{},{key:String(_t.key)})}function qo(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return yt.map(Jo)}function ur(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=[],Ue=0,Ut=_t.length,Xt=qo(yt),pn=qo(_t);Xt.forEach(function(Ot){for(var vn=!1,Fn=Ue;Fn<Ut;Fn+=1){var Kn=pn[Fn];if(Kn.key===Ot.key){Ue<Fn&&(jt=jt.concat(pn.slice(Ue,Fn).map(function(kn){return(0,_e.Z)((0,_e.Z)({},kn),{},{status:Hr})})),Ue=Fn),jt.push((0,_e.Z)((0,_e.Z)({},Kn),{},{status:mo})),Ue+=1,vn=!0;break}}vn||jt.push((0,_e.Z)((0,_e.Z)({},Ot),{},{status:da}))}),Ue<Ut&&(jt=jt.concat(pn.slice(Ue).map(function(Ot){return(0,_e.Z)((0,_e.Z)({},Ot),{},{status:Hr})})));var Lt={};jt.forEach(function(Ot){var vn=Ot.key;Lt[vn]=(Lt[vn]||0)+1});var Ft=Object.keys(Lt).filter(function(Ot){return Lt[Ot]>1});return Ft.forEach(function(Ot){jt=jt.filter(function(vn){var Fn=vn.key,Kn=vn.status;return Fn!==Ot||Kn!==da}),jt.forEach(function(vn){vn.key===Ot&&(vn.status=mo)})}),jt}var $r=["component","children","onVisibleChanged","onAllRemoved"],zr=["status"],To=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Fo(yt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jr,jt=function(Ue){(0,de.Z)(Xt,Ue);var Ut=(0,ge.Z)(Xt);function Xt(){var pn;(0,pe.Z)(this,Xt);for(var Lt=arguments.length,Ft=new Array(Lt),Ot=0;Ot<Lt;Ot++)Ft[Ot]=arguments[Ot];return pn=Ut.call.apply(Ut,[this].concat(Ft)),(0,fe.Z)((0,me.Z)(pn),"state",{keyEntities:[]}),(0,fe.Z)((0,me.Z)(pn),"removeKey",function(vn){var Fn=pn.state.keyEntities,Kn=Fn.map(function(kn){return kn.key!==vn?kn:(0,_e.Z)((0,_e.Z)({},kn),{},{status:Ro})});return pn.setState({keyEntities:Kn}),Kn.filter(function(kn){var Qn=kn.status;return Qn!==Ro}).length}),pn}return(0,ae.Z)(Xt,[{key:"render",value:function(){var Lt=this,Ft=this.state.keyEntities,Ot=this.props,vn=Ot.component,Fn=Ot.children,Kn=Ot.onVisibleChanged,kn=Ot.onAllRemoved,Qn=(0,ie.Z)(Ot,$r),sr=vn||E.Fragment,xr={};return To.forEach(function(Bt){xr[Bt]=Qn[Bt],delete Qn[Bt]}),delete Qn.keys,E.createElement(sr,Qn,Ft.map(function(Bt){var Kt=Bt.status,rn=(0,ie.Z)(Bt,zr),an=Kt===Hr||Kt===mo;return E.createElement(_t,(0,te.Z)({},xr,{key:rn.key,visible:an,eventProps:rn,onVisibleChanged:function(lr){if(Kn==null||Kn(lr,{key:rn.key}),!lr){var $e=Lt.removeKey(rn.key);$e===0&&kn&&kn()}}}),Fn)}))}}],[{key:"getDerivedStateFromProps",value:function(Lt,Ft){var Ot=Lt.keys,vn=Ft.keyEntities,Fn=qo(Ot),Kn=ur(vn,Fn);return{keyEntities:Kn.filter(function(kn){var Qn=vn.find(function(sr){var xr=sr.key;return kn.key===xr});return!(Qn&&Qn.status===Ro&&kn.status===da)})}}}]),Xt}(E.Component);return(0,fe.Z)(jt,"defaultProps",{component:"div"}),jt}var po=Fo(Gt),Lr=jr,vo=ee(56261);function hn(yt,_t){var jt=E.useState(!1),Ue=(0,oe.Z)(jt,2),Ut=Ue[0],Xt=Ue[1];E.useLayoutEffect(function(){if(Ut)return yt(),function(){_t()}},[Ut]),E.useLayoutEffect(function(){return Xt(!0),function(){Xt(!1)}},[])}var se=ee(83898),ye=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Pe=function(_t,jt){var Ue=_t.className,Ut=_t.style,Xt=_t.motion,pn=_t.motionNodes,Lt=_t.motionType,Ft=_t.onMotionStart,Ot=_t.onMotionEnd,vn=_t.active,Fn=_t.treeNodeRequiredProps,Kn=(0,ie.Z)(_t,ye),kn=E.useState(!0),Qn=(0,oe.Z)(kn,2),sr=Qn[0],xr=Qn[1],Bt=E.useContext(b.k),Kt=Bt.prefixCls,rn=pn&&Lt!=="hide";Se(function(){pn&&rn!==sr&&xr(rn)},[pn]);var an=function(){pn&&Ft()},Vn=E.useRef(!1),lr=function(){pn&&!Vn.current&&(Vn.current=!0,Ot())};hn(an,lr);var $e=function(nt){rn===nt&&lr()};return pn?E.createElement(Lr,(0,te.Z)({ref:jt,visible:sr},Xt,{motionAppear:Lt==="show",onVisibleChanged:$e}),function(Fe,nt){var St=Fe.className,Mt=Fe.style;return E.createElement("div",{ref:nt,className:he()("".concat(Kt,"-treenode-motion"),St),style:Mt},pn.map(function(Ht){var dn=(0,te.Z)({},((0,z.Z)(Ht.data),Ht.data)),_n=Ht.title,An=Ht.key,Un=Ht.isStart,Tn=Ht.isEnd;delete dn.children;var In=(0,se.H8)(An,Fn);return E.createElement(vo.Z,(0,te.Z)({},dn,In,{title:_n,active:vn,data:Ht.data,key:An,isStart:Un,isEnd:Tn}))}))}):E.createElement(vo.Z,(0,te.Z)({domRef:jt,className:Ue,style:Ut},Kn,{active:vn}))};Pe.displayName="MotionTreeNode";var Ae=E.forwardRef(Pe),Oe=Ae;function Je(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=yt.length,Ue=_t.length;if(Math.abs(jt-Ue)!==1)return{add:!1,key:null};function Ut(Xt,pn){var Lt=new Map;Xt.forEach(function(Ot){Lt.set(Ot,!0)});var Ft=pn.filter(function(Ot){return!Lt.has(Ot)});return Ft.length===1?Ft[0]:null}return jt<Ue?{add:!0,key:Ut(yt,_t)}:{add:!1,key:Ut(_t,yt)}}function pt(yt,_t,jt){var Ue=yt.findIndex(function(Lt){return Lt.key===jt}),Ut=yt[Ue+1],Xt=_t.findIndex(function(Lt){return Lt.key===jt});if(Ut){var pn=_t.findIndex(function(Lt){return Lt.key===Ut.key});return _t.slice(Xt+1,pn)}return _t.slice(Xt+1)}var gn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],$t={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Bn=function(){},hr="RC_TREE_MOTION_".concat(Math.random()),gr={key:hr},Nt={key:hr,level:0,index:0,pos:"0",node:gr,nodes:[gr]},Wn={parent:null,children:[],pos:Nt.pos,data:gr,title:null,key:hr,isStart:[],isEnd:[]};function qn(yt,_t,jt,Ue){return _t===!1||!jt?yt:yt.slice(0,Math.ceil(jt/Ue)+1)}function Sn(yt){var _t=yt.key,jt=yt.pos;return(0,se.km)(_t,jt)}function Mn(yt){for(var _t=String(yt.data.key),jt=yt;jt.parent;)jt=jt.parent,_t="".concat(jt.data.key," > ").concat(_t);return _t}var Xn=E.forwardRef(function(yt,_t){var jt=yt.prefixCls,Ue=yt.data,Ut=yt.selectable,Xt=yt.checkable,pn=yt.expandedKeys,Lt=yt.selectedKeys,Ft=yt.checkedKeys,Ot=yt.loadedKeys,vn=yt.loadingKeys,Fn=yt.halfCheckedKeys,Kn=yt.keyEntities,kn=yt.disabled,Qn=yt.dragging,sr=yt.dragOverNodeKey,xr=yt.dropPosition,Bt=yt.motion,Kt=yt.height,rn=yt.itemHeight,an=yt.virtual,Vn=yt.focusable,lr=yt.activeItem,$e=yt.focused,Fe=yt.tabIndex,nt=yt.onKeyDown,St=yt.onFocus,Mt=yt.onBlur,Ht=yt.onActiveChange,dn=yt.onListChangeStart,_n=yt.onListChangeEnd,An=(0,ie.Z)(yt,gn),Un=E.useRef(null),Tn=E.useRef(null);E.useImperativeHandle(_t,function(){return{scrollTo:function(xa){Un.current.scrollTo(xa)},getIndentWidth:function(){return Tn.current.offsetWidth}}});var In=E.useState(pn),Gn=(0,oe.Z)(In,2),Br=Gn[0],qr=Gn[1],Eo=E.useState(Ue),Yr=(0,oe.Z)(Eo,2),to=Yr[0],Jr=Yr[1],Ko=E.useState(Ue),Mr=(0,oe.Z)(Ko,2),no=Mr[0],Lo=Mr[1],la=E.useState([]),So=(0,oe.Z)(la,2),na=So[0],jo=So[1],Ga=E.useState(null),Ea=(0,oe.Z)(Ga,2),ma=Ea[0],_o=Ea[1],wo=E.useRef(Ue);wo.current=Ue;function Vo(){var Io=wo.current;Jr(Io),Lo(Io),jo([]),_o(null),_n()}Se(function(){qr(pn);var Io=Je(Br,pn);if(Io.key!==null)if(Io.add){var xa=to.findIndex(function(ea){var Ca=ea.key;return Ca===Io.key}),Ma=qn(pt(to,Ue,Io.key),an,Kt,rn),$a=to.slice();$a.splice(xa+1,0,Wn),Lo($a),jo(Ma),_o("show")}else{var Ra=Ue.findIndex(function(ea){var Ca=ea.key;return Ca===Io.key}),Oo=qn(pt(Ue,to,Io.key),an,Kt,rn),Wa=Ue.slice();Wa.splice(Ra+1,0,Wn),Lo(Wa),jo(Oo),_o("hide")}else to!==Ue&&(Jr(Ue),Lo(Ue))},[pn,Ue]),E.useEffect(function(){Qn||Vo()},[Qn]);var pa=Bt?no:Ue,Da={expandedKeys:pn,selectedKeys:Lt,loadedKeys:Ot,loadingKeys:vn,checkedKeys:Ft,halfCheckedKeys:Fn,dragOverNodeKey:sr,dropPosition:xr,keyEntities:Kn};return E.createElement(E.Fragment,null,$e&&lr&&E.createElement("span",{style:$t,"aria-live":"assertive"},Mn(lr)),E.createElement("div",null,E.createElement("input",{style:$t,disabled:Vn===!1||kn,tabIndex:Vn!==!1?Fe:null,onKeyDown:nt,onFocus:St,onBlur:Mt,value:"",onChange:Bn,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(jt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},E.createElement("div",{className:"".concat(jt,"-indent")},E.createElement("div",{ref:Tn,className:"".concat(jt,"-indent-unit")}))),E.createElement(we.Z,(0,te.Z)({},An,{data:pa,itemKey:Sn,height:Kt,fullHeight:!1,virtual:an,itemHeight:rn,prefixCls:"".concat(jt,"-list"),ref:Un,onVisibleChange:function(xa,Ma){var $a=new Set(xa),Ra=Ma.filter(function(Oo){return!$a.has(Oo)});Ra.some(function(Oo){return Sn(Oo)===hr})&&Vo()}}),function(Io){var xa=Io.pos,Ma=(0,te.Z)({},((0,z.Z)(Io.data),Io.data)),$a=Io.title,Ra=Io.key,Oo=Io.isStart,Wa=Io.isEnd,ea=(0,se.km)(Ra,xa);delete Ma.key,delete Ma.children;var Ca=(0,se.H8)(ea,Da);return E.createElement(Oe,(0,te.Z)({},Ma,Ca,{title:$a,active:!!lr&&Ra===lr.key,pos:xa,data:Io.data,isStart:Oo,isEnd:Wa,motion:Bt,motionNodes:Ra===hr?na:null,motionType:ma,onMotionStart:dn,onMotionEnd:Vo,treeNodeRequiredProps:Da,onMouseMove:function(){Ht(null)}}))}))});Xn.displayName="NodeList";var Pr=Xn,ar=ee(29873),ga=ee(97153),bo=ee(3596),fr=10,Qr=function(yt){(0,de.Z)(jt,yt);var _t=(0,ge.Z)(jt);function jt(){var Ue;(0,pe.Z)(this,jt);for(var Ut=arguments.length,Xt=new Array(Ut),pn=0;pn<Ut;pn++)Xt[pn]=arguments[pn];return Ue=_t.call.apply(_t,[this].concat(Xt)),Ue.destroyed=!1,Ue.delayedDragEnterLogic=void 0,Ue.loadingRetryTimes={},Ue.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,se.w$)()},Ue.dragStartMousePosition=null,Ue.dragNode=void 0,Ue.currentMouseOverDroppableNodeKey=null,Ue.listRef=E.createRef(),Ue.onNodeDragStart=function(Lt,Ft){var Ot=Ue.state,vn=Ot.expandedKeys,Fn=Ot.keyEntities,Kn=Ue.props.onDragStart,kn=Ft.props.eventKey;Ue.dragNode=Ft,Ue.dragStartMousePosition={x:Lt.clientX,y:Lt.clientY};var Qn=(0,ar._5)(vn,kn);Ue.setState({draggingNodeKey:kn,dragChildrenKeys:(0,ar.wA)(kn,Fn),indent:Ue.listRef.current.getIndentWidth()}),Ue.setExpandedKeys(Qn),window.addEventListener("dragend",Ue.onWindowDragEnd),Kn==null||Kn({event:Lt,node:(0,se.F)(Ft.props)})},Ue.onNodeDragEnter=function(Lt,Ft){var Ot=Ue.state,vn=Ot.expandedKeys,Fn=Ot.keyEntities,Kn=Ot.dragChildrenKeys,kn=Ot.flattenNodes,Qn=Ot.indent,sr=Ue.props,xr=sr.onDragEnter,Bt=sr.onExpand,Kt=sr.allowDrop,rn=sr.direction,an=Ft.props,Vn=an.pos,lr=an.eventKey,$e=(0,me.Z)(Ue),Fe=$e.dragNode;if(Ue.currentMouseOverDroppableNodeKey!==lr&&(Ue.currentMouseOverDroppableNodeKey=lr),!Fe){Ue.resetDragState();return}var nt=(0,ar.OM)(Lt,Fe,Ft,Qn,Ue.dragStartMousePosition,Kt,kn,Fn,vn,rn),St=nt.dropPosition,Mt=nt.dropLevelOffset,Ht=nt.dropTargetKey,dn=nt.dropContainerKey,_n=nt.dropTargetPos,An=nt.dropAllowed,Un=nt.dragOverNodeKey;if(Kn.indexOf(Ht)!==-1||!An){Ue.resetDragState();return}if(Ue.delayedDragEnterLogic||(Ue.delayedDragEnterLogic={}),Object.keys(Ue.delayedDragEnterLogic).forEach(function(Tn){clearTimeout(Ue.delayedDragEnterLogic[Tn])}),Fe.props.eventKey!==Ft.props.eventKey&&(Lt.persist(),Ue.delayedDragEnterLogic[Vn]=window.setTimeout(function(){if(Ue.state.draggingNodeKey!==null){var Tn=(0,ce.Z)(vn),In=(0,bo.Z)(Fn,Ft.props.eventKey);In&&(In.children||[]).length&&(Tn=(0,ar.L0)(vn,Ft.props.eventKey)),"expandedKeys"in Ue.props||Ue.setExpandedKeys(Tn),Bt==null||Bt(Tn,{node:(0,se.F)(Ft.props),expanded:!0,nativeEvent:Lt.nativeEvent})}},800)),Fe.props.eventKey===Ht&&Mt===0){Ue.resetDragState();return}Ue.setState({dragOverNodeKey:Un,dropPosition:St,dropLevelOffset:Mt,dropTargetKey:Ht,dropContainerKey:dn,dropTargetPos:_n,dropAllowed:An}),xr==null||xr({event:Lt,node:(0,se.F)(Ft.props),expandedKeys:vn})},Ue.onNodeDragOver=function(Lt,Ft){var Ot=Ue.state,vn=Ot.dragChildrenKeys,Fn=Ot.flattenNodes,Kn=Ot.keyEntities,kn=Ot.expandedKeys,Qn=Ot.indent,sr=Ue.props,xr=sr.onDragOver,Bt=sr.allowDrop,Kt=sr.direction,rn=(0,me.Z)(Ue),an=rn.dragNode;if(an){var Vn=(0,ar.OM)(Lt,an,Ft,Qn,Ue.dragStartMousePosition,Bt,Fn,Kn,kn,Kt),lr=Vn.dropPosition,$e=Vn.dropLevelOffset,Fe=Vn.dropTargetKey,nt=Vn.dropContainerKey,St=Vn.dropAllowed,Mt=Vn.dropTargetPos,Ht=Vn.dragOverNodeKey;vn.indexOf(Fe)!==-1||!St||(an.props.eventKey===Fe&&$e===0?Ue.state.dropPosition===null&&Ue.state.dropLevelOffset===null&&Ue.state.dropTargetKey===null&&Ue.state.dropContainerKey===null&&Ue.state.dropTargetPos===null&&Ue.state.dropAllowed===!1&&Ue.state.dragOverNodeKey===null||Ue.resetDragState():lr===Ue.state.dropPosition&&$e===Ue.state.dropLevelOffset&&Fe===Ue.state.dropTargetKey&&nt===Ue.state.dropContainerKey&&Mt===Ue.state.dropTargetPos&&St===Ue.state.dropAllowed&&Ht===Ue.state.dragOverNodeKey||Ue.setState({dropPosition:lr,dropLevelOffset:$e,dropTargetKey:Fe,dropContainerKey:nt,dropTargetPos:Mt,dropAllowed:St,dragOverNodeKey:Ht}),xr==null||xr({event:Lt,node:(0,se.F)(Ft.props)}))}},Ue.onNodeDragLeave=function(Lt,Ft){Ue.currentMouseOverDroppableNodeKey===Ft.props.eventKey&&!Lt.currentTarget.contains(Lt.relatedTarget)&&(Ue.resetDragState(),Ue.currentMouseOverDroppableNodeKey=null);var Ot=Ue.props.onDragLeave;Ot==null||Ot({event:Lt,node:(0,se.F)(Ft.props)})},Ue.onWindowDragEnd=function(Lt){Ue.onNodeDragEnd(Lt,null,!0),window.removeEventListener("dragend",Ue.onWindowDragEnd)},Ue.onNodeDragEnd=function(Lt,Ft){var Ot=Ue.props.onDragEnd;Ue.setState({dragOverNodeKey:null}),Ue.cleanDragState(),Ot==null||Ot({event:Lt,node:(0,se.F)(Ft.props)}),Ue.dragNode=null,window.removeEventListener("dragend",Ue.onWindowDragEnd)},Ue.onNodeDrop=function(Lt,Ft){var Ot,vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Fn=Ue.state,Kn=Fn.dragChildrenKeys,kn=Fn.dropPosition,Qn=Fn.dropTargetKey,sr=Fn.dropTargetPos,xr=Fn.dropAllowed;if(xr){var Bt=Ue.props.onDrop;if(Ue.setState({dragOverNodeKey:null}),Ue.cleanDragState(),Qn!==null){var Kt=(0,_e.Z)((0,_e.Z)({},(0,se.H8)(Qn,Ue.getTreeNodeRequiredProps())),{},{active:((Ot=Ue.getActiveItem())===null||Ot===void 0?void 0:Ot.key)===Qn,data:(0,bo.Z)(Ue.state.keyEntities,Qn).node}),rn=Kn.indexOf(Qn)!==-1;(0,a.ZP)(!rn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var an=(0,ar.yx)(sr),Vn={event:Lt,node:(0,se.F)(Kt),dragNode:Ue.dragNode?(0,se.F)(Ue.dragNode.props):null,dragNodesKeys:[Ue.dragNode.props.eventKey].concat(Kn),dropToGap:kn!==0,dropPosition:kn+Number(an[an.length-1])};vn||Bt==null||Bt(Vn),Ue.dragNode=null}}},Ue.cleanDragState=function(){var Lt=Ue.state.draggingNodeKey;Lt!==null&&Ue.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ue.dragStartMousePosition=null,Ue.currentMouseOverDroppableNodeKey=null},Ue.triggerExpandActionExpand=function(Lt,Ft){var Ot=Ue.state,vn=Ot.expandedKeys,Fn=Ot.flattenNodes,Kn=Ft.expanded,kn=Ft.key,Qn=Ft.isLeaf;if(!(Qn||Lt.shiftKey||Lt.metaKey||Lt.ctrlKey)){var sr=Fn.filter(function(Bt){return Bt.key===kn})[0],xr=(0,se.F)((0,_e.Z)((0,_e.Z)({},(0,se.H8)(kn,Ue.getTreeNodeRequiredProps())),{},{data:sr.data}));Ue.setExpandedKeys(Kn?(0,ar._5)(vn,kn):(0,ar.L0)(vn,kn)),Ue.onNodeExpand(Lt,xr)}},Ue.onNodeClick=function(Lt,Ft){var Ot=Ue.props,vn=Ot.onClick,Fn=Ot.expandAction;Fn==="click"&&Ue.triggerExpandActionExpand(Lt,Ft),vn==null||vn(Lt,Ft)},Ue.onNodeDoubleClick=function(Lt,Ft){var Ot=Ue.props,vn=Ot.onDoubleClick,Fn=Ot.expandAction;Fn==="doubleClick"&&Ue.triggerExpandActionExpand(Lt,Ft),vn==null||vn(Lt,Ft)},Ue.onNodeSelect=function(Lt,Ft){var Ot=Ue.state.selectedKeys,vn=Ue.state,Fn=vn.keyEntities,Kn=vn.fieldNames,kn=Ue.props,Qn=kn.onSelect,sr=kn.multiple,xr=Ft.selected,Bt=Ft[Kn.key],Kt=!xr;Kt?sr?Ot=(0,ar.L0)(Ot,Bt):Ot=[Bt]:Ot=(0,ar._5)(Ot,Bt);var rn=Ot.map(function(an){var Vn=(0,bo.Z)(Fn,an);return Vn?Vn.node:null}).filter(function(an){return an});Ue.setUncontrolledState({selectedKeys:Ot}),Qn==null||Qn(Ot,{event:"select",selected:Kt,node:Ft,selectedNodes:rn,nativeEvent:Lt.nativeEvent})},Ue.onNodeCheck=function(Lt,Ft,Ot){var vn=Ue.state,Fn=vn.keyEntities,Kn=vn.checkedKeys,kn=vn.halfCheckedKeys,Qn=Ue.props,sr=Qn.checkStrictly,xr=Qn.onCheck,Bt=Ft.key,Kt,rn={event:"check",node:Ft,checked:Ot,nativeEvent:Lt.nativeEvent};if(sr){var an=Ot?(0,ar.L0)(Kn,Bt):(0,ar._5)(Kn,Bt),Vn=(0,ar._5)(kn,Bt);Kt={checked:an,halfChecked:Vn},rn.checkedNodes=an.map(function(Mt){return(0,bo.Z)(Fn,Mt)}).filter(function(Mt){return Mt}).map(function(Mt){return Mt.node}),Ue.setUncontrolledState({checkedKeys:an})}else{var lr=(0,ga.S)([].concat((0,ce.Z)(Kn),[Bt]),!0,Fn),$e=lr.checkedKeys,Fe=lr.halfCheckedKeys;if(!Ot){var nt=new Set($e);nt.delete(Bt);var St=(0,ga.S)(Array.from(nt),{checked:!1,halfCheckedKeys:Fe},Fn);$e=St.checkedKeys,Fe=St.halfCheckedKeys}Kt=$e,rn.checkedNodes=[],rn.checkedNodesPositions=[],rn.halfCheckedKeys=Fe,$e.forEach(function(Mt){var Ht=(0,bo.Z)(Fn,Mt);if(Ht){var dn=Ht.node,_n=Ht.pos;rn.checkedNodes.push(dn),rn.checkedNodesPositions.push({node:dn,pos:_n})}}),Ue.setUncontrolledState({checkedKeys:$e},!1,{halfCheckedKeys:Fe})}xr==null||xr(Kt,rn)},Ue.onNodeLoad=function(Lt){var Ft=Lt.key,Ot=new Promise(function(vn,Fn){Ue.setState(function(Kn){var kn=Kn.loadedKeys,Qn=kn===void 0?[]:kn,sr=Kn.loadingKeys,xr=sr===void 0?[]:sr,Bt=Ue.props,Kt=Bt.loadData,rn=Bt.onLoad;if(!Kt||Qn.indexOf(Ft)!==-1||xr.indexOf(Ft)!==-1)return null;var an=Kt(Lt);return an.then(function(){var Vn=Ue.state.loadedKeys,lr=(0,ar.L0)(Vn,Ft);rn==null||rn(lr,{event:"load",node:Lt}),Ue.setUncontrolledState({loadedKeys:lr}),Ue.setState(function($e){return{loadingKeys:(0,ar._5)($e.loadingKeys,Ft)}}),vn()}).catch(function(Vn){if(Ue.setState(function($e){return{loadingKeys:(0,ar._5)($e.loadingKeys,Ft)}}),Ue.loadingRetryTimes[Ft]=(Ue.loadingRetryTimes[Ft]||0)+1,Ue.loadingRetryTimes[Ft]>=fr){var lr=Ue.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ue.setUncontrolledState({loadedKeys:(0,ar.L0)(lr,Ft)}),vn()}Fn(Vn)}),{loadingKeys:(0,ar.L0)(xr,Ft)}})});return Ot.catch(function(){}),Ot},Ue.onNodeMouseEnter=function(Lt,Ft){var Ot=Ue.props.onMouseEnter;Ot==null||Ot({event:Lt,node:Ft})},Ue.onNodeMouseLeave=function(Lt,Ft){var Ot=Ue.props.onMouseLeave;Ot==null||Ot({event:Lt,node:Ft})},Ue.onNodeContextMenu=function(Lt,Ft){var Ot=Ue.props.onRightClick;Ot&&(Lt.preventDefault(),Ot({event:Lt,node:Ft}))},Ue.onFocus=function(){var Lt=Ue.props.onFocus;Ue.setState({focused:!0});for(var Ft=arguments.length,Ot=new Array(Ft),vn=0;vn<Ft;vn++)Ot[vn]=arguments[vn];Lt==null||Lt.apply(void 0,Ot)},Ue.onBlur=function(){var Lt=Ue.props.onBlur;Ue.setState({focused:!1}),Ue.onActiveChange(null);for(var Ft=arguments.length,Ot=new Array(Ft),vn=0;vn<Ft;vn++)Ot[vn]=arguments[vn];Lt==null||Lt.apply(void 0,Ot)},Ue.getTreeNodeRequiredProps=function(){var Lt=Ue.state,Ft=Lt.expandedKeys,Ot=Lt.selectedKeys,vn=Lt.loadedKeys,Fn=Lt.loadingKeys,Kn=Lt.checkedKeys,kn=Lt.halfCheckedKeys,Qn=Lt.dragOverNodeKey,sr=Lt.dropPosition,xr=Lt.keyEntities;return{expandedKeys:Ft||[],selectedKeys:Ot||[],loadedKeys:vn||[],loadingKeys:Fn||[],checkedKeys:Kn||[],halfCheckedKeys:kn||[],dragOverNodeKey:Qn,dropPosition:sr,keyEntities:xr}},Ue.setExpandedKeys=function(Lt){var Ft=Ue.state,Ot=Ft.treeData,vn=Ft.fieldNames,Fn=(0,se.oH)(Ot,Lt,vn);Ue.setUncontrolledState({expandedKeys:Lt,flattenNodes:Fn},!0)},Ue.onNodeExpand=function(Lt,Ft){var Ot=Ue.state.expandedKeys,vn=Ue.state,Fn=vn.listChanging,Kn=vn.fieldNames,kn=Ue.props,Qn=kn.onExpand,sr=kn.loadData,xr=Ft.expanded,Bt=Ft[Kn.key];if(!Fn){var Kt=Ot.indexOf(Bt),rn=!xr;if((0,a.ZP)(xr&&Kt!==-1||!xr&&Kt===-1,"Expand state not sync with index check"),rn?Ot=(0,ar.L0)(Ot,Bt):Ot=(0,ar._5)(Ot,Bt),Ue.setExpandedKeys(Ot),Qn==null||Qn(Ot,{node:Ft,expanded:rn,nativeEvent:Lt.nativeEvent}),rn&&sr){var an=Ue.onNodeLoad(Ft);an&&an.then(function(){var Vn=(0,se.oH)(Ue.state.treeData,Ot,Kn);Ue.setUncontrolledState({flattenNodes:Vn})}).catch(function(){var Vn=Ue.state.expandedKeys,lr=(0,ar._5)(Vn,Bt);Ue.setExpandedKeys(lr)})}}},Ue.onListChangeStart=function(){Ue.setUncontrolledState({listChanging:!0})},Ue.onListChangeEnd=function(){setTimeout(function(){Ue.setUncontrolledState({listChanging:!1})})},Ue.onActiveChange=function(Lt){var Ft=Ue.state.activeKey,Ot=Ue.props.onActiveChange;Ft!==Lt&&(Ue.setState({activeKey:Lt}),Lt!==null&&Ue.scrollTo({key:Lt}),Ot==null||Ot(Lt))},Ue.getActiveItem=function(){var Lt=Ue.state,Ft=Lt.activeKey,Ot=Lt.flattenNodes;return Ft===null?null:Ot.find(function(vn){var Fn=vn.key;return Fn===Ft})||null},Ue.offsetActiveKey=function(Lt){var Ft=Ue.state,Ot=Ft.flattenNodes,vn=Ft.activeKey,Fn=Ot.findIndex(function(Qn){var sr=Qn.key;return sr===vn});Fn===-1&&Lt<0&&(Fn=Ot.length),Fn=(Fn+Lt+Ot.length)%Ot.length;var Kn=Ot[Fn];if(Kn){var kn=Kn.key;Ue.onActiveChange(kn)}else Ue.onActiveChange(null)},Ue.onKeyDown=function(Lt){var Ft=Ue.state,Ot=Ft.activeKey,vn=Ft.expandedKeys,Fn=Ft.checkedKeys,Kn=Ft.fieldNames,kn=Ue.props,Qn=kn.onKeyDown,sr=kn.checkable,xr=kn.selectable;switch(Lt.which){case ne.UP:{Ue.offsetActiveKey(-1),Lt.preventDefault();break}case ne.DOWN:{Ue.offsetActiveKey(1),Lt.preventDefault();break}}var Bt=Ue.getActiveItem();if(Bt&&Bt.data){var Kt=Ue.getTreeNodeRequiredProps(),rn=Bt.data.isLeaf===!1||!!(Bt.data[Kn.children]||[]).length,an=(0,se.F)((0,_e.Z)((0,_e.Z)({},(0,se.H8)(Ot,Kt)),{},{data:Bt.data,active:!0}));switch(Lt.which){case ne.LEFT:{rn&&vn.includes(Ot)?Ue.onNodeExpand({},an):Bt.parent&&Ue.onActiveChange(Bt.parent.key),Lt.preventDefault();break}case ne.RIGHT:{rn&&!vn.includes(Ot)?Ue.onNodeExpand({},an):Bt.children&&Bt.children.length&&Ue.onActiveChange(Bt.children[0].key),Lt.preventDefault();break}case ne.ENTER:case ne.SPACE:{sr&&!an.disabled&&an.checkable!==!1&&!an.disableCheckbox?Ue.onNodeCheck({},an,!Fn.includes(Ot)):!sr&&xr&&!an.disabled&&an.selectable!==!1&&Ue.onNodeSelect({},an);break}}}Qn==null||Qn(Lt)},Ue.setUncontrolledState=function(Lt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ue.destroyed){var vn=!1,Fn=!0,Kn={};Object.keys(Lt).forEach(function(kn){if(kn in Ue.props){Fn=!1;return}vn=!0,Kn[kn]=Lt[kn]}),vn&&(!Ft||Fn)&&Ue.setState((0,_e.Z)((0,_e.Z)({},Kn),Ot))}},Ue.scrollTo=function(Lt){Ue.listRef.current.scrollTo(Lt)},Ue}return(0,ae.Z)(jt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ut=this.props.activeKey;Ut!==void 0&&Ut!==this.state.activeKey&&(this.setState({activeKey:Ut}),Ut!==null&&this.scrollTo({key:Ut}))}},{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 Ut,Xt=this.state,pn=Xt.focused,Lt=Xt.flattenNodes,Ft=Xt.keyEntities,Ot=Xt.draggingNodeKey,vn=Xt.activeKey,Fn=Xt.dropLevelOffset,Kn=Xt.dropContainerKey,kn=Xt.dropTargetKey,Qn=Xt.dropPosition,sr=Xt.dragOverNodeKey,xr=Xt.indent,Bt=this.props,Kt=Bt.prefixCls,rn=Bt.className,an=Bt.style,Vn=Bt.showLine,lr=Bt.focusable,$e=Bt.tabIndex,Fe=$e===void 0?0:$e,nt=Bt.selectable,St=Bt.showIcon,Mt=Bt.icon,Ht=Bt.switcherIcon,dn=Bt.draggable,_n=Bt.checkable,An=Bt.checkStrictly,Un=Bt.disabled,Tn=Bt.motion,In=Bt.loadData,Gn=Bt.filterTreeNode,Br=Bt.height,qr=Bt.itemHeight,Eo=Bt.virtual,Yr=Bt.titleRender,to=Bt.dropIndicatorRender,Jr=Bt.onContextMenu,Ko=Bt.onScroll,Mr=Bt.direction,no=Bt.rootClassName,Lo=Bt.rootStyle,la=(0,y.Z)(this.props,{aria:!0,data:!0}),So;return dn&&((0,be.Z)(dn)==="object"?So=dn:typeof dn=="function"?So={nodeDraggable:dn}:So={}),E.createElement(b.k.Provider,{value:{prefixCls:Kt,selectable:nt,showIcon:St,icon:Mt,switcherIcon:Ht,draggable:So,draggingNodeKey:Ot,checkable:_n,checkStrictly:An,disabled:Un,keyEntities:Ft,dropLevelOffset:Fn,dropContainerKey:Kn,dropTargetKey:kn,dropPosition:Qn,dragOverNodeKey:sr,indent:xr,direction:Mr,dropIndicatorRender:to,loadData:In,filterTreeNode:Gn,titleRender:Yr,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}},E.createElement("div",{role:"tree",className:he()(Kt,rn,no,(Ut={},(0,fe.Z)(Ut,"".concat(Kt,"-show-line"),Vn),(0,fe.Z)(Ut,"".concat(Kt,"-focused"),pn),(0,fe.Z)(Ut,"".concat(Kt,"-active-focused"),vn!==null),Ut)),style:Lo},E.createElement(Pr,(0,te.Z)({ref:this.listRef,prefixCls:Kt,style:an,data:Lt,disabled:Un,selectable:nt,checkable:!!_n,motion:Tn,dragging:Ot!==null,height:Br,itemHeight:qr,virtual:Eo,focusable:lr,focused:pn,tabIndex:Fe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Jr,onScroll:Ko},this.getTreeNodeRequiredProps(),la))))}}],[{key:"getDerivedStateFromProps",value:function(Ut,Xt){var pn=Xt.prevProps,Lt={prevProps:Ut};function Ft(lr){return!pn&&lr in Ut||pn&&pn[lr]!==Ut[lr]}var Ot,vn=Xt.fieldNames;if(Ft("fieldNames")&&(vn=(0,se.w$)(Ut.fieldNames),Lt.fieldNames=vn),Ft("treeData")?Ot=Ut.treeData:Ft("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Ot=(0,se.zn)(Ut.children)),Ot){Lt.treeData=Ot;var Fn=(0,se.I8)(Ot,{fieldNames:vn});Lt.keyEntities=(0,_e.Z)((0,fe.Z)({},hr,Nt),Fn.keyEntities)}var Kn=Lt.keyEntities||Xt.keyEntities;if(Ft("expandedKeys")||pn&&Ft("autoExpandParent"))Lt.expandedKeys=Ut.autoExpandParent||!pn&&Ut.defaultExpandParent?(0,ar.r7)(Ut.expandedKeys,Kn):Ut.expandedKeys;else if(!pn&&Ut.defaultExpandAll){var kn=(0,_e.Z)({},Kn);delete kn[hr],Lt.expandedKeys=Object.keys(kn).map(function(lr){return kn[lr].key})}else!pn&&Ut.defaultExpandedKeys&&(Lt.expandedKeys=Ut.autoExpandParent||Ut.defaultExpandParent?(0,ar.r7)(Ut.defaultExpandedKeys,Kn):Ut.defaultExpandedKeys);if(Lt.expandedKeys||delete Lt.expandedKeys,Ot||Lt.expandedKeys){var Qn=(0,se.oH)(Ot||Xt.treeData,Lt.expandedKeys||Xt.expandedKeys,vn);Lt.flattenNodes=Qn}if(Ut.selectable&&(Ft("selectedKeys")?Lt.selectedKeys=(0,ar.BT)(Ut.selectedKeys,Ut):!pn&&Ut.defaultSelectedKeys&&(Lt.selectedKeys=(0,ar.BT)(Ut.defaultSelectedKeys,Ut))),Ut.checkable){var sr;if(Ft("checkedKeys")?sr=(0,ar.E6)(Ut.checkedKeys)||{}:!pn&&Ut.defaultCheckedKeys?sr=(0,ar.E6)(Ut.defaultCheckedKeys)||{}:Ot&&(sr=(0,ar.E6)(Ut.checkedKeys)||{checkedKeys:Xt.checkedKeys,halfCheckedKeys:Xt.halfCheckedKeys}),sr){var xr=sr,Bt=xr.checkedKeys,Kt=Bt===void 0?[]:Bt,rn=xr.halfCheckedKeys,an=rn===void 0?[]:rn;if(!Ut.checkStrictly){var Vn=(0,ga.S)(Kt,!0,Kn);Kt=Vn.checkedKeys,an=Vn.halfCheckedKeys}Lt.checkedKeys=Kt,Lt.halfCheckedKeys=an}}return Ft("loadedKeys")&&(Lt.loadedKeys=Ut.loadedKeys),Lt}}]),jt}(E.Component);Qr.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:x,allowDrop:function(){return!0},expandAction:!1},Qr.TreeNode=vo.Z;var ko=Qr,Go=ko,on=ee(73148),sa=ee(56747),Za={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"},Pa=Za,so=ee(74643),ni=function(_t,jt){return E.createElement(so.Z,(0,te.Z)({},_t,{ref:jt,icon:Pa}))},Pn=E.forwardRef(ni),mr=ee(53124),tr=ee(50881),er=ee(33603),$o=ee(32157);const ha=4;function ba(yt){const{dropPosition:_t,dropLevelOffset:jt,prefixCls:Ue,indent:Ut,direction:Xt="ltr"}=yt,pn=Xt==="ltr"?"left":"right",Lt=Xt==="ltr"?"right":"left",Ft={[pn]:-jt*Ut+ha,[Lt]:0};switch(_t){case-1:Ft.top=-3;break;case 1:Ft.bottom=-3;break;default:Ft.bottom=-3,Ft[pn]=Ut+ha;break}return E.createElement("div",{style:Ft,className:`${Ue}-drop-indicator`})}var Ha=ee(99184),gt=E.forwardRef((yt,_t)=>{const{getPrefixCls:jt,direction:Ue,virtual:Ut,tree:Xt}=E.useContext(mr.E_),{prefixCls:pn,className:Lt,showIcon:Ft=!1,showLine:Ot,switcherIcon:vn,blockNode:Fn=!1,children:Kn,checkable:kn=!1,selectable:Qn=!0,draggable:sr,motion:xr,style:Bt}=yt,Kt=jt("tree",pn),rn=jt(),an=xr!=null?xr:Object.assign(Object.assign({},(0,er.Z)(rn)),{motionAppear:!1}),Vn=Object.assign(Object.assign({},yt),{checkable:kn,selectable:Qn,showIcon:Ft,motion:an,blockNode:Fn,showLine:!!Ot,dropIndicatorRender:ba}),[lr,$e]=(0,$o.ZP)(Kt),Fe=E.useMemo(()=>{if(!sr)return!1;let St={};switch(typeof sr){case"function":St.nodeDraggable=sr;break;case"object":St=Object.assign({},sr);break;default:break}return St.icon!==!1&&(St.icon=St.icon||E.createElement(tr.Z,null)),St},[sr]),nt=St=>E.createElement(Ha.Z,{prefixCls:Kt,switcherIcon:vn,treeNodeProps:St,showLine:Ot});return lr(E.createElement(Go,Object.assign({itemHeight:20,ref:_t,virtual:Ut},Vn,{style:Object.assign(Object.assign({},Xt==null?void 0:Xt.style),Bt),prefixCls:Kt,className:he()({[`${Kt}-icon-hide`]:!Ft,[`${Kt}-block-node`]:Fn,[`${Kt}-unselectable`]:!Qn,[`${Kt}-rtl`]:Ue==="rtl"},Xt==null?void 0:Xt.className,Lt,$e),direction:Ue,checkable:kn&&E.createElement("span",{className:`${Kt}-checkbox-inner`}),selectable:Qn,switcherIcon:nt,draggable:Fe}),Kn))}),dt;(function(yt){yt[yt.None=0]="None",yt[yt.Start=1]="Start",yt[yt.End=2]="End"})(dt||(dt={}));function Tt(yt,_t){function jt(Ue){const{key:Ut,children:Xt}=Ue;_t(Ut,Ue)!==!1&&Tt(Xt||[],_t)}yt.forEach(jt)}function Yt(yt){let{treeData:_t,expandedKeys:jt,startKey:Ue,endKey:Ut}=yt;const Xt=[];let pn=dt.None;if(Ue&&Ue===Ut)return[Ue];if(!Ue||!Ut)return[];function Lt(Ft){return Ft===Ue||Ft===Ut}return Tt(_t,Ft=>{if(pn===dt.End)return!1;if(Lt(Ft)){if(Xt.push(Ft),pn===dt.None)pn=dt.Start;else if(pn===dt.Start)return pn=dt.End,!1}else pn===dt.Start&&Xt.push(Ft);return jt.includes(Ft)}),Xt}function yn(yt,_t){const jt=(0,ce.Z)(_t),Ue=[];return Tt(yt,(Ut,Xt)=>{const pn=jt.indexOf(Ut);return pn!==-1&&(Ue.push(Xt),jt.splice(pn,1)),!!jt.length}),Ue}var ir=function(yt,_t){var jt={};for(var Ue in yt)Object.prototype.hasOwnProperty.call(yt,Ue)&&_t.indexOf(Ue)<0&&(jt[Ue]=yt[Ue]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Ue=Object.getOwnPropertySymbols(yt);Ut<Ue.length;Ut++)_t.indexOf(Ue[Ut])<0&&Object.prototype.propertyIsEnumerable.call(yt,Ue[Ut])&&(jt[Ue[Ut]]=yt[Ue[Ut]]);return jt};function Er(yt){const{isLeaf:_t,expanded:jt}=yt;return _t?E.createElement(on.Z,null):jt?E.createElement(sa.Z,null):E.createElement(Pn,null)}function Tr(yt){let{treeData:_t,children:jt}=yt;return _t||(0,se.zn)(jt)}const _r=(yt,_t)=>{var{defaultExpandAll:jt,defaultExpandParent:Ue,defaultExpandedKeys:Ut}=yt,Xt=ir(yt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const pn=E.useRef(),Lt=E.useRef(),Ft=()=>{const{keyEntities:Fe}=(0,se.I8)(Tr(Xt));let nt;return jt?nt=Object.keys(Fe):Ue?nt=(0,ar.r7)(Xt.expandedKeys||Ut||[],Fe):nt=Xt.expandedKeys||Ut,nt},[Ot,vn]=E.useState(Xt.selectedKeys||Xt.defaultSelectedKeys||[]),[Fn,Kn]=E.useState(()=>Ft());E.useEffect(()=>{"selectedKeys"in Xt&&vn(Xt.selectedKeys)},[Xt.selectedKeys]),E.useEffect(()=>{"expandedKeys"in Xt&&Kn(Xt.expandedKeys)},[Xt.expandedKeys]);const kn=(Fe,nt)=>{var St;return"expandedKeys"in Xt||Kn(Fe),(St=Xt.onExpand)===null||St===void 0?void 0:St.call(Xt,Fe,nt)},Qn=(Fe,nt)=>{var St;const{multiple:Mt}=Xt,{node:Ht,nativeEvent:dn}=nt,{key:_n=""}=Ht,An=Tr(Xt),Un=Object.assign(Object.assign({},nt),{selected:!0}),Tn=(dn==null?void 0:dn.ctrlKey)||(dn==null?void 0:dn.metaKey),In=dn==null?void 0:dn.shiftKey;let Gn;Mt&&Tn?(Gn=Fe,pn.current=_n,Lt.current=Gn,Un.selectedNodes=yn(An,Gn)):Mt&&In?(Gn=Array.from(new Set([].concat((0,ce.Z)(Lt.current||[]),(0,ce.Z)(Yt({treeData:An,expandedKeys:Fn,startKey:_n,endKey:pn.current}))))),Un.selectedNodes=yn(An,Gn)):(Gn=[_n],pn.current=_n,Lt.current=Gn,Un.selectedNodes=yn(An,Gn)),(St=Xt.onSelect)===null||St===void 0||St.call(Xt,Gn,Un),"selectedKeys"in Xt||vn(Gn)},{getPrefixCls:sr,direction:xr}=E.useContext(mr.E_),{prefixCls:Bt,className:Kt,showIcon:rn=!0,expandAction:an="click"}=Xt,Vn=ir(Xt,["prefixCls","className","showIcon","expandAction"]),lr=sr("tree",Bt),$e=he()(`${lr}-directory`,{[`${lr}-directory-rtl`]:xr==="rtl"},Kt);return E.createElement(gt,Object.assign({icon:Er,ref:_t,blockNode:!0},Vn,{showIcon:rn,expandAction:an,prefixCls:lr,className:$e,expandedKeys:Fn,selectedKeys:Ot,onSelect:Qn,onExpand:kn}))};var Do=E.forwardRef(_r);const Bo=gt;Bo.DirectoryTree=Do,Bo.TreeNode=vo.Z;var fa=Bo},32157:function(ot,Ze,ee){"use strict";ee.d(Ze,{TM:function(){return re},Yk:function(){return he}});var te=ee(45930),fe=ee(63185),be=ee(14747),_e=ee(33507),ce=ee(45503),pe=ee(67968);const ae=new te.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),me=(ne,y)=>({[`.${ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${y.motionDurationSlow}`}}}),de=(ne,y)=>({[`.${ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:y.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${y.lineWidthBold}px solid ${y.colorPrimary}`,borderRadius:"50%",content:'""'}}}),ge=(ne,y)=>{const{treeCls:a,treeNodeCls:E,treeNodePadding:b,titleHeight:x,nodeSelectedBg:z,nodeHoverBg:oe}=y,ie=y.paddingXS;return{[a]:Object.assign(Object.assign({},(0,be.Wf)(y)),{background:y.colorBgContainer,borderRadius:y.borderRadius,transition:`background-color ${y.motionDurationSlow}`,[`&${a}-rtl`]:{[`${a}-switcher`]:{"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${a}-active-focused)`]:Object.assign({},(0,be.oN)(y)),[`${a}-list-holder-inner`]:{alignItems:"flex-start"},[`&${a}-block-node`]:{[`${a}-list-holder-inner`]:{alignItems:"stretch",[`${a}-node-content-wrapper`]:{flex:"auto"},[`${E}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${y.colorPrimary}`,opacity:0,animationName:ae,animationDuration:y.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${E}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${b}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${a}-node-content-wrapper`]:{color:y.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${a}-node-content-wrapper`]:Object.assign({},(0,be.oN)(y)),[`&:not(${E}-disabled).filter-node ${a}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${a}-draggable-icon`]:{flexShrink:0,width:x,lineHeight:`${x}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${y.motionDurationSlow}`,[`${E}:hover &`]:{opacity:.45}},[`&${E}-disabled`]:{[`${a}-draggable-icon`]:{visibility:"hidden"}}}},[`${a}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:x}},[`${a}-draggable-icon`]:{visibility:"hidden"},[`${a}-switcher`]:Object.assign(Object.assign({},me(ne,y)),{position:"relative",flex:"none",alignSelf:"stretch",width:x,margin:0,lineHeight:`${x}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${a}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:y.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,marginInlineStart:-1,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:x/2*.8,height:x/2,borderBottom:`1px solid ${y.colorBorder}`,content:'""'}}}),[`${a}-checkbox`]:{top:"initial",marginInlineEnd:ie},[`${a}-node-content-wrapper, ${a}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:x,margin:0,padding:`0 ${y.paddingXS/2}px`,color:"inherit",lineHeight:`${x}px`,background:"transparent",borderRadius:y.borderRadius,cursor:"pointer",transition:`all ${y.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:oe},[`&${a}-node-selected`]:{backgroundColor:z},[`${a}-iconEle`]:{display:"inline-block",width:x,height:x,lineHeight:`${x}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${a}-unselectable ${a}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${a}-node-content-wrapper`]:Object.assign({lineHeight:`${x}px`,userSelect:"none"},de(ne,y)),[`${E}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${y.colorPrimary}`}},"&-show-line":{[`${a}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,borderInlineEnd:`1px solid ${y.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${a}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${E}-leaf-last`]:{[`${a}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${x/2}px !important`}}}}})}},le=ne=>{const{treeCls:y,treeNodeCls:a,treeNodePadding:E,directoryNodeSelectedBg:b,directoryNodeSelectedColor:x}=ne;return{[`${y}${y}-directory`]:{[a]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:E,insetInlineStart:0,transition:`background-color ${ne.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:ne.controlItemBgHover}},"> *":{zIndex:1},[`${y}-switcher`]:{transition:`color ${ne.motionDurationMid}`},[`${y}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${y}-node-selected`]:{color:x,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${y}-switcher`]:{color:x},[`${y}-node-content-wrapper`]:{color:x,background:"transparent"}}}}}},he=(ne,y)=>{const a=`.${ne}`,E=`${a}-treenode`,b=y.paddingXS/2,x=(0,ce.TS)(y,{treeCls:a,treeNodeCls:E,treeNodePadding:b});return[ge(ne,x),le(x)]},re=ne=>{const{controlHeightSM:y}=ne;return{titleHeight:y,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Ze.ZP=(0,pe.Z)("Tree",(ne,y)=>{let{prefixCls:a}=y;return[{[ne.componentCls]:(0,fe.C2)(`${a}-checkbox`,ne)},he(a,ne),(0,_e.Z)(ne)]},ne=>{const{colorTextLightSolid:y,colorPrimary:a}=ne;return Object.assign(Object.assign({},re(ne)),{directoryNodeSelectedColor:y,directoryNodeSelectedBg:a})})},99184:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return a}});var te=ee(87462),fe=ee(67294),be={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"},_e=be,ce=ee(74643),pe=function(b,x){return fe.createElement(ce.Z,(0,te.Z)({},b,{ref:x,icon:_e}))},ae=fe.forwardRef(pe),me=ee(73148),de=ee(3407),ge=ee(34182),le=ee(74664),he=ee(94184),re=ee.n(he),ne=ee(96159),a=E=>{const{prefixCls:b,switcherIcon:x,treeNodeProps:z,showLine:oe}=E,{isLeaf:ie,expanded:ue,loading:ve}=z;if(ve)return fe.createElement(de.Z,{className:`${b}-switcher-loading-icon`});let Se;if(oe&&typeof oe=="object"&&(Se=oe.showLeafIcon),ie){if(!oe)return null;if(typeof Se!="boolean"&&Se){const Ne=typeof Se=="function"?Se(z):Se,xe=`${b}-switcher-line-custom-icon`;return(0,ne.l$)(Ne)?(0,ne.Tm)(Ne,{className:re()(Ne.props.className||"",xe)}):Ne}return Se?fe.createElement(me.Z,{className:`${b}-switcher-line-icon`}):fe.createElement("span",{className:`${b}-switcher-leaf-line`})}const Le=`${b}-switcher-icon`,we=typeof x=="function"?x(z):x;return(0,ne.l$)(we)?(0,ne.Tm)(we,{className:re()(we.props.className||"",Le)}):we!==void 0?we:oe?ue?fe.createElement(ge.Z,{className:`${b}-switcher-line-icon`}):fe.createElement(le.Z,{className:`${b}-switcher-line-icon`}):fe.createElement(ae,{className:Le})}},72665:function(ot,Ze){"use strict";var ee;var te=typeof Symbol=="function"&&Symbol.for,fe=te?Symbol.for("react.element"):60103,be=te?Symbol.for("react.portal"):60106,_e=te?Symbol.for("react.fragment"):60107,ce=te?Symbol.for("react.strict_mode"):60108,pe=te?Symbol.for("react.profiler"):60114,ae=te?Symbol.for("react.provider"):60109,me=te?Symbol.for("react.context"):60110,de=te?Symbol.for("react.async_mode"):60111,ge=te?Symbol.for("react.concurrent_mode"):60111,le=te?Symbol.for("react.forward_ref"):60112,he=te?Symbol.for("react.suspense"):60113,re=te?Symbol.for("react.suspense_list"):60120,ne=te?Symbol.for("react.memo"):60115,y=te?Symbol.for("react.lazy"):60116,a=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ie){if(typeof ie=="object"&&ie!==null){var ue=ie.$$typeof;switch(ue){case fe:switch(ie=ie.type,ie){case de:case ge:case _e:case pe:case ce:case he:return ie;default:switch(ie=ie&&ie.$$typeof,ie){case me:case le:case y:case ne:case ae:return ie;default:return ue}}case be:return ue}}}function oe(ie){return z(ie)===ge}ee=de,ee=ge,ee=me,ee=ae,ee=fe,ee=le,ee=_e,ee=y,ee=ne,ee=be,ee=pe,ee=ce,ee=he,ee=function(ie){return oe(ie)||z(ie)===de},ee=oe,ee=function(ie){return z(ie)===me},ee=function(ie){return z(ie)===ae},ee=function(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===fe},ee=function(ie){return z(ie)===le},ee=function(ie){return z(ie)===_e},ee=function(ie){return z(ie)===y},Ze.isMemo=function(ie){return z(ie)===ne},ee=function(ie){return z(ie)===be},ee=function(ie){return z(ie)===pe},ee=function(ie){return z(ie)===ce},ee=function(ie){return z(ie)===he},ee=function(ie){return typeof ie=="string"||typeof ie=="function"||ie===_e||ie===ge||ie===pe||ie===ce||ie===he||ie===re||typeof ie=="object"&&ie!==null&&(ie.$$typeof===y||ie.$$typeof===ne||ie.$$typeof===ae||ie.$$typeof===me||ie.$$typeof===le||ie.$$typeof===E||ie.$$typeof===b||ie.$$typeof===x||ie.$$typeof===a)},ee=z},12060:function(ot,Ze,ee){"use strict";ot.exports=ee(72665)},56261:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return Se}});var te=ee(87462),fe=ee(4942),be=ee(45987),_e=ee(1413),ce=ee(15671),pe=ee(43144),ae=ee(97326),me=ee(60136),de=ee(51630),ge=ee(94184),le=ee.n(ge),he=ee(34952),re=ee(67294),ne=ee(69610),y=function(we){for(var Ne=we.prefixCls,xe=we.level,st=we.isStart,Ye=we.isEnd,lt="".concat(Ne,"-indent-unit"),Me=[],Be=0;Be<xe;Be+=1){var Re;Me.push(re.createElement("span",{key:Be,className:le()(lt,(Re={},(0,fe.Z)(Re,"".concat(lt,"-start"),st[Be]),(0,fe.Z)(Re,"".concat(lt,"-end"),Ye[Be]),Re))}))}return re.createElement("span",{"aria-hidden":"true",className:"".concat(Ne,"-indent")},Me)},a=re.memo(y),E=ee(3596),b=ee(83898),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",oe="close",ie="---",ue=function(Le){(0,me.Z)(Ne,Le);var we=(0,de.Z)(Ne);function Ne(){var xe;(0,ce.Z)(this,Ne);for(var st=arguments.length,Ye=new Array(st),lt=0;lt<st;lt++)Ye[lt]=arguments[lt];return xe=we.call.apply(we,[this].concat(Ye)),xe.state={dragNodeHighlight:!1},xe.selectHandle=void 0,xe.cacheIndent=void 0,xe.onSelectorClick=function(Me){var Be=xe.props.context.onNodeClick;Be(Me,(0,b.F)(xe.props)),xe.isSelectable()?xe.onSelect(Me):xe.onCheck(Me)},xe.onSelectorDoubleClick=function(Me){var Be=xe.props.context.onNodeDoubleClick;Be(Me,(0,b.F)(xe.props))},xe.onSelect=function(Me){if(!xe.isDisabled()){var Be=xe.props.context.onNodeSelect;Be(Me,(0,b.F)(xe.props))}},xe.onCheck=function(Me){if(!xe.isDisabled()){var Be=xe.props,Re=Be.disableCheckbox,ke=Be.checked,Ge=xe.props.context.onNodeCheck;if(!(!xe.isCheckable()||Re)){var Et=!ke;Ge(Me,(0,b.F)(xe.props),Et)}}},xe.onMouseEnter=function(Me){var Be=xe.props.context.onNodeMouseEnter;Be(Me,(0,b.F)(xe.props))},xe.onMouseLeave=function(Me){var Be=xe.props.context.onNodeMouseLeave;Be(Me,(0,b.F)(xe.props))},xe.onContextMenu=function(Me){var Be=xe.props.context.onNodeContextMenu;Be(Me,(0,b.F)(xe.props))},xe.onDragStart=function(Me){var Be=xe.props.context.onNodeDragStart;Me.stopPropagation(),xe.setState({dragNodeHighlight:!0}),Be(Me,(0,ae.Z)(xe));try{Me.dataTransfer.setData("text/plain","")}catch(Re){}},xe.onDragEnter=function(Me){var Be=xe.props.context.onNodeDragEnter;Me.preventDefault(),Me.stopPropagation(),Be(Me,(0,ae.Z)(xe))},xe.onDragOver=function(Me){var Be=xe.props.context.onNodeDragOver;Me.preventDefault(),Me.stopPropagation(),Be(Me,(0,ae.Z)(xe))},xe.onDragLeave=function(Me){var Be=xe.props.context.onNodeDragLeave;Me.stopPropagation(),Be(Me,(0,ae.Z)(xe))},xe.onDragEnd=function(Me){var Be=xe.props.context.onNodeDragEnd;Me.stopPropagation(),xe.setState({dragNodeHighlight:!1}),Be(Me,(0,ae.Z)(xe))},xe.onDrop=function(Me){var Be=xe.props.context.onNodeDrop;Me.preventDefault(),Me.stopPropagation(),xe.setState({dragNodeHighlight:!1}),Be(Me,(0,ae.Z)(xe))},xe.onExpand=function(Me){var Be=xe.props,Re=Be.loading,ke=Be.context.onNodeExpand;Re||ke(Me,(0,b.F)(xe.props))},xe.setSelectHandle=function(Me){xe.selectHandle=Me},xe.getNodeState=function(){var Me=xe.props.expanded;return xe.isLeaf()?null:Me?z:oe},xe.hasChildren=function(){var Me=xe.props.eventKey,Be=xe.props.context.keyEntities,Re=(0,E.Z)(Be,Me)||{},ke=Re.children;return!!(ke||[]).length},xe.isLeaf=function(){var Me=xe.props,Be=Me.isLeaf,Re=Me.loaded,ke=xe.props.context.loadData,Ge=xe.hasChildren();return Be===!1?!1:Be||!ke&&!Ge||ke&&Re&&!Ge},xe.isDisabled=function(){var Me=xe.props.disabled,Be=xe.props.context.disabled;return!!(Be||Me)},xe.isCheckable=function(){var Me=xe.props.checkable,Be=xe.props.context.checkable;return!Be||Me===!1?!1:Be},xe.syncLoadData=function(Me){var Be=Me.expanded,Re=Me.loading,ke=Me.loaded,Ge=xe.props.context,Et=Ge.loadData,It=Ge.onNodeLoad;Re||Et&&Be&&!xe.isLeaf()&&!xe.hasChildren()&&!ke&&It((0,b.F)(xe.props))},xe.isDraggable=function(){var Me=xe.props,Be=Me.data,Re=Me.context.draggable;return!!(Re&&(!Re.nodeDraggable||Re.nodeDraggable(Be)))},xe.renderDragHandler=function(){var Me=xe.props.context,Be=Me.draggable,Re=Me.prefixCls;return Be!=null&&Be.icon?re.createElement("span",{className:"".concat(Re,"-draggable-icon")},Be.icon):null},xe.renderSwitcherIconDom=function(Me){var Be=xe.props.switcherIcon,Re=xe.props.context.switcherIcon,ke=Be||Re;return typeof ke=="function"?ke((0,_e.Z)((0,_e.Z)({},xe.props),{},{isLeaf:Me})):ke},xe.renderSwitcher=function(){var Me=xe.props.expanded,Be=xe.props.context.prefixCls;if(xe.isLeaf()){var Re=xe.renderSwitcherIconDom(!0);return Re!==!1?re.createElement("span",{className:le()("".concat(Be,"-switcher"),"".concat(Be,"-switcher-noop"))},Re):null}var ke=le()("".concat(Be,"-switcher"),"".concat(Be,"-switcher_").concat(Me?z:oe)),Ge=xe.renderSwitcherIconDom(!1);return Ge!==!1?re.createElement("span",{onClick:xe.onExpand,className:ke},Ge):null},xe.renderCheckbox=function(){var Me=xe.props,Be=Me.checked,Re=Me.halfChecked,ke=Me.disableCheckbox,Ge=xe.props.context.prefixCls,Et=xe.isDisabled(),It=xe.isCheckable();if(!It)return null;var en=typeof It!="boolean"?It:null;return re.createElement("span",{className:le()("".concat(Ge,"-checkbox"),Be&&"".concat(Ge,"-checkbox-checked"),!Be&&Re&&"".concat(Ge,"-checkbox-indeterminate"),(Et||ke)&&"".concat(Ge,"-checkbox-disabled")),onClick:xe.onCheck},en)},xe.renderIcon=function(){var Me=xe.props.loading,Be=xe.props.context.prefixCls;return re.createElement("span",{className:le()("".concat(Be,"-iconEle"),"".concat(Be,"-icon__").concat(xe.getNodeState()||"docu"),Me&&"".concat(Be,"-icon_loading"))})},xe.renderSelector=function(){var Me=xe.state.dragNodeHighlight,Be=xe.props,Re=Be.title,ke=Re===void 0?ie:Re,Ge=Be.selected,Et=Be.icon,It=Be.loading,en=Be.data,Zt=xe.props.context,rt=Zt.prefixCls,at=Zt.showIcon,Ct=Zt.icon,qt=Zt.loadData,Gt=Zt.titleRender,xt=xe.isDisabled(),Ve="".concat(rt,"-node-content-wrapper"),Qt;if(at){var Ln=Et||Ct;Qt=Ln?re.createElement("span",{className:le()("".concat(rt,"-iconEle"),"".concat(rt,"-icon__customize"))},typeof Ln=="function"?Ln(xe.props):Ln):xe.renderIcon()}else qt&&It&&(Qt=xe.renderIcon());var Hn;typeof ke=="function"?Hn=ke(en):Gt?Hn=Gt(en):Hn=ke;var mn=re.createElement("span",{className:"".concat(rt,"-title")},Hn);return re.createElement("span",{ref:xe.setSelectHandle,title:typeof ke=="string"?ke:"",className:le()("".concat(Ve),"".concat(Ve,"-").concat(xe.getNodeState()||"normal"),!xt&&(Ge||Me)&&"".concat(rt,"-node-selected")),onMouseEnter:xe.onMouseEnter,onMouseLeave:xe.onMouseLeave,onContextMenu:xe.onContextMenu,onClick:xe.onSelectorClick,onDoubleClick:xe.onSelectorDoubleClick},Qt,mn,xe.renderDropIndicator())},xe.renderDropIndicator=function(){var Me=xe.props,Be=Me.disabled,Re=Me.eventKey,ke=xe.props.context,Ge=ke.draggable,Et=ke.dropLevelOffset,It=ke.dropPosition,en=ke.prefixCls,Zt=ke.indent,rt=ke.dropIndicatorRender,at=ke.dragOverNodeKey,Ct=ke.direction,qt=!!Ge,Gt=!Be&&qt&&at===Re,xt=Zt!=null?Zt:xe.cacheIndent;return xe.cacheIndent=Zt,Gt?rt({dropPosition:It,dropLevelOffset:Et,indent:xt,prefixCls:en,direction:Ct}):null},xe}return(0,pe.Z)(Ne,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var st=this.props.selectable,Ye=this.props.context.selectable;return typeof st=="boolean"?st:Ye}},{key:"render",value:function(){var st,Ye=this.props,lt=Ye.eventKey,Me=Ye.className,Be=Ye.style,Re=Ye.dragOver,ke=Ye.dragOverGapTop,Ge=Ye.dragOverGapBottom,Et=Ye.isLeaf,It=Ye.isStart,en=Ye.isEnd,Zt=Ye.expanded,rt=Ye.selected,at=Ye.checked,Ct=Ye.halfChecked,qt=Ye.loading,Gt=Ye.domRef,xt=Ye.active,Ve=Ye.data,Qt=Ye.onMouseMove,Ln=Ye.selectable,Hn=(0,be.Z)(Ye,x),mn=this.props.context,zt=mn.prefixCls,et=mn.filterTreeNode,Xe=mn.keyEntities,qe=mn.dropContainerKey,ft=mn.dropTargetKey,Dt=mn.draggingNodeKey,tt=this.isDisabled(),vt=(0,he.Z)(Hn,{aria:!0,data:!0}),bt=(0,E.Z)(Xe,lt)||{},Qe=bt.level,Wt=en[en.length-1],He=this.isDraggable(),ut=!tt&&He,En=Dt===lt,un=Ln!==void 0?{"aria-selected":!!Ln}:void 0;return re.createElement("div",(0,te.Z)({ref:Gt,className:le()(Me,"".concat(zt,"-treenode"),(st={},(0,fe.Z)(st,"".concat(zt,"-treenode-disabled"),tt),(0,fe.Z)(st,"".concat(zt,"-treenode-switcher-").concat(Zt?"open":"close"),!Et),(0,fe.Z)(st,"".concat(zt,"-treenode-checkbox-checked"),at),(0,fe.Z)(st,"".concat(zt,"-treenode-checkbox-indeterminate"),Ct),(0,fe.Z)(st,"".concat(zt,"-treenode-selected"),rt),(0,fe.Z)(st,"".concat(zt,"-treenode-loading"),qt),(0,fe.Z)(st,"".concat(zt,"-treenode-active"),xt),(0,fe.Z)(st,"".concat(zt,"-treenode-leaf-last"),Wt),(0,fe.Z)(st,"".concat(zt,"-treenode-draggable"),He),(0,fe.Z)(st,"dragging",En),(0,fe.Z)(st,"drop-target",ft===lt),(0,fe.Z)(st,"drop-container",qe===lt),(0,fe.Z)(st,"drag-over",!tt&&Re),(0,fe.Z)(st,"drag-over-gap-top",!tt&&ke),(0,fe.Z)(st,"drag-over-gap-bottom",!tt&&Ge),(0,fe.Z)(st,"filter-node",et&&et((0,b.F)(this.props))),st)),style:Be,draggable:ut,"aria-grabbed":En,onDragStart:ut?this.onDragStart:void 0,onDragEnter:He?this.onDragEnter:void 0,onDragOver:He?this.onDragOver:void 0,onDragLeave:He?this.onDragLeave:void 0,onDrop:He?this.onDrop:void 0,onDragEnd:He?this.onDragEnd:void 0,onMouseMove:Qt},un,vt),re.createElement(a,{prefixCls:zt,level:Qe,isStart:It,isEnd:en}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ne}(re.Component),ve=function(we){return re.createElement(ne.k.Consumer,null,function(Ne){return re.createElement(ue,(0,te.Z)({},we,{context:Ne}))})};ve.displayName="TreeNode",ve.isTreeNode=1;var Se=ve},69610:function(ot,Ze,ee){"use strict";ee.d(Ze,{k:function(){return fe}});var te=ee(67294),fe=te.createContext(null)},29873:function(ot,Ze,ee){"use strict";ee.d(Ze,{BT:function(){return a},E6:function(){return x},L0:function(){return ge},OM:function(){return y},_5:function(){return de},r7:function(){return z},wA:function(){return he},yx:function(){return le}});var te=ee(74902),fe=ee(71002),be=ee(72978),_e=ee(67294),ce=ee(56261),pe=ee(3596),ae=ee(83898),me=null;function de(oe,ie){if(!oe)return[];var ue=oe.slice(),ve=ue.indexOf(ie);return ve>=0&&ue.splice(ve,1),ue}function ge(oe,ie){var ue=(oe||[]).slice();return ue.indexOf(ie)===-1&&ue.push(ie),ue}function le(oe){return oe.split("-")}function he(oe,ie){var ue=[],ve=(0,pe.Z)(ie,oe);function Se(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Le.forEach(function(we){var Ne=we.key,xe=we.children;ue.push(Ne),Se(xe)})}return Se(ve.children),ue}function re(oe){if(oe.parent){var ie=le(oe.pos);return Number(ie[ie.length-1])===oe.parent.children.length-1}return!1}function ne(oe){var ie=le(oe.pos);return Number(ie[ie.length-1])===0}function y(oe,ie,ue,ve,Se,Le,we,Ne,xe,st){var Ye,lt=oe.clientX,Me=oe.clientY,Be=oe.target.getBoundingClientRect(),Re=Be.top,ke=Be.height,Ge=(st==="rtl"?-1:1)*(((Se==null?void 0:Se.x)||0)-lt),Et=(Ge-12)/ve,It=(0,pe.Z)(Ne,ue.props.eventKey);if(Me<Re+ke/2){var en=we.findIndex(function(mn){return mn.key===It.key}),Zt=en<=0?0:en-1,rt=we[Zt].key;It=(0,pe.Z)(Ne,rt)}var at=It.key,Ct=It,qt=It.key,Gt=0,xt=0;if(!xe.includes(at))for(var Ve=0;Ve<Et&&re(It);Ve+=1)It=It.parent,xt+=1;var Qt=ie.props.data,Ln=It.node,Hn=!0;return ne(It)&&It.level===0&&Me<Re+ke/2&&Le({dragNode:Qt,dropNode:Ln,dropPosition:-1})&&It.key===ue.props.eventKey?Gt=-1:(Ct.children||[]).length&&xe.includes(qt)?Le({dragNode:Qt,dropNode:Ln,dropPosition:0})?Gt=0:Hn=!1:xt===0?Et>-1.5?Le({dragNode:Qt,dropNode:Ln,dropPosition:1})?Gt=1:Hn=!1:Le({dragNode:Qt,dropNode:Ln,dropPosition:0})?Gt=0:Le({dragNode:Qt,dropNode:Ln,dropPosition:1})?Gt=1:Hn=!1:Le({dragNode:Qt,dropNode:Ln,dropPosition:1})?Gt=1:Hn=!1,{dropPosition:Gt,dropLevelOffset:xt,dropTargetKey:It.key,dropTargetPos:It.pos,dragOverNodeKey:qt,dropContainerKey:Gt===0?null:((Ye=It.parent)===null||Ye===void 0?void 0:Ye.key)||null,dropAllowed:Hn}}function a(oe,ie){if(oe){var ue=ie.multiple;return ue?oe.slice():oe.length?[oe[0]]:oe}}var E=function(ie){return ie};function b(oe,ie){if(!oe)return[];var ue=ie||{},ve=ue.processProps,Se=ve===void 0?E:ve,Le=Array.isArray(oe)?oe:[oe];return Le.map(function(we){var Ne=we.children,xe=_objectWithoutProperties(we,me),st=b(Ne,ie);return React.createElement(TreeNode,_extends({key:xe.key},Se(xe)),st)})}function x(oe){if(!oe)return null;var ie;if(Array.isArray(oe))ie={checkedKeys:oe,halfCheckedKeys:void 0};else if((0,fe.Z)(oe)==="object")ie={checkedKeys:oe.checked||void 0,halfCheckedKeys:oe.halfChecked||void 0};else return(0,be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ie}function z(oe,ie){var ue=new Set;function ve(Se){if(!ue.has(Se)){var Le=(0,pe.Z)(ie,Se);if(Le){ue.add(Se);var we=Le.parent,Ne=Le.node;Ne.disabled||we&&ve(we.key)}}}return(oe||[]).forEach(function(Se){ve(Se)}),(0,te.Z)(ue)}},97153:function(ot,Ze,ee){"use strict";ee.d(Ze,{S:function(){return ae}});var te=ee(72978),fe=ee(3596);function be(me,de){var ge=new Set;return me.forEach(function(le){de.has(le)||ge.add(le)}),ge}function _e(me){var de=me||{},ge=de.disabled,le=de.disableCheckbox,he=de.checkable;return!!(ge||le)||he===!1}function ce(me,de,ge,le){for(var he=new Set(me),re=new Set,ne=0;ne<=ge;ne+=1){var y=de.get(ne)||new Set;y.forEach(function(x){var z=x.key,oe=x.node,ie=x.children,ue=ie===void 0?[]:ie;he.has(z)&&!le(oe)&&ue.filter(function(ve){return!le(ve.node)}).forEach(function(ve){he.add(ve.key)})})}for(var a=new Set,E=ge;E>=0;E-=1){var b=de.get(E)||new Set;b.forEach(function(x){var z=x.parent,oe=x.node;if(!(le(oe)||!x.parent||a.has(x.parent.key))){if(le(x.parent.node)){a.add(z.key);return}var ie=!0,ue=!1;(z.children||[]).filter(function(ve){return!le(ve.node)}).forEach(function(ve){var Se=ve.key,Le=he.has(Se);ie&&!Le&&(ie=!1),!ue&&(Le||re.has(Se))&&(ue=!0)}),ie&&he.add(z.key),ue&&re.add(z.key),a.add(z.key)}})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(be(re,he))}}function pe(me,de,ge,le,he){for(var re=new Set(me),ne=new Set(de),y=0;y<=le;y+=1){var a=ge.get(y)||new Set;a.forEach(function(z){var oe=z.key,ie=z.node,ue=z.children,ve=ue===void 0?[]:ue;!re.has(oe)&&!ne.has(oe)&&!he(ie)&&ve.filter(function(Se){return!he(Se.node)}).forEach(function(Se){re.delete(Se.key)})})}ne=new Set;for(var E=new Set,b=le;b>=0;b-=1){var x=ge.get(b)||new Set;x.forEach(function(z){var oe=z.parent,ie=z.node;if(!(he(ie)||!z.parent||E.has(z.parent.key))){if(he(z.parent.node)){E.add(oe.key);return}var ue=!0,ve=!1;(oe.children||[]).filter(function(Se){return!he(Se.node)}).forEach(function(Se){var Le=Se.key,we=re.has(Le);ue&&!we&&(ue=!1),!ve&&(we||ne.has(Le))&&(ve=!0)}),ue||re.delete(oe.key),ve&&ne.add(oe.key),E.add(oe.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(be(ne,re))}}function ae(me,de,ge,le){var he=[],re;le?re=le:re=_e;var ne=new Set(me.filter(function(b){var x=!!(0,fe.Z)(ge,b);return x||he.push(b),x})),y=new Map,a=0;Object.keys(ge).forEach(function(b){var x=ge[b],z=x.level,oe=y.get(z);oe||(oe=new Set,y.set(z,oe)),oe.add(x),a=Math.max(a,z)}),(0,te.ZP)(!he.length,"Tree missing follow keys: ".concat(he.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return de===!0?E=ce(ne,y,a,re):E=pe(ne,de.halfCheckedKeys,y,a,re),E}},3596:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return te}});function te(fe,be){return fe[be]}},83898:function(ot,Ze,ee){"use strict";ee.d(Ze,{I8:function(){return z},F:function(){return ie},zn:function(){return E},w$:function(){return y},oH:function(){return b},km:function(){return ne},H8:function(){return oe}});var te=ee(71002),fe=ee(74902),be=ee(1413),_e=ee(45987),ce=ee(67294),pe=ee(28580);function ae(ue){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=[];return ce.Children.forEach(ue,function(Le){Le==null&&!ve.keepEmpty||(Array.isArray(Le)?Se=Se.concat(ae(Le)):(0,pe.isFragment)(Le)&&Le.props?Se=Se.concat(ae(Le.props.children,ve)):Se.push(Le))}),Se}function me(ue,ve){var Se=(0,be.Z)({},ue);return Array.isArray(ve)&&ve.forEach(function(Le){delete Se[Le]}),Se}var de=ee(72978),ge=ee(3596),le=["children"];function he(ue,ve){return"".concat(ue,"-").concat(ve)}function re(ue){return ue&&ue.type&&ue.type.isTreeNode}function ne(ue,ve){return ue!=null?ue:ve}function y(ue){var ve=ue||{},Se=ve.title,Le=ve._title,we=ve.key,Ne=ve.children,xe=Se||"title";return{title:xe,_title:Le||[xe],key:we||"key",children:Ne||"children"}}function a(ue,ve){var Se=new Map;function Le(we){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(we||[]).forEach(function(xe){var st=xe[ve.key],Ye=xe[ve.children];warning(st!=null,"Tree node must have a certain key: [".concat(Ne).concat(st,"]"));var lt=String(st);warning(!Se.has(lt)||st===null||st===void 0,"Same 'key' exist in the Tree: ".concat(lt)),Se.set(lt,!0),Le(Ye,"".concat(Ne).concat(lt," > "))})}Le(ue)}function E(ue){function ve(Se){var Le=ae(Se);return Le.map(function(we){if(!re(we))return(0,de.ZP)(!we,"Tree/TreeNode can only accept TreeNode as children."),null;var Ne=we.key,xe=we.props,st=xe.children,Ye=(0,_e.Z)(xe,le),lt=(0,be.Z)({key:Ne},Ye),Me=ve(st);return Me.length&&(lt.children=Me),lt}).filter(function(we){return we})}return ve(ue)}function b(ue,ve,Se){var Le=y(Se),we=Le._title,Ne=Le.key,xe=Le.children,st=new Set(ve===!0?[]:ve),Ye=[];function lt(Me){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Me.map(function(Re,ke){for(var Ge=he(Be?Be.pos:"0",ke),Et=ne(Re[Ne],Ge),It,en=0;en<we.length;en+=1){var Zt=we[en];if(Re[Zt]!==void 0){It=Re[Zt];break}}var rt=(0,be.Z)((0,be.Z)({},me(Re,[].concat((0,fe.Z)(we),[Ne,xe]))),{},{title:It,key:Et,parent:Be,pos:Ge,children:null,data:Re,isStart:[].concat((0,fe.Z)(Be?Be.isStart:[]),[ke===0]),isEnd:[].concat((0,fe.Z)(Be?Be.isEnd:[]),[ke===Me.length-1])});return Ye.push(rt),ve===!0||st.has(Et)?rt.children=lt(Re[xe]||[],rt):rt.children=[],rt})}return lt(ue),Ye}function x(ue,ve,Se){var Le={};(0,te.Z)(Se)==="object"?Le=Se:Le={externalGetKey:Se},Le=Le||{};var we=Le,Ne=we.childrenPropName,xe=we.externalGetKey,st=we.fieldNames,Ye=y(st),lt=Ye.key,Me=Ye.children,Be=Ne||Me,Re;xe?typeof xe=="string"?Re=function(Et){return Et[xe]}:typeof xe=="function"&&(Re=function(Et){return xe(Et)}):Re=function(Et,It){return ne(Et[lt],It)};function ke(Ge,Et,It,en){var Zt=Ge?Ge[Be]:ue,rt=Ge?he(It.pos,Et):"0",at=Ge?[].concat((0,fe.Z)(en),[Ge]):[];if(Ge){var Ct=Re(Ge,rt),qt={node:Ge,index:Et,pos:rt,key:Ct,parentPos:It.node?It.pos:null,level:It.level+1,nodes:at};ve(qt)}Zt&&Zt.forEach(function(Gt,xt){ke(Gt,xt,{node:Ge,pos:rt,level:It?It.level+1:-1},at)})}ke(null)}function z(ue){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Se=ve.initWrapper,Le=ve.processEntity,we=ve.onProcessFinished,Ne=ve.externalGetKey,xe=ve.childrenPropName,st=ve.fieldNames,Ye=arguments.length>2?arguments[2]:void 0,lt=Ne||Ye,Me={},Be={},Re={posEntities:Me,keyEntities:Be};return Se&&(Re=Se(Re)||Re),x(ue,function(ke){var Ge=ke.node,Et=ke.index,It=ke.pos,en=ke.key,Zt=ke.parentPos,rt=ke.level,at=ke.nodes,Ct={node:Ge,nodes:at,index:Et,key:en,pos:It,level:rt},qt=ne(en,It);Me[It]=Ct,Be[qt]=Ct,Ct.parent=Me[Zt],Ct.parent&&(Ct.parent.children=Ct.parent.children||[],Ct.parent.children.push(Ct)),Le&&Le(Ct,Re)},{externalGetKey:lt,childrenPropName:xe,fieldNames:st}),we&&we(Re),Re}function oe(ue,ve){var Se=ve.expandedKeys,Le=ve.selectedKeys,we=ve.loadedKeys,Ne=ve.loadingKeys,xe=ve.checkedKeys,st=ve.halfCheckedKeys,Ye=ve.dragOverNodeKey,lt=ve.dropPosition,Me=ve.keyEntities,Be=(0,ge.Z)(Me,ue),Re={eventKey:ue,expanded:Se.indexOf(ue)!==-1,selected:Le.indexOf(ue)!==-1,loaded:we.indexOf(ue)!==-1,loading:Ne.indexOf(ue)!==-1,checked:xe.indexOf(ue)!==-1,halfChecked:st.indexOf(ue)!==-1,pos:String(Be?Be.pos:""),dragOver:Ye===ue&&lt===0,dragOverGapTop:Ye===ue&&lt===-1,dragOverGapBottom:Ye===ue&&lt===1};return Re}function ie(ue){var ve=ue.data,Se=ue.expanded,Le=ue.selected,we=ue.checked,Ne=ue.loaded,xe=ue.loading,st=ue.halfChecked,Ye=ue.dragOver,lt=ue.dragOverGapTop,Me=ue.dragOverGapBottom,Be=ue.pos,Re=ue.active,ke=ue.eventKey,Ge=(0,be.Z)((0,be.Z)({},ve),{},{expanded:Se,selected:Le,checked:we,loaded:Ne,loading:xe,halfChecked:st,dragOver:Ye,dragOverGapTop:lt,dragOverGapBottom:Me,pos:Be,active:Re,key:ke});return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,de.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ue}}),Ge}},34952:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return me}});var te=ee(1413),fe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
charSet checked classID className colSpan cols content contentEditable contextMenu
controls coords crossOrigin data dateTime default defer dir disabled download draggable
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
mediaGroup method min minLength multiple muted name noValidate nonce open
optimum pattern placeholder poster preload radioGroup readOnly rel required
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
summary tabIndex target title type useMap value width wmode wrap`,be=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,_e="".concat(fe," ").concat(be).split(/[\s\n]+/),ce="aria-",pe="data-";function ae(de,ge){return de.indexOf(ge)===0}function me(de){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,le;ge===!1?le={aria:!0,data:!0,attr:!0}:ge===!0?le={aria:!0}:le=(0,te.Z)({},ge);var he={};return Object.keys(de).forEach(function(re){(le.aria&&(re==="role"||ae(re,ce))||le.data&&ae(re,pe)||le.attr&&_e.includes(re))&&(he[re]=de[re])}),he}},72978:function(ot,Ze,ee){"use strict";var te={};function fe(me,de){}function be(me,de){}function _e(){te={}}function ce(me,de,ge){!de&&!te[ge]&&(me(!1,ge),te[ge]=!0)}function pe(me,de){ce(fe,me,de)}function ae(me,de){ce(be,me,de)}Ze.ZP=pe},81533:function(ot,Ze){"use strict";var ee;var te=typeof Symbol=="function"&&Symbol.for,fe=te?Symbol.for("react.element"):60103,be=te?Symbol.for("react.portal"):60106,_e=te?Symbol.for("react.fragment"):60107,ce=te?Symbol.for("react.strict_mode"):60108,pe=te?Symbol.for("react.profiler"):60114,ae=te?Symbol.for("react.provider"):60109,me=te?Symbol.for("react.context"):60110,de=te?Symbol.for("react.async_mode"):60111,ge=te?Symbol.for("react.concurrent_mode"):60111,le=te?Symbol.for("react.forward_ref"):60112,he=te?Symbol.for("react.suspense"):60113,re=te?Symbol.for("react.suspense_list"):60120,ne=te?Symbol.for("react.memo"):60115,y=te?Symbol.for("react.lazy"):60116,a=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ie){if(typeof ie=="object"&&ie!==null){var ue=ie.$$typeof;switch(ue){case fe:switch(ie=ie.type,ie){case de:case ge:case _e:case pe:case ce:case he:return ie;default:switch(ie=ie&&ie.$$typeof,ie){case me:case le:case y:case ne:case ae:return ie;default:return ue}}case be:return ue}}}function oe(ie){return z(ie)===ge}ee=de,ee=ge,ee=me,ee=ae,ee=fe,ee=le,ee=_e,ee=y,ee=ne,ee=be,ee=pe,ee=ce,ee=he,ee=function(ie){return oe(ie)||z(ie)===de},ee=oe,ee=function(ie){return z(ie)===me},ee=function(ie){return z(ie)===ae},ee=function(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===fe},ee=function(ie){return z(ie)===le},Ze.isFragment=function(ie){return z(ie)===_e},ee=function(ie){return z(ie)===y},Ze.isMemo=function(ie){return z(ie)===ne},ee=function(ie){return z(ie)===be},ee=function(ie){return z(ie)===pe},ee=function(ie){return z(ie)===ce},ee=function(ie){return z(ie)===he},ee=function(ie){return typeof ie=="string"||typeof ie=="function"||ie===_e||ie===ge||ie===pe||ie===ce||ie===he||ie===re||typeof ie=="object"&&ie!==null&&(ie.$$typeof===y||ie.$$typeof===ne||ie.$$typeof===ae||ie.$$typeof===me||ie.$$typeof===le||ie.$$typeof===E||ie.$$typeof===b||ie.$$typeof===x||ie.$$typeof===a)},ee=z},28580:function(ot,Ze,ee){"use strict";ot.exports=ee(81533)},92389:function(ot,Ze){"use strict";var ee={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(fe){var be=fe.keyCode;if(fe.altKey&&!fe.ctrlKey||fe.metaKey||be>=ee.F1&&be<=ee.F12)return!1;switch(be){case ee.ALT:case ee.CAPS_LOCK:case ee.CONTEXT_MENU:case ee.CTRL:case ee.DOWN:case ee.END:case ee.ESC:case ee.HOME:case ee.INSERT:case ee.LEFT:case ee.MAC_FF_META:case ee.META:case ee.NUMLOCK:case ee.NUM_CENTER:case ee.PAGE_DOWN:case ee.PAGE_UP:case ee.PAUSE:case ee.PRINT_SCREEN:case ee.RIGHT:case ee.SHIFT:case ee.UP:case ee.WIN_KEY:case ee.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(fe){if(fe>=ee.ZERO&&fe<=ee.NINE||fe>=ee.NUM_ZERO&&fe<=ee.NUM_MULTIPLY||fe>=ee.A&&fe<=ee.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&fe===0)return!0;switch(fe){case ee.SPACE:case ee.QUESTION_MARK:case ee.NUM_PLUS:case ee.NUM_MINUS:case ee.NUM_PERIOD:case ee.NUM_DIVISION:case ee.SEMICOLON:case ee.DASH:case ee.EQUALS:case ee.COMMA:case ee.PERIOD:case ee.SLASH:case ee.APOSTROPHE:case ee.SINGLE_QUOTE:case ee.OPEN_SQUARE_BRACKET:case ee.BACKSLASH:case ee.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};Ze.Z=ee},82702:function(ot,Ze,ee){var te=ee(34155);(function(fe,be){ot.exports=be()})(this,function(){"use strict";function fe(tt){var vt=typeof tt;return tt!==null&&(vt==="object"||vt==="function")}function be(tt){return typeof tt=="function"}var _e=void 0;Array.isArray?_e=Array.isArray:_e=function(tt){return Object.prototype.toString.call(tt)==="[object Array]"};var ce=_e,pe=0,ae=void 0,me=void 0,de=function(vt,bt){ie[pe]=vt,ie[pe+1]=bt,pe+=2,pe===2&&(me?me(ue):Se())};function ge(tt){me=tt}function le(tt){de=tt}var he=typeof window!="undefined"?window:void 0,re=he||{},ne=re.MutationObserver||re.WebKitMutationObserver,y=typeof self=="undefined"&&typeof te!="undefined"&&{}.toString.call(te)==="[object process]",a=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return te.nextTick(ue)}}function b(){return typeof ae!="undefined"?function(){ae(ue)}:oe()}function x(){var tt=0,vt=new ne(ue),bt=document.createTextNode("");return vt.observe(bt,{characterData:!0}),function(){bt.data=tt=++tt%2}}function z(){var tt=new MessageChannel;return tt.port1.onmessage=ue,function(){return tt.port2.postMessage(0)}}function oe(){var tt=setTimeout;return function(){return tt(ue,1)}}var ie=new Array(1e3);function ue(){for(var tt=0;tt<pe;tt+=2){var vt=ie[tt],bt=ie[tt+1];vt(bt),ie[tt]=void 0,ie[tt+1]=void 0}pe=0}function ve(){try{var tt=Function("return this")().require("vertx");return ae=tt.runOnLoop||tt.runOnContext,b()}catch(vt){return oe()}}var Se=void 0;y?Se=E():ne?Se=x():a?Se=z():he===void 0?Se=ve():Se=oe();function Le(tt,vt){var bt=this,Qe=new this.constructor(xe);Qe[Ne]===void 0&&Qt(Qe);var Wt=bt._state;if(Wt){var He=arguments[Wt-1];de(function(){return qt(Wt,Qe,He,bt._result)})}else at(bt,Qe,tt,vt);return Qe}function we(tt){var vt=this;if(tt&&typeof tt=="object"&&tt.constructor===vt)return tt;var bt=new vt(xe);return It(bt,tt),bt}var Ne=Math.random().toString(36).substring(2);function xe(){}var st=void 0,Ye=1,lt=2;function Me(){return new TypeError("You cannot resolve a promise with itself")}function Be(){return new TypeError("A promises callback cannot return that same promise.")}function Re(tt,vt,bt,Qe){try{tt.call(vt,bt,Qe)}catch(Wt){return Wt}}function ke(tt,vt,bt){de(function(Qe){var Wt=!1,He=Re(bt,vt,function(ut){Wt||(Wt=!0,vt!==ut?It(Qe,ut):Zt(Qe,ut))},function(ut){Wt||(Wt=!0,rt(Qe,ut))},"Settle: "+(Qe._label||" unknown promise"));!Wt&&He&&(Wt=!0,rt(Qe,He))},tt)}function Ge(tt,vt){vt._state===Ye?Zt(tt,vt._result):vt._state===lt?rt(tt,vt._result):at(vt,void 0,function(bt){return It(tt,bt)},function(bt){return rt(tt,bt)})}function Et(tt,vt,bt){vt.constructor===tt.constructor&&bt===Le&&vt.constructor.resolve===we?Ge(tt,vt):bt===void 0?Zt(tt,vt):be(bt)?ke(tt,vt,bt):Zt(tt,vt)}function It(tt,vt){if(tt===vt)rt(tt,Me());else if(fe(vt)){var bt=void 0;try{bt=vt.then}catch(Qe){rt(tt,Qe);return}Et(tt,vt,bt)}else Zt(tt,vt)}function en(tt){tt._onerror&&tt._onerror(tt._result),Ct(tt)}function Zt(tt,vt){tt._state===st&&(tt._result=vt,tt._state=Ye,tt._subscribers.length!==0&&de(Ct,tt))}function rt(tt,vt){tt._state===st&&(tt._state=lt,tt._result=vt,de(en,tt))}function at(tt,vt,bt,Qe){var Wt=tt._subscribers,He=Wt.length;tt._onerror=null,Wt[He]=vt,Wt[He+Ye]=bt,Wt[He+lt]=Qe,He===0&&tt._state&&de(Ct,tt)}function Ct(tt){var vt=tt._subscribers,bt=tt._state;if(vt.length!==0){for(var Qe=void 0,Wt=void 0,He=tt._result,ut=0;ut<vt.length;ut+=3)Qe=vt[ut],Wt=vt[ut+bt],Qe?qt(bt,Qe,Wt,He):Wt(He);tt._subscribers.length=0}}function qt(tt,vt,bt,Qe){var Wt=be(bt),He=void 0,ut=void 0,En=!0;if(Wt){try{He=bt(Qe)}catch(un){En=!1,ut=un}if(vt===He){rt(vt,Be());return}}else He=Qe;vt._state!==st||(Wt&&En?It(vt,He):En===!1?rt(vt,ut):tt===Ye?Zt(vt,He):tt===lt&&rt(vt,He))}function Gt(tt,vt){try{vt(function(Qe){It(tt,Qe)},function(Qe){rt(tt,Qe)})}catch(bt){rt(tt,bt)}}var xt=0;function Ve(){return xt++}function Qt(tt){tt[Ne]=xt++,tt._state=void 0,tt._result=void 0,tt._subscribers=[]}function Ln(){return new Error("Array Methods must be provided an Array")}var Hn=function(){function tt(vt,bt){this._instanceConstructor=vt,this.promise=new vt(xe),this.promise[Ne]||Qt(this.promise),ce(bt)?(this.length=bt.length,this._remaining=bt.length,this._result=new Array(this.length),this.length===0?Zt(this.promise,this._result):(this.length=this.length||0,this._enumerate(bt),this._remaining===0&&Zt(this.promise,this._result))):rt(this.promise,Ln())}return tt.prototype._enumerate=function(bt){for(var Qe=0;this._state===st&&Qe<bt.length;Qe++)this._eachEntry(bt[Qe],Qe)},tt.prototype._eachEntry=function(bt,Qe){var Wt=this._instanceConstructor,He=Wt.resolve;if(He===we){var ut=void 0,En=void 0,un=!1;try{ut=bt.then}catch(sn){un=!0,En=sn}if(ut===Le&&bt._state!==st)this._settledAt(bt._state,Qe,bt._result);else if(typeof ut!="function")this._remaining--,this._result[Qe]=bt;else if(Wt===ft){var ht=new Wt(xe);un?rt(ht,En):Et(ht,bt,ut),this._willSettleAt(ht,Qe)}else this._willSettleAt(new Wt(function(sn){return sn(bt)}),Qe)}else this._willSettleAt(He(bt),Qe)},tt.prototype._settledAt=function(bt,Qe,Wt){var He=this.promise;He._state===st&&(this._remaining--,bt===lt?rt(He,Wt):this._result[Qe]=Wt),this._remaining===0&&Zt(He,this._result)},tt.prototype._willSettleAt=function(bt,Qe){var Wt=this;at(bt,void 0,function(He){return Wt._settledAt(Ye,Qe,He)},function(He){return Wt._settledAt(lt,Qe,He)})},tt}();function mn(tt){return new Hn(this,tt).promise}function zt(tt){var vt=this;return ce(tt)?new vt(function(bt,Qe){for(var Wt=tt.length,He=0;He<Wt;He++)vt.resolve(tt[He]).then(bt,Qe)}):new vt(function(bt,Qe){return Qe(new TypeError("You must pass an array to race."))})}function et(tt){var vt=this,bt=new vt(xe);return rt(bt,tt),bt}function Xe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function qe(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ft=function(){function tt(vt){this[Ne]=Ve(),this._result=this._state=void 0,this._subscribers=[],xe!==vt&&(typeof vt!="function"&&Xe(),this instanceof tt?Gt(this,vt):qe())}return tt.prototype.catch=function(bt){return this.then(null,bt)},tt.prototype.finally=function(bt){var Qe=this,Wt=Qe.constructor;return be(bt)?Qe.then(function(He){return Wt.resolve(bt()).then(function(){return He})},function(He){return Wt.resolve(bt()).then(function(){throw He})}):Qe.then(bt,bt)},tt}();ft.prototype.then=Le,ft.all=mn,ft.race=zt,ft.resolve=we,ft.reject=et,ft._setScheduler=ge,ft._setAsap=le,ft._asap=de;function Dt(){var tt=void 0;if(typeof ee.g!="undefined")tt=ee.g;else if(typeof self!="undefined")tt=self;else try{tt=Function("return this")()}catch(Qe){throw new Error("polyfill failed because global object is unavailable in this environment")}var vt=tt.Promise;if(vt){var bt=null;try{bt=Object.prototype.toString.call(vt.resolve())}catch(Qe){}if(bt==="[object Promise]"&&!vt.cast)return}tt.Promise=ft}return ft.polyfill=Dt,ft.Promise=ft,ft})},17187:function(ot){"use strict";var Ze=typeof Reflect=="object"?Reflect:null,ee=Ze&&typeof Ze.apply=="function"?Ze.apply:function(z,oe,ie){return Function.prototype.apply.call(z,oe,ie)},te;Ze&&typeof Ze.ownKeys=="function"?te=Ze.ownKeys:Object.getOwnPropertySymbols?te=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:te=function(z){return Object.getOwnPropertyNames(z)};function fe(x){console&&console.warn&&console.warn(x)}var be=Number.isNaN||function(z){return z!==z};function _e(){_e.init.call(this)}ot.exports=_e,ot.exports.once=a,_e.EventEmitter=_e,_e.prototype._events=void 0,_e.prototype._eventsCount=0,_e.prototype._maxListeners=void 0;var ce=10;function pe(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(_e,"defaultMaxListeners",{enumerable:!0,get:function(){return ce},set:function(x){if(typeof x!="number"||x<0||be(x))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+x+".");ce=x}}),_e.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},_e.prototype.setMaxListeners=function(z){if(typeof z!="number"||z<0||be(z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+z+".");return this._maxListeners=z,this};function ae(x){return x._maxListeners===void 0?_e.defaultMaxListeners:x._maxListeners}_e.prototype.getMaxListeners=function(){return ae(this)},_e.prototype.emit=function(z){for(var oe=[],ie=1;ie<arguments.length;ie++)oe.push(arguments[ie]);var ue=z==="error",ve=this._events;if(ve!==void 0)ue=ue&&ve.error===void 0;else if(!ue)return!1;if(ue){var Se;if(oe.length>0&&(Se=oe[0]),Se instanceof Error)throw Se;var Le=new Error("Unhandled error."+(Se?" ("+Se.message+")":""));throw Le.context=Se,Le}var we=ve[z];if(we===void 0)return!1;if(typeof we=="function")ee(we,this,oe);else for(var Ne=we.length,xe=re(we,Ne),ie=0;ie<Ne;++ie)ee(xe[ie],this,oe);return!0};function me(x,z,oe,ie){var ue,ve,Se;if(pe(oe),ve=x._events,ve===void 0?(ve=x._events=Object.create(null),x._eventsCount=0):(ve.newListener!==void 0&&(x.emit("newListener",z,oe.listener?oe.listener:oe),ve=x._events),Se=ve[z]),Se===void 0)Se=ve[z]=oe,++x._eventsCount;else if(typeof Se=="function"?Se=ve[z]=ie?[oe,Se]:[Se,oe]:ie?Se.unshift(oe):Se.push(oe),ue=ae(x),ue>0&&Se.length>ue&&!Se.warned){Se.warned=!0;var Le=new Error("Possible EventEmitter memory leak detected. "+Se.length+" "+String(z)+" listeners added. Use emitter.setMaxListeners() to increase limit");Le.name="MaxListenersExceededWarning",Le.emitter=x,Le.type=z,Le.count=Se.length,fe(Le)}return x}_e.prototype.addListener=function(z,oe){return me(this,z,oe,!1)},_e.prototype.on=_e.prototype.addListener,_e.prototype.prependListener=function(z,oe){return me(this,z,oe,!0)};function de(){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 ge(x,z,oe){var ie={fired:!1,wrapFn:void 0,target:x,type:z,listener:oe},ue=de.bind(ie);return ue.listener=oe,ie.wrapFn=ue,ue}_e.prototype.once=function(z,oe){return pe(oe),this.on(z,ge(this,z,oe)),this},_e.prototype.prependOnceListener=function(z,oe){return pe(oe),this.prependListener(z,ge(this,z,oe)),this},_e.prototype.removeListener=function(z,oe){var ie,ue,ve,Se,Le;if(pe(oe),ue=this._events,ue===void 0)return this;if(ie=ue[z],ie===void 0)return this;if(ie===oe||ie.listener===oe)--this._eventsCount===0?this._events=Object.create(null):(delete ue[z],ue.removeListener&&this.emit("removeListener",z,ie.listener||oe));else if(typeof ie!="function"){for(ve=-1,Se=ie.length-1;Se>=0;Se--)if(ie[Se]===oe||ie[Se].listener===oe){Le=ie[Se].listener,ve=Se;break}if(ve<0)return this;ve===0?ie.shift():ne(ie,ve),ie.length===1&&(ue[z]=ie[0]),ue.removeListener!==void 0&&this.emit("removeListener",z,Le||oe)}return this},_e.prototype.off=_e.prototype.removeListener,_e.prototype.removeAllListeners=function(z){var oe,ie,ue;if(ie=this._events,ie===void 0)return this;if(ie.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):ie[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete ie[z]),this;if(arguments.length===0){var ve=Object.keys(ie),Se;for(ue=0;ue<ve.length;++ue)Se=ve[ue],Se!=="removeListener"&&this.removeAllListeners(Se);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(oe=ie[z],typeof oe=="function")this.removeListener(z,oe);else if(oe!==void 0)for(ue=oe.length-1;ue>=0;ue--)this.removeListener(z,oe[ue]);return this};function le(x,z,oe){var ie=x._events;if(ie===void 0)return[];var ue=ie[z];return ue===void 0?[]:typeof ue=="function"?oe?[ue.listener||ue]:[ue]:oe?y(ue):re(ue,ue.length)}_e.prototype.listeners=function(z){return le(this,z,!0)},_e.prototype.rawListeners=function(z){return le(this,z,!1)},_e.listenerCount=function(x,z){return typeof x.listenerCount=="function"?x.listenerCount(z):he.call(x,z)},_e.prototype.listenerCount=he;function he(x){var z=this._events;if(z!==void 0){var oe=z[x];if(typeof oe=="function")return 1;if(oe!==void 0)return oe.length}return 0}_e.prototype.eventNames=function(){return this._eventsCount>0?te(this._events):[]};function re(x,z){for(var oe=new Array(z),ie=0;ie<z;++ie)oe[ie]=x[ie];return oe}function ne(x,z){for(;z+1<x.length;z++)x[z]=x[z+1];x.pop()}function y(x){for(var z=new Array(x.length),oe=0;oe<z.length;++oe)z[oe]=x[oe].listener||x[oe];return z}function a(x,z){return new Promise(function(oe,ie){function ue(Se){x.removeListener(z,ve),ie(Se)}function ve(){typeof x.removeListener=="function"&&x.removeListener("error",ue),oe([].slice.call(arguments))}b(x,z,ve,{once:!0}),z!=="error"&&E(x,ue,{once:!0})})}function E(x,z,oe){typeof x.on=="function"&&b(x,"error",z,oe)}function b(x,z,oe,ie){if(typeof x.on=="function")ie.once?x.once(z,oe):x.on(z,oe);else if(typeof x.addEventListener=="function")x.addEventListener(z,function ue(ve){ie.once&&x.removeEventListener(z,ue),oe(ve)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}},19575:function(ot,Ze,ee){var te,fe;(function(be,_e){ot.exports=_e(be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ee.g!="undefined"?ee.g:this,function(be){"use strict";be=be||{};var _e=be.Base64,ce="2.6.4",pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ae=function(Ye){for(var lt={},Me=0,Be=Ye.length;Me<Be;Me++)lt[Ye.charAt(Me)]=Me;return lt}(pe),me=String.fromCharCode,de=function(Ye){if(Ye.length<2){var lt=Ye.charCodeAt(0);return lt<128?Ye:lt<2048?me(192|lt>>>6)+me(128|lt&63):me(224|lt>>>12&15)+me(128|lt>>>6&63)+me(128|lt&63)}else{var lt=65536+(Ye.charCodeAt(0)-55296)*1024+(Ye.charCodeAt(1)-56320);return me(240|lt>>>18&7)+me(128|lt>>>12&63)+me(128|lt>>>6&63)+me(128|lt&63)}},ge=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,le=function(Ye){return Ye.replace(ge,de)},he=function(Ye){var lt=[0,2,1][Ye.length%3],Me=Ye.charCodeAt(0)<<16|(Ye.length>1?Ye.charCodeAt(1):0)<<8|(Ye.length>2?Ye.charCodeAt(2):0),Be=[pe.charAt(Me>>>18),pe.charAt(Me>>>12&63),lt>=2?"=":pe.charAt(Me>>>6&63),lt>=1?"=":pe.charAt(Me&63)];return Be.join("")},re=be.btoa&&typeof be.btoa=="function"?function(Ye){return be.btoa(Ye)}:function(Ye){if(Ye.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ye.replace(/[\s\S]{1,3}/g,he)},ne=function(Ye){return re(le(String(Ye)))},y=function(Ye){return Ye.replace(/[+\/]/g,function(lt){return lt=="+"?"-":"_"}).replace(/=/g,"")},a=function(Ye,lt){return lt?y(ne(Ye)):ne(Ye)},E=function(Ye){return a(Ye,!0)},b;be.Uint8Array&&(b=function(Ye,lt){for(var Me="",Be=0,Re=Ye.length;Be<Re;Be+=3){var ke=Ye[Be],Ge=Ye[Be+1],Et=Ye[Be+2],It=ke<<16|Ge<<8|Et;Me+=pe.charAt(It>>>18)+pe.charAt(It>>>12&63)+(typeof Ge!="undefined"?pe.charAt(It>>>6&63):"=")+(typeof Et!="undefined"?pe.charAt(It&63):"=")}return lt?y(Me):Me});var x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,z=function(Ye){switch(Ye.length){case 4:var lt=(7&Ye.charCodeAt(0))<<18|(63&Ye.charCodeAt(1))<<12|(63&Ye.charCodeAt(2))<<6|63&Ye.charCodeAt(3),Me=lt-65536;return me((Me>>>10)+55296)+me((Me&1023)+56320);case 3:return me((15&Ye.charCodeAt(0))<<12|(63&Ye.charCodeAt(1))<<6|63&Ye.charCodeAt(2));default:return me((31&Ye.charCodeAt(0))<<6|63&Ye.charCodeAt(1))}},oe=function(Ye){return Ye.replace(x,z)},ie=function(Ye){var lt=Ye.length,Me=lt%4,Be=(lt>0?ae[Ye.charAt(0)]<<18:0)|(lt>1?ae[Ye.charAt(1)]<<12:0)|(lt>2?ae[Ye.charAt(2)]<<6:0)|(lt>3?ae[Ye.charAt(3)]:0),Re=[me(Be>>>16),me(Be>>>8&255),me(Be&255)];return Re.length-=[0,0,2,1][Me],Re.join("")},ue=be.atob&&typeof be.atob=="function"?function(Ye){return be.atob(Ye)}:function(Ye){return Ye.replace(/\S{1,4}/g,ie)},ve=function(Ye){return ue(String(Ye).replace(/[^A-Za-z0-9\+\/]/g,""))},Se=function(Ye){return oe(ue(Ye))},Le=function(Ye){return String(Ye).replace(/[-_]/g,function(lt){return lt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},we=function(Ye){return Se(Le(Ye))},Ne;be.Uint8Array&&(Ne=function(Ye){return Uint8Array.from(ve(Le(Ye)),function(lt){return lt.charCodeAt(0)})});var xe=function(){var Ye=be.Base64;return be.Base64=_e,Ye};if(be.Base64={VERSION:ce,atob:ve,btoa:re,fromBase64:we,toBase64:a,utob:le,encode:a,encodeURI:E,btou:oe,decode:we,noConflict:xe,fromUint8Array:b,toUint8Array:Ne},typeof Object.defineProperty=="function"){var st=function(Ye){return{value:Ye,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",st(function(){return we(this)})),Object.defineProperty(String.prototype,"toBase64",st(function(Ye){return a(this,Ye)})),Object.defineProperty(String.prototype,"toBase64URI",st(function(){return a(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),ot.exports?ot.exports.Base64=be.Base64:(te=[],fe=function(){return be.Base64}.apply(Ze,te),fe!==void 0&&(ot.exports=fe)),{Base64:be.Base64}})},26819:function(ot,Ze){"use strict";var ee;var te=typeof Symbol=="function"&&Symbol.for,fe=te?Symbol.for("react.element"):60103,be=te?Symbol.for("react.portal"):60106,_e=te?Symbol.for("react.fragment"):60107,ce=te?Symbol.for("react.strict_mode"):60108,pe=te?Symbol.for("react.profiler"):60114,ae=te?Symbol.for("react.provider"):60109,me=te?Symbol.for("react.context"):60110,de=te?Symbol.for("react.async_mode"):60111,ge=te?Symbol.for("react.concurrent_mode"):60111,le=te?Symbol.for("react.forward_ref"):60112,he=te?Symbol.for("react.suspense"):60113,re=te?Symbol.for("react.suspense_list"):60120,ne=te?Symbol.for("react.memo"):60115,y=te?Symbol.for("react.lazy"):60116,a=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ie){if(typeof ie=="object"&&ie!==null){var ue=ie.$$typeof;switch(ue){case fe:switch(ie=ie.type,ie){case de:case ge:case _e:case pe:case ce:case he:return ie;default:switch(ie=ie&&ie.$$typeof,ie){case me:case le:case y:case ne:case ae:return ie;default:return ue}}case be:return ue}}}function oe(ie){return z(ie)===ge}ee=de,ee=ge,ee=me,ee=ae,ee=fe,ee=le,ee=_e,ee=y,ee=ne,ee=be,ee=pe,ee=ce,ee=he,ee=function(ie){return oe(ie)||z(ie)===de},ee=oe,ee=function(ie){return z(ie)===me},ee=function(ie){return z(ie)===ae},ee=function(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===fe},ee=function(ie){return z(ie)===le},ee=function(ie){return z(ie)===_e},ee=function(ie){return z(ie)===y},Ze.isMemo=function(ie){return z(ie)===ne},ee=function(ie){return z(ie)===be},ee=function(ie){return z(ie)===pe},ee=function(ie){return z(ie)===ce},ee=function(ie){return z(ie)===he},ee=function(ie){return typeof ie=="string"||typeof ie=="function"||ie===_e||ie===ge||ie===pe||ie===ce||ie===he||ie===re||typeof ie=="object"&&ie!==null&&(ie.$$typeof===y||ie.$$typeof===ne||ie.$$typeof===ae||ie.$$typeof===me||ie.$$typeof===le||ie.$$typeof===E||ie.$$typeof===b||ie.$$typeof===x||ie.$$typeof===a)},ee=z},18459:function(ot,Ze,ee){"use strict";ot.exports=ee(26819)},16651:function(ot,Ze){"use strict";var ee;var te=Symbol.for("react.element"),fe=Symbol.for("react.portal"),be=Symbol.for("react.fragment"),_e=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ae=Symbol.for("react.context"),me=Symbol.for("react.server_context"),de=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function a(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case be:case ce:case _e:case ge:case le:return E;default:switch(E=E&&E.$$typeof,E){case me:case ae:case de:case re:case he:case pe:return E;default:return b}}case fe:return b}}}ee=ae,ee=pe,ee=te,ee=de,ee=be,ee=re,ee=he,ee=fe,ee=ce,ee=_e,ee=ge,ee=le,ee=function(){return!1},ee=function(){return!1},ee=function(E){return a(E)===ae},ee=function(E){return a(E)===pe},ee=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},ee=function(E){return a(E)===de},ee=function(E){return a(E)===be},ee=function(E){return a(E)===re},ee=function(E){return a(E)===he},ee=function(E){return a(E)===fe},ee=function(E){return a(E)===ce},ee=function(E){return a(E)===_e},ee=function(E){return a(E)===ge},ee=function(E){return a(E)===le},ee=function(E){return typeof E=="string"||typeof E=="function"||E===be||E===ce||E===_e||E===ge||E===le||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===he||E.$$typeof===pe||E.$$typeof===ae||E.$$typeof===de||E.$$typeof===y||E.getModuleId!==void 0)},ee=a},33993:function(ot,Ze,ee){"use strict";ee(16651)},46762:function(ot,Ze){"use strict";var ee;var te=Symbol.for("react.element"),fe=Symbol.for("react.portal"),be=Symbol.for("react.fragment"),_e=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),pe=Symbol.for("react.provider"),ae=Symbol.for("react.context"),me=Symbol.for("react.server_context"),de=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),he=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function a(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case be:case ce:case _e:case ge:case le:return E;default:switch(E=E&&E.$$typeof,E){case me:case ae:case de:case re:case he:case pe:return E;default:return b}}case fe:return b}}}ee=ae,ee=pe,ee=te,ee=de,ee=be,ee=re,ee=he,ee=fe,ee=ce,ee=_e,ee=ge,ee=le,ee=function(){return!1},ee=function(){return!1},ee=function(E){return a(E)===ae},ee=function(E){return a(E)===pe},ee=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},ee=function(E){return a(E)===de},Ze.isFragment=function(E){return a(E)===be},ee=function(E){return a(E)===re},ee=function(E){return a(E)===he},ee=function(E){return a(E)===fe},ee=function(E){return a(E)===ce},ee=function(E){return a(E)===_e},ee=function(E){return a(E)===ge},ee=function(E){return a(E)===le},ee=function(E){return typeof E=="string"||typeof E=="function"||E===be||E===ce||E===_e||E===ge||E===le||E===ne||typeof E=="object"&&E!==null&&(E.$$typeof===re||E.$$typeof===he||E.$$typeof===pe||E.$$typeof===ae||E.$$typeof===de||E.$$typeof===y||E.getModuleId!==void 0)},ee=a},35110:function(ot,Ze,ee){"use strict";ot.exports=ee(46762)},58971:function(ot,Ze,ee){var te=ee(62195),fe=ee(39015),be=[ee(19257)];ot.exports=te.createStore(fe,be)},19257:function(ot,Ze,ee){ot.exports=te;function te(){return ee(55703),{}}},55703: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(ot){return ot<10?"0"+ot:ot}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(ot){return rx_escapable.lastIndex=0,rx_escapable.test(ot)?'"'+ot.replace(rx_escapable,function(Ze){var ee=meta[Ze];return typeof ee=="string"?ee:"\\u"+("0000"+Ze.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ot+'"'}function str(ot,Ze){var ee,te,fe,be,_e=gap,ce,pe=Ze[ot];switch(pe&&typeof pe=="object"&&typeof pe.toJSON=="function"&&(pe=pe.toJSON(ot)),typeof rep=="function"&&(pe=rep.call(Ze,ot,pe)),typeof pe){case"string":return quote(pe);case"number":return isFinite(pe)?String(pe):"null";case"boolean":case"null":return String(pe);case"object":if(!pe)return"null";if(gap+=indent,ce=[],Object.prototype.toString.apply(pe)==="[object Array]"){for(be=pe.length,ee=0;ee<be;ee+=1)ce[ee]=str(ee,pe)||"null";return fe=ce.length===0?"[]":gap?`[
`+gap+ce.join(`,
`+gap)+`
`+_e+"]":"["+ce.join(",")+"]",gap=_e,fe}if(rep&&typeof rep=="object")for(be=rep.length,ee=0;ee<be;ee+=1)typeof rep[ee]=="string"&&(te=rep[ee],fe=str(te,pe),fe&&ce.push(quote(te)+(gap?": ":":")+fe));else for(te in pe)Object.prototype.hasOwnProperty.call(pe,te)&&(fe=str(te,pe),fe&&ce.push(quote(te)+(gap?": ":":")+fe));return fe=ce.length===0?"{}":gap?`{
`+gap+ce.join(`,
`+gap)+`
`+_e+"}":"{"+ce.join(",")+"}",gap=_e,fe}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(ot,Ze,ee){var te;if(gap="",indent="",typeof ee=="number")for(te=0;te<ee;te+=1)indent+=" ";else typeof ee=="string"&&(indent=ee);if(rep=Ze,Ze&&typeof Ze!="function"&&(typeof Ze!="object"||typeof Ze.length!="number"))throw new Error("JSON.stringify");return str("",{"":ot})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(ot,Ze){var ee,te,fe=ot[Ze];if(fe&&typeof fe=="object")for(ee in fe)Object.prototype.hasOwnProperty.call(fe,ee)&&(te=walk(fe,ee),te!==void 0?fe[ee]=te:delete fe[ee]);return reviver.call(ot,Ze,fe)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(ot){return"\\u"+("0000"+ot.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")})}()},62195:function(ot,Ze,ee){var te=ee(69078),fe=te.slice,be=te.pluck,_e=te.each,ce=te.bind,pe=te.create,ae=te.isList,me=te.isFunction,de=te.isObject;ot.exports={createStore:he};var ge={version:"2.0.12",enabled:!1,get:function(re,ne){var y=this.storage.read(this._namespacePrefix+re);return this._deserialize(y,ne)},set:function(re,ne){return ne===void 0?this.remove(re):(this.storage.write(this._namespacePrefix+re,this._serialize(ne)),ne)},remove:function(re){this.storage.remove(this._namespacePrefix+re)},each:function(re){var ne=this;this.storage.each(function(y,a){re.call(ne,ne._deserialize(y),(a||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(re){return this._namespacePrefix=="__storejs_"+re+"_"},createStore:function(){return he.apply(this,arguments)},addPlugin:function(re){this._addPlugin(re)},namespace:function(re){return he(this.storage,this.plugins,re)}};function le(){var re=typeof console=="undefined"?null:console;if(re){var ne=re.warn?re.warn:re.log;ne.apply(re,arguments)}}function he(re,ne,y){y||(y=""),re&&!ae(re)&&(re=[re]),ne&&!ae(ne)&&(ne=[ne]);var a=y?"__storejs_"+y+"_":"",E=y?new RegExp("^"+a):null,b=/^[a-zA-Z0-9_\-]*$/;if(!b.test(y))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var x={_namespacePrefix:a,_namespaceRegexp:E,_testStorage:function(oe){try{var ie="__storejs__test__";oe.write(ie,ie);var ue=oe.read(ie)===ie;return oe.remove(ie),ue}catch(ve){return!1}},_assignPluginFnProp:function(oe,ie){var ue=this[ie];this[ie]=function(){var Se=fe(arguments,0),Le=this;function we(){if(ue)return _e(arguments,function(xe,st){Se[st]=xe}),ue.apply(Le,Se)}var Ne=[we].concat(Se);return oe.apply(Le,Ne)}},_serialize:function(oe){return JSON.stringify(oe)},_deserialize:function(oe,ie){if(!oe)return ie;var ue="";try{ue=JSON.parse(oe)}catch(ve){ue=oe}return ue!==void 0?ue:ie},_addStorage:function(oe){this.enabled||this._testStorage(oe)&&(this.storage=oe,this.enabled=!0)},_addPlugin:function(oe){var ie=this;if(ae(oe)){_e(oe,function(Se){ie._addPlugin(Se)});return}var ue=be(this.plugins,function(Se){return oe===Se});if(!ue){if(this.plugins.push(oe),!me(oe))throw new Error("Plugins must be function values that return objects");var ve=oe.call(this);if(!de(ve))throw new Error("Plugins must return an object of function properties");_e(ve,function(Se,Le){if(!me(Se))throw new Error("Bad plugin property: "+Le+" from plugin "+oe.name+". Plugins should only return functions.");ie._assignPluginFnProp(Se,Le)})}},addStorage:function(oe){le("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(oe)}},z=pe(x,ge,{plugins:[]});return z.raw={},_e(z,function(oe,ie){me(oe)&&(z.raw[ie]=ce(z,oe))}),_e(re,function(oe){z._addStorage(oe)}),_e(ne,function(oe){z._addPlugin(oe)}),z}},69078:function(ot,Ze,ee){var te=ce(),fe=pe(),be=ae(),_e=typeof window!="undefined"?window:ee.g;ot.exports={assign:te,create:fe,trim:be,bind:me,slice:de,each:ge,map:le,pluck:he,isList:re,isFunction:ne,isObject:y,Global:_e};function ce(){return Object.assign?Object.assign:function(E,b,x,z){for(var oe=1;oe<arguments.length;oe++)ge(Object(arguments[oe]),function(ie,ue){E[ue]=ie});return E}}function pe(){if(Object.create)return function(b,x,z,oe){var ie=de(arguments,1);return te.apply(this,[Object.create(b)].concat(ie))};{let E=function(){};var a=E;return function(x,z,oe,ie){var ue=de(arguments,1);return E.prototype=x,te.apply(this,[new E].concat(ue))}}}function ae(){return String.prototype.trim?function(E){return String.prototype.trim.call(E)}:function(E){return E.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function me(a,E){return function(){return E.apply(a,Array.prototype.slice.call(arguments,0))}}function de(a,E){return Array.prototype.slice.call(a,E||0)}function ge(a,E){he(a,function(b,x){return E(b,x),!1})}function le(a,E){var b=re(a)?[]:{};return he(a,function(x,z){return b[z]=E(x,z),!1}),b}function he(a,E){if(re(a)){for(var b=0;b<a.length;b++)if(E(a[b],b))return a[b]}else for(var x in a)if(a.hasOwnProperty(x)&&E(a[x],x))return a[x]}function re(a){return a!=null&&typeof a!="function"&&typeof a.length=="number"}function ne(a){return a&&{}.toString.call(a)==="[object Function]"}function y(a){return a&&{}.toString.call(a)==="[object Object]"}},39015:function(ot,Ze,ee){ot.exports=[ee(39627),ee(95347),ee(34524),ee(45580),ee(58855),ee(8728)]},45580:function(ot,Ze,ee){var te=ee(69078),fe=te.Global,be=te.trim;ot.exports={name:"cookieStorage",read:ce,write:ae,each:pe,remove:me,clearAll:de};var _e=fe.document;function ce(le){if(!le||!ge(le))return null;var he="(?:^|.*;\\s*)"+escape(le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(_e.cookie.replace(new RegExp(he),"$1"))}function pe(le){for(var he=_e.cookie.split(/; ?/g),re=he.length-1;re>=0;re--)if(be(he[re])){var ne=he[re].split("="),y=unescape(ne[0]),a=unescape(ne[1]);le(a,y)}}function ae(le,he){le&&(_e.cookie=escape(le)+"="+escape(he)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function me(le){!le||!ge(le)||(_e.cookie=escape(le)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function de(){pe(function(le,he){me(he)})}function ge(le){return new RegExp("(?:^|;\\s*)"+escape(le).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(_e.cookie)}},39627:function(ot,Ze,ee){var te=ee(69078),fe=te.Global;ot.exports={name:"localStorage",read:_e,write:ce,each:pe,remove:ae,clearAll:me};function be(){return fe.localStorage}function _e(de){return be().getItem(de)}function ce(de,ge){return be().setItem(de,ge)}function pe(de){for(var ge=be().length-1;ge>=0;ge--){var le=be().key(ge);de(_e(le),le)}}function ae(de){return be().removeItem(de)}function me(){return be().clear()}},8728:function(ot){ot.exports={name:"memoryStorage",read:ee,write:te,each:fe,remove:be,clearAll:_e};var Ze={};function ee(ce){return Ze[ce]}function te(ce,pe){Ze[ce]=pe}function fe(ce){for(var pe in Ze)Ze.hasOwnProperty(pe)&&ce(Ze[pe],pe)}function be(ce){delete Ze[ce]}function _e(ce){Ze={}}},95347:function(ot,Ze,ee){var te=ee(69078),fe=te.Global;ot.exports={name:"oldFF-globalStorage",read:_e,write:ce,each:pe,remove:ae,clearAll:me};var be=fe.globalStorage;function _e(de){return be[de]}function ce(de,ge){be[de]=ge}function pe(de){for(var ge=be.length-1;ge>=0;ge--){var le=be.key(ge);de(be[le],le)}}function ae(de){return be.removeItem(de)}function me(){pe(function(de,ge){delete be[de]})}},34524:function(ot,Ze,ee){var te=ee(69078),fe=te.Global;ot.exports={name:"oldIE-userDataStorage",write:ae,read:me,each:de,remove:ge,clearAll:le};var be="storejs",_e=fe.document,ce=ne(),pe=(fe.navigator?fe.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ae(y,a){if(!pe){var E=re(y);ce(function(b){b.setAttribute(E,a),b.save(be)})}}function me(y){if(!pe){var a=re(y),E=null;return ce(function(b){E=b.getAttribute(a)}),E}}function de(y){ce(function(a){for(var E=a.XMLDocument.documentElement.attributes,b=E.length-1;b>=0;b--){var x=E[b];y(a.getAttribute(x.name),x.name)}})}function ge(y){var a=re(y);ce(function(E){E.removeAttribute(a),E.save(be)})}function le(){ce(function(y){var a=y.XMLDocument.documentElement.attributes;y.load(be);for(var E=a.length-1;E>=0;E--)y.removeAttribute(a[E].name);y.save(be)})}var he=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function re(y){return y.replace(/^\d/,"___$&").replace(he,"___")}function ne(){if(!_e||!_e.documentElement||!_e.documentElement.addBehavior)return null;var y="script",a,E,b;try{E=new ActiveXObject("htmlfile"),E.open(),E.write("<"+y+">document.w=window</"+y+'><iframe src="/favicon.ico"></iframe>'),E.close(),a=E.w.frames[0].document,b=a.createElement("div")}catch(x){b=_e.createElement("div"),a=_e.body}return function(x){var z=[].slice.call(arguments,0);z.unshift(b),a.appendChild(b),b.addBehavior("#default#userData"),b.load(be),x.apply(this,z),a.removeChild(b)}}},58855:function(ot,Ze,ee){var te=ee(69078),fe=te.Global;ot.exports={name:"sessionStorage",read:_e,write:ce,each:pe,remove:ae,clearAll:me};function be(){return fe.sessionStorage}function _e(de){return be().getItem(de)}function ce(de,ge){return be().setItem(de,ge)}function pe(de){for(var ge=be().length-1;ge>=0;ge--){var le=be().key(ge);de(_e(le),le)}}function ae(de){return be().removeItem(de)}function me(){return be().clear()}},18034:function(ot){var Ze=arguments[3],ee=arguments[4],te=arguments[5],fe=JSON.stringify;ot.exports=function(be,_e){for(var ce,pe=Object.keys(te),ae=0,me=pe.length;ae<me;ae++){var de=pe[ae],ge=te[de].exports;if(ge===be||ge&&ge.default===be){ce=de;break}}if(!ce){ce=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var le={},ae=0,me=pe.length;ae<me;ae++){var de=pe[ae];le[de]=de}ee[ce]=["function(require,module,exports){"+be+"(self); }",le]}var he=Math.floor(Math.pow(16,8)*Math.random()).toString(16),re={};re[ce]=ce,ee[he]=["function(require,module,exports){var f = require("+fe(ce)+");(f.default ? f.default : f)(self);}",re];var ne={};y(he);function y(oe){ne[oe]=!0;for(var ie in ee[oe][1]){var ue=ee[oe][1][ie];ne[ue]||y(ue)}}var a="("+Ze+")({"+Object.keys(ne).map(function(oe){return fe(oe)+":["+ee[oe][0]+","+fe(ee[oe][1])+"]"}).join(",")+"},{},["+fe(he)+"])",E=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([a],{type:"text/javascript"});if(_e&&_e.bare)return b;var x=E.createObjectURL(b),z=new Worker(x);return z.objectURL=x,z}},12320:function(ot){(function(Ze,ee){if(1)ot.exports=ee();else var te,fe})(window,function(){return function(Ze){var ee={};function te(fe){if(ee[fe])return ee[fe].exports;var be=ee[fe]={i:fe,l:!1,exports:{}};return Ze[fe].call(be.exports,be,be.exports,te),be.l=!0,be.exports}return te.m=Ze,te.c=ee,te.d=function(fe,be,_e){te.o(fe,be)||Object.defineProperty(fe,be,{enumerable:!0,get:_e})},te.r=function(fe){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(fe,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(fe,"__esModule",{value:!0})},te.t=function(fe,be){if(1&be&&(fe=te(fe)),8&be||4&be&&typeof fe=="object"&&fe&&fe.__esModule)return fe;var _e=Object.create(null);if(te.r(_e),Object.defineProperty(_e,"default",{enumerable:!0,value:fe}),2&be&&typeof fe!="string")for(var ce in fe)te.d(_e,ce,function(pe){return fe[pe]}.bind(null,ce));return _e},te.n=function(fe){var be=fe&&fe.__esModule?function(){return fe.default}:function(){return fe};return te.d(be,"a",be),be},te.o=function(fe,be){return Object.prototype.hasOwnProperty.call(fe,be)},te.p="",te(te.s=34)}([function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.forwardEvent=ee.EventEmitter=void 0;var fe=function(){function be(){this._listeners=[],this._disposed=!1}return Object.defineProperty(be.prototype,"event",{get:function(){var _e=this;return this._event||(this._event=function(ce){return _e._listeners.push(ce),{dispose:function(){if(!_e._disposed){for(var pe=0;pe<_e._listeners.length;pe++)if(_e._listeners[pe]===ce)return void _e._listeners.splice(pe,1)}}}}),this._event},enumerable:!1,configurable:!0}),be.prototype.fire=function(_e,ce){for(var pe=[],ae=0;ae<this._listeners.length;ae++)pe.push(this._listeners[ae]);for(ae=0;ae<pe.length;ae++)pe[ae].call(void 0,_e,ce)},be.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},be}();ee.EventEmitter=fe,ee.forwardEvent=function(be,_e){return be(function(ce){return _e.fire(ce)})}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.IUnicodeService=ee.IOptionsService=ee.ILogService=ee.IInstantiationService=ee.IDirtyRowService=ee.ICharsetService=ee.ICoreService=ee.ICoreMouseService=ee.IBufferService=void 0;var fe=te(14);ee.IBufferService=fe.createDecorator("BufferService"),ee.ICoreMouseService=fe.createDecorator("CoreMouseService"),ee.ICoreService=fe.createDecorator("CoreService"),ee.ICharsetService=fe.createDecorator("CharsetService"),ee.IDirtyRowService=fe.createDecorator("DirtyRowService"),ee.IInstantiationService=fe.createDecorator("InstantiationService"),ee.ILogService=fe.createDecorator("LogService"),ee.IOptionsService=fe.createDecorator("OptionsService"),ee.IUnicodeService=fe.createDecorator("UnicodeService")},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.getDisposeArrayDisposable=ee.disposeArray=ee.Disposable=void 0;var fe=function(){function _e(){this._disposables=[],this._isDisposed=!1}return _e.prototype.dispose=function(){this._isDisposed=!0;for(var ce=0,pe=this._disposables;ce<pe.length;ce++)pe[ce].dispose();this._disposables.length=0},_e.prototype.register=function(ce){return this._disposables.push(ce),ce},_e.prototype.unregister=function(ce){var pe=this._disposables.indexOf(ce);pe!==-1&&this._disposables.splice(pe,1)},_e}();function be(_e){for(var ce=0,pe=_e;ce<pe.length;ce++)pe[ce].dispose();_e.length=0}ee.Disposable=fe,ee.disposeArray=be,ee.getDisposeArrayDisposable=function(_e){return{dispose:function(){return be(_e)}}}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WHITESPACE_CELL_CODE=ee.WHITESPACE_CELL_WIDTH=ee.WHITESPACE_CELL_CHAR=ee.NULL_CELL_CODE=ee.NULL_CELL_WIDTH=ee.NULL_CELL_CHAR=ee.CHAR_DATA_CODE_INDEX=ee.CHAR_DATA_WIDTH_INDEX=ee.CHAR_DATA_CHAR_INDEX=ee.CHAR_DATA_ATTR_INDEX=ee.DEFAULT_ATTR=ee.DEFAULT_COLOR=void 0,ee.DEFAULT_COLOR=256,ee.DEFAULT_ATTR=256|ee.DEFAULT_COLOR<<9,ee.CHAR_DATA_ATTR_INDEX=0,ee.CHAR_DATA_CHAR_INDEX=1,ee.CHAR_DATA_WIDTH_INDEX=2,ee.CHAR_DATA_CODE_INDEX=3,ee.NULL_CELL_CHAR="",ee.NULL_CELL_WIDTH=1,ee.NULL_CELL_CODE=0,ee.WHITESPACE_CELL_CHAR=" ",ee.WHITESPACE_CELL_WIDTH=1,ee.WHITESPACE_CELL_CODE=32},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(me,de){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,le){ge.__proto__=le}||function(ge,le){for(var he in le)le.hasOwnProperty(he)&&(ge[he]=le[he])})(me,de)},function(me,de){function ge(){this.constructor=me}fe(me,de),me.prototype=de===null?Object.create(de):(ge.prototype=de.prototype,new ge)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CellData=void 0;var _e=te(8),ce=te(3),pe=te(6),ae=function(me){function de(){var ge=me!==null&&me.apply(this,arguments)||this;return ge.content=0,ge.fg=0,ge.bg=0,ge.extended=new pe.ExtendedAttrs,ge.combinedData="",ge}return be(de,me),de.fromCharData=function(ge){var le=new de;return le.setFromCharData(ge),le},de.prototype.isCombined=function(){return 2097152&this.content},de.prototype.getWidth=function(){return this.content>>22},de.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?_e.stringFromCodePoint(2097151&this.content):""},de.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},de.prototype.setFromCharData=function(ge){this.fg=ge[ce.CHAR_DATA_ATTR_INDEX],this.bg=0;var le=!1;if(ge[ce.CHAR_DATA_CHAR_INDEX].length>2)le=!0;else if(ge[ce.CHAR_DATA_CHAR_INDEX].length===2){var he=ge[ce.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=he&&he<=56319){var re=ge[ce.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=re&&re<=57343?this.content=1024*(he-55296)+re-56320+65536|ge[ce.CHAR_DATA_WIDTH_INDEX]<<22:le=!0}else le=!0}else this.content=ge[ce.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|ge[ce.CHAR_DATA_WIDTH_INDEX]<<22;le&&(this.combinedData=ge[ce.CHAR_DATA_CHAR_INDEX],this.content=2097152|ge[ce.CHAR_DATA_WIDTH_INDEX]<<22)},de.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},de}(pe.AttributeData);ee.CellData=ae},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ISoundService=ee.ISelectionService=ee.IRenderService=ee.IMouseService=ee.ICoreBrowserService=ee.ICharSizeService=void 0;var fe=te(14);ee.ICharSizeService=fe.createDecorator("CharSizeService"),ee.ICoreBrowserService=fe.createDecorator("CoreBrowserService"),ee.IMouseService=fe.createDecorator("MouseService"),ee.IRenderService=fe.createDecorator("RenderService"),ee.ISelectionService=fe.createDecorator("SelectionService"),ee.ISoundService=fe.createDecorator("SoundService")},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ExtendedAttrs=ee.AttributeData=void 0;var fe=function(){function _e(){this.fg=0,this.bg=0,this.extended=new be}return _e.toColorRGB=function(ce){return[ce>>>16&255,ce>>>8&255,255&ce]},_e.fromColorRGB=function(ce){return(255&ce[0])<<16|(255&ce[1])<<8|255&ce[2]},_e.prototype.clone=function(){var ce=new _e;return ce.fg=this.fg,ce.bg=this.bg,ce.extended=this.extended.clone(),ce},_e.prototype.isInverse=function(){return 67108864&this.fg},_e.prototype.isBold=function(){return 134217728&this.fg},_e.prototype.isUnderline=function(){return 268435456&this.fg},_e.prototype.isBlink=function(){return 536870912&this.fg},_e.prototype.isInvisible=function(){return 1073741824&this.fg},_e.prototype.isItalic=function(){return 67108864&this.bg},_e.prototype.isDim=function(){return 134217728&this.bg},_e.prototype.getFgColorMode=function(){return 50331648&this.fg},_e.prototype.getBgColorMode=function(){return 50331648&this.bg},_e.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},_e.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},_e.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},_e.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},_e.prototype.isFgDefault=function(){return(50331648&this.fg)==0},_e.prototype.isBgDefault=function(){return(50331648&this.bg)==0},_e.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},_e.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},_e.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},_e.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},_e.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},_e.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()},_e.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},_e.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},_e.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},_e.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},_e.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},_e}();ee.AttributeData=fe;var be=function(){function _e(ce,pe){ce===void 0&&(ce=0),pe===void 0&&(pe=-1),this.underlineStyle=ce,this.underlineColor=pe}return _e.prototype.clone=function(){return new _e(this.underlineStyle,this.underlineColor)},_e.prototype.isEmpty=function(){return this.underlineStyle===0},_e}();ee.ExtendedAttrs=be},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.addDisposableDomListener=void 0,ee.addDisposableDomListener=function(fe,be,_e,ce){fe.addEventListener(be,_e,ce);var pe=!1;return{dispose:function(){pe||(pe=!0,fe.removeEventListener(be,_e,ce))}}}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Utf8ToUtf32=ee.StringToUtf32=ee.utf32ToString=ee.stringFromCodePoint=void 0,ee.stringFromCodePoint=function(_e){return _e>65535?(_e-=65536,String.fromCharCode(55296+(_e>>10))+String.fromCharCode(_e%1024+56320)):String.fromCharCode(_e)},ee.utf32ToString=function(_e,ce,pe){ce===void 0&&(ce=0),pe===void 0&&(pe=_e.length);for(var ae="",me=ce;me<pe;++me){var de=_e[me];de>65535?(de-=65536,ae+=String.fromCharCode(55296+(de>>10))+String.fromCharCode(de%1024+56320)):ae+=String.fromCharCode(de)}return ae};var fe=function(){function _e(){this._interim=0}return _e.prototype.clear=function(){this._interim=0},_e.prototype.decode=function(ce,pe){var ae=ce.length;if(!ae)return 0;var me=0,de=0;this._interim&&(56320<=(he=ce.charCodeAt(de++))&&he<=57343?pe[me++]=1024*(this._interim-55296)+he-56320+65536:(pe[me++]=this._interim,pe[me++]=he),this._interim=0);for(var ge=de;ge<ae;++ge){var le=ce.charCodeAt(ge);if(55296<=le&&le<=56319){if(++ge>=ae)return this._interim=le,me;var he;56320<=(he=ce.charCodeAt(ge))&&he<=57343?pe[me++]=1024*(le-55296)+he-56320+65536:(pe[me++]=le,pe[me++]=he)}else pe[me++]=le}return me},_e}();ee.StringToUtf32=fe;var be=function(){function _e(){this.interim=new Uint8Array(3)}return _e.prototype.clear=function(){this.interim.fill(0)},_e.prototype.decode=function(ce,pe){var ae=ce.length;if(!ae)return 0;var me,de,ge,le,he=0,re=0,ne=0;if(this.interim[0]){var y=!1,a=this.interim[0];a&=(224&a)==192?31:(240&a)==224?15:7;for(var E=0,b=void 0;(b=63&this.interim[++E])&&E<4;)a<<=6,a|=b;for(var x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,z=x-E;ne<z;){if(ne>=ae)return 0;if((192&(b=ce[ne++]))!=128){ne--,y=!0;break}this.interim[E++]=b,a<<=6,a|=63&b}y||(x===2?a<128?ne--:pe[he++]=a:x===3?a<2048||a>=55296&&a<=57343||(pe[he++]=a):a<65536||a>1114111||(pe[he++]=a)),this.interim.fill(0)}for(var oe=ae-4,ie=ne;ie<ae;){for(;!(!(ie<oe)||128&(me=ce[ie])||128&(de=ce[ie+1])||128&(ge=ce[ie+2])||128&(le=ce[ie+3]));)pe[he++]=me,pe[he++]=de,pe[he++]=ge,pe[he++]=le,ie+=4;if((me=ce[ie++])<128)pe[he++]=me;else if((224&me)==192){if(ie>=ae)return this.interim[0]=me,he;if((192&(de=ce[ie++]))!=128){ie--;continue}if((re=(31&me)<<6|63&de)<128){ie--;continue}pe[he++]=re}else if((240&me)==224){if(ie>=ae)return this.interim[0]=me,he;if((192&(de=ce[ie++]))!=128){ie--;continue}if(ie>=ae)return this.interim[0]=me,this.interim[1]=de,he;if((192&(ge=ce[ie++]))!=128){ie--;continue}if((re=(15&me)<<12|(63&de)<<6|63&ge)<2048||re>=55296&&re<=57343)continue;pe[he++]=re}else if((248&me)==240){if(ie>=ae)return this.interim[0]=me,he;if((192&(de=ce[ie++]))!=128){ie--;continue}if(ie>=ae)return this.interim[0]=me,this.interim[1]=de,he;if((192&(ge=ce[ie++]))!=128){ie--;continue}if(ie>=ae)return this.interim[0]=me,this.interim[1]=de,this.interim[2]=ge,he;if((192&(le=ce[ie++]))!=128){ie--;continue}if((re=(7&me)<<18|(63&de)<<12|(63&ge)<<6|63&le)<65536||re>1114111)continue;pe[he++]=re}}return he},_e}();ee.Utf8ToUtf32=be},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CHAR_ATLAS_CELL_SPACING=ee.DIM_OPACITY=ee.INVERTED_DEFAULT_COLOR=void 0,ee.INVERTED_DEFAULT_COLOR=257,ee.DIM_OPACITY=.5,ee.CHAR_ATLAS_CELL_SPACING=1},function(Ze,ee,te){"use strict";var fe,be,_e,ce;function pe(me){var de=me.toString(16);return de.length<2?"0"+de:de}function ae(me,de){return me<de?(de+.05)/(me+.05):(me+.05)/(de+.05)}Object.defineProperty(ee,"__esModule",{value:!0}),ee.contrastRatio=ee.toPaddedHex=ee.rgba=ee.rgb=ee.css=ee.color=ee.channels=void 0,function(me){me.toCss=function(de,ge,le,he){return he!==void 0?"#"+pe(de)+pe(ge)+pe(le)+pe(he):"#"+pe(de)+pe(ge)+pe(le)},me.toRgba=function(de,ge,le,he){return he===void 0&&(he=255),(de<<24|ge<<16|le<<8|he)>>>0}}(fe=ee.channels||(ee.channels={})),(be=ee.color||(ee.color={})).blend=function(me,de){var ge=(255&de.rgba)/255;if(ge===1)return{css:de.css,rgba:de.rgba};var le=de.rgba>>24&255,he=de.rgba>>16&255,re=de.rgba>>8&255,ne=me.rgba>>24&255,y=me.rgba>>16&255,a=me.rgba>>8&255,E=ne+Math.round((le-ne)*ge),b=y+Math.round((he-y)*ge),x=a+Math.round((re-a)*ge);return{css:fe.toCss(E,b,x),rgba:fe.toRgba(E,b,x)}},be.isOpaque=function(me){return(255&me.rgba)==255},be.ensureContrastRatio=function(me,de,ge){var le=ce.ensureContrastRatio(me.rgba,de.rgba,ge);if(le)return ce.toColor(le>>24&255,le>>16&255,le>>8&255)},be.opaque=function(me){var de=(255|me.rgba)>>>0,ge=ce.toChannels(de),le=ge[0],he=ge[1],re=ge[2];return{css:fe.toCss(le,he,re),rgba:de}},be.opacity=function(me,de){var ge=Math.round(255*de),le=ce.toChannels(me.rgba),he=le[0],re=le[1],ne=le[2];return{css:fe.toCss(he,re,ne,ge),rgba:fe.toRgba(he,re,ne,ge)}},(ee.css||(ee.css={})).toColor=function(me){switch(me.length){case 7:return{css:me,rgba:(parseInt(me.slice(1),16)<<8|255)>>>0};case 9:return{css:me,rgba:parseInt(me.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(me){function de(ge,le,he){var re=ge/255,ne=le/255,y=he/255;return .2126*(re<=.03928?re/12.92:Math.pow((re+.055)/1.055,2.4))+.7152*(ne<=.03928?ne/12.92:Math.pow((ne+.055)/1.055,2.4))+.0722*(y<=.03928?y/12.92:Math.pow((y+.055)/1.055,2.4))}me.relativeLuminance=function(ge){return de(ge>>16&255,ge>>8&255,255&ge)},me.relativeLuminance2=de}(_e=ee.rgb||(ee.rgb={})),function(me){function de(le,he,re){for(var ne=le>>24&255,y=le>>16&255,a=le>>8&255,E=he>>24&255,b=he>>16&255,x=he>>8&255,z=ae(_e.relativeLuminance2(E,x,b),_e.relativeLuminance2(ne,y,a));z<re&&(E>0||b>0||x>0);)E-=Math.max(0,Math.ceil(.1*E)),b-=Math.max(0,Math.ceil(.1*b)),x-=Math.max(0,Math.ceil(.1*x)),z=ae(_e.relativeLuminance2(E,x,b),_e.relativeLuminance2(ne,y,a));return(E<<24|b<<16|x<<8|255)>>>0}function ge(le,he,re){for(var ne=le>>24&255,y=le>>16&255,a=le>>8&255,E=he>>24&255,b=he>>16&255,x=he>>8&255,z=ae(_e.relativeLuminance2(E,x,b),_e.relativeLuminance2(ne,y,a));z<re&&(E<255||b<255||x<255);)E=Math.min(255,E+Math.ceil(.1*(255-E))),b=Math.min(255,b+Math.ceil(.1*(255-b))),x=Math.min(255,x+Math.ceil(.1*(255-x))),z=ae(_e.relativeLuminance2(E,x,b),_e.relativeLuminance2(ne,y,a));return(E<<24|b<<16|x<<8|255)>>>0}me.ensureContrastRatio=function(le,he,re){var ne=_e.relativeLuminance(le>>8),y=_e.relativeLuminance(he>>8);if(ae(ne,y)<re)return y<ne?de(le,he,re):ge(le,he,re)},me.reduceLuminance=de,me.increaseLuminance=ge,me.toChannels=function(le){return[le>>24&255,le>>16&255,le>>8&255,255&le]},me.toColor=function(le,he,re){return{css:fe.toCss(le,he,re),rgba:fe.toRgba(le,he,re)}}}(ce=ee.rgba||(ee.rgba={})),ee.toPaddedHex=pe,ee.contrastRatio=ae},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.isLinux=ee.isWindows=ee.isIphone=ee.isIpad=ee.isMac=ee.isSafari=ee.isFirefox=void 0;var fe=typeof navigator=="undefined",be=fe?"node":navigator.userAgent,_e=fe?"node":navigator.platform;function ce(pe,ae){return pe.indexOf(ae)>=0}ee.isFirefox=!!~be.indexOf("Firefox"),ee.isSafari=/^((?!chrome|android).)*safari/i.test(be),ee.isMac=ce(["Macintosh","MacIntel","MacPPC","Mac68K"],_e),ee.isIpad=_e==="iPad",ee.isIphone=_e==="iPhone",ee.isWindows=ce(["Windows","Win16","Win32","WinCE"],_e),ee.isLinux=_e.indexOf("Linux")>=0},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.C1=ee.C0=void 0,function(fe){fe.NUL="\0",fe.SOH="",fe.STX="",fe.ETX="",fe.EOT="",fe.ENQ="",fe.ACK="",fe.BEL="\x07",fe.BS="\b",fe.HT=" ",fe.LF=`
`,fe.VT="\v",fe.FF="\f",fe.CR="\r",fe.SO="",fe.SI="",fe.DLE="",fe.DC1="",fe.DC2="",fe.DC3="",fe.DC4="",fe.NAK="",fe.SYN="",fe.ETB="",fe.CAN="",fe.EM="",fe.SUB="",fe.ESC="\x1B",fe.FS="",fe.GS="",fe.RS="",fe.US="",fe.SP=" ",fe.DEL="\x7F"}(ee.C0||(ee.C0={})),function(fe){fe.PAD="\x80",fe.HOP="\x81",fe.BPH="\x82",fe.NBH="\x83",fe.IND="\x84",fe.NEL="\x85",fe.SSA="\x86",fe.ESA="\x87",fe.HTS="\x88",fe.HTJ="\x89",fe.VTS="\x8A",fe.PLD="\x8B",fe.PLU="\x8C",fe.RI="\x8D",fe.SS2="\x8E",fe.SS3="\x8F",fe.DCS="\x90",fe.PU1="\x91",fe.PU2="\x92",fe.STS="\x93",fe.CCH="\x94",fe.MW="\x95",fe.SPA="\x96",fe.EPA="\x97",fe.SOS="\x98",fe.SGCI="\x99",fe.SCI="\x9A",fe.CSI="\x9B",fe.ST="\x9C",fe.OSC="\x9D",fe.PM="\x9E",fe.APC="\x9F"}(ee.C1||(ee.C1={}))},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BaseRenderLayer=void 0;var fe=te(3),be=te(9),_e=te(25),ce=te(6),pe=te(28),ae=te(10),me=te(17),de=function(){function ge(le,he,re,ne,y,a,E,b){this._container=le,this._alpha=ne,this._colors=y,this._rendererId=a,this._bufferService=E,this._optionsService=b,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-"+he+"-layer"),this._canvas.style.zIndex=re.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return ge.prototype.dispose=function(){var le;me.removeElementFromParent(this._canvas),(le=this._charAtlas)===null||le===void 0||le.dispose()},ge.prototype._initCanvas=function(){this._ctx=pe.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},ge.prototype.onOptionsChanged=function(){},ge.prototype.onBlur=function(){},ge.prototype.onFocus=function(){},ge.prototype.onCursorMove=function(){},ge.prototype.onGridChanged=function(le,he){},ge.prototype.onSelectionChanged=function(le,he,re){re===void 0&&(re=!1)},ge.prototype.setColors=function(le){this._refreshCharAtlas(le)},ge.prototype._setTransparency=function(le){if(le!==this._alpha){var he=this._canvas;this._alpha=le,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,he),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},ge.prototype._refreshCharAtlas=function(le){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=_e.acquireCharAtlas(this._optionsService.options,this._rendererId,le,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},ge.prototype.resize=function(le){this._scaledCellWidth=le.scaledCellWidth,this._scaledCellHeight=le.scaledCellHeight,this._scaledCharWidth=le.scaledCharWidth,this._scaledCharHeight=le.scaledCharHeight,this._scaledCharLeft=le.scaledCharLeft,this._scaledCharTop=le.scaledCharTop,this._canvas.width=le.scaledCanvasWidth,this._canvas.height=le.scaledCanvasHeight,this._canvas.style.width=le.canvasWidth+"px",this._canvas.style.height=le.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},ge.prototype._fillCells=function(le,he,re,ne){this._ctx.fillRect(le*this._scaledCellWidth,he*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight)},ge.prototype._fillBottomLineAtCells=function(le,he,re){re===void 0&&(re=1),this._ctx.fillRect(le*this._scaledCellWidth,(he+1)*this._scaledCellHeight-window.devicePixelRatio-1,re*this._scaledCellWidth,window.devicePixelRatio)},ge.prototype._fillLeftLineAtCell=function(le,he,re){this._ctx.fillRect(le*this._scaledCellWidth,he*this._scaledCellHeight,window.devicePixelRatio*re,this._scaledCellHeight)},ge.prototype._strokeRectAtCell=function(le,he,re,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(le*this._scaledCellWidth+window.devicePixelRatio/2,he*this._scaledCellHeight+window.devicePixelRatio/2,re*this._scaledCellWidth-window.devicePixelRatio,ne*this._scaledCellHeight-window.devicePixelRatio)},ge.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))},ge.prototype._clearCells=function(le,he,re,ne){this._alpha?this._ctx.clearRect(le*this._scaledCellWidth,he*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(le*this._scaledCellWidth,he*this._scaledCellHeight,re*this._scaledCellWidth,ne*this._scaledCellHeight))},ge.prototype._fillCharTrueColor=function(le,he,re){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(re),this._ctx.fillText(le.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},ge.prototype._drawChars=function(le,he,re){var ne,y,a=this._getContrastColor(le);a||le.isFgRGB()||le.isBgRGB()?this._drawUncachedChars(le,he,re,a):(le.isInverse()?(ne=le.isBgDefault()?be.INVERTED_DEFAULT_COLOR:le.getBgColor(),y=le.isFgDefault()?be.INVERTED_DEFAULT_COLOR:le.getFgColor()):(y=le.isBgDefault()?fe.DEFAULT_COLOR:le.getBgColor(),ne=le.isFgDefault()?fe.DEFAULT_COLOR:le.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&le.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=le.getChars()||fe.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=le.getCode()||fe.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=y,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!le.isBold(),this._currentGlyphIdentifier.dim=!!le.isDim(),this._currentGlyphIdentifier.italic=!!le.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,he*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(le,he,re))},ge.prototype._drawUncachedChars=function(le,he,re,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!le.isBold(),!!le.isItalic()),this._ctx.textBaseline="middle",le.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(le.isBgDefault())this._ctx.fillStyle=ae.color.opaque(this._colors.background).css;else if(le.isBgRGB())this._ctx.fillStyle="rgb("+ce.AttributeData.toColorRGB(le.getBgColor()).join(",")+")";else{var y=le.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&le.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}else if(ne)this._ctx.fillStyle=ne.css;else if(le.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(le.isFgRGB())this._ctx.fillStyle="rgb("+ce.AttributeData.toColorRGB(le.getFgColor()).join(",")+")";else{var a=le.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&le.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}this._clipRow(re),le.isDim()&&(this._ctx.globalAlpha=be.DIM_OPACITY),this._ctx.fillText(le.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,re*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},ge.prototype._clipRow=function(le){this._ctx.beginPath(),this._ctx.rect(0,le*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},ge.prototype._getFont=function(le,he){return(he?"italic":"")+" "+(le?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},ge.prototype._getContrastColor=function(le){if(this._optionsService.options.minimumContrastRatio!==1){var he=this._colors.contrastCache.getColor(le.bg,le.fg);if(he!==void 0)return he||void 0;var re=le.getFgColor(),ne=le.getFgColorMode(),y=le.getBgColor(),a=le.getBgColorMode(),E=!!le.isInverse(),b=!!le.isInverse();if(E){var x=re;re=y,y=x;var z=ne;ne=a,a=z}var oe=this._resolveBackgroundRgba(a,y,E),ie=this._resolveForegroundRgba(ne,re,E,b),ue=ae.rgba.ensureContrastRatio(oe,ie,this._optionsService.options.minimumContrastRatio);if(ue){var ve={css:ae.channels.toCss(ue>>24&255,ue>>16&255,ue>>8&255),rgba:ue};return this._colors.contrastCache.setColor(le.bg,le.fg,ve),ve}this._colors.contrastCache.setColor(le.bg,le.fg,null)}},ge.prototype._resolveBackgroundRgba=function(le,he,re){switch(le){case 16777216:case 33554432:return this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return re?this._colors.foreground.rgba:this._colors.background.rgba}},ge.prototype._resolveForegroundRgba=function(le,he,re,ne){switch(le){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&ne&&he<8&&(he+=8),this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return re?this._colors.background.rgba:this._colors.foreground.rgba}},ge}();ee.BaseRenderLayer=de},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.createDecorator=ee.getServiceDependencies=ee.serviceRegistry=void 0;function fe(be,_e,ce){_e.di$target===_e?_e.di$dependencies.push({id:be,index:ce}):(_e.di$dependencies=[{id:be,index:ce}],_e.di$target=_e)}ee.serviceRegistry=new Map,ee.getServiceDependencies=function(be){return be.di$dependencies||[]},ee.createDecorator=function(be){if(ee.serviceRegistry.has(be))return ee.serviceRegistry.get(be);var _e=function(ce,pe,ae){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");fe(_e,ce,ae)};return _e.toString=function(){return be},ee.serviceRegistry.set(be,_e),_e}},function(Ze,ee,te){"use strict";function fe(be,_e,ce,pe){if(ce===void 0&&(ce=0),pe===void 0&&(pe=be.length),ce>=be.length)return be;ce=(be.length+ce)%be.length,pe=pe>=be.length?be.length:(be.length+pe)%be.length;for(var ae=ce;ae<pe;++ae)be[ae]=_e;return be}Object.defineProperty(ee,"__esModule",{value:!0}),ee.concat=ee.fillFallback=ee.fill=void 0,ee.fill=function(be,_e,ce,pe){return be.fill?be.fill(_e,ce,pe):fe(be,_e,ce,pe)},ee.fillFallback=fe,ee.concat=function(be,_e){var ce=new be.constructor(be.length+_e.length);return ce.set(be),ce.set(_e,be.length),ce}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferLine=ee.DEFAULT_ATTR_DATA=void 0;var fe=te(8),be=te(3),_e=te(4),ce=te(6);ee.DEFAULT_ATTR_DATA=Object.freeze(new ce.AttributeData);var pe=function(){function ae(me,de,ge){ge===void 0&&(ge=!1),this.isWrapped=ge,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*me);for(var le=de||_e.CellData.fromCharData([0,be.NULL_CELL_CHAR,be.NULL_CELL_WIDTH,be.NULL_CELL_CODE]),he=0;he<me;++he)this.setCell(he,le);this.length=me}return ae.prototype.get=function(me){var de=this._data[3*me+0],ge=2097151&de;return[this._data[3*me+1],2097152&de?this._combined[me]:ge?fe.stringFromCodePoint(ge):"",de>>22,2097152&de?this._combined[me].charCodeAt(this._combined[me].length-1):ge]},ae.prototype.set=function(me,de){this._data[3*me+1]=de[be.CHAR_DATA_ATTR_INDEX],de[be.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[me]=de[1],this._data[3*me+0]=2097152|me|de[be.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*me+0]=de[be.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|de[be.CHAR_DATA_WIDTH_INDEX]<<22},ae.prototype.getWidth=function(me){return this._data[3*me+0]>>22},ae.prototype.hasWidth=function(me){return 12582912&this._data[3*me+0]},ae.prototype.getFg=function(me){return this._data[3*me+1]},ae.prototype.getBg=function(me){return this._data[3*me+2]},ae.prototype.hasContent=function(me){return 4194303&this._data[3*me+0]},ae.prototype.getCodePoint=function(me){var de=this._data[3*me+0];return 2097152&de?this._combined[me].charCodeAt(this._combined[me].length-1):2097151&de},ae.prototype.isCombined=function(me){return 2097152&this._data[3*me+0]},ae.prototype.getString=function(me){var de=this._data[3*me+0];return 2097152&de?this._combined[me]:2097151&de?fe.stringFromCodePoint(2097151&de):""},ae.prototype.loadCell=function(me,de){var ge=3*me;return de.content=this._data[ge+0],de.fg=this._data[ge+1],de.bg=this._data[ge+2],2097152&de.content&&(de.combinedData=this._combined[me]),268435456&de.bg&&(de.extended=this._extendedAttrs[me]),de},ae.prototype.setCell=function(me,de){2097152&de.content&&(this._combined[me]=de.combinedData),268435456&de.bg&&(this._extendedAttrs[me]=de.extended),this._data[3*me+0]=de.content,this._data[3*me+1]=de.fg,this._data[3*me+2]=de.bg},ae.prototype.setCellFromCodePoint=function(me,de,ge,le,he,re){268435456&he&&(this._extendedAttrs[me]=re),this._data[3*me+0]=de|ge<<22,this._data[3*me+1]=le,this._data[3*me+2]=he},ae.prototype.addCodepointToCell=function(me,de){var ge=this._data[3*me+0];2097152&ge?this._combined[me]+=fe.stringFromCodePoint(de):(2097151&ge?(this._combined[me]=fe.stringFromCodePoint(2097151&ge)+fe.stringFromCodePoint(de),ge&=-2097152,ge|=2097152):ge=de|1<<22,this._data[3*me+0]=ge)},ae.prototype.insertCells=function(me,de,ge,le){if((me%=this.length)&&this.getWidth(me-1)===2&&this.setCellFromCodePoint(me-1,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ce.ExtendedAttrs),de<this.length-me){for(var he=new _e.CellData,re=this.length-me-de-1;re>=0;--re)this.setCell(me+de+re,this.loadCell(me+re,he));for(re=0;re<de;++re)this.setCell(me+re,ge)}else for(re=me;re<this.length;++re)this.setCell(re,ge);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ce.ExtendedAttrs)},ae.prototype.deleteCells=function(me,de,ge,le){if(me%=this.length,de<this.length-me){for(var he=new _e.CellData,re=0;re<this.length-me-de;++re)this.setCell(me+re,this.loadCell(me+de+re,he));for(re=this.length-de;re<this.length;++re)this.setCell(re,ge)}else for(re=me;re<this.length;++re)this.setCell(re,ge);me&&this.getWidth(me-1)===2&&this.setCellFromCodePoint(me-1,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ce.ExtendedAttrs),this.getWidth(me)!==0||this.hasContent(me)||this.setCellFromCodePoint(me,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ce.ExtendedAttrs)},ae.prototype.replaceCells=function(me,de,ge,le){for(me&&this.getWidth(me-1)===2&&this.setCellFromCodePoint(me-1,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ce.ExtendedAttrs),de<this.length&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de,0,1,(le==null?void 0:le.fg)||0,(le==null?void 0:le.bg)||0,(le==null?void 0:le.extended)||new ce.ExtendedAttrs);me<de&&me<this.length;)this.setCell(me++,ge)},ae.prototype.resize=function(me,de){if(me!==this.length){if(me>this.length){var ge=new Uint32Array(3*me);this.length&&(3*me<this._data.length?ge.set(this._data.subarray(0,3*me)):ge.set(this._data)),this._data=ge;for(var le=this.length;le<me;++le)this.setCell(le,de)}else if(me){(ge=new Uint32Array(3*me)).set(this._data.subarray(0,3*me)),this._data=ge;var he=Object.keys(this._combined);for(le=0;le<he.length;le++){var re=parseInt(he[le],10);re>=me&&delete this._combined[re]}}else this._data=new Uint32Array(0),this._combined={};this.length=me}},ae.prototype.fill=function(me){this._combined={},this._extendedAttrs={};for(var de=0;de<this.length;++de)this.setCell(de,me)},ae.prototype.copyFrom=function(me){for(var de in this.length!==me.length?this._data=new Uint32Array(me._data):this._data.set(me._data),this.length=me.length,this._combined={},me._combined)this._combined[de]=me._combined[de];for(var de in this._extendedAttrs={},me._extendedAttrs)this._extendedAttrs[de]=me._extendedAttrs[de];this.isWrapped=me.isWrapped},ae.prototype.clone=function(){var me=new ae(0);for(var de in me._data=new Uint32Array(this._data),me.length=this.length,this._combined)me._combined[de]=this._combined[de];for(var de in this._extendedAttrs)me._extendedAttrs[de]=this._extendedAttrs[de];return me.isWrapped=this.isWrapped,me},ae.prototype.getTrimmedLength=function(){for(var me=this.length-1;me>=0;--me)if(4194303&this._data[3*me+0])return me+(this._data[3*me+0]>>22);return 0},ae.prototype.copyCellsFrom=function(me,de,ge,le,he){var re=me._data;if(he)for(var ne=le-1;ne>=0;ne--)for(var y=0;y<3;y++)this._data[3*(ge+ne)+y]=re[3*(de+ne)+y];else for(ne=0;ne<le;ne++)for(y=0;y<3;y++)this._data[3*(ge+ne)+y]=re[3*(de+ne)+y];var a=Object.keys(me._combined);for(y=0;y<a.length;y++){var E=parseInt(a[y],10);E>=de&&(this._combined[E-de+ge]=me._combined[E])}},ae.prototype.translateToString=function(me,de,ge){me===void 0&&(me=!1),de===void 0&&(de=0),ge===void 0&&(ge=this.length),me&&(ge=Math.min(ge,this.getTrimmedLength()));for(var le="";de<ge;){var he=this._data[3*de+0],re=2097151&he;le+=2097152&he?this._combined[de]:re?fe.stringFromCodePoint(re):be.WHITESPACE_CELL_CHAR,de+=he>>22||1}return le},ae}();ee.BufferLine=pe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeElementFromParent=void 0,ee.removeElementFromParent=function(){for(var fe,be=[],_e=0;_e<arguments.length;_e++)be[_e]=arguments[_e];for(var ce=0,pe=be;ce<pe.length;ce++){var ae=pe[ce];(fe=ae==null?void 0:ae.parentElement)===null||fe===void 0||fe.removeChild(ae)}}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.tooMuchOutput=ee.promptLabel=void 0,ee.promptLabel="Terminal input",ee.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ie,ue){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ve,Se){ve.__proto__=Se}||function(ve,Se){for(var Le in Se)Se.hasOwnProperty(Le)&&(ve[Le]=Se[Le])})(ie,ue)},function(ie,ue){function ve(){this.constructor=ie}fe(ie,ue),ie.prototype=ue===null?Object.create(ue):(ve.prototype=ue.prototype,new ve)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.InputHandler=ee.WindowsOptionsReportType=void 0;var _e,ce=te(12),pe=te(20),ae=te(39),me=te(2),de=te(15),ge=te(8),le=te(16),he=te(0),re=te(3),ne=te(4),y=te(6),a=te(22),E=te(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function x(ie,ue){if(ie>24)return ue.setWinLines||!1;switch(ie){case 1:return!!ue.restoreWin;case 2:return!!ue.minimizeWin;case 3:return!!ue.setWinPosition;case 4:return!!ue.setWinSizePixels;case 5:return!!ue.raiseWin;case 6:return!!ue.lowerWin;case 7:return!!ue.refreshWin;case 8:return!!ue.setWinSizeChars;case 9:return!!ue.maximizeWin;case 10:return!!ue.fullscreenWin;case 11:return!!ue.getWinState;case 13:return!!ue.getWinPosition;case 14:return!!ue.getWinSizePixels;case 15:return!!ue.getScreenSizePixels;case 16:return!!ue.getCellSizePixels;case 18:return!!ue.getWinSizeChars;case 19:return!!ue.getScreenSizeChars;case 20:return!!ue.getIconTitle;case 21:return!!ue.getWinTitle;case 22:return!!ue.pushTitle;case 23:return!!ue.popTitle;case 24:return!!ue.setWinLines}return!1}(function(ie){ie[ie.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",ie[ie.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(_e=ee.WindowsOptionsReportType||(ee.WindowsOptionsReportType={}));var z=function(){function ie(ue,ve,Se,Le){this._bufferService=ue,this._coreService=ve,this._logService=Se,this._optionsService=Le,this._data=new Uint32Array(0)}return ie.prototype.hook=function(ue){this._data=new Uint32Array(0)},ie.prototype.put=function(ue,ve,Se){this._data=de.concat(this._data,ue.subarray(ve,Se))},ie.prototype.unhook=function(ue){if(ue){var ve=ge.utf32ToString(this._data);switch(this._data=new Uint32Array(0),ve){case'"q':return this._coreService.triggerDataEvent(ce.C0.ESC+'P1$r0"q'+ce.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(ce.C0.ESC+'P1$r61;1"p'+ce.C0.ESC+"\\");case"r":var Se=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(ce.C0.ESC+"P1$r"+Se+ce.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(ce.C0.ESC+"P1$r0m"+ce.C0.ESC+"\\");case" q":var Le={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return Le-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(ce.C0.ESC+"P1$r"+Le+" q"+ce.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",ve),this._coreService.triggerDataEvent(ce.C0.ESC+"P0$r"+ce.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},ie}(),oe=function(ie){function ue(ve,Se,Le,we,Ne,xe,st,Ye,lt){lt===void 0&&(lt=new ae.EscapeSequenceParser);var Me=ie.call(this)||this;Me._bufferService=ve,Me._charsetService=Se,Me._coreService=Le,Me._dirtyRowService=we,Me._logService=Ne,Me._optionsService=xe,Me._coreMouseService=st,Me._unicodeService=Ye,Me._parser=lt,Me._parseBuffer=new Uint32Array(4096),Me._stringDecoder=new ge.StringToUtf32,Me._utf8Decoder=new ge.Utf8ToUtf32,Me._workCell=new ne.CellData,Me._windowTitle="",Me._iconName="",Me._windowTitleStack=[],Me._iconNameStack=[],Me._curAttrData=le.DEFAULT_ATTR_DATA.clone(),Me._eraseAttrDataInternal=le.DEFAULT_ATTR_DATA.clone(),Me._onRequestBell=new he.EventEmitter,Me._onRequestRefreshRows=new he.EventEmitter,Me._onRequestReset=new he.EventEmitter,Me._onRequestScroll=new he.EventEmitter,Me._onRequestSyncScrollBar=new he.EventEmitter,Me._onRequestWindowsOptionsReport=new he.EventEmitter,Me._onA11yChar=new he.EventEmitter,Me._onA11yTab=new he.EventEmitter,Me._onCursorMove=new he.EventEmitter,Me._onLineFeed=new he.EventEmitter,Me._onScroll=new he.EventEmitter,Me._onTitleChange=new he.EventEmitter,Me.register(Me._parser),Me._parser.setCsiHandlerFallback(function(Ge,Et){Me._logService.debug("Unknown CSI code: ",{identifier:Me._parser.identToString(Ge),params:Et.toArray()})}),Me._parser.setEscHandlerFallback(function(Ge){Me._logService.debug("Unknown ESC code: ",{identifier:Me._parser.identToString(Ge)})}),Me._parser.setExecuteHandlerFallback(function(Ge){Me._logService.debug("Unknown EXECUTE code: ",{code:Ge})}),Me._parser.setOscHandlerFallback(function(Ge,Et,It){Me._logService.debug("Unknown OSC code: ",{identifier:Ge,action:Et,data:It})}),Me._parser.setDcsHandlerFallback(function(Ge,Et,It){Et==="HOOK"&&(It=It.toArray()),Me._logService.debug("Unknown DCS code: ",{identifier:Me._parser.identToString(Ge),action:Et,payload:It})}),Me._parser.setPrintHandler(function(Ge,Et,It){return Me.print(Ge,Et,It)}),Me._parser.setCsiHandler({final:"@"},function(Ge){return Me.insertChars(Ge)}),Me._parser.setCsiHandler({intermediates:" ",final:"@"},function(Ge){return Me.scrollLeft(Ge)}),Me._parser.setCsiHandler({final:"A"},function(Ge){return Me.cursorUp(Ge)}),Me._parser.setCsiHandler({intermediates:" ",final:"A"},function(Ge){return Me.scrollRight(Ge)}),Me._parser.setCsiHandler({final:"B"},function(Ge){return Me.cursorDown(Ge)}),Me._parser.setCsiHandler({final:"C"},function(Ge){return Me.cursorForward(Ge)}),Me._parser.setCsiHandler({final:"D"},function(Ge){return Me.cursorBackward(Ge)}),Me._parser.setCsiHandler({final:"E"},function(Ge){return Me.cursorNextLine(Ge)}),Me._parser.setCsiHandler({final:"F"},function(Ge){return Me.cursorPrecedingLine(Ge)}),Me._parser.setCsiHandler({final:"G"},function(Ge){return Me.cursorCharAbsolute(Ge)}),Me._parser.setCsiHandler({final:"H"},function(Ge){return Me.cursorPosition(Ge)}),Me._parser.setCsiHandler({final:"I"},function(Ge){return Me.cursorForwardTab(Ge)}),Me._parser.setCsiHandler({final:"J"},function(Ge){return Me.eraseInDisplay(Ge)}),Me._parser.setCsiHandler({prefix:"?",final:"J"},function(Ge){return Me.eraseInDisplay(Ge)}),Me._parser.setCsiHandler({final:"K"},function(Ge){return Me.eraseInLine(Ge)}),Me._parser.setCsiHandler({prefix:"?",final:"K"},function(Ge){return Me.eraseInLine(Ge)}),Me._parser.setCsiHandler({final:"L"},function(Ge){return Me.insertLines(Ge)}),Me._parser.setCsiHandler({final:"M"},function(Ge){return Me.deleteLines(Ge)}),Me._parser.setCsiHandler({final:"P"},function(Ge){return Me.deleteChars(Ge)}),Me._parser.setCsiHandler({final:"S"},function(Ge){return Me.scrollUp(Ge)}),Me._parser.setCsiHandler({final:"T"},function(Ge){return Me.scrollDown(Ge)}),Me._parser.setCsiHandler({final:"X"},function(Ge){return Me.eraseChars(Ge)}),Me._parser.setCsiHandler({final:"Z"},function(Ge){return Me.cursorBackwardTab(Ge)}),Me._parser.setCsiHandler({final:"`"},function(Ge){return Me.charPosAbsolute(Ge)}),Me._parser.setCsiHandler({final:"a"},function(Ge){return Me.hPositionRelative(Ge)}),Me._parser.setCsiHandler({final:"b"},function(Ge){return Me.repeatPrecedingCharacter(Ge)}),Me._parser.setCsiHandler({final:"c"},function(Ge){return Me.sendDeviceAttributesPrimary(Ge)}),Me._parser.setCsiHandler({prefix:">",final:"c"},function(Ge){return Me.sendDeviceAttributesSecondary(Ge)}),Me._parser.setCsiHandler({final:"d"},function(Ge){return Me.linePosAbsolute(Ge)}),Me._parser.setCsiHandler({final:"e"},function(Ge){return Me.vPositionRelative(Ge)}),Me._parser.setCsiHandler({final:"f"},function(Ge){return Me.hVPosition(Ge)}),Me._parser.setCsiHandler({final:"g"},function(Ge){return Me.tabClear(Ge)}),Me._parser.setCsiHandler({final:"h"},function(Ge){return Me.setMode(Ge)}),Me._parser.setCsiHandler({prefix:"?",final:"h"},function(Ge){return Me.setModePrivate(Ge)}),Me._parser.setCsiHandler({final:"l"},function(Ge){return Me.resetMode(Ge)}),Me._parser.setCsiHandler({prefix:"?",final:"l"},function(Ge){return Me.resetModePrivate(Ge)}),Me._parser.setCsiHandler({final:"m"},function(Ge){return Me.charAttributes(Ge)}),Me._parser.setCsiHandler({final:"n"},function(Ge){return Me.deviceStatus(Ge)}),Me._parser.setCsiHandler({prefix:"?",final:"n"},function(Ge){return Me.deviceStatusPrivate(Ge)}),Me._parser.setCsiHandler({intermediates:"!",final:"p"},function(Ge){return Me.softReset(Ge)}),Me._parser.setCsiHandler({intermediates:" ",final:"q"},function(Ge){return Me.setCursorStyle(Ge)}),Me._parser.setCsiHandler({final:"r"},function(Ge){return Me.setScrollRegion(Ge)}),Me._parser.setCsiHandler({final:"s"},function(Ge){return Me.saveCursor(Ge)}),Me._parser.setCsiHandler({final:"t"},function(Ge){return Me.windowOptions(Ge)}),Me._parser.setCsiHandler({final:"u"},function(Ge){return Me.restoreCursor(Ge)}),Me._parser.setCsiHandler({intermediates:"'",final:"}"},function(Ge){return Me.insertColumns(Ge)}),Me._parser.setCsiHandler({intermediates:"'",final:"~"},function(Ge){return Me.deleteColumns(Ge)}),Me._parser.setExecuteHandler(ce.C0.BEL,function(){return Me.bell()}),Me._parser.setExecuteHandler(ce.C0.LF,function(){return Me.lineFeed()}),Me._parser.setExecuteHandler(ce.C0.VT,function(){return Me.lineFeed()}),Me._parser.setExecuteHandler(ce.C0.FF,function(){return Me.lineFeed()}),Me._parser.setExecuteHandler(ce.C0.CR,function(){return Me.carriageReturn()}),Me._parser.setExecuteHandler(ce.C0.BS,function(){return Me.backspace()}),Me._parser.setExecuteHandler(ce.C0.HT,function(){return Me.tab()}),Me._parser.setExecuteHandler(ce.C0.SO,function(){return Me.shiftOut()}),Me._parser.setExecuteHandler(ce.C0.SI,function(){return Me.shiftIn()}),Me._parser.setExecuteHandler(ce.C1.IND,function(){return Me.index()}),Me._parser.setExecuteHandler(ce.C1.NEL,function(){return Me.nextLine()}),Me._parser.setExecuteHandler(ce.C1.HTS,function(){return Me.tabSet()}),Me._parser.setOscHandler(0,new a.OscHandler(function(Ge){Me.setTitle(Ge),Me.setIconName(Ge)})),Me._parser.setOscHandler(1,new a.OscHandler(function(Ge){return Me.setIconName(Ge)})),Me._parser.setOscHandler(2,new a.OscHandler(function(Ge){return Me.setTitle(Ge)})),Me._parser.setEscHandler({final:"7"},function(){return Me.saveCursor()}),Me._parser.setEscHandler({final:"8"},function(){return Me.restoreCursor()}),Me._parser.setEscHandler({final:"D"},function(){return Me.index()}),Me._parser.setEscHandler({final:"E"},function(){return Me.nextLine()}),Me._parser.setEscHandler({final:"H"},function(){return Me.tabSet()}),Me._parser.setEscHandler({final:"M"},function(){return Me.reverseIndex()}),Me._parser.setEscHandler({final:"="},function(){return Me.keypadApplicationMode()}),Me._parser.setEscHandler({final:">"},function(){return Me.keypadNumericMode()}),Me._parser.setEscHandler({final:"c"},function(){return Me.fullReset()}),Me._parser.setEscHandler({final:"n"},function(){return Me.setgLevel(2)}),Me._parser.setEscHandler({final:"o"},function(){return Me.setgLevel(3)}),Me._parser.setEscHandler({final:"|"},function(){return Me.setgLevel(3)}),Me._parser.setEscHandler({final:"}"},function(){return Me.setgLevel(2)}),Me._parser.setEscHandler({final:"~"},function(){return Me.setgLevel(1)}),Me._parser.setEscHandler({intermediates:"%",final:"@"},function(){return Me.selectDefaultCharset()}),Me._parser.setEscHandler({intermediates:"%",final:"G"},function(){return Me.selectDefaultCharset()});var Be=function(Ge){Re._parser.setEscHandler({intermediates:"(",final:Ge},function(){return Me.selectCharset("("+Ge)}),Re._parser.setEscHandler({intermediates:")",final:Ge},function(){return Me.selectCharset(")"+Ge)}),Re._parser.setEscHandler({intermediates:"*",final:Ge},function(){return Me.selectCharset("*"+Ge)}),Re._parser.setEscHandler({intermediates:"+",final:Ge},function(){return Me.selectCharset("+"+Ge)}),Re._parser.setEscHandler({intermediates:"-",final:Ge},function(){return Me.selectCharset("-"+Ge)}),Re._parser.setEscHandler({intermediates:".",final:Ge},function(){return Me.selectCharset("."+Ge)}),Re._parser.setEscHandler({intermediates:"/",final:Ge},function(){return Me.selectCharset("/"+Ge)})},Re=this;for(var ke in pe.CHARSETS)Be(ke);return Me._parser.setEscHandler({intermediates:"#",final:"8"},function(){return Me.screenAlignmentPattern()}),Me._parser.setErrorHandler(function(Ge){return Me._logService.error("Parsing error: ",Ge),Ge}),Me._parser.setDcsHandler({intermediates:"$",final:"q"},new z(Me._bufferService,Me._coreService,Me._logService,Me._optionsService)),Me}return be(ue,ie),Object.defineProperty(ue.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),ue.prototype.dispose=function(){ie.prototype.dispose.call(this)},ue.prototype.parse=function(ve){var Se=this._bufferService.buffer,Le=Se.x,we=Se.y;if(this._logService.debug("parsing data",ve),this._parseBuffer.length<ve.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(ve.length,131072))),this._dirtyRowService.clearRange(),ve.length>131072)for(var Ne=0;Ne<ve.length;Ne+=131072){var xe=Ne+131072<ve.length?Ne+131072:ve.length,st=typeof ve=="string"?this._stringDecoder.decode(ve.substring(Ne,xe),this._parseBuffer):this._utf8Decoder.decode(ve.subarray(Ne,xe),this._parseBuffer);this._parser.parse(this._parseBuffer,st)}else st=typeof ve=="string"?this._stringDecoder.decode(ve,this._parseBuffer):this._utf8Decoder.decode(ve,this._parseBuffer),this._parser.parse(this._parseBuffer,st);(Se=this._bufferService.buffer).x===Le&&Se.y===we||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},ue.prototype.print=function(ve,Se,Le){var we,Ne,xe=this._bufferService.buffer,st=this._charsetService.charset,Ye=this._optionsService.options.screenReaderMode,lt=this._bufferService.cols,Me=this._coreService.decPrivateModes.wraparound,Be=this._coreService.modes.insertMode,Re=this._curAttrData,ke=xe.lines.get(xe.ybase+xe.y);this._dirtyRowService.markDirty(xe.y),xe.x&&Le-Se>0&&ke.getWidth(xe.x-1)===2&&ke.setCellFromCodePoint(xe.x-1,0,1,Re.fg,Re.bg,Re.extended);for(var Ge=Se;Ge<Le;++Ge){if(we=ve[Ge],Ne=this._unicodeService.wcwidth(we),we<127&&st){var Et=st[String.fromCharCode(we)];Et&&(we=Et.charCodeAt(0))}if(Ye&&this._onA11yChar.fire(ge.stringFromCodePoint(we)),Ne||!xe.x){if(xe.x+Ne-1>=lt){if(Me){for(;xe.x<lt;)ke.setCellFromCodePoint(xe.x++,0,1,Re.fg,Re.bg,Re.extended);xe.x=0,xe.y++,xe.y===xe.scrollBottom+1?(xe.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(xe.y>=this._bufferService.rows&&(xe.y=this._bufferService.rows-1),xe.lines.get(xe.ybase+xe.y).isWrapped=!0),ke=xe.lines.get(xe.ybase+xe.y)}else if(xe.x=lt-1,Ne===2)continue}if(Be&&(ke.insertCells(xe.x,Ne,xe.getNullCell(Re),Re),ke.getWidth(lt-1)===2&&ke.setCellFromCodePoint(lt-1,re.NULL_CELL_CODE,re.NULL_CELL_WIDTH,Re.fg,Re.bg,Re.extended)),ke.setCellFromCodePoint(xe.x++,we,Ne,Re.fg,Re.bg,Re.extended),Ne>0)for(;--Ne;)ke.setCellFromCodePoint(xe.x++,0,0,Re.fg,Re.bg,Re.extended)}else ke.getWidth(xe.x-1)?ke.addCodepointToCell(xe.x-1,we):ke.addCodepointToCell(xe.x-2,we)}Le-Se>0&&(ke.loadCell(xe.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),xe.x<lt&&Le-Se>0&&ke.getWidth(xe.x)===0&&!ke.hasContent(xe.x)&&ke.setCellFromCodePoint(xe.x,0,1,Re.fg,Re.bg,Re.extended),this._dirtyRowService.markDirty(xe.y)},ue.prototype.addCsiHandler=function(ve,Se){var Le=this;return ve.final!=="t"||ve.prefix||ve.intermediates?this._parser.addCsiHandler(ve,Se):this._parser.addCsiHandler(ve,function(we){return!x(we.params[0],Le._optionsService.options.windowOptions)||Se(we)})},ue.prototype.addDcsHandler=function(ve,Se){return this._parser.addDcsHandler(ve,new E.DcsHandler(Se))},ue.prototype.addEscHandler=function(ve,Se){return this._parser.addEscHandler(ve,Se)},ue.prototype.addOscHandler=function(ve,Se){return this._parser.addOscHandler(ve,new a.OscHandler(Se))},ue.prototype.bell=function(){this._onRequestBell.fire()},ue.prototype.lineFeed=function(){var ve=this._bufferService.buffer;this._dirtyRowService.markDirty(ve.y),this._optionsService.options.convertEol&&(ve.x=0),ve.y++,ve.y===ve.scrollBottom+1?(ve.y--,this._onRequestScroll.fire(this._eraseAttrData())):ve.y>=this._bufferService.rows&&(ve.y=this._bufferService.rows-1),ve.x>=this._bufferService.cols&&ve.x--,this._dirtyRowService.markDirty(ve.y),this._onLineFeed.fire()},ue.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},ue.prototype.backspace=function(){var ve,Se=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(Se.x>0&&Se.x--);if(this._restrictCursor(this._bufferService.cols),Se.x>0)Se.x--;else if(Se.x===0&&Se.y>Se.scrollTop&&Se.y<=Se.scrollBottom&&(!((ve=Se.lines.get(Se.ybase+Se.y))===null||ve===void 0)&&ve.isWrapped)){Se.lines.get(Se.ybase+Se.y).isWrapped=!1,Se.y--,Se.x=this._bufferService.cols-1;var Le=Se.lines.get(Se.ybase+Se.y);Le.hasWidth(Se.x)&&!Le.hasContent(Se.x)&&Se.x--}this._restrictCursor()},ue.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var ve=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-ve)}},ue.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},ue.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},ue.prototype._restrictCursor=function(ve){ve===void 0&&(ve=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(ve,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)},ue.prototype._setCursor=function(ve,Se){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=ve,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+Se):(this._bufferService.buffer.x=ve,this._bufferService.buffer.y=Se),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ue.prototype._moveCursor=function(ve,Se){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+ve,this._bufferService.buffer.y+Se)},ue.prototype.cursorUp=function(ve){var Se=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;Se>=0?this._moveCursor(0,-Math.min(Se,ve.params[0]||1)):this._moveCursor(0,-(ve.params[0]||1))},ue.prototype.cursorDown=function(ve){var Se=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;Se>=0?this._moveCursor(0,Math.min(Se,ve.params[0]||1)):this._moveCursor(0,ve.params[0]||1)},ue.prototype.cursorForward=function(ve){this._moveCursor(ve.params[0]||1,0)},ue.prototype.cursorBackward=function(ve){this._moveCursor(-(ve.params[0]||1),0)},ue.prototype.cursorNextLine=function(ve){this.cursorDown(ve),this._bufferService.buffer.x=0},ue.prototype.cursorPrecedingLine=function(ve){this.cursorUp(ve),this._bufferService.buffer.x=0},ue.prototype.cursorCharAbsolute=function(ve){this._setCursor((ve.params[0]||1)-1,this._bufferService.buffer.y)},ue.prototype.cursorPosition=function(ve){this._setCursor(ve.length>=2?(ve.params[1]||1)-1:0,(ve.params[0]||1)-1)},ue.prototype.charPosAbsolute=function(ve){this._setCursor((ve.params[0]||1)-1,this._bufferService.buffer.y)},ue.prototype.hPositionRelative=function(ve){this._moveCursor(ve.params[0]||1,0)},ue.prototype.linePosAbsolute=function(ve){this._setCursor(this._bufferService.buffer.x,(ve.params[0]||1)-1)},ue.prototype.vPositionRelative=function(ve){this._moveCursor(0,ve.params[0]||1)},ue.prototype.hVPosition=function(ve){this.cursorPosition(ve)},ue.prototype.tabClear=function(ve){var Se=ve.params[0];Se===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:Se===3&&(this._bufferService.buffer.tabs={})},ue.prototype.cursorForwardTab=function(ve){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Se=ve.params[0]||1;Se--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},ue.prototype.cursorBackwardTab=function(ve){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Se=ve.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.x=Le.prevStop()},ue.prototype._eraseInBufferLine=function(ve,Se,Le,we){we===void 0&&(we=!1);var Ne=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ve);Ne.replaceCells(Se,Le,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),we&&(Ne.isWrapped=!1)},ue.prototype._resetBufferLine=function(ve){var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+ve);Se.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),Se.isWrapped=!1},ue.prototype.eraseInDisplay=function(ve){var Se;switch(this._restrictCursor(),ve.params[0]){case 0:for(Se=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Se),this._eraseInBufferLine(Se++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);Se<this._bufferService.rows;Se++)this._resetBufferLine(Se);this._dirtyRowService.markDirty(Se);break;case 1:for(Se=this._bufferService.buffer.y,this._dirtyRowService.markDirty(Se),this._eraseInBufferLine(Se,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(Se+1).isWrapped=!1);Se--;)this._resetBufferLine(Se);this._dirtyRowService.markDirty(0);break;case 2:for(Se=this._bufferService.rows,this._dirtyRowService.markDirty(Se-1);Se--;)this._resetBufferLine(Se);this._dirtyRowService.markDirty(0);break;case 3:var Le=this._bufferService.buffer.lines.length-this._bufferService.rows;Le>0&&(this._bufferService.buffer.lines.trimStart(Le),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-Le,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-Le,0),this._onScroll.fire(0))}},ue.prototype.eraseInLine=function(ve){switch(this._restrictCursor(),ve.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)},ue.prototype.insertLines=function(ve){this._restrictCursor();var Se=ve.params[0]||1,Le=this._bufferService.buffer;if(!(Le.y>Le.scrollBottom||Le.y<Le.scrollTop)){for(var we=Le.ybase+Le.y,Ne=this._bufferService.rows-1-Le.scrollBottom,xe=this._bufferService.rows-1+Le.ybase-Ne+1;Se--;)Le.lines.splice(xe-1,1),Le.lines.splice(we,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.y,Le.scrollBottom),Le.x=0}},ue.prototype.deleteLines=function(ve){this._restrictCursor();var Se=ve.params[0]||1,Le=this._bufferService.buffer;if(!(Le.y>Le.scrollBottom||Le.y<Le.scrollTop)){var we,Ne=Le.ybase+Le.y;for(we=this._bufferService.rows-1-Le.scrollBottom,we=this._bufferService.rows-1+Le.ybase-we;Se--;)Le.lines.splice(Ne,1),Le.lines.splice(we,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.y,Le.scrollBottom),Le.x=0}},ue.prototype.insertChars=function(ve){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.insertCells(this._bufferService.buffer.x,ve.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ue.prototype.deleteChars=function(ve){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.deleteCells(this._bufferService.buffer.x,ve.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ue.prototype.scrollUp=function(ve){for(var Se=ve.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.lines.splice(Le.ybase+Le.scrollTop,1),Le.lines.splice(Le.ybase+Le.scrollBottom,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.scrollTop,Le.scrollBottom)},ue.prototype.scrollDown=function(ve){for(var Se=ve.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.lines.splice(Le.ybase+Le.scrollBottom,1),Le.lines.splice(Le.ybase+Le.scrollTop,0,Le.getBlankLine(le.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(Le.scrollTop,Le.scrollBottom)},ue.prototype.scrollLeft=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,we=Se.scrollTop;we<=Se.scrollBottom;++we){var Ne=Se.lines.get(Se.ybase+we);Ne.deleteCells(0,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ne.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},ue.prototype.scrollRight=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,we=Se.scrollTop;we<=Se.scrollBottom;++we){var Ne=Se.lines.get(Se.ybase+we);Ne.insertCells(0,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ne.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},ue.prototype.insertColumns=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,we=Se.scrollTop;we<=Se.scrollBottom;++we){var Ne=this._bufferService.buffer.lines.get(Se.ybase+we);Ne.insertCells(Se.x,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ne.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},ue.prototype.deleteColumns=function(ve){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=ve.params[0]||1,we=Se.scrollTop;we<=Se.scrollBottom;++we){var Ne=Se.lines.get(Se.ybase+we);Ne.deleteCells(Se.x,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ne.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},ue.prototype.eraseChars=function(ve){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(ve.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ue.prototype.repeatPrecedingCharacter=function(ve){if(this._parser.precedingCodepoint){for(var Se=ve.params[0]||1,Le=new Uint32Array(Se),we=0;we<Se;++we)Le[we]=this._parser.precedingCodepoint;this.print(Le,0,Le.length)}},ue.prototype.sendDeviceAttributesPrimary=function(ve){ve.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(ce.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(ce.C0.ESC+"[?6c"))},ue.prototype.sendDeviceAttributesSecondary=function(ve){ve.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(ce.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(ce.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(ve.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(ce.C0.ESC+"[>83;40003;0c"))},ue.prototype._is=function(ve){return(this._optionsService.options.termName+"").indexOf(ve)===0},ue.prototype.setMode=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 4:this._coreService.modes.insertMode=!0}},ue.prototype.setModePrivate=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(1,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(2,pe.DEFAULT_CHARSET),this._charsetService.setgCharset(3,pe.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}},ue.prototype.resetMode=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){case 4:this._coreService.modes.insertMode=!1}},ue.prototype.resetModePrivate=function(ve){for(var Se=0;Se<ve.length;Se++)switch(ve.params[Se]){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(),ve.params[Se]===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}},ue.prototype._updateAttrColor=function(ve,Se,Le,we,Ne){return Se===2?(ve|=50331648,ve&=-16777216,ve|=y.AttributeData.fromColorRGB([Le,we,Ne])):Se===5&&(ve&=-50331904,ve|=33554432|255&Le),ve},ue.prototype._extractColor=function(ve,Se,Le){var we=[0,0,-1,0,0,0],Ne=0,xe=0;do{if(we[xe+Ne]=ve.params[Se+xe],ve.hasSubParams(Se+xe)){var st=ve.getSubParams(Se+xe),Ye=0;do we[1]===5&&(Ne=1),we[xe+Ye+1+Ne]=st[Ye];while(++Ye<st.length&&Ye+xe+1+Ne<we.length);break}if(we[1]===5&&xe+Ne>=2||we[1]===2&&xe+Ne>=5)break;we[1]&&(Ne=1)}while(++xe+Se<ve.length&&xe+Ne<we.length);for(Ye=2;Ye<we.length;++Ye)we[Ye]===-1&&(we[Ye]=0);switch(we[0]){case 38:Le.fg=this._updateAttrColor(Le.fg,we[1],we[3],we[4],we[5]);break;case 48:Le.bg=this._updateAttrColor(Le.bg,we[1],we[3],we[4],we[5]);break;case 58:Le.extended=Le.extended.clone(),Le.extended.underlineColor=this._updateAttrColor(Le.extended.underlineColor,we[1],we[3],we[4],we[5])}return xe},ue.prototype._processUnderline=function(ve,Se){Se.extended=Se.extended.clone(),(!~ve||ve>5)&&(ve=1),Se.extended.underlineStyle=ve,Se.fg|=268435456,ve===0&&(Se.fg&=-268435457),Se.updateExtended()},ue.prototype.charAttributes=function(ve){if(ve.length===1&&ve.params[0]===0)return this._curAttrData.fg=le.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=le.DEFAULT_ATTR_DATA.bg);for(var Se,Le=ve.length,we=this._curAttrData,Ne=0;Ne<Le;Ne++)(Se=ve.params[Ne])>=30&&Se<=37?(we.fg&=-50331904,we.fg|=16777216|Se-30):Se>=40&&Se<=47?(we.bg&=-50331904,we.bg|=16777216|Se-40):Se>=90&&Se<=97?(we.fg&=-50331904,we.fg|=16777224|Se-90):Se>=100&&Se<=107?(we.bg&=-50331904,we.bg|=16777224|Se-100):Se===0?(we.fg=le.DEFAULT_ATTR_DATA.fg,we.bg=le.DEFAULT_ATTR_DATA.bg):Se===1?we.fg|=134217728:Se===3?we.bg|=67108864:Se===4?(we.fg|=268435456,this._processUnderline(ve.hasSubParams(Ne)?ve.getSubParams(Ne)[0]:1,we)):Se===5?we.fg|=536870912:Se===7?we.fg|=67108864:Se===8?we.fg|=1073741824:Se===2?we.bg|=134217728:Se===21?this._processUnderline(2,we):Se===22?(we.fg&=-134217729,we.bg&=-134217729):Se===23?we.bg&=-67108865:Se===24?we.fg&=-268435457:Se===25?we.fg&=-536870913:Se===27?we.fg&=-67108865:Se===28?we.fg&=-1073741825:Se===39?(we.fg&=-67108864,we.fg|=16777215&le.DEFAULT_ATTR_DATA.fg):Se===49?(we.bg&=-67108864,we.bg|=16777215&le.DEFAULT_ATTR_DATA.bg):Se===38||Se===48||Se===58?Ne+=this._extractColor(ve,Ne,we):Se===59?(we.extended=we.extended.clone(),we.extended.underlineColor=-1,we.updateExtended()):Se===100?(we.fg&=-67108864,we.fg|=16777215&le.DEFAULT_ATTR_DATA.fg,we.bg&=-67108864,we.bg|=16777215&le.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",Se)},ue.prototype.deviceStatus=function(ve){switch(ve.params[0]){case 5:this._coreService.triggerDataEvent(ce.C0.ESC+"[0n");break;case 6:var Se=this._bufferService.buffer.y+1,Le=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(ce.C0.ESC+"["+Se+";"+Le+"R")}},ue.prototype.deviceStatusPrivate=function(ve){switch(ve.params[0]){case 6:var Se=this._bufferService.buffer.y+1,Le=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(ce.C0.ESC+"[?"+Se+";"+Le+"R")}},ue.prototype.softReset=function(ve){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=le.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},ue.prototype.setCursorStyle=function(ve){var Se=ve.params[0]||1;switch(Se){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 Le=Se%2==1;this._optionsService.options.cursorBlink=Le},ue.prototype.setScrollRegion=function(ve){var Se,Le=ve.params[0]||1;(ve.length<2||(Se=ve.params[1])>this._bufferService.rows||Se===0)&&(Se=this._bufferService.rows),Se>Le&&(this._bufferService.buffer.scrollTop=Le-1,this._bufferService.buffer.scrollBottom=Se-1,this._setCursor(0,0))},ue.prototype.windowOptions=function(ve){if(x(ve.params[0],this._optionsService.options.windowOptions)){var Se=ve.length>1?ve.params[1]:0;switch(ve.params[0]){case 14:Se!==2&&this._onRequestWindowsOptionsReport.fire(_e.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(_e.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(ce.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:Se!==0&&Se!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),Se!==0&&Se!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:Se!==0&&Se!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),Se!==0&&Se!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},ue.prototype.saveCursor=function(ve){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},ue.prototype.restoreCursor=function(ve){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()},ue.prototype.setTitle=function(ve){this._windowTitle=ve,this._onTitleChange.fire(ve)},ue.prototype.setIconName=function(ve){this._iconName=ve},ue.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},ue.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},ue.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},ue.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,pe.DEFAULT_CHARSET)},ue.prototype.selectCharset=function(ve){ve.length===2?ve[0]!=="/"&&this._charsetService.setgCharset(b[ve[0]],pe.CHARSETS[ve[1]]||pe.DEFAULT_CHARSET):this.selectDefaultCharset()},ue.prototype.index=function(){this._restrictCursor();var ve=this._bufferService.buffer;this._bufferService.buffer.y++,ve.y===ve.scrollBottom+1?(ve.y--,this._onRequestScroll.fire(this._eraseAttrData())):ve.y>=this._bufferService.rows&&(ve.y=this._bufferService.rows-1),this._restrictCursor()},ue.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},ue.prototype.reverseIndex=function(){this._restrictCursor();var ve=this._bufferService.buffer;if(ve.y===ve.scrollTop){var Se=ve.scrollBottom-ve.scrollTop;ve.lines.shiftElements(ve.ybase+ve.y,Se,1),ve.lines.set(ve.ybase+ve.y,ve.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(ve.scrollTop,ve.scrollBottom)}else ve.y--,this._restrictCursor()},ue.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},ue.prototype.reset=function(){this._curAttrData=le.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=le.DEFAULT_ATTR_DATA.clone()},ue.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ue.prototype.setgLevel=function(ve){this._charsetService.setgLevel(ve)},ue.prototype.screenAlignmentPattern=function(){var ve=new ne.CellData;ve.content=1<<22|69,ve.fg=this._curAttrData.fg,ve.bg=this._curAttrData.bg;var Se=this._bufferService.buffer;this._setCursor(0,0);for(var Le=0;Le<this._bufferService.rows;++Le){var we=Se.ybase+Se.y+Le,Ne=Se.lines.get(we);Ne&&(Ne.fill(ve),Ne.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},ue}(me.Disposable);ee.InputHandler=oe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DEFAULT_CHARSET=ee.CHARSETS=void 0,ee.CHARSETS={},ee.DEFAULT_CHARSET=ee.CHARSETS.B,ee.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"},ee.CHARSETS.A={"#":"\xA3"},ee.CHARSETS.B=void 0,ee.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},ee.CHARSETS.C=ee.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},ee.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},ee.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},ee.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},ee.CHARSETS.E=ee.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},ee.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},ee.CHARSETS.H=ee.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},ee.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Params=void 0;var fe=function(){function be(_e,ce){if(_e===void 0&&(_e=32),ce===void 0&&(ce=32),this.maxLength=_e,this.maxSubParamsLength=ce,ce>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(_e),this.length=0,this._subParams=new Int32Array(ce),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(_e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return be.fromArray=function(_e){var ce=new be;if(!_e.length)return ce;for(var pe=_e[0]instanceof Array?1:0;pe<_e.length;++pe){var ae=_e[pe];if(ae instanceof Array)for(var me=0;me<ae.length;++me)ce.addSubParam(ae[me]);else ce.addParam(ae)}return ce},be.prototype.clone=function(){var _e=new be(this.maxLength,this.maxSubParamsLength);return _e.params.set(this.params),_e.length=this.length,_e._subParams.set(this._subParams),_e._subParamsLength=this._subParamsLength,_e._subParamsIdx.set(this._subParamsIdx),_e._rejectDigits=this._rejectDigits,_e._rejectSubDigits=this._rejectSubDigits,_e._digitIsSub=this._digitIsSub,_e},be.prototype.toArray=function(){for(var _e=[],ce=0;ce<this.length;++ce){_e.push(this.params[ce]);var pe=this._subParamsIdx[ce]>>8,ae=255&this._subParamsIdx[ce];ae-pe>0&&_e.push(Array.prototype.slice.call(this._subParams,pe,ae))}return _e},be.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},be.prototype.addParam=function(_e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(_e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=_e>2147483647?2147483647:_e}},be.prototype.addSubParam=function(_e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(_e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=_e>2147483647?2147483647:_e,this._subParamsIdx[this.length-1]++}},be.prototype.hasSubParams=function(_e){return(255&this._subParamsIdx[_e])-(this._subParamsIdx[_e]>>8)>0},be.prototype.getSubParams=function(_e){var ce=this._subParamsIdx[_e]>>8,pe=255&this._subParamsIdx[_e];return pe-ce>0?this._subParams.subarray(ce,pe):null},be.prototype.getSubParamsAll=function(){for(var _e={},ce=0;ce<this.length;++ce){var pe=this._subParamsIdx[ce]>>8,ae=255&this._subParamsIdx[ce];ae-pe>0&&(_e[ce]=this._subParams.slice(pe,ae))}return _e},be.prototype.addDigit=function(_e){var ce;if(!(this._rejectDigits||!(ce=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var pe=this._digitIsSub?this._subParams:this.params,ae=pe[ce-1];pe[ce-1]=~ae?Math.min(10*ae+_e,2147483647):_e}},be}();ee.Params=fe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OscHandler=ee.OscParser=void 0;var fe=te(23),be=te(8),_e=function(){function pe(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return pe.prototype.addHandler=function(ae,me){this._handlers[ae]===void 0&&(this._handlers[ae]=[]);var de=this._handlers[ae];return de.push(me),{dispose:function(){var ge=de.indexOf(me);ge!==-1&&de.splice(ge,1)}}},pe.prototype.setHandler=function(ae,me){this._handlers[ae]=[me]},pe.prototype.clearHandler=function(ae){this._handlers[ae]&&delete this._handlers[ae]},pe.prototype.setHandlerFallback=function(ae){this._handlerFb=ae},pe.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},pe.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},pe.prototype._start=function(){var ae=this._handlers[this._id];if(ae)for(var me=ae.length-1;me>=0;me--)ae[me].start();else this._handlerFb(this._id,"START")},pe.prototype._put=function(ae,me,de){var ge=this._handlers[this._id];if(ge)for(var le=ge.length-1;le>=0;le--)ge[le].put(ae,me,de);else this._handlerFb(this._id,"PUT",be.utf32ToString(ae,me,de))},pe.prototype._end=function(ae){var me=this._handlers[this._id];if(me){for(var de=me.length-1;de>=0&&me[de].end(ae)===!1;de--);for(de--;de>=0;de--)me[de].end(!1)}else this._handlerFb(this._id,"END",ae)},pe.prototype.start=function(){this.reset(),this._id=-1,this._state=1},pe.prototype.put=function(ae,me,de){if(this._state!==3){if(this._state===1)for(;me<de;){var ge=ae[me++];if(ge===59){this._state=2,this._start();break}if(ge<48||57<ge)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+ge-48}this._state===2&&de-me>0&&this._put(ae,me,de)}},pe.prototype.end=function(ae){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ae)),this._id=-1,this._state=0)},pe}();ee.OscParser=_e;var ce=function(){function pe(ae){this._handler=ae,this._data="",this._hitLimit=!1}return pe.prototype.start=function(){this._data="",this._hitLimit=!1},pe.prototype.put=function(ae,me,de){this._hitLimit||(this._data+=be.utf32ToString(ae,me,de),this._data.length>fe.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},pe.prototype.end=function(ae){var me;return this._hitLimit?me=!1:ae&&(me=this._handler(this._data)),this._data="",this._hitLimit=!1,me},pe}();ee.OscHandler=ce},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.PAYLOAD_LIMIT=void 0,ee.PAYLOAD_LIMIT=1e7},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DcsHandler=ee.DcsParser=void 0;var fe=te(8),be=te(21),_e=te(23),ce=[],pe=function(){function me(){this._handlers=Object.create(null),this._active=ce,this._ident=0,this._handlerFb=function(){}}return me.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},me.prototype.addHandler=function(de,ge){this._handlers[de]===void 0&&(this._handlers[de]=[]);var le=this._handlers[de];return le.push(ge),{dispose:function(){var he=le.indexOf(ge);he!==-1&&le.splice(he,1)}}},me.prototype.setHandler=function(de,ge){this._handlers[de]=[ge]},me.prototype.clearHandler=function(de){this._handlers[de]&&delete this._handlers[de]},me.prototype.setHandlerFallback=function(de){this._handlerFb=de},me.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=ce,this._ident=0},me.prototype.hook=function(de,ge){if(this.reset(),this._ident=de,this._active=this._handlers[de]||ce,this._active.length)for(var le=this._active.length-1;le>=0;le--)this._active[le].hook(ge);else this._handlerFb(this._ident,"HOOK",ge)},me.prototype.put=function(de,ge,le){if(this._active.length)for(var he=this._active.length-1;he>=0;he--)this._active[he].put(de,ge,le);else this._handlerFb(this._ident,"PUT",fe.utf32ToString(de,ge,le))},me.prototype.unhook=function(de){if(this._active.length){for(var ge=this._active.length-1;ge>=0&&this._active[ge].unhook(de)===!1;ge--);for(ge--;ge>=0;ge--)this._active[ge].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",de);this._active=ce,this._ident=0},me}();ee.DcsParser=pe;var ae=function(){function me(de){this._handler=de,this._data="",this._hitLimit=!1}return me.prototype.hook=function(de){this._params=de.clone(),this._data="",this._hitLimit=!1},me.prototype.put=function(de,ge,le){this._hitLimit||(this._data+=fe.utf32ToString(de,ge,le),this._data.length>_e.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},me.prototype.unhook=function(de){var ge;return this._hitLimit?ge=!1:de&&(ge=this._handler(this._data,this._params||new be.Params)),this._params=void 0,this._data="",this._hitLimit=!1,ge},me}();ee.DcsHandler=ae},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.removeTerminalFromCache=ee.acquireCharAtlas=void 0;var fe=te(26),be=te(43),_e=[];ee.acquireCharAtlas=function(ce,pe,ae,me,de){for(var ge=fe.generateConfig(me,de,ce,ae),le=0;le<_e.length;le++){var he=(re=_e[le]).ownedBy.indexOf(pe);if(he>=0){if(fe.configEquals(re.config,ge))return re.atlas;re.ownedBy.length===1?(re.atlas.dispose(),_e.splice(le,1)):re.ownedBy.splice(he,1);break}}for(le=0;le<_e.length;le++){var re=_e[le];if(fe.configEquals(re.config,ge))return re.ownedBy.push(pe),re.atlas}var ne={atlas:new be.DynamicCharAtlas(document,ge),config:ge,ownedBy:[pe]};return _e.push(ne),ne.atlas},ee.removeTerminalFromCache=function(ce){for(var pe=0;pe<_e.length;pe++){var ae=_e[pe].ownedBy.indexOf(ce);if(ae!==-1){_e[pe].ownedBy.length===1?(_e[pe].atlas.dispose(),_e.splice(pe,1)):_e[pe].ownedBy.splice(ae,1);break}}}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.is256Color=ee.configEquals=ee.generateConfig=void 0;var fe=te(3);ee.generateConfig=function(be,_e,ce,pe){var ae={foreground:pe.foreground,background:pe.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:pe.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:be,scaledCharHeight:_e,fontFamily:ce.fontFamily,fontSize:ce.fontSize,fontWeight:ce.fontWeight,fontWeightBold:ce.fontWeightBold,allowTransparency:ce.allowTransparency,colors:ae}},ee.configEquals=function(be,_e){for(var ce=0;ce<be.colors.ansi.length;ce++)if(be.colors.ansi[ce].rgba!==_e.colors.ansi[ce].rgba)return!1;return be.devicePixelRatio===_e.devicePixelRatio&&be.fontFamily===_e.fontFamily&&be.fontSize===_e.fontSize&&be.fontWeight===_e.fontWeight&&be.fontWeightBold===_e.fontWeightBold&&be.allowTransparency===_e.allowTransparency&&be.scaledCharWidth===_e.scaledCharWidth&&be.scaledCharHeight===_e.scaledCharHeight&&be.colors.foreground===_e.colors.foreground&&be.colors.background===_e.colors.background},ee.is256Color=function(be){return be<fe.DEFAULT_COLOR}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ColorManager=ee.DEFAULT_ANSI_COLORS=void 0;var fe=te(10),be=te(45),_e=fe.css.toColor("#ffffff"),ce=fe.css.toColor("#000000"),pe=fe.css.toColor("#ffffff"),ae=fe.css.toColor("#000000"),me={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};ee.DEFAULT_ANSI_COLORS=function(){for(var ge=[fe.css.toColor("#2e3436"),fe.css.toColor("#cc0000"),fe.css.toColor("#4e9a06"),fe.css.toColor("#c4a000"),fe.css.toColor("#3465a4"),fe.css.toColor("#75507b"),fe.css.toColor("#06989a"),fe.css.toColor("#d3d7cf"),fe.css.toColor("#555753"),fe.css.toColor("#ef2929"),fe.css.toColor("#8ae234"),fe.css.toColor("#fce94f"),fe.css.toColor("#729fcf"),fe.css.toColor("#ad7fa8"),fe.css.toColor("#34e2e2"),fe.css.toColor("#eeeeec")],le=[0,95,135,175,215,255],he=0;he<216;he++){var re=le[he/36%6|0],ne=le[he/6%6|0],y=le[he%6];ge.push({css:fe.channels.toCss(re,ne,y),rgba:fe.channels.toRgba(re,ne,y)})}for(he=0;he<24;he++){var a=8+10*he;ge.push({css:fe.channels.toCss(a,a,a),rgba:fe.channels.toRgba(a,a,a)})}return ge}();var de=function(){function ge(le,he){this.allowTransparency=he;var re=le.createElement("canvas");re.width=1,re.height=1;var ne=re.getContext("2d");if(!ne)throw new Error("Could not get rendering context");this._ctx=ne,this._ctx.globalCompositeOperation="copy",this._litmusColor=this._ctx.createLinearGradient(0,0,1,1),this._contrastCache=new be.ColorContrastCache,this.colors={foreground:_e,background:ce,cursor:pe,cursorAccent:ae,selectionTransparent:me,selectionOpaque:fe.color.blend(ce,me),ansi:ee.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return ge.prototype.onOptionsChange=function(le){le==="minimumContrastRatio"&&this._contrastCache.clear()},ge.prototype.setTheme=function(le){le===void 0&&(le={}),this.colors.foreground=this._parseColor(le.foreground,_e),this.colors.background=this._parseColor(le.background,ce),this.colors.cursor=this._parseColor(le.cursor,pe,!0),this.colors.cursorAccent=this._parseColor(le.cursorAccent,ae,!0),this.colors.selectionTransparent=this._parseColor(le.selection,me,!0),this.colors.selectionOpaque=fe.color.blend(this.colors.background,this.colors.selectionTransparent),fe.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=fe.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(le.black,ee.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(le.red,ee.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(le.green,ee.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(le.yellow,ee.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(le.blue,ee.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(le.magenta,ee.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(le.cyan,ee.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(le.white,ee.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(le.brightBlack,ee.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(le.brightRed,ee.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(le.brightGreen,ee.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(le.brightYellow,ee.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(le.brightBlue,ee.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(le.brightMagenta,ee.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(le.brightCyan,ee.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(le.brightWhite,ee.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},ge.prototype._parseColor=function(le,he,re){if(re===void 0&&(re=this.allowTransparency),le===void 0)return he;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=le,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+le+" is invalid using fallback "+he.css),he;this._ctx.fillRect(0,0,1,1);var ne=this._ctx.getImageData(0,0,1,1).data;if(ne[3]!==255){if(!re)return console.warn("Color: "+le+" is using transparency, but allowTransparency is false. Using fallback "+he.css+"."),he;var y=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(oe){return Number(oe)}),a=y[0],E=y[1],b=y[2],x=y[3],z=Math.round(255*x);return{rgba:fe.channels.toRgba(a,E,b,z),css:le}}return{css:this._ctx.fillStyle,rgba:fe.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},ge}();ee.ColorManager=de},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.throwIfFalsy=void 0,ee.throwIfFalsy=function(fe){if(!fe)throw new Error("value must not be falsy");return fe}},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(de,ge){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,he){le.__proto__=he}||function(le,he){for(var re in he)he.hasOwnProperty(re)&&(le[re]=he[re])})(de,ge)},function(de,ge){function le(){this.constructor=de}fe(de,ge),de.prototype=ge===null?Object.create(ge):(le.prototype=ge.prototype,new le)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharacterJoinerRegistry=ee.JoinedCellData=void 0;var _e=te(6),ce=te(3),pe=te(4),ae=function(de){function ge(le,he,re){var ne=de.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=le.fg,ne.bg=le.bg,ne.combinedData=he,ne._width=re,ne}return be(ge,de),ge.prototype.isCombined=function(){return 2097152},ge.prototype.getWidth=function(){return this._width},ge.prototype.getChars=function(){return this.combinedData},ge.prototype.getCode=function(){return 2097151},ge.prototype.setFromCharData=function(le){throw new Error("not implemented")},ge.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},ge}(_e.AttributeData);ee.JoinedCellData=ae;var me=function(){function de(ge){this._bufferService=ge,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new pe.CellData}return de.prototype.registerCharacterJoiner=function(ge){var le={id:this._nextCharacterJoinerId++,handler:ge};return this._characterJoiners.push(le),le.id},de.prototype.deregisterCharacterJoiner=function(ge){for(var le=0;le<this._characterJoiners.length;le++)if(this._characterJoiners[le].id===ge)return this._characterJoiners.splice(le,1),!0;return!1},de.prototype.getJoinedCharacters=function(ge){if(this._characterJoiners.length===0)return[];var le=this._bufferService.buffer.lines.get(ge);if(!le||le.length===0)return[];for(var he=[],re=le.translateToString(!0),ne=0,y=0,a=0,E=le.getFg(0),b=le.getBg(0),x=0;x<le.getTrimmedLength();x++)if(le.loadCell(x,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==E||this._workCell.bg!==b){if(x-ne>1)for(var z=this._getJoinedRanges(re,a,y,le,ne),oe=0;oe<z.length;oe++)he.push(z[oe]);ne=x,a=y,E=this._workCell.fg,b=this._workCell.bg}y+=this._workCell.getChars().length||ce.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(z=this._getJoinedRanges(re,a,y,le,ne),oe=0;oe<z.length;oe++)he.push(z[oe]);return he},de.prototype._getJoinedRanges=function(ge,le,he,re,ne){for(var y=ge.substring(le,he),a=this._characterJoiners[0].handler(y),E=1;E<this._characterJoiners.length;E++)for(var b=this._characterJoiners[E].handler(y),x=0;x<b.length;x++)de._mergeRanges(a,b[x]);return this._stringRangesToCellRanges(a,re,ne),a},de.prototype._stringRangesToCellRanges=function(ge,le,he){var re=0,ne=!1,y=0,a=ge[re];if(a){for(var E=he;E<this._bufferService.cols;E++){var b=le.getWidth(E),x=le.getString(E).length||ce.WHITESPACE_CELL_CHAR.length;if(b!==0){if(!ne&&a[0]<=y&&(a[0]=E,ne=!0),a[1]<=y){if(a[1]=E,!(a=ge[++re]))break;a[0]<=y?(a[0]=E,ne=!0):ne=!1}y+=x}}a&&(a[1]=this._bufferService.cols)}},de._mergeRanges=function(ge,le){for(var he=!1,re=0;re<ge.length;re++){var ne=ge[re];if(he){if(le[1]<=ne[0])return ge[re-1][1]=le[1],ge;if(le[1]<=ne[1])return ge[re-1][1]=Math.max(le[1],ne[1]),ge.splice(re,1),ge;ge.splice(re,1),re--}else{if(le[1]<=ne[0])return ge.splice(re,0,le),ge;if(le[1]<=ne[1])return ne[0]=Math.min(le[0],ne[0]),ge;le[0]<ne[1]&&(ne[0]=Math.min(le[0],ne[0]),he=!0)}}return he?ge[ge.length-1][1]=le[1]:ge.push(le),ge},de}();ee.CharacterJoinerRegistry=me},function(Ze,ee,te){"use strict";function fe(be,_e){var ce=_e.getBoundingClientRect();return[be.clientX-ce.left,be.clientY-ce.top]}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getRawByteCoords=ee.getCoords=ee.getCoordsRelativeToElement=void 0,ee.getCoordsRelativeToElement=fe,ee.getCoords=function(be,_e,ce,pe,ae,me,de,ge){if(ae){var le=fe(be,_e);if(le)return le[0]=Math.ceil((le[0]+(ge?me/2:0))/me),le[1]=Math.ceil(le[1]/de),le[0]=Math.min(Math.max(le[0],1),ce+(ge?1:0)),le[1]=Math.min(Math.max(le[1],1),pe),le}},ee.getRawByteCoords=function(be){if(be)return{x:be[0]+32,y:be[1]+32}}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderDebouncer=void 0;var fe=function(){function be(_e){this._renderCallback=_e}return be.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},be.prototype.refresh=function(_e,ce,pe){var ae=this;this._rowCount=pe,_e=_e!==void 0?_e:0,ce=ce!==void 0?ce:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,_e):_e,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,ce):ce,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return ae._innerRefresh()}))},be.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var _e=Math.max(this._rowStart,0),ce=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(_e,ce)}},be}();ee.RenderDebouncer=fe},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ce,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,me){ae.__proto__=me}||function(ae,me){for(var de in me)me.hasOwnProperty(de)&&(ae[de]=me[de])})(ce,pe)},function(ce,pe){function ae(){this.constructor=ce}fe(ce,pe),ce.prototype=pe===null?Object.create(pe):(ae.prototype=pe.prototype,new ae)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.ScreenDprMonitor=void 0;var _e=function(ce){function pe(){var ae=ce!==null&&ce.apply(this,arguments)||this;return ae._currentDevicePixelRatio=window.devicePixelRatio,ae}return be(pe,ce),pe.prototype.setListener=function(ae){var me=this;this._listener&&this.clearListener(),this._listener=ae,this._outerListener=function(){me._listener&&(me._listener(window.devicePixelRatio,me._currentDevicePixelRatio),me._updateDpr())},this._updateDpr()},pe.prototype.dispose=function(){ce.prototype.dispose.call(this),this.clearListener()},pe.prototype._updateDpr=function(){var ae;this._outerListener&&((ae=this._resolutionMediaMatchList)===null||ae===void 0||ae.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},pe.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)},pe}(te(2).Disposable);ee.ScreenDprMonitor=_e},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.clone=void 0,ee.clone=function fe(be,_e){if(_e===void 0&&(_e=5),typeof be!="object")return be;var ce=Array.isArray(be)?[]:{};for(var pe in be)ce[pe]=_e<=1?be[pe]:be[pe]?fe(be[pe],_e-1):be[pe];return ce}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var fe=te(4),be=te(35),_e=te(18),ce=te(0),pe=te(83),ae=function(){function re(ne){this._core=new be.Terminal(ne),this._addonManager=new pe.AddonManager}return re.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(re.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new le(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"unicode",{get:function(){return this._checkProposedApi(),new he(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"buffer",{get:function(){return this._checkProposedApi(),new de(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),re.prototype.blur=function(){this._core.blur()},re.prototype.focus=function(){this._core.focus()},re.prototype.resize=function(ne,y){this._verifyIntegers(ne,y),this._core.resize(ne,y)},re.prototype.open=function(ne){this._core.open(ne)},re.prototype.attachCustomKeyEventHandler=function(ne){this._core.attachCustomKeyEventHandler(ne)},re.prototype.registerLinkMatcher=function(ne,y,a){return this._checkProposedApi(),this._core.registerLinkMatcher(ne,y,a)},re.prototype.deregisterLinkMatcher=function(ne){this._checkProposedApi(),this._core.deregisterLinkMatcher(ne)},re.prototype.registerLinkProvider=function(ne){return this._checkProposedApi(),this._core.registerLinkProvider(ne)},re.prototype.registerCharacterJoiner=function(ne){return this._checkProposedApi(),this._core.registerCharacterJoiner(ne)},re.prototype.deregisterCharacterJoiner=function(ne){this._checkProposedApi(),this._core.deregisterCharacterJoiner(ne)},re.prototype.registerMarker=function(ne){return this._checkProposedApi(),this._verifyIntegers(ne),this._core.addMarker(ne)},re.prototype.addMarker=function(ne){return this.registerMarker(ne)},re.prototype.hasSelection=function(){return this._core.hasSelection()},re.prototype.select=function(ne,y,a){this._verifyIntegers(ne,y,a),this._core.select(ne,y,a)},re.prototype.getSelection=function(){return this._core.getSelection()},re.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},re.prototype.clearSelection=function(){this._core.clearSelection()},re.prototype.selectAll=function(){this._core.selectAll()},re.prototype.selectLines=function(ne,y){this._verifyIntegers(ne,y),this._core.selectLines(ne,y)},re.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},re.prototype.scrollLines=function(ne){this._verifyIntegers(ne),this._core.scrollLines(ne)},re.prototype.scrollPages=function(ne){this._verifyIntegers(ne),this._core.scrollPages(ne)},re.prototype.scrollToTop=function(){this._core.scrollToTop()},re.prototype.scrollToBottom=function(){this._core.scrollToBottom()},re.prototype.scrollToLine=function(ne){this._verifyIntegers(ne),this._core.scrollToLine(ne)},re.prototype.clear=function(){this._core.clear()},re.prototype.write=function(ne,y){this._core.write(ne,y)},re.prototype.writeUtf8=function(ne,y){this._core.write(ne,y)},re.prototype.writeln=function(ne,y){this._core.write(ne),this._core.write(`\r
`,y)},re.prototype.paste=function(ne){this._core.paste(ne)},re.prototype.getOption=function(ne){return this._core.optionsService.getOption(ne)},re.prototype.setOption=function(ne,y){this._core.optionsService.setOption(ne,y)},re.prototype.refresh=function(ne,y){this._verifyIntegers(ne,y),this._core.refresh(ne,y)},re.prototype.reset=function(){this._core.reset()},re.prototype.loadAddon=function(ne){return this._addonManager.loadAddon(this,ne)},Object.defineProperty(re,"strings",{get:function(){return _e},enumerable:!1,configurable:!0}),re.prototype._verifyIntegers=function(){for(var ne=[],y=0;y<arguments.length;y++)ne[y]=arguments[y];for(var a=0,E=ne;a<E.length;a++){var b=E[a];if(b===1/0||isNaN(b)||b%1!=0)throw new Error("This API only accepts integers")}},re}();ee.Terminal=ae;var me=function(){function re(ne,y){this._buffer=ne,this.type=y}return re.prototype.init=function(ne){return this._buffer=ne,this},Object.defineProperty(re.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),re.prototype.getLine=function(ne){var y=this._buffer.lines.get(ne);if(y)return new ge(y)},re.prototype.getNullCell=function(){return new fe.CellData},re}(),de=function(){function re(ne){var y=this;this._buffers=ne,this._onBufferChange=new ce.EventEmitter,this._normal=new me(this._buffers.normal,"normal"),this._alternate=new me(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return y._onBufferChange.fire(y.active)})}return Object.defineProperty(re.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.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(re.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),re}(),ge=function(){function re(ne){this._line=ne}return Object.defineProperty(re.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),re.prototype.getCell=function(ne,y){if(!(ne<0||ne>=this._line.length))return y?(this._line.loadCell(ne,y),y):this._line.loadCell(ne,new fe.CellData)},re.prototype.translateToString=function(ne,y,a){return this._line.translateToString(ne,y,a)},re}(),le=function(){function re(ne){this._core=ne}return re.prototype.registerCsiHandler=function(ne,y){return this._core.addCsiHandler(ne,function(a){return y(a.toArray())})},re.prototype.addCsiHandler=function(ne,y){return this.registerCsiHandler(ne,y)},re.prototype.registerDcsHandler=function(ne,y){return this._core.addDcsHandler(ne,function(a,E){return y(a,E.toArray())})},re.prototype.addDcsHandler=function(ne,y){return this.registerDcsHandler(ne,y)},re.prototype.registerEscHandler=function(ne,y){return this._core.addEscHandler(ne,y)},re.prototype.addEscHandler=function(ne,y){return this.registerEscHandler(ne,y)},re.prototype.registerOscHandler=function(ne,y){return this._core.addOscHandler(ne,y)},re.prototype.addOscHandler=function(ne,y){return this.registerOscHandler(ne,y)},re}(),he=function(){function re(ne){this._core=ne}return re.prototype.register=function(ne){this._core.unicodeService.register(ne)},Object.defineProperty(re.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ne){this._core.unicodeService.activeVersion=ne},enumerable:!1,configurable:!0}),re}()},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(lt,Me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Be,Re){Be.__proto__=Re}||function(Be,Re){for(var ke in Re)Re.hasOwnProperty(ke)&&(Be[ke]=Re[ke])})(lt,Me)},function(lt,Me){function Be(){this.constructor=lt}fe(lt,Me),lt.prototype=Me===null?Object.create(Me):(Be.prototype=Me.prototype,new Be)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Terminal=void 0;var _e=te(36),ce=te(37),pe=te(38),ae=te(12),me=te(19),de=te(40),ge=te(50),le=te(51),he=te(11),re=te(7),ne=te(18),y=te(54),a=te(55),E=te(56),b=te(57),x=te(59),z=te(0),oe=te(16),ie=te(27),ue=te(60),ve=te(5),Se=te(61),Le=te(62),we=te(63),Ne=te(64),xe=te(65),st=typeof window!="undefined"?window.document:null,Ye=function(lt){function Me(Be){Be===void 0&&(Be={});var Re=lt.call(this,Be)||this;return Re.browser=he,Re._keyDownHandled=!1,Re._onCursorMove=new z.EventEmitter,Re._onKey=new z.EventEmitter,Re._onRender=new z.EventEmitter,Re._onSelectionChange=new z.EventEmitter,Re._onTitleChange=new z.EventEmitter,Re._onFocus=new z.EventEmitter,Re._onBlur=new z.EventEmitter,Re._onA11yCharEmitter=new z.EventEmitter,Re._onA11yTabEmitter=new z.EventEmitter,Re._setup(),Re.linkifier=Re._instantiationService.createInstance(ge.Linkifier),Re.linkifier2=Re.register(Re._instantiationService.createInstance(we.Linkifier2)),Re.register(Re._inputHandler.onRequestBell(function(){return Re.bell()})),Re.register(Re._inputHandler.onRequestRefreshRows(function(ke,Ge){return Re.refresh(ke,Ge)})),Re.register(Re._inputHandler.onRequestReset(function(){return Re.reset()})),Re.register(Re._inputHandler.onRequestScroll(function(ke,Ge){return Re.scroll(ke,Ge||void 0)})),Re.register(Re._inputHandler.onRequestWindowsOptionsReport(function(ke){return Re._reportWindowsOptions(ke)})),Re.register(z.forwardEvent(Re._inputHandler.onCursorMove,Re._onCursorMove)),Re.register(z.forwardEvent(Re._inputHandler.onTitleChange,Re._onTitleChange)),Re.register(z.forwardEvent(Re._inputHandler.onA11yChar,Re._onA11yCharEmitter)),Re.register(z.forwardEvent(Re._inputHandler.onA11yTab,Re._onA11yTabEmitter)),Re.register(Re._bufferService.onResize(function(ke){return Re._afterResize(ke.cols,ke.rows)})),Re}return be(Me,lt),Object.defineProperty(Me.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(Me.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),Me.prototype.dispose=function(){var Be,Re,ke;this._isDisposed||(lt.prototype.dispose.call(this),(Be=this._renderService)===null||Be===void 0||Be.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(ke=(Re=this.element)===null||Re===void 0?void 0:Re.parentNode)===null||ke===void 0||ke.removeChild(this.element))},Me.prototype._setup=function(){lt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(Me.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),Me.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},Me.prototype._updateOptions=function(Be){var Re,ke,Ge,Et;switch(lt.prototype._updateOptions.call(this,Be),Be){case"fontFamily":case"fontSize":(Re=this._renderService)===null||Re===void 0||Re.clear(),(ke=this._charSizeService)===null||ke===void 0||ke.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 E.AccessibilityManager(this,this._renderService)):((Et=this._accessibilityManager)===null||Et===void 0||Et.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},Me.prototype._onTextAreaFocus=function(Be){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ae.C0.ESC+"[I"),this.updateCursorStyle(Be),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},Me.prototype.blur=function(){var Be;return(Be=this.textarea)===null||Be===void 0?void 0:Be.blur()},Me.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ae.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},Me.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var Be=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),Re=this._bufferService.buffer.y*Be,ke=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=ke+"px",this.textarea.style.top=Re+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=Be+"px",this.textarea.style.lineHeight=Be+"px",this.textarea.style.zIndex="-5"}},Me.prototype._initGlobal=function(){var Be=this;this._bindKeys(),this.register(re.addDisposableDomListener(this.element,"copy",function(ke){Be.hasSelection()&&pe.copyHandler(ke,Be._selectionService)}));var Re=function(ke){return pe.handlePasteEvent(ke,Be.textarea,Be._coreService)};this.register(re.addDisposableDomListener(this.textarea,"paste",Re)),this.register(re.addDisposableDomListener(this.element,"paste",Re)),he.isFirefox?this.register(re.addDisposableDomListener(this.element,"mousedown",function(ke){ke.button===2&&pe.rightClickHandler(ke,Be.textarea,Be.screenElement,Be._selectionService,Be.options.rightClickSelectsWord)})):this.register(re.addDisposableDomListener(this.element,"contextmenu",function(ke){pe.rightClickHandler(ke,Be.textarea,Be.screenElement,Be._selectionService,Be.options.rightClickSelectsWord)})),he.isLinux&&this.register(re.addDisposableDomListener(this.element,"auxclick",function(ke){ke.button===1&&pe.moveTextAreaUnderMouseCursor(ke,Be.textarea,Be.screenElement)}))},Me.prototype._bindKeys=function(){var Be=this;this.register(re.addDisposableDomListener(this.textarea,"keyup",function(Re){return Be._keyUp(Re)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keydown",function(Re){return Be._keyDown(Re)},!0)),this.register(re.addDisposableDomListener(this.textarea,"keypress",function(Re){return Be._keyPress(Re)},!0)),this.register(re.addDisposableDomListener(this.textarea,"compositionstart",function(){return Be._compositionHelper.compositionstart()})),this.register(re.addDisposableDomListener(this.textarea,"compositionupdate",function(Re){return Be._compositionHelper.compositionupdate(Re)})),this.register(re.addDisposableDomListener(this.textarea,"compositionend",function(){return Be._compositionHelper.compositionend()})),this.register(this.onRender(function(){return Be._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(Re){return Be._queueLinkification(Re.start,Re.end)}))},Me.prototype.open=function(Be){var Re=this;if(!Be)throw new Error("Terminal requires a parent element.");st.body.contains(Be)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Be.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"),Be.appendChild(this.element);var ke=st.createDocumentFragment();this._viewportElement=st.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),ke.appendChild(this._viewportElement),this._viewportScrollArea=st.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=st.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=st.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),ke.appendChild(this.screenElement),this.textarea=st.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",ne.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(re.addDisposableDomListener(this.textarea,"focus",function(It){return Re._onTextAreaFocus(It)})),this.register(re.addDisposableDomListener(this.textarea,"blur",function(){return Re._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ge=this._instantiationService.createInstance(Ne.CoreBrowserService,this.textarea);this._instantiationService.setService(ve.ICoreBrowserService,Ge),this._charSizeService=this._instantiationService.createInstance(Se.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(ve.ICharSizeService,this._charSizeService),this._compositionView=st.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(_e.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(ke),this._theme=this.options.theme||this._theme,this._colorManager=new ie.ColorManager(st,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(It){return Re._colorManager.onOptionsChange(It)})),this._colorManager.setTheme(this._theme);var Et=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ue.RenderService,Et,this.rows,this.screenElement)),this._instantiationService.setService(ve.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(It){return Re._onRender.fire(It)})),this.onResize(function(It){return Re._renderService.resize(It.cols,It.rows)}),this._soundService=this._instantiationService.createInstance(y.SoundService),this._instantiationService.setService(ve.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(Le.MouseService),this._instantiationService.setService(ve.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(ce.Viewport,function(It,en){return Re.scrollLines(It,en)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return Re.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){Re._renderService.onCursorMove(),Re._syncTextArea()})),this.register(this.onResize(function(){return Re._renderService.onResize(Re.cols,Re.rows)})),this.register(this.onBlur(function(){return Re._renderService.onBlur()})),this.register(this.onFocus(function(){return Re._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return Re.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(le.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(ve.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(It){return Re.scrollLines(It.amount,It.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return Re._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(It){return Re._renderService.onSelectionChanged(It.start,It.end,It.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(It){Re.textarea.value=It,Re.textarea.focus(),Re.textarea.select()})),this.register(this.onScroll(function(){Re.viewport.syncScrollArea(),Re._selectionService.refresh()})),this.register(re.addDisposableDomListener(this._viewportElement,"scroll",function(){return Re._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(a.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return Re._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(re.addDisposableDomListener(this.element,"mousedown",function(It){return Re._selectionService.onMouseDown(It)})),this._coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},Me.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(de.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(b.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},Me.prototype._setTheme=function(Be){var Re,ke,Ge;this._theme=Be,(Re=this._colorManager)===null||Re===void 0||Re.setTheme(Be),(ke=this._renderService)===null||ke===void 0||ke.setColors(this._colorManager.colors),(Ge=this.viewport)===null||Ge===void 0||Ge.onThemeChange(this._colorManager.colors)},Me.prototype.bindMouse=function(){var Be=this,Re=this,ke=this.element;function Ge(at){var Ct,qt,Gt=Re._mouseService.getRawByteCoords(at,Re.screenElement,Re.cols,Re.rows);if(!Gt)return!1;switch(at.overrideType||at.type){case"mousemove":qt=32,at.buttons===void 0?(Ct=3,at.button!==void 0&&(Ct=at.button<3?at.button:3)):Ct=1&at.buttons?0:4&at.buttons?1:2&at.buttons?2:3;break;case"mouseup":qt=0,Ct=at.button<3?at.button:3;break;case"mousedown":qt=1,Ct=at.button<3?at.button:3;break;case"wheel":at.deltaY!==0&&(qt=at.deltaY<0?0:1),Ct=4;break;default:return!1}return!(qt===void 0||Ct===void 0||Ct>4)&&Re._coreMouseService.triggerMouseEvent({col:Gt.x-33,row:Gt.y-33,button:Ct,action:qt,ctrl:at.ctrlKey,alt:at.altKey,shift:at.shiftKey})}var Et={mouseup:null,wheel:null,mousedrag:null,mousemove:null},It=function(at){return Ge(at),at.buttons||(Be._document.removeEventListener("mouseup",Et.mouseup),Et.mousedrag&&Be._document.removeEventListener("mousemove",Et.mousedrag)),Be.cancel(at)},en=function(at){return Ge(at),at.preventDefault(),Be.cancel(at)},Zt=function(at){at.buttons&&Ge(at)},rt=function(at){at.buttons||Ge(at)};this.register(this._coreMouseService.onProtocolChange(function(at){at?(Be.optionsService.options.logLevel==="debug"&&Be._logService.debug("Binding to mouse events:",Be._coreMouseService.explainEvents(at)),Be.element.classList.add("enable-mouse-events"),Be._selectionService.disable()):(Be._logService.debug("Unbinding from mouse events."),Be.element.classList.remove("enable-mouse-events"),Be._selectionService.enable()),8&at?Et.mousemove||(ke.addEventListener("mousemove",rt),Et.mousemove=rt):(ke.removeEventListener("mousemove",Et.mousemove),Et.mousemove=null),16&at?Et.wheel||(ke.addEventListener("wheel",en,{passive:!1}),Et.wheel=en):(ke.removeEventListener("wheel",Et.wheel),Et.wheel=null),2&at?Et.mouseup||(Et.mouseup=It):(Be._document.removeEventListener("mouseup",Et.mouseup),Et.mouseup=null),4&at?Et.mousedrag||(Et.mousedrag=Zt):(Be._document.removeEventListener("mousemove",Et.mousedrag),Et.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(re.addDisposableDomListener(ke,"mousedown",function(at){if(at.preventDefault(),Be.focus(),Be._coreMouseService.areMouseEventsActive&&!Be._selectionService.shouldForceSelection(at))return Ge(at),Et.mouseup&&Be._document.addEventListener("mouseup",Et.mouseup),Et.mousedrag&&Be._document.addEventListener("mousemove",Et.mousedrag),Be.cancel(at)})),this.register(re.addDisposableDomListener(ke,"wheel",function(at){if(!Et.wheel){if(!Be.buffer.hasScrollback){var Ct=Be.viewport.getLinesScrolled(at);if(Ct===0)return;for(var qt=ae.C0.ESC+(Be._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(at.deltaY<0?"A":"B"),Gt="",xt=0;xt<Math.abs(Ct);xt++)Gt+=qt;Be._coreService.triggerDataEvent(Gt,!0)}}},{passive:!0})),this.register(re.addDisposableDomListener(ke,"wheel",function(at){if(!Et.wheel)return Be.viewport.onWheel(at)?void 0:Be.cancel(at)},{passive:!1})),this.register(re.addDisposableDomListener(ke,"touchstart",function(at){if(!Be._coreMouseService.areMouseEventsActive)return Be.viewport.onTouchStart(at),Be.cancel(at)},{passive:!0})),this.register(re.addDisposableDomListener(ke,"touchmove",function(at){if(!Be._coreMouseService.areMouseEventsActive)return Be.viewport.onTouchMove(at)?void 0:Be.cancel(at)},{passive:!1}))},Me.prototype.refresh=function(Be,Re){var ke;(ke=this._renderService)===null||ke===void 0||ke.refreshRows(Be,Re)},Me.prototype._queueLinkification=function(Be,Re){var ke;(ke=this.linkifier)===null||ke===void 0||ke.linkifyRows(Be,Re)},Me.prototype.updateCursorStyle=function(Be){this._selectionService&&this._selectionService.shouldColumnSelect(Be)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},Me.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},Me.prototype.scrollLines=function(Be,Re){lt.prototype.scrollLines.call(this,Be,Re),this.refresh(0,this.rows-1)},Me.prototype.paste=function(Be){pe.paste(Be,this.textarea,this._coreService)},Me.prototype.attachCustomKeyEventHandler=function(Be){this._customKeyEventHandler=Be},Me.prototype.registerLinkMatcher=function(Be,Re,ke){var Ge=this.linkifier.registerLinkMatcher(Be,Re,ke);return this.refresh(0,this.rows-1),Ge},Me.prototype.deregisterLinkMatcher=function(Be){this.linkifier.deregisterLinkMatcher(Be)&&this.refresh(0,this.rows-1)},Me.prototype.registerLinkProvider=function(Be){return this.linkifier2.registerLinkProvider(Be)},Me.prototype.registerCharacterJoiner=function(Be){var Re=this._renderService.registerCharacterJoiner(Be);return this.refresh(0,this.rows-1),Re},Me.prototype.deregisterCharacterJoiner=function(Be){this._renderService.deregisterCharacterJoiner(Be)&&this.refresh(0,this.rows-1)},Object.defineProperty(Me.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),Me.prototype.addMarker=function(Be){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Be)},Me.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},Me.prototype.select=function(Be,Re,ke){this._selectionService.setSelection(Be,Re,ke)},Me.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},Me.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]}},Me.prototype.clearSelection=function(){var Be;(Be=this._selectionService)===null||Be===void 0||Be.clearSelection()},Me.prototype.selectAll=function(){var Be;(Be=this._selectionService)===null||Be===void 0||Be.selectAll()},Me.prototype.selectLines=function(Be,Re){var ke;(ke=this._selectionService)===null||ke===void 0||ke.selectLines(Be,Re)},Me.prototype._keyDown=function(Be){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(Be)===!1)return!1;if(!this._compositionHelper.keydown(Be))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var Re=x.evaluateKeyboardEvent(Be,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Be),Re.type===3||Re.type===2){var ke=this.rows-1;return this.scrollLines(Re.type===2?-ke:ke),this.cancel(Be,!0)}return Re.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Be)||(Re.cancel&&this.cancel(Be,!0),!Re.key||(Re.key!==ae.C0.ETX&&Re.key!==ae.C0.CR||(this.textarea.value=""),this._onKey.fire({key:Re.key,domEvent:Be}),this._showCursor(),this._coreService.triggerDataEvent(Re.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Be,!0)))},Me.prototype._isThirdLevelShift=function(Be,Re){var ke=Be.isMac&&!this.options.macOptionIsMeta&&Re.altKey&&!Re.ctrlKey&&!Re.metaKey||Be.isWindows&&Re.altKey&&Re.ctrlKey&&!Re.metaKey;return Re.type==="keypress"?ke:ke&&(!Re.keyCode||Re.keyCode>47)},Me.prototype._keyUp=function(Be){this._customKeyEventHandler&&this._customKeyEventHandler(Be)===!1||(function(Re){return Re.keyCode===16||Re.keyCode===17||Re.keyCode===18}(Be)||this.focus(),this.updateCursorStyle(Be))},Me.prototype._keyPress=function(Be){var Re;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(Be)===!1)return!1;if(this.cancel(Be),Be.charCode)Re=Be.charCode;else if(Be.which===null||Be.which===void 0)Re=Be.keyCode;else{if(Be.which===0||Be.charCode===0)return!1;Re=Be.which}return!(!Re||(Be.altKey||Be.ctrlKey||Be.metaKey)&&!this._isThirdLevelShift(this.browser,Be))&&(Re=String.fromCharCode(Re),this._onKey.fire({key:Re,domEvent:Be}),this._showCursor(),this._coreService.triggerDataEvent(Re,!0),!0)},Me.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},Me.prototype.resize=function(Be,Re){Be!==this.cols||Re!==this.rows?lt.prototype.resize.call(this,Be,Re):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},Me.prototype._afterResize=function(Be,Re){var ke,Ge;(ke=this._charSizeService)===null||ke===void 0||ke.measure(),(Ge=this.viewport)===null||Ge===void 0||Ge.syncScrollArea(!0)},Me.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 Be=1;Be<this.rows;Be++)this.buffer.lines.push(this.buffer.getBlankLine(oe.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},Me.prototype.reset=function(){var Be,Re;this.options.rows=this.rows,this.options.cols=this.cols;var ke=this._customKeyEventHandler;this._setup(),lt.prototype.reset.call(this),(Be=this._selectionService)===null||Be===void 0||Be.reset(),this._customKeyEventHandler=ke,this.refresh(0,this.rows-1),(Re=this.viewport)===null||Re===void 0||Re.syncScrollArea()},Me.prototype._reportWindowsOptions=function(Be){if(this._renderService)switch(Be){case me.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var Re=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),ke=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ae.C0.ESC+"[4;"+ke+";"+Re+"t");break;case me.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ge=this._renderService.dimensions.scaledCellWidth.toFixed(0),Et=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ae.C0.ESC+"[6;"+Et+";"+Ge+"t")}},Me.prototype.cancel=function(Be,Re){if(this.options.cancelEvents||Re)return Be.preventDefault(),Be.stopPropagation(),!1},Me.prototype._visualBell=function(){return!1},Me.prototype._soundBell=function(){return this.options.bellStyle==="sound"},Me}(xe.CoreTerminal);ee.Terminal=Ye},function(Ze,ee,te){"use strict";var fe=this&&this.__decorate||function(ae,me,de,ge){var le,he=arguments.length,re=he<3?me:ge===null?ge=Object.getOwnPropertyDescriptor(me,de):ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ae,me,de,ge);else for(var ne=ae.length-1;ne>=0;ne--)(le=ae[ne])&&(re=(he<3?le(re):he>3?le(me,de,re):le(me,de))||re);return he>3&&re&&Object.defineProperty(me,de,re),re},be=this&&this.__param||function(ae,me){return function(de,ge){me(de,ge,ae)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CompositionHelper=void 0;var _e=te(5),ce=te(1),pe=function(){function ae(me,de,ge,le,he,re){this._textarea=me,this._compositionView=de,this._bufferService=ge,this._optionsService=le,this._charSizeService=he,this._coreService=re,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(ae.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),ae.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},ae.prototype.compositionupdate=function(me){var de=this;this._compositionView.textContent=me.data,this.updateCompositionElements(),setTimeout(function(){de._compositionPosition.end=de._textarea.value.length},0)},ae.prototype.compositionend=function(){this._finalizeComposition(!0)},ae.prototype.keydown=function(me){if(this._isComposing||this._isSendingComposition){if(me.keyCode===229||me.keyCode===16||me.keyCode===17||me.keyCode===18)return!1;this._finalizeComposition(!1)}return me.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ae.prototype._finalizeComposition=function(me){var de=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,me){var ge={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(de._isSendingComposition){de._isSendingComposition=!1;var he=void 0;he=de._isComposing?de._textarea.value.substring(ge.start,ge.end):de._textarea.value.substring(ge.start),de._coreService.triggerDataEvent(he,!0)}},0)}else{this._isSendingComposition=!1;var le=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(le,!0)}},ae.prototype._handleAnyTextareaChanges=function(){var me=this,de=this._textarea.value;setTimeout(function(){if(!me._isComposing){var ge=me._textarea.value.replace(de,"");ge.length>0&&me._coreService.triggerDataEvent(ge,!0)}},0)},ae.prototype.updateCompositionElements=function(me){var de=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var ge=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),le=this._bufferService.buffer.y*ge,he=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=he+"px",this._compositionView.style.top=le+"px",this._compositionView.style.height=ge+"px",this._compositionView.style.lineHeight=ge+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var re=this._compositionView.getBoundingClientRect();this._textarea.style.left=he+"px",this._textarea.style.top=le+"px",this._textarea.style.width=re.width+"px",this._textarea.style.height=re.height+"px",this._textarea.style.lineHeight=re.height+"px"}me||setTimeout(function(){return de.updateCompositionElements(!0)},0)}},ae=fe([be(2,ce.IBufferService),be(3,ce.IOptionsService),be(4,_e.ICharSizeService),be(5,ce.ICoreService)],ae)}();ee.CompositionHelper=pe},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(le,he){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var y in ne)ne.hasOwnProperty(y)&&(re[y]=ne[y])})(le,he)},function(le,he){function re(){this.constructor=le}fe(le,he),le.prototype=he===null?Object.create(he):(re.prototype=he.prototype,new re)}),_e=this&&this.__decorate||function(le,he,re,ne){var y,a=arguments.length,E=a<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(le,he,re,ne);else for(var b=le.length-1;b>=0;b--)(y=le[b])&&(E=(a<3?y(E):a>3?y(he,re,E):y(he,re))||E);return a>3&&E&&Object.defineProperty(he,re,E),E},ce=this&&this.__param||function(le,he){return function(re,ne){he(re,ne,le)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Viewport=void 0;var pe=te(2),ae=te(7),me=te(5),de=te(1),ge=function(le){function he(re,ne,y,a,E,b,x){var z=le.call(this)||this;return z._scrollLines=re,z._viewportElement=ne,z._scrollArea=y,z._bufferService=a,z._optionsService=E,z._charSizeService=b,z._renderService=x,z.scrollBarWidth=0,z._currentRowHeight=0,z._lastRecordedBufferLength=0,z._lastRecordedViewportHeight=0,z._lastRecordedBufferHeight=0,z._lastTouchY=0,z._lastScrollTop=0,z._wheelPartialScroll=0,z._refreshAnimationFrame=null,z._ignoreNextScrollEvent=!1,z.scrollBarWidth=z._viewportElement.offsetWidth-z._scrollArea.offsetWidth||15,z.register(ae.addDisposableDomListener(z._viewportElement,"scroll",z._onScroll.bind(z))),setTimeout(function(){return z.syncScrollArea()},0),z}return be(he,le),he.prototype.onThemeChange=function(re){this._viewportElement.style.backgroundColor=re.background.css},he.prototype._refresh=function(re){var ne=this;if(re)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=requestAnimationFrame(function(){return ne._innerRefresh()}))},he.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var re=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==re&&(this._lastRecordedBufferHeight=re,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var ne=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==ne&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=ne),this._refreshAnimationFrame=null},he.prototype.syncScrollArea=function(re){if(re===void 0&&(re=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(re);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var ne=this._bufferService.buffer.ydisp*this._currentRowHeight;this._lastScrollTop===ne&&this._lastScrollTop===this._viewportElement.scrollTop&&this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio===this._currentRowHeight||this._refresh(re)}else this._refresh(re)},he.prototype._onScroll=function(re){if(this._lastScrollTop=this._viewportElement.scrollTop,this._viewportElement.offsetParent)if(this._ignoreNextScrollEvent)this._ignoreNextScrollEvent=!1;else{var ne=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(ne,!0)}},he.prototype._bubbleScroll=function(re,ne){var y=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&y<this._lastRecordedBufferHeight)||(re.cancelable&&re.preventDefault(),!1)},he.prototype.onWheel=function(re){var ne=this._getPixelsScrolled(re);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(re,ne))},he.prototype._getPixelsScrolled=function(re){if(re.deltaY===0)return 0;var ne=this._applyScrollModifier(re.deltaY,re);return re.deltaMode===WheelEvent.DOM_DELTA_LINE?ne*=this._currentRowHeight:re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._currentRowHeight*this._bufferService.rows),ne},he.prototype.getLinesScrolled=function(re){if(re.deltaY===0)return 0;var ne=this._applyScrollModifier(re.deltaY,re);return re.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(ne/=this._currentRowHeight+0,this._wheelPartialScroll+=ne,ne=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):re.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._bufferService.rows),ne},he.prototype._applyScrollModifier=function(re,ne){var y=this._optionsService.options.fastScrollModifier;return y==="alt"&&ne.altKey||y==="ctrl"&&ne.ctrlKey||y==="shift"&&ne.shiftKey?re*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:re*this._optionsService.options.scrollSensitivity},he.prototype.onTouchStart=function(re){this._lastTouchY=re.touches[0].pageY},he.prototype.onTouchMove=function(re){var ne=this._lastTouchY-re.touches[0].pageY;return this._lastTouchY=re.touches[0].pageY,ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(re,ne))},he=_e([ce(3,de.IBufferService),ce(4,de.IOptionsService),ce(5,me.ICharSizeService),ce(6,me.IRenderService)],he)}(pe.Disposable);ee.Viewport=ge},function(Ze,ee,te){"use strict";function fe(pe){return pe.replace(/\r?\n/g,"\r")}function be(pe,ae){return ae?"\x1B[200~"+pe+"\x1B[201~":pe}function _e(pe,ae,me){pe=be(pe=fe(pe),me.decPrivateModes.bracketedPasteMode),me.triggerDataEvent(pe,!0),ae.value=""}function ce(pe,ae,me){var de=me.getBoundingClientRect(),ge=pe.clientX-de.left-10,le=pe.clientY-de.top-10;ae.style.width="20px",ae.style.height="20px",ae.style.left=ge+"px",ae.style.top=le+"px",ae.style.zIndex="1000",ae.focus()}Object.defineProperty(ee,"__esModule",{value:!0}),ee.rightClickHandler=ee.moveTextAreaUnderMouseCursor=ee.paste=ee.handlePasteEvent=ee.copyHandler=ee.bracketTextForPaste=ee.prepareTextForTerminal=void 0,ee.prepareTextForTerminal=fe,ee.bracketTextForPaste=be,ee.copyHandler=function(pe,ae){pe.clipboardData&&pe.clipboardData.setData("text/plain",ae.selectionText),pe.preventDefault()},ee.handlePasteEvent=function(pe,ae,me){pe.stopPropagation(),pe.clipboardData&&_e(pe.clipboardData.getData("text/plain"),ae,me)},ee.paste=_e,ee.moveTextAreaUnderMouseCursor=ce,ee.rightClickHandler=function(pe,ae,me,de,ge){ce(pe,ae,me),ge&&!de.isClickInSelection(pe)&&de.selectWordAtCursor(pe),ae.value=de.selectionText,ae.select()}},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(le,he){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var y in ne)ne.hasOwnProperty(y)&&(re[y]=ne[y])})(le,he)},function(le,he){function re(){this.constructor=le}fe(le,he),le.prototype=he===null?Object.create(he):(re.prototype=he.prototype,new re)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.EscapeSequenceParser=ee.VT500_TRANSITION_TABLE=ee.TransitionTable=void 0;var _e=te(2),ce=te(15),pe=te(21),ae=te(22),me=te(24),de=function(){function le(he){this.table=new Uint8Array(he)}return le.prototype.setDefault=function(he,re){ce.fill(this.table,he<<4|re)},le.prototype.add=function(he,re,ne,y){this.table[re<<8|he]=ne<<4|y},le.prototype.addMany=function(he,re,ne,y){for(var a=0;a<he.length;a++)this.table[re<<8|he[a]]=ne<<4|y},le}();ee.TransitionTable=de,ee.VT500_TRANSITION_TABLE=function(){var le=new de(4095),he=Array.apply(null,Array(256)).map(function(b,x){return x}),re=function(b,x){return he.slice(b,x)},ne=re(32,127),y=re(0,24);y.push(25),y.push.apply(y,re(28,32));var a,E=re(0,14);for(a in le.setDefault(1,0),le.addMany(ne,0,2,0),E)le.addMany([24,26,153,154],a,3,0),le.addMany(re(128,144),a,3,0),le.addMany(re(144,152),a,3,0),le.add(156,a,0,0),le.add(27,a,11,1),le.add(157,a,4,8),le.addMany([152,158,159],a,0,7),le.add(155,a,11,3),le.add(144,a,11,9);return le.addMany(y,0,3,0),le.addMany(y,1,3,1),le.add(127,1,0,1),le.addMany(y,8,0,8),le.addMany(y,3,3,3),le.add(127,3,0,3),le.addMany(y,4,3,4),le.add(127,4,0,4),le.addMany(y,6,3,6),le.addMany(y,5,3,5),le.add(127,5,0,5),le.addMany(y,2,3,2),le.add(127,2,0,2),le.add(93,1,4,8),le.addMany(ne,8,5,8),le.add(127,8,5,8),le.addMany([156,27,24,26,7],8,6,0),le.addMany(re(28,32),8,0,8),le.addMany([88,94,95],1,0,7),le.addMany(ne,7,0,7),le.addMany(y,7,0,7),le.add(156,7,0,0),le.add(127,7,0,7),le.add(91,1,11,3),le.addMany(re(64,127),3,7,0),le.addMany(re(48,60),3,8,4),le.addMany([60,61,62,63],3,9,4),le.addMany(re(48,60),4,8,4),le.addMany(re(64,127),4,7,0),le.addMany([60,61,62,63],4,0,6),le.addMany(re(32,64),6,0,6),le.add(127,6,0,6),le.addMany(re(64,127),6,0,0),le.addMany(re(32,48),3,9,5),le.addMany(re(32,48),5,9,5),le.addMany(re(48,64),5,0,6),le.addMany(re(64,127),5,7,0),le.addMany(re(32,48),4,9,5),le.addMany(re(32,48),1,9,2),le.addMany(re(32,48),2,9,2),le.addMany(re(48,127),2,10,0),le.addMany(re(48,80),1,10,0),le.addMany(re(81,88),1,10,0),le.addMany([89,90,92],1,10,0),le.addMany(re(96,127),1,10,0),le.add(80,1,11,9),le.addMany(y,9,0,9),le.add(127,9,0,9),le.addMany(re(28,32),9,0,9),le.addMany(re(32,48),9,9,12),le.addMany(re(48,60),9,8,10),le.addMany([60,61,62,63],9,9,10),le.addMany(y,11,0,11),le.addMany(re(32,128),11,0,11),le.addMany(re(28,32),11,0,11),le.addMany(y,10,0,10),le.add(127,10,0,10),le.addMany(re(28,32),10,0,10),le.addMany(re(48,60),10,8,10),le.addMany([60,61,62,63],10,0,11),le.addMany(re(32,48),10,9,12),le.addMany(y,12,0,12),le.add(127,12,0,12),le.addMany(re(28,32),12,0,12),le.addMany(re(32,48),12,9,12),le.addMany(re(48,64),12,0,11),le.addMany(re(64,127),12,12,13),le.addMany(re(64,127),10,12,13),le.addMany(re(64,127),9,12,13),le.addMany(y,13,13,13),le.addMany(ne,13,13,13),le.add(127,13,0,13),le.addMany([27,156,24,26],13,14,0),le.add(160,0,2,0),le.add(160,8,5,8),le.add(160,6,0,6),le.add(160,11,0,11),le.add(160,13,13,13),le}();var ge=function(le){function he(re){re===void 0&&(re=ee.VT500_TRANSITION_TABLE);var ne=le.call(this)||this;return ne._transitions=re,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new pe.Params,ne._params.addParam(0),ne._collect=0,ne.precedingCodepoint=0,ne._printHandlerFb=function(y,a,E){},ne._executeHandlerFb=function(y){},ne._csiHandlerFb=function(y,a){},ne._escHandlerFb=function(y){},ne._errorHandlerFb=function(y){return y},ne._printHandler=ne._printHandlerFb,ne._executeHandlers=Object.create(null),ne._csiHandlers=Object.create(null),ne._escHandlers=Object.create(null),ne._oscParser=new ae.OscParser,ne._dcsParser=new me.DcsParser,ne._errorHandler=ne._errorHandlerFb,ne.setEscHandler({final:"\\"},function(){}),ne}return be(he,le),he.prototype._identifier=function(re,ne){ne===void 0&&(ne=[64,126]);var y=0;if(re.prefix){if(re.prefix.length>1)throw new Error("only one byte as prefix supported");if((y=re.prefix.charCodeAt(0))&&60>y||y>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(re.intermediates){if(re.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var a=0;a<re.intermediates.length;++a){var E=re.intermediates.charCodeAt(a);if(32>E||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");y<<=8,y|=E}}if(re.final.length!==1)throw new Error("final must be a single byte");var b=re.final.charCodeAt(0);if(ne[0]>b||b>ne[1])throw new Error("final must be in range "+ne[0]+" .. "+ne[1]);return y<<=8,y|=b},he.prototype.identToString=function(re){for(var ne=[];re;)ne.push(String.fromCharCode(255&re)),re>>=8;return ne.reverse().join("")},he.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},he.prototype.setPrintHandler=function(re){this._printHandler=re},he.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},he.prototype.addEscHandler=function(re,ne){var y=this._identifier(re,[48,126]);this._escHandlers[y]===void 0&&(this._escHandlers[y]=[]);var a=this._escHandlers[y];return a.push(ne),{dispose:function(){var E=a.indexOf(ne);E!==-1&&a.splice(E,1)}}},he.prototype.setEscHandler=function(re,ne){this._escHandlers[this._identifier(re,[48,126])]=[ne]},he.prototype.clearEscHandler=function(re){this._escHandlers[this._identifier(re,[48,126])]&&delete this._escHandlers[this._identifier(re,[48,126])]},he.prototype.setEscHandlerFallback=function(re){this._escHandlerFb=re},he.prototype.setExecuteHandler=function(re,ne){this._executeHandlers[re.charCodeAt(0)]=ne},he.prototype.clearExecuteHandler=function(re){this._executeHandlers[re.charCodeAt(0)]&&delete this._executeHandlers[re.charCodeAt(0)]},he.prototype.setExecuteHandlerFallback=function(re){this._executeHandlerFb=re},he.prototype.addCsiHandler=function(re,ne){var y=this._identifier(re);this._csiHandlers[y]===void 0&&(this._csiHandlers[y]=[]);var a=this._csiHandlers[y];return a.push(ne),{dispose:function(){var E=a.indexOf(ne);E!==-1&&a.splice(E,1)}}},he.prototype.setCsiHandler=function(re,ne){this._csiHandlers[this._identifier(re)]=[ne]},he.prototype.clearCsiHandler=function(re){this._csiHandlers[this._identifier(re)]&&delete this._csiHandlers[this._identifier(re)]},he.prototype.setCsiHandlerFallback=function(re){this._csiHandlerFb=re},he.prototype.addDcsHandler=function(re,ne){return this._dcsParser.addHandler(this._identifier(re),ne)},he.prototype.setDcsHandler=function(re,ne){this._dcsParser.setHandler(this._identifier(re),ne)},he.prototype.clearDcsHandler=function(re){this._dcsParser.clearHandler(this._identifier(re))},he.prototype.setDcsHandlerFallback=function(re){this._dcsParser.setHandlerFallback(re)},he.prototype.addOscHandler=function(re,ne){return this._oscParser.addHandler(re,ne)},he.prototype.setOscHandler=function(re,ne){this._oscParser.setHandler(re,ne)},he.prototype.clearOscHandler=function(re){this._oscParser.clearHandler(re)},he.prototype.setOscHandlerFallback=function(re){this._oscParser.setHandlerFallback(re)},he.prototype.setErrorHandler=function(re){this._errorHandler=re},he.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},he.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},he.prototype.parse=function(re,ne){for(var y=0,a=0,E=this.currentState,b=this._oscParser,x=this._dcsParser,z=this._collect,oe=this._params,ie=this._transitions.table,ue=0;ue<ne;++ue){switch((a=ie[E<<8|((y=re[ue])<160?y:160)])>>4){case 2:for(var ve=ue+1;;++ve){if(ve>=ne||(y=re[ve])<32||y>126&&y<160){this._printHandler(re,ue,ve),ue=ve-1;break}if(++ve>=ne||(y=re[ve])<32||y>126&&y<160){this._printHandler(re,ue,ve),ue=ve-1;break}if(++ve>=ne||(y=re[ve])<32||y>126&&y<160){this._printHandler(re,ue,ve),ue=ve-1;break}if(++ve>=ne||(y=re[ve])<32||y>126&&y<160){this._printHandler(re,ue,ve),ue=ve-1;break}}break;case 3:this._executeHandlers[y]?this._executeHandlers[y]():this._executeHandlerFb(y),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:ue,code:y,currentState:E,collect:z,params:oe,abort:!1}).abort)return;break;case 7:for(var Se=this._csiHandlers[z<<8|y],Le=Se?Se.length-1:-1;Le>=0&&Se[Le](oe)===!1;Le--);Le<0&&this._csiHandlerFb(z<<8|y,oe),this.precedingCodepoint=0;break;case 8:do switch(y){case 59:oe.addParam(0);break;case 58:oe.addSubParam(-1);break;default:oe.addDigit(y-48)}while(++ue<ne&&(y=re[ue])>47&&y<60);ue--;break;case 9:z<<=8,z|=y;break;case 10:for(var we=this._escHandlers[z<<8|y],Ne=we?we.length-1:-1;Ne>=0&&we[Ne]()===!1;Ne--);Ne<0&&this._escHandlerFb(z<<8|y),this.precedingCodepoint=0;break;case 11:oe.reset(),oe.addParam(0),z=0;break;case 12:x.hook(z<<8|y,oe);break;case 13:for(var xe=ue+1;;++xe)if(xe>=ne||(y=re[xe])===24||y===26||y===27||y>127&&y<160){x.put(re,ue,xe),ue=xe-1;break}break;case 14:x.unhook(y!==24&&y!==26),y===27&&(a|=1),oe.reset(),oe.addParam(0),z=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var st=ue+1;;st++)if(st>=ne||(y=re[st])<32||y>127&&y<=159){b.put(re,ue,st),ue=st-1;break}break;case 6:b.end(y!==24&&y!==26),y===27&&(a|=1),oe.reset(),oe.addParam(0),z=0,this.precedingCodepoint=0}E=15&a}this._collect=z,this.currentState=E},he}(_e.Disposable);ee.EscapeSequenceParser=ge},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(b,x){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,oe){z.__proto__=oe}||function(z,oe){for(var ie in oe)oe.hasOwnProperty(ie)&&(z[ie]=oe[ie])})(b,x)},function(b,x){function z(){this.constructor=b}fe(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),_e=this&&this.__decorate||function(b,x,z,oe){var ie,ue=arguments.length,ve=ue<3?x:oe===null?oe=Object.getOwnPropertyDescriptor(x,z):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,x,z,oe);else for(var Se=b.length-1;Se>=0;Se--)(ie=b[Se])&&(ve=(ue<3?ie(ve):ue>3?ie(x,z,ve):ie(x,z))||ve);return ue>3&&ve&&Object.defineProperty(x,z,ve),ve},ce=this&&this.__param||function(b,x){return function(z,oe){x(z,oe,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Renderer=void 0;var pe=te(41),ae=te(47),me=te(48),de=te(49),ge=te(29),le=te(2),he=te(5),re=te(1),ne=te(25),y=te(0),a=1,E=function(b){function x(z,oe,ie,ue,ve,Se,Le,we,Ne){var xe=b.call(this)||this;xe._colors=z,xe._screenElement=oe,xe._bufferService=ve,xe._charSizeService=Se,xe._optionsService=Le,xe._id=a++,xe._onRequestRedraw=new y.EventEmitter;var st=xe._optionsService.options.allowTransparency;return xe._characterJoinerRegistry=new ge.CharacterJoinerRegistry(xe._bufferService),xe._renderLayers=[new pe.TextRenderLayer(xe._screenElement,0,xe._colors,xe._characterJoinerRegistry,st,xe._id,xe._bufferService,Le),new ae.SelectionRenderLayer(xe._screenElement,1,xe._colors,xe._id,xe._bufferService,Le),new de.LinkRenderLayer(xe._screenElement,2,xe._colors,xe._id,ie,ue,xe._bufferService,Le),new me.CursorRenderLayer(xe._screenElement,3,xe._colors,xe._id,xe._onRequestRedraw,xe._bufferService,Le,we,Ne)],xe.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},xe._devicePixelRatio=window.devicePixelRatio,xe._updateDimensions(),xe.onOptionsChanged(),xe}return be(x,b),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){for(var z=0,oe=this._renderLayers;z<oe.length;z++)oe[z].dispose();b.prototype.dispose.call(this),ne.removeTerminalFromCache(this._id)},x.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},x.prototype.setColors=function(z){this._colors=z;for(var oe=0,ie=this._renderLayers;oe<ie.length;oe++){var ue=ie[oe];ue.setColors(this._colors),ue.reset()}},x.prototype.onResize=function(z,oe){this._updateDimensions();for(var ie=0,ue=this._renderLayers;ie<ue.length;ie++)ue[ie].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},x.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},x.prototype.onBlur=function(){this._runOperation(function(z){return z.onBlur()})},x.prototype.onFocus=function(){this._runOperation(function(z){return z.onFocus()})},x.prototype.onSelectionChanged=function(z,oe,ie){ie===void 0&&(ie=!1),this._runOperation(function(ue){return ue.onSelectionChanged(z,oe,ie)})},x.prototype.onCursorMove=function(){this._runOperation(function(z){return z.onCursorMove()})},x.prototype.onOptionsChanged=function(){this._runOperation(function(z){return z.onOptionsChanged()})},x.prototype.clear=function(){this._runOperation(function(z){return z.reset()})},x.prototype._runOperation=function(z){for(var oe=0,ie=this._renderLayers;oe<ie.length;oe++)z(ie[oe])},x.prototype.renderRows=function(z,oe){for(var ie=0,ue=this._renderLayers;ie<ue.length;ie++)ue[ie].onGridChanged(z,oe)},x.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)},x.prototype.registerCharacterJoiner=function(z){return this._characterJoinerRegistry.registerCharacterJoiner(z)},x.prototype.deregisterCharacterJoiner=function(z){return this._characterJoinerRegistry.deregisterCharacterJoiner(z)},x=_e([ce(4,re.IBufferService),ce(5,he.ICharSizeService),ce(6,re.IOptionsService),ce(7,re.ICoreService),ce(8,he.ICoreBrowserService)],x)}(le.Disposable);ee.Renderer=E},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(le,he){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var y in ne)ne.hasOwnProperty(y)&&(re[y]=ne[y])})(le,he)},function(le,he){function re(){this.constructor=le}fe(le,he),le.prototype=he===null?Object.create(he):(re.prototype=he.prototype,new re)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.TextRenderLayer=void 0;var _e=te(42),ce=te(13),pe=te(6),ae=te(3),me=te(29),de=te(4),ge=function(le){function he(re,ne,y,a,E,b,x,z){var oe=le.call(this,re,"text",ne,E,y,b,x,z)||this;return oe._characterWidth=0,oe._characterFont="",oe._characterOverlapCache={},oe._workCell=new de.CellData,oe._state=new _e.GridCache,oe._characterJoinerRegistry=a,oe}return be(he,le),he.prototype.resize=function(re){le.prototype.resize.call(this,re);var ne=this._getFont(!1,!1);this._characterWidth===re.scaledCharWidth&&this._characterFont===ne||(this._characterWidth=re.scaledCharWidth,this._characterFont=ne,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)},he.prototype.reset=function(){this._state.clear(),this._clearAll()},he.prototype._forEachCell=function(re,ne,y,a){for(var E=re;E<=ne;E++)for(var b=E+this._bufferService.buffer.ydisp,x=this._bufferService.buffer.lines.get(b),z=y?y.getJoinedCharacters(b):[],oe=0;oe<this._bufferService.cols;oe++){x.loadCell(oe,this._workCell);var ie=this._workCell,ue=!1,ve=oe;if(ie.getWidth()!==0){if(z.length>0&&oe===z[0][0]){ue=!0;var Se=z.shift();ie=new me.JoinedCellData(this._workCell,x.translateToString(!0,Se[0],Se[1]),Se[1]-Se[0]),ve=Se[1]-1}!ue&&this._isOverlapping(ie)&&ve<x.length-1&&x.getCodePoint(ve+1)===ae.NULL_CELL_CODE&&(ie.content&=-12582913,ie.content|=2<<22),a(ie,oe,E),oe=ve}}},he.prototype._drawBackground=function(re,ne){var y=this,a=this._ctx,E=this._bufferService.cols,b=0,x=0,z=null;a.save(),this._forEachCell(re,ne,null,function(oe,ie,ue){var ve=null;oe.isInverse()?ve=oe.isFgDefault()?y._colors.foreground.css:oe.isFgRGB()?"rgb("+pe.AttributeData.toColorRGB(oe.getFgColor()).join(",")+")":y._colors.ansi[oe.getFgColor()].css:oe.isBgRGB()?ve="rgb("+pe.AttributeData.toColorRGB(oe.getBgColor()).join(",")+")":oe.isBgPalette()&&(ve=y._colors.ansi[oe.getBgColor()].css),z===null&&(b=ie,x=ue),ue!==x?(a.fillStyle=z||"",y._fillCells(b,x,E-b,1),b=ie,x=ue):z!==ve&&(a.fillStyle=z||"",y._fillCells(b,x,ie-b,1),b=ie,x=ue),z=ve}),z!==null&&(a.fillStyle=z,this._fillCells(b,x,E-b,1)),a.restore()},he.prototype._drawForeground=function(re,ne){var y=this;this._forEachCell(re,ne,this._characterJoinerRegistry,function(a,E,b){if(!a.isInvisible()&&(y._drawChars(a,E,b),a.isUnderline())){if(y._ctx.save(),a.isInverse())if(a.isBgDefault())y._ctx.fillStyle=y._colors.background.css;else if(a.isBgRGB())y._ctx.fillStyle="rgb("+pe.AttributeData.toColorRGB(a.getBgColor()).join(",")+")";else{var x=a.getBgColor();y._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&x<8&&(x+=8),y._ctx.fillStyle=y._colors.ansi[x].css}else if(a.isFgDefault())y._ctx.fillStyle=y._colors.foreground.css;else if(a.isFgRGB())y._ctx.fillStyle="rgb("+pe.AttributeData.toColorRGB(a.getFgColor()).join(",")+")";else{var z=a.getFgColor();y._optionsService.options.drawBoldTextInBrightColors&&a.isBold()&&z<8&&(z+=8),y._ctx.fillStyle=y._colors.ansi[z].css}y._fillBottomLineAtCells(E,b,a.getWidth()),y._ctx.restore()}})},he.prototype.onGridChanged=function(re,ne){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,re,this._bufferService.cols,ne-re+1),this._drawBackground(re,ne),this._drawForeground(re,ne))},he.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},he.prototype._isOverlapping=function(re){if(re.getWidth()!==1||re.getCode()<256)return!1;var ne=re.getChars();if(this._characterOverlapCache.hasOwnProperty(ne))return this._characterOverlapCache[ne];this._ctx.save(),this._ctx.font=this._characterFont;var y=Math.floor(this._ctx.measureText(ne).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[ne]=y,y},he}(ce.BaseRenderLayer);ee.TextRenderLayer=ge},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.GridCache=void 0;var fe=function(){function be(){this.cache=[]}return be.prototype.resize=function(_e,ce){for(var pe=0;pe<_e;pe++){this.cache.length<=pe&&this.cache.push([]);for(var ae=this.cache[pe].length;ae<ce;ae++)this.cache[pe].push(void 0);this.cache[pe].length=ce}this.cache.length=_e},be.prototype.clear=function(){for(var _e=0;_e<this.cache.length;_e++)for(var ce=0;ce<this.cache[_e].length;ce++)this.cache[_e][ce]=void 0},be}();ee.GridCache=fe},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(y,a){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,b){E.__proto__=b}||function(E,b){for(var x in b)b.hasOwnProperty(x)&&(E[x]=b[x])})(y,a)},function(y,a){function E(){this.constructor=y}fe(y,a),y.prototype=a===null?Object.create(a):(E.prototype=a.prototype,new E)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.NoneCharAtlas=ee.DynamicCharAtlas=ee.getGlyphCacheKey=void 0;var _e=te(9),ce=te(44),pe=te(27),ae=te(46),me=te(11),de=te(28),ge=te(10),le={css:"rgba(0, 0, 0, 0)",rgba:0};function he(y){return y.code<<21|y.bg<<12|y.fg<<3|(y.bold?0:4)+(y.dim?0:2)+(y.italic?0:1)}ee.getGlyphCacheKey=he;var re=function(y){function a(E,b){var x=y.call(this)||this;x._config=b,x._drawToCacheCount=0,x._glyphsWaitingOnBitmap=[],x._bitmapCommitTimeout=null,x._bitmap=null,x._cacheCanvas=E.createElement("canvas"),x._cacheCanvas.width=1024,x._cacheCanvas.height=1024,x._cacheCtx=de.throwIfFalsy(x._cacheCanvas.getContext("2d",{alpha:!0}));var z=E.createElement("canvas");z.width=x._config.scaledCharWidth,z.height=x._config.scaledCharHeight,x._tmpCtx=de.throwIfFalsy(z.getContext("2d",{alpha:x._config.allowTransparency})),x._width=Math.floor(1024/x._config.scaledCharWidth),x._height=Math.floor(1024/x._config.scaledCharHeight);var oe=x._width*x._height;return x._cacheMap=new ae.LRUMap(oe),x._cacheMap.prealloc(oe),x}return be(a,y),a.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},a.prototype.beginFrame=function(){this._drawToCacheCount=0},a.prototype.draw=function(E,b,x,z){if(b.code===32)return!0;if(!this._canCache(b))return!1;var oe=he(b),ie=this._cacheMap.get(oe);if(ie!=null)return this._drawFromCache(E,ie,x,z),!0;if(this._drawToCacheCount<100){var ue=void 0;ue=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var ve=this._drawToCache(b,ue);return this._cacheMap.set(oe,ve),this._drawFromCache(E,ve,x,z),!0}return!1},a.prototype._canCache=function(E){return E.code<256},a.prototype._toCoordinateX=function(E){return E%this._width*this._config.scaledCharWidth},a.prototype._toCoordinateY=function(E){return Math.floor(E/this._width)*this._config.scaledCharHeight},a.prototype._drawFromCache=function(E,b,x,z){if(!b.isEmpty){var oe=this._toCoordinateX(b.index),ie=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,oe,ie,this._config.scaledCharWidth,this._config.scaledCharHeight,x,z,this._config.scaledCharWidth,this._config.scaledCharHeight)}},a.prototype._getColorFromAnsiIndex=function(E){return E<this._config.colors.ansi.length?this._config.colors.ansi[E]:pe.DEFAULT_ANSI_COLORS[E]},a.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?le:E.bg===_e.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:E.bg<256?this._getColorFromAnsiIndex(E.bg):this._config.colors.background},a.prototype._getForegroundColor=function(E){return E.fg===_e.INVERTED_DEFAULT_COLOR?ge.color.opaque(this._config.colors.background):E.fg<256?this._getColorFromAnsiIndex(E.fg):this._config.colors.foreground},a.prototype._drawToCache=function(E,b){this._drawToCacheCount++,this._tmpCtx.save();var x=this._getBackgroundColor(E);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=x.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var z=E.bold?this._config.fontWeightBold:this._config.fontWeight,oe=E.italic?"italic":"";this._tmpCtx.font=oe+" "+z+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(E).css,E.dim&&(this._tmpCtx.globalAlpha=_e.DIM_OPACITY),this._tmpCtx.fillText(E.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var ie=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),ue=!1;this._config.allowTransparency||(ue=function(we,Ne){for(var xe=!0,st=Ne.rgba>>>24,Ye=Ne.rgba>>>16&255,lt=Ne.rgba>>>8&255,Me=0;Me<we.data.length;Me+=4)we.data[Me]===st&&we.data[Me+1]===Ye&&we.data[Me+2]===lt?we.data[Me+3]=0:xe=!1;return xe}(ie,x));var ve=this._toCoordinateX(b),Se=this._toCoordinateY(b);this._cacheCtx.putImageData(ie,ve,Se);var Le={index:b,isEmpty:ue,inBitmap:!1};return this._addGlyphToBitmap(Le),Le},a.prototype._addGlyphToBitmap=function(E){var b=this;!("createImageBitmap"in window)||me.isFirefox||me.isSafari||(this._glyphsWaitingOnBitmap.push(E),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return b._generateBitmap()},100)))},a.prototype._generateBitmap=function(){var E=this,b=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(x){E._bitmap=x;for(var z=0;z<b.length;z++)b[z].inBitmap=!0}),this._bitmapCommitTimeout=null},a}(ce.BaseCharAtlas);ee.DynamicCharAtlas=re;var ne=function(y){function a(E,b){return y.call(this)||this}return be(a,y),a.prototype.draw=function(E,b,x,z){return!1},a}(ce.BaseCharAtlas);ee.NoneCharAtlas=ne},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BaseCharAtlas=void 0;var fe=function(){function be(){this._didWarmUp=!1}return be.prototype.dispose=function(){},be.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},be.prototype._doWarmUp=function(){},be.prototype.beginFrame=function(){},be}();ee.BaseCharAtlas=fe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.ColorContrastCache=void 0;var fe=function(){function be(){this._color={},this._rgba={}}return be.prototype.clear=function(){this._color={},this._rgba={}},be.prototype.setCss=function(_e,ce,pe){this._rgba[_e]||(this._rgba[_e]={}),this._rgba[_e][ce]=pe},be.prototype.getCss=function(_e,ce){return this._rgba[_e]?this._rgba[_e][ce]:void 0},be.prototype.setColor=function(_e,ce,pe){this._color[_e]||(this._color[_e]={}),this._color[_e][ce]=pe},be.prototype.getColor=function(_e,ce){return this._color[_e]?this._color[_e][ce]:void 0},be}();ee.ColorContrastCache=fe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.LRUMap=void 0;var fe=function(){function be(_e){this.capacity=_e,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return be.prototype._unlinkNode=function(_e){var ce=_e.prev,pe=_e.next;_e===this._head&&(this._head=pe),_e===this._tail&&(this._tail=ce),ce!==null&&(ce.next=pe),pe!==null&&(pe.prev=ce)},be.prototype._appendNode=function(_e){var ce=this._tail;ce!==null&&(ce.next=_e),_e.prev=ce,_e.next=null,this._tail=_e,this._head===null&&(this._head=_e)},be.prototype.prealloc=function(_e){for(var ce=this._nodePool,pe=0;pe<_e;pe++)ce.push({prev:null,next:null,key:null,value:null})},be.prototype.get=function(_e){var ce=this._map[_e];return ce!==void 0?(this._unlinkNode(ce),this._appendNode(ce),ce.value):null},be.prototype.peekValue=function(_e){var ce=this._map[_e];return ce!==void 0?ce.value:null},be.prototype.peek=function(){var _e=this._head;return _e===null?null:_e.value},be.prototype.set=function(_e,ce){var pe=this._map[_e];if(pe!==void 0)pe=this._map[_e],this._unlinkNode(pe),pe.value=ce;else if(this.size>=this.capacity)pe=this._head,this._unlinkNode(pe),delete this._map[pe.key],pe.key=_e,pe.value=ce,this._map[_e]=pe;else{var ae=this._nodePool;ae.length>0?((pe=ae.pop()).key=_e,pe.value=ce):pe={prev:null,next:null,key:_e,value:ce},this._map[_e]=pe,this.size++}this._appendNode(pe)},be}();ee.LRUMap=fe},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ce,pe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,me){ae.__proto__=me}||function(ae,me){for(var de in me)me.hasOwnProperty(de)&&(ae[de]=me[de])})(ce,pe)},function(ce,pe){function ae(){this.constructor=ce}fe(ce,pe),ce.prototype=pe===null?Object.create(pe):(ae.prototype=pe.prototype,new ae)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionRenderLayer=void 0;var _e=function(ce){function pe(ae,me,de,ge,le,he){var re=ce.call(this,ae,"selection",me,!0,de,ge,le,he)||this;return re._clearState(),re}return be(pe,ce),pe.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},pe.prototype.resize=function(ae){ce.prototype.resize.call(this,ae),this._clearState()},pe.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},pe.prototype.onSelectionChanged=function(ae,me,de){if(this._didStateChange(ae,me,de,this._bufferService.buffer.ydisp))if(this._clearAll(),ae&&me){var ge=ae[1]-this._bufferService.buffer.ydisp,le=me[1]-this._bufferService.buffer.ydisp,he=Math.max(ge,0),re=Math.min(le,this._bufferService.rows-1);if(!(he>=this._bufferService.rows||re<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,de){var ne=ae[0],y=me[0]-ne,a=re-he+1;this._fillCells(ne,he,y,a)}else{ne=ge===he?ae[0]:0;var E=he===re?me[0]:this._bufferService.cols;this._fillCells(ne,he,E-ne,1);var b=Math.max(re-he-1,0);if(this._fillCells(0,he+1,this._bufferService.cols,b),he!==re){var x=le===re?me[0]:this._bufferService.cols;this._fillCells(0,re,x,1)}}this._state.start=[ae[0],ae[1]],this._state.end=[me[0],me[1]],this._state.columnSelectMode=de,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},pe.prototype._didStateChange=function(ae,me,de,ge){return!this._areCoordinatesEqual(ae,this._state.start)||!this._areCoordinatesEqual(me,this._state.end)||de!==this._state.columnSelectMode||ge!==this._state.ydisp},pe.prototype._areCoordinatesEqual=function(ae,me){return!(!ae||!me)&&ae[0]===me[0]&&ae[1]===me[1]},pe}(te(13).BaseRenderLayer);ee.SelectionRenderLayer=_e},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(me,de){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,le){ge.__proto__=le}||function(ge,le){for(var he in le)le.hasOwnProperty(he)&&(ge[he]=le[he])})(me,de)},function(me,de){function ge(){this.constructor=me}fe(me,de),me.prototype=de===null?Object.create(de):(ge.prototype=de.prototype,new ge)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CursorRenderLayer=void 0;var _e=te(13),ce=te(4),pe=function(me){function de(ge,le,he,re,ne,y,a,E,b){var x=me.call(this,ge,"cursor",le,!0,he,re,y,a)||this;return x._onRequestRedraw=ne,x._coreService=E,x._coreBrowserService=b,x._cell=new ce.CellData,x._state={x:0,y:0,isFocused:!1,style:"",width:0},x._cursorRenderers={bar:x._renderBarCursor.bind(x),block:x._renderBlockCursor.bind(x),underline:x._renderUnderlineCursor.bind(x)},x}return be(de,me),de.prototype.resize=function(ge){me.prototype.resize.call(this,ge),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},de.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},de.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},de.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},de.prototype.onOptionsChanged=function(){var ge,le=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ae(this._coreBrowserService.isFocused,function(){le._render(!0)})):((ge=this._cursorBlinkStateManager)===null||ge===void 0||ge.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},de.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},de.prototype.onGridChanged=function(ge,le){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},de.prototype._render=function(ge){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var le=this._bufferService.buffer.ybase+this._bufferService.buffer.y,he=le-this._bufferService.buffer.ydisp;if(he<0||he>=this._bufferService.rows)this._clearCursor();else{var re=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(le).loadCell(re,this._cell),this._cell.content!==void 0){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css;var ne=this._optionsService.options.cursorStyle;return ne&&ne!=="block"?this._cursorRenderers[ne](re,he,this._cell):this._renderBlurCursor(re,he,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=he,this._state.isFocused=!1,this._state.style=ne,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===re&&this._state.y===he&&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"](re,he,this._cell),this._ctx.restore(),this._state.x=re,this._state.y=he,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},de.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})},de.prototype._renderBarCursor=function(ge,le,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(ge,le,this._optionsService.options.cursorWidth),this._ctx.restore()},de.prototype._renderBlockCursor=function(ge,le,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(ge,le,he.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(he,ge,le),this._ctx.restore()},de.prototype._renderUnderlineCursor=function(ge,le,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(ge,le),this._ctx.restore()},de.prototype._renderBlurCursor=function(ge,le,he){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(ge,le,he.getWidth(),1),this._ctx.restore()},de}(_e.BaseRenderLayer);ee.CursorRenderLayer=pe;var ae=function(){function me(de,ge){this._renderCallback=ge,this.isCursorVisible=!0,de&&this._restartInterval()}return Object.defineProperty(me.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),me.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)},me.prototype.restartBlinkAnimation=function(){var de=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){de._renderCallback(),de._animationFrame=void 0})))},me.prototype._restartInterval=function(de){var ge=this;de===void 0&&(de=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(ge._animationTimeRestarted){var le=600-(Date.now()-ge._animationTimeRestarted);if(ge._animationTimeRestarted=void 0,le>0)return void ge._restartInterval(le)}ge.isCursorVisible=!1,ge._animationFrame=window.requestAnimationFrame(function(){ge._renderCallback(),ge._animationFrame=void 0}),ge._blinkInterval=window.setInterval(function(){if(ge._animationTimeRestarted){var he=600-(Date.now()-ge._animationTimeRestarted);return ge._animationTimeRestarted=void 0,void ge._restartInterval(he)}ge.isCursorVisible=!ge.isCursorVisible,ge._animationFrame=window.requestAnimationFrame(function(){ge._renderCallback(),ge._animationFrame=void 0})},600)},de)},me.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)},me.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},me}()},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(me,de){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ge,le){ge.__proto__=le}||function(ge,le){for(var he in le)le.hasOwnProperty(he)&&(ge[he]=le[he])})(me,de)},function(me,de){function ge(){this.constructor=me}fe(me,de),me.prototype=de===null?Object.create(de):(ge.prototype=de.prototype,new ge)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.LinkRenderLayer=void 0;var _e=te(13),ce=te(9),pe=te(26),ae=function(me){function de(ge,le,he,re,ne,y,a,E){var b=me.call(this,ge,"link",le,!0,he,re,a,E)||this;return ne.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),ne.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),y.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),y.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),b}return be(de,me),de.prototype.resize=function(ge){me.prototype.resize.call(this,ge),this._state=void 0},de.prototype.reset=function(){this._clearCurrentLink()},de.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var ge=this._state.y2-this._state.y1-1;ge>0&&this._clearCells(0,this._state.y1+1,this._state.cols,ge),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},de.prototype._onShowLinkUnderline=function(ge){if(ge.fg===ce.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:ge.fg&&pe.is256Color(ge.fg)?this._ctx.fillStyle=this._colors.ansi[ge.fg].css:this._ctx.fillStyle=this._colors.foreground.css,ge.y1===ge.y2)this._fillBottomLineAtCells(ge.x1,ge.y1,ge.x2-ge.x1);else{this._fillBottomLineAtCells(ge.x1,ge.y1,ge.cols-ge.x1);for(var le=ge.y1+1;le<ge.y2;le++)this._fillBottomLineAtCells(0,le,ge.cols);this._fillBottomLineAtCells(0,ge.y2,ge.x2)}this._state=ge},de.prototype._onHideLinkUnderline=function(ge){this._clearCurrentLink()},de}(_e.BaseRenderLayer);ee.LinkRenderLayer=ae},function(Ze,ee,te){"use strict";var fe=this&&this.__decorate||function(me,de,ge,le){var he,re=arguments.length,ne=re<3?de:le===null?le=Object.getOwnPropertyDescriptor(de,ge):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(me,de,ge,le);else for(var y=me.length-1;y>=0;y--)(he=me[y])&&(ne=(re<3?he(ne):re>3?he(de,ge,ne):he(de,ge))||ne);return re>3&&ne&&Object.defineProperty(de,ge,ne),ne},be=this&&this.__param||function(me,de){return function(ge,le){de(ge,le,me)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZone=ee.Linkifier=void 0;var _e=te(0),ce=te(1),pe=function(){function me(de,ge,le){this._bufferService=de,this._logService=ge,this._unicodeService=le,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new _e.EventEmitter,this._onHideLinkUnderline=new _e.EventEmitter,this._onLinkTooltip=new _e.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(me.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),me.prototype.attachToDom=function(de,ge){this._element=de,this._mouseZoneManager=ge},me.prototype.linkifyRows=function(de,ge){var le=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=de,this._rowsToLinkify.end=ge):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,de),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,ge)),this._mouseZoneManager.clearAll(de,ge),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return le._linkifyRows()},me._timeBeforeLatency))},me.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var de=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var ge=de.ydisp+this._rowsToLinkify.start;if(!(ge>=de.lines.length)){for(var le=de.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,he=Math.ceil(2e3/this._bufferService.cols),re=this._bufferService.buffer.iterator(!1,ge,le,he,he);re.hasNext();)for(var ne=re.next(),y=0;y<this._linkMatchers.length;y++)this._doLinkifyRow(ne.range.first,ne.content,this._linkMatchers[y]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},me.prototype.registerLinkMatcher=function(de,ge,le){if(le===void 0&&(le={}),!ge)throw new Error("handler must be defined");var he={id:this._nextLinkMatcherId++,regex:de,handler:ge,matchIndex:le.matchIndex,validationCallback:le.validationCallback,hoverTooltipCallback:le.tooltipCallback,hoverLeaveCallback:le.leaveCallback,willLinkActivate:le.willLinkActivate,priority:le.priority||0};return this._addLinkMatcherToList(he),he.id},me.prototype._addLinkMatcherToList=function(de){if(this._linkMatchers.length!==0){for(var ge=this._linkMatchers.length-1;ge>=0;ge--)if(de.priority<=this._linkMatchers[ge].priority)return void this._linkMatchers.splice(ge+1,0,de);this._linkMatchers.splice(0,0,de)}else this._linkMatchers.push(de)},me.prototype.deregisterLinkMatcher=function(de){for(var ge=0;ge<this._linkMatchers.length;ge++)if(this._linkMatchers[ge].id===de)return this._linkMatchers.splice(ge,1),!0;return!1},me.prototype._doLinkifyRow=function(de,ge,le){for(var he,re=this,ne=new RegExp(le.regex.source,(le.regex.flags||"")+"g"),y=-1,a=function(){var b=he[typeof le.matchIndex!="number"?0:le.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",he,le),"break";if(y=ge.indexOf(b,y+1),ne.lastIndex=y+b.length,y<0)return"break";var x=E._bufferService.buffer.stringIndexToBufferIndex(de,y);if(x[0]<0)return"break";var z=E._bufferService.buffer.lines.get(x[0]);if(!z)return"break";var oe=z.getFg(x[1]),ie=oe?oe>>9&511:void 0;le.validationCallback?le.validationCallback(b,function(ue){re._rowsTimeoutId||ue&&re._addLink(x[1],x[0]-re._bufferService.buffer.ydisp,b,le,ie)}):E._addLink(x[1],x[0]-E._bufferService.buffer.ydisp,b,le,ie)},E=this;(he=ne.exec(ge))!==null&&a()!=="break";);},me.prototype._addLink=function(de,ge,le,he,re){var ne=this;if(this._mouseZoneManager&&this._element){var y=this._unicodeService.getStringCellWidth(le),a=de%this._bufferService.cols,E=ge+Math.floor(de/this._bufferService.cols),b=(a+y)%this._bufferService.cols,x=E+Math.floor((a+y)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,x--),this._mouseZoneManager.add(new ae(a+1,E+1,b+1,x+1,function(z){if(he.handler)return he.handler(z,le);var oe=window.open();oe?(oe.opener=null,oe.location.href=le):console.warn("Opening link blocked as opener could not be cleared")},function(){ne._onShowLinkUnderline.fire(ne._createLinkHoverEvent(a,E,b,x,re)),ne._element.classList.add("xterm-cursor-pointer")},function(z){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(a,E,b,x,re)),he.hoverTooltipCallback&&he.hoverTooltipCallback(z,le,{start:{x:a,y:E},end:{x:b,y:x}})},function(){ne._onHideLinkUnderline.fire(ne._createLinkHoverEvent(a,E,b,x,re)),ne._element.classList.remove("xterm-cursor-pointer"),he.hoverLeaveCallback&&he.hoverLeaveCallback()},function(z){return!he.willLinkActivate||he.willLinkActivate(z,le)}))}},me.prototype._createLinkHoverEvent=function(de,ge,le,he,re){return{x1:de,y1:ge,x2:le,y2:he,cols:this._bufferService.cols,fg:re}},me._timeBeforeLatency=200,me=fe([be(0,ce.IBufferService),be(1,ce.ILogService),be(2,ce.IUnicodeService)],me)}();ee.Linkifier=pe;var ae=function(me,de,ge,le,he,re,ne,y,a){this.x1=me,this.y1=de,this.x2=ge,this.y2=le,this.clickCallback=he,this.hoverCallback=re,this.tooltipCallback=ne,this.leaveCallback=y,this.willLinkActivate=a};ee.MouseZone=ae},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(b,x){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,oe){z.__proto__=oe}||function(z,oe){for(var ie in oe)oe.hasOwnProperty(ie)&&(z[ie]=oe[ie])})(b,x)},function(b,x){function z(){this.constructor=b}fe(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),_e=this&&this.__decorate||function(b,x,z,oe){var ie,ue=arguments.length,ve=ue<3?x:oe===null?oe=Object.getOwnPropertyDescriptor(x,z):oe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(b,x,z,oe);else for(var Se=b.length-1;Se>=0;Se--)(ie=b[Se])&&(ve=(ue<3?ie(ve):ue>3?ie(x,z,ve):ie(x,z))||ve);return ue>3&&ve&&Object.defineProperty(x,z,ve),ve},ce=this&&this.__param||function(b,x){return function(z,oe){x(z,oe,b)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionService=void 0;var pe=te(11),ae=te(52),me=te(4),de=te(0),ge=te(5),le=te(1),he=te(30),re=te(53),ne=te(2),y="\xA0",a=new RegExp(y,"g"),E=function(b){function x(z,oe,ie,ue,ve,Se,Le){var we=b.call(this)||this;return we._element=z,we._screenElement=oe,we._bufferService=ie,we._coreService=ue,we._mouseService=ve,we._optionsService=Se,we._renderService=Le,we._dragScrollAmount=0,we._enabled=!0,we._workCell=new me.CellData,we._mouseDownTimeStamp=0,we._onLinuxMouseSelection=we.register(new de.EventEmitter),we._onRedrawRequest=we.register(new de.EventEmitter),we._onSelectionChange=we.register(new de.EventEmitter),we._onRequestScrollLines=we.register(new de.EventEmitter),we._mouseMoveListener=function(Ne){return we._onMouseMove(Ne)},we._mouseUpListener=function(Ne){return we._onMouseUp(Ne)},we._coreService.onUserInput(function(){we.hasSelection&&we.clearSelection()}),we._trimListener=we._bufferService.buffer.lines.onTrim(function(Ne){return we._onTrim(Ne)}),we.register(we._bufferService.buffers.onBufferActivate(function(Ne){return we._onBufferActivate(Ne)})),we.enable(),we._model=new ae.SelectionModel(we._bufferService),we._activeSelectionMode=0,we}return be(x,b),Object.defineProperty(x.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){this._removeMouseDownListeners()},x.prototype.reset=function(){this.clearSelection()},x.prototype.disable=function(){this.clearSelection(),this._enabled=!1},x.prototype.enable=function(){this._enabled=!0},Object.defineProperty(x.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasSelection",{get:function(){var z=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd;return!(!z||!oe)&&(z[0]!==oe[0]||z[1]!==oe[1])},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionText",{get:function(){var z=this._model.finalSelectionStart,oe=this._model.finalSelectionEnd;if(!z||!oe)return"";var ie=this._bufferService.buffer,ue=[];if(this._activeSelectionMode===3){if(z[0]===oe[0])return"";for(var ve=z[1];ve<=oe[1];ve++){var Se=ie.translateBufferLineToString(ve,!0,z[0],oe[0]);ue.push(Se)}}else{var Le=z[1]===oe[1]?oe[0]:void 0;for(ue.push(ie.translateBufferLineToString(z[1],!0,z[0],Le)),ve=z[1]+1;ve<=oe[1]-1;ve++){var we=ie.lines.get(ve);Se=ie.translateBufferLineToString(ve,!0),we&&we.isWrapped?ue[ue.length-1]+=Se:ue.push(Se)}z[1]!==oe[1]&&(we=ie.lines.get(oe[1]),Se=ie.translateBufferLineToString(oe[1],!0,0,oe[0]),we&&we.isWrapped?ue[ue.length-1]+=Se:ue.push(Se))}return ue.map(function(Ne){return Ne.replace(a," ")}).join(pe.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),x.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},x.prototype.refresh=function(z){var oe=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return oe._refresh()})),pe.isLinux&&z&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},x.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},x.prototype.isClickInSelection=function(z){var oe=this._getMouseBufferCoords(z),ie=this._model.finalSelectionStart,ue=this._model.finalSelectionEnd;return!!(ie&&ue&&oe)&&this._areCoordsInSelection(oe,ie,ue)},x.prototype._areCoordsInSelection=function(z,oe,ie){return z[1]>oe[1]&&z[1]<ie[1]||oe[1]===ie[1]&&z[1]===oe[1]&&z[0]>=oe[0]&&z[0]<ie[0]||oe[1]<ie[1]&&z[1]===ie[1]&&z[0]<ie[0]||oe[1]<ie[1]&&z[1]===oe[1]&&z[0]>=oe[0]},x.prototype.selectWordAtCursor=function(z){var oe=this._getMouseBufferCoords(z);oe&&(this._selectWordAt(oe,!1),this._model.selectionEnd=void 0,this.refresh(!0))},x.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},x.prototype.selectLines=function(z,oe){this._model.clearSelection(),z=Math.max(z,0),oe=Math.min(oe,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,z],this._model.selectionEnd=[this._bufferService.cols,oe],this.refresh(),this._onSelectionChange.fire()},x.prototype._onTrim=function(z){this._model.onTrim(z)&&this.refresh()},x.prototype._getMouseBufferCoords=function(z){var oe=this._mouseService.getCoords(z,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(oe)return oe[0]--,oe[1]--,oe[1]+=this._bufferService.buffer.ydisp,oe},x.prototype._getMouseEventScrollAmount=function(z){var oe=he.getCoordsRelativeToElement(z,this._screenElement)[1],ie=this._renderService.dimensions.canvasHeight;return oe>=0&&oe<=ie?0:(oe>ie&&(oe-=ie),oe=Math.min(Math.max(oe,-50),50),(oe/=50)/Math.abs(oe)+Math.round(14*oe))},x.prototype.shouldForceSelection=function(z){return pe.isMac?z.altKey&&this._optionsService.options.macOptionClickForcesSelection:z.shiftKey},x.prototype.onMouseDown=function(z){if(this._mouseDownTimeStamp=z.timeStamp,(z.button!==2||!this.hasSelection)&&z.button===0){if(!this._enabled){if(!this.shouldForceSelection(z))return;z.stopPropagation()}z.preventDefault(),this._dragScrollAmount=0,this._enabled&&z.shiftKey?this._onIncrementalClick(z):z.detail===1?this._onSingleClick(z):z.detail===2?this._onDoubleClick(z):z.detail===3&&this._onTripleClick(z),this._addMouseDownListeners(),this.refresh(!0)}},x.prototype._addMouseDownListeners=function(){var z=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return z._dragScroll()},50)},x.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},x.prototype._onIncrementalClick=function(z){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(z))},x.prototype._onSingleClick=function(z){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(z)?3:0,this._model.selectionStart=this._getMouseBufferCoords(z),this._model.selectionStart){this._model.selectionEnd=void 0;var oe=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);oe&&oe.length!==this._model.selectionStart[0]&&oe.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},x.prototype._onDoubleClick=function(z){var oe=this._getMouseBufferCoords(z);oe&&(this._activeSelectionMode=1,this._selectWordAt(oe,!0))},x.prototype._onTripleClick=function(z){var oe=this._getMouseBufferCoords(z);oe&&(this._activeSelectionMode=2,this._selectLineAt(oe[1]))},x.prototype.shouldColumnSelect=function(z){return z.altKey&&!(pe.isMac&&this._optionsService.options.macOptionClickForcesSelection)},x.prototype._onMouseMove=function(z){if(z.stopImmediatePropagation(),this._model.selectionStart){var oe=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(z),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(z),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var ie=this._bufferService.buffer;if(this._model.selectionEnd[1]<ie.lines.length){var ue=ie.lines.get(this._model.selectionEnd[1]);ue&&ue.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}oe&&oe[0]===this._model.selectionEnd[0]&&oe[1]===this._model.selectionEnd[1]||this.refresh(!0)}else this.refresh(!0)}},x.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var z=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(z.ydisp+this._bufferService.rows,z.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=z.ydisp),this.refresh()}},x.prototype._onMouseUp=function(z){var oe=z.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&oe<500&&z.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var ie=this._mouseService.getCoords(z,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(ie&&ie[0]!==void 0&&ie[1]!==void 0){var ue=re.moveToCellSequence(ie[0]-1,ie[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ue,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},x.prototype._onBufferActivate=function(z){var oe=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=z.activeBuffer.lines.onTrim(function(ie){return oe._onTrim(ie)})},x.prototype._convertViewportColToCharacterIndex=function(z,oe){for(var ie=oe[0],ue=0;oe[0]>=ue;ue++){var ve=z.loadCell(ue,this._workCell).getChars().length;this._workCell.getWidth()===0?ie--:ve>1&&oe[0]!==ue&&(ie+=ve-1)}return ie},x.prototype.setSelection=function(z,oe,ie){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[z,oe],this._model.selectionStartLength=ie,this.refresh()},x.prototype._getWordAt=function(z,oe,ie,ue){if(ie===void 0&&(ie=!0),ue===void 0&&(ue=!0),!(z[0]>=this._bufferService.cols)){var ve=this._bufferService.buffer,Se=ve.lines.get(z[1]);if(Se){var Le=ve.translateBufferLineToString(z[1],!1),we=this._convertViewportColToCharacterIndex(Se,z),Ne=we,xe=z[0]-we,st=0,Ye=0,lt=0,Me=0;if(Le.charAt(we)===" "){for(;we>0&&Le.charAt(we-1)===" ";)we--;for(;Ne<Le.length&&Le.charAt(Ne+1)===" ";)Ne++}else{var Be=z[0],Re=z[0];Se.getWidth(Be)===0&&(st++,Be--),Se.getWidth(Re)===2&&(Ye++,Re++);var ke=Se.getString(Re).length;for(ke>1&&(Me+=ke-1,Ne+=ke-1);Be>0&&we>0&&!this._isCharWordSeparator(Se.loadCell(Be-1,this._workCell));){Se.loadCell(Be-1,this._workCell);var Ge=this._workCell.getChars().length;this._workCell.getWidth()===0?(st++,Be--):Ge>1&&(lt+=Ge-1,we-=Ge-1),we--,Be--}for(;Re<Se.length&&Ne+1<Le.length&&!this._isCharWordSeparator(Se.loadCell(Re+1,this._workCell));){Se.loadCell(Re+1,this._workCell);var Et=this._workCell.getChars().length;this._workCell.getWidth()===2?(Ye++,Re++):Et>1&&(Me+=Et-1,Ne+=Et-1),Ne++,Re++}}Ne++;var It=we+xe-st+lt,en=Math.min(this._bufferService.cols,Ne-we+st+Ye-lt-Me);if(oe||Le.slice(we,Ne).trim()!==""){if(ie&&It===0&&Se.getCodePoint(0)!==32){var Zt=ve.lines.get(z[1]-1);if(Zt&&Se.isWrapped&&Zt.getCodePoint(this._bufferService.cols-1)!==32){var rt=this._getWordAt([this._bufferService.cols-1,z[1]-1],!1,!0,!1);if(rt){var at=this._bufferService.cols-rt.start;It-=at,en+=at}}}if(ue&&It+en===this._bufferService.cols&&Se.getCodePoint(this._bufferService.cols-1)!==32){var Ct=ve.lines.get(z[1]+1);if(Ct&&Ct.isWrapped&&Ct.getCodePoint(0)!==32){var qt=this._getWordAt([0,z[1]+1],!1,!1,!0);qt&&(en+=qt.length)}}return{start:It,length:en}}}}},x.prototype._selectWordAt=function(z,oe){var ie=this._getWordAt(z,oe);if(ie){for(;ie.start<0;)ie.start+=this._bufferService.cols,z[1]--;this._model.selectionStart=[ie.start,z[1]],this._model.selectionStartLength=ie.length}},x.prototype._selectToWordAt=function(z){var oe=this._getWordAt(z,!0);if(oe){for(var ie=z[1];oe.start<0;)oe.start+=this._bufferService.cols,ie--;if(!this._model.areSelectionValuesReversed())for(;oe.start+oe.length>this._bufferService.cols;)oe.length-=this._bufferService.cols,ie++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?oe.start:oe.start+oe.length,ie]}},x.prototype._isCharWordSeparator=function(z){return z.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(z.getChars())>=0},x.prototype._selectLineAt=function(z){var oe=this._bufferService.buffer.getWrappedRangeForLine(z);this._model.selectionStart=[0,oe.first],this._model.selectionEnd=[this._bufferService.cols,oe.last],this._model.selectionStartLength=0},x=_e([ce(2,le.IBufferService),ce(3,le.ICoreService),ce(4,ge.IMouseService),ce(5,le.IOptionsService),ce(6,ge.IRenderService)],x)}(ne.Disposable);ee.SelectionService=E},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.SelectionModel=void 0;var fe=function(){function be(_e){this._bufferService=_e,this.isSelectAllActive=!1,this.selectionStartLength=0}return be.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(be.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(be.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 _e=this.selectionStart[0]+this.selectionStartLength;return _e>this._bufferService.cols?[_e%this._bufferService.cols,this.selectionStart[1]+Math.floor(_e/this._bufferService.cols)]:[_e,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}),be.prototype.areSelectionValuesReversed=function(){var _e=this.selectionStart,ce=this.selectionEnd;return!(!_e||!ce)&&(_e[1]>ce[1]||_e[1]===ce[1]&&_e[0]>ce[0])},be.prototype.onTrim=function(_e){return this.selectionStart&&(this.selectionStart[1]-=_e),this.selectionEnd&&(this.selectionEnd[1]-=_e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},be}();ee.SelectionModel=fe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.moveToCellSequence=void 0;var fe=te(12);function be(de,ge,le,he){var re=de-_e(le,de),ne=ge-_e(le,ge);return me(Math.abs(re-ne)-function(y,a,E){for(var b=0,x=y-_e(E,y),z=a-_e(E,a),oe=0;oe<Math.abs(x-z);oe++){var ie=ce(y,a)==="A"?-1:1,ue=E.buffer.lines.get(x+ie*oe);ue&&ue.isWrapped&&b++}return b}(de,ge,le),ae(ce(de,ge),he))}function _e(de,ge){for(var le=0,he=de.buffer.lines.get(ge),re=he&&he.isWrapped;re&&ge>=0&&ge<de.rows;)le++,re=(he=de.buffer.lines.get(--ge))&&he.isWrapped;return le}function ce(de,ge){return de>ge?"A":"B"}function pe(de,ge,le,he,re,ne){for(var y=de,a=ge,E="";y!==le||a!==he;)y+=re?1:-1,re&&y>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(a,!1,de,y),y=0,de=0,a++):!re&&y<0&&(E+=ne.buffer.translateBufferLineToString(a,!1,0,de+1),de=y=ne.cols-1,a--);return E+ne.buffer.translateBufferLineToString(a,!1,de,y)}function ae(de,ge){var le=ge?"O":"[";return fe.C0.ESC+le+de}function me(de,ge){de=Math.floor(de);for(var le="",he=0;he<de;he++)le+=ge;return le}ee.moveToCellSequence=function(de,ge,le,he){var re,ne=le.buffer.x,y=le.buffer.y;if(!le.buffer.hasScrollback)return function(E,b,x,z,oe,ie){return be(b,z,oe,ie).length===0?"":me(pe(E,b,E,b-_e(oe,b),!1,oe).length,ae("D",ie))}(ne,y,0,ge,le,he)+be(y,ge,le,he)+function(E,b,x,z,oe,ie){var ue;ue=be(b,z,oe,ie).length>0?z-_e(oe,z):b;var ve=z,Se=function(Le,we,Ne,xe,st,Ye){var lt;return lt=be(Ne,xe,st,Ye).length>0?xe-_e(st,xe):we,Le<Ne&&lt<=xe||Le>=Ne&&lt<xe?"C":"D"}(E,b,x,z,oe,ie);return me(pe(E,ue,x,ve,Se==="C",oe).length,ae(Se,ie))}(ne,y,de,ge,le,he);if(y===ge)return re=ne>de?"D":"C",me(Math.abs(ne-de),ae(re,he));re=y>ge?"D":"C";var a=Math.abs(y-ge);return me(function(E,b){return b.cols-E}(y>ge?de:ne,le)+(a-1)*le.cols+1+((y>ge?ne:de)-1),ae(re,he))}},function(Ze,ee,te){"use strict";var fe=this&&this.__decorate||function(pe,ae,me,de){var ge,le=arguments.length,he=le<3?ae:de===null?de=Object.getOwnPropertyDescriptor(ae,me):de;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(pe,ae,me,de);else for(var re=pe.length-1;re>=0;re--)(ge=pe[re])&&(he=(le<3?ge(he):le>3?ge(ae,me,he):ge(ae,me))||he);return le>3&&he&&Object.defineProperty(ae,me,he),he},be=this&&this.__param||function(pe,ae){return function(me,de){ae(me,de,pe)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.SoundService=void 0;var _e=te(1),ce=function(){function pe(ae){this._optionsService=ae}return Object.defineProperty(pe,"audioContext",{get:function(){if(!pe._audioContext){var ae=window.AudioContext||window.webkitAudioContext;if(!ae)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;pe._audioContext=new ae}return pe._audioContext},enumerable:!1,configurable:!0}),pe.prototype.playBellSound=function(){var ae=pe.audioContext;if(ae){var me=ae.createBufferSource();ae.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(de){me.buffer=de,me.connect(ae.destination),me.start(0)})}},pe.prototype._base64ToArrayBuffer=function(ae){for(var me=window.atob(ae),de=me.length,ge=new Uint8Array(de),le=0;le<de;le++)ge[le]=me.charCodeAt(le);return ge.buffer},pe.prototype._removeMimeType=function(ae){return ae.split(",")[1]},pe=fe([be(0,_e.IOptionsService)],pe)}();ee.SoundService=ce},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(le,he){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var y in ne)ne.hasOwnProperty(y)&&(re[y]=ne[y])})(le,he)},function(le,he){function re(){this.constructor=le}fe(le,he),le.prototype=he===null?Object.create(he):(re.prototype=he.prototype,new re)}),_e=this&&this.__decorate||function(le,he,re,ne){var y,a=arguments.length,E=a<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(le,he,re,ne);else for(var b=le.length-1;b>=0;b--)(y=le[b])&&(E=(a<3?y(E):a>3?y(he,re,E):y(he,re))||E);return a>3&&E&&Object.defineProperty(he,re,E),E},ce=this&&this.__param||function(le,he){return function(re,ne){he(re,ne,le)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseZoneManager=void 0;var pe=te(2),ae=te(7),me=te(5),de=te(1),ge=function(le){function he(re,ne,y,a,E,b){var x=le.call(this)||this;return x._element=re,x._screenElement=ne,x._bufferService=y,x._mouseService=a,x._selectionService=E,x._optionsService=b,x._zones=[],x._areZonesActive=!1,x._lastHoverCoords=[void 0,void 0],x._initialSelectionLength=0,x.register(ae.addDisposableDomListener(x._element,"mousedown",function(z){return x._onMouseDown(z)})),x._mouseMoveListener=function(z){return x._onMouseMove(z)},x._mouseLeaveListener=function(z){return x._onMouseLeave(z)},x._clickListener=function(z){return x._onClick(z)},x}return be(he,le),he.prototype.dispose=function(){le.prototype.dispose.call(this),this._deactivate()},he.prototype.add=function(re){this._zones.push(re),this._zones.length===1&&this._activate()},he.prototype.clearAll=function(re,ne){if(this._zones.length!==0){re&&ne||(re=0,ne=this._bufferService.rows-1);for(var y=0;y<this._zones.length;y++){var a=this._zones[y];(a.y1>re&&a.y1<=ne+1||a.y2>re&&a.y2<=ne+1||a.y1<re&&a.y2>ne+1)&&(this._currentZone&&this._currentZone===a&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(y--,1))}this._zones.length===0&&this._deactivate()}},he.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))},he.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))},he.prototype._onMouseMove=function(re){this._lastHoverCoords[0]===re.pageX&&this._lastHoverCoords[1]===re.pageY||(this._onHover(re),this._lastHoverCoords=[re.pageX,re.pageY])},he.prototype._onHover=function(re){var ne=this,y=this._findZoneEventAt(re);y!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),y&&(this._currentZone=y,y.hoverCallback&&y.hoverCallback(re),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(re)},this._optionsService.options.linkTooltipHoverDuration)))},he.prototype._onTooltip=function(re){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(re);ne&&ne.tooltipCallback&&ne.tooltipCallback(re)},he.prototype._onMouseDown=function(re){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ne=this._findZoneEventAt(re);ne!=null&&ne.willLinkActivate(re)&&(re.preventDefault(),re.stopImmediatePropagation())}},he.prototype._onMouseLeave=function(re){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},he.prototype._onClick=function(re){var ne=this._findZoneEventAt(re),y=this._getSelectionLength();ne&&y===this._initialSelectionLength&&(ne.clickCallback(re),re.preventDefault(),re.stopImmediatePropagation())},he.prototype._getSelectionLength=function(){var re=this._selectionService.selectionText;return re?re.length:0},he.prototype._findZoneEventAt=function(re){var ne=this._mouseService.getCoords(re,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(ne)for(var y=ne[0],a=ne[1],E=0;E<this._zones.length;E++){var b=this._zones[E];if(b.y1===b.y2){if(a===b.y1&&y>=b.x1&&y<b.x2)return b}else if(a===b.y1&&y>=b.x1||a===b.y2&&y<b.x2||a>b.y1&&a<b.y2)return b}},he=_e([ce(2,de.IBufferService),ce(3,me.IMouseService),ce(4,me.ISelectionService),ce(5,de.IOptionsService)],he)}(pe.Disposable);ee.MouseZoneManager=ge},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(he,re){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,y){ne.__proto__=y}||function(ne,y){for(var a in y)y.hasOwnProperty(a)&&(ne[a]=y[a])})(he,re)},function(he,re){function ne(){this.constructor=he}fe(he,re),he.prototype=re===null?Object.create(re):(ne.prototype=re.prototype,new ne)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.AccessibilityManager=void 0;var _e=te(18),ce=te(11),pe=te(31),ae=te(7),me=te(2),de=te(32),ge=te(17),le=function(he){function re(ne,y){var a=he.call(this)||this;a._terminal=ne,a._renderService=y,a._liveRegionLineCount=0,a._charsToConsume=[],a._charsToAnnounce="",a._accessibilityTreeRoot=document.createElement("div"),a._accessibilityTreeRoot.classList.add("xterm-accessibility"),a._rowContainer=document.createElement("div"),a._rowContainer.classList.add("xterm-accessibility-tree"),a._rowContainer.setAttribute("role","list"),a._rowElements=[];for(var E=0;E<a._terminal.rows;E++)a._rowElements[E]=a._createAccessibilityTreeNode(),a._rowContainer.appendChild(a._rowElements[E]);if(a._topBoundaryFocusListener=function(b){return a._onBoundaryFocus(b,0)},a._bottomBoundaryFocusListener=function(b){return a._onBoundaryFocus(b,1)},a._rowElements[0].addEventListener("focus",a._topBoundaryFocusListener),a._rowElements[a._rowElements.length-1].addEventListener("focus",a._bottomBoundaryFocusListener),a._refreshRowsDimensions(),a._accessibilityTreeRoot.appendChild(a._rowContainer),a._renderRowsDebouncer=new pe.RenderDebouncer(a._renderRows.bind(a)),a._refreshRows(),a._liveRegion=document.createElement("div"),a._liveRegion.classList.add("live-region"),a._liveRegion.setAttribute("aria-live","assertive"),a._accessibilityTreeRoot.appendChild(a._liveRegion),!a._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return a._terminal.element.insertAdjacentElement("afterbegin",a._accessibilityTreeRoot),a.register(a._renderRowsDebouncer),a.register(a._terminal.onResize(function(b){return a._onResize(b.rows)})),a.register(a._terminal.onRender(function(b){return a._refreshRows(b.start,b.end)})),a.register(a._terminal.onScroll(function(){return a._refreshRows()})),a.register(a._terminal.onA11yChar(function(b){return a._onChar(b)})),a.register(a._terminal.onLineFeed(function(){return a._onChar(`
`)})),a.register(a._terminal.onA11yTab(function(b){return a._onTab(b)})),a.register(a._terminal.onKey(function(b){return a._onKey(b.key)})),a.register(a._terminal.onBlur(function(){return a._clearLiveRegion()})),a.register(a._renderService.onDimensionsChange(function(){return a._refreshRowsDimensions()})),a._screenDprMonitor=new de.ScreenDprMonitor,a.register(a._screenDprMonitor),a._screenDprMonitor.setListener(function(){return a._refreshRowsDimensions()}),a.register(ae.addDisposableDomListener(window,"resize",function(){return a._refreshRowsDimensions()})),a}return be(re,he),re.prototype.dispose=function(){he.prototype.dispose.call(this),ge.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},re.prototype._onBoundaryFocus=function(ne,y){var a=ne.target,E=this._rowElements[y===0?1:this._rowElements.length-2];if(a.getAttribute("aria-posinset")!==(y===0?"1":""+this._terminal.buffer.lines.length)&&ne.relatedTarget===E){var b,x;if(y===0?(b=a,x=this._rowElements.pop(),this._rowContainer.removeChild(x)):(b=this._rowElements.shift(),x=a,this._rowContainer.removeChild(b)),b.removeEventListener("focus",this._topBoundaryFocusListener),x.removeEventListener("focus",this._bottomBoundaryFocusListener),y===0){var z=this._createAccessibilityTreeNode();this._rowElements.unshift(z),this._rowContainer.insertAdjacentElement("afterbegin",z)}else z=this._createAccessibilityTreeNode(),this._rowElements.push(z),this._rowContainer.appendChild(z);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(y===0?-1:1),this._rowElements[y===0?1:this._rowElements.length-2].focus(),ne.preventDefault(),ne.stopImmediatePropagation()}},re.prototype._onResize=function(ne){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var y=this._rowContainer.children.length;y<this._terminal.rows;y++)this._rowElements[y]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[y]);for(;this._rowElements.length>ne;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},re.prototype._createAccessibilityTreeNode=function(){var ne=document.createElement("div");return ne.setAttribute("role","listitem"),ne.tabIndex=-1,this._refreshRowDimensions(ne),ne},re.prototype._onTab=function(ne){for(var y=0;y<ne;y++)this._onChar(" ")},re.prototype._onChar=function(ne){var y=this;this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==ne&&(this._charsToAnnounce+=ne):this._charsToAnnounce+=ne,ne===`
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=_e.tooMuchOutput)),ce.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){y._accessibilityTreeRoot.appendChild(y._liveRegion)},0))},re.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,ce.isMac&&ge.removeElementFromParent(this._liveRegion)},re.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},re.prototype._refreshRows=function(ne,y){this._renderRowsDebouncer.refresh(ne,y,this._terminal.rows)},re.prototype._renderRows=function(ne,y){for(var a=this._terminal.buffer,E=a.lines.length.toString(),b=ne;b<=y;b++){var x=a.translateBufferLineToString(a.ydisp+b,!0),z=(a.ydisp+b+1).toString(),oe=this._rowElements[b];oe&&(x.length===0?oe.innerHTML="&nbsp;":oe.textContent=x,oe.setAttribute("aria-posinset",z),oe.setAttribute("aria-setsize",E))}this._announceCharacters()},re.prototype._refreshRowsDimensions=function(){if(this._renderService.dimensions.actualCellHeight){this._rowElements.length!==this._terminal.rows&&this._onResize(this._terminal.rows);for(var ne=0;ne<this._terminal.rows;ne++)this._refreshRowDimensions(this._rowElements[ne])}},re.prototype._refreshRowDimensions=function(ne){ne.style.height=this._renderService.dimensions.actualCellHeight+"px"},re.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},re}(me.Disposable);ee.AccessibilityManager=le},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(a,E){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var z in x)x.hasOwnProperty(z)&&(b[z]=x[z])})(a,E)},function(a,E){function b(){this.constructor=a}fe(a,E),a.prototype=E===null?Object.create(E):(b.prototype=E.prototype,new b)}),_e=this&&this.__decorate||function(a,E,b,x){var z,oe=arguments.length,ie=oe<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,b):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ie=Reflect.decorate(a,E,b,x);else for(var ue=a.length-1;ue>=0;ue--)(z=a[ue])&&(ie=(oe<3?z(ie):oe>3?z(E,b,ie):z(E,b))||ie);return oe>3&&ie&&Object.defineProperty(E,b,ie),ie},ce=this&&this.__param||function(a,E){return function(b,x){E(b,x,a)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRenderer=void 0;var pe=te(58),ae=te(9),me=te(2),de=te(5),ge=te(1),le=te(0),he=te(10),re=te(17),ne=1,y=function(a){function E(b,x,z,oe,ie,ue,ve,Se,Le){var we=a.call(this)||this;return we._colors=b,we._element=x,we._screenElement=z,we._viewportElement=oe,we._linkifier=ie,we._linkifier2=ue,we._charSizeService=ve,we._optionsService=Se,we._bufferService=Le,we._terminalClass=ne++,we._rowElements=[],we._rowContainer=document.createElement("div"),we._rowContainer.classList.add("xterm-rows"),we._rowContainer.style.lineHeight="normal",we._rowContainer.setAttribute("aria-hidden","true"),we._refreshRowElements(we._bufferService.cols,we._bufferService.rows),we._selectionContainer=document.createElement("div"),we._selectionContainer.classList.add("xterm-selection"),we._selectionContainer.setAttribute("aria-hidden","true"),we.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},we._updateDimensions(),we._injectCss(),we._rowFactory=new pe.DomRendererRowFactory(document,we._optionsService,we._colors),we._element.classList.add("xterm-dom-renderer-owner-"+we._terminalClass),we._screenElement.appendChild(we._rowContainer),we._screenElement.appendChild(we._selectionContainer),we._linkifier.onShowLinkUnderline(function(Ne){return we._onLinkHover(Ne)}),we._linkifier.onHideLinkUnderline(function(Ne){return we._onLinkLeave(Ne)}),we._linkifier2.onShowLinkUnderline(function(Ne){return we._onLinkHover(Ne)}),we._linkifier2.onHideLinkUnderline(function(Ne){return we._onLinkLeave(Ne)}),we}return be(E,a),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new le.EventEmitter().event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),re.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),a.prototype.dispose.call(this)},E.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 b=0,x=this._rowElements;b<x.length;b++){var z=x[b];z.style.width=this.dimensions.canvasWidth+"px",z.style.height=this.dimensions.actualCellHeight+"px",z.style.lineHeight=this.dimensions.actualCellHeight+"px",z.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var oe=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=oe,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},E.prototype.setColors=function(b){this._colors=b,this._injectCss()},E.prototype._injectCss=function(){var b=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var x=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";x+=this._terminalSelector+" span:not(."+pe.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+pe.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+pe.ITALIC_CLASS+" { font-style: italic;}",x+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",x+="@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+"; }}",x+=this._terminalSelector+" .xterm-rows:not(.xterm-focus) ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_BLINK_CLASS+":not(."+pe.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_BLINK_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+pe.CURSOR_CLASS+"."+pe.CURSOR_STYLE_UNDERLINE_CLASS+" { box-shadow: 0 -1px 0 "+this._colors.cursor.css+" inset;}",x+=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(z,oe){x+=b._terminalSelector+" .xterm-fg-"+oe+" { color: "+z.css+"; }"+b._terminalSelector+" .xterm-bg-"+oe+" { background-color: "+z.css+"; }"}),x+=this._terminalSelector+" .xterm-fg-"+ae.INVERTED_DEFAULT_COLOR+" { color: "+he.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+ae.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=x},E.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},E.prototype._refreshRowElements=function(b,x){for(var z=this._rowElements.length;z<=x;z++){var oe=document.createElement("div");this._rowContainer.appendChild(oe),this._rowElements.push(oe)}for(;this._rowElements.length>x;)this._rowContainer.removeChild(this._rowElements.pop())},E.prototype.onResize=function(b,x){this._refreshRowElements(b,x),this._updateDimensions()},E.prototype.onCharSizeChanged=function(){this._updateDimensions()},E.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},E.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},E.prototype.onSelectionChanged=function(b,x,z){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(b&&x){var oe=b[1]-this._bufferService.buffer.ydisp,ie=x[1]-this._bufferService.buffer.ydisp,ue=Math.max(oe,0),ve=Math.min(ie,this._bufferService.rows-1);if(!(ue>=this._bufferService.rows||ve<0)){var Se=document.createDocumentFragment();if(z)Se.appendChild(this._createSelectionElement(ue,b[0],x[0],ve-ue+1));else{var Le=oe===ue?b[0]:0,we=ue===ve?x[0]:this._bufferService.cols;Se.appendChild(this._createSelectionElement(ue,Le,we));var Ne=ve-ue-1;if(Se.appendChild(this._createSelectionElement(ue+1,0,this._bufferService.cols,Ne)),ue!==ve){var xe=ie===ve?x[0]:this._bufferService.cols;Se.appendChild(this._createSelectionElement(ve,0,xe))}}this._selectionContainer.appendChild(Se)}}},E.prototype._createSelectionElement=function(b,x,z,oe){oe===void 0&&(oe=1);var ie=document.createElement("div");return ie.style.height=oe*this.dimensions.actualCellHeight+"px",ie.style.top=b*this.dimensions.actualCellHeight+"px",ie.style.left=x*this.dimensions.actualCellWidth+"px",ie.style.width=this.dimensions.actualCellWidth*(z-x)+"px",ie},E.prototype.onCursorMove=function(){},E.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},E.prototype.clear=function(){for(var b=0,x=this._rowElements;b<x.length;b++)x[b].innerHTML=""},E.prototype.renderRows=function(b,x){for(var z=this._bufferService.buffer.ybase+this._bufferService.buffer.y,oe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),ie=this._optionsService.options.cursorBlink,ue=b;ue<=x;ue++){var ve=this._rowElements[ue];ve.innerHTML="";var Se=ue+this._bufferService.buffer.ydisp,Le=this._bufferService.buffer.lines.get(Se),we=this._optionsService.options.cursorStyle;ve.appendChild(this._rowFactory.createRow(Le,Se===z,we,oe,ie,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(E.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),E.prototype.registerCharacterJoiner=function(b){return-1},E.prototype.deregisterCharacterJoiner=function(b){return!1},E.prototype._onLinkHover=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!0)},E.prototype._onLinkLeave=function(b){this._setCellUnderline(b.x1,b.x2,b.y1,b.y2,b.cols,!1)},E.prototype._setCellUnderline=function(b,x,z,oe,ie,ue){for(;b!==x||z!==oe;){var ve=this._rowElements[z];if(!ve)return;var Se=ve.children[b];Se&&(Se.style.textDecoration=ue?"underline":"none"),++b>=ie&&(b=0,z++)}},E=_e([ce(6,de.ICharSizeService),ce(7,ge.IOptionsService),ce(8,ge.IBufferService)],E)}(me.Disposable);ee.DomRenderer=y},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.DomRendererRowFactory=ee.CURSOR_STYLE_UNDERLINE_CLASS=ee.CURSOR_STYLE_BAR_CLASS=ee.CURSOR_STYLE_BLOCK_CLASS=ee.CURSOR_BLINK_CLASS=ee.CURSOR_CLASS=ee.UNDERLINE_CLASS=ee.ITALIC_CLASS=ee.DIM_CLASS=ee.BOLD_CLASS=void 0;var fe=te(9),be=te(3),_e=te(4),ce=te(10);ee.BOLD_CLASS="xterm-bold",ee.DIM_CLASS="xterm-dim",ee.ITALIC_CLASS="xterm-italic",ee.UNDERLINE_CLASS="xterm-underline",ee.CURSOR_CLASS="xterm-cursor",ee.CURSOR_BLINK_CLASS="xterm-cursor-blink",ee.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",ee.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",ee.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var pe=function(){function me(de,ge,le){this._document=de,this._optionsService=ge,this._colors=le,this._workCell=new _e.CellData}return me.prototype.setColors=function(de){this._colors=de},me.prototype.createRow=function(de,ge,le,he,re,ne,y){for(var a=this._document.createDocumentFragment(),E=0,b=Math.min(de.length,y)-1;b>=0;b--)if(de.loadCell(b,this._workCell).getCode()!==be.NULL_CELL_CODE||ge&&b===he){E=b+1;break}for(b=0;b<E;b++){de.loadCell(b,this._workCell);var x=this._workCell.getWidth();if(x!==0){var z=this._document.createElement("span");if(x>1&&(z.style.width=ne*x+"px"),ge&&b===he)switch(z.classList.add(ee.CURSOR_CLASS),re&&z.classList.add(ee.CURSOR_BLINK_CLASS),le){case"bar":z.classList.add(ee.CURSOR_STYLE_BAR_CLASS);break;case"underline":z.classList.add(ee.CURSOR_STYLE_UNDERLINE_CLASS);break;default:z.classList.add(ee.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&z.classList.add(ee.BOLD_CLASS),this._workCell.isItalic()&&z.classList.add(ee.ITALIC_CLASS),this._workCell.isDim()&&z.classList.add(ee.DIM_CLASS),this._workCell.isUnderline()&&z.classList.add(ee.UNDERLINE_CLASS),this._workCell.isInvisible()?z.textContent=be.WHITESPACE_CELL_CHAR:z.textContent=this._workCell.getChars()||be.WHITESPACE_CELL_CHAR;var oe=this._workCell.getFgColor(),ie=this._workCell.getFgColorMode(),ue=this._workCell.getBgColor(),ve=this._workCell.getBgColorMode(),Se=!!this._workCell.isInverse();if(Se){var Le=oe;oe=ue,ue=Le;var we=ie;ie=ve,ve=we}switch(ie){case 16777216:case 33554432:this._workCell.isBold()&&oe<8&&this._optionsService.options.drawBoldTextInBrightColors&&(oe+=8),this._applyMinimumContrast(z,this._colors.background,this._colors.ansi[oe])||z.classList.add("xterm-fg-"+oe);break;case 50331648:var Ne=ce.rgba.toColor(oe>>16&255,oe>>8&255,255&oe);this._applyMinimumContrast(z,this._colors.background,Ne)||this._addStyle(z,"color:#"+ae(oe.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(z,this._colors.background,this._colors.foreground)||Se&&z.classList.add("xterm-fg-"+fe.INVERTED_DEFAULT_COLOR)}switch(ve){case 16777216:case 33554432:z.classList.add("xterm-bg-"+ue);break;case 50331648:this._addStyle(z,"background-color:#"+ae(ue.toString(16),"0",6));break;case 0:default:Se&&z.classList.add("xterm-bg-"+fe.INVERTED_DEFAULT_COLOR)}a.appendChild(z)}}return a},me.prototype._applyMinimumContrast=function(de,ge,le){if(this._optionsService.options.minimumContrastRatio===1)return!1;var he=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return he===void 0&&(he=ce.color.ensureContrastRatio(ge,le,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,he!=null?he:null)),!!he&&(this._addStyle(de,"color:"+he.css),!0)},me.prototype._addStyle=function(de,ge){de.setAttribute("style",""+(de.getAttribute("style")||"")+ge+";")},me}();function ae(me,de,ge){for(;me.length<ge;)me=de+me;return me}ee.DomRendererRowFactory=pe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.evaluateKeyboardEvent=void 0;var fe=te(12),be={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:["'",'"']};ee.evaluateKeyboardEvent=function(_e,ce,pe,ae){var me={type:0,cancel:!1,key:void 0},de=(_e.shiftKey?1:0)|(_e.altKey?2:0)|(_e.ctrlKey?4:0)|(_e.metaKey?8:0);switch(_e.keyCode){case 0:_e.key==="UIKeyInputUpArrow"?me.key=ce?fe.C0.ESC+"OA":fe.C0.ESC+"[A":_e.key==="UIKeyInputLeftArrow"?me.key=ce?fe.C0.ESC+"OD":fe.C0.ESC+"[D":_e.key==="UIKeyInputRightArrow"?me.key=ce?fe.C0.ESC+"OC":fe.C0.ESC+"[C":_e.key==="UIKeyInputDownArrow"&&(me.key=ce?fe.C0.ESC+"OB":fe.C0.ESC+"[B");break;case 8:if(_e.shiftKey){me.key=fe.C0.BS;break}if(_e.altKey){me.key=fe.C0.ESC+fe.C0.DEL;break}me.key=fe.C0.DEL;break;case 9:if(_e.shiftKey){me.key=fe.C0.ESC+"[Z";break}me.key=fe.C0.HT,me.cancel=!0;break;case 13:me.key=_e.altKey?fe.C0.ESC+fe.C0.CR:fe.C0.CR,me.cancel=!0;break;case 27:me.key=fe.C0.ESC,_e.altKey&&(me.key=fe.C0.ESC+fe.C0.ESC),me.cancel=!0;break;case 37:if(_e.metaKey)break;de?(me.key=fe.C0.ESC+"[1;"+(de+1)+"D",me.key===fe.C0.ESC+"[1;3D"&&(me.key=fe.C0.ESC+(pe?"b":"[1;5D"))):me.key=ce?fe.C0.ESC+"OD":fe.C0.ESC+"[D";break;case 39:if(_e.metaKey)break;de?(me.key=fe.C0.ESC+"[1;"+(de+1)+"C",me.key===fe.C0.ESC+"[1;3C"&&(me.key=fe.C0.ESC+(pe?"f":"[1;5C"))):me.key=ce?fe.C0.ESC+"OC":fe.C0.ESC+"[C";break;case 38:if(_e.metaKey)break;de?(me.key=fe.C0.ESC+"[1;"+(de+1)+"A",pe||me.key!==fe.C0.ESC+"[1;3A"||(me.key=fe.C0.ESC+"[1;5A")):me.key=ce?fe.C0.ESC+"OA":fe.C0.ESC+"[A";break;case 40:if(_e.metaKey)break;de?(me.key=fe.C0.ESC+"[1;"+(de+1)+"B",pe||me.key!==fe.C0.ESC+"[1;3B"||(me.key=fe.C0.ESC+"[1;5B")):me.key=ce?fe.C0.ESC+"OB":fe.C0.ESC+"[B";break;case 45:_e.shiftKey||_e.ctrlKey||(me.key=fe.C0.ESC+"[2~");break;case 46:me.key=de?fe.C0.ESC+"[3;"+(de+1)+"~":fe.C0.ESC+"[3~";break;case 36:me.key=de?fe.C0.ESC+"[1;"+(de+1)+"H":ce?fe.C0.ESC+"OH":fe.C0.ESC+"[H";break;case 35:me.key=de?fe.C0.ESC+"[1;"+(de+1)+"F":ce?fe.C0.ESC+"OF":fe.C0.ESC+"[F";break;case 33:_e.shiftKey?me.type=2:me.key=fe.C0.ESC+"[5~";break;case 34:_e.shiftKey?me.type=3:me.key=fe.C0.ESC+"[6~";break;case 112:me.key=de?fe.C0.ESC+"[1;"+(de+1)+"P":fe.C0.ESC+"OP";break;case 113:me.key=de?fe.C0.ESC+"[1;"+(de+1)+"Q":fe.C0.ESC+"OQ";break;case 114:me.key=de?fe.C0.ESC+"[1;"+(de+1)+"R":fe.C0.ESC+"OR";break;case 115:me.key=de?fe.C0.ESC+"[1;"+(de+1)+"S":fe.C0.ESC+"OS";break;case 116:me.key=de?fe.C0.ESC+"[15;"+(de+1)+"~":fe.C0.ESC+"[15~";break;case 117:me.key=de?fe.C0.ESC+"[17;"+(de+1)+"~":fe.C0.ESC+"[17~";break;case 118:me.key=de?fe.C0.ESC+"[18;"+(de+1)+"~":fe.C0.ESC+"[18~";break;case 119:me.key=de?fe.C0.ESC+"[19;"+(de+1)+"~":fe.C0.ESC+"[19~";break;case 120:me.key=de?fe.C0.ESC+"[20;"+(de+1)+"~":fe.C0.ESC+"[20~";break;case 121:me.key=de?fe.C0.ESC+"[21;"+(de+1)+"~":fe.C0.ESC+"[21~";break;case 122:me.key=de?fe.C0.ESC+"[23;"+(de+1)+"~":fe.C0.ESC+"[23~";break;case 123:me.key=de?fe.C0.ESC+"[24;"+(de+1)+"~":fe.C0.ESC+"[24~";break;default:if(!_e.ctrlKey||_e.shiftKey||_e.altKey||_e.metaKey)if(pe&&!ae||!_e.altKey||_e.metaKey)pe&&!_e.altKey&&!_e.ctrlKey&&_e.metaKey?_e.keyCode===65&&(me.type=1):_e.key&&!_e.ctrlKey&&!_e.altKey&&!_e.metaKey&&_e.keyCode>=48&&_e.key.length===1?me.key=_e.key:_e.key&&_e.ctrlKey&&_e.key==="_"&&(me.key=fe.C0.US);else{var ge=be[_e.keyCode],le=ge&&ge[_e.shiftKey?1:0];if(le)me.key=fe.C0.ESC+le;else if(_e.keyCode>=65&&_e.keyCode<=90){var he=_e.ctrlKey?_e.keyCode-64:_e.keyCode+32;me.key=fe.C0.ESC+String.fromCharCode(he)}}else _e.keyCode>=65&&_e.keyCode<=90?me.key=String.fromCharCode(_e.keyCode-64):_e.keyCode===32?me.key=fe.C0.NUL:_e.keyCode>=51&&_e.keyCode<=55?me.key=String.fromCharCode(_e.keyCode-51+27):_e.keyCode===56?me.key=fe.C0.DEL:_e.keyCode===219?me.key=fe.C0.ESC:_e.keyCode===220?me.key=fe.C0.FS:_e.keyCode===221&&(me.key=fe.C0.GS)}return me}},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ne,y){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,E){a.__proto__=E}||function(a,E){for(var b in E)E.hasOwnProperty(b)&&(a[b]=E[b])})(ne,y)},function(ne,y){function a(){this.constructor=ne}fe(ne,y),ne.prototype=y===null?Object.create(y):(a.prototype=y.prototype,new a)}),_e=this&&this.__decorate||function(ne,y,a,E){var b,x=arguments.length,z=x<3?y:E===null?E=Object.getOwnPropertyDescriptor(y,a):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(ne,y,a,E);else for(var oe=ne.length-1;oe>=0;oe--)(b=ne[oe])&&(z=(x<3?b(z):x>3?b(y,a,z):b(y,a))||z);return x>3&&z&&Object.defineProperty(y,a,z),z},ce=this&&this.__param||function(ne,y){return function(a,E){y(a,E,ne)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.RenderService=void 0;var pe=te(31),ae=te(0),me=te(2),de=te(32),ge=te(7),le=te(1),he=te(5),re=function(ne){function y(a,E,b,x,z,oe){var ie=ne.call(this)||this;if(ie._renderer=a,ie._rowCount=E,ie._isPaused=!1,ie._needsFullRefresh=!1,ie._isNextRenderRedrawOnly=!0,ie._needsSelectionRefresh=!1,ie._canvasWidth=0,ie._canvasHeight=0,ie._selectionState={start:void 0,end:void 0,columnSelectMode:!1},ie._onDimensionsChange=new ae.EventEmitter,ie._onRender=new ae.EventEmitter,ie._onRefreshRequest=new ae.EventEmitter,ie.register({dispose:function(){return ie._renderer.dispose()}}),ie._renderDebouncer=new pe.RenderDebouncer(function(ve,Se){return ie._renderRows(ve,Se)}),ie.register(ie._renderDebouncer),ie._screenDprMonitor=new de.ScreenDprMonitor,ie._screenDprMonitor.setListener(function(){return ie.onDevicePixelRatioChange()}),ie.register(ie._screenDprMonitor),ie.register(oe.onResize(function(ve){return ie._fullRefresh()})),ie.register(x.onOptionChange(function(){return ie._renderer.onOptionsChanged()})),ie.register(z.onCharSizeChange(function(){return ie.onCharSizeChanged()})),ie._renderer.onRequestRedraw(function(ve){return ie.refreshRows(ve.start,ve.end,!0)}),ie.register(ge.addDisposableDomListener(window,"resize",function(){return ie.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ue=new IntersectionObserver(function(ve){return ie._onIntersectionChange(ve[ve.length-1])},{threshold:0});ue.observe(b),ie.register({dispose:function(){return ue.disconnect()}})}return ie}return be(y,ne),Object.defineProperty(y.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),y.prototype._onIntersectionChange=function(a){this._isPaused=a.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},y.prototype.refreshRows=function(a,E,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(a,E,this._rowCount))},y.prototype._renderRows=function(a,E){this._renderer.renderRows(a,E),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:a,end:E}),this._isNextRenderRedrawOnly=!0},y.prototype.resize=function(a,E){this._rowCount=E,this._fireOnCanvasResize()},y.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},y.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},y.prototype.dispose=function(){ne.prototype.dispose.call(this)},y.prototype.setRenderer=function(a){var E=this;this._renderer.dispose(),this._renderer=a,this._renderer.onRequestRedraw(function(b){return E.refreshRows(b.start,b.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},y.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},y.prototype.setColors=function(a){this._renderer.setColors(a),this._fullRefresh()},y.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},y.prototype.onResize=function(a,E){this._renderer.onResize(a,E),this._fullRefresh()},y.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},y.prototype.onBlur=function(){this._renderer.onBlur()},y.prototype.onFocus=function(){this._renderer.onFocus()},y.prototype.onSelectionChanged=function(a,E,b){this._selectionState.start=a,this._selectionState.end=E,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(a,E,b)},y.prototype.onCursorMove=function(){this._renderer.onCursorMove()},y.prototype.clear=function(){this._renderer.clear()},y.prototype.registerCharacterJoiner=function(a){return this._renderer.registerCharacterJoiner(a)},y.prototype.deregisterCharacterJoiner=function(a){return this._renderer.deregisterCharacterJoiner(a)},y=_e([ce(3,le.IOptionsService),ce(4,he.ICharSizeService),ce(5,le.IBufferService)],y)}(me.Disposable);ee.RenderService=re},function(Ze,ee,te){"use strict";var fe=this&&this.__decorate||function(me,de,ge,le){var he,re=arguments.length,ne=re<3?de:le===null?le=Object.getOwnPropertyDescriptor(de,ge):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(me,de,ge,le);else for(var y=me.length-1;y>=0;y--)(he=me[y])&&(ne=(re<3?he(ne):re>3?he(de,ge,ne):he(de,ge))||ne);return re>3&&ne&&Object.defineProperty(de,ge,ne),ne},be=this&&this.__param||function(me,de){return function(ge,le){de(ge,le,me)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharSizeService=void 0;var _e=te(1),ce=te(0),pe=function(){function me(de,ge,le){this._optionsService=le,this.width=0,this.height=0,this._onCharSizeChange=new ce.EventEmitter,this._measureStrategy=new ae(de,ge,this._optionsService)}return Object.defineProperty(me.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),me.prototype.measure=function(){var de=this._measureStrategy.measure();de.width===this.width&&de.height===this.height||(this.width=de.width,this.height=de.height,this._onCharSizeChange.fire())},me=fe([be(2,_e.IOptionsService)],me)}();ee.CharSizeService=pe;var ae=function(){function me(de,ge,le){this._document=de,this._parentElement=ge,this._optionsService=le,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 me.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var de=this._measureElement.getBoundingClientRect();return de.width!==0&&de.height!==0&&(this._result.width=de.width,this._result.height=Math.ceil(de.height)),this._result},me}()},function(Ze,ee,te){"use strict";var fe=this&&this.__decorate||function(ae,me,de,ge){var le,he=arguments.length,re=he<3?me:ge===null?ge=Object.getOwnPropertyDescriptor(me,de):ge;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(ae,me,de,ge);else for(var ne=ae.length-1;ne>=0;ne--)(le=ae[ne])&&(re=(he<3?le(re):he>3?le(me,de,re):le(me,de))||re);return he>3&&re&&Object.defineProperty(me,de,re),re},be=this&&this.__param||function(ae,me){return function(de,ge){me(de,ge,ae)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.MouseService=void 0;var _e=te(5),ce=te(30),pe=function(){function ae(me,de){this._renderService=me,this._charSizeService=de}return ae.prototype.getCoords=function(me,de,ge,le,he){return ce.getCoords(me,de,ge,le,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,he)},ae.prototype.getRawByteCoords=function(me,de,ge,le){var he=this.getCoords(me,de,ge,le);return ce.getRawByteCoords(he)},ae=fe([be(0,_e.IRenderService),be(1,_e.ICharSizeService)],ae)}();ee.MouseService=pe},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(le,he){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var y in ne)ne.hasOwnProperty(y)&&(re[y]=ne[y])})(le,he)},function(le,he){function re(){this.constructor=le}fe(le,he),le.prototype=he===null?Object.create(he):(re.prototype=he.prototype,new re)}),_e=this&&this.__decorate||function(le,he,re,ne){var y,a=arguments.length,E=a<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(le,he,re,ne);else for(var b=le.length-1;b>=0;b--)(y=le[b])&&(E=(a<3?y(E):a>3?y(he,re,E):y(he,re))||E);return a>3&&E&&Object.defineProperty(he,re,E),E},ce=this&&this.__param||function(le,he){return function(re,ne){he(re,ne,le)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.Linkifier2=void 0;var pe=te(1),ae=te(0),me=te(2),de=te(7),ge=function(le){function he(re){var ne=le.call(this)||this;return ne._bufferService=re,ne._linkProviders=[],ne._linkCacheDisposables=[],ne._isMouseOut=!0,ne._activeLine=-1,ne._onShowLinkUnderline=ne.register(new ae.EventEmitter),ne._onHideLinkUnderline=ne.register(new ae.EventEmitter),ne.register(me.getDisposeArrayDisposable(ne._linkCacheDisposables)),ne}return be(he,le),Object.defineProperty(he.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),he.prototype.registerLinkProvider=function(re){var ne=this;return this._linkProviders.push(re),{dispose:function(){var y=ne._linkProviders.indexOf(re);y!==-1&&ne._linkProviders.splice(y,1)}}},he.prototype.attachToDom=function(re,ne,y){var a=this;this._element=re,this._mouseService=ne,this._renderService=y,this.register(de.addDisposableDomListener(this._element,"mouseleave",function(){a._isMouseOut=!0,a._clearCurrentLink()})),this.register(de.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(de.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},he.prototype._onMouseMove=function(re){if(this._lastMouseEvent=re,this._element&&this._mouseService){var ne=this._positionFromMouseEvent(re,this._element,this._mouseService);if(ne){this._isMouseOut=!1;for(var y=re.composedPath(),a=0;a<y.length;a++){var E=y[a];if(E.classList.contains("xterm"))break;if(E.classList.contains("xterm-hover"))return}this._lastBufferCell&&ne.x===this._lastBufferCell.x&&ne.y===this._lastBufferCell.y||(this._onHover(ne),this._lastBufferCell=ne)}}},he.prototype._onHover=function(re){if(this._activeLine!==re.y)return this._clearCurrentLink(),void this._askForLink(re,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,re)||(this._clearCurrentLink(),this._askForLink(re,!0))},he.prototype._askForLink=function(re,ne){var y=this;this._activeProviderReplies&&ne||(this._activeProviderReplies=new Map,this._activeLine=re.y);var a=!1;this._linkProviders.forEach(function(E,b){var x;ne?!((x=y._activeProviderReplies)===null||x===void 0)&&x.get(b)&&(a=y._checkLinkProviderResult(b,re,a)):E.provideLinks(re.y,function(z){var oe,ie;if(!y._isMouseOut){var ue=z==null?void 0:z.map(function(ve){return{link:ve}});(oe=y._activeProviderReplies)===null||oe===void 0||oe.set(b,ue),a=y._checkLinkProviderResult(b,re,a),((ie=y._activeProviderReplies)===null||ie===void 0?void 0:ie.size)===y._linkProviders.length&&y._removeIntersectingLinks(re.y,y._activeProviderReplies)}})})},he.prototype._removeIntersectingLinks=function(re,ne){for(var y=new Set,a=0;a<ne.size;a++){var E=ne.get(a);if(E)for(var b=0;b<E.length;b++)for(var x=E[b],z=x.link.range.start.y<re?0:x.link.range.start.x,oe=x.link.range.end.y>re?this._bufferService.cols:x.link.range.end.x,ie=z;ie<=oe;ie++){if(y.has(ie)){E.splice(b--,1);break}y.add(ie)}}},he.prototype._checkLinkProviderResult=function(re,ne,y){var a,E=this;if(!this._activeProviderReplies)return y;for(var b=this._activeProviderReplies.get(re),x=!1,z=0;z<re;z++)this._activeProviderReplies.has(z)&&!this._activeProviderReplies.get(z)||(x=!0);if(!x&&b){var oe=b.find(function(ue){return E._linkAtPosition(ue.link,ne)});oe&&(y=!0,this._handleNewLink(oe))}if(this._activeProviderReplies.size===this._linkProviders.length&&!y)for(z=0;z<this._activeProviderReplies.size;z++){var ie=(a=this._activeProviderReplies.get(z))===null||a===void 0?void 0:a.find(function(ue){return E._linkAtPosition(ue.link,ne)});if(ie){y=!0,this._handleNewLink(ie);break}}return y},he.prototype._onClick=function(re){if(this._element&&this._mouseService&&this._currentLink){var ne=this._positionFromMouseEvent(re,this._element,this._mouseService);ne&&this._linkAtPosition(this._currentLink.link,ne)&&this._currentLink.link.activate(re,this._currentLink.link.text)}},he.prototype._clearCurrentLink=function(re,ne){this._element&&this._currentLink&&this._lastMouseEvent&&(!re||!ne||this._currentLink.link.range.start.y>=re&&this._currentLink.link.range.end.y<=ne)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,me.disposeArray(this._linkCacheDisposables))},he.prototype._handleNewLink=function(re){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var y=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);y&&this._linkAtPosition(re.link,y)&&(this._currentLink=re,this._currentLink.state={decorations:{underline:re.link.decorations===void 0||re.link.decorations.underline,pointerCursor:re.link.decorations===void 0||re.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,re.link,this._lastMouseEvent),re.link.decorations={},Object.defineProperties(re.link.decorations,{pointerCursor:{get:function(){var a,E;return(E=(a=ne._currentLink)===null||a===void 0?void 0:a.state)===null||E===void 0?void 0:E.decorations.pointerCursor},set:function(a){var E,b;!((E=ne._currentLink)===null||E===void 0)&&E.state&&ne._currentLink.state.decorations.pointerCursor!==a&&(ne._currentLink.state.decorations.pointerCursor=a,ne._currentLink.state.isHovered&&((b=ne._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",a)))}},underline:{get:function(){var a,E;return(E=(a=ne._currentLink)===null||a===void 0?void 0:a.state)===null||E===void 0?void 0:E.decorations.underline},set:function(a){var E,b,x;!((E=ne._currentLink)===null||E===void 0)&&E.state&&((x=(b=ne._currentLink)===null||b===void 0?void 0:b.state)===null||x===void 0?void 0:x.decorations.underline)!==a&&(ne._currentLink.state.decorations.underline=a,ne._currentLink.state.isHovered&&ne._fireUnderlineEvent(re.link,a))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(a){var E=a.start===0?0:a.start+1+ne._bufferService.buffer.ydisp;ne._clearCurrentLink(E,a.end+1+ne._bufferService.buffer.ydisp)})))}},he.prototype._linkHover=function(re,ne,y){var a;!((a=this._currentLink)===null||a===void 0)&&a.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!0),this._currentLink.state.decorations.pointerCursor&&re.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(y,ne.text)},he.prototype._fireUnderlineEvent=function(re,ne){var y=re.range,a=this._bufferService.buffer.ydisp,E=this._createLinkUnderlineEvent(y.start.x-1,y.start.y-a-1,y.end.x,y.end.y-a-1,void 0);(ne?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(E)},he.prototype._linkLeave=function(re,ne,y){var a;!((a=this._currentLink)===null||a===void 0)&&a.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!1),this._currentLink.state.decorations.pointerCursor&&re.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(y,ne.text)},he.prototype._linkAtPosition=function(re,ne){var y=re.range.start.y===re.range.end.y,a=re.range.start.y<ne.y,E=re.range.end.y>ne.y;return(y&&re.range.start.x<=ne.x&&re.range.end.x>=ne.x||a&&re.range.end.x>=ne.x||E&&re.range.start.x<=ne.x||a&&E)&&re.range.start.y<=ne.y&&re.range.end.y>=ne.y},he.prototype._positionFromMouseEvent=function(re,ne,y){var a=y.getCoords(re,ne,this._bufferService.cols,this._bufferService.rows);if(a)return{x:a[0],y:a[1]+this._bufferService.buffer.ydisp}},he.prototype._createLinkUnderlineEvent=function(re,ne,y,a,E){return{x1:re,y1:ne,x2:y,y2:a,cols:this._bufferService.cols,fg:E}},he=_e([ce(0,pe.IBufferService)],he)}(me.Disposable);ee.Linkifier2=ge},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreBrowserService=void 0;var fe=function(){function be(_e){this._textarea=_e}return Object.defineProperty(be.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),be}();ee.CoreBrowserService=fe},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(z,oe){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,ue){ie.__proto__=ue}||function(ie,ue){for(var ve in ue)ue.hasOwnProperty(ve)&&(ie[ve]=ue[ve])})(z,oe)},function(z,oe){function ie(){this.constructor=z}fe(z,oe),z.prototype=oe===null?Object.create(oe):(ie.prototype=oe.prototype,new ie)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreTerminal=void 0;var _e=te(2),ce=te(1),pe=te(66),ae=te(67),me=te(68),de=te(74),ge=te(75),le=te(0),he=te(76),re=te(77),ne=te(78),y=te(80),a=te(81),E=te(19),b=te(82),x=function(z){function oe(ie){var ue=z.call(this)||this;return ue._onBinary=new le.EventEmitter,ue._onData=new le.EventEmitter,ue._onLineFeed=new le.EventEmitter,ue._onResize=new le.EventEmitter,ue._onScroll=new le.EventEmitter,ue._instantiationService=new pe.InstantiationService,ue.optionsService=new de.OptionsService(ie),ue._instantiationService.setService(ce.IOptionsService,ue.optionsService),ue._bufferService=ue.register(ue._instantiationService.createInstance(me.BufferService)),ue._instantiationService.setService(ce.IBufferService,ue._bufferService),ue._logService=ue._instantiationService.createInstance(ae.LogService),ue._instantiationService.setService(ce.ILogService,ue._logService),ue._coreService=ue.register(ue._instantiationService.createInstance(ge.CoreService,function(){return ue.scrollToBottom()})),ue._instantiationService.setService(ce.ICoreService,ue._coreService),ue._coreMouseService=ue._instantiationService.createInstance(he.CoreMouseService),ue._instantiationService.setService(ce.ICoreMouseService,ue._coreMouseService),ue._dirtyRowService=ue._instantiationService.createInstance(re.DirtyRowService),ue._instantiationService.setService(ce.IDirtyRowService,ue._dirtyRowService),ue.unicodeService=ue._instantiationService.createInstance(ne.UnicodeService),ue._instantiationService.setService(ce.IUnicodeService,ue.unicodeService),ue._charsetService=ue._instantiationService.createInstance(y.CharsetService),ue._instantiationService.setService(ce.ICharsetService,ue._charsetService),ue._inputHandler=new E.InputHandler(ue._bufferService,ue._charsetService,ue._coreService,ue._dirtyRowService,ue._logService,ue.optionsService,ue._coreMouseService,ue.unicodeService),ue.register(le.forwardEvent(ue._inputHandler.onLineFeed,ue._onLineFeed)),ue.register(ue._inputHandler),ue.register(le.forwardEvent(ue._bufferService.onResize,ue._onResize)),ue.register(le.forwardEvent(ue._coreService.onData,ue._onData)),ue.register(le.forwardEvent(ue._coreService.onBinary,ue._onBinary)),ue.register(ue.optionsService.onOptionChange(function(ve){return ue._updateOptions(ve)})),ue._writeBuffer=new b.WriteBuffer(function(ve){return ue._inputHandler.parse(ve)}),ue}return be(oe,z),Object.defineProperty(oe.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),oe.prototype.dispose=function(){var ie;this._isDisposed||(z.prototype.dispose.call(this),(ie=this._windowsMode)===null||ie===void 0||ie.dispose(),this._windowsMode=void 0)},oe.prototype.write=function(ie,ue){this._writeBuffer.write(ie,ue)},oe.prototype.writeSync=function(ie){this._writeBuffer.writeSync(ie)},oe.prototype.resize=function(ie,ue){isNaN(ie)||isNaN(ue)||(ie=Math.max(ie,me.MINIMUM_COLS),ue=Math.max(ue,me.MINIMUM_ROWS),this._bufferService.resize(ie,ue))},oe.prototype.scroll=function(ie,ue){ue===void 0&&(ue=!1);var ve,Se=this._bufferService.buffer;(ve=this._cachedBlankLine)&&ve.length===this.cols&&ve.getFg(0)===ie.fg&&ve.getBg(0)===ie.bg||(ve=Se.getBlankLine(ie,ue),this._cachedBlankLine=ve),ve.isWrapped=ue;var Le=Se.ybase+Se.scrollTop,we=Se.ybase+Se.scrollBottom;if(Se.scrollTop===0){var Ne=Se.lines.isFull;we===Se.lines.length-1?Ne?Se.lines.recycle().copyFrom(ve):Se.lines.push(ve.clone()):Se.lines.splice(we+1,0,ve.clone()),Ne?this._bufferService.isUserScrolling&&(Se.ydisp=Math.max(Se.ydisp-1,0)):(Se.ybase++,this._bufferService.isUserScrolling||Se.ydisp++)}else{var xe=we-Le+1;Se.lines.shiftElements(Le+1,xe-1,-1),Se.lines.set(we,ve.clone())}this._bufferService.isUserScrolling||(Se.ydisp=Se.ybase),this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom),this._onScroll.fire(Se.ydisp)},oe.prototype.scrollLines=function(ie,ue){var ve=this._bufferService.buffer;if(ie<0){if(ve.ydisp===0)return;this._bufferService.isUserScrolling=!0}else ie+ve.ydisp>=ve.ybase&&(this._bufferService.isUserScrolling=!1);var Se=ve.ydisp;ve.ydisp=Math.max(Math.min(ve.ydisp+ie,ve.ybase),0),Se!==ve.ydisp&&(ue||this._onScroll.fire(ve.ydisp))},oe.prototype.scrollPages=function(ie){this.scrollLines(ie*(this.rows-1))},oe.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},oe.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},oe.prototype.scrollToLine=function(ie){var ue=ie-this._bufferService.buffer.ydisp;ue!==0&&this.scrollLines(ue)},oe.prototype.addEscHandler=function(ie,ue){return this._inputHandler.addEscHandler(ie,ue)},oe.prototype.addDcsHandler=function(ie,ue){return this._inputHandler.addDcsHandler(ie,ue)},oe.prototype.addCsiHandler=function(ie,ue){return this._inputHandler.addCsiHandler(ie,ue)},oe.prototype.addOscHandler=function(ie,ue){return this._inputHandler.addOscHandler(ie,ue)},oe.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},oe.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},oe.prototype._updateOptions=function(ie){var ue;switch(ie){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((ue=this._windowsMode)===null||ue===void 0||ue.dispose(),this._windowsMode=void 0)}},oe.prototype._enableWindowsMode=function(){var ie=this;if(!this._windowsMode){var ue=[];ue.push(this.onLineFeed(a.updateWindowsModeWrappedState.bind(null,this._bufferService))),ue.push(this.addCsiHandler({final:"H"},function(){return a.updateWindowsModeWrappedState(ie._bufferService),!1})),this._windowsMode={dispose:function(){for(var ve=0,Se=ue;ve<Se.length;ve++)Se[ve].dispose()}}}},oe}(_e.Disposable);ee.CoreTerminal=x},function(Ze,ee,te){"use strict";var fe=this&&this.__spreadArrays||function(){for(var ae=0,me=0,de=arguments.length;me<de;me++)ae+=arguments[me].length;var ge=Array(ae),le=0;for(me=0;me<de;me++)for(var he=arguments[me],re=0,ne=he.length;re<ne;re++,le++)ge[le]=he[re];return ge};Object.defineProperty(ee,"__esModule",{value:!0}),ee.InstantiationService=ee.ServiceCollection=void 0;var be=te(1),_e=te(14),ce=function(){function ae(){for(var me=[],de=0;de<arguments.length;de++)me[de]=arguments[de];this._entries=new Map;for(var ge=0,le=me;ge<le.length;ge++){var he=le[ge],re=he[0],ne=he[1];this.set(re,ne)}}return ae.prototype.set=function(me,de){var ge=this._entries.get(me);return this._entries.set(me,de),ge},ae.prototype.forEach=function(me){this._entries.forEach(function(de,ge){return me(ge,de)})},ae.prototype.has=function(me){return this._entries.has(me)},ae.prototype.get=function(me){return this._entries.get(me)},ae}();ee.ServiceCollection=ce;var pe=function(){function ae(){this._services=new ce,this._services.set(be.IInstantiationService,this)}return ae.prototype.setService=function(me,de){this._services.set(me,de)},ae.prototype.getService=function(me){return this._services.get(me)},ae.prototype.createInstance=function(me){for(var de=[],ge=1;ge<arguments.length;ge++)de[ge-1]=arguments[ge];for(var le=_e.getServiceDependencies(me).sort(function(b,x){return b.index-x.index}),he=[],re=0,ne=le;re<ne.length;re++){var y=ne[re],a=this._services.get(y.id);if(!a)throw new Error("[createInstance] "+me.name+" depends on UNKNOWN service "+y.id+".");he.push(a)}var E=le.length>0?le[0].index:de.length;if(de.length!==E)throw new Error("[createInstance] First service dependency of "+me.name+" at position "+(E+1)+" conflicts with "+de.length+" static arguments");return new(me.bind.apply(me,fe([void 0],fe(de,he))))},ae}();ee.InstantiationService=pe},function(Ze,ee,te){"use strict";var fe=this&&this.__decorate||function(de,ge,le,he){var re,ne=arguments.length,y=ne<3?ge:he===null?he=Object.getOwnPropertyDescriptor(ge,le):he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")y=Reflect.decorate(de,ge,le,he);else for(var a=de.length-1;a>=0;a--)(re=de[a])&&(y=(ne<3?re(y):ne>3?re(ge,le,y):re(ge,le))||y);return ne>3&&y&&Object.defineProperty(ge,le,y),y},be=this&&this.__param||function(de,ge){return function(le,he){ge(le,he,de)}},_e=this&&this.__spreadArrays||function(){for(var de=0,ge=0,le=arguments.length;ge<le;ge++)de+=arguments[ge].length;var he=Array(de),re=0;for(ge=0;ge<le;ge++)for(var ne=arguments[ge],y=0,a=ne.length;y<a;y++,re++)he[re]=ne[y];return he};Object.defineProperty(ee,"__esModule",{value:!0}),ee.LogService=ee.LogLevel=void 0;var ce,pe=te(1);(function(de){de[de.DEBUG=0]="DEBUG",de[de.INFO=1]="INFO",de[de.WARN=2]="WARN",de[de.ERROR=3]="ERROR",de[de.OFF=4]="OFF"})(ce=ee.LogLevel||(ee.LogLevel={}));var ae={debug:ce.DEBUG,info:ce.INFO,warn:ce.WARN,error:ce.ERROR,off:ce.OFF},me=function(){function de(ge){var le=this;this._optionsService=ge,this._updateLogLevel(),this._optionsService.onOptionChange(function(he){he==="logLevel"&&le._updateLogLevel()})}return de.prototype._updateLogLevel=function(){this._logLevel=ae[this._optionsService.options.logLevel]},de.prototype._evalLazyOptionalParams=function(ge){for(var le=0;le<ge.length;le++)typeof ge[le]=="function"&&(ge[le]=ge[le]())},de.prototype._log=function(ge,le,he){this._evalLazyOptionalParams(he),ge.call.apply(ge,_e([console,"xterm.js: "+le],he))},de.prototype.debug=function(ge){for(var le=[],he=1;he<arguments.length;he++)le[he-1]=arguments[he];this._logLevel<=ce.DEBUG&&this._log(console.log,ge,le)},de.prototype.info=function(ge){for(var le=[],he=1;he<arguments.length;he++)le[he-1]=arguments[he];this._logLevel<=ce.INFO&&this._log(console.info,ge,le)},de.prototype.warn=function(ge){for(var le=[],he=1;he<arguments.length;he++)le[he-1]=arguments[he];this._logLevel<=ce.WARN&&this._log(console.warn,ge,le)},de.prototype.error=function(ge){for(var le=[],he=1;he<arguments.length;he++)le[he-1]=arguments[he];this._logLevel<=ce.ERROR&&this._log(console.error,ge,le)},de=fe([be(0,pe.IOptionsService)],de)}();ee.LogService=me},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(le,he){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(re,ne){re.__proto__=ne}||function(re,ne){for(var y in ne)ne.hasOwnProperty(y)&&(re[y]=ne[y])})(le,he)},function(le,he){function re(){this.constructor=le}fe(le,he),le.prototype=he===null?Object.create(he):(re.prototype=he.prototype,new re)}),_e=this&&this.__decorate||function(le,he,re,ne){var y,a=arguments.length,E=a<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(le,he,re,ne);else for(var b=le.length-1;b>=0;b--)(y=le[b])&&(E=(a<3?y(E):a>3?y(he,re,E):y(he,re))||E);return a>3&&E&&Object.defineProperty(he,re,E),E},ce=this&&this.__param||function(le,he){return function(re,ne){he(re,ne,le)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferService=ee.MINIMUM_ROWS=ee.MINIMUM_COLS=void 0;var pe=te(1),ae=te(69),me=te(0),de=te(2);ee.MINIMUM_COLS=2,ee.MINIMUM_ROWS=1;var ge=function(le){function he(re){var ne=le.call(this)||this;return ne._optionsService=re,ne.isUserScrolling=!1,ne._onResize=new me.EventEmitter,ne.cols=Math.max(re.options.cols,ee.MINIMUM_COLS),ne.rows=Math.max(re.options.rows,ee.MINIMUM_ROWS),ne.buffers=new ae.BufferSet(re,ne),ne}return be(he,le),Object.defineProperty(he.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),he.prototype.dispose=function(){le.prototype.dispose.call(this),this.buffers.dispose()},he.prototype.resize=function(re,ne){this.cols=re,this.rows=ne,this.buffers.resize(re,ne),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:re,rows:ne})},he.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ae.BufferSet(this._optionsService,this),this.isUserScrolling=!1},he=_e([ce(0,pe.IOptionsService)],he)}(de.Disposable);ee.BufferService=ge},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(ae,me){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ge){de.__proto__=ge}||function(de,ge){for(var le in ge)ge.hasOwnProperty(le)&&(de[le]=ge[le])})(ae,me)},function(ae,me){function de(){this.constructor=ae}fe(ae,me),ae.prototype=me===null?Object.create(me):(de.prototype=me.prototype,new de)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferSet=void 0;var _e=te(70),ce=te(0),pe=function(ae){function me(de,ge){var le=ae.call(this)||this;return le._onBufferActivate=le.register(new ce.EventEmitter),le._normal=new _e.Buffer(!0,de,ge),le._normal.fillViewportRows(),le._alt=new _e.Buffer(!1,de,ge),le._activeBuffer=le._normal,le.setupTabStops(),le}return be(me,ae),Object.defineProperty(me.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(me.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),me.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}))},me.prototype.activateAltBuffer=function(de){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(de),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}))},me.prototype.resize=function(de,ge){this._normal.resize(de,ge),this._alt.resize(de,ge)},me.prototype.setupTabStops=function(de){this._normal.setupTabStops(de),this._alt.setupTabStops(de)},me}(te(2).Disposable);ee.BufferSet=pe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.BufferStringIterator=ee.Buffer=ee.MAX_BUFFER_SIZE=void 0;var fe=te(71),be=te(16),_e=te(4),ce=te(3),pe=te(72),ae=te(73),me=te(20),de=te(6);ee.MAX_BUFFER_SIZE=4294967295;var ge=function(){function he(re,ne,y){this._hasScrollback=re,this._optionsService=ne,this._bufferService=y,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=be.DEFAULT_ATTR_DATA.clone(),this.savedCharset=me.DEFAULT_CHARSET,this.markers=[],this._nullCell=_e.CellData.fromCharData([0,ce.NULL_CELL_CHAR,ce.NULL_CELL_WIDTH,ce.NULL_CELL_CODE]),this._whitespaceCell=_e.CellData.fromCharData([0,ce.WHITESPACE_CELL_CHAR,ce.WHITESPACE_CELL_WIDTH,ce.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new fe.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return he.prototype.getNullCell=function(re){return re?(this._nullCell.fg=re.fg,this._nullCell.bg=re.bg,this._nullCell.extended=re.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new de.ExtendedAttrs),this._nullCell},he.prototype.getWhitespaceCell=function(re){return re?(this._whitespaceCell.fg=re.fg,this._whitespaceCell.bg=re.bg,this._whitespaceCell.extended=re.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new de.ExtendedAttrs),this._whitespaceCell},he.prototype.getBlankLine=function(re,ne){return new be.BufferLine(this._bufferService.cols,this.getNullCell(re),ne)},Object.defineProperty(he.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isCursorInViewport",{get:function(){var re=this.ybase+this.y-this.ydisp;return re>=0&&re<this._rows},enumerable:!1,configurable:!0}),he.prototype._getCorrectBufferLength=function(re){if(!this._hasScrollback)return re;var ne=re+this._optionsService.options.scrollback;return ne>ee.MAX_BUFFER_SIZE?ee.MAX_BUFFER_SIZE:ne},he.prototype.fillViewportRows=function(re){if(this.lines.length===0){re===void 0&&(re=be.DEFAULT_ATTR_DATA);for(var ne=this._rows;ne--;)this.lines.push(this.getBlankLine(re))}},he.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new fe.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},he.prototype.resize=function(re,ne){var y=this.getNullCell(be.DEFAULT_ATTR_DATA),a=this._getCorrectBufferLength(ne);if(a>this.lines.maxLength&&(this.lines.maxLength=a),this.lines.length>0){if(this._cols<re)for(var E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,y);var b=0;if(this._rows<ne)for(var x=this._rows;x<ne;x++)this.lines.length<ne+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new be.BufferLine(re,y)):this.ybase>0&&this.lines.length<=this.ybase+this.y+b+1?(this.ybase--,b++,this.ydisp>0&&this.ydisp--):this.lines.push(new be.BufferLine(re,y)));else for(x=this._rows;x>ne;x--)this.lines.length>ne+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(a<this.lines.maxLength){var z=this.lines.length-a;z>0&&(this.lines.trimStart(z),this.ybase=Math.max(this.ybase-z,0),this.ydisp=Math.max(this.ydisp-z,0),this.savedY=Math.max(this.savedY-z,0)),this.lines.maxLength=a}this.x=Math.min(this.x,re-1),this.y=Math.min(this.y,ne-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,re-1),this.scrollTop=0}if(this.scrollBottom=ne-1,this._isReflowEnabled&&(this._reflow(re,ne),this._cols>re))for(E=0;E<this.lines.length;E++)this.lines.get(E).resize(re,y);this._cols=re,this._rows=ne},Object.defineProperty(he.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),he.prototype._reflow=function(re,ne){this._cols!==re&&(re>this._cols?this._reflowLarger(re,ne):this._reflowSmaller(re,ne))},he.prototype._reflowLarger=function(re,ne){var y=pe.reflowLargerGetLinesToRemove(this.lines,this._cols,re,this.ybase+this.y,this.getNullCell(be.DEFAULT_ATTR_DATA));if(y.length>0){var a=pe.reflowLargerCreateNewLayout(this.lines,y);pe.reflowLargerApplyNewLayout(this.lines,a.layout),this._reflowLargerAdjustViewport(re,ne,a.countRemoved)}},he.prototype._reflowLargerAdjustViewport=function(re,ne,y){for(var a=this.getNullCell(be.DEFAULT_ATTR_DATA),E=y;E-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<ne&&this.lines.push(new be.BufferLine(re,a))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-y,0)},he.prototype._reflowSmaller=function(re,ne){for(var y=this.getNullCell(be.DEFAULT_ATTR_DATA),a=[],E=0,b=this.lines.length-1;b>=0;b--){var x=this.lines.get(b);if(!(!x||!x.isWrapped&&x.getTrimmedLength()<=re)){for(var z=[x];x.isWrapped&&b>0;)x=this.lines.get(--b),z.unshift(x);var oe=this.ybase+this.y;if(!(oe>=b&&oe<b+z.length)){var ie=z[z.length-1].getTrimmedLength(),ue=pe.reflowSmallerGetNewLineLengths(z,this._cols,re),ve=ue.length-z.length,Se=void 0;Se=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+ve):Math.max(0,this.lines.length-this.lines.maxLength+ve);for(var Le=[],we=0;we<ve;we++){var Ne=this.getBlankLine(be.DEFAULT_ATTR_DATA,!0);Le.push(Ne)}Le.length>0&&(a.push({start:b+z.length+E,newLines:Le}),E+=Le.length),z.push.apply(z,Le);var xe=ue.length-1,st=ue[xe];st===0&&(st=ue[--xe]);for(var Ye=z.length-ve-1,lt=ie;Ye>=0;){var Me=Math.min(lt,st);if(z[xe].copyCellsFrom(z[Ye],lt-Me,st-Me,Me,!0),(st-=Me)===0&&(st=ue[--xe]),(lt-=Me)===0){Ye--;var Be=Math.max(Ye,0);lt=pe.getWrappedLineTrimmedLength(z,Be,this._cols)}}for(we=0;we<z.length;we++)ue[we]<re&&z[we].setCell(ue[we],y);for(var Re=ve-Se;Re-- >0;)this.ybase===0?this.y<ne-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+E)-ne&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+ve,this.ybase+ne-1)}}}if(a.length>0){var ke=[],Ge=[];for(we=0;we<this.lines.length;we++)Ge.push(this.lines.get(we));var Et=this.lines.length,It=Et-1,en=0,Zt=a[en];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+E);var rt=0;for(we=Math.min(this.lines.maxLength-1,Et+E-1);we>=0;we--)if(Zt&&Zt.start>It+rt){for(var at=Zt.newLines.length-1;at>=0;at--)this.lines.set(we--,Zt.newLines[at]);we++,ke.push({index:It+1,amount:Zt.newLines.length}),rt+=Zt.newLines.length,Zt=a[++en]}else this.lines.set(we,Ge[It--]);var Ct=0;for(we=ke.length-1;we>=0;we--)ke[we].index+=Ct,this.lines.onInsertEmitter.fire(ke[we]),Ct+=ke[we].amount;var qt=Math.max(0,Et+E-this.lines.maxLength);qt>0&&this.lines.onTrimEmitter.fire(qt)}},he.prototype.stringIndexToBufferIndex=function(re,ne,y){for(y===void 0&&(y=!1);ne;){var a=this.lines.get(re);if(!a)return[-1,-1];for(var E=y?a.getTrimmedLength():a.length,b=0;b<E;++b)if(a.get(b)[ce.CHAR_DATA_WIDTH_INDEX]&&(ne-=a.get(b)[ce.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[re,b];re++}return[re,0]},he.prototype.translateBufferLineToString=function(re,ne,y,a){y===void 0&&(y=0);var E=this.lines.get(re);return E?E.translateToString(ne,y,a):""},he.prototype.getWrappedRangeForLine=function(re){for(var ne=re,y=re;ne>0&&this.lines.get(ne).isWrapped;)ne--;for(;y+1<this.lines.length&&this.lines.get(y+1).isWrapped;)y++;return{first:ne,last:y}},he.prototype.setupTabStops=function(re){for(re!=null?this.tabs[re]||(re=this.prevStop(re)):(this.tabs={},re=0);re<this._cols;re+=this._optionsService.options.tabStopWidth)this.tabs[re]=!0},he.prototype.prevStop=function(re){for(re==null&&(re=this.x);!this.tabs[--re]&&re>0;);return re>=this._cols?this._cols-1:re<0?0:re},he.prototype.nextStop=function(re){for(re==null&&(re=this.x);!this.tabs[++re]&&re<this._cols;);return re>=this._cols?this._cols-1:re<0?0:re},he.prototype.addMarker=function(re){var ne=this,y=new ae.Marker(re);return this.markers.push(y),y.register(this.lines.onTrim(function(a){y.line-=a,y.line<0&&y.dispose()})),y.register(this.lines.onInsert(function(a){y.line>=a.index&&(y.line+=a.amount)})),y.register(this.lines.onDelete(function(a){y.line>=a.index&&y.line<a.index+a.amount&&y.dispose(),y.line>a.index&&(y.line-=a.amount)})),y.register(y.onDispose(function(){return ne._removeMarker(y)})),y},he.prototype._removeMarker=function(re){this.markers.splice(this.markers.indexOf(re),1)},he.prototype.iterator=function(re,ne,y,a,E){return new le(this,re,ne,y,a,E)},he}();ee.Buffer=ge;var le=function(){function he(re,ne,y,a,E,b){y===void 0&&(y=0),a===void 0&&(a=re.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=re,this._trimRight=ne,this._startIndex=y,this._endIndex=a,this._startOverscan=E,this._endOverscan=b,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}return he.prototype.hasNext=function(){return this._current<this._endIndex},he.prototype.next=function(){var re=this._buffer.getWrappedRangeForLine(this._current);re.first<this._startIndex-this._startOverscan&&(re.first=this._startIndex-this._startOverscan),re.last>this._endIndex+this._endOverscan&&(re.last=this._endIndex+this._endOverscan),re.first=Math.max(re.first,0),re.last=Math.min(re.last,this._buffer.lines.length);for(var ne="",y=re.first;y<=re.last;++y)ne+=this._buffer.translateBufferLineToString(y,this._trimRight);return this._current=re.last+1,{range:re,content:ne}},he}();ee.BufferStringIterator=le},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CircularList=void 0;var fe=te(0),be=function(){function _e(ce){this._maxLength=ce,this.onDeleteEmitter=new fe.EventEmitter,this.onInsertEmitter=new fe.EventEmitter,this.onTrimEmitter=new fe.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(_e.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"maxLength",{get:function(){return this._maxLength},set:function(ce){if(this._maxLength!==ce){for(var pe=new Array(ce),ae=0;ae<Math.min(ce,this.length);ae++)pe[ae]=this._array[this._getCyclicIndex(ae)];this._array=pe,this._maxLength=ce,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"length",{get:function(){return this._length},set:function(ce){if(ce>this._length)for(var pe=this._length;pe<ce;pe++)this._array[pe]=void 0;this._length=ce},enumerable:!1,configurable:!0}),_e.prototype.get=function(ce){return this._array[this._getCyclicIndex(ce)]},_e.prototype.set=function(ce,pe){this._array[this._getCyclicIndex(ce)]=pe},_e.prototype.push=function(ce){this._array[this._getCyclicIndex(this._length)]=ce,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},_e.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(_e.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),_e.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},_e.prototype.splice=function(ce,pe){for(var ae=[],me=2;me<arguments.length;me++)ae[me-2]=arguments[me];if(pe){for(var de=ce;de<this._length-pe;de++)this._array[this._getCyclicIndex(de)]=this._array[this._getCyclicIndex(de+pe)];this._length-=pe}for(de=this._length-1;de>=ce;de--)this._array[this._getCyclicIndex(de+ae.length)]=this._array[this._getCyclicIndex(de)];for(de=0;de<ae.length;de++)this._array[this._getCyclicIndex(ce+de)]=ae[de];if(this._length+ae.length>this._maxLength){var ge=this._length+ae.length-this._maxLength;this._startIndex+=ge,this._length=this._maxLength,this.onTrimEmitter.fire(ge)}else this._length+=ae.length},_e.prototype.trimStart=function(ce){ce>this._length&&(ce=this._length),this._startIndex+=ce,this._length-=ce,this.onTrimEmitter.fire(ce)},_e.prototype.shiftElements=function(ce,pe,ae){if(!(pe<=0)){if(ce<0||ce>=this._length)throw new Error("start argument out of range");if(ce+ae<0)throw new Error("Cannot shift elements in list beyond index 0");if(ae>0){for(var me=pe-1;me>=0;me--)this.set(ce+me+ae,this.get(ce+me));var de=ce+pe+ae-this._length;if(de>0)for(this._length+=de;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(me=0;me<pe;me++)this.set(ce+me+ae,this.get(ce+me))}},_e.prototype._getCyclicIndex=function(ce){return(this._startIndex+ce)%this._maxLength},_e}();ee.CircularList=be},function(Ze,ee,te){"use strict";function fe(be,_e,ce){if(_e===be.length-1)return be[_e].getTrimmedLength();var pe=!be[_e].hasContent(ce-1)&&be[_e].getWidth(ce-1)===1,ae=be[_e+1].getWidth(0)===2;return pe&&ae?ce-1:ce}Object.defineProperty(ee,"__esModule",{value:!0}),ee.getWrappedLineTrimmedLength=ee.reflowSmallerGetNewLineLengths=ee.reflowLargerApplyNewLayout=ee.reflowLargerCreateNewLayout=ee.reflowLargerGetLinesToRemove=void 0,ee.reflowLargerGetLinesToRemove=function(be,_e,ce,pe,ae){for(var me=[],de=0;de<be.length-1;de++){var ge=de,le=be.get(++ge);if(le.isWrapped){for(var he=[be.get(de)];ge<be.length&&le.isWrapped;)he.push(le),le=be.get(++ge);if(pe>=de&&pe<ge)de+=he.length-1;else{for(var re=0,ne=fe(he,re,_e),y=1,a=0;y<he.length;){var E=fe(he,y,_e),b=E-a,x=ce-ne,z=Math.min(b,x);he[re].copyCellsFrom(he[y],a,ne,z,!1),(ne+=z)===ce&&(re++,ne=0),(a+=z)===E&&(y++,a=0),ne===0&&re!==0&&he[re-1].getWidth(ce-1)===2&&(he[re].copyCellsFrom(he[re-1],ce-1,ne++,1,!1),he[re-1].setCell(ce-1,ae))}he[re].replaceCells(ne,ce,ae);for(var oe=0,ie=he.length-1;ie>0&&(ie>re||he[ie].getTrimmedLength()===0);ie--)oe++;oe>0&&(me.push(de+he.length-oe),me.push(oe)),de+=he.length-1}}}return me},ee.reflowLargerCreateNewLayout=function(be,_e){for(var ce=[],pe=0,ae=_e[pe],me=0,de=0;de<be.length;de++)if(ae===de){var ge=_e[++pe];be.onDeleteEmitter.fire({index:de-me,amount:ge}),de+=ge-1,me+=ge,ae=_e[++pe]}else ce.push(de);return{layout:ce,countRemoved:me}},ee.reflowLargerApplyNewLayout=function(be,_e){for(var ce=[],pe=0;pe<_e.length;pe++)ce.push(be.get(_e[pe]));for(pe=0;pe<ce.length;pe++)be.set(pe,ce[pe]);be.length=_e.length},ee.reflowSmallerGetNewLineLengths=function(be,_e,ce){for(var pe=[],ae=be.map(function(ne,y){return fe(be,y,_e)}).reduce(function(ne,y){return ne+y}),me=0,de=0,ge=0;ge<ae;){if(ae-ge<ce){pe.push(ae-ge);break}me+=ce;var le=fe(be,de,_e);me>le&&(me-=le,de++);var he=be[de].getWidth(me-1)===2;he&&me--;var re=he?ce-1:ce;pe.push(re),ge+=re}return pe},ee.getWrappedLineTrimmedLength=fe},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(pe,ae){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,de){me.__proto__=de}||function(me,de){for(var ge in de)de.hasOwnProperty(ge)&&(me[ge]=de[ge])})(pe,ae)},function(pe,ae){function me(){this.constructor=pe}fe(pe,ae),pe.prototype=ae===null?Object.create(ae):(me.prototype=ae.prototype,new me)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.Marker=void 0;var _e=te(0),ce=function(pe){function ae(me){var de=pe.call(this)||this;return de.line=me,de._id=ae._nextId++,de.isDisposed=!1,de._onDispose=new _e.EventEmitter,de}return be(ae,pe),Object.defineProperty(ae.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),ae.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},ae._nextId=1,ae}(te(2).Disposable);ee.Marker=ce},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.OptionsService=ee.DEFAULT_OPTIONS=ee.DEFAULT_BELL_SOUND=void 0;var fe=te(0),be=te(11),_e=te(33);ee.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",ee.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:ee.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:be.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var ce=["cols","rows"],pe=function(){function ae(me){this._onOptionChange=new fe.EventEmitter,this.options=_e.clone(ee.DEFAULT_OPTIONS);for(var de=0,ge=Object.keys(me);de<ge.length;de++){var le=ge[de];if(le in this.options){var he=me[le];this.options[le]=he}}}return Object.defineProperty(ae.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),ae.prototype.setOption=function(me,de){if(!(me in ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+me+'"');if(ce.indexOf(me)!==-1)throw new Error('Option "'+me+'" can only be set in the constructor');this.options[me]!==de&&(de=this._sanitizeAndValidateOption(me,de),this.options[me]!==de&&(this.options[me]=de,this._onOptionChange.fire(me)))},ae.prototype._sanitizeAndValidateOption=function(me,de){switch(me){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":de||(de=ee.DEFAULT_OPTIONS[me]);break;case"cursorWidth":de=Math.floor(de);case"lineHeight":case"tabStopWidth":if(de<1)throw new Error(me+" cannot be less than 1, value: "+de);break;case"minimumContrastRatio":de=Math.max(1,Math.min(21,Math.round(10*de)/10));break;case"scrollback":if((de=Math.min(de,4294967295))<0)throw new Error(me+" cannot be less than 0, value: "+de);break;case"fastScrollSensitivity":case"scrollSensitivity":if(de<=0)throw new Error(me+" cannot be less than or equal to 0, value: "+de)}return de},ae.prototype.getOption=function(me){if(!(me in ee.DEFAULT_OPTIONS))throw new Error('No option with key "'+me+'"');return this.options[me]},ae}();ee.OptionsService=pe},function(Ze,ee,te){"use strict";var fe,be=this&&this.__extends||(fe=function(re,ne){return(fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,a){y.__proto__=a}||function(y,a){for(var E in a)a.hasOwnProperty(E)&&(y[E]=a[E])})(re,ne)},function(re,ne){function y(){this.constructor=re}fe(re,ne),re.prototype=ne===null?Object.create(ne):(y.prototype=ne.prototype,new y)}),_e=this&&this.__decorate||function(re,ne,y,a){var E,b=arguments.length,x=b<3?ne:a===null?a=Object.getOwnPropertyDescriptor(ne,y):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(re,ne,y,a);else for(var z=re.length-1;z>=0;z--)(E=re[z])&&(x=(b<3?E(x):b>3?E(ne,y,x):E(ne,y))||x);return b>3&&x&&Object.defineProperty(ne,y,x),x},ce=this&&this.__param||function(re,ne){return function(y,a){ne(y,a,re)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreService=void 0;var pe=te(1),ae=te(0),me=te(33),de=te(2),ge=Object.freeze({insertMode:!1}),le=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),he=function(re){function ne(y,a,E,b){var x=re.call(this)||this;return x._bufferService=a,x._logService=E,x._optionsService=b,x.isCursorInitialized=!1,x.isCursorHidden=!1,x._onData=x.register(new ae.EventEmitter),x._onUserInput=x.register(new ae.EventEmitter),x._onBinary=x.register(new ae.EventEmitter),x._scrollToBottom=y,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=me.clone(ge),x.decPrivateModes=me.clone(le),x}return be(ne,re),Object.defineProperty(ne.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onUserInput",{get:function(){return this._onUserInput.event},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),ne.prototype.reset=function(){this.modes=me.clone(ge),this.decPrivateModes=me.clone(le)},ne.prototype.triggerDataEvent=function(y,a){if(a===void 0&&(a=!1),!this._optionsService.options.disableStdin){var E=this._bufferService.buffer;E.ybase!==E.ydisp&&this._scrollToBottom(),a&&this._onUserInput.fire(),this._logService.debug('sending data "'+y+'"',function(){return y.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(y)}},ne.prototype.triggerBinaryEvent=function(y){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+y+'"',function(){return y.split("").map(function(a){return a.charCodeAt(0)})}),this._onBinary.fire(y))},ne=_e([ce(1,pe.IBufferService),ce(2,pe.ILogService),ce(3,pe.IOptionsService)],ne)}(de.Disposable);ee.CoreService=he},function(Ze,ee,te){"use strict";var fe=this&&this.__decorate||function(le,he,re,ne){var y,a=arguments.length,E=a<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,re):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(le,he,re,ne);else for(var b=le.length-1;b>=0;b--)(y=le[b])&&(E=(a<3?y(E):a>3?y(he,re,E):y(he,re))||E);return a>3&&E&&Object.defineProperty(he,re,E),E},be=this&&this.__param||function(le,he){return function(re,ne){he(re,ne,le)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.CoreMouseService=void 0;var _e=te(1),ce=te(0),pe={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(le){return le.button!==4&&le.action===1&&(le.ctrl=!1,le.alt=!1,le.shift=!1,!0)}},VT200:{events:19,restrict:function(le){return le.action!==32}},DRAG:{events:23,restrict:function(le){return le.action!==32||le.button!==3}},ANY:{events:31,restrict:function(le){return!0}}};function ae(le,he){var re=(le.ctrl?16:0)|(le.shift?4:0)|(le.alt?8:0);return le.button===4?(re|=64,re|=le.action):(re|=3&le.button,4&le.button&&(re|=64),8&le.button&&(re|=128),le.action===32?re|=32:le.action!==0||he||(re|=3)),re}var me=String.fromCharCode,de={DEFAULT:function(le){var he=[ae(le,!1)+32,le.col+32,le.row+32];return he[0]>255||he[1]>255||he[2]>255?"":"\x1B[M"+me(he[0])+me(he[1])+me(he[2])},SGR:function(le){var he=le.action===0&&le.button!==4?"m":"M";return"\x1B[<"+ae(le,!0)+";"+le.col+";"+le.row+he}},ge=function(){function le(he,re){this._bufferService=he,this._coreService=re,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new ce.EventEmitter,this._lastEvent=null;for(var ne=0,y=Object.keys(pe);ne<y.length;ne++){var a=y[ne];this.addProtocol(a,pe[a])}for(var E=0,b=Object.keys(de);E<b.length;E++){var x=b[E];this.addEncoding(x,de[x])}this.reset()}return le.prototype.addProtocol=function(he,re){this._protocols[he]=re},le.prototype.addEncoding=function(he,re){this._encodings[he]=re},Object.defineProperty(le.prototype,"activeProtocol",{get:function(){return this._activeProtocol},set:function(he){if(!this._protocols[he])throw new Error('unknown protocol "'+he+'"');this._activeProtocol=he,this._onProtocolChange.fire(this._protocols[he].events)},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"activeEncoding",{get:function(){return this._activeEncoding},set:function(he){if(!this._encodings[he])throw new Error('unknown encoding "'+he+'"');this._activeEncoding=he},enumerable:!1,configurable:!0}),le.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(le.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),le.prototype.triggerMouseEvent=function(he){if(he.col<0||he.col>=this._bufferService.cols||he.row<0||he.row>=this._bufferService.rows||he.button===4&&he.action===32||he.button===3&&he.action!==32||he.button!==4&&(he.action===2||he.action===3)||(he.col++,he.row++,he.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,he))||!this._protocols[this._activeProtocol].restrict(he))return!1;var re=this._encodings[this._activeEncoding](he);return re&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(re):this._coreService.triggerDataEvent(re,!0)),this._lastEvent=he,!0},le.prototype.explainEvents=function(he){return{down:!!(1&he),up:!!(2&he),drag:!!(4&he),move:!!(8&he),wheel:!!(16&he)}},le.prototype._compareEvents=function(he,re){return he.col===re.col&&he.row===re.row&&he.button===re.button&&he.action===re.action&&he.ctrl===re.ctrl&&he.alt===re.alt&&he.shift===re.shift},le=fe([be(0,_e.IBufferService),be(1,_e.ICoreService)],le)}();ee.CoreMouseService=ge},function(Ze,ee,te){"use strict";var fe=this&&this.__decorate||function(pe,ae,me,de){var ge,le=arguments.length,he=le<3?ae:de===null?de=Object.getOwnPropertyDescriptor(ae,me):de;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(pe,ae,me,de);else for(var re=pe.length-1;re>=0;re--)(ge=pe[re])&&(he=(le<3?ge(he):le>3?ge(ae,me,he):ge(ae,me))||he);return le>3&&he&&Object.defineProperty(ae,me,he),he},be=this&&this.__param||function(pe,ae){return function(me,de){ae(me,de,pe)}};Object.defineProperty(ee,"__esModule",{value:!0}),ee.DirtyRowService=void 0;var _e=te(1),ce=function(){function pe(ae){this._bufferService=ae,this.clearRange()}return Object.defineProperty(pe.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(pe.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),pe.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},pe.prototype.markDirty=function(ae){ae<this._start?this._start=ae:ae>this._end&&(this._end=ae)},pe.prototype.markRangeDirty=function(ae,me){if(ae>me){var de=ae;ae=me,me=de}ae<this._start&&(this._start=ae),me>this._end&&(this._end=me)},pe.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},pe=fe([be(0,_e.IBufferService)],pe)}();ee.DirtyRowService=ce},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeService=void 0;var fe=te(0),be=te(79),_e=function(){function ce(){this._providers=Object.create(null),this._active="",this._onChange=new fe.EventEmitter;var pe=new be.UnicodeV6;this.register(pe),this._active=pe.version,this._activeProvider=pe}return Object.defineProperty(ce.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"activeVersion",{get:function(){return this._active},set:function(pe){if(!this._providers[pe])throw new Error('unknown Unicode version "'+pe+'"');this._active=pe,this._activeProvider=this._providers[pe],this._onChange.fire(pe)},enumerable:!1,configurable:!0}),ce.prototype.register=function(pe){this._providers[pe.version]=pe},ce.prototype.wcwidth=function(pe){return this._activeProvider.wcwidth(pe)},ce.prototype.getStringCellWidth=function(pe){for(var ae=0,me=pe.length,de=0;de<me;++de){var ge=pe.charCodeAt(de);if(55296<=ge&&ge<=56319){if(++de>=me)return ae+this.wcwidth(ge);var le=pe.charCodeAt(de);56320<=le&&le<=57343?ge=1024*(ge-55296)+le-56320+65536:ae+=this.wcwidth(le)}ae+=this.wcwidth(ge)}return ae},ce}();ee.UnicodeService=_e},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.UnicodeV6=void 0;var fe,be=te(15),_e=[[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]],ce=[[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]],pe=function(){function ae(){if(this.version="6",!fe){fe=new Uint8Array(65536),be.fill(fe,1),fe[0]=0,be.fill(fe,0,1,32),be.fill(fe,0,127,160),be.fill(fe,2,4352,4448),fe[9001]=2,fe[9002]=2,be.fill(fe,2,11904,42192),fe[12351]=1,be.fill(fe,2,44032,55204),be.fill(fe,2,63744,64256),be.fill(fe,2,65040,65050),be.fill(fe,2,65072,65136),be.fill(fe,2,65280,65377),be.fill(fe,2,65504,65511);for(var me=0;me<_e.length;++me)be.fill(fe,0,_e[me][0],_e[me][1]+1)}}return ae.prototype.wcwidth=function(me){return me<32?0:me<127?1:me<65536?fe[me]:function(de,ge){var le,he=0,re=ge.length-1;if(de<ge[0][0]||de>ge[re][1])return!1;for(;re>=he;)if(de>ge[le=he+re>>1][1])he=le+1;else{if(!(de<ge[le][0]))return!0;re=le-1}return!1}(me,ce)?0:me>=131072&&me<=196605||me>=196608&&me<=262141?2:1},ae}();ee.UnicodeV6=pe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.CharsetService=void 0;var fe=function(){function be(){this.glevel=0,this._charsets=[]}return be.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},be.prototype.setgLevel=function(_e){this.glevel=_e,this.charset=this._charsets[_e]},be.prototype.setgCharset=function(_e,ce){this._charsets[_e]=ce,this.glevel===_e&&(this.charset=ce)},be}();ee.CharsetService=fe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.updateWindowsModeWrappedState=void 0;var fe=te(3);ee.updateWindowsModeWrappedState=function(be){var _e=be.buffer.lines.get(be.buffer.ybase+be.buffer.y-1),ce=_e==null?void 0:_e.get(be.cols-1),pe=be.buffer.lines.get(be.buffer.ybase+be.buffer.y);pe&&ce&&(pe.isWrapped=ce[fe.CHAR_DATA_CODE_INDEX]!==fe.NULL_CELL_CODE&&ce[fe.CHAR_DATA_CODE_INDEX]!==fe.WHITESPACE_CELL_CODE)}},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.WriteBuffer=void 0;var fe=function(){function be(_e){this._action=_e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return be.prototype.writeSync=function(_e){if(this._writeBuffer.length){for(var ce=this._bufferOffset;ce<this._writeBuffer.length;++ce){var pe=this._writeBuffer[ce],ae=this._callbacks[ce];this._action(pe),ae&&ae()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(_e)},be.prototype.write=function(_e,ce){var pe=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 pe._innerWrite()})),this._pendingData+=_e.length,this._writeBuffer.push(_e),this._callbacks.push(ce)},be.prototype._innerWrite=function(){for(var _e=this,ce=Date.now();this._writeBuffer.length>this._bufferOffset;){var pe=this._writeBuffer[this._bufferOffset],ae=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(pe),this._pendingData-=pe.length,ae&&ae(),Date.now()-ce>=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 _e._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},be}();ee.WriteBuffer=fe},function(Ze,ee,te){"use strict";Object.defineProperty(ee,"__esModule",{value:!0}),ee.AddonManager=void 0;var fe=function(){function be(){this._addons=[]}return be.prototype.dispose=function(){for(var _e=this._addons.length-1;_e>=0;_e--)this._addons[_e].instance.dispose()},be.prototype.loadAddon=function(_e,ce){var pe=this,ae={instance:ce,dispose:ce.dispose,isDisposed:!1};this._addons.push(ae),ce.dispose=function(){return pe._wrappedAddonDispose(ae)},ce.activate(_e)},be.prototype._wrappedAddonDispose=function(_e){if(!_e.isDisposed){for(var ce=-1,pe=0;pe<this._addons.length;pe++)if(this._addons[pe]===_e){ce=pe;break}if(ce===-1)throw new Error("Could not dispose an addon that has not been loaded");_e.isDisposed=!0,_e.dispose.apply(_e.instance),this._addons.splice(ce,1)}},be}();ee.AddonManager=fe}])})},62522:function(ot){"use strict";ot.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="},36459:function(ot,Ze,ee){"use strict";ee.d(Ze,{Z:function(){return te}});function te(fe){if(fe==null)throw new TypeError("Cannot destructure "+fe)}}}]);