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...

224 lines
1.2 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],{89489:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},59477:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},81953:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},49198:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},87169:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},52671:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},8657:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},10906:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},56082:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},33853:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},15075:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},43531:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},76618:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},38819:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return de}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(me,ae){return ge.createElement(_e.Z,(0,ee.Z)({},me,{ref:ae,icon:ye}))},ie=ge.forwardRef(fe),de=ie},11570:function(ft,Ve){"use strict";Ve.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},95910:function(ft,Ve){"use strict";Ve.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"}},58323:function(){"use strict"},54318:function(ft,Ve,te){"use strict";var ee=te(59301),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,fe=(le,me,ae)=>me in le?ge(le,me,{enumerable:!0,configurable:!0,writable:!0,value:ae}):le[me]=ae,ie=(le,me)=>{for(var ae in me||(me={}))ye.call(me,ae)&&fe(le,ae,me[ae]);if(be)for(var ae of be(me))_e.call(me,ae)&&fe(le,ae,me[ae]);return le};const de=le=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),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"})));Ve.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBmaWxsLW9wYWNpdHk9Ii4wMSIgZmlsbD0iI0ZGRiIgZD0iTTAgMGgzMHYzMEgweiIvPjxwYXRoIGQ9Ik02Ljg2NiAyNi45MjhoLTEuMjhhMi41NjEgMi41NjEgMCAwIDEtMi41NjItMi41NjFWNS41ODVhMi41NjEgMi41NjEgMCAwIDEgMi41NjEtMi41NmgxLjI4djQuMjY4YTIuNTYxIDIuNTYxIDAgMCAwIDIuNTYyIDIuNTZoMy44NDJhMi41NjEgMi41NjEgMCAwIDAgMi41Ni0yLjU2VjMuMDI0aDIuOTE1bDguMTg0IDguMTg0djEzLjE1OWEyLjU2MSAyLjU2MSAwIDAgMS0yLjU2MSAyLjU2MWgtMS4yOHYtNS45NzZjMC0uOTQzLS43NjUtMS43MDctMS43MDgtMS43MDdIOC41NzNjLS45NDMgMC0xLjcwNy43NjQtMS43MDcgMS43MDd2NS45NzZaIiBmaWxsPSIjQjZEMEZDIi8+PHBhdGggZD0iTTguNTczIDMuMDI0aDUuNTV2NC4yNjlhLjg1NC44NTQgMCAwIDEtLjg1NC44NTNIOS40MjdhLjg1NC44NTQgMCAwIDEtLjg1NC0uODUzVjMuMDI0Wk04LjU3MyAyNi45Mjh2LTUuOTc2SDIxLjM4djUuOTc2eiIgZmlsbD0iIzE4OTBGRiIvPjwvZz48L3N2Zz4="},71302:function(ft,Ve,te){"use strict";var ee=te(59301),ge=Object.defineProperty,be=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,fe=(le,me,ae)=>me in le?ge(le,me,{enumerable:!0,configurable:!0,writable:!0,value:ae}):le[me]=ae,ie=(le,me)=>{for(var ae in me||(me={}))ye.call(me,ae)&&fe(le,ae,me[ae]);if(be)for(var ae of be(me))_e.call(me,ae)&&fe(le,ae,me[ae]);return le};const de=le=>React.createElement("svg",ie({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},le),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"})));Ve.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMzAgMTVjMCA4LjI4NC02LjcxNiAxNS0xNSAxNS04LjI4NCAwLTE1LTYuNzE2LTE1LTE1QzAgNi43MTYgNi43MTYgMCAxNSAwYzguMjg0IDAgMTUgNi43MTYgMTUgMTVaIiBmaWxsPSIjQkFGRkYwIi8+PHBhdGggZD0iTTI1LjUgMTVjMCA1LjgtNC43IDEwLjUtMTAuNSAxMC41UzQuNSAyMC44IDQuNSAxNSA5LjIgNC41IDE1IDQuNSAyNS41IDkuMiAyNS41IDE1WiIgZmlsbD0iIzQ0RDdCNiIvPjxwYXRoIGQ9Ik0xMy41IDlhMS41IDEuNSAwIDAgMSAxLjUgMS41djQuMzc5bDMuNTYgMy41NmExLjUgMS41IDAgMCAxLTIuMTIgMi4xMjJsLTQtNEExLjUgMS41IDAgMCAxIDEyIDE1LjV2LTVBMS41IDEuNSAwIDAgMSAxMy41IDlaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg=="},29277:function(){"use strict";function ft(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(ft.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(ft.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(ft.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(ft.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,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof ft))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var Ve=[];function te(ne,a){var y=Ve.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ee(){var ne=Ve.pop();return ne===void 0?new go.Point:ne}function ge(ne){Ve.push(ne)}function be(ne,a,y,E,b,x,z,re,se){se||(se=new go.Point);var ce=ne-y,pe=b-z,Se=NaN,Le=NaN;if(ce===0)if(pe===0)ne===y&&(Se=ne,Le=a);else{var Ee=(x-re)/pe,je=x-Ee*b;Se=ne,Le=Ee*Se+je}else if(pe===0){var Me=(a-E)/ce,mt=a-Me*ne;Se=b,Le=Me*Se+mt}else{var Me=(a-E)/ce,Ee=(x-re)/pe,mt=a-Me*ne,je=x-Ee*b;Se=(je-mt)/(Me-Ee),Le=Me*Se+mt}return se.x=Se,se.y=Le,se}function ye(ne,a,y,E,b,x,z,re,se,ce,pe,Se,Le,Ee){var je=1-se,Me=se,mt=ne*je+y*Me,Xe=a*je+E*Me,pt=y*je+b*Me,we=E*je+x*Me,Fe=b*je+z*Me,He=x*je+re*Me,it=mt*je+pt*Me,Ke=Xe*je+we*Me,ht=pt*je+Fe*Me,_t=we*je+He*Me,Lt=it*je+ht*Me,kt=Ke*je+_t*Me;ce.x=mt,ce.y=Xe,pe.x=it,pe.y=Ke,Se.x=Lt,Se.y=kt,Le.x=ht,Le.y=_t,Ee.x=Fe,Ee.y=He}var _e=new go.Spot(.156,.156),fe=new go.Spot(.844,.844),ie=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ft("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ie,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-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,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=_e,b.spot2=fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ie*a,0,a,(1-ie)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ie*y,(1-ie)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ie*y,ie*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ie)*a,0,0,(1-ie)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ft("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ft("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);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=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ft("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ft("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/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=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ft("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/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=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var de=[];function le(){var ne=de.pop();return ne===void 0?[]:ne}function me(ne){ne.length=0,de.push(ne)}function ae(ne){for(var a=le(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function he(ne){var a=oe(ne),y=le();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return me(a),y}function oe(ne){for(var a=ae(ne),y=le(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var re=a[z],se=a[z+1],ce=a[(E+z-1)%b],pe=a[(E+z+x)%b];y[z*2]=re,y[z*2+1]=be(re.x,re.y,ce.x,ce.y,se.x,se.y,pe.x,pe.y,new go.Point)}return y[y.length]=y[0],me(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=ae(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=ae(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=ae(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=ae(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=ae(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=ae(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=ae(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=oe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=oe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=oe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=oe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=oe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=oe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),me(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=he(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!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*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=he(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!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*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=he(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!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*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=he(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!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*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=he(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!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*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=he(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!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*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),me(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ft("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ft("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){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,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ft("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var re=Math.max(b-E,0);return re>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+re,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,re,re).close())),x.spot1=_e,x.spot2=fe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ft("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ft("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){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,re=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,x,z,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=ie/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/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,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).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 ft("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/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,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).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 ft("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,re=Math.atan2(y,a),se=E-Math.min(Math.cos(re)*E/2,x),ce=E-Math.min(Math.sin(re)*E/2,z),b=new go.Geometry,pe=new go.PathFigure(se,0,!0);return b.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),pe.add(new go.PathSegment(go.PathSegment.Line,a-se,0)),pe.add(new go.PathSegment(go.PathSegment.Line,a,ce)),pe.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),pe.add(new go.PathSegment(go.PathSegment.Line,a,y-ce)),pe.add(new go.PathSegment(go.PathSegment.Line,a-se,y)),pe.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),pe.add(new go.PathSegment(go.PathSegment.Line,se,y)),pe.add(new go.PathSegment(go.PathSegment.Line,0,y-ce)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),pe.add(new go.PathSegment(go.PathSegment.Line,0,ce).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ft("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ft("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ft("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ie*a,0,a,(.5-ie/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ie/2)*y,ie*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,re=0,se=x*ie;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+se+re)*y,(.5-se+z)*a,(.5+x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+re)*y,(.5+se+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z)*a,(.5-se+re)*y,(.5+se+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-se+z)*a,(.5-x+re)*y,(.5-x+z+.05)*a,(.5-se+re-.02)*y)),x=.2,z=0,re=-.3,se=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+re)*y,(.5+se+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z)*a,(.5-se+re)*y,(.5+se+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+re)*y,(.5-se+z)*a,(.5-x+re)*y,(.5-x+z)*a,(.5-se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+se+re)*y,(.5-se+z)*a,(.5+x+re)*y)),x=.2,z=-.3,re=0,se=x*ie,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+re)*y,(1-.5+x+z-.05)*a,(.5-se+re-.02)*y,(.5+se+z)*a,(.5-x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+re)*y,(.5-se+z)*a,(.5-x+re)*y,(.5-x+z)*a,(.5-se+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+re)*y,(.5-x+z)*a,(.5+se+re)*y,(.5-se+z)*a,(.5+x+re)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+se+z)*a,(.5+x+re)*y,(.5+x+z)*a,(.5+se+re)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,re=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,re*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*re,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),re=.75,b=new go.PathFigure((z+x)*a,re*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*re,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;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,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=.5,re=.5,se=new go.PathFigure(z*a,(re-x)*y);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),x=.4,b=ie*.4;var ce=ee(),pe=ee(),Se=ee(),Le=ee();ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.42,ce,pe,Se,Le,Le);var Ee=ee(),je=ee(),Me=ee();ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.58,Le,Le,Me,Ee,je);var mt=ee(),Xe=ee(),pt=ee();ye(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.42,mt,Xe,pt,Le,Le);var we=ee(),Fe=ee(),He=ee();return ye(z,re+x,z-b,re+x,z-x,re+b,z-x,re,.58,Le,Le,He,we,Fe),se.add(new go.PathSegment(go.PathSegment.Move,He.x*a,He.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,we.x*a,we.y*y,Fe.x*a,Fe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,Se.x*a,Se.y*y,ce.x*a,ce.y*y,pe.x*a,pe.y*y)),se.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y).close()),se.add(new go.PathSegment(go.PathSegment.Move,pt.x*a,pt.y*y)),se.add(new go.PathSegment(go.PathSegment.Line,Me.x*a,Me.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,Ee.x*a,Ee.y*y,je.x*a,je.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,pt.x*a,pt.y*y,mt.x*a,mt.y*y,Xe.x*a,Xe.y*y).close()),ge(ce),ge(pe),ge(Se),ge(Le),ge(Ee),ge(je),ge(Me),ge(mt),ge(Xe),ge(pt),ge(we),ge(Fe),ge(He),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ft("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=ie*.4,x=.4,z=.5,re=.5,se=ee(),ce=ee(),pe=ee(),Se=ee(),Le=new go.PathFigure((z-x)*a,re*y,!1);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.44,pe,Se,ce,se,se),Le.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,pe.x*a,pe.y*y,Se.x*a,Se.y*y));var Ee=te(ce.x,ce.y);ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.56,se,se,ce,pe,Se);var je=te(ce.x,ce.y);Le.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.95*.9)*a,Ee.y*.1*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*a,Ee.y*.1*y)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),Le.add(new go.PathSegment(go.PathSegment.Line,a,0)),Le.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*a,.15*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(je.x*.1+.9)*a,(je.y*.1+.05*.9)*y)),Le.add(new go.PathSegment(go.PathSegment.Line,je.x*a,je.y*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,pe.x*a,pe.y*y,Se.x*a,Se.y*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),x=.35,b=ie*.35;var Me=new go.PathFigure(z*a,(re-x)*y,!1);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),Me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y));var mt=new go.PathFigure((z-x)*a,re*y,!1);return E.add(mt),ge(se),ge(ce),ge(pe),ge(Se),ge(Ee),ge(je),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,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,re=b*ie,se=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+re+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-re+z)*y,(.5+re+x)*a,(.5-b+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-re+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+re+z)*y,(.5-re+x)*a,(.5+b+z)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),se.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),se.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,re=b*ie;var se=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+re+z)*y,(.5+re+x)*a,(.5+b+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-re+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-re+z)*y,(.5-re+x)*a,(.5-b+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+re+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-re+z)*y));var se=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(se),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,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ft("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ft("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,re=(.5+b/2)*y,se=new go.Geometry,ce=new go.PathFigure(0,z,!0);se.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,z)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),se.spot1=new go.Spot(0,z/y);var pe=be(0,re/y,1,re/y,x/a,1,1,.5,ee());return se.spot2=new go.Spot(pe.x,pe.y),ge(pe),se}),go.Shape.setFigureParameter("Arrow2",0,new ft("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ft("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,re=z+b,se=new go.Geometry,ce=new go.PathFigure(0,z,!0);se.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x,z)),ce.add(new go.PathSegment(go.PathSegment.Line,x,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,y)),ce.add(new go.PathSegment(go.PathSegment.Line,x,re)),ce.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),se.spot1=new go.Spot(0,z/y);var pe=be(0,re/y,1,re/y,x/a,1,1,.5,ee());return se.spot2=new go.Spot(pe.x,pe.y),ge(pe),se}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){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*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){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*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ft("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var se=be(0,.5,.3,0,0,b/y,.1,b/y,ee());return z.spot1=new go.Spot(se.x,se.y),se=be(.7,1,1,.5,0,x/y,1,x/y,se),z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ft("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ft("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,re=(y-b)/2,se=re+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,re=0,se=y):(x=0,z=y,re=0,se=y));var ce=new go.Geometry,pe=new go.PathFigure(a,.5*y,!0);ce.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*a,se)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*a,se)),pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*a,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close());var Se=be(0,.5,.3,re/y,0,x/y,1,x/y,ee());return ce.spot1=new go.Spot(Se.x,Se.y),Se=be(.7,se/y,1,.5,0,z/y,1,z/y,Se),ce.spot2=new go.Spot(Se.x,Se.y),ge(Se),ce}),go.Shape.setFigureParameter("IBeamArrow",0,new ft("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var se=be(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ft("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ft("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,re=(y-b)/2,se=re+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,re=0,se=y):(x=0,z=y,re=0,se=y));var ce=new go.Geometry,pe=new go.PathFigure(a,.5*y,!0);ce.add(pe),pe.add(new go.PathSegment(go.PathSegment.Line,.7*a,se)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,se)),pe.add(new go.PathSegment(go.PathSegment.Line,0,se)),pe.add(new go.PathSegment(go.PathSegment.Line,0,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,re)),pe.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),pe.add(new go.PathSegment(go.PathSegment.Line,.7*a,re).close()),ce.spot1=new go.Spot(0,x/y);var Se=be(.7,se/y,1,.5,0,z/y,1,z/y,ee());return ce.spot2=new go.Spot(Se.x,Se.y),ge(Se),ce}),go.Shape.setFigureParameter("Pointer",0,new ft("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),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,ee());return b.spot2=new go.Spot(z.x,z.y),ge(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ft("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=be(0,.65,1,.65,0,1,1,.5,ee());return b.spot2=new go.Spot(z.x,z.y),ge(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ft("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var se=be(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ft("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,0,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var se=be(.7,1,1,.5,0,x/y,1,x/y,ee());return z.spot2=new go.Spot(se.x,se.y),ge(se),z}),go.Shape.setFigureParameter("SquareArrow",0,new ft("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ie*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var re=new go.PathFigure(a,E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ie*E,(.5+x)*a,2*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ie*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,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ie*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ie*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ie*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ie*E));var re=new go.PathFigure(0,y-E,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ie*E,(.5-x)*a,y-2*E)),re.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ie*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,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0));var re=new go.PathFigure(E,0,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ie*E,0,2*E,(.5-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ie*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ie*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ie*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ie*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ie*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ie*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var re=new go.PathFigure(a-E,0,!1);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ie*E,0,a-2*E,(.5-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ie*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=ie*b,re=ie*x,se=.5,ce=.1,pe=new go.PathFigure(se*a,(ce+x)*y,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,(se-b)*a,ce*y,(se-z)*a,(ce+x)*y,(se-b)*a,(ce+re)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-x)*y,(se-b)*a,(ce-re)*y,(se-z)*a,(ce-x)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(se+b)*a,ce*y,(se+z)*a,(ce-x)*y,(se+b)*a,(ce-re)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+x)*y,(se+b)*a,(ce+re)*y,(se+z)*a,(ce+x)*y));var Se=.05,Le=ie*Se;se=.05,ce=.25;var Ee=new go.PathFigure(.5*a,.2*y,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),se=.95,ce=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+Se)*a,ce*y,(se+Le)*a,(ce-Se)*y,(se+Se)*a,(ce-Le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),Se=.025,Le=ie*Se,se=.825,ce=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-Se)*y,(se+Se)*a,(ce-Le)*y,(se+Le)*a,(ce-Se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-Se)*a,ce*y,(se-Le)*a,(ce-Se)*y,(se-Se)*a,(ce-Le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),Se=.05,Le=ie*Se,se=.5,ce=.7,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-Se)*y,(se+Se)*a,(ce-Le)*y,(se+Le)*a,(ce-Se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-Se)*a,ce*y,(se-Le)*a,(ce-Se)*y,(se-Se)*a,(ce-Le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),Se=.025,Le=ie*Se,se=.175,ce=.35,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-Se)*y,(se+Se)*a,(ce-Le)*y,(se+Le)*a,(ce-Se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-Se)*a,ce*y,(se-Le)*a,(ce-Se)*y,(se-Se)*a,(ce-Le)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),Se=.05,Le=ie*Se,se=.05,ce=.25,Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-Se)*y,(se-Se)*a,(ce-Le)*y,(se-Le)*a,(ce-Se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ft("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var re=new go.PathFigure(a,.1*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){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*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var re=new go.PathFigure(a,.1*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ie*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var re=new go.PathFigure(0,b*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){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,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var re=new go.PathFigure(b*a,0,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),re.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),re.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ie*.5,re=.5,se=new go.PathFigure(a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,y,a,(re+z)*y,(re+z)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,re*y,(re-z)*a,y,0,(re+z)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,re*a,0,0,(re-z)*y,(re-z)*a,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,a,re*y,(re+z)*a,0,a,(re-z)*y));var ce=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),ce.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){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*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){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*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){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,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var re=new go.PathFigure(.5*b*a,b*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){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*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var re=new go.PathFigure(a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){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,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){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)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){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,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var re=new go.PathFigure(a,x*y,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var se=new go.PathFigure(.8*a,.75*y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),se.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=ie*.1,x=.1,z=.9,re=.5,se=new go.PathFigure(.8*a,.5*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,y)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var ce=new go.PathFigure((z+x)*a,re*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re-x)*y,(z+x)*a,(re-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=ie*.4,z=ie*.1,re=.1,se=.9,ce=.5,pe=new go.PathFigure(.8*a,.5*y,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),pe.add(new go.PathSegment(go.PathSegment.Line,0,y)),pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),pe.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),pe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var Se=new go.PathFigure((se+re)*a,ce*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+re)*y,(se+re)*a,(ce+z)*y,(se+z)*a,(ce+re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a,ce*y,(se-z)*a,(ce+re)*y,(se-re)*a,(ce+z)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-re)*y,(se-re)*a,(ce-z)*y,(se-z)*a,(ce-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a,ce*y,(se+z)*a,(ce-re)*y,(se+re)*a,(ce-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,z=0,re=.5,se=new go.PathFigure(.8*a,.5*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(re-b)*y,.7*a,(re-x)*y)),b=.1,x=ie*.1,z=.9,re=.5;var ce=new go.PathFigure((z-b)*a,re*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,z=0,re=.5,se=new go.PathFigure(0,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(re-b)*y,.8*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(re+x)*y,(z+x+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,z=.2,re=.5,se=new go.PathFigure(.1*a,0,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.8*a,.5*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(re-b)*y,.7*a,(re-x)*y)),b=.1,x=ie*.1,z=.9,re=.5;var pe=new go.PathFigure((z-b)*a,re*y,!0);return E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*b,z=.2,re=.5,se=new go.PathFigure(.1*a,0,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var ce=new go.PathFigure(.2*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(re-b)*y,.9*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){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,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=ie*.1,x=.1,z=.1,re=.5,se=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=ie*.5,x=.5,z=.5,re=.5,se=new go.PathFigure((z-x)*a,re*y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-x)*y,(z-x)*a,(re-b)*y,(z-b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re-x)*y,(z+x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,re*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,re*y,z*a,(re-x)*y,z*a,(re+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=ie*.8,re=.8,se=0,ce=.5,pe=(b-a)/2,Se=(x-y)/2,Le=new go.PathFigure(se*a+pe,(ce+re)*y+Se,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+pe,ce*y+Se,(se-z)*a+pe,(ce+re)*y+Se,(se-re)*a+pe,(ce+z)*y+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce-re)*y+Se,(se-re)*a+pe,(ce-z)*y+Se,(se-z)*a+pe,(ce-re)*y+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-re+z*.5)*a+pe,ce*y+Se,se*a+pe,(ce-re)*y+Se,(se-re+z*.5)*a+pe,(ce-z)*y+Se)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce+re)*y+Se,(se-re+z*.5)*a+pe,(ce+z)*y+Se,se*a+pe,(ce+re)*y+Se).close()),z=ie*.4,re=.4,se=.2,ce=.5;var Ee=new go.PathFigure(se*a+pe,(ce+re)*y+Se,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+pe,ce*y+Se,(se-z)*a+pe,(ce+re)*y+Se,(se-re)*a+pe,(ce+z)*y+Se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce-re)*y+Se,(se-re)*a+pe,(ce-z)*y+Se,(se-z)*a+pe,(ce-re)*y+Se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-re+z*.5)*a+pe,ce*y+Se,se*a+pe,(ce-re)*y+Se,(se-re+z*.5)*a+pe,(ce-z)*y+Se)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce+re)*y+Se,(se-re+z*.5)*a+pe,(ce+z)*y+Se,se*a+pe,(ce+re)*y+Se).close()),z=ie*.2,re=.2,se=.5,ce=.5;var je=new go.PathFigure((se-re)*a+pe,ce*y+Se,!0);E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce-re)*y+Se,(se-re)*a+pe,(ce-z)*y+Se,(se-z)*a+pe,(ce-re)*y+Se)),je.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+pe,ce*y+Se,(se+z)*a+pe,(ce-re)*y+Se,(se+re)*a+pe,(ce-z)*y+Se)),je.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce+re)*y+Se,(se+re)*a+pe,(ce+z)*y+Se,(se+z)*a+pe,(ce+re)*y+Se)),je.add(new go.PathSegment(go.PathSegment.Bezier,(se-re)*a+pe,ce*y+Se,(se-z)*a+pe,(ce+re)*y+Se,(se-re)*a+pe,(ce+z)*y+Se)),z=ie*.4,re=.4,se=.8,ce=.5;var Me=new go.PathFigure(se*a+pe,(ce-re)*y+Se,!0);E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+pe,ce*y+Se,(se+z)*a+pe,(ce-re)*y+Se,(se+re)*a+pe,(ce-z)*y+Se)),Me.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce+re)*y+Se,(se+re)*a+pe,(ce+z)*y+Se,(se+z)*a+pe,(ce+re)*y+Se)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(se+re-z*.5)*a+pe,ce*y+Se,se*a+pe,(ce+re)*y+Se,(se+re-z*.5)*a+pe,(ce+z)*y+Se)),Me.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce-re)*y+Se,(se+re-z*.5)*a+pe,(ce-z)*y+Se,se*a+pe,(ce-re)*y+Se).close()),z=ie*.8,re=.8,se=1,ce=.5;var mt=new go.PathFigure(se*a+pe,(ce-re)*y+Se,!0);return E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(se+re)*a+pe,ce*y+Se,(se+z)*a+pe,(ce-re)*y+Se,(se+re)*a+pe,(ce-z)*y+Se)),mt.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce+re)*y+Se,(se+re)*a+pe,(ce+z)*y+Se,(se+z)*a+pe,(ce+re)*y+Se)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(se+re-z*.5)*a+pe,ce*y+Se,se*a+pe,(ce+re)*y+Se,(se+re-z*.5)*a+pe,(ce+z)*y+Se)),mt.add(new go.PathSegment(go.PathSegment.Bezier,se*a+pe,(ce-re)*y+Se,(se+re-z*.5)*a+pe,(ce-z)*y+Se,se*a+pe,(ce-re)*y+Se).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),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*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var re=new go.PathFigure(0,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),re.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),re.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=ie*.4,x=.4,z=.5,re=.5,se=ee(),ce=ee(),pe=ee(),Se=ee();ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,se,se,ce,pe,Se);var Le=te(ce.x,ce.y),Ee=new go.PathFigure(ce.x*a,ce.y*y,!0);E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,pe.x*a,pe.y*y,Se.x*a,Se.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z+x)*a,(re+b)*y,(z+b)*a,(re+x)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,(z-b)*a,(re+x)*y,(z-x)*a,(re+b)*y)),ye(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,pe,Se,ce,se,se),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,pe.x*a,pe.y*y,Se.x*a,Se.y*y)),b=ie*.3,x=.3,ye(z-x,re,z-x,re-b,z-b,re-x,z,re-x,.5,pe,Se,ce,se,se),Ee.add(new go.PathSegment(go.PathSegment.Line,ce.x*a,ce.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,re*y,Se.x*a,Se.y*y,pe.x*a,pe.y*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+x)*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,re*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ye(z,re-x,z+b,re-x,z+x,re-b,z+x,re,.5,se,se,ce,pe,Se),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ce.x*a,ce.y*y,Se.x*a,Se.y*y,pe.x*a,pe.y*y).close());var Ee=new go.PathFigure(.45*a,0,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ge(se),ge(ce),ge(pe),ge(Se),ge(Le),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,re,se){z.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*a,(.8+se)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*a,(.5+se)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*a,(.5+se)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*a,(.8+se)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,re=b*ie,se=.4*Math.SQRT2/2+.5,ce=.5-.5*Math.SQRT2/2,pe=1,Se=.5,Le=.5,Ee=0,je=new go.PathFigure(se*a,(1-ce)*y,!1);return E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,Se*y,pe*a,.7*y,pe*a,Se*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Le+x)*a,(Ee+x)*y,(.5+b+x)*a,(.5-re+x)*y,(.5+re+x)*a,(.5-b+x)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-re+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-re+z)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+re+z)*y,(.5-re+x)*a,.9*y)),je.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),je.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),je.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){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,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,re=.5,se=z,ce=Math.PI/4,pe=4*(1-Math.cos(ce))/(3*Math.sin(ce)),Se=pe*.5,Le=z,Ee=z,je=pe*Le,Me=pe*Ee;x.add(new go.PathSegment(go.PathSegment.Bezier,(re-Le)*a,se*y,(re-(je+Le)/2)*a,(se+(Ee+Me)/2)*y,(re-Le)*a,(se+Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(se-Ee)*y,(re-Le)*a,(se-Me)*y,(re-je)*a,(se-Ee)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(re+Le)*a,se*y,(re+je)*a,(se-Ee)*y,(re+Le)*a,(se-Me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(re+Le)*a,(se+Me)*y,(re+(je+Le)/2)*a,(se+(Ee+Me)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var mt=new go.PathFigure(.2*a,y,!1);E.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Xe=new go.PathFigure(.8*a,y,!1);return E.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var re=new go.PathFigure(b*a,0,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),re.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),re.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),re.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,re=ie*.1,se=.2,ce=.9,pe=new go.PathFigure((se-z)*a,ce*y,!0);E.add(pe),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-z)*y,(se-z)*a,(ce-re)*y,(se-re)*a,(ce-z)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(se+z)*a,ce*y,(se+re)*a,(ce-z)*y,(se+z)*a,(ce-re)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+z)*y,(se+z)*a,(ce+re)*y,(se+re)*a,(ce+z)*y)),pe.add(new go.PathSegment(go.PathSegment.Bezier,(se-z)*a,ce*y,(se-re)*a,(ce+z)*y,(se-z)*a,(ce+re)*y).close()),z=.1,re=ie*.1,se=.8,ce=.9;var Se=new go.PathFigure((se-z)*a,ce*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce-z)*y,(se-z)*a,(ce-re)*y,(se-re)*a,(ce-z)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se+z)*a,ce*y,(se+re)*a,(ce-z)*y,(se+z)*a,(ce-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(ce+z)*y,(se+z)*a,(ce+re)*y,(se+re)*a,(ce+z)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(se-z)*a,ce*y,(se-re)*a,(ce+z)*y,(se-z)*a,(ce+re)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){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*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var re=new go.PathFigure(.5*a,.7*y,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var se=.1,ce=ie*.1,pe=.1,Se=.9,Le=new go.PathFigure((pe-se)*a,Se*y,!0);E.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se-se)*y,(pe-se)*a,(Se-ce)*y,(pe-ce)*a,(Se-se)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*a,Se*y,(pe+ce)*a,(Se-se)*y,(pe+se)*a,(Se-ce)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se+se)*y,(pe+se)*a,(Se+ce)*y,(pe+ce)*a,(Se+se)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*a,Se*y,(pe-ce)*a,(Se+se)*y,(pe-se)*a,(Se+ce)*y)),se=.1,ce=ie*.1,pe=.4,Se=.9;var Ee=new go.PathFigure((pe-se)*a,Se*y,!0);return E.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se-se)*y,(pe-se)*a,(Se-ce)*y,(pe-ce)*a,(Se-se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(pe+se)*a,Se*y,(pe+ce)*a,(Se-se)*y,(pe+se)*a,(Se-ce)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,pe*a,(Se+se)*y,(pe+se)*a,(Se+ce)*y,(pe+ce)*a,(Se+se)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(pe-se)*a,Se*y,(pe-ce)*a,(Se+se)*y,(pe-se)*a,(Se+ce)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var pe=.05,Se=ie*.05,Le=.175,Ee=.95,re=new go.PathFigure((Le-pe)*a,Ee*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee-pe)*y,(Le-pe)*a,(Ee-Se)*y,(Le-Se)*a,(Ee-pe)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Le+pe)*a,Ee*y,(Le+Se)*a,(Ee-pe)*y,(Le+pe)*a,(Ee-Se)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee+pe)*y,(Le+pe)*a,(Ee+Se)*y,(Le+Se)*a,(Ee+pe)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Le-pe)*a,Ee*y,(Le-Se)*a,(Ee+pe)*y,(Le-pe)*a,(Ee+Se)*y));var pe=.05,Se=ie*.05,Le=.375,Ee=.95,se=new go.PathFigure((Le-pe)*a,Ee*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee-pe)*y,(Le-pe)*a,(Ee-Se)*y,(Le-Se)*a,(Ee-pe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Le+pe)*a,Ee*y,(Le+Se)*a,(Ee-pe)*y,(Le+pe)*a,(Ee-Se)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee+pe)*y,(Le+pe)*a,(Ee+Se)*y,(Le+Se)*a,(Ee+pe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Le-pe)*a,Ee*y,(Le-Se)*a,(Ee+pe)*y,(Le-pe)*a,(Ee+Se)*y));var pe=.05,Se=ie*.05,Le=.625,Ee=.95,ce=new go.PathFigure((Le-pe)*a,Ee*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee-pe)*y,(Le-pe)*a,(Ee-Se)*y,(Le-Se)*a,(Ee-pe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(Le+pe)*a,Ee*y,(Le+Se)*a,(Ee-pe)*y,(Le+pe)*a,(Ee-Se)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee+pe)*y,(Le+pe)*a,(Ee+Se)*y,(Le+Se)*a,(Ee+pe)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(Le-pe)*a,Ee*y,(Le-Se)*a,(Ee+pe)*y,(Le-pe)*a,(Ee+Se)*y));var pe=.05,Se=ie*.05,Le=.825,Ee=.95,je=new go.PathFigure((Le-pe)*a,Ee*y,!0);E.add(je),je.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee-pe)*y,(Le-pe)*a,(Ee-Se)*y,(Le-Se)*a,(Ee-pe)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Le+pe)*a,Ee*y,(Le+Se)*a,(Ee-pe)*y,(Le+pe)*a,(Ee-Se)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,Le*a,(Ee+pe)*y,(Le+pe)*a,(Ee+Se)*y,(Le+Se)*a,(Ee+pe)*y)),je.add(new go.PathSegment(go.PathSegment.Bezier,(Le-pe)*a,Ee*y,(Le-Se)*a,(Ee+pe)*y,(Le-pe)*a,(Ee+Se)*y).close());var Me=new go.PathFigure(0,y,!1);return E.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var re=.05,se=ie*.05,ce=.35,pe=.775,Se=new go.PathFigure((ce-re)*a,pe*y,!0);return E.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(pe-re)*y,(ce-re)*a,(pe-se)*y,(ce-se)*a,(pe-re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ce+re)*a,pe*y,(ce+se)*a,(pe-re)*y,(ce+re)*a,(pe-se)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(pe+re)*y,(ce+re)*a,(pe+se)*y,(ce+se)*a,(pe+re)*y)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(ce-re)*a,pe*y,(ce-se)*a,(pe+re)*y,(ce-re)*a,(pe+se)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){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,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){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,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=ie*.3,z=.5,re=.7,se=new go.PathFigure((z-b)*a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y));var ce=new go.PathFigure(0,.7*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,z=.5,re=.5,se=new go.PathFigure((z-b)*a,re*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y));var ce=new go.PathFigure(.15*a,.5*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=ie*.5,z=.5,re=.5,se=new go.PathFigure((z-b)*a,re*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y).close()),b=.05,x=ie*.05,z=.5,re=.8;var ce=new go.PathFigure((z-b)*a,re*y,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re-b)*y,(z-b)*a,(re-x)*y,(z-x)*a,(re-b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,re*y,(z+x)*a,(re-b)*y,(z+b)*a,(re-x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(re+b)*y,(z+b)*a,(re+x)*y,(z+x)*a,(re+b)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,re*y,(z-x)*a,(re+b)*y,(z-b)*a,(re+x)*y).close()),ce.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var re=new go.PathFigure(.678*a,.85*y,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),re.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),re.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var se=new go.PathFigure(.5*a,.1*y,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),se.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var re=new go.PathFigure(a*.612,y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var se=new go.PathFigure(a*.816,y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),se.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),se.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var re=new go.PathFigure(a*.055,.18*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),re.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),re.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var se=new go.PathFigure(a*1,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),se.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),se.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){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,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var re=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),re.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var se=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),se.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*ie,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-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 re=new go.PathFigure(a*.83,0,!1);E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),re.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var se=new go.PathFigure(a*.83,y*1,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),se.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),se.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var ce=new go.PathFigure(a*.78,y*.05,!1);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ce.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ie,x=y*.8,z=new go.Geometry,re=new go.PathFigure(E,0,!0);return z.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),re.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),re.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),re.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),re.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),re.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),re.add(new go.PathSegment(go.PathSegment.Line,E,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),re.add(new go.PathSegment(go.PathSegment.Line,0,E)),re.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,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*ie,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.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,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.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")},5559: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 ft={},Ve="5.0",te={},ee=null,ge=!1,be=!1,ye=null,_e=!1,fe=null,ie=null,de=0;de<arguments.length;de++){var le=arguments[de];if(le!==null)switch(typeof le){case"number":Ve=le.toFixed(1);break;case"string":le.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ve=le:ye=le;break;case"object":typeof le.is3D!="undefined"?ee=le:te=le;break;case"boolean":ge=le,be=!0;break}}ee===null&&(ee={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},te.material_id!==void 0&&!be&&(ge=!0)),ye!==null&&te.id===void 0&&(te.id=ye);var me="",ae="",he=!1,oe=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,re=null;te.height!==void 0&&(te.height=Math.round(te.height)),te.width!==void 0&&(te.width=Math.round(te.width));var se=function(nt){return parseFloat(nt)>4?parseFloat(nt):5};ft.setHTML5Codebase=function(nt,Qe){ie=nt,_t(nt,Qe)},ft.setJavaCodebase=ft.setJavaCodebaseVersion=ft.isCompiledInstalled=ft.setPreCompiledScriptPath=ft.setPreCompiledResourcePath=function(){},ft.setHTML5CodebaseVersion=function(nt,Qe){var Pt=parseFloat(nt);if(Pt!==NaN&&Pt<5){console.log("The GeoGebra HTML5 codebase version "+Pt+" is deprecated. Using version latest instead.");return}fe=nt,ht(nt,Qe)},ft.getHTML5CodebaseVersion=function(){return ne},ft.getParameters=function(){return te},ft.setFontsCSSURL=function(nt){z=nt},ft.setGiacJSURL=function(nt){},ft.setJNLPFile=function(nt){me=nt},ft.setJNLPBaseDir=function(nt){},ft.inject=function(){function nt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Qe="auto",Pt=te.id,zt,yt=!1,an=0;an<arguments.length;an++){var Ze=arguments[an];typeof Ze=="string"?(Ze=Ze.toLowerCase(),Ze.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Qe=Ze:Pt=arguments[an]):typeof Ze=="boolean"?yt=Ze:Ze instanceof HTMLElement&&(zt=Ze)}vt();function vt(){if(!_e){setTimeout(vt,200);return}Qe=it(Qe);var xt=zt||document.getElementById(Pt);if(!xt){console.log("possibly bug on ajax loading? ");return}if(ft.removeExistingApplet(xt,!1),te.width===void 0&&xt.clientWidth&&(te.width=xt.clientWidth),te.height===void 0&&xt.clientHeight&&(te.height=xt.clientHeight),!(te.width&&te.height)&&Qe==="html5"&&(delete te.width,delete te.height),oe=Qe,Qe==="screenshot")Xe(xt,te);else{var nn=!1;te.hasOwnProperty("playButton")&&te.playButton||te.hasOwnProperty("clickToLoad")&&te.clickToLoad?nn=!0:te.hasOwnProperty("playButtonAutoDecide")&&te.playButtonAutoDecide&&(nn=(!ce()||nt())&&pe()),nn?(oe="screenshot",we(xt,te,yt,Qe)):mt(xt,te,yt)}}};function ce(){try{return window.self!==window.top}catch(nt){return!0}}function pe(){return te.hasOwnProperty("screenshotGenerator")&&te.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ft.getViews=function(){return ee},ft.isJavaInstalled=function(){return!1};var Se=function(nt){var Qe=function(an){var Ze=JSON.parse(an),vt=function(Gt){return Gt.type=="G"||Gt.type=="E"},xt=Ze.elements?Ze.elements.filter(vt)[0]:Ze;if(!xt||!xt.url){Pt();return}te.fileName=xt.url,Le(xt.settings||{}),ee.is3D=!0;var nn="https://www.geogebra.org/images/";ft.setPreviewImage(E||xt.previewUrl,nn+"GeoGebra_loading.png",nn+"applet_play.png"),nt()},Pt=function(){te.onError&&te.onError(),Lt("Error: Fetching material (id "+te.material_id+") failed.",te)},zt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",yt="/materials/"+te.material_id+"?scope=basic";Ee("https://"+zt+"/api/proxy.php?path="+encodeURIComponent(yt),Qe,Pt)};function Le(nt){var Qe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Pt){nt[Pt]=!!nt[Pt]}),Qe.forEach(function(Pt){te[Pt]===void 0&&nt[Pt]!==void 0&&(te[Pt]=nt[Pt])}),te.showToolBarHelp===void 0&&(te.showToolBarHelp=te.showToolBar)}function Ee(nt,Qe,Pt){var zt=new XMLHttpRequest;zt.open("GET",nt),zt.onload=function(){Qe(zt.responseText)},zt.onerror=Pt,zt.send()}ft.isHTML5Installed=function(){return!0},ft.getLoadedAppletType=function(){return oe},ft.setPreviewImage=function(nt,Qe,Pt){E=nt,b=Qe,x=Pt},ft.removeExistingApplet=function(nt,Qe){var Pt;typeof nt=="string"&&(nt=document.getElementById(nt)),oe=null;var zt=null;for(Pt=0;Pt<nt.childNodes.length;Pt++){var yt=nt.childNodes[Pt],an=yt.className;an==="applet_screenshot"?Qe?(yt.style.display="block",oe="screenshot"):yt.style.display="none":an!=="applet_scaler prerender"&&(nt.removeChild(yt),zt=an&&an.indexOf("appletParameters")!=-1?yt.id:null,Pt--)}var Ze=te.id!==void 0?te.id:zt,vt=window[Ze];vt&&typeof vt.getBase64=="function"&&(vt.remove(),window[Ze]=null)},ft.refreshHitPoints=function(){if(se(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var nt=ft.getAppletObject();return nt&&typeof nt.recalculateEnvironments=="function"?(nt.recalculateEnvironments(),!0):!1},ft.startAnimation=function(){var nt=ft.getAppletObject();return nt&&typeof nt.startAnimation=="function"?(nt.startAnimation(),!0):!1},ft.stopAnimation=function(){var nt=ft.getAppletObject();return nt&&typeof nt.stopAnimation=="function"?(nt.stopAnimation(),!0):!1},ft.getAppletObject=function(){var nt=te.id!==void 0?te.id:"ggbApplet";return window[nt]},ft.resize=function(){};var je=function(nt,Qe,Pt){var zt=document.createElement("param");zt.setAttribute("name",Qe),zt.setAttribute("value",Pt),nt.appendChild(zt)},Me=function(nt){return nt&&nt!=="false"},mt=function(nt,Qe,Pt){se(ne)<=4.2&&(Pt=!0);var zt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(zt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var yt=document.createElement("div");yt.classList.add("appletParameters","notranslate");var an=Qe.width,Ze=Qe.height;if(Qe.disableAutoScale=Qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Qe.disableAutoScale,Qe.width!==void 0)if(se(ne)<=4.4)Me(Qe.showToolBar)&&(Qe.height-=7),Me(Qe.showAlgebraInput)&&(Qe.height-=37),Qe.width<605&&Me(Qe.showToolBar)&&(Qe.width=605,an=605);else{var vt=100;(Me(Qe.showToolBar)||Me(Qe.showMenuBar))&&(Qe.hasOwnProperty("customToolBar")&&(Qe.customToolbar=Qe.customToolBar),vt=Me(Qe.showMenuBar)?245:155),an<vt&&(Qe.width=vt,an=vt)}yt.style.border="none",yt.style.display="inline-block";for(var xt in Qe)Qe.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&yt.setAttribute("data-param-"+xt,Qe[xt]);z&&yt.setAttribute("data-param-fontscssurl",z),ft.resize=function(){GGBAppletUtils.responsiveResize(nt,Qe)},window.addEventListener("resize",function(ze){ft.resize()});var nn=typeof Qe.appletOnLoad=="function"?Qe.appletOnLoad:function(){};if(!Pt&&Qe.width!==void 0){Qe.hasOwnProperty("showSplash")||yt.setAttribute("data-param-showSplash","false");var Gt=nt.querySelector(".applet_scaler.prerender"),st=Gt!==null;if(st)var ct=Gt.querySelector(".ggb_preview");else{var ct=He(an,Ze,Qe.borderColor,!1);Gt=document.createElement("div"),Gt.className="applet_scaler",Gt.style.position="relative",Gt.style.display="block",Gt.style.width=an+"px",Gt.style.height=Ze+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Gt,"66%"),se(ne)>=5?(Qe.appletOnLoad=function(ze){var at=nt.querySelector(".ggb_preview");at&&at.parentNode.removeChild(at),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Gt),window.GGBT_wsf_view&&$(window).trigger("resize"),nn(ze)},st||Gt.appendChild(ct)):yt.appendChild(ct),Gt.appendChild(yt),st||nt.appendChild(Gt),setTimeout(function(){ft.resize()},1)}else{var Ge=document.createElement("div");Ge.className="applet_scaler",Ge.style.position="relative",Ge.style.display="block",Ge.appendChild(yt),nt.appendChild(Ge),Qe.appletOnLoad=function(ze){ft.resize(),nn(ze)}}function Ne(ze,at){at&&typeof at.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ze,at.appletOnLoad):renderGGBElement(ze),Lt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",at)}function qe(ze,at){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ze,params:at}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ot){Ne(Ot.article,Ot.params)}),html5AppletsToProcess=null)},se(ne)<5&&(ze.className+=" geogebraweb")):Ne(ze,at)}if(zt){scriptLoadStarted=!0;for(var Ct=0;Ct<yt.childNodes.length;Ct++){var Oe=yt.childNodes[Ct].tagName;Oe==="TABLE"&&(yt.removeChild(yt.childNodes[Ct]),Ct--)}if(ggbHTML5LoadedScript!==null){var Ie=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ie!=null&&Ie.parentNode.removeChild(Ie)}var We=document.createElement("script"),ke=function(){qe(yt,Qe)};We.src=ae+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=We.src,Lt("GeoGebra HTML5 codebase loaded: '"+ae+"'.",Qe),!ie&&(!fe||fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ke()):ae.requirejs?__webpack_require__.e(777).then(function(){var ze=[__webpack_require__(70777)];ke.apply(null,ze)}.bind(this)).catch(__webpack_require__.oe):(We.onload=ke,nt.appendChild(We))}else qe(yt,Qe);Qe.height=Ze,Qe.width=an},Xe=function(nt,Qe,Pt){var zt=He(Qe.width,Qe.height,Qe.borderColor,Pt),yt=document.createElement("div");yt.style.position="relative",yt.style.display="block",yt.style.width=Qe.width+"px",yt.style.height=Qe.height+"px",yt.className="applet_screenshot applet_scaler"+(Pt?" applet_screenshot_play":""),yt.appendChild(zt);var an=GGBAppletUtils.getScale(Qe,nt,Pt);Pt?(nt.appendChild(Fe()),window.GGBT_wsf_view||(nt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(yt,"66%"),nt.appendChild(yt),an!==1&&!isNaN(an)&&(GGBAppletUtils.scaleElement(yt,an),yt.style.width=Qe.width+"px",yt.style.height=Qe.height+"px",yt.parentNode.style.width=Qe.width*an+"px",yt.parentNode.style.height=Qe.height*an+"px"),ft.resize=function(){pt(nt,zt,yt,Pt)},window.addEventListener("resize",function(Ze){ft.resize()}),ft.resize()};function pt(nt,Qe,Pt,zt){if(nt.contains(Qe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(nt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(nt)}var yt=GGBAppletUtils.getScale(te,nt,zt);Pt.parentNode!==null&&(!isNaN(yt)&&yt!==1?(GGBAppletUtils.scaleElement(Pt,yt),Pt.parentNode.style.width=te.width*yt+"px",Pt.parentNode.style.height=te.height*yt+"px"):(GGBAppletUtils.scaleElement(Pt,1),Pt.parentNode.style.width=te.width+"px",Pt.parentNode.style.height=te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(nt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ft.onExitFullscreen=function(nt,Qe){Qe.appendChild(nt)};var we=function(nt,Qe,Pt,zt){Xe(nt,Qe,!0);for(var yt=function(){var vt=[];for(Ze=0;Ze<nt.childNodes.length;Ze++)vt.push(nt.childNodes[Ze]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(nt,Qe.id),nn=document.getElementById("fullscreencontainer"),Gt=jQuery(nt).find(".fullscreencontent");Gt.length>0?(xt.remove(),Gt.attr("id","fullscreencontent").show(),jQuery(nn).append(Gt),window.dispatchEvent(new Event("resize"))):mt(xt,Qe,!1),window.GGBT_wsf_view.launchFullScreen(nn)}else oe=zt,mt(nt,Qe,!1);if(!window.GGBT_wsf_view)for(Ze=0;Ze<vt.length;Ze++)nt.removeChild(vt[Ze])},an=nt.getElementsByClassName("ggb_preview_play"),Ze=0;Ze<an.length;Ze++)an[Ze].addEventListener("click",yt,!1),an[Ze].addEventListener("ontouchstart",yt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(nt),pe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Fe=function(){var nt=document.createElement("div");if(nt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Qe='.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");}',Pt=document.createElement("style");Pt.styleSheet?Pt.styleSheet.cssText=Qe:Pt.appendChild(document.createTextNode(Qe)),document.getElementsByTagName("head")[0].appendChild(Pt)}return nt},He=function(nt,Qe,Pt,zt){var yt=document.createElement("div");yt.className="ggb_preview",yt.style.position="absolute",yt.style.zIndex="90",yt.style.width=nt-2+"px",yt.style.height=Qe-2+"px",yt.style.top="0px",yt.style.left="0px",yt.style.overflow="hidden",yt.style.backgroundColor="white";var an="lightgrey";Pt!==void 0&&(Pt==="none"?an="transparent":an=Pt),yt.style.border="1px solid "+an;var Ze=document.createElement("img");if(Ze.style.position="relative",Ze.style.zIndex="1000",Ze.style.top="-1px",Ze.style.left="-1px",E!==null&&Ze.setAttribute("src",E),Ze.style.opacity=.7,b!==null){var vt,xt,nn;if(!zt){vt=document.createElement("img"),vt.style.position="absolute",vt.style.zIndex="1001",vt.style.opacity=1,Ze.style.opacity=.3,xt=360,xt>nt/4*3&&(xt=nt/4*3),nn=xt/5.8,vt.setAttribute("src",b),vt.setAttribute("width",xt),vt.setAttribute("height",nn);var Gt=(nt-xt)/2,st=(Qe-nn)/2;vt.style.left=Gt+"px",vt.style.top=st+"px",yt.appendChild(vt)}}return yt.appendChild(Ze),yt},it=function(nt){return nt=nt.toLowerCase(),nt==="html5"||nt==="screenshot"?nt:"html5"},Ke=["web","webSimple","web3d","tablet","tablet3d","phone"],ht=function(nt,Qe){if(ne=nt,Qe){_t(ne,!0);return}var Pt=!ge;if(Pt){var zt=se(ne);!isNaN(zt)&&zt<4.4&&(Pt=!1)}var yt,an;window.location.protocol.substr(0,4)==="http"?yt=window.location.protocol:yt="http:";var Ze=ne.indexOf("//");Ze>0?an=ne:Ze===0?an=yt+ne:an="https://www.geogebra.org/apps/5.2.814.0/";for(var vt in Ke)if(ne.slice(Ke[vt].length*-1)===Ke[vt]||ne.slice((Ke[vt].length+1)*-1)===Ke[vt]+"/"){_t(an,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Pt&&!ee.is3D&&!ee.AV&&!ee.SV&&!ee.CV&&!ee.EV2&&!ee.CP&&!ee.PC&&!ee.DA&&!ee.FI&&!ee.PV&&!Me(te.showToolBar)&&!Me(te.showMenuBar)&&!Me(te.showAlgebraInput)&&!Me(te.enableRightClick)&&(!te.appName||te.appName=="classic")?an+="webSimple/":an+="web3d/",_t(an,!1)},_t=function(nt,Qe){if(nt.requirejs){ae=nt;return}nt.slice(-1)!=="/"&&(nt+="/"),ae=nt,Qe===null&&(Qe=nt.indexOf("http")===-1),he=Qe,a="web.nocache.js",y=!1;var Pt=ae.split("/");Pt.length>1&&(!Qe&&Pt[Pt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ke.indexOf(Pt[Pt.length-2])>=0&&(a=Pt[Pt.length-2]+".nocache.js")),Pt=nt.split("/"),ne=Pt[Pt.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 zt=parseFloat(ne);zt!==NaN&&zt<5&&nt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+zt+" is deprecated. Using version latest instead."),ht("5.0",Qe))},Lt=function(nt,Qe){window.console&&window.console.log&&(!Qe||typeof Qe.showLogging=="undefined"||Qe.showLogging&&Qe.showLogging!=="false")&&console.log(nt)};te.material_id!==void 0?Se(kt):kt();function kt(){var nt=Ve;fe!==null?nt=fe:parseFloat(nt)<5&&(nt="5.0"),ht(nt,!1),ie!==null&&_t(ie,he),_e=!0}return ft},GGBAppletUtils=function(){"use strict";function ft(){return window.GGBT_wsf_edit!==void 0}function Ve(_e,fe){fe!=1?(_e.style.transformOrigin="0% 0% 0px",_e.style.webkitTransformOrigin="0% 0% 0px",_e.style.transform="scale("+fe+","+fe+")",_e.style.webkitTransform="scale("+fe+","+fe+")",_e.style.maxWidth="initial",_e.querySelector(".ggb_preview")!==null&&(_e.querySelector(".ggb_preview").style.maxWidth="initial"),_e.querySelectorAll(".ggb_preview img")[0]!==void 0&&(_e.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),_e.querySelectorAll(".ggb_preview img")[1]!==void 0&&(_e.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(_e.style.transform="none",_e.style.webkitTransform="none")}function te(_e,fe,ie,de,le,me){var ae=null;if(me!=null&&me!="")for(var he=_e.parentNode;he!=null;)if((" "+he.className+" ").indexOf(" "+me+" ")>-1){ae=he;break}else he=he.parentNode;var oe=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(ae)oe=ae.offsetWidth,ne=Math.max(de?ae.offsetWidth:0,ae.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(oe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=oe):(oe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),_e){var z=_e.getBoundingClientRect();z.left>0&&z.left<=oe&&(le===void 0||!le)&&(document.dir==="rtl"?(E=oe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(_e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=_e.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return _e&&((ie===void 0||!ie)&&fe>0&&fe+y<oe?oe=fe:oe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ie===void 0||!ie)&&(ne-=x)),{width:oe,height:ne}}function ee(_e,fe,ie,de,le){if(_e.isScreenshoGenerator)return 1;var me=de!==void 0&&de,ae=_e.noScaleMargin!=null&&_e.noScaleMargin,he=function(re){return re&&re!=="false"},oe=he(_e.autoHeight),ne=te(fe,_e.width,ie,oe,me&&window.GGBT_wsf_view||ae,le),a=parseInt(ne.width),y=_e.width,E=_e.height;if(y===void 0){var b=fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=me?1:ne.height/E;return ie!==void 0&&!ie&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ge(_e,fe,ie){var de=1,le,me=!1;if(_e.hasOwnProperty("allowUpscale")&&(me=_e.allowUpscale),_e.hasOwnProperty("scale")&&(de=parseFloat(_e.scale),(isNaN(de)||de===null||de===0)&&(de=1),de>1&&(me=!0)),fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me=!0),!(_e.hasOwnProperty("disableAutoScale")&&_e.disableAutoScale))le=ee(_e,fe,me,ie,_e.scaleContainerClass);else return de;return me&&(!_e.hasOwnProperty("scale")||de===1)?le:Math.min(de,le)}function be(_e){var fe=Math.min(window.innerWidth,document.documentElement.clientWidth),ie=Math.min(window.innerHeight,document.documentElement.clientHeight),de=_e.getBoundingClientRect(),le=(fe-de.width)/2,me=(ie-de.height)/2;me<0&&(me=0),_e.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?_e.style.left="40px":_e.style.left=le+"px",_e.style.top=me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(me<40?_e.style.top="40px":_e.style.top=me+"px",_e.style.left=le+"px")}function ye(_e,fe){var ie=_e.querySelector(".appletParameters");if(ie){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!==ie.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(_e)}if(ie.parentElement&&/fullscreen/.test(ie.parentElement.className))return;var de=ge(fe,_e);ft()&&ie.setAttribute("data-param-scale",de);for(var le=null,me=0;me<_e.childNodes.length;me++)if(_e.childNodes[me].className!==void 0&&_e.childNodes[me].className.match(/^applet_scaler/)){le=_e.childNodes[me];break}if(le!==null&&le.querySelector(".noscale")!==null)return;var ae=fe.id!==void 0?fe.id:"ggbApplet",he=window[ae];(he==null||!he.recalculateEnvironments)&&le!==null&&!le.className.match(/fullscreen/)&&(le.parentNode.style.transform="",!isNaN(de)&&de!==1?(le.parentNode.style.width=fe.width*de+"px",le.parentNode.style.height=fe.height*de+"px",Ve(le,de)):(Ve(le,1),le.parentNode.style.width=fe.width+"px",le.parentNode.style.height=fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&be(_e),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ie).parents(".content-added-content"))}}return{responsiveResize:ye,isFlexibleWorksheetEditor:ft,positionCenter:be,getScale:ge,scaleElement:Ve}}();__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 ft=n.location.search;return ft.indexOf(J)!=-1||ft.indexOf(K)!=-1}function q(ft,Ve){}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(ft){var Ve=s[L].bindings;s[L].bindings=function(){for(var te=Ve?Ve():{},ee=ft[webModule.__softPermutationId],ge=O;ge<ee.length;ge++){var be=ee[ge];te[be[O]]=be[P]}return te}};var t;function u(){return v(),t}function v(){if(!t){var ft=o.createElement(Q);if(ft.id=L,ft.style.cssText=R+S,ft.tabIndex=-1,o.body.appendChild(ft),t=ft.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ve=document.compatMode==U?V:W;t.write(Ve+X),t.close()}}}function w(ft){function Ve(ee){function ge(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var be=ge();if(be){ee();return}function ye(){if(!be){if(!ge())return;be=!0,ee(),o.removeEventListener&&o.removeEventListener(Z,ye,!1),_e&&clearInterval(_e)}}o.addEventListener&&o.addEventListener(Z,ye,!1);var _e=setInterval(function(){ye()},$)}function te(ee){var ge=u(),be=ge.body,ye=ge.createElement(_);ye.language=ab,ye.crossOrigin=W,ye.src=ee,webModule.__errFn&&(ye.onerror=function(){webModule.__errFn(L,new Error(bb+ee))}),be.appendChild(ye)}Ve(function(){te(ft)})}webModule.__startLoadingFragment=function(ft){return C(ft)},webModule.__installRunAsyncCode=function(ft){var Ve=u(),te=Ve.body,ee=Ve.createElement(_);ee.language=ab,ee.text=ft,te.appendChild(ee),te.removeChild(ee)};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(ft){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ft){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ft){var Ve=c[ft];return Ve==null?null:Ve},r=d,webModule.__errFn=e}function B(){function ft(_e){var fe=_e.lastIndexOf(rb);fe==-1&&(fe=_e.length);var ie=_e.indexOf(sb);ie==-1&&(ie=_e.length);var de=_e.lastIndexOf(tb,Math.min(ie,fe));return de>=O?_e.substring(O,de+P):W}function Ve(_e){if(!_e.match(/^\w+:\/\//)){var fe=o.createElement(ub);fe.src=_e+vb,_e=ft(fe.src)}return _e}function te(){var _e=__gwt_getMetaProperty(wb);return _e!=null?_e:W}function ee(){for(var _e=o.getElementsByTagName(_),fe=O;fe<_e.length;++fe)if(_e[fe].src.indexOf(xb)!=-1)return ft(_e[fe].src);return W}function ge(){var _e=o.getElementsByTagName(yb);return _e.length>O?_e[_e.length-P].href:W}function be(){var _e=o.location;return _e.href==_e.protocol+zb+_e.host+_e.pathname+_e.search+_e.hash}var ye=te();return ye==W&&(ye=ee()),ye==W&&(ye=ge()),ye==W&&be()&&(ye=ft(o.location.href)),ye=Ve(ye),ye}function C(ft){return ft.match(/^\//)||ft.match(/^[a-zA-Z]+:\/\//)?ft:webModule.__moduleBase+ft}function D(){var ft=[],Ve=O,te=[],ee=[];function ge(_e){var fe=ee[_e](),ie=te[_e];if(fe in ie)return fe;var de=[];for(var le in ie)de[ie[le]]=le;throw r&&r(_e,de,fe),null}if(__gwt_isKnownPropertyValue=function(_e,fe){return fe in te[_e]},webModule.__getPropMap=function(){var _e={};for(var fe in te)te.hasOwnProperty(fe)&&(_e[fe]=ge(fe));return _e},webModule.__computePropValue=ge,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var be;try{be=Cb;var ye=be.indexOf(Db);ye!=-1&&(Ve=parseInt(be.substring(ye+P),$),be=be.substring(O,ye))}catch(_e){}return webModule.__softPermutationId=Ve,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})()},49291:function(ft,Ve,te){"use strict";te.d(Ve,{Ax:function(){return ye},Ds:function(){return _e},KI:function(){return ie},SI:function(){return be},f1:function(){return ge}});var ee=te(38446);function ge(de){let le=!0;if(de.length>0){for(let me=0;me<de.length;me++)if(de[me].compile_success==0||!de[me].compile_success){le=!1;break}}else le=!1;return le}function be(de,le=""){let me=[];for(let ae=0;ae<de.length;ae++){let he=de[ae],oe=le?`${le}/${he.name}`:`${he.name}`;me.push({title:he.name,type:he.type,isLeaf:he.type!=="tree",key:oe})}return me}function ye(de,le,me){for(let ae=0;ae<de.length;ae++){let he=de[ae];if(he.key===le){he.children=me;break}he.children&&ye(he.children,le,me)}return de}function _e(de,le,me){let ae;return function(){let he=this,oe=arguments,ne=function(){ae=null,me||de.apply(he,oe)},a=me&&!ae;clearTimeout(ae),ae=setTimeout(ne,le),a&&de.apply(he,oe)}}const fe=!0,ie=ee.Z.API_SERVER},77659:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return b}});var ee=te(59301),ge=te(7660),be=te(1012),ye=te(92310),_e=te.n(ye),fe={upload:"upload___jpwPD"},ie=Object.defineProperty,de=Object.defineProperties,le=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,oe=(x,z,re)=>z in x?ie(x,z,{enumerable:!0,configurable:!0,writable:!0,value:re}):x[z]=re,ne=(x,z)=>{for(var re in z||(z={}))ae.call(z,re)&&oe(x,re,z[re]);if(me)for(var re of me(z))he.call(z,re)&&oe(x,re,z[re]);return x},a=(x,z)=>de(x,le(z)),y=(x,z,re)=>new Promise((se,ce)=>{var pe=Ee=>{try{Le(re.next(Ee))}catch(je){ce(je)}},Se=Ee=>{try{Le(re.throw(Ee))}catch(je){ce(je)}},Le=Ee=>Ee.done?se(Ee.value):Promise.resolve(Ee.value).then(pe,Se);Le((re=re.apply(x,z)).next())});const E=({chunkSize:x=1024*1024*2,options:z={},onCancel:re,onComplete:se,onError:ce,onProgress:pe,onBefore:Se,onBeginInitFile:Le,children:Ee,accept:je,className:Me,style:mt={},concurrency:Xe=4},pt)=>{let[we,Fe]=(0,ee.useState)("ready");const[He,it]=(0,ee.useState)(0),[Ke,ht]=(0,ee.useState)(""),[_t,Lt]=(0,ee.useState)(null),kt=(0,ee.useRef)(null),nt=(0,ee.useRef)((0,be.Z)()),Qe=(0,ee.useRef)(!1);(0,ee.useImperativeHandle)(pt,()=>({cancel:yt,file:_t,uploadStatus:we}));const Pt=()=>{const Ze=document.getElementById(nt.current);Ze&&(Ze.value="")},zt=Ze=>y(void 0,null,function*(){var vt;if(we==="uploading")return;Le&&Le(Ze);const xt=Ze.size,nn=Math.ceil(xt/x);Qe.current=!1,Fe("uploading"),it(0),ht("");try{const Gt=yield(0,ge.ZP)("/api/attachments/multipart_upload_start",{method:"POST",body:ne({fileName:Ze.name,chunkCount:nn},z)});if(Qe.current||(Gt==null?void 0:Gt.status)!==0)throw new Error;const{upload_id:st}=Gt;kt.current=new AbortController;const ct=[];let Ge=0;for(let Oe=0;Oe<nn;Oe++){const Ie=Oe*x,We=Math.min(Ie+x,xt),ke=Ze.slice(Ie,We),ze=new FormData;ze.append("chunk",ke),ze.append("fileName",Ze.name),ze.append("chunkIndex",(Oe+1).toString()),ze.append("uploadId",st);for(const at in z)Object.prototype.hasOwnProperty.call(z,at)&&ze.append(at,z[at]);ct.push(()=>(0,ge.ZP)("/api/attachments/multipart_upload",{method:"POST",body:ze,signal:kt.current.signal},!0).then(at=>{console.log(at,444),Ge++;const Ot=Math.round(Ge/nn*100);it(Ot),pe&&pe(a(ne({},at),{file:Ze,percent:Ot}))}))}let Ne=0,qe=Xe;for(console.log(ct,"promises");Ne<ct.length;){const Oe=(vt=ct.slice(Ne,Ne+qe))==null?void 0:vt.map(Ie=>Ie());if(Oe.length>0){const Ie=yield Promise.all(Oe);Ne+=qe}}const Ct=yield(0,ge.ZP)("/api/attachments/multipart_upload_end",{method:"POST",body:ne({fileName:Ze.name,chunkCount:nn,uploadId:st},z)});Ct.object?(Fe("success"),Pt(),se&&se(a(ne({},Ct),{file:Ze,percent:100}))):(Fe("error"),ht("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Pt(),ce&&ce(Ze.name))}catch(Gt){Fe("error"),ht("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),Pt(),ce&&ce(Ze.name)}}),yt=(0,ee.useCallback)(()=>{Qe.current=!0,kt.current&&(kt.current.abort(),re&&re())},[re]),an=Ze=>{var vt,xt;const nn=(xt=(vt=Ze==null?void 0:Ze.target)==null?void 0:vt.files)==null?void 0:xt[0];if(Lt(nn),we="ready",!!nn){if(Se){Se(nn)||zt(nn),Pt();return}zt(nn)}};return ee.createElement(ee.Fragment,null,ee.createElement("input",{type:"file",id:nt.current,style:{display:"none"},onChange:an,accept:je}),ee.createElement("label",{className:_e()(fe.upload,Me),htmlFor:nt.current,style:mt},Ee))};var b=(0,ee.forwardRef)(E)},14573:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ae}});var ee=te(59301),ge={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},be=te(92310),ye=te.n(be),_e=te(71418),fe=te(2859),ie=te(7660),de=te(88230),le=(he,oe,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(re){y(re)}},b=z=>{try{x(ne.throw(z))}catch(re){y(re)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(he,oe)).next())}),ae=({data:he,className:oe,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ee.useRef)(null),re=(0,ee.useRef)(null),se=(0,ee.useRef)(null),ce=(0,ee.useRef)(null),[pe,Se]=(0,ee.useState)(!1),[Le,Ee]=(0,ee.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ee.useEffect)(()=>{se.current||(se.current=document.createElement("style"),document.head.appendChild(se.current)),he!=null&&he.visible?(document.body.setAttribute("data-custom","y-hidden"),se.current.innerHTML=" html { overflow-y: hidden; }",he!=null&&he.src&&je()):(document.body.removeAttribute("data-custom"),se.current&&(document.head.removeChild(se.current),se.current=null))},[he==null?void 0:he.visible]);const je=()=>le(void 0,null,function*(){Se(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const we=yield(0,de.ZJ)(he==null?void 0:he.src);z.current.src="",z.current.src=we,z.current.onload=function(){pt()},Se(!1),Ee("")}),Me=()=>{document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",y()},mt=we=>le(void 0,null,function*(){Se(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Fe=yield(0,ie.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:he.title,file:we.dataUrl}});Fe!=null&&Fe.id&&!x?(yield(0,ie.ZP)(`/api/attachments/${he.id}/add_subitem.json`,{method:"post",body:{subitem_id:Fe==null?void 0:Fe.id,settings:JSON.stringify(we.state)}})).status===0&&E():Fe!=null&&Fe.id&&E(Fe),document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",Se(!1),Ee("")}),Xe=()=>{const we=document.querySelector('a[href="https://markerjs.com/"]');we&&we.parentNode&&(we.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(He=>{const it=document.querySelector(He.name);it&&it.setAttribute("title",He.title)})},pt=()=>{re.current=new fe.hP(z.current),re.current.targetRoot=ce.current,re.current.addEventListener("render",mt),re.current.addEventListener("beforeclose",Me),b&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),he!=null&&he.snapshotData&&re.current.restoreState(he.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Xe()},300)};return ee.createElement(ee.Fragment,null,(he==null?void 0:he.visible)&&ee.createElement(_e.Z,{spinning:pe,tip:Le,style:{position:"absolute"}},ee.createElement("div",{ref:ce,className:ye()(ge.imageDimensions,oe,ne?ge.fullWidth:""),style:a},ee.createElement("img",{className:ge.img,ref:z}))))}},46531:function(ft,Ve,te){"use strict";var ee=te(59301),ge=te(95237),be=te(43604),ye=te(99313),_e=te(3113),fe=te(99325),ie=te(11570),de=te(48136),le=te(59301);const me=(0,ee.forwardRef)(({callback:ae,showSaveButton:he,value:oe=""},ne)=>{const a=(0,ee.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=re=>{a.current.setValue(a.current.getValue()+" "+re.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},y.map((re,se)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(fe.Z,{value:`$$${re.value}$$`}),re.name),le.createElement("div",{className:ie.Z.children},re.children.map((ce,pe)=>le.createElement("div",{key:pe},le.createElement("h1",null,ce.name),le.createElement(ge.Z,{gutter:[10,10]},ce.data.map((Se,Le)=>le.createElement(be.Z,{key:Le,onClick:()=>b(Se),className:ie.Z.diamond},le.createElement(fe.Z,{value:"`$$"+Se.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(ge.Z,{className:ie.Z.lists,gutter:[10,10]},E.map((re,se)=>le.createElement(be.Z,{flex:"110px",className:ie.Z.item},le.createElement("div",null,le.createElement(fe.Z,{value:"`$$"+re.value+"$$`"}),re.name),le.createElement("div",{className:ie.Z.children},re.children.map((ce,pe)=>le.createElement("div",{key:pe},ce.name&&le.createElement("h1",null,ce.name),le.createElement(ge.Z,{gutter:[10,10]},ce.data.map((Se,Le)=>le.createElement(be.Z,{key:Le,onClick:()=>b(Se),className:ie.Z.diamond},le.createElement(fe.Z,{value:"`$$"+Se.value+"$$`"}))))))))))}],z=()=>{var re=document.createElement("div");re.innerHTML=a.current.getValue();var se=re.innerText;return ae&&ae(se),se};return(0,ee.useImperativeHandle)(ne,()=>({getData:z})),le.createElement("div",{className:ie.Z.mathWrap},le.createElement(ye.default,{defaultActiveKey:"1",items:x}),le.createElement("math-field",{locale:"zh_cn",className:ie.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},oe||""),he&&le.createElement("div",{className:ie.Z.button},le.createElement(_e.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ve.Z=me},7651:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ye}});var ee=te(24459),ge={ldsRing:"ldsRing___mpBZC",idsRingWrapper:"idsRingWrapper___Of9_n",ldsring:"ldsring___o0w2t"},be=te(59301),ye=({message:_e,className:fe,children:ie,style:de={}})=>be.createElement("div",{className:`custom-spinner ${ge.idsRingWrapper} ${fe}`},be.createElement("div",{className:ge.ldsRing},be.createElement("div",null),be.createElement("div",null),be.createElement("div",null),be.createElement("div",null)),_e?be.createElement("p",{style:de},_e):null,ie,be.createElement(ee.Outlet,null))},31582:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ye}});var ee=te(59301),ge=te(50484),be=te(59301),ye=({defaultX:_e="40%",leftChild:fe,rightChild:ie,className:de,hideResize:le=!1})=>{const[me,ae]=(0,ee.useState)(_e),he=(0,ee.useRef)();function oe(){he.current=!0}(0,ee.useEffect)(()=>{function y(b){he.current&&(ge.Z.publish("resize-move-bar",b),ae(b.pageX))}function E(){he.current=!1}return window.addEventListener("mousemove",y),window.addEventListener("mouseup",E),()=>{window.removeEventListener("mousemove",y),window.removeEventListener("mouseup",E)}},[]);const ne=typeof me=="number"&&me!==.01?`${me}px`:_e,a=`calc(100% - ${le?"0px":"4px"} - ${ne})`;return be.createElement("div",{className:`split-panel-container ${de}`},be.createElement("section",{style:{width:ne,display:me===.01?"none":""}},fe),be.createElement("section",{className:"resize-x-bar",onMouseDown:oe},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:a}},ie))}},75618:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return fe}});var ee=te(59301),ge={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=te(92310),ye=te.n(be),fe=({className:ie,style:de={},leftNode:le,leftTitle:me="\u81EA\u6D4B\u8F93\u5165",rightNode:ae,rightTitle:he="\u8FD0\u884C\u7ED3\u679C"})=>ee.createElement("div",{className:ye()(ge.result,ie),style:de},ee.createElement("div",{className:ge.left},ee.createElement("div",{className:ge.title},ee.createElement("i",{style:{color:"#08CF76"},className:"iconfont iconfont icon-zidingyiceshiyongli font14 mr5"}),ee.createElement("span",null,me)),ee.createElement("div",{className:ge.leftNode},le)),ee.createElement("div",{className:ge.right},ee.createElement("div",{className:ge.title},ee.createElement("i",{style:{color:"#00DFFF"},className:"iconfont iconfont icon-daimazhihangjieguo font14 mr5"}),ee.createElement("span",null,he)),ee.createElement("div",{className:ge.rightNode},ae)))},46942:function(ft,Ve,te){"use strict";var ee=te(59301);const ge=ye=>String(ye).length===1?`0${ye}`:ye,be=({className:ye="",onChange:_e,defaultValue:fe=0})=>{const[ie,de]=(0,ee.useState)(fe);(0,ee.useEffect)(()=>{const he=setTimeout(()=>{de(ie+1e3)},1e3);return _e(ie+1e3),()=>{clearInterval(he)}},[ie]);const le=parseInt(ie/(60*6e4))||"00",me=parseInt(ie%(60*6e4)/6e4)||"00",ae=parseInt(ie%6e4/1e3)||"00";return ee.createElement("div",{className:ye},ge(le),":",ge(me),":",ge(ae))};Ve.Z=be},71628:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return a}});var ee=te(59301),ge=te(8591),be=te(38854),ye=te(44860),_e=te(40846),fe=te(73898),ie=te(56102),de=te(20736),le={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"},me=(y,E,b)=>new Promise((x,z)=>{var re=pe=>{try{ce(b.next(pe))}catch(Se){z(Se)}},se=pe=>{try{ce(b.throw(pe))}catch(Se){z(Se)}},ce=pe=>pe.done?x(pe.value):Promise.resolve(pe.value).then(re,se);ce((b=b.apply(y,E)).next())});function ae(y){if(isNaN(y))return{minutes:"00",seconds:"00"};const E=new Date(y*1e3).toISOString().substr(11,8);return{hour:E.substr(0,2),minutes:E.substr(3,2),seconds:E.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function he(y,E){return y-E}function oe(y){y.sort(he);let E=0;for(let b=0;b<y.length-1;b++){let x=Math.abs(y[b+1]-y[b]);x<21&&(E+=x)}return E}const ne=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var a=(0,ee.forwardRef)(({allow_skip:y,src:E,toLog:b,videoId:x,logWatchHistory:z,courseId:re=null,startTime:se,handlePause:ce=()=>{},handlePlay:pe=()=>{},handlePlayEnded:Se=()=>{},autoPlay:Le=!1,onPlayEnded:Ee=()=>{},isShowWaterMark:je=!0},Me)=>{var mt;const pt=((mt=E==null?void 0:E.split("."))==null?void 0:mt.pop())==="flv",we=(0,ee.useRef)(),Fe=(0,ee.useRef)(),He=(0,ee.useRef)(),it=(0,ee.useRef)(),Ke=(0,ee.useRef)(),ht=(0,ee.useRef)(),_t=(0,ee.useRef)(),Lt=(0,ee.useRef)(),kt=(0,ee.useRef)(),nt=(0,ee.useRef)(),Qe=(0,ee.useRef)(),Pt=(0,ee.useRef)(),zt=(0,ee.useRef)(),yt=(0,ee.useRef)(),an=navigator.userAgent.toLowerCase().match(ne),Ze=an?an[0]:"pc",vt=(0,ee.useRef)(!1),xt=(0,fe.eY)();let nn=0,Gt=0,st=0,ct=null,Ge=!1,Ne=20,qe=1,Ct=!1,Oe=!1,Ie=[];(0,ee.useImperativeHandle)(Me,()=>({getLastUpdatedTime:()=>we.current.currentTime,getDuration:()=>we.current.duration})),ge.ZP.config({maxCount:1,getContainer:()=>He.current});const We=(0,ee.useCallback)((Dt,Ht=!1)=>{let bt={point:we.current.currentTime};ct?(bt.log_id=ct,bt.watch_duration=oe(Ie),bt.total_duration=Gt):(re?(bt.video_id=parseInt(x,10),bt.course_id=re):bt.video_id=x,bt.duration=nn,bt.device=Ze),Ht&&(bt.ed="1");function fn(){return me(this,null,function*(){Ct=!0,ct=yield z==null?void 0:z(bt),Ct=!1,Dt&&Dt()})}fn()},[x,re]);(0,ee.useEffect)(()=>{we.current&&(it.current.style.display="none",Ke.current.style.display="block"),ge.ZP.destroy();let Dt=null;return ye.Z.isSupported&&pt&&E&&(E==null?void 0:E.indexOf(".m3u8"))<0?(Dt=ye.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:E,muted:!1}),we.current&&(Dt.attachMediaElement(we.current),Dt.load())):we.current.setAttribute("src",E),ze(),()=>{Dt&&(Dt.unload(),Dt.pause(),Dt.destroy(),Dt=null)}},[we,pt,E]);function ke(){we.current.paused?(it.current.style.display="none",Ke.current.style.display="block"):(it.current.style.display="block",Ke.current.style.display="none")}function ze(){Qe.current.style.display="none",zt.current.style.display="none",Pt.current.style.display="none",we.current.muted||we.current.volume===0?Qe.current.style.display="block":we.current.volume>0&&we.current.volume<=.5?zt.current.style.display="block":Pt.current.style.display="block"}(0,ee.useEffect)(()=>{const Dt=document.getElementById("play"),Ht=document.querySelectorAll(".playback-icons use");function bt(){pe(),se&&!vt.current&&(we.current.currentTime=se),vt.current=!0,Ie.push(we.current.currentTime),Ge||(Ge=!0,b&&We())}function fn(){return me(this,null,function*(){ke(),Ie.push(we.current.currentTime),b&&We(()=>{ct=null,st=0,Ge=!1,Ct=!1,Oe=!1,Ie=[],Gt=0,qe=1},!0),Ee()})}function un(){ht.current.value=Math.round(we.current.currentTime),_t.current.value=Math.round(we.current.currentTime)}function Et(){const tn=ae(Math.round(we.current.currentTime));kt.current.innerText=`${tn.hour>0?tn.hour+":":""}${tn.minutes}:${tn.seconds}`,kt.current.setAttribute("datetime",`${tn.hour>0?" "+tn.hour+" ":""}${tn.minutes}m ${tn.seconds}s`)}function Sn(){var tn,Xn,sr,Wn,lr,Ir,Rr;const Er=Math.round((tn=we.current)==null?void 0:tn.duration);(sr=(Xn=ht.current)==null?void 0:Xn.setAttribute)==null||sr.call(Xn,"max",Er),(lr=(Wn=_t.current)==null?void 0:Wn.setAttribute)==null||lr.call(Wn,"max",Er);const Nr=ae(Er);Lt.current&&(Lt.current.innerText=`${Nr.hour>0?Nr.hour+":":""}${Nr.minutes}:${Nr.seconds}`,(Rr=(Ir=Lt.current).setAttribute)==null||Rr.call(Ir,"datetime",`${Nr.hour>0?" "+Nr.hour+" ":""}${Nr.minutes}m ${Nr.seconds}s`))}function pn(){try{const tn=Math.round(we.current.duration);ht.current.setAttribute("max",tn),_t.current.setAttribute("max",tn);const Xn=ae(tn);Lt.current.innerText=`${Xn.hour>0?Xn.hour+":":""}${Xn.minutes}:${Xn.seconds}`,Lt.current.setAttribute("datetime",`${Xn.hour>0?" "+Xn.hour+" ":""}${Xn.minutes}m ${Xn.seconds}s`),un(),Et();const{width:sr,height:Wn,x:lr,y:Ir}=Fe.current.getBoundingClientRect();if(lr<0||Ir<0||!sr)return;if(!Oe){let Rr=we.current.currentTime,Er=Rr-st;Math.abs(Er)<10?(Gt+=Math.abs(Er),st=Rr,Ct||Gt-qe*Ne>=0&&(qe++,Ie.push(st),b&&We())):(st=Rr,b&&We())}}catch(tn){console.log(tn)}}function Fn(){Oe=!0}function xn(){we.current.playing&&Ie.push(we.current.currentTime,st),st=we.current.currentTime,Oe=!1}function Kn(){nn=we.current.duration,nn<=20&&(Ne=nn/3),we.current.addEventListener("play",bt)}function er(tn){tn.preventDefault(),(0,de.vp)()?(we.current.style.width="100%",we.current.style.height="100%"):we.current.style.cssText=""}function Vn(){ce()}function Yn(tn){if(!y){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Xn=tn.target.dataset.seek?tn.target.dataset.seek:tn.target.value;we.current.currentTime=Xn,_t.current.value=Xn,ht.current.value=Xn}function pr(tn){const Xn=Math.round(tn.offsetX/tn.target.clientWidth*parseInt(tn.target.getAttribute("max"),10));ht.current.setAttribute("data-seek",Xn);const sr=ae(Xn);nt.current.textContent=`${sr.hour>0?sr.hour+":":""}${sr.minutes}:${sr.seconds}`;const Wn=we.current.getBoundingClientRect();nt.current.style.left=`${tn.pageX-Wn.left}px`}function vr(tn){switch(tn.code){case"Space":tn.preventDefault(),Mt();break;case"ArrowRight":if(tn.preventDefault(),!y){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(we.current.currentTime>=we.current.duration)break;we.current.currentTime=parseInt(we.current.currentTime)+5,un();break;case"ArrowLeft":if(tn.preventDefault(),!y){ge.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(we.current.currentTime===0)break;we.current.currentTime=parseInt(we.current.currentTime)-5,un();break;case"ArrowUp":tn.preventDefault(),we.current.volume<1&&(we.current.volume=(parseInt(we.current.volume*10)+1)/10);break;case"ArrowDown":tn.preventDefault(),we.current.volume>0&&(we.current.volume=(parseInt(we.current.volume*10)-1)/10);break}}return He.current.addEventListener((0,de.gH)(),er),we.current.addEventListener("canplay",Kn),we.current.addEventListener("ended",fn),we.current.addEventListener("seeking",Fn),we.current.addEventListener("seeked",xn),we.current.addEventListener("loadedmetadata",Sn),ht.current.addEventListener("mousemove",pr),ht.current.addEventListener("input",Yn),we.current.addEventListener("timeupdate",pn),we.current.addEventListener("pause",Vn),we.current.addEventListener("volumechange",ze),document.addEventListener("keydown",vr),()=>{var tn,Xn,sr,Wn,lr,Ir,Rr,Er,Nr,cr,Yr,$t;(tn=we.current)==null||tn.removeEventListener("canplay",Kn),(Xn=we.current)==null||Xn.removeEventListener("play",bt),(sr=we.current)==null||sr.removeEventListener("ended",fn),(Wn=we.current)==null||Wn.removeEventListener("seeking",Fn),(lr=we.current)==null||lr.removeEventListener("seeked",xn),(Ir=ht.current)==null||Ir.removeEventListener("mousemove",pr),(Rr=ht.current)==null||Rr.removeEventListener("input",Yn),(Er=we.current)==null||Er.removeEventListener("timeupdate",pn),(Nr=we.current)==null||Nr.removeEventListener("pause",Vn),(cr=we.current)==null||cr.removeEventListener("loadedmetadata",Sn),(Yr=we.current)==null||Yr.removeEventListener("volumechange",ze),document.removeEventListener("keydown",vr),($t=we.current)!=null&&$t.playing&&(Ie.push(st,we.current.currentTime),b&&We())}},[we,E]),(0,ee.useEffect)(()=>{if(we.current.onended=()=>{Se(we)},we.current.oncontextmenu=()=>!1,(E==null?void 0:E.indexOf(".m3u8"))>-1){if(we.current.canPlayType("application/vnd.apple.mpegurl"))we.current.src=E;else if(_e.ZP.isSupported()){var Dt=new _e.ZP;Dt.loadSource(E),Dt.attachMedia(we.current)}}},[E]);const[at,Ot]=(0,ee.useState)(1),Mt=()=>{we.current.paused||we.current.ended?we.current.play():we.current.pause(),ke()};function jt(){we.current.muted=!we.current.muted,we.current.muted?(yt.current.setAttribute("data-volume",volume.value),yt.current.value=0):yt.current.value=yt.current.dataset.volume}return ee.createElement("div",{style:{position:"relative"},ref:He},ee.createElement("div",{ref:Fe,className:`${le.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${le.animate__loop}`},je&&xt?xt.login:" "),ee.createElement("div",{className:le.container},ee.createElement("div",{className:le["video-container"],id:"video-container"},ee.createElement("div",{className:le["playback-animation"],id:"playback-animation"},ee.createElement("svg",{className:le["playback-icons"]},ee.createElement("use",{className:"hidden",href:"#play-icon"}),ee.createElement("use",{href:"#pause"}))),ee.createElement("video",{className:le.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:we,autoPlay:Le}),ee.createElement("div",{className:`${le["video-controls"]} `,id:"video-controls"},ee.createElement("div",{className:le["bottom-controls"]},ee.createElement("div",{className:le["left-controls"]},ee.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Mt},ee.createElement("svg",{className:le["playback-icons"]},ee.createElement("use",{ref:Ke,href:"#play-icon"}),ee.createElement("use",{ref:it,style:{display:"none"},href:"#pause"}))),ee.createElement("div",{className:le.time},ee.createElement("time",{id:"time-elapsed",ref:kt},"00:00"),ee.createElement("span",null," / "),ee.createElement("time",{id:"duration",ref:Lt},"00:00"))),ee.createElement("div",{className:le["right-controls"]},y&&ee.createElement(be.Z,{placement:"top",overlayClassName:le.rateOverlay,getPopupContainer:Dt=>Dt.parentNode,menu:{items:[{key:"1",label:ee.createElement("span",{onClick:()=>{Ot(1),we.current.playbackRate=1}},"1.0x")},{key:"2",label:ee.createElement("span",{onClick:()=>{Ot(1.5),we.current.playbackRate=1.5}},"1.5x")},{key:"3",label:ee.createElement("span",{onClick:()=>{Ot(2),we.current.playbackRate=2}},"2.0x")}]}},ee.createElement("div",{className:`${le.controlText} mr5`},"\u500D\u901F")),ee.createElement(ie.CopyToClipboard,{text:E,onCopy:()=>ge.ZP.success("\u590D\u5236\u6210\u529F")},ee.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},ee.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),ee.createElement("div",{className:le["volume-controls"]},ee.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:le["volume-button"],id:"volume-button",onClick:jt},ee.createElement("i",{ref:Qe,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),ee.createElement("i",{ref:zt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),ee.createElement("i",{ref:Pt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),ee.createElement("input",{className:le.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:yt,style:{display:"none"},onClick:ze})),ee.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:le["fullscreen-button"],onClick:()=>{(0,de.vp)()?(0,de.BU)():(0,de.Dj)(He.current)}},ee.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),ee.createElement("div",{className:le["video-progress"]},ee.createElement("progress",{ref:_t,value:"0",min:"0"}),ee.createElement("input",{className:le.seek,ref:ht,value:"0",min:"0",type:"range",step:"1"}),ee.createElement("div",{className:le["seek-tooltip"],ref:nt,id:"seek-tooltip"},"00:00"))))),ee.createElement("svg",{style:{display:"none"}},ee.createElement("defs",null,ee.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},ee.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),ee.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},ee.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),ee.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},ee.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"})),ee.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},ee.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"})))))})},85469:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return bn}});var ee=te(59301),ge=te(50484),be=te(15277),ye=te(92310),_e=te.n(ye),fe=te(92413),ie=te(33708),de=te(400),le=te(33606),me=te(39559),ae=te(37061),he=te(55468),oe=te(18929),ne=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],a=ee.createContext(null),y=0;function E(Rt,$e){var At=ee.useState(function(){return y+=1,String(y)}),Ft=(0,le.Z)(At,1),wt=Ft[0],Bt=ee.useContext(a),Kt={data:$e,canPreview:Rt};return ee.useEffect(function(){if(Bt)return Bt.register(wt,Kt)},[]),ee.useEffect(function(){Bt&&Bt.register(wt,Kt)},[Rt,$e]),wt}function b(Rt){return new Promise(function($e){var At=document.createElement("img");At.onerror=function(){return $e(!1)},At.onload=function(){return $e(!0)},At.src=Rt})}function x(Rt){var $e=Rt.src,At=Rt.isCustomPlaceholder,Ft=Rt.fallback,wt=(0,ee.useState)(At?"loading":"normal"),Bt=(0,le.Z)(wt,2),Kt=Bt[0],Xt=Bt[1],yn=(0,ee.useRef)(!1),Nn=Kt==="error";(0,ee.useEffect)(function(){b($e).then(function(Jn){Jn||Xt("error")})},[$e]),(0,ee.useEffect)(function(){At&&!yn.current?Xt("loading"):Nn&&Xt("normal")},[$e]);var Un=function(){Xt("normal")},cn=function(rr){yn.current=!1,Kt==="loading"&&rr!=null&&rr.complete&&(rr.naturalWidth||rr.naturalHeight)&&(yn.current=!0,Un())},Ln=Nn&&Ft?{src:Ft}:{onLoad:Un,src:$e};return[cn,Ln,Kt]}var z=te(86923),re=te(8224),se=te(10228),ce=te(48736);function pe(Rt,$e,At,Ft){var wt=$e+At,Bt=(At-Ft)/2;if(At>Ft){if($e>0)return(0,de.Z)({},Rt,Bt);if($e<0&&wt<Ft)return(0,de.Z)({},Rt,-Bt)}else if($e<0||wt>Ft)return(0,de.Z)({},Rt,$e<0?Bt:-Bt);return{}}function Se(Rt,$e,At,Ft){var wt=(0,he.g1)(),Bt=wt.width,Kt=wt.height,Xt=null;return Rt<=Bt&&$e<=Kt?Xt={x:0,y:0}:(Rt>Bt||$e>Kt)&&(Xt=(0,ie.Z)((0,ie.Z)({},pe("x",At,Rt,Bt)),pe("y",Ft,$e,Kt))),Xt}var Le=te(13697),Ee=te(16089),je={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Me(Rt,$e,At,Ft){var wt=(0,ee.useRef)(null),Bt=(0,ee.useRef)([]),Kt=(0,ee.useState)(je),Xt=(0,le.Z)(Kt,2),yn=Xt[0],Nn=Xt[1],Un=function(rr){Nn(je),Ft&&!(0,Le.Z)(je,yn)&&Ft({transform:je,action:rr})},cn=function(rr,fr){wt.current===null&&(Bt.current=[],wt.current=(0,Ee.Z)(function(){Nn(function(Ut){var Lr=Ut;return Bt.current.forEach(function(dr){Lr=(0,ie.Z)((0,ie.Z)({},Lr),dr)}),wt.current=null,Ft==null||Ft({transform:Lr,action:fr}),Lr})})),Bt.current.push((0,ie.Z)((0,ie.Z)({},yn),rr))},Ln=function(rr,fr,Ut,Lr){var dr=Rt.current,Xr=dr.width,Sr=dr.height,sn=dr.offsetWidth,wn=dr.offsetHeight,Hn=dr.offsetLeft,mn=dr.offsetTop,ir=rr,ar=yn.scale*rr;ar>At?(ir=At/yn.scale,ar=At):ar<$e&&(ir=$e/yn.scale,ar=$e);var Br=Ut!=null?Ut:innerWidth/2,Fr=Lr!=null?Lr:innerHeight/2,$r=ir-1,Co=$r*Xr*.5,So=$r*Sr*.5,Mo=$r*(Br-yn.x-Hn),Ao=$r*(Fr-yn.y-mn),fo=yn.x-(Mo-Co),Bo=yn.y-(Ao-So);if(rr<1&&ar===1){var _o=sn*ar,Eo=wn*ar,Oo=(0,he.g1)(),zr=Oo.width,to=Oo.height;_o<=zr&&Eo<=to&&(fo=0,Bo=0)}cn({x:fo,y:Bo,scale:ar},fr)};return{transform:yn,resetTransform:Un,updateTransform:cn,dispatchZoomChange:Ln}}var mt=te(43403),Xe=te(77900),pt=function($e){var At=$e.visible,Ft=$e.maskTransitionName,wt=$e.getContainer,Bt=$e.prefixCls,Kt=$e.rootClassName,Xt=$e.icons,yn=$e.countRender,Nn=$e.showSwitch,Un=$e.showProgress,cn=$e.current,Ln=$e.transform,Jn=$e.count,rr=$e.scale,fr=$e.minScale,Ut=$e.maxScale,Lr=$e.closeIcon,dr=$e.onSwitchLeft,Xr=$e.onSwitchRight,Sr=$e.onClose,sn=$e.onZoomIn,wn=$e.onZoomOut,Hn=$e.onRotateRight,mn=$e.onRotateLeft,ir=$e.onFlipX,ar=$e.onFlipY,Br=$e.toolbarRender,Fr=(0,ee.useContext)(a),$r=Xt.rotateLeft,Co=Xt.rotateRight,So=Xt.zoomIn,Mo=Xt.zoomOut,Ao=Xt.close,fo=Xt.left,Bo=Xt.right,_o=Xt.flipX,Eo=Xt.flipY,Oo="".concat(Bt,"-operations-operation");ee.useEffect(function(){var Zr=function(yo){yo.keyCode===se.Z.ESC&&Sr()};return At&&window.addEventListener("keydown",Zr),function(){window.removeEventListener("keydown",Zr)}},[At]);var zr=[{icon:Eo,onClick:ar,type:"flipY"},{icon:_o,onClick:ir,type:"flipX"},{icon:$r,onClick:mn,type:"rotateLeft"},{icon:Co,onClick:Hn,type:"rotateRight"},{icon:Mo,onClick:wn,type:"zoomOut",disabled:rr===fr},{icon:So,onClick:sn,type:"zoomIn",disabled:rr===Ut}],to=zr.map(function(Zr){var co,yo=Zr.icon,ko=Zr.onClick,Wr=Zr.type,ho=Zr.disabled;return ee.createElement("div",{className:_e()(Oo,(co={},(0,de.Z)(co,"".concat(Bt,"-operations-operation-").concat(Wr),!0),(0,de.Z)(co,"".concat(Bt,"-operations-operation-disabled"),!!ho),co)),onClick:ko,key:Wr},yo)}),Io=ee.createElement("div",{className:"".concat(Bt,"-operations")},to);return ee.createElement(Xe.default,{visible:At,motionName:Ft},function(Zr){var co=Zr.className,yo=Zr.style;return ee.createElement(mt.Z,{open:!0,getContainer:wt!=null?wt:document.body},ee.createElement("div",{className:_e()("".concat(Bt,"-operations-wrapper"),co,Kt),style:yo},Lr===null?null:ee.createElement("button",{className:"".concat(Bt,"-close"),onClick:Sr},Lr||Ao),Nn&&ee.createElement(ee.Fragment,null,ee.createElement("div",{className:_e()("".concat(Bt,"-switch-left"),(0,de.Z)({},"".concat(Bt,"-switch-left-disabled"),cn===0)),onClick:dr},fo),ee.createElement("div",{className:_e()("".concat(Bt,"-switch-right"),(0,de.Z)({},"".concat(Bt,"-switch-right-disabled"),cn===Jn-1)),onClick:Xr},Bo)),ee.createElement("div",{className:"".concat(Bt,"-footer")},Un&&ee.createElement("div",{className:"".concat(Bt,"-progress")},yn?yn(cn+1,Jn):"".concat(cn+1," / ").concat(Jn)),Br?Br(Io,(0,ie.Z)({icons:{flipYIcon:to[0],flipXIcon:to[1],rotateLeftIcon:to[2],rotateRightIcon:to[3],zoomOutIcon:to[4],zoomInIcon:to[5]},actions:{onFlipY:ar,onFlipX:ir,onRotateLeft:mn,onRotateRight:Hn,onZoomOut:wn,onZoomIn:sn},transform:Ln},Fr?{current:cn,total:Jn}:{})):Io)))})},we=pt,Fe=1,He=1,it=["fallback","src","imgRef"],Ke=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],ht=function($e){var At=$e.fallback,Ft=$e.src,wt=$e.imgRef,Bt=(0,ae.Z)($e,it),Kt=x({src:Ft,fallback:At}),Xt=(0,le.Z)(Kt,2),yn=Xt[0],Nn=Xt[1];return ee.createElement("img",(0,fe.Z)({ref:function(cn){wt.current=cn,yn(cn)}},Bt,Nn))},_t=function($e){var At=$e.prefixCls,Ft=$e.src,wt=$e.alt,Bt=$e.fallback,Kt=$e.movable,Xt=Kt===void 0?!0:Kt,yn=$e.onClose,Nn=$e.visible,Un=$e.icons,cn=Un===void 0?{}:Un,Ln=$e.rootClassName,Jn=$e.closeIcon,rr=$e.getContainer,fr=$e.current,Ut=fr===void 0?0:fr,Lr=$e.count,dr=Lr===void 0?1:Lr,Xr=$e.countRender,Sr=$e.scaleStep,sn=Sr===void 0?.5:Sr,wn=$e.minScale,Hn=wn===void 0?1:wn,mn=$e.maxScale,ir=mn===void 0?50:mn,ar=$e.transitionName,Br=ar===void 0?"zoom":ar,Fr=$e.maskTransitionName,$r=Fr===void 0?"fade":Fr,Co=$e.imageRender,So=$e.imgCommonProps,Mo=$e.toolbarRender,Ao=$e.onTransform,fo=$e.onChange,Bo=(0,ae.Z)($e,Ke),_o=(0,ee.useRef)(),Eo=(0,ee.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Oo=(0,ee.useState)(!1),zr=(0,le.Z)(Oo,2),to=zr[0],Io=zr[1],Zr=(0,ee.useContext)(a),co=Zr&&dr>1,yo=Zr&&dr>=1,ko=Me(_o,Hn,ir,Ao),Wr=ko.transform,ho=ko.resetTransform,wo=ko.updateTransform,mo=ko.dispatchZoomChange,oi=(0,ee.useState)(!0),ti=(0,le.Z)(oi,2),ni=ti[0],Ro=ti[1],xo=Wr.rotate,Lo=Wr.scale,Xo=Wr.x,Zo=Wr.y,gi=_e()((0,de.Z)({},"".concat(At,"-moving"),to));(0,ee.useEffect)(function(){ni||Ro(!0)},[ni]);var Zn=function(){ho("close")},Cn=function(){mo(Fe+sn,"zoomIn")},On=function(){mo(Fe/(Fe+sn),"zoomOut")},Gn=function(){wo({rotate:xo+90},"rotateRight")},yr=function(){wo({rotate:xo-90},"rotateLeft")},Dr=function(){wo({flipX:!Wr.flipX},"flipX")},jr=function(){wo({flipY:!Wr.flipY},"flipY")},qr=function(ur){ur==null||ur.preventDefault(),ur==null||ur.stopPropagation(),Ut>0&&(Ro(!1),ho("prev"),fo==null||fo(Ut-1,Ut))},ro=function(ur){ur==null||ur.preventDefault(),ur==null||ur.stopPropagation(),Ut<dr-1&&(Ro(!1),ho("next"),fo==null||fo(Ut+1,Ut))},oo=function(){if(Nn&&to){Io(!1);var ur=Eo.current,io=ur.transformX,lo=ur.transformY,Fo=Xo!==io&&Zo!==lo;if(!Fo)return;var ri=_o.current.offsetWidth*Lo,Qo=_o.current.offsetHeight*Lo,Jo=_o.current.getBoundingClientRect(),Uo=Jo.left,Si=Jo.top,_i=xo%180!==0,yi=Se(_i?Qo:ri,_i?ri:Qo,Uo,Si);yi&&wo((0,ie.Z)({},yi),"dragRebound")}},Go=function(ur){!Xt||ur.button!==0||(ur.preventDefault(),ur.stopPropagation(),Eo.current={deltaX:ur.pageX-Wr.x,deltaY:ur.pageY-Wr.y,transformX:Wr.x,transformY:Wr.y},Io(!0))},Po=function(ur){Nn&&to&&wo({x:ur.pageX-Eo.current.deltaX,y:ur.pageY-Eo.current.deltaY},"move")},fi=function(ur){if(!(!Nn||ur.deltaY==0)){var io=Math.abs(ur.deltaY/100),lo=Math.min(io,He),Fo=Fe+lo*sn;ur.deltaY>0&&(Fo=Fe/Fo),mo(Fo,"wheel",ur.clientX,ur.clientY)}},li=function(ur){!Nn||!co||(ur.keyCode===se.Z.LEFT?qr():ur.keyCode===se.Z.RIGHT&&ro())},ci=function(ur){Nn&&(Lo!==1?wo({x:0,y:0,scale:1},"doubleClick"):mo(Fe+sn,"doubleClick",ur.clientX,ur.clientY))};(0,ee.useEffect)(function(){var Hr,ur,io,lo;if(Xt){io=(0,re.Z)(window,"mouseup",oo,!1),lo=(0,re.Z)(window,"mousemove",Po,!1);try{window.top!==window.self&&(Hr=(0,re.Z)(window.top,"mouseup",oo,!1),ur=(0,re.Z)(window.top,"mousemove",Po,!1))}catch(Fo){(0,ce.Kp)(!1,"[rc-image] ".concat(Fo))}}return function(){var Fo,ri,Qo,Jo;(Fo=io)===null||Fo===void 0||Fo.remove(),(ri=lo)===null||ri===void 0||ri.remove(),(Qo=Hr)===null||Qo===void 0||Qo.remove(),(Jo=ur)===null||Jo===void 0||Jo.remove()}},[Nn,to,Xo,Zo,xo,Xt]),(0,ee.useEffect)(function(){var Hr=(0,re.Z)(window,"keydown",li,!1);return function(){Hr.remove()}},[Nn,co,Ut]);var Ei=ee.createElement(ht,(0,fe.Z)({},So,{width:$e.width,height:$e.height,imgRef:_o,className:"".concat(At,"-img"),alt:wt,style:{transform:"translate3d(".concat(Wr.x,"px, ").concat(Wr.y,"px, 0) scale3d(").concat(Wr.flipX?"-":"").concat(Lo,", ").concat(Wr.flipY?"-":"").concat(Lo,", 1) rotate(").concat(xo,"deg)"),transitionDuration:!ni&&"0s"},fallback:Bt,src:Ft,onWheel:fi,onMouseDown:Go,onDoubleClick:ci}));return ee.createElement(ee.Fragment,null,ee.createElement(z.Z,(0,fe.Z)({transitionName:Br,maskTransitionName:$r,closable:!1,keyboard:!0,prefixCls:At,onClose:yn,visible:Nn,wrapClassName:gi,rootClassName:Ln,getContainer:rr},Bo,{afterClose:Zn}),ee.createElement("div",{className:"".concat(At,"-img-wrapper")},Co?Co(Ei,(0,ie.Z)({transform:Wr},Zr?{current:Ut}:{})):Ei)),ee.createElement(we,{visible:Nn,transform:Wr,maskTransitionName:$r,closeIcon:Jn,getContainer:rr,prefixCls:At,rootClassName:Ln,icons:cn,countRender:Xr,showSwitch:co,showProgress:yo,current:Ut,count:dr,scale:Lo,minScale:Hn,maxScale:ir,toolbarRender:Mo,onSwitchLeft:qr,onSwitchRight:ro,onZoomIn:Cn,onZoomOut:On,onRotateRight:Gn,onRotateLeft:yr,onFlipX:Dr,onFlipY:jr,onClose:yn}))},Lt=_t,kt=te(26407);function nt(Rt){var $e=ee.useState({}),At=(0,le.Z)($e,2),Ft=At[0],wt=At[1],Bt=ee.useCallback(function(Xt,yn){return wt(function(Nn){return(0,ie.Z)((0,ie.Z)({},Nn),{},(0,de.Z)({},Xt,yn))}),function(){wt(function(Nn){var Un=(0,ie.Z)({},Nn);return delete Un[Xt],Un})}},[]),Kt=ee.useMemo(function(){return Rt?Rt.map(function(Xt){if(typeof Xt=="string")return{data:{src:Xt}};var yn={};return Object.keys(Xt).forEach(function(Nn){["src"].concat((0,kt.Z)(ne)).includes(Nn)&&(yn[Nn]=Xt[Nn])}),{data:yn}}):Object.keys(Ft).reduce(function(Xt,yn){var Nn=Ft[yn],Un=Nn.canPreview,cn=Nn.data;return Un&&Xt.push({data:cn,id:yn}),Xt},[])},[Rt,Ft]);return[Kt,Bt]}var Qe=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Pt=["src"],zt=function($e){var At,Ft=$e.previewPrefixCls,wt=Ft===void 0?"rc-image-preview":Ft,Bt=$e.children,Kt=$e.icons,Xt=Kt===void 0?{}:Kt,yn=$e.items,Nn=$e.preview,Un=$e.fallback,cn=(0,me.Z)(Nn)==="object"?Nn:{},Ln=cn.visible,Jn=cn.onVisibleChange,rr=cn.getContainer,fr=cn.current,Ut=cn.movable,Lr=cn.minScale,dr=cn.maxScale,Xr=cn.countRender,Sr=cn.closeIcon,sn=cn.onChange,wn=cn.onTransform,Hn=cn.toolbarRender,mn=cn.imageRender,ir=(0,ae.Z)(cn,Qe),ar=nt(yn),Br=(0,le.Z)(ar,2),Fr=Br[0],$r=Br[1],Co=(0,oe.Z)(0,{value:fr}),So=(0,le.Z)(Co,2),Mo=So[0],Ao=So[1],fo=(0,ee.useState)(!1),Bo=(0,le.Z)(fo,2),_o=Bo[0],Eo=Bo[1],Oo=((At=Fr[Mo])===null||At===void 0?void 0:At.data)||{},zr=Oo.src,to=(0,ae.Z)(Oo,Pt),Io=(0,oe.Z)(!!Ln,{value:Ln,onChange:function(xo,Lo){Jn==null||Jn(xo,Lo,Mo)}}),Zr=(0,le.Z)(Io,2),co=Zr[0],yo=Zr[1],ko=(0,ee.useState)(null),Wr=(0,le.Z)(ko,2),ho=Wr[0],wo=Wr[1],mo=ee.useCallback(function(Ro,xo,Lo){var Xo=Fr.findIndex(function(Zo){return Zo.id===Ro});yo(!0),wo({x:xo,y:Lo}),Ao(Xo<0?0:Xo),Eo(!0)},[Fr]);ee.useEffect(function(){co?_o||Ao(0):Eo(!1)},[co]);var oi=function(xo,Lo){Ao(xo),sn==null||sn(xo,Lo)},ti=function(){yo(!1),wo(null)},ni=ee.useMemo(function(){return{register:$r,onPreview:mo}},[$r,mo]);return ee.createElement(a.Provider,{value:ni},Bt,ee.createElement(Lt,(0,fe.Z)({"aria-hidden":!co,movable:Ut,visible:co,prefixCls:wt,closeIcon:Sr,onClose:ti,mousePosition:ho,imgCommonProps:to,src:zr,fallback:Un,icons:Xt,minScale:Lr,maxScale:dr,getContainer:rr,current:Mo,count:Fr.length,countRender:Xr,onTransform:wn,toolbarRender:Hn,imageRender:mn,onChange:oi},ir)))},yt=zt,an=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Ze=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],vt=function($e){var At=$e.src,Ft=$e.alt,wt=$e.onPreviewClose,Bt=$e.prefixCls,Kt=Bt===void 0?"rc-image":Bt,Xt=$e.previewPrefixCls,yn=Xt===void 0?"".concat(Kt,"-preview"):Xt,Nn=$e.placeholder,Un=$e.fallback,cn=$e.width,Ln=$e.height,Jn=$e.style,rr=$e.preview,fr=rr===void 0?!0:rr,Ut=$e.className,Lr=$e.onClick,dr=$e.onError,Xr=$e.wrapperClassName,Sr=$e.wrapperStyle,sn=$e.rootClassName,wn=(0,ae.Z)($e,an),Hn=Nn&&Nn!==!0,mn=(0,me.Z)(fr)==="object"?fr:{},ir=mn.src,ar=mn.visible,Br=ar===void 0?void 0:ar,Fr=mn.onVisibleChange,$r=Fr===void 0?wt:Fr,Co=mn.getContainer,So=Co===void 0?void 0:Co,Mo=mn.mask,Ao=mn.maskClassName,fo=mn.movable,Bo=mn.icons,_o=mn.scaleStep,Eo=mn.minScale,Oo=mn.maxScale,zr=mn.imageRender,to=mn.toolbarRender,Io=(0,ae.Z)(mn,Ze),Zr=ir!=null?ir:At,co=(0,oe.Z)(!!Br,{value:Br,onChange:$r}),yo=(0,le.Z)(co,2),ko=yo[0],Wr=yo[1],ho=x({src:At,isCustomPlaceholder:Hn,fallback:Un}),wo=(0,le.Z)(ho,3),mo=wo[0],oi=wo[1],ti=wo[2],ni=(0,ee.useState)(null),Ro=(0,le.Z)(ni,2),xo=Ro[0],Lo=Ro[1],Xo=(0,ee.useContext)(a),Zo=!!fr,gi=function(){Wr(!1),Lo(null)},Zn=_e()(Kt,Xr,sn,(0,de.Z)({},"".concat(Kt,"-error"),ti==="error")),Cn=(0,ee.useMemo)(function(){var Dr={};return ne.forEach(function(jr){$e[jr]!==void 0&&(Dr[jr]=$e[jr])}),Dr},ne.map(function(Dr){return $e[Dr]})),On=(0,ee.useMemo)(function(){return(0,ie.Z)((0,ie.Z)({},Cn),{},{src:Zr})},[Zr,Cn]),Gn=E(Zo,On),yr=function(jr){var qr=(0,he.os)(jr.target),ro=qr.left,oo=qr.top;Xo?Xo.onPreview(Gn,ro,oo):(Lo({x:ro,y:oo}),Wr(!0)),Lr==null||Lr(jr)};return ee.createElement(ee.Fragment,null,ee.createElement("div",(0,fe.Z)({},wn,{className:Zn,onClick:Zo?yr:Lr,style:(0,ie.Z)({width:cn,height:Ln},Sr)}),ee.createElement("img",(0,fe.Z)({},Cn,{className:_e()("".concat(Kt,"-img"),(0,de.Z)({},"".concat(Kt,"-img-placeholder"),Nn===!0),Ut),style:(0,ie.Z)({height:Ln},Jn),ref:mo},oi,{width:cn,height:Ln,onError:dr})),ti==="loading"&&ee.createElement("div",{"aria-hidden":"true",className:"".concat(Kt,"-placeholder")},Nn),Mo&&Zo&&ee.createElement("div",{className:_e()("".concat(Kt,"-mask"),Ao),style:{display:(Jn==null?void 0:Jn.display)==="none"?"none":void 0}},Mo)),!Xo&&Zo&&ee.createElement(Lt,(0,fe.Z)({"aria-hidden":!ko,visible:ko,prefixCls:yn,onClose:gi,mousePosition:xo,src:Zr,alt:Ft,fallback:Un,getContainer:So,icons:Bo,movable:fo,scaleStep:_o,minScale:Eo,maxScale:Oo,rootClassName:sn,imageRender:zr,imgCommonProps:Cn,toolbarRender:to},Io)))};vt.PreviewGroup=yt,vt.displayName="Image";var xt=vt,nn=xt,Gt=te(62892),st=te(36355),ct=te(31724),Ge=te(99267),Ne=te(33853),qe=te(38819),Ct={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"},Oe=Ct,Ie=te(7657),We=function($e,At){return ee.createElement(Ie.Z,(0,fe.Z)({},$e,{ref:At,icon:Oe}))},ke=ee.forwardRef(We),ze=ke,at={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"},Ot=at,Mt=function($e,At){return ee.createElement(Ie.Z,(0,fe.Z)({},$e,{ref:At,icon:Ot}))},jt=ee.forwardRef(Mt),Dt=jt,Ht={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"},bt=Ht,fn=function($e,At){return ee.createElement(Ie.Z,(0,fe.Z)({},$e,{ref:At,icon:bt}))},un=ee.forwardRef(fn),Et=un,Sn={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"},pn=Sn,Fn=function($e,At){return ee.createElement(Ie.Z,(0,fe.Z)({},$e,{ref:At,icon:pn}))},xn=ee.forwardRef(Fn),Kn=xn,er={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"},Vn=er,Yn=function($e,At){return ee.createElement(Ie.Z,(0,fe.Z)({},$e,{ref:At,icon:Vn}))},pr=ee.forwardRef(Yn),vr=pr,tn=te(64993),Xn=te(73819),sr=te(17313),Wn=te(29878),lr=te(1950),Ir=te(83116),Rr=te(37613);const Er=Rt=>({position:Rt||"absolute",inset:0}),Nr=Rt=>{const{iconCls:$e,motionDurationSlow:At,paddingXXS:Ft,marginXXS:wt,prefixCls:Bt,colorTextLightSolid:Kt}=Rt;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Kt,background:new tn.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${At}`,[`.${Bt}-mask-info`]:Object.assign(Object.assign({},sr.vS),{padding:`0 ${Ft}px`,[$e]:{marginInlineEnd:wt,svg:{verticalAlign:"baseline"}}})}},cr=Rt=>{const{previewCls:$e,modalMaskBg:At,paddingSM:Ft,marginXL:wt,margin:Bt,paddingLG:Kt,previewOperationColorDisabled:Xt,previewOperationHoverColor:yn,motionDurationSlow:Nn,iconCls:Un,colorTextLightSolid:cn}=Rt,Ln=new tn.C(At).setAlpha(.1),Jn=Ln.clone().setAlpha(.2);return{[`${$e}-footer`]:{position:"fixed",bottom:wt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Rt.previewOperationColor},[`${$e}-progress`]:{marginBottom:Bt},[`${$e}-close`]:{position:"fixed",top:wt,right:{_skip_check_:!0,value:wt},display:"flex",color:cn,backgroundColor:Ln.toRgbString(),borderRadius:"50%",padding:Ft,outline:0,border:0,cursor:"pointer",transition:`all ${Nn}`,"&:hover":{backgroundColor:Jn.toRgbString()},[`& > ${Un}`]:{fontSize:Rt.previewOperationSize}},[`${$e}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Kt}px`,backgroundColor:Ln.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Ft,padding:Ft,cursor:"pointer",transition:`all ${Nn}`,userSelect:"none",[`&:not(${$e}-operations-operation-disabled):hover > ${Un}`]:{color:yn},"&-disabled":{color:Xt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${Un}`]:{fontSize:Rt.previewOperationSize}}}}},Yr=Rt=>{const{modalMaskBg:$e,iconCls:At,previewOperationColorDisabled:Ft,previewCls:wt,zIndexPopup:Bt,motionDurationSlow:Kt}=Rt,Xt=new tn.C($e).setAlpha(.1),yn=Xt.clone().setAlpha(.2);return{[`${wt}-switch-left, ${wt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Bt+1,display:"flex",alignItems:"center",justifyContent:"center",width:Rt.imagePreviewSwitchSize,height:Rt.imagePreviewSwitchSize,marginTop:-Rt.imagePreviewSwitchSize/2,color:Rt.previewOperationColor,background:Xt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Kt}`,userSelect:"none","&:hover":{background:yn.toRgbString()},"&-disabled":{"&, &:hover":{color:Ft,background:"transparent",cursor:"not-allowed",[`> ${At}`]:{cursor:"not-allowed"}}},[`> ${At}`]:{fontSize:Rt.previewOperationSize}},[`${wt}-switch-left`]:{insetInlineStart:Rt.marginSM},[`${wt}-switch-right`]:{insetInlineEnd:Rt.marginSM}}},$t=Rt=>{const{motionEaseOut:$e,previewCls:At,motionDurationSlow:Ft,componentCls:wt}=Rt;return[{[`${wt}-preview-root`]:{[At]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${At}-body`]:Object.assign(Object.assign({},Er()),{overflow:"hidden"}),[`${At}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Ft} ${$e} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Er()),{transition:`transform ${Ft} ${$e} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${At}-moving`]:{[`${At}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${wt}-preview-root`]:{[`${At}-wrap`]:{zIndex:Rt.zIndexPopup}}},{[`${wt}-preview-operations-wrapper`]:{position:"fixed",zIndex:Rt.zIndexPopup+1},"&":[cr(Rt),Yr(Rt)]}]},ue=Rt=>{const{componentCls:$e}=Rt;return{[$e]:{position:"relative",display:"inline-block",[`${$e}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${$e}-img-placeholder`]:{backgroundColor:Rt.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${$e}-mask`]:Object.assign({},Nr(Rt)),[`${$e}-mask:hover`]:{opacity:1},[`${$e}-placeholder`]:Object.assign({},Er())}}},ve=Rt=>{const{previewCls:$e}=Rt;return{[`${$e}-root`]:(0,Wn._y)(Rt,"zoom"),"&":(0,lr.J$)(Rt,!0)}};var Pe=(0,Ir.Z)("Image",Rt=>{const $e=`${Rt.componentCls}-preview`,At=(0,Rr.TS)(Rt,{previewCls:$e,modalMaskBg:new tn.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Rt.controlHeightLG});return[ue(At),$t(At),(0,Xn.QA)((0,Rr.TS)(At,{componentCls:$e})),ve(At)]},Rt=>({zIndexPopup:Rt.zIndexPopupBase+80,previewOperationColor:new tn.C(Rt.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new tn.C(Rt.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new tn.C(Rt.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Rt.fontSizeIcon*1.5})),xe=function(Rt,$e){var At={};for(var Ft in Rt)Object.prototype.hasOwnProperty.call(Rt,Ft)&&$e.indexOf(Ft)<0&&(At[Ft]=Rt[Ft]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Ft=Object.getOwnPropertySymbols(Rt);wt<Ft.length;wt++)$e.indexOf(Ft[wt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Ft[wt])&&(At[Ft[wt]]=Rt[Ft[wt]]);return At};const Be={rotateLeft:ee.createElement(ze,null),rotateRight:ee.createElement(Dt,null),zoomIn:ee.createElement(Kn,null),zoomOut:ee.createElement(vr,null),close:ee.createElement(Ge.Z,null),left:ee.createElement(Ne.Z,null),right:ee.createElement(qe.Z,null),flipX:ee.createElement(Et,null),flipY:ee.createElement(Et,{rotate:90})};var ut=Rt=>{var{previewPrefixCls:$e,preview:At}=Rt,Ft=xe(Rt,["previewPrefixCls","preview"]);const{getPrefixCls:wt}=ee.useContext(st.E_),Bt=wt("image",$e),Kt=`${Bt}-preview`,Xt=wt(),[yn,Nn]=Pe(Bt),Un=ee.useMemo(()=>{var cn;if(At===!1)return At;const Ln=typeof At=="object"?At:{},Jn=_e()(Nn,(cn=Ln.rootClassName)!==null&&cn!==void 0?cn:"");return Object.assign(Object.assign({},Ln),{transitionName:(0,Gt.m)(Xt,"zoom",Ln.transitionName),maskTransitionName:(0,Gt.m)(Xt,"fade",Ln.maskTransitionName),rootClassName:Jn})},[At]);return yn(ee.createElement(nn.PreviewGroup,Object.assign({preview:Un,previewPrefixCls:Kt,icons:Be},Ft)))},rn=function(Rt,$e){var At={};for(var Ft in Rt)Object.prototype.hasOwnProperty.call(Rt,Ft)&&$e.indexOf(Ft)<0&&(At[Ft]=Rt[Ft]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var wt=0,Ft=Object.getOwnPropertySymbols(Rt);wt<Ft.length;wt++)$e.indexOf(Ft[wt])<0&&Object.prototype.propertyIsEnumerable.call(Rt,Ft[wt])&&(At[Ft[wt]]=Rt[Ft[wt]]);return At};const Zt=Rt=>{const{prefixCls:$e,preview:At,className:Ft,rootClassName:wt,style:Bt}=Rt,Kt=rn(Rt,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:Xt,locale:yn=ct.Z,getPopupContainer:Nn,image:Un}=ee.useContext(st.E_),cn=Xt("image",$e),Ln=Xt(),Jn=yn.Image||ct.Z.Image,[rr,fr]=Pe(cn),Ut=_e()(wt,fr),Lr=_e()(Ft,fr,Un==null?void 0:Un.className),dr=ee.useMemo(()=>{if(At===!1)return At;const Sr=typeof At=="object"?At:{},{getContainer:sn}=Sr,wn=rn(Sr,["getContainer"]);return Object.assign(Object.assign({mask:ee.createElement("div",{className:`${cn}-mask-info`},ee.createElement(be.Z,null),Jn==null?void 0:Jn.preview),icons:Be},wn),{getContainer:sn||Nn,transitionName:(0,Gt.m)(Ln,"zoom",Sr.transitionName),maskTransitionName:(0,Gt.m)(Ln,"fade",Sr.maskTransitionName)})},[At,Jn]),Xr=Object.assign(Object.assign({},Un==null?void 0:Un.style),Bt);return rr(ee.createElement(nn,Object.assign({prefixCls:cn,preview:dr,rootClassName:Ut,className:Lr,style:Xr},Kt)))};Zt.PreviewGroup=ut;var qt=Zt,bn=()=>{const[Rt,$e]=(0,ee.useState)(""),[At,Ft]=(0,ee.useState)(0);let[wt,Bt]=(0,ee.useState)(),[Kt,Xt]=(0,ee.useState)();const[yn,Nn]=(0,ee.useState)(!1),Un=(0,ee.useRef)("");(0,ee.useEffect)(()=>ge.Z.subscribe("preview-image",sn=>{$e(sn),console.log(dr.current),document.body.style.overflow="hidden"}),[]),(0,ee.useEffect)(()=>(document.addEventListener("keydown",cn),()=>{document.removeEventListener("keydown",cn)}),[]),(0,ee.useEffect)(()=>{Un.current=Rt},[Rt]);function cn(Sr){Sr.keyCode==27&&Un.current&&Ln()}function Ln(){document.body.style.overflow="auto",Bt(void 0),Xt(void 0),Ft(0),$e("")}function Jn(){Ft(At+90)}function rr(){wt=dr.current.width*1.1,Kt=dr.current.height*1.1,Xt(Kt),Bt(wt)}function fr(){wt=dr.current.width/1.1,Kt=dr.current.height/1.1,Xt(Kt),Bt(wt)}const Ut=(0,ee.useRef)(),Lr=(0,ee.useRef)(),dr=(0,ee.useRef)(),Xr=Sr=>{(Sr.nativeEvent.target===Ut.current||Sr.nativeEvent.target===Lr.current)&&Ln()};return ee.createElement(ee.Fragment,null,Rt?ee.createElement("div",null,ee.createElement("div",{className:"preview-wrp-group",ref:Lr},ee.createElement(qt,{className:"image-preview",src:Rt,style:{display:"none"},preview:{visible:!0,src:Rt,movable:!1,onVisibleChange:Sr=>{$e("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},73278:function(ft,Ve,te){"use strict";te.d(Ve,{h:function(){return re}});var ee=te(59301),ge=te(57809),be=te(78241),ye=te(3113),_e=te(89780),fe=te.n(_e),ie=te(78780),de=te(19136),le=Object.defineProperty,me=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(se,ce,pe)=>ce in se?le(se,ce,{enumerable:!0,configurable:!0,writable:!0,value:pe}):se[ce]=pe,y=(se,ce)=>{for(var pe in ce||(ce={}))oe.call(ce,pe)&&a(se,pe,ce[pe]);if(he)for(var pe of he(ce))ne.call(ce,pe)&&a(se,pe,ce[pe]);return se},E=(se,ce)=>me(se,ae(ce));const b=ge.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={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"]};Ve.Z=({callback:se,onCancel:ce})=>{const[pe,Se]=(0,ee.useState)("python");function Le(je){Se(z[je][1])}function Ee(je){se(je)}return ee.createElement(be.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),ee.createElement(be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ee.createElement(ge.default,{getPopupContainer:je=>je.parentNode,onChange:Le},Object.keys(z).map(je=>ee.createElement(b,{key:je,value:je},z[je][0])))),ee.createElement(be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ee.createElement(re,{mode:pe})),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(ye.ZP,{type:"ghost",onClick:ce},"\u53D6\u6D88")))};function re({value:se,onChange:ce,mode:pe,options:Se={}}){const Le=(0,ee.useRef)(),[Ee,je]=(0,ee.useState)();return(0,ee.useEffect)(()=>{if(Ee){let Me=function(mt){const Xe=mt.getValue();ce&&ce(Xe)};return Ee.on("change",Me),()=>{Ee.off("change",Me)}}},[Ee,ce]),(0,ee.useEffect)(()=>{Ee&&Ee.setOption("mode",pe)},[Ee,pe]),(0,ee.useEffect)(()=>{Ee&&(se!==Ee.getValue()||se==="")&&setTimeout(()=>{Ee.setValue(se||"")},300)},[Ee,se]),(0,ee.useEffect)(()=>{if(Le.current&&!Ee){const Me=fe().fromTextArea(Le.current,y({mode:pe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Se));je(Me)}},[Le.current,Ee]),ee.createElement("div",{className:"my-codemirror-container"},ee.createElement("textarea",{ref:Le}))}},64726:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ue}});var ee=te(59301),ge=te(89780),be=te.n(ge),ye=te(76374),_e=te(78780),fe=te(6313),ie=te(25717),de=te(99498),le=te(25419),me=te(67549),ae=te(99325),he=({value:ve="",className:Pe,showTextOnly:xe,showLines:Be,style:ot={}})=>{const ut=(0,ee.useMemo)(()=>"",[ve]);return ee.createElement(ee.Fragment,null,ee.createElement("div",{dangerouslySetInnerHTML:{__html:ut}}))},oe=te(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ve,Pe,xe)=>Pe in ve?ne(ve,Pe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ve[Pe]=xe,re=(ve,Pe)=>{for(var xe in Pe||(Pe={}))b.call(Pe,xe)&&z(ve,xe,Pe[xe]);if(E)for(var xe of E(Pe))x.call(Pe,xe)&&z(ve,xe,Pe[xe]);return ve},se=(ve,Pe)=>a(ve,y(Pe));let ce=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function pe({onActionCallback:ve,title:Pe,icon:xe,actionName:Be,className:ot="",children:ut}){function rn(){ve(Be)}return oe.createElement("a",{title:Pe,className:ot,onClick:rn},oe.createElement("i",{className:`${xe}`}),ut)}var Se=({watch:ve,showNullButton:Pe,showNullProgramButton:xe,onActionCallback:Be,fullScreen:ot,insertTemp:ut,hidetoolBar:rn,extraUse:Zt})=>{const qt=[...ce,{title:`${ve?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ve?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return oe.createElement("ul",{className:"markdown-toolbar-container"},!rn&&qt.map((bn,Rt)=>oe.createElement("li",{key:Rt},bn.actionName?oe.createElement(pe,se(re({},bn),{onActionCallback:Be})):oe.createElement("span",{className:"v-line"}))),Pe?oe.createElement("li",null,oe.createElement(pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Be},oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,xe?oe.createElement(oe.Fragment,null,oe.createElement("li",null,oe.createElement(pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Be},oe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),oe.createElement("li",null,oe.createElement(pe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Be},oe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ut&&oe.createElement("li",null,oe.createElement(pe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ut}`,onActionCallback:Be},oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zt&&oe.createElement("li",null,Zt),oe.createElement("li",{className:"btn-full-screen"},oe.createElement(pe,{icon:`${ot?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:ot?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Be})))},Le=te(19647),Ee=te(78241),je=te(92832),Me=te(3113),mt=Object.defineProperty,Xe=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,it=(ve,Pe,xe)=>Pe in ve?mt(ve,Pe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ve[Pe]=xe,Ke=(ve,Pe)=>{for(var xe in Pe||(Pe={}))Fe.call(Pe,xe)&&it(ve,xe,Pe[xe]);if(we)for(var xe of we(Pe))He.call(Pe,xe)&&it(ve,xe,Pe[xe]);return ve},ht=(ve,Pe)=>Xe(ve,pt(Pe));const _t={labelCol:{span:4},wrapperCol:{span:20}};var Lt=({callback:ve,onCancel:Pe})=>{function xe(Be){ve(Be)}return ee.createElement(Ee.default,ht(Ke({},_t),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:xe,style:{width:500}}),ee.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ee.createElement(je.default,null)),ee.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ee.createElement(je.default,null)),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},kt=te(73278),nt=te(56030),Qe=te(43418),Pt=te(95237),zt=te(14573),yt=te(59301),an=({callback:ve,onCancel:Pe})=>{const xe=document.createElement("canvas"),Be=xe.getContext("2d");xe.width=1e3,xe.height=800,Be.fillStyle="#ffffff",Be.fillRect(0,0,xe.width,xe.height);const ot=xe.toDataURL("image/png");return yt.createElement(Qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},yt.createElement(Pt.Z,{style:{height:"100vh"}},yt.createElement(zt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:ot,visible:!0,title:String(Date.now())},onOk:ut=>{ve({src:ut.url})},onClose:Pe})))},Ze=te(12378);function vt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(vt,go.CommandHandler),vt.prototype.canAlignSelection=function(){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<2)},vt.prototype.alignLeft=function(){var ve=this.diagram;ve.startTransaction("aligning left");var Pe=1/0;ve.selection.each(function(xe){xe instanceof go.Link||(Pe=Math.min(xe.position.x,Pe))}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Pe,xe.position.y))}),ve.commitTransaction("aligning left")},vt.prototype.alignRight=function(){var ve=this.diagram;ve.startTransaction("aligning right");var Pe=-1/0;ve.selection.each(function(xe){if(!(xe instanceof go.Link)){var Be=xe.actualBounds.x+xe.actualBounds.width;Pe=Math.max(Be,Pe)}}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(Pe-xe.actualBounds.width,xe.position.y))}),ve.commitTransaction("aligning right")},vt.prototype.alignTop=function(){var ve=this.diagram;ve.startTransaction("alignTop");var Pe=1/0;ve.selection.each(function(xe){xe instanceof go.Link||(Pe=Math.min(xe.position.y,Pe))}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.position.x,Pe))}),ve.commitTransaction("alignTop")},vt.prototype.alignBottom=function(){var ve=this.diagram;ve.startTransaction("aligning bottom");var Pe=-1/0;ve.selection.each(function(xe){if(!(xe instanceof go.Link)){var Be=xe.actualBounds.y+xe.actualBounds.height;Pe=Math.max(Be,Pe)}}),ve.selection.each(function(xe){xe instanceof go.Link||xe.move(new go.Point(xe.actualBounds.x,Pe-xe.actualBounds.height))}),ve.commitTransaction("aligning bottom")},vt.prototype.alignCenterX=function(){var ve=this.diagram,Pe=ve.selection.first();if(Pe){ve.startTransaction("aligning Center X");var xe=Pe.actualBounds.x+Pe.actualBounds.width/2;ve.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(xe-Be.actualBounds.width/2,Be.actualBounds.y))}),ve.commitTransaction("aligning Center X")}},vt.prototype.alignCenterY=function(){var ve=this.diagram,Pe=ve.selection.first();if(Pe){ve.startTransaction("aligning Center Y");var xe=Pe.actualBounds.y+Pe.actualBounds.height/2;ve.selection.each(function(Be){Be instanceof go.Link||Be.move(new go.Point(Be.actualBounds.x,xe-Be.actualBounds.height/2))}),ve.commitTransaction("aligning Center Y")}},vt.prototype.alignColumn=function(ve){var Pe=this.diagram;Pe.startTransaction("align Column"),ve===void 0&&(ve=0),ve=parseFloat(ve);var xe=new Array;Pe.selection.each(function(Zt){Zt instanceof go.Link||xe.push(Zt)});for(var Be=0;Be<xe.length-1;Be++){var ot=xe[Be],ut=ot.actualBounds.y+ot.actualBounds.height+ve,rn=xe[Be+1];rn.move(new go.Point(ot.actualBounds.x,ut))}Pe.commitTransaction("align Column")},vt.prototype.alignRow=function(ve){ve===void 0&&(ve=0),ve=parseFloat(ve);var Pe=this.diagram;Pe.startTransaction("align Row");var xe=new Array;Pe.selection.each(function(Zt){Zt instanceof go.Link||xe.push(Zt)});for(var Be=0;Be<xe.length-1;Be++){var ot=xe[Be],ut=ot.actualBounds.x+ot.actualBounds.width+ve,rn=xe[Be+1];rn.move(new go.Point(ut,ot.actualBounds.y))}Pe.commitTransaction("align Row")},vt.prototype.canRotate=function(ve){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},vt.prototype.rotate=function(ve){ve===void 0&&(ve=90);var Pe=this.diagram;Pe.startTransaction("rotate "+ve.toString());var Pe=this.diagram;Pe.selection.each(function(xe){xe instanceof go.Link||xe instanceof go.Group||(xe.angle+=ve)}),Pe.commitTransaction("rotate "+ve.toString())},vt.prototype.pullToFront=function(){var ve=this.diagram;ve.startTransaction("pullToFront");var Pe=new go.Map;ve.selection.each(function(xe){Pe.set(xe.layer,0)}),Pe.iteratorKeys.each(function(xe){var Be=0;xe.parts.each(function(ot){if(!ot.isSelected){var ut=ot.zOrder;isNaN(ut)?ot.zOrder=0:Be=Math.max(Be,ut)}}),Pe.set(xe,Be)}),ve.selection.each(function(xe){vt._assignZOrder(xe,Pe.get(xe.layer)+1)}),ve.commitTransaction("pullToFront")},vt.prototype.pushToBack=function(){var ve=this.diagram;ve.startTransaction("pushToBack");var Pe=new go.Map;ve.selection.each(function(xe){Pe.set(xe.layer,0)}),Pe.iteratorKeys.each(function(xe){var Be=0;xe.parts.each(function(ot){if(!ot.isSelected){var ut=ot.zOrder;isNaN(ut)?ot.zOrder=0:Be=Math.min(Be,ut)}}),Pe.set(xe,Be)}),ve.selection.each(function(xe){vt._assignZOrder(xe,Pe.get(xe.layer)-1-vt._findGroupDepth(xe))}),ve.commitTransaction("pushToBack")},vt._assignZOrder=function(ve,Pe,xe){xe===void 0&&(xe=ve),ve.layer===xe.layer&&(ve.zOrder=Pe),ve instanceof go.Group&&ve.memberParts.each(function(Be){vt._assignZOrder(Be,Pe+1,xe)})},vt._findGroupDepth=function(ve){if(ve instanceof go.Group){var Pe=0;return ve.memberParts.each(function(xe){Pe=Math.max(Pe,vt._findGroupDepth(xe))}),Pe+1}else return 0},vt.prototype.doKeyDown=function(){var ve=this.diagram;if(ve!==null){var Pe=ve.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var xe=this.arrowKeyBehavior;if(xe==="none")return;if(xe==="select"){this._arrowKeySelect();return}else if(xe==="move"){this._arrowKeyMove();return}else if(xe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},vt.prototype._getAllParts=function(){var ve=new Array;return this.diagram.nodes.each(function(Pe){ve.push(Pe)}),this.diagram.parts.each(function(Pe){ve.push(Pe)}),ve},vt.prototype._arrowKeyMove=function(){var ve=this.diagram,Pe=ve.lastInput,xe=0,Be=0;if(Pe.control||Pe.meta)xe=1,Be=1;else if(ve.grid!==null){var ot=ve.grid.gridCellSize;Be=ot.width,xe=ot.height}ve.startTransaction("arrowKeyMove"),ve.selection.each(function(ut){Pe.key==="Up"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y-xe)):Pe.key==="Down"?ut.move(new go.Point(ut.actualBounds.x,ut.actualBounds.y+xe)):Pe.key==="Left"?ut.move(new go.Point(ut.actualBounds.x-Be,ut.actualBounds.y)):Pe.key==="Right"&&ut.move(new go.Point(ut.actualBounds.x+Be,ut.actualBounds.y))}),ve.commitTransaction("arrowKeyMove")},vt.prototype._arrowKeySelect=function(){var ve=this.diagram,Pe=ve.lastInput,xe=null;Pe.key==="Up"?xe=this._findNearestPartTowards(270):Pe.key==="Down"?xe=this._findNearestPartTowards(90):Pe.key==="Left"?xe=this._findNearestPartTowards(180):Pe.key==="Right"&&(xe=this._findNearestPartTowards(0)),xe!==null&&(Pe.shift?xe.isSelected=!0:Pe.control||Pe.meta?xe.isSelected=!xe.isSelected:ve.select(xe))},vt.prototype._findNearestPartTowards=function(ve){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var xe=Pe.actualBounds.center,Be=this._getAllParts(),ot=1/0,ut=Pe,rn=0;rn<Be.length;rn++){var Zt=Be[rn];if(Zt!==Pe&&Zt.canSelect()){var qt=Zt.actualBounds.center,bn=xe.directionPoint(qt),Rt=this._angleCloseness(bn,ve);if(Rt<=45){var $e=xe.distanceSquaredPoint(qt);$e*=1+Math.sin(Rt*Math.PI/180),$e<ot&&(ot=$e,ut=Zt)}}}return ut},vt.prototype._angleCloseness=function(ve,Pe){return Math.min(Math.abs(Pe-ve),Math.min(Math.abs(Pe+360-ve),Math.abs(Pe-360-ve)))},vt.prototype._arrowKeyTree=function(){var ve=this.diagram,Pe=ve.selection.first();if(Pe instanceof go.Node){var xe=ve.lastInput;if(xe.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)ve.commandHandler.canExpandTree(Pe)&&ve.commandHandler.expandTree(Pe);else{var Be=this._sortTreeChildrenByY(Pe).first();Be!==null&&ve.select(Be)}}else if(xe.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)ve.commandHandler.canCollapseTree(Pe)&&ve.commandHandler.collapseTree(Pe);else{var ot=Pe.findTreeParentNode();ot!==null&&ve.select(ot)}else if(xe.key==="Up"){var ot=Pe.findTreeParentNode();if(ot!==null){var ut=this._sortTreeChildrenByY(ot),rn=ut.indexOf(Pe);if(rn>0){for(var Zt=ut.elt(rn-1);Zt!==null&&Zt.isTreeExpanded&&!Zt.isTreeLeaf;){var qt=this._sortTreeChildrenByY(Zt);Zt=qt.last()}Zt!==null&&ve.select(Zt)}else ve.select(ot)}}else if(xe.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var Be=this._sortTreeChildrenByY(Pe).first();Be!==null&&ve.select(Be)}else for(;Pe!==null;){var ot=Pe.findTreeParentNode();if(ot===null)break;var ut=this._sortTreeChildrenByY(ot),rn=ut.indexOf(Pe);if(rn<ut.length-1){ve.select(ut.elt(rn+1));break}else Pe=ot}var bn=ve.selection.first();bn!==null&&ve.scrollToRect(bn.actualBounds)}},vt.prototype._sortTreeChildrenByY=function(ve){var Pe=new go.List().addAll(ve.findTreeChildrenNodes());return Pe.sort(function(xe,Be){var ot=xe.location,ut=Be.location;return ot.y<ut.y?-1:ot.y>ut.y?1:ot.x<ut.x?-1:ot.x>ut.x?1:0}),Pe},vt.prototype.copyToClipboard=function(ve){go.CommandHandler.prototype.copyToClipboard.call(this,ve),this._lastPasteOffset.set(this.pasteOffset)},vt.prototype.pasteFromClipboard=function(){var ve=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ve,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ve},Object.defineProperty(vt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ve){if(ve!=="move"&&ve!=="select"&&ve!=="scroll"&&ve!=="tree"&&ve!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ve);this._arrowKeyBehavior=ve}}),Object.defineProperty(vt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ve){if(!(ve instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ve);this._pasteOffset.set(ve)}});var xt=vt,nn=te(29277),Gt=te(43604),st=te(7660),ct={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=te(59301),Ne=(ve,Pe,xe)=>new Promise((Be,ot)=>{var ut=qt=>{try{Zt(xe.next(qt))}catch(bn){ot(bn)}},rn=qt=>{try{Zt(xe.throw(qt))}catch(bn){ot(bn)}},Zt=qt=>qt.done?Be(qt.value):Promise.resolve(qt.value).then(ut,rn);Zt((xe=xe.apply(ve,Pe)).next())});function qe({onCancel:ve,callback:Pe}){let xe=(0,ee.useRef)(),Be=(0,ee.useRef)(),ot=(0,ee.useRef)(),ut=(0,ee.useRef)(!1);const rn=(0,ee.useRef)(!1),[Zt,qt]=(0,ee.useState)(0);function bn(){const $e=Ze.bx.make,At={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"};xe.current=new Ze.S0(Be.current,{padding:20,grid:$e(Ze.s_,"Grid",$e(Ze.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$e(Ze.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:sn=>{var wn=sn.diagram.commandHandler.addTopLevelParts(sn.diagram.selection,!0);wn||sn.diagram.currentTool.doCancel()},commandHandler:$e(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:sn=>{var wn=sn.subject;wn.location=wn.location.copy().snapToGridPoint(sn.diagram.grid.gridOrigin,sn.diagram.grid.gridCellSize),setTimeout(()=>{sn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:sn=>{var wn=sn.subject;setTimeout(()=>{sn.diagram.commandHandler.editTextBlock()})},LinkRelinked:sn=>{var wn=sn.parameter.part;wn.invalidateConnectedLinks();var Hn=sn.subject;sn.diagram.toolManager.linkingTool.isForwards?Hn.toNode.invalidateConnectedLinks():Hn.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),xe.current.nodeTemplate=$e(Ze.NB,"Auto",{locationSpot:Ze.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ze.$u(120,60),minSize:new Ze.$u(40,40),resizable:!0,resizeCellSize:new Ze.$u(10,10),rotatable:!0},new Ze.KX("location","loc",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),new Ze.KX("desiredSize","size",Ze.$u.parse).makeTwoWay(Ze.$u.stringify),$e(Ze.bn,{name:"SHAPE",fill:At.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ze.z6.AllSides,toSpot:Ze.z6.AllSides},new Ze.KX("figure"),new Ze.KX("fill"),new Ze.KX("stroke","borderColor"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),$e(Ze.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),$e(Ze.al,{margin:1,textAlign:"center",overflow:Ze.al.OverflowEllipsis,editable:!0},new Ze.KX("text").makeTwoWay(),new Ze.KX("stroke","color"))),xe.current.nodeTemplate.toolTip=$e("ToolTip",$e(Ze.s_,"Vertical",{maxSize:new Ze.$u(200,NaN)},$e(Ze.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ze.KX("text")),$e(Ze.al,{font:"10pt sans-serif",textAlign:"center"},new Ze.KX("text","details"))));function Ft(sn,wn){var Hn=(mn,ir)=>{mn.handled=!0,mn.diagram.model.commit(ar=>{var Br=ir.part.adornedPart,Fr=new Ze.E9().setRectSpot(Br.actualBounds,sn);Fr.subtract(Br.location),Fr.scale(2,2),Fr.x+=Math.sign(Fr.x)*130,Fr.y+=Math.sign(Fr.y)*130,Fr.add(Br.location),Fr.snapToGridPoint(mn.diagram.grid.gridOrigin,mn.diagram.grid.gridCellSize);var $r=ar.copyNodeData(Br.data);ar.setGroupKeyForNodeData($r,ar.getGroupKeyForNodeData(Br.data)),ar.addNodeData($r);var Co={from:Br.key,to:ar.getKeyForNodeData($r)};ar.addLinkData(Co);var So=mn.diagram.findNodeForData($r);So.location=Fr,mn.diagram.select(So),setTimeout(()=>{mn.diagram.commandHandler.editTextBlock()},20)})};return $e(Ze.bn,{figure:wn,alignment:sn,alignmentFocus:sn.opposite(),width:sn.equals(Ze.z6.Top)||sn.equals(Ze.z6.Bottom)?25:18,height:sn.equals(Ze.z6.Top)||sn.equals(Ze.z6.Bottom)?18:25,fill:"orange",stroke:At.white,strokeWidth:4,mouseEnter:(mn,ir)=>ir.fill="dodgerblue",mouseLeave:(mn,ir)=>ir.fill="orange",isActionable:!0,click:Hn,contextClick:Hn})}function wt(sn){return $e(Ze.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:(wn,Hn)=>Hn.fill="dodgerblue",mouseLeave:(wn,Hn)=>Hn.fill="orange",click:(wn,Hn)=>{wn.diagram.commandHandler.showContextMenu(Hn.part.adornedPart)}},sn||{})}xe.current.nodeTemplate.selectionAdornmentTemplate=$e(Ze.uz,"Spot",$e(Ze.Vm,{padding:10}),Ft(Ze.z6.Top,"TriangleUp"),Ft(Ze.z6.Left,"TriangleLeft"),Ft(Ze.z6.Right,"TriangleRight"),Ft(Ze.z6.Bottom,"TriangleDown"),wt({alignment:new Ze.z6(.75,0)}));function Bt(sn,wn){return(Hn,mn)=>{Hn.handled=!0,Hn.diagram.model.commit(ir=>{ir.set(mn.part.adornedPart.data,sn,wn)})}}function Kt(sn,wn){return wn||(wn="color"),$e(Ze.bn,{width:16,height:16,stroke:"lightgray",fill:sn,margin:1,background:"transparent",mouseEnter:(Hn,mn)=>mn.stroke="dodgerblue",mouseLeave:(Hn,mn)=>mn.stroke="lightgray",click:Bt(wn,sn),contextClick:Bt(wn,sn)})}function Xt(){return[$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Kt(At.white,"fill"),Kt(At.beige,"fill"),Kt(At.extralightblue,"fill"),Kt(At.extralightred,"fill"))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Kt(At.lightgray,"fill"),Kt(At.lightgreen,"fill"),Kt(At.lightblue,"fill"),Kt(At.lightred,"fill")))]}function yn(){return[$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Kt(At.black),Kt(At.green),Kt(At.blue),Kt(At.red))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Kt(At.white),Kt(At.magenta),Kt(At.purple),Kt(At.orange)))]}function Nn(sn,wn){return wn||(wn="thickness"),$e(Ze.bn,"LineH",{width:16,height:16,strokeWidth:sn,margin:1,background:"transparent",mouseEnter:(Hn,mn)=>mn.background="dodgerblue",mouseLeave:(Hn,mn)=>mn.background="transparent",click:Bt(wn,sn),contextClick:Bt(wn,sn)})}function Un(sn,wn){return wn||(wn="dash"),$e(Ze.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:sn,margin:1,background:"transparent",mouseEnter:(Hn,mn)=>mn.background="dodgerblue",mouseLeave:(Hn,mn)=>mn.background="transparent",click:Bt(wn,sn),contextClick:Bt(wn,sn)})}function cn(){return[$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Nn(1),Nn(2),Nn(3),Nn(4))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Un(null),Un([2,4]),Un([4,4])))]}function Ln(sn,wn){return wn||(wn="figure"),$e(Ze.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:sn,margin:1,background:"transparent",mouseEnter:(Hn,mn)=>mn.fill="dodgerblue",mouseLeave:(Hn,mn)=>mn.fill="lightgray",click:Bt(wn,sn),contextClick:Bt(wn,sn)})}xe.current.nodeTemplate.contextMenu=$e("ContextMenu",$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Ln("Rectangle"),Ln("RoundedRectangle"),Ln("Ellipse"),Ln("Diamond"))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Ln("Parallelogram2"),Ln("ManualOperation"),Ln("Procedure"),Ln("Cylinder1"))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",Ln("Terminator"),Ln("CreateRequest"),Ln("Document"),Ln("TriangleDown"))),Xt(),yn(),cn()),xe.current.groupTemplate=$e(Ze.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ze.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(sn,wn)=>{var Hn=wn.addMembers(wn.diagram.selection,!0);Hn||wn.diagram.currentTool.doCancel()},avoidable:!1},new Ze.KX("location","loc",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),$e(Ze.s_,"Auto",{name:"BODY"},$e(Ze.bn,{parameter1:10,fill:At.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ze.z6.AllSides,toSpot:Ze.z6.AllSides},new Ze.KX("fill"),new Ze.KX("stroke","color"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),$e(Ze.Vm,{background:"transparent",margin:20})),$e(Ze.al,{alignment:Ze.z6.Top,alignmentFocus:Ze.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ze.KX("text"),new Ze.KX("stroke","color"))),xe.current.groupTemplate.selectionAdornmentTemplate=$e(Ze.uz,"Spot",$e(Ze.s_,"Auto",$e(Ze.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),$e(Ze.Vm,{margin:1.5})),wt({alignment:Ze.z6.TopRight,alignmentFocus:Ze.z6.BottomRight})),xe.current.groupTemplate.contextMenu=$e("ContextMenu",Xt(),yn(),cn()),xe.current.linkTemplate=$e(Ze.rU,{layerName:"Foreground",routing:Ze.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ze.KX("fromSpot","fromSpot",Ze.z6.parse),new Ze.KX("toSpot","toSpot",Ze.z6.parse),new Ze.KX("fromShortLength","dir",sn=>sn>=1?10:0),new Ze.KX("toShortLength","dir",sn=>sn>=1?10:0),new Ze.KX("points").makeTwoWay(),$e(Ze.bn,{strokeWidth:2},new Ze.KX("stroke","color"),new Ze.KX("strokeWidth","thickness"),new Ze.KX("strokeDashArray","dash")),$e(Ze.bn,{segmentIndex:0,segmentOffset:new Ze.E9(15,0),segmentOrientation:Ze.rU.OrientAlong,alignmentFocus:Ze.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",sn=>sn===1)),$e(Ze.bn,{segmentIndex:-1,segmentOffset:new Ze.E9(-10,6),segmentOrientation:Ze.rU.OrientPlus90,alignmentFocus:Ze.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",sn=>sn>=1),new Ze.KX("width","thickness",sn=>7+3*sn),new Ze.KX("height","thickness",sn=>7+3*sn),new Ze.KX("segmentOffset","thickness",sn=>new Ze.E9(-15,4+1.5*sn))),$e(Ze.bn,{segmentIndex:0,segmentOffset:new Ze.E9(15,-6),segmentOrientation:Ze.rU.OrientMinus90,alignmentFocus:Ze.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ze.KX("fill","color"),new Ze.KX("visible","dir",sn=>sn===2),new Ze.KX("width","thickness",sn=>7+3*sn),new Ze.KX("height","thickness",sn=>7+3*sn),new Ze.KX("segmentOffset","thickness",sn=>new Ze.E9(-15,4+1.5*sn))),$e(Ze.al,{alignmentFocus:new Ze.z6(0,1,-4,0),editable:!0},new Ze.KX("text").makeTwoWay(),new Ze.KX("stroke","color"))),xe.current.linkTemplate.selectionAdornmentTemplate=$e(Ze.uz,$e(Ze.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Jn(2)},new Ze.KX("pathPattern","thickness",Jn)),wt({alignmentFocus:new Ze.z6(0,0,-6,-4)}));function Jn(sn){return $e(Ze.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(sn+4).toString()+" H3"})}function rr(sn){var wn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return sn===0?wn="M0 0 M16 16 M0 8 L16 8":sn===2&&(wn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),$e(Ze.bn,{geometryString:wn,margin:2,background:"transparent",mouseEnter:(Hn,mn)=>mn.background="dodgerblue",mouseLeave:(Hn,mn)=>mn.background="transparent",click:Bt("dir",sn),contextClick:Bt("dir",sn)})}function fr(sn){var wn=(Hn,mn)=>{Hn.handled=!0,Hn.diagram.model.commit(ir=>{var ar=mn.part.adornedPart;ir.set(ar.data,sn?"toSpot":"fromSpot",Ze.z6.stringify(Ze.z6.AllSides)),(sn?ar.toNode:ar.fromNode).invalidateConnectedLinks()})};return $e(Ze.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Hn,mn)=>mn.background="dodgerblue",mouseLeave:(Hn,mn)=>mn.background="transparent",click:wn,contextClick:wn})}function Ut(sn,wn){var Hn=0,mn=Ze.z6.RightSide;sn.equals(Ze.z6.Top)?(Hn=270,mn=Ze.z6.TopSide):sn.equals(Ze.z6.Left)?(Hn=180,mn=Ze.z6.LeftSide):sn.equals(Ze.z6.Bottom)&&(Hn=90,mn=Ze.z6.BottomSide),wn||(Hn-=180);var ir=(ar,Br)=>{ar.handled=!0,ar.diagram.model.commit(Fr=>{var $r=Br.part.adornedPart;Fr.set($r.data,wn?"toSpot":"fromSpot",Ze.z6.stringify(mn)),(wn?$r.toNode:$r.fromNode).invalidateConnectedLinks()})};return $e(Ze.bn,{alignment:sn,alignmentFocus:sn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Hn,background:"transparent",mouseEnter:(ar,Br)=>Br.background="dodgerblue",mouseLeave:(ar,Br)=>Br.background="transparent",click:ir,contextClick:ir})}xe.current.linkTemplate.contextMenu=$e("ContextMenu",yn(),cn(),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",rr(0),rr(1),rr(2))),$e("ContextMenuButton",$e(Ze.s_,"Horizontal",$e(Ze.s_,"Spot",fr(!1),Ut(Ze.z6.Top,!1),Ut(Ze.z6.Left,!1),Ut(Ze.z6.Right,!1),Ut(Ze.z6.Bottom,!1)),$e(Ze.s_,"Spot",{margin:new Ze.Zt(0,0,0,2)},fr(!0),Ut(Ze.z6.Top,!0),Ut(Ze.z6.Left,!0),Ut(Ze.z6.Right,!0),Ut(Ze.z6.Bottom,!0)))));const Lr=`{ "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 dr=["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 Xr(sn){return console.log("shapeName:",sn),dr.indexOf(sn)>=0}var Sr=new Ze.YI(ot.current,{maxSelectionCount:1,linkTemplate:$e(Ze.rU,{locationSpot:Ze.z6.Center,selectionAdornmentTemplate:$e(Ze.uz,"Link",{locationSpot:Ze.z6.Center},$e(Ze.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),$e(Ze.bn,{toArrow:"Standard",stroke:null}))},{routing:Ze.rU.AvoidsNodes,curve:Ze.rU.JumpOver,corner:5,toShortLength:4},new Ze.KX("points"),$e(Ze.bn,{isPanelMain:!0,strokeWidth:2}),$e(Ze.bn,{toArrow:"Standard",stroke:null})),model:new Ze.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ze.bn.getFigureGenerators().toArray().map(sn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:sn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return xe.current.addDiagramListener("TextEdited",function(sn){var wn;const Hn=sn.subject.part;var mn=(wn=document.activeElement)==null?void 0:wn.value;typeof mn=="string"&&mn.trim()===""&&xe.current.model.commit(function(ir){ir.set(Hn.data,"text","\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}),Sr.nodeTemplate=$e(Ze.NB,"Auto",{locationSpot:Ze.z6.Center},new Ze.KX("location","location",Ze.E9.parse).makeTwoWay(Ze.E9.stringify),$e(Ze.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 Ze.KX("stroke").makeTwoWay(),new Ze.KX("fill").makeTwoWay(),new Ze.KX("figure")),$e(Ze.al,{margin:new Ze.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ze.$u(16,16),maxSize:new Ze.$u(10,NaN),textAlign:"center",editable:!0},new Ze.KX("key").makeTwoWay())),setTimeout(()=>{xe.current.grid=$e(Ze.s_,"Grid",$e(Ze.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),$e(Ze.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),xe.current.grid.visible=!0,xe.current.grid.gridCellStroke="darkgray",xe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=xe.current,xe.current}const Rt=()=>Ne(this,null,function*(){var $e=xe.current.makeImage();const At=yield(0,st.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:$e.src}});Pe({src:At.url})});return(0,ee.useEffect)(()=>(setTimeout(()=>{bn()},500),qt(Zt+1),()=>{xe.current=null}),[]),Ge.createElement("div",{ref:rn,className:ut.current?`${ct.maxH60} body-overflow-initial`:"body-overflow-initial"},Ge.createElement(Qe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Zt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ge.createElement(Pt.Z,null,Ge.createElement(Gt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ge.createElement(Gt.Z,{onClick:()=>{var $e,At,Ft=xe.current.selection.first();if(ut.current=!ut.current,document.activeElement&&Ft){let wt=(At=($e=document.activeElement)==null?void 0:$e.value)==null?void 0:At.trim();typeof wt=="string"&&xe.current.model.commit(function(Bt){Bt.set(Ft.data,"text",wt||"\u672A\u547D\u540D"),xe.current.commandHandler.stopCommand()},"increment")}qt(Zt+1)}},Ge.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ve},Ge.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ct.flowChartWrp},Ge.createElement("div",{style:{display:"flex",height:"100%"}},Ge.createElement("div",{style:{width:"300px",height:"100%"}},Ge.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ge.createElement("div",{style:{height:"calc(100% - 50px)"},className:ct.myPaletteDiv,ref:ot})),Ge.createElement("div",{style:{flex:1,position:"relative"}},Ge.createElement("div",{ref:Be,style:{height:"80vh"}}))),Ge.createElement("div",{className:"tr"},Ge.createElement(Me.ZP,{size:"large",onClick:Rt,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ct=qe,Oe=te(5112),Ie=te(5871);const We=Oe.ZP.Group,ke={margin:"0 8px"};var ze=({callback:ve,onCancel:Pe})=>{function xe(Be){ve(Be)}return ee.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:xe},ee.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ee.createElement("span",{style:ke},"\u5355\u5143\u683C\u6570\uFF1A"),ee.createElement("span",{style:ke},"\u884C\u6570"),ee.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ee.createElement(Ie.Z,null)),ee.createElement("span",{style:ke},"\u5217\u6570"),ee.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ee.createElement(Ie.Z,null))),ee.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ee.createElement("span",{style:ke},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ee.createElement(Ee.default.Item,{name:"align"},ee.createElement(We,null,ee.createElement(Oe.ZP,{value:"default"},ee.createElement("i",{className:"fa fa-align-justify"})),ee.createElement(Oe.ZP,{value:"left"},ee.createElement("i",{className:"fa fa-align-left"})),ee.createElement(Oe.ZP,{value:"center"},ee.createElement("i",{className:"fa fa-align-center"})),ee.createElement(Oe.ZP,{value:"right"},ee.createElement("i",{className:"fa fa-align-right"}))))),ee.createElement("div",{className:"flex-container flex-end"},ee.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(Me.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},at=te(78673),Ot=te(5559),Mt=te.n(Ot),Dt=(0,ee.forwardRef)(({use3d:ve,width:Pe,height:xe,callback:Be,showSaveButton:ot},ut)=>{const rn=(0,ee.useRef)(),Zt=(0,ee.useRef)(),[qt,bn]=(0,ee.useState)(!1),Rt=(0,ee.useRef)({id:rn,appName:"graphing",width:Pe||1e3,height:xe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ee.useEffect)(()=>{Zt.current=new(Mt())(Rt.current,!0),window.onload=function(){Zt.current.inject("applet_container")}},[]);const $e=()=>{var At=window.ggbApplet.getPNGBase64(1,!0,72);return Be&&Be(At),At};return(0,ee.useEffect)(()=>{Rt.current.appName=qt?"3D":"graphing",Zt.current.inject("applet_container")},[qt]),(0,ee.useEffect)(()=>{bn(ve)},[ve]),(0,ee.useImperativeHandle)(ut,()=>({getImgData:$e})),ee.createElement(ee.Fragment,null,ee.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:rn}),ee.createElement(Pt.Z,{align:"middle"},ee.createElement(Gt.Z,{flex:1},ee.createElement(at.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:qt,onChange:At=>bn(At)})),ee.createElement(Gt.Z,null,ee.createElement(Me.ZP,{size:"large",onClick:$e,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ht=te(46531),bt=te(1012),fn=te(8591);const un="link",Et="upload-image",Sn="add-flowchart",pn="draw-image",Fn="add-flowchart",xn="code-block",Kn="add-table",er="------------",Vn={default:er,left:`:${er}`,center:`:${er}:`,right:`${er}:`};var Yn=te(50505),pr=(ve,Pe,xe)=>new Promise((Be,ot)=>{var ut=qt=>{try{Zt(xe.next(qt))}catch(bn){ot(bn)}},rn=qt=>{try{Zt(xe.throw(qt))}catch(bn){ot(bn)}},Zt=qt=>qt.done?Be(qt.value):Promise.resolve(qt.value).then(ut,rn);Zt((xe=xe.apply(ve,Pe)).next())});function vr(){}let tn=0;const Xn=1e4,sr="\u2581",Wn="@\u2581\u2581@",lr="@\u2581@",Ir=`
**\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`,Rr=["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 Er(ve){return/^\d+$/.test(ve)?`${ve}px`:ve}const cr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Yr={[cr+"-B"]:"bold",[cr+"-I"]:"italic"},$t={[un]:"\u6DFB\u52A0\u94FE\u63A5",[xn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Et]:"\u6DFB\u52A0\u56FE\u7247",[pn]:"\u6DFB\u52A0\u753B\u56FE",[Sn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var ue=({defaultValue:ve="",onChange:Pe,width:xe="100%",height:Be=400,miniToolbar:ot=!1,isFocus:ut=!1,watch:rn,insertTemp:Zt,mode:qt="markdown",id:bn="markdown-editor-id",showResizeBar:Rt=!1,noStorage:$e=!1,showNullButton:At=!1,showNullProgramButton:Ft=!1,hidetoolBar:wt=!1,fullScreen:Bt=!1,onBlur:Kt,onCMBeforeChange:Xt,onFullScreen:yn,className:Nn="",disablePaste:Un=!1,disabled:cn=!1,disabledFill:Ln=!1,placeholder:Jn="",values:rr="",extraUse:fr})=>{const[Ut,Lr]=(0,ee.useState)(null),[dr,Xr]=(0,ee.useState)(ve),[Sr,sn]=(0,ee.useState)(rn),[wn,Hn]=(0,ee.useState)(Bt),[mn,ir]=(0,ee.useState)(""),[ar,Br]=(0,ee.useState)(0),[Fr,$r]=(0,ee.useState)(Be),[Co,So]=(0,ee.useState)(!1),Mo=(0,ee.useRef)((0,bt.Z)()),Ao=(0,ee.useRef)(!1),fo=(0,ee.useRef)(),[Bo,_o]=(0,ee.useState)(0),[Eo,Oo]=(0,ee.useState)(0),zr=(0,ee.useRef)(),to=(0,ee.useRef)(),Io=(0,ee.useRef)(),Zr=(0,ee.useRef)(),co=()=>pr(void 0,null,function*(){var Zn;const Cn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Mo.current}});(Zn=Cn==null?void 0:Cn.attachments)!=null&&Zn.length&&(console.log("cm:",Ut,zr),Cn.attachments.map(On=>{On.content_type.indexOf("image")>-1?Ut.replaceSelection(`![,](/api/attachments/${On.id}?type=${On.content_type})`):On.content_type.indexOf("video")>-1?Ut.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):On.content_type.indexOf("pdf")>-1?Ut.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${On.id}?type=${On.content_type}&disposition=inline" target="_blank">${On.name}</a>`):Ut.replaceSelection(`[${On.name}](${ENV.API_SERVER}/api/attachments/${On.id}?type=${On.content_type})`)}))});(0,ee.useEffect)(()=>{const Zn=window.scrollY||window.pageYOffset;Xr(rr),Ut==null||Ut.setValue(rr),window.scrollTo(0,Zn)},[rr]),(0,ee.useEffect)(()=>{yn==null||yn(wn)},[wn]),(0,ee.useEffect)(()=>{if(zr.current){let Zn=function(On,Gn){var yr;if(Un){Gn.preventDefault();return}const Dr=Gn.clipboardData;if(Dr){const jr=Dr.types.toString(),qr=Dr.items;if(jr==="Files"||Dr.types.indexOf("Files")>-1){if(Gn.preventDefault(),qt=="stex")return;try{let ro=qr[1];((yr=qr[0])==null?void 0:yr.kind)==="file"&&(ro=qr[0]);const oo=ro.getAsFile(),Go=oo.name.split(".").pop();(0,nt.I)(oo,Po=>{var fi,li,ci;Po.id?((fi=oo==null?void 0:oo.type)==null?void 0:fi.indexOf("image"))>-1?Cn.replaceSelection(`![,](/api/attachments/${Po.id}?type=${Po.content_type})`):((li=oo==null?void 0:oo.type)==null?void 0:li.indexOf("video"))>-1?Cn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Po.id}"></video>`):((ci=oo==null?void 0:oo.type)==null?void 0:ci.indexOf("pdf"))>-1?Cn.replaceSelection(`<a href="/api/attachments/${Po.id}?type=${oo.type}&disposition=inline" target="_blank">${oo.name}</a>`):Rr.includes(Go)?Cn.replaceSelection(`<a href="/api/attachments/${Po.id}?type=office&disposition=inline" target="_blank">${oo.name}</a>`):Cn.replaceSelection(`[${oo.name}](/api/attachments/${Po.id}?type=${Po.content_type})`):(Po==null?void 0:Po.status)===401&&(fn.ZP.warning((Po==null?void 0:Po.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(ro){fn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Cn=be().fromTextArea(zr.current,{mode:qt,lineNumbers:!ot,lineWrapping:!0,value:ve,autoCloseTags:!Ft,autoCloseBrackets:!0});return Cn.on("keyup",function(On,Gn){Gn.keyCode===8&&(On.getValue()==""?Cn.setOption("placeholder",Jn):Cn.setOption("placeholder",null))}),Cn.on("keydown",function(On,Gn){if(Gn.keyCode===8){var yr=ko(On);yr&&Gn.preventDefault()}}),ut&&Cn.focus(),Cn.on("paste",Zn),Cn.on("dragleave",function(On,Gn){to.current.classList.remove("mouse-hover-md")}),cn&&Cn.on("beforeChange",function(On,Gn){(Gn.origin==="paste"||Gn.origin==="+input")&&Gn.cancel()}),Lr(Cn),()=>{Cn.off("paste",Zn)}}},[]);const yo=(0,ee.useCallback)(()=>{if(to.current)try{}catch(Zn){console.log(Zn,"---- to set md editor body height")}},[Fr,to,wn]);(0,ee.useEffect)(()=>{function Zn(){let Cn=new ye.Z(On=>{for(let Gn of On)(Gn.target.offsetHeight>0||Gn.target.offsetWidth>0)&&(yo(),Ut.setSize("100%","100%"),Ut.refresh())});return Cn.observe(zr.current.parentElement),Cn}if(Ut){const Cn=Zn();return()=>{var On,Gn;(On=zr.current)!=null&&On.parentElement&&Cn.unobserve((Gn=zr.current)==null?void 0:Gn.parentElement)}}},[Ut,yo]),(0,ee.useEffect)(()=>{if(Ut){let Zn=[];for(const[Cn,On]of Object.entries(Yr)){let Gn={[Cn]:()=>{Wr(On)}};Zn.push(Gn),Ut.addKeyMap(Gn)}return fo.current=setInterval(()=>{Ao.current&&co()},4e3),()=>{clearInterval(fo.current);for(let Cn of Zn)Ut.removeKeyMap(Cn)}}},[Ut]),(0,ee.useEffect)(()=>{Bt!==wn&&Hn(Bt)},[Bt]),(0,Yn.Z)(()=>{if(!$e&&ar>0){let Zn=new Date().getTime(),Cn=window.sessionStorage.getItem(bn);Zn>=ar+Xn&&(!Cn||Cn!==dr)&&(window.sessionStorage.setItem(bn,dr),So(!0))}},Xn),(0,ee.useEffect)(()=>{sn(rn)},[Ut,rn]),(0,ee.useEffect)(()=>{Ut&&ut&&Ut.focus()},[Ut,ut]),(0,ee.useEffect)(()=>{if(Sr&&Ut){let Zn=function(On){let Gn=On.target;if(Zr.current){let yr=Gn.scrollTop/Gn.scrollHeight;Zr.current.scrollTop=Zr.current.scrollHeight*yr}};const Cn=Ut.getScrollerElement();return Cn.addEventListener("scroll",Zn),()=>{Cn.removeEventListener("scroll",Zn)}}},[Ut,Sr]),(0,ee.useEffect)(()=>{if(Ut&&Xt){let Zn=function(Cn,On){Xt(Cn,On)};return Ut.on("beforeChange",Zn),()=>{Ut.off("beforeChange",Zn)}}},[Ut,Xt]),(0,ee.useEffect)(()=>{if(Ut&&Kt){let Zn=function(){Kt(Ut.getValue())};return Ut.on("blur",Zn),()=>{Ut.off("blur",Zn)}}},[Ut,Kt]);function ko(Zn,Cn){var On=Zn.getDoc(),Gn=On.getCursor(),yr=On.getLine(Gn.line),Dr=yr.charAt(Gn.ch-1),jr=yr.lastIndexOf("@\u2581@",Gn.ch),qr=yr.lastIndexOf("@\u2581\u2581@",Gn.ch),ro=jr>qr?jr:qr,oo=jr>qr?3:4;if(Wn.indexOf(Dr)===-1)return null;if(console.log("change1:",Cn,Zn,yr,Gn,ro,jr,qr,Dr),ro>=0&&Gn.ch-ro<5){var Go=ro+oo;return On.replaceRange("",{line:Gn.line,ch:ro},{line:Gn.line,ch:Go}),{line:Gn.line,ch:Go}}return null}(0,ee.useEffect)(()=>{if(Ut){let Zn=function(Cn,On){const Gn=Cn.getValue();Xr(Gn),Br(new Date().getTime()),Cn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Ft?Pe(Gn,xo(Gn)):Pe(Gn))};return Ut.on("change",Zn),()=>{Ut.off("change",Zn)}}},[Ut,Pe]),(0,ee.useEffect)(()=>{if(Ut)if(ve==null)Ut.setValue(""),Xr("");else{const Zn=window.scrollY||window.pageYOffset;ve!==Ut.getValue()&&(Ut.setValue(ve),Xr(ve),Ut.setCursor(cn?1:Ut.lineCount(),0),window.scrollTo(0,Zn))}},[Ut,ve]);const Wr=(0,ee.useCallback)(Zn=>{const Cn=Ut.getCursor(),On=Ut.getSelection();let Gn=On.split(`
`);switch(Zn){case"bold":return Ut.replaceSelection("**"+On+"**"),On===""&&Ut.setCursor(Cn.line,Cn.ch+2),Ut.focus();case"italic":return Ut.replaceSelection("*"+On+"*"),On===""&&Ut.setCursor(Cn.line,Cn.ch+1),Ut.focus();case"code":return Ut.replaceSelection("`"+On+"`"),On===""&&Ut.setCursor(Cn.line,Cn.ch+1),Ut.focus();case"inline-latex":return ir("inline-latex"),Ut.focus();case"latex":return Ut.replaceSelection("```latex\n"+On+"\n```"),Ut.setCursor(Cn.line+1,On.length+1),Ut.focus();case"line-break":return Ut.replaceSelection(`<br/>
`),Ut.focus();case"list-ul":return On===""?Ut.replaceSelection("- "+On):Ut.replaceSelection(Gn.map(yr=>yr===""?"":`- ${yr}`).join(`
`)),Ut.focus();case"list-ol":return On===""?Ut.replaceSelection("1. "+On):Ut.replaceSelection(Gn.map((yr,Dr)=>yr===""?"":`${Dr+1}. ${yr}`).join(`
`)),Ut.focus();case"add-null-ch":return On===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(sr),Ut.focus();case"add-signal":return On===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(lr),Ut.focus();case"add-multiple":return On===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(Wn),Ut.focus();case"inster-template-1":return On===""&&Ut.setCursor(Cn.line,Cn.ch),Ut.replaceSelection(Ir),Ut.focus();case"eraser":return Ut.setValue(""),Ut.focus();case"trigger-watch":return sn(!Sr),Ut.focus();case"trigger-full-screen":return Hn(!wn),Ut.focus();case un:ir(un);return;case xn:ir(xn);return;case Et:ir(Et);return;case pn:ir(pn);return;case"maths-latex":ir("maths-latex");return;case Sn:ir(Sn);return;case Kn:ir(Kn);return;default:throw new Error}},[Ut,Sr,wn]),ho=(0,ee.useCallback)((Zn,Cn)=>{var On,Gn,yr,Dr,jr,qr;switch(ir(""),mn){case un:const{title:fi,link:li}=Zn;return Ut.replaceSelection(`[${fi}](${li})`),Ut.focus();case xn:const{language:ci,content:Ei}=Zn;return Ut.replaceSelection(["```"+ci,Ei,"```"].join(`
`)),Ut.focus();case"maths-latex":for(var ro=atob(Zn),oo=new Uint8Array(ro.length),Go=0;Go<ro.length;Go++)oo[Go]=ro.charCodeAt(Go);var Po=new Blob([oo],{type:"image/png"});(0,nt.I)(Po,Uo=>{Uo.id?Ut.replaceSelection(`![,](/api/attachments/${Uo.id}?type=${Uo.content_type})`):(Uo==null?void 0:Uo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ut.replaceSelection("`$$"+Zn+"$$`");break;case Et:case pn:case Fn:const{src:Hr,alt:ur}=Zn,io=Cn,lo=(yr=(Gn=(On=io==null?void 0:io.name)==null?void 0:On.split("."))==null?void 0:Gn.pop)==null?void 0:yr.call(Gn);return((Dr=io==null?void 0:io.type)==null?void 0:Dr.indexOf("image"))>-1||!(io!=null&&io.type)?ur?Ut.replaceSelection(`![ ${ur} ]( ${Hr} "${ur}" )`):Ut.replaceSelection(`![,](${Hr})`):((jr=io==null?void 0:io.type)==null?void 0:jr.indexOf("video"))>-1?Ut.replaceSelection(`<video width="100%" controls src="${Hr}"></video>`):((qr=io==null?void 0:io.type)==null?void 0:qr.indexOf("pdf"))>-1?Ut.replaceSelection(`<a href="${Hr}?type=${io.type}&disposition=inline" target="_blank">${io.name}</a>`):Rr.includes(lo)?Ut.replaceSelection(`<a href="${Hr}?type=office&disposition=inline" target="_blank">${io.name}</a>`):Ut.replaceSelection(`[${io.name}](${Hr})`),Ut.focus();case Kn:const{row:Fo,col:ri,align:Qo}=Zn;let Jo=`
`;for(let Uo=0;Uo<Fo;Uo++){let Si=[],_i=[];for(let yi=0;yi<ri;yi++)Uo===1&&_i.push(Vn[Qo]),Si.push(" ");Uo===1&&(Jo+=`| ${_i.join(" | ")} |
`),Jo+=`| ${Si.join(ri===1?"":" | ")} |
`}return Ut.replaceSelection(Jo+`
`),Ut.focus();default:throw new Error}},[Ut,mn]),wo=(0,ee.useMemo)(()=>{switch(mn){case un:return ee.createElement(Lt,{callback:ho,onCancel:mo});case xn:return ee.createElement(kt.Z,{callback:ho,onCancel:mo});case Et:return ee.createElement(nt.Z,{callback:ho,onCancel:mo});case Sn:return ee.createElement(Ct,{callback:ho,onCancel:mo});case Kn:return ee.createElement(ze,{callback:ho,onCancel:mo});case"maths-latex":return ee.createElement(Dt,{showSaveButton:!0,callback:ho});case"inline-latex":return ee.createElement(Ht.Z,{showSaveButton:!0,callback:ho});default:return null}},[mn]);function mo(){ir("")}(0,ee.useEffect)(()=>{if(Io.current){let Zn=function(jr){yr=!0,Dr=jr.pageY},Cn=function(){yr=!1},On=function(jr){if(yr){let qr=jr.pageY-Dr;qr<0&&(qr=0),qr>300&&(qr=300);let ro=Be+qr+"px";$r(ro)}},Gn=Io.current,yr=!1,Dr=0;return Gn.addEventListener("mousedown",Zn),document.addEventListener("mousemove",On),document.addEventListener("mouseup",Cn),()=>{Gn.removeEventListener("mousedown",Zn),document.removeEventListener("mousemove",On),document.removeEventListener("mouseup",Cn)}}},[Ut,Io]),(0,ee.useEffect)(()=>{$r(Be)},[Be]);const oi=Er(xe),ti=Er(Fr),ni={width:oi,height:ti},Ro=(0,ee.useMemo)(()=>{if(ar){let Zn=new Date(ar),Cn=Zn.getHours(),On=Zn.getMinutes(),Gn=Zn.getSeconds();return Cn=Cn<10?"0"+Cn:Cn,On=On<10?"0"+On:On,Gn=Gn<10?"0"+Gn:Gn,`${Cn}:${On}:${Gn}`}return 0},[ar]),xo=Zn=>{const Cn=[];if(Ft){let On=-1;Zn=Zn.replace(/(@▁▁@|@▁@)/g,function(Gn,yr,Dr){Cn.push({multiLine:Gn!==lr})})}return Cn};function Lo(){window.sessionStorage.removeItem(bn),So(!1),Br(0)}function Xo(){So(!1),Br(0),Ut.setValue(window.sessionStorage.getItem(bn))}(0,ee.useEffect)(()=>{$t[mn]&&mn!==pn&&mn!==Sn&&setTimeout(()=>{const Zn=document.getElementsByClassName("markdown-popup-form")[0],Cn=window.innerWidth/2-Zn.offsetWidth/2,On=window.innerHeight/2-Zn.offsetHeight/2;_o(Cn),Oo(On)},0)},[mn]);const Zo=Zn=>{Zn.preventDefault();const Cn=Zn.clientX-Bo,On=Zn.clientY-Eo;document.body.onmousemove=Gn=>{let yr=Gn.clientX-Cn,Dr=Gn.clientY-On;const jr=document.getElementsByClassName("markdown-popup-form")[0],qr=window.innerWidth-jr.offsetWidth,ro=window.innerHeight-jr.offsetHeight;yr=Math.max(0,Math.min(yr,qr)),Dr=Math.max(0,Math.min(Dr,ro)),gi(Gn.clientX,Gn.clientY,Cn,On)&&(_o(yr),Oo(Dr))},document.body.onmouseup=function(){document.body.onmousemove=null}},gi=(Zn,Cn,On,Gn)=>{const yr=document.body.clientHeight,Dr=document.body.clientWidth;return Zn<20&&On>Zn||Zn>Dr-20&&On<Zn||Cn<20&&Gn>Cn||Cn>yr-20&&Gn<Cn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"markdown-editor-wrapper",ref:to},ee.createElement("div",{className:`markdown-editor-container ${Nn} ${Sr?"on-preview":""} ${ot?"mini":""} ${wn?"full-screen":""}`,style:ni},ee.createElement(Se,{insertTemp:Zt,watch:Sr,fullScreen:wn,showNullButton:At,showNullProgramButton:Ft,onActionCallback:Wr,hidetoolBar:wt,extraUse:fr}),ee.createElement("div",{className:"markdown-editor-body"},ee.createElement("div",{className:"codemirror-container"},ee.createElement("textarea",{ref:zr,placeholder:Jn})),Sr?ee.createElement("div",{ref:Zr,className:"preview-container"},qt==="stex"&&ee.createElement(he,{value:dr}),qt!=="stex"&&ee.createElement(ae.Z,{disabledFill:Ln,showProgramFill:Ft,value:dr})):null))),Rt?ee.createElement("a",{ref:Io,className:"editor-resize"}):null,mn===pn&&ee.createElement(an,{callback:ho,onCancel:mo}),mn===Sn&&ee.createElement(Ct,{callback:ho,onCancel:mo}),ee.createElement(Le.Z,null,$t[mn]&&mn!==pn&&mn!==Sn?ee.createElement(Qe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Bo,top:Eo},title:ee.createElement("div",{style:{cursor:"move"},onMouseDown:Zo},$t[mn]),open:!0,onCancel:mo,footer:null,destroyOnClose:!0,width:mn===Sn?"1200px":null,height:mn===Sn?"80vh":null,className:"markdown-popup-form"},wo):null))}},56030:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return re},I:function(){return ce}});var ee=te(78241),ge=te(8591),be=te(92832),ye=te(3113),_e=te(49291),fe=te(59301),ie=te(73898),de=te(59301),le=Object.defineProperty,me=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(pe,Se,Le)=>Se in pe?le(pe,Se,{enumerable:!0,configurable:!0,writable:!0,value:Le}):pe[Se]=Le,y=(pe,Se)=>{for(var Le in Se||(Se={}))oe.call(Se,Le)&&a(pe,Le,Se[Le]);if(he)for(var Le of he(Se))ne.call(Se,Le)&&a(pe,Le,Se[Le]);return pe},E=(pe,Se)=>me(pe,ae(Se));const{useForm:b}=ee.default,x={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:pe,onCancel:Se})=>{const[Le]=b();let Ee=(0,fe.useRef)();function je(Xe){pe(Xe,Ee.current)}function Me(Xe,pt){if(Xe.status===-1){ge.ZP.error(Xe.message);return}Le.setFieldsValue({src:`/api/attachments/${Xe.id}`,type:pt.type})}function mt(Xe){let pt=Xe.target.files[0];Ee.current=pt,ce(pt,Me)}return de.createElement(ee.default,E(y({form:Le},z),{className:"upload-image-panel",onFinish:je,style:{width:470,overflow:"hidden"}}),de.createElement(ee.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},de.createElement("div",{className:"flex-container"},de.createElement(ee.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},de.createElement(be.default,{style:x})),de.createElement(se,{onFileChange:mt}))),de.createElement(ee.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},de.createElement(be.default,{style:{width:264}})),de.createElement(ee.default.Item,{style:{textAlign:"right"}},de.createElement(ye.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(ye.ZP,{type:"default",onClick:Se},"\u53D6\u6D88")))};function se({onFileChange:pe}){return de.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",de.createElement("input",{type:"file",onChange:pe}))}function ce(pe,Se){if(!pe)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ie.bg)())throw ge.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",pe),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var Ee=new window.XMLHttpRequest;Ee.withCredentials=!0,Ee.addEventListener("load",function(je){Se(JSON.parse(je.target.responseText),pe)},!1),Ee.addEventListener("error",function(je){console.error(je)},!1),Ee.open("POST",`${_e.KI}/api/attachments.json`),Ee.send(Le)}},19647:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return be}});var ee=te(59301),ge=te(4676);class be extends ee.Component{constructor(_e){super(_e);const fe=window.document;this.node=fe.createElement("div"),fe.body.appendChild(this.node)}render(){const{children:_e}=this.props;return(0,ge.createPortal)(_e,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34043:function(ft,Ve,te){"use strict";var ee=te(58323),ge=te(57809),be=te(78673),ye=te(59301);const _e=ge.default.Option;Ve.Z=({isTheoretical:fe,onFontSizeChange:ie,cmFontSize:de,cmCodeMode:le,autoFormat:me,onCodeModeChange:ae,onTabToSpace:he,onAutoFormat:oe,formatDocument:ne,className:a="",tabToSpace:y,children:E,code_editor:b,challenge:x})=>{const z={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"};return ye.createElement("div",{className:`tpi-code-setting ${a}`},ye.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),ye.createElement("section",null,ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),ye.createElement(ge.default,{bordered:!1,size:"small",value:le,onChange:ae},ye.createElement(_e,{value:"vs"},"\u767D\u8272\u80CC\u666F"),ye.createElement(_e,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!fe&&ye.createElement(ye.Fragment,null,ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),ye.createElement(ge.default,{bordered:!1,size:"small",value:de,onChange:ie},ye.createElement(_e,{value:12},"12px"),ye.createElement(_e,{value:14},"14px"),ye.createElement(_e,{value:16},"16px"),ye.createElement(_e,{value:18},"18px"),ye.createElement(_e,{value:20},"20px"),ye.createElement(_e,{value:22},"22px"))),ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"Tab\u8F6C\u6362"),ye.createElement(be.Z,{checked:y,onChange:he})),ye.createElement("div",{className:"file-item",onClick:ne},ye.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!fe&&ye.createElement(ye.Fragment,null,ye.createElement("h3",null,"\u5FEB\u6377\u952E"),ye.createElement("section",null,ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),ye.createElement("span",null,"Ctrl + S")),ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),ye.createElement("span",null,"F1 / Alt + F1")),ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),ye.createElement("span",null,"Ctrl + ]/[")),ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),ye.createElement("span",null,"Ctrl + Shift + \\")),ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),ye.createElement("span",null,"Home")),ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),ye.createElement("span",null,"End"))),E),!fe&&ye.createElement(ye.Fragment,null,ye.createElement("h3",null,"\u5FEB\u6377\u952E"),ye.createElement("section",null,ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),ye.createElement("span",null,z[x==null?void 0:x.difficulty])),ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),ye.createElement("span",null,b==null?void 0:b.name)),ye.createElement("div",{className:"file-item"},ye.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),ye.createElement("span",null,b!=null&&b.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},50505:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ge}});var ee=te(59301);function ge(be,ye){const _e=(0,ee.useRef)();(0,ee.useEffect)(()=>{_e.current=be}),(0,ee.useEffect)(()=>{function fe(){_e.current()}if(ye!==null){let ie=setInterval(fe,ye);return()=>clearInterval(ie)}},[ye])}},70037:function(ft,Ve,te){"use strict";te.d(Ve,{Im:function(){return Ee},ZP:function(){return we},gZ:function(){return Xe}});var ee=te(59301),ge=te(92832),be=te(3113),ye=te(84105),_e=te(87395),fe=te(86723),ie=te(24334),de=te(7651),le=te(99325),me=te(88230),ae=te(75618),he=te(34376),oe=te(92310),ne=te.n(oe),a=te(59301),y=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,se=(Fe,He,it)=>He in Fe?y(Fe,He,{enumerable:!0,configurable:!0,writable:!0,value:it}):Fe[He]=it,ce=(Fe,He)=>{for(var it in He||(He={}))z.call(He,it)&&se(Fe,it,He[it]);if(x)for(var it of x(He))re.call(He,it)&&se(Fe,it,He[it]);return Fe},pe=(Fe,He)=>E(Fe,b(He));const{TextArea:Se}=ge.default,Le={visible:!1,tabIndex:"0"},Ee={[fe.h.HIDE_COMPILE_STATUS]:"\u6682\u4E0D\u652F\u6301\u67E5\u770B",[fe.h.NOMATCH]:"\u6D4B\u8BD5\u7528\u4F8B\u7ED3\u679C\u4E0D\u5339\u914D",[fe.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 je=(Fe=>(Fe[Fe.SET_VISIBLE=0]="SET_VISIBLE",Fe[Fe.SET_TABINDEX=1]="SET_TABINDEX",Fe))(je||{});function Me(Fe,He){switch(He.type){case 0:return pe(ce({},Fe),{visible:He.payload});case 1:return pe(ce({},Fe),{tabIndex:He.payload});default:throw new Error}}function mt({value:Fe,className:He}){const[it,Ke]=(0,ee.useState)(!1),ht=(0,ee.useRef)(),_t=(0,ee.useRef)();return(0,ee.useEffect)(()=>{it&&(_t.current.reset(),_t.current.write((0,me.pp)(Fe||"")))},[Fe,it]),(0,ee.useEffect)(()=>{var Lt,kt,nt,Qe;if(ht.current){_t.current=new he.Terminal({fontSize:14,disableStdin:!0}),_t.current.open(ht.current);const Pt=ht.current.offsetWidth-14,zt=((Qe=(nt=(kt=(Lt=_t.current)==null?void 0:Lt._core)==null?void 0:kt._renderService)==null?void 0:nt.dimensions)==null?void 0:Qe.actualCellWidth)||9.5,yt=Math.ceil(Pt/zt);_t.current.resize(yt,8),Ke(!0)}},[]),a.createElement("div",{ref:ht,className:ne()("XtermText-valueRef",He)})}function Xe(Fe){const{status:He,error_msg:it,output:Ke,input:ht,expected_output:_t,is_file:Lt,input_file_url:kt,output_file_url:nt,expected_output_file_url:Qe}=Fe;let Pt=null;const zt={minHeight:150,marginBottom:10,paddingLeft:24,background:"#070f19",color:"#fff"};switch(He){case fe.h.NOMATCH:Pt=a.createElement(a.Fragment,null,a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),!Lt&&a.createElement(mt,{className:"mb10",value:ht}),Lt&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(kt,ht)},ht)),a.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),!Lt&&a.createElement(mt,{className:"mb10",value:Ke&&ie.Base64.decode(Ke)||""}),Lt&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(nt,Ke)},Ke)),a.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),!Lt&&a.createElement(mt,{className:"mb10",value:_t&&ie.Base64.decode(_t)||""}),Lt&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(Qe,_t)},_t)));break;case fe.h.EXECUTEFAILURE:Pt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Lt&&a.createElement(le.Z,{value:ht,style:zt}),Lt&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(kt,ht)},ht)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(it)));break;case fe.h.COMPILEFAILURE:Pt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A"),!Lt&&a.createElement(le.Z,{value:ht,style:zt}),Lt&&a.createElement("div",{style:zt},a.createElement("a",{onClick:()=>(0,me.LR)(kt,ht)},ht)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(it)));break;case fe.h.PODFAILURE:Pt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case fe.h.TIMEOUT:Pt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",Pt," ")}function pt(Fe){const{status:He,error_msg:it,execute_time:Ke,output:ht,input:_t,expected_output:Lt,is_file:kt,input_file_url:nt,output_file_url:Qe,expected_output_file_url:Pt}=Fe;let zt=null;switch(He){case fe.h.OK:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ke,"\u79D2"),a.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A"),a.createElement("pre",null,ie.Base64.decode(ht)));break;case fe.h.NOMATCH:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u8F93\u5165\uFF1A",a.createElement("pre",null,_t)),a.createElement("p",null,"\u8F93\u51FA\uFF1A",ht&&ie.Base64.decode(ht)),a.createElement("p",null,"\u9884\u671F\u8F93\u51FA\uFF1A",Lt&&ie.Base64.decode(Lt)));break;case fe.h.EXECUTEFAILURE:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,_t)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(it)));break;case fe.h.COMPILEFAILURE:zt=a.createElement(a.Fragment,null,a.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",a.createElement("pre",null,_t)),a.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),a.createElement("pre",{className:"error"},ie.Base64.decode(it)));break;case fe.h.PODFAILURE:zt=a.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case fe.h.TIMEOUT:zt=a.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return a.createElement(a.Fragment,null," ",zt," ")}var we=({id:Fe,is_file:He,input:it,debuging:Ke,submitting:ht,executingMessage:_t,debugResult:Lt,onChangeInput:kt,onDebugCode:nt,onSubmitCode:Qe})=>{const[Pt,zt]=(0,ee.useReducer)(Me,Le),{visible:yt,tabIndex:an}=Pt;(0,ee.useEffect)(()=>{zt({type:0,payload:!1})},[Fe]);function Ze(Gt){let st=Gt.target.id;zt({type:1,payload:st})}function vt(){zt({type:0,payload:!yt})}const xt=(0,ee.useMemo)(()=>{if(Lt){const{status:Gt}=Lt;return a.createElement(a.Fragment,null,pt(Lt))}return null},[Lt]);function nn(){zt({type:0,payload:!0}),zt({type:1,payload:"1"}),nt()}return a.createElement("div",{className:"test-case-panel"},a.createElement("div",{className:`test-case-panel-body ${yt?"active":""}`},a.createElement("ul",{className:"s-navs"},a.createElement("li",null,a.createElement("a",{className:"active"},"\u8C03\u8BD5\u4EE3\u7801\u7ED3\u679C"))),a.createElement(ae.Z,{leftTitle:"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B",rightTitle:"\u4EE3\u7801\u6267\u884C\u7ED3\u679C",style:{height:240},leftNode:a.createElement(Se,{placeholder:"\u8BF7\u8F93\u5165\u81EA\u6D4B\u7528\u4F8B\uFF08\u5982\u679C\u672A\u586B\u5199\uFF0C\u9996\u6B21\u81EA\u6D4B\u8FD0\u884C\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u586B\u5145\u7B2C\u4E00\u4E2A\u975E\u9690\u85CF\u7684\u6587\u672C\u7C7B\u578B\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF09",value:He?"":it,onChange:kt}),rightNode:Ke?a.createElement(de.Z,{message:"\u4EE3\u7801\u6267\u884C\u4E2D..."}):Lt?xt: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 ${yt?"up":""}`,onClick:vt},yt?a.createElement(ye.Z,null):a.createElement(_e.Z,null)),a.createElement("footer",{className:"footer"},a.createElement("span",{style:{visibility:"hidden"}},"\u63A7\u5236\u53F0"),a.createElement("div",{className:"flex-container"},a.createElement(be.ZP,{id:"oj-prev",className:"btn-blue",type:"ghost"},"\u4E0A\u4E00\u9898"),a.createElement(be.ZP,{id:"oj-next",className:"btn-blue",type:"ghost"},"\u4E0B\u4E00\u9898"),a.createElement(be.ZP,{className:"btn-green",type:"ghost",loading:Ke,onClick:nn},"\u8C03\u8BD5\u4EE3\u7801"),a.createElement(be.ZP,{type:"primary",className:"custom-ant-disabled",loading:ht,disabled:ht,onClick:()=>{zt({type:0,payload:!1}),Qe()}},"\u8BC4\u6D4B\u5E76\u63D0\u4EA4"))))}},68115:function(ft,Ve,te){"use strict";te.r(Ve),te.d(Ve,{default:function(){return Ue}});var ee=te(59301),ge=te(10906),be=te(76618),ye=te(24459),_e=te(31797),fe=te(8591),ie=te(43418),de=te(71418),le=te(57809),me=te(53576),ae=te(31582),he=te(38446),oe=te(87169),ne=te(43428),a=te(57800),y=te(19647),E=te(90691),b=te(34043),x=te(59301),z=Object.defineProperty,re=Object.defineProperties,se=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Le=(Ce,De,Re)=>De in Ce?z(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,Ee=(Ce,De)=>{for(var Re in De||(De={}))pe.call(De,Re)&&Le(Ce,Re,De[Re]);if(ce)for(var Re of ce(De))Se.call(De,Re)&&Le(Ce,Re,De[Re]);return Ce},je=(Ce,De)=>re(Ce,se(De));const Me={theme:(0,E.G)("cmCodeMode","vs-dark"),fontSize:(0,E.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,E.G)("cmTabToSpace",!0)};var mt=(Ce=>(Ce[Ce.set_font_size=0]="set_font_size",Ce[Ce.set_theme=1]="set_theme",Ce[Ce.on_tab_to_space=2]="on_tab_to_space",Ce[Ce.set_show_editor_setting=3]="set_show_editor_setting",Ce))(mt||{});function Xe(Ce,De){switch(De.type){case 3:return je(Ee({},Ce),{showEditorSetting:De.payload});case 1:return je(Ee({},Ce),{theme:De.payload});case 0:return je(Ee({},Ce),{fontSize:De.payload});case 2:return je(Ee({},Ce),{tabToSpace:De.payload});default:throw new Error}}var pt=({isLoading:Ce,value:De,onChange:Re,language:Je,onUpdateCode:et,ActionBarRender:rt=tt=>x.createElement(we,{onShowCodeSetting:tt})})=>{const[tt,dt]=(0,ee.useReducer)(Xe,Me),{theme:gt,fontSize:St,showEditorSetting:Wt,tabToSpace:Nt}=tt,Vt=(0,ee.useRef)(),It=(0,ee.useRef)(),Yt={onFontSizeChange:vn=>{dt({type:0,payload:vn}),(0,E.t)("cmFontSize",vn)},tabToSpace:Nt,cmFontSize:St,className:"oj",cmCodeMode:gt,onTabToSpace:vn=>{dt({type:2,payload:vn}),(0,E.t)("cmTabToSpace",vn)},onCodeModeChange:vn=>{dt({type:1,payload:vn}),(0,E.t)("cmCodeMode",vn)}};function Qt(){dt({type:3,payload:!1})}function _n(){dt({type:3,payload:!0})}const ln={value:De,language:Je,theme:gt,height:"calc(100% - 56px)",options:{fontSize:St,insertSpaces:Nt},onChange:vn=>{Re(vn),It.current=vn,clearTimeout(Vt.current),Vt.current=setTimeout(()=>{et(It.current)},1e4)},onEditBlur:vn=>{It.current&&et(It.current)}};return x.createElement(ee.Fragment,null,x.createElement("div",{className:"code-panel-container"},rt(_n),!Ce&&x.createElement(a.ZP,Ee({},ln))),x.createElement(y.Z,null,x.createElement(ne.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Wt,onClose:Qt},x.createElement(b.Z,Ee({},Yt)))))};function we({onShowCodeSetting:Ce}){return x.createElement("div",{className:"action-bar"},x.createElement("span",null,"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\u6587\u4EF6"),x.createElement("a",{onClick:Ce},x.createElement("i",{className:"iconfont icon-shezhi"})))}var Fe=te(24334),He=te(95910),it=te(70037),Ke=te(92832),ht=te(78241),_t=te(3113);const{TextArea:Lt}=Ke.default,kt=5e3;var nt=({callback:Ce,onCancel:De,notes:Re})=>{function Je(et){Ce(et)}return ee.createElement(ht.default,{className:"note-form-panel",onFinish:Je,initialValues:{notes:Re}},ee.createElement(ht.default.Item,{name:"notes",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9"},{max:kt,message:`\u7B14\u8BB0\u6700\u5927\u5B57\u6570\u4E3A${kt}`}]},ee.createElement(Lt,{placeholder:"\u8BF7\u8F93\u5165\u7B14\u8BB0\u5185\u5BB9",rows:5})),ee.createElement(ht.default.Item,{style:{textAlign:"right"}},ee.createElement(_t.ZP,{type:"ghost",onClick:De,style:{marginRight:10}}," \u53D6\u6D88 "),ee.createElement(_t.ZP,{type:"primary",htmlType:"submit"}," \u63D0\u4EA4 ")))},Qe={"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"},Pt={pagination:"pagination___npPu7",info:"info___aRH6C"},zt=te(1710),yt=te(58421),an=te(58617),Ze=te(81953),vt=te(86723),xt=te(88230),nn=te(61186),Gt=te.n(nn);const{Column:st}=zt.default;var ct=({submitResult:Ce,submitting:De,submitRecords:Re,page:Je,onPageChange:et,topicId:rt})=>{const{status:tt,id:dt,input:gt,output:St,expected_output:Wt,is_file:Nt,input_file_url:Vt,output_file_url:It,expected_output_file_url:Yt,error_msg:Qt}=Ce||{},{records:_n,records_count:ln}=Re||{},vn=(0,ye.useParams)();function In(){Nt?(0,xt.vQ)(Fe.Base64.decode(Qt)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")}):(0,xt.vQ)(Fe.Base64.decode(St)).then(()=>{fe.ZP.success("\u590D\u5236\u9519\u8BEF\u4FE1\u606F\u6210\u529F")})}return ee.createElement(de.Z,{spinning:De,tip:"\u8BC4\u6D4B\u4E2D...",indicator:ee.createElement(an.Z,{style:{fontSize:24},spin:!0})},dt?ee.createElement(ee.Fragment,null,ee.createElement("ul",{className:Pt.info},ee.createElement("li",null,"\u6267\u884C\u7ED3\u679C\uFF1A",ee.createElement("span",{className:tt===vt.h.OK?"c-green":"c-red"},it.Im[tt])),ee.createElement("li",{className:Pt.error},ee.createElement("a",{onClick:In},"\u590D\u5236\u9519\u8BEF\u4FE1\u606F ",ee.createElement(Ze.Z,null)," ")),ee.createElement("li",null,ee.createElement(ye.Link,{to:`/problems/${rt}/record-detail/${dt}?backId=${vn==null?void 0:vn.save_identifier}`},"\u663E\u793A\u8BE6\u60C5 > "))),tt!==vt.h.OK?ee.createElement(ee.Fragment,null,ee.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u5165\uFF1A"),ee.createElement("pre",null,!Nt&&gt,Nt&&ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,xt.LR)(Vt,gt)},gt)),ee.createElement("p",{className:"c-red"},"\u5B9E\u9645\u8F93\u51FA\uFF1A"),ee.createElement("pre",null,(tt===4||tt===5)&&Fe.Base64.decode(Qt),tt!=4&&tt!=5&&(Nt?ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,xt.LR)(It,St)},St):Fe.Base64.decode(St))),ee.createElement("p",{className:"c-red"},"\u9884\u671F\u8F93\u51FA\uFF1A"),ee.createElement("pre",null,!Nt&&Fe.Base64.decode(Wt),Nt&&ee.createElement("a",{style:{fontSize:"16px"},onClick:()=>(0,xt.LR)(Yt,Wt)},Wt))):null):null,(_n==null?void 0:_n.length)>0?ee.createElement(zt.default,{dataSource:_n,rowKey:"id",pagination:!1},ee.createElement(st,{title:"\u63D0\u4EA4\u65F6\u95F4",dataIndex:"created_at",key:"created_at",render:(Jt,hn)=>ee.createElement("span",null," ",Gt()(Jt).format("YYYY-MM-DD HH:mm:ss"))}),ee.createElement(st,{title:"\u63D0\u4EA4\u7ED3\u679C",dataIndex:"status",key:"status",render:(Jt,hn)=>{var Tt;return ee.createElement(ye.Link,{className:Jt===0?"c-green":"c-red",to:`/problems/${rt}/record-detail/${hn.id}?backId=${vn==null?void 0:vn.save_identifier}`},(Tt=it.Im[Jt])==null?void 0:Tt.replace("\u8C03\u8BD5","\u8BC4\u6D4B"))}}),ee.createElement(st,{title:"\u6267\u884C\u7528\u65F6 (S)",dataIndex:"execute_time",key:"execute_time"}),ee.createElement(st,{title:"\u5185\u5B58\u6D88\u8017\uFF08MB\uFF09",dataIndex:"execute_memory",key:"execute_memory"}),ee.createElement(st,{title:"\u8BED\u8A00",dataIndex:"language",key:"language"})):null,ln>15?ee.createElement(yt.Z,{className:Pt.pagination,current:Je,pageSize:15,total:ln,onChange:et}):null)},Ge=te(57816),Ne=te(12563),qe=te(81327),Ct={desc:"desc___X8_hx",info:"info___C1DPv","commit-info":"commit-info____9yQm"},Oe=te(99325),Ie=te(59301);const We={1:{name:"\u7B80\u5355",color:"#52c41a"},2:{name:"\u9002\u4E2D",color:"#faad14"},3:{name:"\u56F0\u96BE",color:"#f5222d"}};var ke=({hack:Ce,onTriggerPraise:De,toDiscuss:Re})=>{const{language:Je,difficulty:et,time_limit:rt,username:tt,user_path:dt,user_praise:gt,comments_count:St,praises_count:Wt,description:Nt,pass_count:Vt,submit_count:It}=Ce,Yt=(0,ye.useLocation)();console.log(Ce.language,"language");const Qt=We[et];return Ie.createElement(Ie.Fragment,null,Ie.createElement("ul",{className:Ct.info},Ie.createElement("li",null,"\u96BE\u5EA6\uFF1A",Ie.createElement(Ne.default,{color:Qt==null?void 0:Qt.color},Qt==null?void 0:Qt.name)),Ie.createElement("li",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236\uFF1A",Ie.createElement("b",null,rt,"\u79D2"))),Ie.createElement(Oe.Z,{value:Nt,className:Ct.desc}),Ie.createElement("ul",{className:Ct["commit-info"]},Ie.createElement("li",null,Ie.createElement(qe.Z,{size:4},Ie.createElement("span",null,"\u901A\u8FC7\u6B21\u6570")," ",Ie.createElement("b",null,Vt))),Ie.createElement("li",null,Ie.createElement(qe.Z,{size:4},Ie.createElement("span",null,"\u63D0\u4EA4\u6B21\u6570")," ",Ie.createElement("b",null,It))," "),Ie.createElement("li",{style:{flex:"1 0 0"}}),Ie.createElement("li",null,Ie.createElement(qe.Z,{size:4},Ie.createElement("i",{className:"iconfont icon-huifu1",onClick:Re})," ",Ie.createElement("b",null,St))," ")))},ze=te(50484),at=Object.defineProperty,Ot=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Dt=(Ce,De,Re)=>De in Ce?at(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,Ht=(Ce,De)=>{for(var Re in De||(De={}))Mt.call(De,Re)&&Dt(Ce,Re,De[Re]);if(Ot)for(var Re of Ot(De))jt.call(De,Re)&&Dt(Ce,Re,De[Re]);return Ce};const bt=Ce=>React.createElement("svg",Ht({width:40,height:40,xmlns:"http://www.w3.org/2000/svg"},Ce),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 fn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIwJSIgeTE9IjAlIiB4Mj0iMTAwJSIgeTI9IjEwMCUiIGlkPSJhIj48c3RvcCBzdG9wLWNvbG9yPSIjRUVGN0ZGIiBvZmZzZXQ9IjAlIi8+PHN0b3Agc3RvcC1jb2xvcj0iI0MxRTJGRiIgb2Zmc2V0PSIxMDAlIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cmVjdCBmaWxsPSJ1cmwoI2EpIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHJ4PSI4Ii8+PGcgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNMTYuMDU3IDIwLjc4NEg4LjIzOEExLjIyIDEuMjIgMCAwIDAgNyAyMS45NzR2Ni44MTFhMS4yMiAxLjIyIDAgMCAwIDEuMjM4IDEuMTloNy44MTlhMS4yMTMgMS4yMTMgMCAwIDAgMS4yMzgtMS4xOXYtNi44MTFhMS4yMTMgMS4yMTMgMCAwIDAtLjM3Ni0uODQ3IDEuMjAzIDEuMjAzIDAgMCAwLS44NjItLjMzMnYtLjAxWm0tMS4yNSA2Ljc2OUg5LjQyM1YyMy4xMmg1LjM4NHY0LjQzM1oiIGZpbGw9IiM0Q0FDRkYiLz48cGF0aCBkPSJNMTYuMDU3IDEwLjAwNWExLjIyIDEuMjIgMCAwIDEgMS4yMzggMS4xODl2Ni44MTJhMS4yMTMgMS4yMTMgMCAwIDEtLjM3Ni44NDZjLS4yMzIuMjIyLS41NDIuMzQtLjg2Mi4zMzJIOC4yMzhBMS4yMTMgMS4yMTMgMCAwIDEgNyAxOC4wMDV2LTYuODExYTEuMjIgMS4yMiAwIDAgMSAxLjIzOC0xLjE5Wm0tMS4yMzkgMi40MUg5LjQzNHY0LjQwMWg1LjM4NHYtNC40WiIgZmlsbD0iIzk0Q0RGRiIvPjxwYXRoIGQ9Ik0yMC40MTggMTIuNjMyaDExLjE4OWExLjIxMyAxLjIxMyAwIDAgMCAxLjIzOC0xLjE3OSAxLjIyNCAxLjIyNCAwIDAgMC0uMzcxLS44NTcgMS4yMTQgMS4yMTQgMCAwIDAtLjg2Ny0uMzQzSDIwLjQxOGExLjIwMyAxLjIwMyAwIDAgMC0uODY2LjMzNmMtLjIzMy4yMjMtLjM2Ny41My0uMzcyLjg1NC4wMDUuMzIzLjE0LjYzLjM3Mi44NTQuMjMyLjIyMy41NDQuMzQ0Ljg2Ni4zMzVaTTMxLjU3NSAxNi4wMjdoLTExLjE5YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTE5LjU1N2MtLjIzNy4zODQtLjIzNy44NyAwIDEuMjU0LjIzOC4zODQuNjcyLjYgMS4xMi41NTdoMTEuMTg5Yy40NDguMDQzLjg4Mi0uMTczIDEuMTE5LS41NTcuMjM3LS4zODQuMjM3LS44NyAwLTEuMjU0YTEuMTgzIDEuMTgzIDAgMCAwLTEuMTItLjU1N1pNMzEuNTc1IDIxLjU5NWgtMTEuMTlhMS4xODMgMS4xODMgMCAwIDAtMS4xMTkuNTU3Yy0uMjM3LjM4NC0uMjM3Ljg3IDAgMS4yNTQuMjM4LjM4NC42NzIuNiAxLjEyLjU1N2gxMS4xODljLjQ0OC4wNDMuODgyLS4xNzMgMS4xMTktLjU1Ny4yMzctLjM4NC4yMzctLjg3IDAtMS4yNTRhMS4xODMgMS4xODMgMCAwIDAtMS4xMi0uNTU3Wk0zMS41NzUgMjcuMTYzaC0xMS4xOWExLjE4MyAxLjE4MyAwIDAgMC0xLjExOS41NTdjLS4yMzcuMzg0LS4yMzcuODcgMCAxLjI1NC4yMzguMzg0LjY3Mi42IDEuMTIuNTU3aDExLjE4OWMuNDQ4LjA0My44ODItLjE3MyAxLjExOS0uNTU3LjIzNy0uMzg0LjIzNy0uODcgMC0xLjI1NGExLjE4MyAxLjE4MyAwIDAgMC0xLjEyLS41NTdaIiBmaWxsPSIjMTg5MEZGIi8+PC9nPjwvZz48L3N2Zz4=",un=te(7660);function Et(Ce){return(0,un.U2)("comments.json",Ce)}function Sn(Ce){return(0,un.v_)(`/discusses/${Ce}/plus.json`,{container_type:"Discuss",type:1})}function pn(Ce){return(0,un.v_)("comments/reply.json",Ce)}function Fn(Ce){return(0,un.v_)("comments.json",Ce)}function xn(Ce){return(0,un.v_)(`comments/${Ce==null?void 0:Ce.id}/hidden.json`,Ce)}function Kn(Ce){return(0,un.IV)(`comments/${Ce==null?void 0:Ce.id}.json`)}var er=te(52649),Vn=te(73898);function Yn({author:Ce}){return ee.createElement("a",{href:`/users/${Ce.login}`,target:"_blank"},ee.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",height:"50",style:{borderRadius:"50%"},src:`${he.Z.IMG_SERVER}/images/${Ce.image_url}`,width:"50"}))}function pr({data:Ce,index:De,parentDiscussIndex:Re,user:Je,onSetActionType:et}){const{author:rt,can_delete:tt,content:dt,id:gt,time:St}=Ce;function Wt(){et({id:gt,index:De,type:"delete-discuss",parentDiscussIndex:Re,message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}const Nt=Je.admin||tt||rt.user_id===Je.user_id;return ee.createElement("div",{className:"discuss-item-container second-discuss "},ee.createElement(Yn,{author:rt}),ee.createElement("section",null,ee.createElement("div",{className:"discuss-info"},ee.createElement("a",{href:`/users/${rt.login}`,target:"_blank"},rt.name),ee.createElement("span",{className:"grey"},St),ee.createElement("div",{className:"btn-group",style:{marginBottom:0}},Nt?ee.createElement("a",{onClick:Wt,title:"\u5220\u9664"},ee.createElement("i",{className:"iconfont icon-shanchu"})):null)),ee.createElement(Oe.Z,{className:"discuss-content",value:dt})))}var vr=({user:Ce,data:De,index:Re,onPlusDiscuss:Je,onSetActionType:et,activeDiscussIndex:rt,onReplyDiscuss:tt,onSetActiveDiscussIndex:dt})=>{const{content:gt,children:St,hidden:Wt,id:Nt,praise_count:Vt,time:It,user_praise:Yt,can_delete:Qt,author:_n}=De;console.log(Qt&&(!St||St.length==0),"children22");function ln(){dt(Nt)}function vn(){Je(Nt,!Yt,Re)}function In(){et({id:Nt,index:Re,type:"delete-discuss",message:"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417"})}function Jt(){et({id:Nt,index:Re,params:{hidden:Wt?"0":"1"},type:"hidden-discuss",message:Wt?"\u786E\u5B9A\u8981\u53D6\u6D88\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417":"\u786E\u5B9A\u8981\u9690\u85CF\u8BE5\u6761\u56DE\u590D\u5417"})}const hn=Ce.admin||Ce.user_id===_n.user_id;return ee.createElement("div",{className:"discuss-item-container",key:Nt},ee.createElement(Yn,{author:_n}),ee.createElement("section",null,ee.createElement("div",{className:"discuss-info"},ee.createElement("a",{href:`/users/${_n.login}`,target:"_blank"}," ",_n.name," "),ee.createElement("span",{className:"grey"},It)),ee.createElement(Oe.Z,{className:"discuss-content",value:gt}),St&&St.length>0?ee.createElement("div",{className:"reply-discuss-container"},St.map((Tt,on)=>ee.createElement(pr,{key:Tt.id,data:Tt,index:on,user:Ce,onSetActionType:et,parentDiscussIndex:Re}))):null,ee.createElement("div",{className:"btn-group"},(0,Vn.Ny)()?ee.createElement("a",{onClick:Jt,title:Wt?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF\u8BC4\u8BBA"},ee.createElement("i",{className:Wt?"iconfont icon-yincangbiyan":"fa fa-eye"})):null,Qt&&(!St||St.length==0)?ee.createElement("a",{onClick:In,title:"\u5220\u9664"},ee.createElement("i",{className:"iconfont icon-shanchu"})):null,ee.createElement("a",{onClick:ln,title:"\u56DE\u590D"}," ",ee.createElement("i",{className:"iconfont icon-huifu1"})," "),ee.createElement("a",{onClick:vn,className:Yt?"c-orange":""},ee.createElement("i",{className:Yt?"iconfont icon-dianzan mr3":"iconfont icon-dianzan-xian mr3 "}),ee.createElement("span",null,Vt||""))),ee.createElement(er.Z,{id:Nt,activeDiscussIndex:rt,onReplyDiscuss:tt})))},tn=te(85469),Xn=te(64726),sr=(Ce,De,Re)=>new Promise((Je,et)=>{var rt=gt=>{try{dt(Re.next(gt))}catch(St){et(St)}},tt=gt=>{try{dt(Re.throw(gt))}catch(St){et(St)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(rt,tt);dt((Re=Re.apply(Ce,De)).next())}),Wn=({user_praise:Ce,praise_count:De,praisePlus:Re,onCreateDiscuss:Je,discuss_count:et})=>{const[rt,tt]=(0,ee.useState)(!1),[dt,gt]=(0,ee.useState)("");function St(It){gt(It)}function Wt(){tt(!0)}function Nt(){tt(!1)}function Vt(){return sr(this,null,function*(){Je(dt),gt(""),tt(!1)})}return ee.createElement("div",{className:`dis-input-editor-container ${rt?"active":""} `},ee.createElement("div",{className:rt?"text-area hide":"text-area"},ee.createElement("input",{placeholder:"\u8BF4\u70B9\u4EC0\u4E48",onClick:Wt}),ee.createElement("a",{style:{alignItems:"center"}}," ",ee.createElement("i",{className:"iconfont icon-huifu1"})," \xA0 \xA0",et," "),ee.createElement("a",{className:"c-light-black",onClick:Re,style:{alignItems:"center"},title:Ce?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},ee.createElement("i",{className:`mr3 ${Ce?"iconfont icon-dianzan c-orange":"iconfont icon-dianzan-xian"} `}),De?ee.createElement("span",null,De):"")),rt?ee.createElement("div",{className:"input-mask",onClick:Nt}):null,ee.createElement("div",{className:rt?"md-container":"md-container hide"},ee.createElement(Xn.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:dt,height:240,onChange:St}),ee.createElement("div",{className:"tip-container",onClick:Nt},ee.createElement("a",{className:"btn-send",onClick:Vt}," \u53D1\u9001 "))))},lr=Object.defineProperty,Ir=Object.defineProperties,Rr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable,Yr=(Ce,De,Re)=>De in Ce?lr(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,$t=(Ce,De)=>{for(var Re in De||(De={}))Nr.call(De,Re)&&Yr(Ce,Re,De[Re]);if(Er)for(var Re of Er(De))cr.call(De,Re)&&Yr(Ce,Re,De[Re]);return Ce},ue=(Ce,De)=>Ir(Ce,Rr(De)),ve=(Ce,De,Re)=>new Promise((Je,et)=>{var rt=gt=>{try{dt(Re.next(gt))}catch(St){et(St)}},tt=gt=>{try{dt(Re.throw(gt))}catch(St){et(St)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(rt,tt);dt((Re=Re.apply(Ce,De)).next())});const Pe={loading:!1,page:1,data:[],count:0,actionType:null,activeDiscussIndex:null};var xe=(Ce=>(Ce[Ce.GET_DISCUSSES=0]="GET_DISCUSSES",Ce[Ce.TOP_OR_DOWN_DISCUSS=1]="TOP_OR_DOWN_DISCUSS",Ce[Ce.ACTIVE_DISCUSS_INDEX=2]="ACTIVE_DISCUSS_INDEX",Ce[Ce.PLUS_DISCUSS=3]="PLUS_DISCUSS",Ce[Ce.SET_ACTION_TYPE=4]="SET_ACTION_TYPE",Ce[Ce.SET_PAGE=5]="SET_PAGE",Ce[Ce.SHOW_DISCUSSES_LOADING=6]="SHOW_DISCUSSES_LOADING",Ce))(xe||{});function Be(Ce,De){switch(De.type){case 6:return ue($t({},Ce),{loading:!0});case 0:return $t($t({},Ce),De.payload);case 1:return $t($t({},Ce),De.payload);case 4:return $t($t({},Ce),De.payload);case 3:return $t($t({},Ce),De.payload);case 5:return $t($t({},Ce),De.payload);case 2:return $t($t({},Ce),De.payload);default:throw new Error}}var ot=({user:Ce,identifier:De,hack:Re,onTriggerPraise:Je,setDiscussTotal:et})=>{const[rt,tt]=(0,ee.useReducer)(Be,Pe),{loading:dt,page:gt,data:St,count:Wt,actionType:Nt,activeDiscussIndex:Vt}=rt;console.log("---",rt);const It=(0,ee.useCallback)(()=>ve(void 0,null,function*(){tt({type:6});const Tt=yield Et({container_type:"Practice",container_identifier:De,limit:10,page:gt}),{comments:on,disscuss_count:dn}=Tt;tt({type:0,payload:{data:on,count:dn,loading:!1}}),et(dn)}),[gt,De]);(0,ee.useEffect)(()=>{It()},[De,gt]);function Yt(Tt){tt({type:5,payload:{page:Tt}})}function Qt(Tt){tt({type:4,payload:{actionType:Tt}})}function _n(Tt){tt(Vt===Tt?{type:2,payload:{activeDiscussIndex:null}}:{type:2,payload:{activeDiscussIndex:Tt}})}function ln(Tt,on,dn){return ve(this,null,function*(){try{const Dn=yield Sn(Tt);St[dn].user_praise=on,St[dn].praise_count=Dn.praise_count,tt({type:3,payload:{data:[...St]}})}catch(Dn){console.log(Dn)}})}function vn(){return ve(this,null,function*(){const{id:Tt,params:on,type:dn,index:Dn,parentDiscussIndex:qn}=Nt;dn==="hidden-discuss"&&(console.log(on,"params"),yield xn($t({id:Tt,container_type:"Practice",container_identifier:De},on)),qn?St[qn].children[Dn].hidden=on.hidden==1:St[Dn].hidden=on.hidden==1,tt({type:4,payload:{actionType:null,data:[...St]}})),dn==="delete-discuss"&&(yield Kn({id:Tt,container_type:"Practice",container_identifier:De}),tt({type:4,payload:{actionType:null}}),yield It())})}function In(){tt({type:4,payload:{actionType:null}})}function Jt(Tt,on){return ve(this,null,function*(){try{yield pn({container_type:"Practice",container_identifier:De,comments:{content:on,parent_id:Tt}}),It()}catch(dn){console.log(dn)}})}function hn(Tt){return ve(this,null,function*(){tt({type:6}),yield Fn({comments:{content:Tt},container_type:"Practice",container_identifier:De}),It()})}return ee.createElement(ee.Fragment,null,ee.createElement("div",{className:"discuss-panel"},St.length===0?ee.createElement(Ge.Z,null):ee.createElement(de.Z,{spinning:dt},St.map((Tt,on)=>ee.createElement(vr,{onReplyDiscuss:Jt,onPlusDiscuss:ln,onSetActiveDiscussIndex:_n,onSetActionType:Qt,data:Tt,index:on,user:Ce,activeDiscussIndex:Vt}))),Wt>10?ee.createElement("div",{className:"pagination-container mt10 mb10"},ee.createElement(yt.Z,{showQuickJumper:!0,onChange:Yt,current:gt,total:Wt,showTotal:Tt=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},Tt),"\u6761\u6570\u636E")})):null),ee.createElement(Wn,{user_praise:Re.user_praise,praise_count:Re.praises_count,praisePlus:Je,discuss_count:Re.comments_count,onCreateDiscuss:hn}),ee.createElement(y.Z,null,ee.createElement(ie.default,{centered:!0,title:"\u63D0\u793A",open:!!Nt,onOk:vn,onCancel:In},ee.createElement("p",null,Nt?Nt.message:"")),ee.createElement(tn.Z,null)))},ut={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"},rn={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"},Zt=Object.defineProperty,qt=Object.getOwnPropertySymbols,bn=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,$e=(Ce,De,Re)=>De in Ce?Zt(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,At=(Ce,De)=>{for(var Re in De||(De={}))bn.call(De,Re)&&$e(Ce,Re,De[Re]);if(qt)for(var Re of qt(De))Rt.call(De,Re)&&$e(Ce,Re,De[Re]);return Ce};const Ft=Ce=>React.createElement("svg",At({width:12,height:10,xmlns:"http://www.w3.org/2000/svg"},Ce),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 wt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExIDBhMSAxIDAgMCAxIDEgMXY4YTEgMSAwIDAgMS0xIDFIMWExIDEgMCAwIDEtMS0xVjFhMSAxIDAgMCAxIDEtMWgxMFpNNC40IDIuNGEuNC40IDAgMCAwLS40LjR2NC40YS40LjQgMCAwIDAgLjY0LjMybDIuNzItMi4wNGEuNi42IDAgMCAwIDAtLjk2TDQuNjQgMi40OGEuNC40IDAgMCAwLS4yNC0uMDhaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=",Bt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,yn=Object.prototype.propertyIsEnumerable,Nn=(Ce,De,Re)=>De in Ce?Bt(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,Un=(Ce,De)=>{for(var Re in De||(De={}))Xt.call(De,Re)&&Nn(Ce,Re,De[Re]);if(Kt)for(var Re of Kt(De))yn.call(De,Re)&&Nn(Ce,Re,De[Re]);return Ce};const cn=Ce=>React.createElement("svg",Un({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),React.createElement("title",null,"\u70B9\u8D5E1"),React.createElement("g",{fillRule:"nonzero",fill:"none"},React.createElement("path",{d:"M2.593 13.356V5.694c0-.31-.231-.561-.516-.561H.976c-.532 0-.962.468-.962 1.047v6.69c0 .579.43 1.047.962 1.047h1.101c.285 0 .516-.251.516-.561Z",fill:"#999"}),React.createElement("path",{d:"M3.335 13.512V5.53c0-.184.136-.346.333-.391.695-.16 2.289-.735 2.967-2.694C7.048.73 7.495-.08 8.823.017c1.328.097 1.417 1.263 1.417 1.618v2.752s-.107.42.34.453c.45.033 3.947 0 3.947 0s1.919-.029 1.309 2.122c-.53 1.871-1.58 4.882-1.846 5.635a1.606 1.606 0 0 1-.235.438c-.257.338-.796.88-1.62.88H3.782c-.247.002-.447-.179-.447-.403Z",fill:"#CCC"})));var Ln="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjOTk5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQ0NDIi8+PC9nPjwvc3ZnPg==",Jn=Object.defineProperty,rr=Object.getOwnPropertySymbols,fr=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,Lr=(Ce,De,Re)=>De in Ce?Jn(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,dr=(Ce,De)=>{for(var Re in De||(De={}))fr.call(De,Re)&&Lr(Ce,Re,De[Re]);if(rr)for(var Re of rr(De))Ut.call(De,Re)&&Lr(Ce,Re,De[Re]);return Ce};const Xr=Ce=>React.createElement("svg",dr({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),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 Sr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMi41OTMgMTMuMzU2VjUuNjk0YzAtLjMxLS4yMzEtLjU2MS0uNTE2LS41NjFILjk3NmMtLjUzMiAwLS45NjIuNDY4LS45NjIgMS4wNDd2Ni42OWMwIC41NzkuNDMgMS4wNDcuOTYyIDEuMDQ3aDEuMTAxYy4yODUgMCAuNTE2LS4yNTEuNTE2LS41NjFaIiBmaWxsPSIjMDE1MmQ5Ii8+PHBhdGggZD0iTTMuMzM1IDEzLjUxMlY1LjUzYzAtLjE4NC4xMzYtLjM0Ni4zMzMtLjM5MS42OTUtLjE2IDIuMjg5LS43MzUgMi45NjctMi42OTRDNy4wNDguNzMgNy40OTUtLjA4IDguODIzLjAxN2MxLjMyOC4wOTcgMS40MTcgMS4yNjMgMS40MTcgMS42MTh2Mi43NTJzLS4xMDcuNDIuMzQuNDUzYy40NS4wMzMgMy45NDcgMCAzLjk0NyAwczEuOTE5LS4wMjkgMS4zMDkgMi4xMjJjLS41MyAxLjg3MS0xLjU4IDQuODgyLTEuODQ2IDUuNjM1YTEuNjA2IDEuNjA2IDAgMCAxLS4yMzUuNDM4Yy0uMjU3LjMzOC0uNzk2Ljg4LTEuNjIuODhIMy43ODJjLS4yNDcuMDAyLS40NDctLjE3OS0uNDQ3LS40MDNaIiBmaWxsPSIjQjZEMEZDIi8+PC9nPjwvc3ZnPg==",sn=Object.defineProperty,wn=Object.getOwnPropertySymbols,Hn=Object.prototype.hasOwnProperty,mn=Object.prototype.propertyIsEnumerable,ir=(Ce,De,Re)=>De in Ce?sn(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,ar=(Ce,De)=>{for(var Re in De||(De={}))Hn.call(De,Re)&&ir(Ce,Re,De[Re]);if(wn)for(var Re of wn(De))mn.call(De,Re)&&ir(Ce,Re,De[Re]);return Ce};const Br=Ce=>React.createElement("svg",ar({width:16,height:14,xmlns:"http://www.w3.org/2000/svg"},Ce),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 Fr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNC43MTcuMDFoOC44NGMxLjU3MSAwIDIuMzU3Ljc3NyAyLjM1NyAyLjMzMnY1LjI1YzAgMS41NTYtLjc4NiAyLjMzNC0yLjM1NyAyLjMzNGgtOC44NGMtMS41NzIgMC0yLjM1Ny0uNzc4LTIuMzU3LTIuMzM0di01LjI1QzIuMzYuNzg3IDMuMTQ1LjAxIDQuNzE3LjAxWiIgZmlsbD0iIzk5OSIvPjxwYXRoIGQ9Ik0yLjM2IDIuMzQyaDguODRhMi4zNyAyLjM3IDAgMCAxIDEuNjY2LjY4NGMuNDQyLjQzNy42OSAxLjAzLjY5IDEuNjV2NS4yNWMwIDEuMjg4LTEuMDU1IDIuMzMzLTIuMzU3IDIuMzMzSDcuOTRsLTEuMTYgMS4xNTMtMS4xNjctMS4xNTNIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NXYtNS4yNWMwLS42Mi4yNDgtMS4yMTMuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4NFoiIGZpbGw9IiNCNkQwRkMiLz48cGF0aCBkPSJNMi4zNiAyLjkyNmg4Ljg0YzEuMzAxIDAgMi4zNTcgMS4wNDQgMi4zNTcgMi4zMzN2NS4yNWMwIC42MTktLjI0OSAxLjIxMi0uNjkgMS42NWEyLjM3IDIuMzcgMCAwIDEtMS42NjguNjgzSDcuOTRsLTEuMTYgMS4xNTQtMS4xNjctMS4xNTRIMi4zNmEyLjM3IDIuMzcgMCAwIDEtMS42NjctLjY4MyAyLjMyMSAyLjMyMSAwIDAgMS0uNjktMS42NVY1LjI2YzAtLjYxOS4yNDgtMS4yMTIuNjktMS42NWEyLjM3IDIuMzcgMCAwIDEgMS42NjctLjY4M1oiIGZpbGw9IiNDQ0MiLz48cGF0aCBkPSJNMy41MzggNS44NDJoNi40ODNjLjM5MyAwIC41ODkuMTk1LjU4OS41ODQgMCAuMzg5LS4xOTYuNTgzLS41OS41ODNIMy41MzljLS4zOTMgMC0uNTktLjE5NC0uNTktLjU4MyAwLS4zOS4xOTctLjU4NC41OS0uNTg0Wk0zLjUzOCA4Ljc2aDQuNzE1Yy4zOTMgMCAuNTkuMTk0LjU5LjU4MiAwIC4zOS0uMTk3LjU4NC0uNTkuNTg0SDMuNTM4Yy0uMzkzIDAtLjU5LS4xOTUtLjU5LS41ODQgMC0uMzg4LjE5Ny0uNTgzLjU5LS41ODNaIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==",$r=Object.defineProperty,Co=Object.getOwnPropertySymbols,So=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,Ao=(Ce,De,Re)=>De in Ce?$r(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,fo=(Ce,De)=>{for(var Re in De||(De={}))So.call(De,Re)&&Ao(Ce,Re,De[Re]);if(Co)for(var Re of Co(De))Mo.call(De,Re)&&Ao(Ce,Re,De[Re]);return Ce};const Bo=Ce=>React.createElement("svg",fo({width:16,height:12,xmlns:"http://www.w3.org/2000/svg"},Ce),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 _o="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNNy45NjUgMTEuOTYxQzIuNTkzIDExLjk2MSAwIDYuOTI2IDAgNS45ODEgMCA1LjAzNSAyLjYyMyAwIDcuOTY1IDBzNy45NjUgNC45ODQgNy45NjUgNS45OGMwIC45OTctMi41OTMgNS45ODEtNy45NjUgNS45ODFabTAtMi4yMDhjMS4yOTYgMCAyLjQ5NC0uNzIgMy4xNDItMS44ODZhMy45MDIgMy45MDIgMCAwIDAgMC0zLjc3M2MtLjY0OC0xLjE2Ny0xLjg0Ni0xLjg4Ni0zLjE0Mi0xLjg4Ni0yLjAwNCAwLTMuNjI5IDEuNjktMy42MjkgMy43NzNzMS42MjUgMy43NzIgMy42MjkgMy43NzJaIiBmaWxsPSIjQ0NDIi8+PHBhdGggZD0iTTcuOTY1IDguMjhjLTEuMjIyIDAtMi4yMTMtMS4wMjktMi4yMTMtMi4zIDAtMS4yNy45OTEtMi4zIDIuMjEzLTIuM3MyLjIxMiAxLjAzIDIuMjEyIDIuM2MwIDEuMjcxLS45OSAyLjMtMi4yMTIgMi4zWiIgZmlsbD0iIzk5OSIvPjwvZz48L3N2Zz4=",Oo=({style:Ce={},onClick:De,onAssist:Re,onHide:Je,data:et,active:rt,showLine:tt})=>ee.createElement(ee.Fragment,null,ee.createElement("div",{className:rt===(et==null?void 0:et.id)?`${rn.list} ${rn.active}`:rn.list,style:Ce,onClick:()=>De(et)},(et==null?void 0:et.video)&&ee.createElement("div",{className:rn.left},ee.createElement("img",{src:et==null?void 0:et.video_cover}),ee.createElement("div",null,ee.createElement("img",{src:wt}),ee.createElement("span",null,et==null?void 0:et.video_duration)),ee.createElement("div",{className:rn.mask})),ee.createElement("div",{className:rn.right},ee.createElement("div",{className:rn.name},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(et==null?void 0:et.image_url),width:30,height:30}),ee.createElement("div",{title:et==null?void 0:et.name,className:rn.title},et==null?void 0:et.name),(et==null?void 0:et.is_authority)&&ee.createElement("div",{className:rn.b},"\u5B98\u65B9"),(et==null?void 0:et.is_excellent)&&ee.createElement("div",{className:rn.a},"\u7CBE\u9009")),ee.createElement("div",{className:rn.des},ee.createElement(Oe.Z,{showLines:2,showTextOnly:!0,value:(et==null?void 0:et.content)||"\u6682\u65E0\u5185\u5BB9"})),ee.createElement("div",{className:rn.tag},ee.createElement("span",{className:"current",onClick:dt=>{dt.stopPropagation(),Re(et)}},ee.createElement("img",{src:et!=null&&et.user_liker?Sr:Ln}),ee.createElement("span",{style:{color:et!=null&&et.user_liker?"#0152d9":"#656f87"}},et==null?void 0:et.praises_count)),ee.createElement("span",null,ee.createElement("img",{src:Fr}),ee.createElement("span",null,et==null?void 0:et.discusses_count)),ee.createElement("span",null,ee.createElement("img",{src:_o}),ee.createElement("span",null,et==null?void 0:et.viewed_count)),(0,Vn.Ny)()&&ee.createElement("span",{className:"current",style:{color:"#0152d9",marginRight:0,userSelect:"none"},onClick:dt=>{dt.stopPropagation(),Je(et)}},et!=null&&et.is_hidden?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")))),tt&&ee.createElement("div",{className:rn.line})),zr={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"},to=te(6848),Io=Object.defineProperty,Zr=Object.getOwnPropertySymbols,co=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,ko=(Ce,De,Re)=>De in Ce?Io(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,Wr=(Ce,De)=>{for(var Re in De||(De={}))co.call(De,Re)&&ko(Ce,Re,De[Re]);if(Zr)for(var Re of Zr(De))yo.call(De,Re)&&ko(Ce,Re,De[Re]);return Ce};const ho=Ce=>React.createElement("svg",Wr({width:32,height:30,xmlns:"http://www.w3.org/2000/svg"},Ce),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 wo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNiAwQzEuMTc1IDAgLjc2OC4xNy40NjguNDc0QTEuNjMgMS42MyAwIDAgMCAwIDEuNjIydjMuMjQzaDMuMjM3TDcuMzc4IDBIMS42Wm03Ljg3NiAwTDUuMzM4IDQuODY1aDUuOUwxNS4zNzEgMEg5LjQ3NlptNy45OTggMC00LjEzNyA0Ljg2NWg1Ljg5NkwyMy4zNzIgMGgtNS44OThabTggMC00LjEzOCA0Ljg2NWg2LjY2VjEuNjIyYTEuNjI5IDEuNjI5IDAgMCAwLS40NjctMS4xNDhBMS41ODUgMS41ODUgMCAwIDAgMjYuMzk3IDBoLS45MjRaTTAgNi40ODd2MTcuODM3YzAgLjQzLjE2Ny44NDQuNDY4IDEuMTQ4LjMuMzA1LjcwNy40NzUgMS4xMzIuNDc0aDE4LjYxYTYuNTE1IDYuNTE1IDAgMCAxIDEuNjUyLTYuMjE4IDYuMzEgNi4zMSAwIDAgMSA2LjEzNC0xLjY3NVY2LjQ4N0gwWm0xMS45OTggNS42NzUgNi40IDQuMDU2LTYuNCA0LjA1NXYtOC4xMVptMTQuMzk5IDYuNDg3Yy0zLjA5Mi4wMDItNS41OTcgMi41NDQtNS41OTUgNS42NzguMDAxIDMuMTM0IDIuNTA4IDUuNjc0IDUuNiA1LjY3M0MyOS40OTQgMzAgMzIgMjcuNDU4IDMyIDI0LjMyNGMwLTEuNTA2LS41OS0yLjk1LTEuNjQxLTQuMDE0YTUuNTYxIDUuNTYxIDAgMCAwLTMuOTYyLTEuNjYxWm0wIDIuMDI3Yy4yMi4wMDMuNDI4LjEuNTc0LjI2Ni42NjMuNiAxLjMyNyAxLjM1MiAxLjk5IDIuMDAyYS44LjggMCAwIDEgMCAxLjE0Ljc4OC43ODggMCAwIDEtMS4xMjUgMGwtLjYzOC0uNjQ2djMuNzI0YS44MTQuODE0IDAgMCAxLS4zOTIuNzI0Ljc5Ljc5IDAgMCAxLS44MTUgMCAuODE0LjgxNCAwIDAgMS0uMzkyLS43MjR2LTMuNzI0bC0uNjM3LjY0NmEuNzkuNzkgMCAwIDEtLjc3My4yMTUuODAzLjgwMyAwIDAgMS0uNTY3LS41NzUuODE2LjgxNiAwIDAgMSAuMjEyLS43ODNjLjY1MS0uNjY0IDEuMzMzLTEuMzg4IDEuOTktMi4wMDJhLjc3OC43NzggMCAwIDEgLjU3NS0uMjY2bC0uMDAyLjAwM1oiIGZpbGw9IiMwMTUyZDkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",mo=Object.defineProperty,oi=Object.getOwnPropertySymbols,ti=Object.prototype.hasOwnProperty,ni=Object.prototype.propertyIsEnumerable,Ro=(Ce,De,Re)=>De in Ce?mo(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,xo=(Ce,De)=>{for(var Re in De||(De={}))ti.call(De,Re)&&Ro(Ce,Re,De[Re]);if(oi)for(var Re of oi(De))ni.call(De,Re)&&Ro(Ce,Re,De[Re]);return Ce};const Lo=Ce=>React.createElement("svg",xo({width:30,height:30,xmlns:"http://www.w3.org/2000/svg"},Ce),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 Xo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE1IDBjOC4yODUgMCAxNSA2LjcxNyAxNSAxNSAwIDguMjg1LTYuNzE1IDE1LTE1IDE1LTguMjgzIDAtMTUtNi43MTUtMTUtMTVDMCA2LjcxNyA2LjcxNyAwIDE1IDBabTEwLjA0MSA3LjV2LjAxYTQ3LjkzNCA0Ny45MzQgMCAwIDAtMTEuMjMyIDkuMzg2bC00LjM3Mi0zLjN2LS4wMDJMNy41IDE1LjA4bDcuNTUzIDcuNDJBNDQuNjI1IDQ0LjYyNSAwIDAgMSAyNS41IDguNTVsLS40NTktMS4wNVoiIGZpbGw9IiM0NEQ3QjYiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Zo=Object.defineProperty,gi=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,On=(Ce,De,Re)=>De in Ce?Zo(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,Gn=(Ce,De)=>{for(var Re in De||(De={}))Zn.call(De,Re)&&On(Ce,Re,De[Re]);if(gi)for(var Re of gi(De))Cn.call(De,Re)&&On(Ce,Re,De[Re]);return Ce};const yr=Ce=>React.createElement("svg",Gn({xmlns:"http://www.w3.org/2000/svg",width:20,height:20},Ce),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 Dr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PHBhdGggZmlsbD0iI0FGQkFDQiIgZD0iTTkuOTkuMDJDNC40ODIuMDIuMDIgNC40ODIuMDIgOS45OWMwIDUuNTA2IDQuNDYzIDkuOTcgOS45NyA5Ljk3IDUuNTA2IDAgOS45Ny00LjQ2NCA5Ljk3LTkuOTcgMC01LjUwNy00LjQ2NC05Ljk3LTkuOTctOS45N1ptMS42MzYgMTMuNjljLS43NDQgMS4xOS0xLjQ4OCAyLjA4My0yLjgyNyAyLjA4My0uODkzLS4xNDktMS4xOS0uNzQ0LTEuMDQyLTEuNDg4bDEuNjM3LTUuNTA2YzAtLjE0OSAwLS4yOTgtLjE0OS0uMjk4LS4xNDggMC0uNDQ2IDAtLjU5NS4yOThsLTEuMDQyIDEuMTl2LS43NDRjLjc0NS0xLjE5IDEuOTM1LTIuMDgzIDIuODI4LTIuMDgzLjc0NC4xNDkgMS4xOS43NDQgMS4wNDIgMS40ODhMOS44NCAxNC4zMDVjMCAuMTQ5IDAgLjI5OC4xNDguMjk4LjE1IDAgLjQ0Ny0uMTUuNTk2LS4yOThsMS4wNDEtMS4zNHYuNzQ1Wm0tLjI5Ny03LjI5MmMtLjU5NiAwLTEuMTktLjQ0Ni0xLjE5LTEuMTkgMC0uNzQ1LjQ0Ni0xLjE5MSAxLjE5LTEuMTkxLjU5NSAwIDEuMTkuNDQ2IDEuMTkgMS4xOSAwIC43NDUtLjU5NSAxLjE5MS0xLjE5IDEuMTkxWiIvPjwvc3ZnPg==",jr=te(77659),qr=Object.defineProperty,ro=Object.defineProperties,oo=Object.getOwnPropertyDescriptors,Go=Object.getOwnPropertySymbols,Po=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,li=(Ce,De,Re)=>De in Ce?qr(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,ci=(Ce,De)=>{for(var Re in De||(De={}))Po.call(De,Re)&&li(Ce,Re,De[Re]);if(Go)for(var Re of Go(De))fi.call(De,Re)&&li(Ce,Re,De[Re]);return Ce},Ei=(Ce,De)=>ro(Ce,oo(De)),Hr=(Ce,De,Re)=>new Promise((Je,et)=>{var rt=gt=>{try{dt(Re.next(gt))}catch(St){et(St)}},tt=gt=>{try{dt(Re.throw(gt))}catch(St){et(St)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(rt,tt);dt((Re=Re.apply(Ce,De)).next())}),io=({onClose:Ce,onOk:De,identifier:Re,active:Je})=>{var et,rt;const[tt]=ht.default.useForm(),[dt,gt]=(0,ee.useState)({}),[St,Wt]=(0,ee.useState)(!1),[Nt,Vt]=(0,ee.useState)(!1),[It,Yt]=(0,ee.useState)([]),Qt=(0,Vn.eY)(),_n=(0,ye.useParams)(),ln=(0,ee.useRef)();(0,ee.useEffect)(()=>{Je&&vn()},[Je]);const vn=()=>Hr(void 0,null,function*(){var gn,Tn,kn,Qn,Gr,tr,Vr,_r,Ar,Tr;const zn=yield(0,me.M3)(Re,{active:Je});if((zn==null?void 0:zn.status)===0){const En={name:(gn=zn==null?void 0:zn.data)==null?void 0:gn.name,content:(Tn=zn==null?void 0:zn.data)==null?void 0:Tn.content};tt.setFieldsValue(En),gt(En),(Qn=(kn=zn==null?void 0:zn.data)==null?void 0:kn.videos)!=null&&Qn[0]&&Yt([{video_id:(Vr=(tr=(Gr=zn==null?void 0:zn.data)==null?void 0:Gr.videos)==null?void 0:tr[0])==null?void 0:Vr.video_id,name:(Tr=(Ar=(_r=zn==null?void 0:zn.data)==null?void 0:_r.videos)==null?void 0:Ar[0])==null?void 0:Tr.title,loaded:100}])}}),In=(gn,Tn)=>{gt(ci({},Tn))},Jt=gn=>Hr(void 0,null,function*(){const Tn={videos:It,articles:gn};Vt(!0);let kn;Je?(Tn.active=Je,kn=yield(0,me.gu)(Re,Tn)):kn=yield(0,me.bx)(Re,Tn),(kn==null?void 0:kn.status)===0&&(console.log(Je||(kn==null?void 0:kn.id),44),De(Je||(kn==null?void 0:kn.id))),Vt(!1)}),hn=(gn,Tn)=>{ie.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ee.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",Tn?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Tn?Yt([]):(ln.current.cancel(),Yt([]))}})},Tt=()=>ee.createElement(jr.Z,Ei(ci({},Pn),{ref:ln}),ee.createElement("div",{className:zr.main},ee.createElement("img",{src:wo,alt:""}),ee.createElement("span",null,"\u4E0A\u4F20\u89C6\u9891"))),on=gn=>ee.createElement("div",{className:zr.mainLoading},ee.createElement("div",{className:zr.proWarp},ee.createElement("div",{className:zr.pro},ee.createElement("div",{style:{width:gn}})),ee.createElement("span",null,gn||0,"%")),ee.createElement("aside",null,"\u4E0A\u4F20\u4E2D"),ee.createElement("div",{className:zr.tip},ee.createElement(to.Z,{getPopupContainer:Tn=>Tn.parentNode,title:ee.createElement("div",null,ee.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ee.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),ee.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),ee.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},ee.createElement("img",{src:Dr,alt:""})))),dn=gn=>ee.createElement("div",{className:zr.mainSucceed},ee.createElement("img",{src:Xo,alt:""}),ee.createElement("span",null,"\u4E0A\u4F20\u6210\u529F"),ee.createElement("div",{className:zr.tip},ee.createElement(to.Z,{getPopupContainer:Tn=>Tn.parentNode,title:ee.createElement("div",null,ee.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",ee.createElement("a",{className:"current c-light-primary",target:"_blank",href:"/users/innov/videos/protocol"},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),ee.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC71G\uFF1B"),ee.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"))},ee.createElement("img",{src:Dr,alt:""}))),ee.createElement("div",{className:zr.del,onClick:()=>hn(gn.name,gn.loaded==100)},ee.createElement("i",{className:"iconfont icon-shanchu7 mr5"}),"\u5220\u9664\u89C6\u9891")),Dn=()=>ee.createElement(ee.Fragment,null,It==null?void 0:It.map((gn,Tn)=>ee.createElement(ee.Fragment,{key:Tn},gn.loaded==100?dn(gn):on(gn.loaded)))),qn=()=>{ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:Ce})},Pn={accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*",onBefore:gn=>{const kn=gn.name.toLowerCase();return kn&&kn.indexOf(".avi")==-1&&kn.indexOf(".flv")==-1&&kn.indexOf(".f4v")==-1&&kn.indexOf(".m4v")==-1&&kn.indexOf(".mov")==-1&&kn.indexOf(".mp4")==-1&&kn.indexOf(".rmvb")==-1&&kn.indexOf(".swf")==-1&&kn.indexOf(".webm")==-1&&kn.indexOf(".wmv")==-1?(fe.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),!0):gn.size>1024*1024*1024?(fe.ZP.info("\u89C6\u9891\u5927\u5C0F\u8D85\u8FC71G"),!0):It!=null&&It.find(Qn=>Qn.name===gn.name)?(fe.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:gn=>{Yt([{name:gn.filename,loaded:0}])},onComplete:gn=>{Yt([{name:gn.filename,loaded:gn.percent,video_id:gn.id}])},onError:()=>{Yt([])},onProgress:gn=>{Yt([{name:gn.filename,loaded:gn.percent}])},chunkSize:1024*1024*2,options:{user_id:(et=Qt==null?void 0:Qt.userInfo)==null?void 0:et.user_id}},Mn=It==null?void 0:It.length;return ee.createElement("div",{className:zr.listForm},ee.createElement("header",null,Je?"\u7F16\u8F91":"\u53D1\u5E03","\u9898\u89E3"),ee.createElement("section",{className:zr.scroll,id:"sss"},ee.createElement("div",{className:zr.formWrap}," ",ee.createElement(ht.default,{form:tt,scrollToFirstError:!0,layout:"vertical",onValuesChange:In,onFinish:Jt},ee.createElement(ht.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u540D\u79F0"},{max:60,message:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},ee.createElement(Ke.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26",suffix:`${((rt=dt.name)==null?void 0:rt.length)||0}/60`})),ee.createElement(ht.default.Item,{name:"content",label:"\u5185\u5BB9:"},ee.createElement(Xn.Z,{defaultValue:dt.content||"",watch:!0})))),ee.createElement("div",{className:zr.upload},Mn?Dn():Tt())),ee.createElement("div",{className:zr.btns},ee.createElement(_t.ZP,{onClick:qn,type:"primary",ghost:!0},"\u5173\u95ED"),ee.createElement(_t.ZP,{loading:Nt,disabled:St,onClick:()=>tt.submit(),type:"primary"},"\u53D1\u5E03\u9898\u89E3")))},lo={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"},Fo=te(61621),ri=Object.defineProperty,Qo=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,Uo=Object.prototype.propertyIsEnumerable,Si=(Ce,De,Re)=>De in Ce?ri(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,_i=(Ce,De)=>{for(var Re in De||(De={}))Jo.call(De,Re)&&Si(Ce,Re,De[Re]);if(Qo)for(var Re of Qo(De))Uo.call(De,Re)&&Si(Ce,Re,De[Re]);return Ce};const yi=Ce=>React.createElement("svg",_i({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:15,height:16},Ce),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 ta="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTUiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNNi4zODUuMjU3Yy42MTYtLjM0MyAxLjYxNi0uMzQyIDIuMjMgMGw1LjI3IDIuOTRDMTQuNTAxIDMuNTM4IDE1IDQuMzggMTUgNS4wNzF2NS44NTZjMCAuNjkyLS41MDEgMS41MzMtMS4xMTUgMS44NzZsLTUuMjcgMi45MzljLS42MTYuMzQzLTEuNjE2LjM0Mi0yLjIzIDBsLTUuMjctMi45NEMuNDk5IDEyLjQ2MiAwIDExLjYyMiAwIDEwLjkyOVY1LjA3MkMwIDQuMzguNTAxIDMuNTQgMS4xMTUgMy4xOTZabTEuNDIzIDMuODE3Yy0uMTY5LS4zNDEtLjQ0Ni0uMzQxLS42MTUgMEw2LjM4IDUuNzE3Yy0uMTY5LjM0MS0uNjE2LjY2NS0uOTk0LjcybC0xLjgyLjI2NGMtLjM3OC4wNTUtLjQ2NC4zMTctLjE5LjU4M2wxLjMxNyAxLjI3OGMuMjczLjI2Ni40NDQuNzkuMzggMS4xNjVsLS4zMSAxLjgwNmMtLjA2Ni4zNzYuMTU4LjUzOC40OTYuMzZsMS42MjgtLjg1M2MuMzM4LS4xNzcuODktLjE3NyAxLjIzIDBsMS42MjcuODUzYy4zMzcuMTc3LjU2MS4wMTUuNDk3LS4zNmwtLjMxLTEuODA2Yy0uMDY1LS4zNzUuMTA1LS44OTkuMzc5LTEuMTY1bDEuMzE2LTEuMjc4Yy4yNzQtLjI2Ni4xODgtLjUyOS0uMTktLjU4M2wtMS44MTktLjI2NGMtLjM3Ny0uMDU0LS44MjUtLjM3OC0uOTk0LS43MloiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48dXNlIGZpbGw9IiM4REM5RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgeGxpbms6aHJlZj0iI2EiLz48Y2lyY2xlIGN4PSItMS41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLTIuNSIgY3k9Ii00LjUiIHI9IjEyLjUiIGZpbGw9IiNFRUY3RkYiIGZpbGwtcnVsZT0ibm9uemVybyIgbWFzaz0idXJsKCNiKSIvPjwvZz48L3N2Zz4=",wa=Object.defineProperty,xa=Object.getOwnPropertySymbols,La=Object.prototype.hasOwnProperty,wi=Object.prototype.propertyIsEnumerable,na=(Ce,De,Re)=>De in Ce?wa(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,ra=(Ce,De)=>{for(var Re in De||(De={}))La.call(De,Re)&&na(Ce,Re,De[Re]);if(xa)for(var Re of xa(De))wi.call(De,Re)&&na(Ce,Re,De[Re]);return Ce};const Da=Ce=>React.createElement("svg",ra({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Ce),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 Ma="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJtOCAwIDEuODU3IDEuMDczaDIuMTQ2bDEuMDcxIDEuODU0TDE0LjkzMSA0djIuMTQ0TDE2IDhsLTEuMDY5IDEuODU3VjEybC0xLjg1OCAxLjA3Mi0xLjA3MSAxLjg1Nkg5Ljg1N0w4IDE2bC0xLjg1NS0xLjA3M0g0bC0xLjA3Mi0xLjg1NkwxLjA3MiAxMlY5Ljg1N0wwIDhsMS4wNzItMS44NTZWNGwxLjg1Ny0xLjA3MyAxLjA3Mi0xLjg1NGgyLjE0NUw4IDBabTIuOTEgNi4zODVINC43OTZWMTJoMS4yNDZ2LS40NTFoNC4wMjZ2LjQzNWgxLjI0N1Y5LjE5Nkg2LjA0M3YtLjUxNWg0Ljg2NlY2LjM4NVptLS44NCAzLjY4MXYuNjEzSDYuMDQydi0uNjEzaDQuMDI2Wk05LjcwNSA3LjI0di41ODhINi4wNDN2LS41ODhoMy42NjNaTTguNjE1IDRsLTEuNDguMTM3Yy4wNTUuMTMzLjEyLjI4NC4xOTIuNDUzbC4wNzYuMTc1SDR2MS40MjZoMS4xOTV2LS40ODNoNS42MXYuNDgzSDEyVjQuNzY1SDguODgzYy0uMDc4LS4yMy0uMTQ4LS40My0uMjEtLjYwMkw4LjYxNiA0WiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzhEQzlGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9Ii41IiBjeT0iLTMuNSIgcj0iMTYuNSIgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PGNpcmNsZSBjeD0iLS41IiBjeT0iLTQuNSIgcj0iMTIuNSIgZmlsbD0iI0VFRjdGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBtYXNrPSJ1cmwoI2IpIi8+PC9nPjwvc3ZnPg==",Aa=Object.defineProperty,Ni=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,ia=Object.prototype.propertyIsEnumerable,Zi=(Ce,De,Re)=>De in Ce?Aa(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,aa=(Ce,De)=>{for(var Re in De||(De={}))oa.call(De,Re)&&Zi(Ce,Re,De[Re]);if(Ni)for(var Re of Ni(De))ia.call(De,Re)&&Zi(Ce,Re,De[Re]);return Ce};const ds=Ce=>React.createElement("svg",aa({width:22,height:20,xmlns:"http://www.w3.org/2000/svg"},Ce),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 sa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbC1ydWxlPSJub256ZXJvIiBmaWxsPSJub25lIj48cGF0aCBkPSJNMy41NjYgMTkuMDhWOC4xMzRjMC0uNDQzLS4zMTgtLjgwMi0uNzEtLjgwMkgxLjM0Yy0uNzMgMC0xLjMyMi42Ny0xLjMyMiAxLjQ5NnY5LjU1OGMwIC44MjcuNTkzIDEuNDk2IDEuMzIyIDEuNDk2aDEuNTE1Yy4zOTIgMCAuNzEtLjM2LjcxLS44MDJaIiBmaWxsPSIjQTNEM0ZGIi8+PHBhdGggZD0iTTQuNTg1IDE5LjMwM1Y3LjljMC0uMjYzLjE4OC0uNDk1LjQ1OS0uNTU5Ljk1NS0uMjI5IDMuMTQ3LTEuMDQ5IDQuMDgtMy44NDguNTY3LTIuNDUxIDEuMTgyLTMuNjA3IDMuMDA4LTMuNDY5IDEuODI2LjEzOSAxLjk0OCAxLjgwNCAxLjk0OCAyLjMxMnYzLjkzcy0uMTQ4LjYwMi40NjguNjQ5Yy42MTcuMDQ2IDUuNDI2IDAgNS40MjYgMHMyLjYzOS0uMDQyIDEuOCAzLjAzMWMtLjczIDIuNjczLTIuMTczIDYuOTc0LTIuNTM3IDguMDVhMi4zMjQgMi4zMjQgMCAwIDEtLjMyNC42MjZjLS4zNTMuNDgzLTEuMDk0IDEuMjU4LTIuMjI4IDEuMjU4SDUuMjAxYy0uMzQxLjAwMi0uNjE2LS4yNTctLjYxNi0uNTc3WiIgZmlsbD0iI0ZGRiIvPjwvZz48L3N2Zz4=",Wi={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"},la=te(95237),Bi=te(43604),ii={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"},Oa=(Ce,De,Re)=>new Promise((Je,et)=>{var rt=gt=>{try{dt(Re.next(gt))}catch(St){et(St)}},tt=gt=>{try{dt(Re.throw(gt))}catch(St){et(St)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(rt,tt);dt((Re=Re.apply(Ce,De)).next())});const ca=({id:Ce,cb:De})=>{const[Re,Je]=(0,ee.useState)("");return ee.createElement("aside",{className:"mt10"},ee.createElement(Xn.Z,{defaultValue:Re,id:"writeForumsReviewId",onChange:et=>{Je(et)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ee.createElement(la.Z,null,ee.createElement(Bi.Z,{flex:"1"}),ee.createElement(Bi.Z,null,ee.createElement(_t.ZP,{type:"primary",size:"middle",onClick:()=>Oa(void 0,null,function*(){Re===""?fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9"):De(Ce,Re)})},"\u53D1\u9001"))))},Ia=({data:Ce})=>{var De;return ee.createElement("div",{className:ii.thirdlyLevelDiscuss},ee.createElement("span",{className:"c-grey-333"},ee.createElement("span",{className:"font 14 c-light-primary"},(De=Ce==null?void 0:Ce.author)==null?void 0:De.name),"@",ee.createElement("span",{className:"font 14 c-light-primary"},Ce==null?void 0:Ce.parent_name),":"),ee.createElement(Oe.Z,{value:Ce==null?void 0:Ce.content}))},Ra=({data:Ce,onReplyDiscuss:De,thirdlyReply:Re,setThirdlyReply:Je})=>{var et,rt,tt,dt;const gt=(0,Vn.eY)();return console.log(gt,"user"),ee.createElement("div",{className:ii.list},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((et=Ce==null?void 0:Ce.author)==null?void 0:et.image_url)}),ee.createElement("div",{className:ii.wrap},ee.createElement("div",{className:"font14",style:{marginBottom:6}},ee.createElement("span",{className:"c-grey-333"},(rt=Ce==null?void 0:Ce.author)==null?void 0:rt.name),(gt==null?void 0:gt.login)!==((tt=Ce==null?void 0:Ce.author)==null?void 0:tt.login)&&ee.createElement("span",{onClick:()=>Je(Ce==null?void 0:Ce.id),className:"c-grey-999 current",style:{float:"right"}},ee.createElement("i",{className:"iconfont icon-huifu3 mr3 font12"}),ee.createElement("span",null,"\u56DE\u590D"))),ee.createElement(Oe.Z,{value:Ce==null?void 0:Ce.content}),(dt=Ce==null?void 0:Ce.children)==null?void 0:dt.map(St=>ee.createElement(Ia,{key:St.id,data:St})),Re===(Ce==null?void 0:Ce.id)&&ee.createElement("div",null,ee.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:De}),ee.createElement("div",{style:{textAlign:"end",paddingTop:20},onClick:()=>Je(null),className:"c-light-primary current"},ee.createElement("i",{style:{transform:"scale(0.7)",display:"inline-block"},className:"iconfont icon-shouqi font12"}),"\u6536\u8D77\u56DE\u590D")),ee.createElement("div",{className:ii.line})))};var Ki=({data:Ce,onReplyDiscuss:De,secondReply:Re,setSecondReply:Je,thirdlyReply:et,setThirdlyReply:rt,onPlusDiscuss:tt})=>{var dt,gt,St,Wt;const[Nt,Vt]=(0,ee.useState)(!1);return console.log(Ce,"data"),ee.createElement("div",{className:ii.discussItem},ee.createElement("div",{className:ii.list},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+((dt=Ce==null?void 0:Ce.author)==null?void 0:dt.image_url)}),ee.createElement("div",{className:ii.wrap},ee.createElement("div",{className:"font14",style:{marginBottom:6}},ee.createElement("span",{className:"c-grey-333 mr30"},(gt=Ce==null?void 0:Ce.author)==null?void 0:gt.name),ee.createElement("span",{className:"c-grey-999"},Ce==null?void 0:Ce.time)),ee.createElement(Oe.Z,{value:Ce==null?void 0:Ce.content}),ee.createElement("div",{className:ii.btns},ee.createElement("div",{onClick:()=>tt(Ce==null?void 0:Ce.id),className:Ce!=null&&Ce.user_praise?"c-light-primary":"c-grey-999"},ee.createElement("i",{className:"iconfont icon-xiaodianzan2 mr3"}),ee.createElement("span",null,Ce==null?void 0:Ce.praise_count)),ee.createElement("div",{onClick:()=>{var It;((It=Ce==null?void 0:Ce.children)==null?void 0:It.length)!==0&&(Je(null),Vt(!Nt))},style:{color:Nt?"#0152d9":"#999999"}},ee.createElement("i",{className:"iconfont icon-xiaopinglun2 mr3"}),ee.createElement("span",null,Nt?"\u6536\u8D77\u8BC4\u8BBA":(St=Ce==null?void 0:Ce.children)==null?void 0:St.length)),ee.createElement("div",{onClick:()=>{Vt(!1),Je(Re===(Ce==null?void 0:Ce.id)?null:Ce==null?void 0:Ce.id)},style:{color:Re===(Ce==null?void 0:Ce.id)?"#0152d9":"#999999"}},ee.createElement("i",{className:"iconfont icon-huifu3 mr3"}),ee.createElement("span",null,Re===(Ce==null?void 0:Ce.id)?"\u6536\u8D77\u56DE\u590D":"\u56DE\u590D"))),Re===(Ce==null?void 0:Ce.id)&&ee.createElement(ca,{id:Ce==null?void 0:Ce.id,cb:(It,Yt)=>{De(It,Yt),Vt(!0)}}),Nt&&ee.createElement("div",{className:ii.secondLevelDiscuss},(Wt=Ce==null?void 0:Ce.children)==null?void 0:Wt.map(It=>ee.createElement(Ra,{thirdlyReply:et,setThirdlyReply:rt,key:It.id,data:It,onReplyDiscuss:De}))))))},ki=(Ce,De,Re)=>new Promise((Je,et)=>{var rt=gt=>{try{dt(Re.next(gt))}catch(St){et(St)}},tt=gt=>{try{dt(Re.throw(gt))}catch(St){et(St)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(rt,tt);dt((Re=Re.apply(Ce,De)).next())}),hi=({identifier:Ce,active:De,onOk:Re})=>{const[Je,et]=(0,ee.useState)(""),[rt,tt]=(0,ee.useState)(1),[dt,gt]=(0,ee.useState)([]),[St,Wt]=(0,ee.useState)(0),[Nt,Vt]=(0,ee.useState)(null),[It,Yt]=(0,ee.useState)(null);(0,ee.useEffect)(()=>{Qt(1),tt(1)},[De]);const Qt=Jt=>ki(void 0,null,function*(){const hn=yield Et({container_type:"QuestionSolutionArticle",container_identifier:De,limit:5,page:Jt});hn!=null&&hn.comments&&(gt((hn==null?void 0:hn.comments)||[]),tt(Jt),Wt(hn==null?void 0:hn.disscuss_count))}),_n=()=>ki(void 0,null,function*(){if(Je===""){fe.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");return}const Jt=yield Fn({comments:{content:Je},container_type:"QuestionSolutionArticle",container_identifier:De});Jt!=null&&Jt.discuss&&(et(""),Qt(rt),Re())}),ln=(Jt,hn,Tt)=>ki(void 0,null,function*(){const on=yield pn({container_type:"QuestionSolutionArticle",container_identifier:De,comments:{content:hn,parent_id:Jt}});Vt(null),Yt(null),Qt(rt)}),vn=Jt=>ki(void 0,null,function*(){const hn=yield Sn(Jt);Qt(rt)}),In=Jt=>{tt(Jt),Qt(Jt)};return ee.createElement("div",{className:Wi.discuss},ee.createElement("aside",{className:Wi.reply,style:{borderWidth:St?1:0}},ee.createElement(Xn.Z,{defaultValue:Je,id:"writeForumsReviewId",onChange:Jt=>{et(Jt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),ee.createElement(la.Z,null,ee.createElement(Bi.Z,{flex:"1"}),ee.createElement(Bi.Z,null,ee.createElement(_t.ZP,{type:"primary",size:"middle",onClick:()=>_n()},"\u53D1\u9001")))),dt==null?void 0:dt.map(Jt=>ee.createElement(Ki,{secondReply:Nt,setSecondReply:Vt,thirdlyReply:It,setThirdlyReply:Yt,key:Jt.id,data:Jt,onReplyDiscuss:ln,onPlusDiscuss:vn})),ee.createElement(yt.Z,{className:Wi.pagination,showTotal:Jt=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},Jt),"\u6761\u6570\u636E"),current:rt,onChange:In,total:St,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,pageSize:5}))},Vi=te(71628),Yi=Object.defineProperty,Fi=Object.getOwnPropertySymbols,da=Object.prototype.hasOwnProperty,ua=Object.prototype.propertyIsEnumerable,Na=(Ce,De,Re)=>De in Ce?Yi(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,Ba=(Ce,De)=>{for(var Re in De||(De={}))da.call(De,Re)&&Na(Ce,Re,De[Re]);if(Fi)for(var Re of Fi(De))ua.call(De,Re)&&Na(Ce,Re,De[Re]);return Ce},Xi=(Ce,De,Re)=>new Promise((Je,et)=>{var rt=gt=>{try{dt(Re.next(gt))}catch(St){et(St)}},tt=gt=>{try{dt(Re.throw(gt))}catch(St){et(St)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(rt,tt);dt((Re=Re.apply(Ce,De)).next())}),ka=({active:Ce,identifier:De,onAssist:Re,onEdit:Je,onArticlesSkip:et,onClose:rt,onOk:tt,onDelete:dt,detailsIndex:gt,btnShowStatus:St})=>{var Wt,Nt,Vt,It,Yt,Qt,_n,ln,vn,In;const[Jt,hn]=(0,ee.useState)(!0),[Tt,on]=(0,ee.useState)({});(0,ee.useEffect)(()=>{Ce&&dn()},[Ce,gt]);const dn=(Mn=!0)=>Xi(void 0,null,function*(){Mn&&hn(!0);const gn=yield(0,me.wO)(De,{active:Ce});(gn==null?void 0:gn.status)===0&&on((gn==null?void 0:gn.data)||{}),hn(!1)}),Dn=Mn=>Xi(void 0,null,function*(){const gn=yield(0,me.qe)(De,Ba({active:Ce},Mn));(gn==null?void 0:gn.status)===0&&(dn(!1),tt())}),qn=Mn=>Xi(void 0,null,function*(){(yield(0,me.Rg)(De,{active:Mn==null?void 0:Mn.id})).status===0&&(dn(!1),tt())}),en=Mn=>{ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,className:"custom-modal-divider",content:"\u786E\u8BA4\u8981\u5220\u9664\u8BE5\u9898\u89E3\u5417?",onOk:()=>dt(Mn)})},Pn=()=>{dn(!1),tt()};return ee.createElement("div",{className:lo.listDetails},ee.createElement(Fo.Z,{className:"pt20 pl20 pr20",loading:Jt,active:!0,paragraph:{rows:5}},ee.createElement("div",{className:lo.head},ee.createElement("div",{className:lo.name},ee.createElement("div",{title:Tt==null?void 0:Tt.name,className:lo.title},Tt==null?void 0:Tt.name),(Tt==null?void 0:Tt.is_authority)&&ee.createElement("div",{className:lo.b},"\u5B98\u65B9"),(Tt==null?void 0:Tt.is_excellent)&&ee.createElement("div",{className:lo.a},"\u7CBE\u9009")),ee.createElement("div",{className:lo.tag},ee.createElement("img",{src:he.Z.IMG_SERVER+"/images/"+(Tt==null?void 0:Tt.image_url)}),ee.createElement("div",{className:"c-grey-333 ml5 mr20 font14"},Tt==null?void 0:Tt.username),ee.createElement("div",{style:{display:"inline-block",marginBottom:-2},className:"c-grey-999 mr20 font12"},"\u53D1\u5E03\u4E8E",Gt()(Tt==null?void 0:Tt.created_at).format("YYYY-MM-DD")),ee.createElement("span",null,ee.createElement("img",{src:Ln}),ee.createElement("span",null,Tt==null?void 0:Tt.praises_count)),ee.createElement("span",null,ee.createElement("img",{src:Fr}),ee.createElement("span",null,Tt==null?void 0:Tt.discusses_count)),ee.createElement("span",null,ee.createElement("img",{src:_o}),ee.createElement("span",null,Tt==null?void 0:Tt.viewed_count)),ee.createElement("div",{className:lo.btn},((0,Vn.Ny)()||(Tt==null?void 0:Tt.is_self))&&ee.createElement(ee.Fragment,null,ee.createElement(_t.ZP,{onClick:()=>en(Tt),type:"primary",ghost:!0},"\u5220\u9664"),ee.createElement(_t.ZP,{onClick:()=>Je(Tt),type:"primary",ghost:!0},"\u7F16\u8F91")),(0,Vn.Ny)()&&ee.createElement(_t.ZP,{onClick:()=>Dn({is_authority:!(Tt!=null&&Tt.is_authority)}),type:"primary"},ee.createElement("img",{src:Ma}),Tt!=null&&Tt.is_authority?"\u53D6\u6D88":"\u8BBE\u4E3A","\u5B98\u65B9"),(0,Vn.Ny)()&&ee.createElement(_t.ZP,{onClick:()=>Dn({is_excellent:!(Tt!=null&&Tt.is_excellent)}),type:"primary"},ee.createElement("img",{src:ta}),Tt!=null&&Tt.is_excellent?"\u53D6\u6D88":"\u8BBE\u4E3A","\u7CBE\u9009")))),ee.createElement("div",{className:lo.scroll},((Nt=(Wt=Tt==null?void 0:Tt.videos)==null?void 0:Wt[0])==null?void 0:Nt.id)&&ee.createElement("div",{className:lo.video},ee.createElement(de.Z,{tip:"\u6B63\u5728\u8F6C\u7801\uFF0C\u8BF7\u7A0D\u7B49...",spinning:!((It=(Vt=Tt==null?void 0:Tt.videos)==null?void 0:Vt[0])!=null&&It.transcoded)},ee.createElement(Vi.Z,{poster:(Qt=(Yt=Tt==null?void 0:Tt.videos)==null?void 0:Yt[0])==null?void 0:Qt.cover_url,src:((ln=(_n=Tt==null?void 0:Tt.videos)==null?void 0:_n[0])==null?void 0:ln.play_url)||"",videoId:(In=(vn=Tt==null?void 0:Tt.videos)==null?void 0:vn[0])==null?void 0:In.id,logWatchHistory:()=>{}}))),ee.createElement(Oe.Z,{className:lo.html,value:(Tt==null?void 0:Tt.content)||""}),ee.createElement("div",{onClick:()=>qn(Tt),className:lo.g},ee.createElement("img",{className:"mr10",src:(Tt!=null&&Tt.user_liker,sa)}),ee.createElement("span",null,Tt==null?void 0:Tt.praises_count)),ee.createElement(hi,{onOk:Pn,active:Ce,identifier:De})),ee.createElement("div",{className:lo.btns},ee.createElement(_t.ZP,{onClick:()=>rt(),type:"primary",ghost:!0},"\u5173\u95ED"),St[0]&&ee.createElement(_t.ZP,{onClick:Mn=>et(Mn,"prev"),style:{marginLeft:20},type:"primary"},"\u4E0A\u4E00\u9898\u89E3"),St[1]&&ee.createElement(_t.ZP,{onClick:Mn=>et(Mn,"next"),style:{marginLeft:20},type:"primary"},"\u4E0B\u4E00\u9898\u89E3"))))},zi=Object.defineProperty,ji=Object.getOwnPropertySymbols,Hi=Object.prototype.hasOwnProperty,ga=Object.prototype.propertyIsEnumerable,fa=(Ce,De,Re)=>De in Ce?zi(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,Qi=(Ce,De)=>{for(var Re in De||(De={}))Hi.call(De,Re)&&fa(Ce,Re,De[Re]);if(ji)for(var Re of ji(De))ga.call(De,Re)&&fa(Ce,Re,De[Re]);return Ce};const Fa=Ce=>React.createElement("svg",Qi({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:16,height:16},Ce),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 ha="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNMTMuNzI3IDBDMTQuOTgzIDAgMTYgLjg5NSAxNiAydjEyYzAgMS4xMDUtMS4wMTcgMi0yLjI3MyAySDIuMjczQzEuMDE3IDE2IDAgMTUuMTA1IDAgMTRWMkMwIC44OTUgMS4wMTcgMCAyLjI3MyAwaDExLjQ1NFpNNy40NjQgMTFIMi45NTVjLS4yNjYgMC0uNTEzLjE5LS42NDYuNXMtLjEzMy42OSAwIDFjLjEzMy4zMS4zOC41LjY0Ni41aDQuNTA5Yy40MTEgMCAuNzQ1LS40NDguNzQ1LTFzLS4zMzQtMS0uNzQ1LTFabTQtMy41SDIuOTU1Yy0uNDExIDAtLjc0NS40NDgtLjc0NSAxcy4zMzQgMSAuNzQ1IDFoOC41MDljLjQxMiAwIC43NDYtLjQ0OC43NDYtMXMtLjMzNC0xLS43NDYtMVpNMy43MSAyLjc1YTEuNSAxLjUgMCAxIDAgMCAzIDEuNSAxLjUgMCAwIDAgMC0zWiIvPjwvZGVmcz48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxtYXNrIGlkPSJiIiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjx1c2UgZmlsbD0iIzdEQzFGRiIgZmlsbC1ydWxlPSJub256ZXJvIiB4bGluazpocmVmPSIjYSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9Ii41IiByPSIxNi41IiBmaWxsPSIjQTNEM0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiLz48ZWxsaXBzZSBjeD0iMS41IiBjeT0iLS41IiBmaWxsPSIjQzFFMkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48ZWxsaXBzZSBjeD0iLTIuNSIgY3k9Ii00IiBmaWxsPSIjRUVGN0ZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iIG1hc2s9InVybCgjYikiIHJ4PSIxMi41IiByeT0iMTIiLz48L2c+PC9zdmc+",ma=te(59477),Ji=te(89489),za=Object.defineProperty,pa=Object.defineProperties,ja=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,Ha=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,Oi=(Ce,De,Re)=>De in Ce?za(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,qo=(Ce,De)=>{for(var Re in De||(De={}))Ha.call(De,Re)&&Oi(Ce,Re,De[Re]);if(va)for(var Re of va(De))Ai.call(De,Re)&&Oi(Ce,Re,De[Re]);return Ce},Ga=(Ce,De)=>pa(Ce,ja(De)),Ii=(Ce,De,Re)=>new Promise((Je,et)=>{var rt=gt=>{try{dt(Re.next(gt))}catch(St){et(St)}},tt=gt=>{try{dt(Re.throw(gt))}catch(St){et(St)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(rt,tt);dt((Re=Re.apply(Ce,De)).next())}),hs=({identifier:Ce,tabStatus:De,setFilterListTotal:Re,setListStatus:Je})=>{const et={page:1,limit:10,total:0,search:"",save_search:"",sort_by:"updated_at",sort_direction:null};let[rt,tt]=(0,ee.useState)(qo({},et));const[dt,gt]=(0,ee.useState)(!1),[St,Wt]=(0,ee.useState)(0),[Nt,Vt]=(0,ee.useState)(1),[It,Yt]=(0,ee.useState)(null),[Qt,_n]=(0,ee.useState)([]),[ln,vn]=(0,ee.useState)([!0,!0]),[In,Jt]=(0,ee.useState)(0),hn=(0,ee.useRef)(null);(0,ee.useEffect)(()=>{Tn()},[De]),(0,ee.useEffect)(()=>{Tt()},[It]),(0,ee.useEffect)(()=>{dn(qo({},et)),Tn()},[Ce]),(0,ee.useEffect)(()=>(window.addEventListener("resize",on),Je(In),()=>{window.removeEventListener("resize",on)}),[In]);const Tt=()=>Ii(void 0,null,function*(){if(!It){vn([!0,!0]);return}const zn=[!0,!0],En=Qt==null?void 0:Qt.findIndex(Bn=>Bn.id===It);En===0&&rt.page===1&&(zn[0]=!1),(rt.page-1)*rt.limit+(En+1)===rt.total&&(zn[1]=!1),vn(zn)}),on=()=>{var zn;if(In){const En=window.innerWidth-((zn=hn.current)==null?void 0:zn.clientWidth);Wt(En)}},dn=zn=>Ii(void 0,null,function*(){var En,Bn,$n;gt(!0);const An=yield(0,me.WH)(Ce,zn);return(An==null?void 0:An.status)===0&&(_n(((En=An==null?void 0:An.data)==null?void 0:En.articles)||[]),tt(Ga(qo({},zn),{total:(Bn=An==null?void 0:An.data)==null?void 0:Bn.articles_count})),Re(($n=An==null?void 0:An.data)==null?void 0:$n.articles_count)),gt(!1),An}),Dn=()=>{(rt==null?void 0:rt.sort_direction)===null?rt.sort_direction="asc":(rt==null?void 0:rt.sort_direction)==="asc"?rt.sort_direction="desc":(rt==null?void 0:rt.sort_direction)==="desc"&&(rt.sort_direction=null),rt.page=1,Tn(),tt(qo({},rt)),dn(rt)},qn=()=>{rt.page=1,rt.search=rt==null?void 0:rt.save_search,Tn(),tt(qo({},rt)),dn(rt)},en=()=>{var zn;const En=document.getElementsByClassName("btn-resize");En[0].style.visibility="hidden";const Bn=window.innerWidth-((zn=hn.current)==null?void 0:zn.clientWidth);Wt(Bn)},Pn=()=>{en(),Jt(1)},Mn=zn=>{en(),Yt(zn==null?void 0:zn.id),Jt(3)},gn=zn=>{en(),Yt(zn==null?void 0:zn.id),Jt(2)},Tn=()=>{const zn=document.getElementsByClassName("btn-resize");zn[0].style.visibility="visible",Wt(0),Jt(0),Yt(null)},kn=zn=>{Jt(3),Yt(zn),rt.page=1,tt(qo({},rt)),dn(rt)},Qn=zn=>{Jt(3),Yt(zn),tt(qo({},rt)),dn(rt)},Gr=zn=>{tt(qo({},rt)),dn(rt)},tr=zn=>Ii(void 0,null,function*(){(yield(0,me.Rg)(Ce,{active:zn==null?void 0:zn.id})).status===0&&(dn(rt),Vt(Nt+1))}),Vr=zn=>Ii(void 0,null,function*(){(yield(0,me.rL)(Ce,{active:zn==null?void 0:zn.id})).status===0&&(dn(rt),Vt(Nt+1))}),_r=zn=>Ii(void 0,null,function*(){(yield(0,me.de)(Ce,{active:zn==null?void 0:zn.id})).status===0&&(Tn(),dn(rt))}),Ar=zn=>{rt.page=zn,tt(qo({},rt)),dn(rt)},Tr=(zn,En)=>Ii(void 0,null,function*(){var Bn,$n,An,br;const Rn=Qt==null?void 0:Qt.findIndex(jn=>jn.id===It);if(console.log(Rn,En,22),En==="prev"){if(Rn===void 0){fe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Rn===0){if(rt.page===1){fe.ZP.warning("\u4E0A\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(rt.page!==1){rt.page=rt.page-1,tt(qo({},rt));const jn=yield dn(rt);if((jn==null?void 0:jn.status)===0){const hr=(An=jn==null?void 0:jn.data)==null?void 0:An.articles[(($n=(Bn=jn==null?void 0:jn.data)==null?void 0:Bn.articles)==null?void 0:$n.length)-1];Yt(hr==null?void 0:hr.id),console.log(zn.target,555)}}}else{const jn=Qt[Rn-1];Yt(jn==null?void 0:jn.id)}}if(En==="next"){if(Rn===void 0){fe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if((rt.page-1)*rt.limit+(Rn+1)===rt.total){fe.ZP.warning("\u4E0B\u4E00\u9898\u89E3\u4E0D\u5B58\u5728");return}if(Rn+1===rt.limit){rt.page=rt.page+1,tt(qo({},rt));const jn=yield dn(rt);if((jn==null?void 0:jn.status)===0){const hr=(br=jn==null?void 0:jn.data)==null?void 0:br.articles[0];Yt(hr==null?void 0:hr.id)}}else{const jn=Qt[Rn+1];Yt(jn==null?void 0:jn.id)}}});return ee.createElement("div",{className:ut.wrap,ref:hn},ee.createElement("div",{className:ut.head},ee.createElement("div",{className:ut.sort,onClick:Dn},ee.createElement("span",null,"\u6700\u65B0"),ee.createElement("aside",null,ee.createElement(ma.Z,{style:{color:(rt==null?void 0:rt.sort_direction)==="asc"?"#0152d9":"#bfbfbf"}}),ee.createElement(Ji.Z,{style:{color:(rt==null?void 0:rt.sort_direction)==="desc"?"#0152d9":"#bfbfbf"}}))),ee.createElement(Ke.default.Search,{value:rt.save_search,className:ut["oj-width-input"],placeholder:"\u641C\u7D22\u9898\u89E3",onChange:zn=>{rt.save_search=zn.target.value,tt(qo({},rt))},onSearch:qn}),ee.createElement("div",{onClick:Pn,className:ut.btn},ee.createElement("img",{src:ha}),"\u5199\u9898\u89E3")),ee.createElement("div",{className:ut.listWarp},ee.createElement(de.Z,{spinning:dt,className:"mt20"},Qt==null?void 0:Qt.map((zn,En)=>{let Bn=!0;return En+1===Qt.length&&En!==0&&(Bn=!1),ee.createElement(Oo,{active:It,key:zn.id,data:zn,showLine:Bn,onClick:Mn,onAssist:tr,onHide:Vr})}),(Qt==null?void 0:Qt.length)===0&&ee.createElement(Ge.Z,{customText:"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"}))),ee.createElement(yt.Z,{className:ut.pagination,showTotal:zn=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},zn),"\u6761\u6570\u636E"),total:rt.total,showSizeChanger:!1,current:rt==null?void 0:rt.page,onChange:Ar,hideOnSinglePage:!0,showQuickJumper:!0}),In>0&&ee.createElement("div",{className:ut.fixedRight,style:{width:St}},In===1&&ee.createElement(io,{identifier:Ce,onClose:Tn,onOk:kn}),In===2&&ee.createElement(io,{active:It,identifier:Ce,onClose:Tn,onOk:Qn}),In===3&&ee.createElement(ka,{btnShowStatus:ln,onArticlesSkip:Tr,detailsIndex:Nt,active:It,identifier:Ce,onClose:Tn,onOk:Gr,onEdit:gn,onAssist:tr,onDelete:_r})))},xi={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"},ms=Object.defineProperty,Ua=Object.defineProperties,$a=Object.getOwnPropertyDescriptors,Za=Object.getOwnPropertySymbols,Wa=Object.prototype.hasOwnProperty,ps=Object.prototype.propertyIsEnumerable,Sa=(Ce,De,Re)=>De in Ce?ms(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,Pi=(Ce,De)=>{for(var Re in De||(De={}))Wa.call(De,Re)&&Sa(Ce,Re,De[Re]);if(Za)for(var Re of Za(De))ps.call(De,Re)&&Sa(Ce,Re,De[Re]);return Ce},qi=(Ce,De)=>Ua(Ce,$a(De)),Gi=(Ce,De,Re)=>new Promise((Je,et)=>{var rt=gt=>{try{dt(Re.next(gt))}catch(St){et(St)}},tt=gt=>{try{dt(Re.throw(gt))}catch(St){et(St)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(rt,tt);dt((Re=Re.apply(Ce,De)).next())}),Ss=({visible:Ce,onVisible:De,value:Re,onChange:Je,setIndex:et})=>{var rt;const tt={page:1,per_page:30,total:0,tag_discipline_id:[],search:"",save_search:"",difficulty:null};let[dt,gt]=(0,ee.useState)(tt);const[St,Wt]=(0,ee.useState)([]),[Nt,Vt]=(0,ee.useState)([]),[It,Yt]=(0,ee.useState)(!1),Qt=(0,ee.useRef)([]),_n=(0,ee.useRef)(null),ln=(0,ye.useParams)();(0,ee.useEffect)(()=>(ln!=null&&ln.id&&(_n.current=setInterval(()=>{vn(30)},3e4)),()=>{clearInterval(_n.current)}),[]);const vn=en=>Gi(void 0,null,function*(){const Pn=yield(0,me.uc)(ln==null?void 0:ln.id,{practice_time:en})});(0,ee.useEffect)(()=>{dn(dt),Tt()},[]),(0,ee.useEffect)(()=>(window.addEventListener("click",Jt),()=>{window.removeEventListener("click",Jt)}),[ln==null?void 0:ln.save_identifier,Ce]),(0,ee.useEffect)(()=>{const en=Qt.current.findIndex(kn=>kn.identifier===(ln==null?void 0:ln.save_identifier)),Pn=Qt.current[en-1],Mn=Qt.current[en+1],gn=document.getElementById("oj-prev"),Tn=document.getElementById("oj-next");Pn?gn.style.display="block":gn.style.display="none",Mn?Tn.style.display="block":Tn.style.display="none"},[ln==null?void 0:ln.save_identifier,Qt.current]);const In=(en,Pn)=>{if(en.id===Pn)return en;for(let Mn=0,gn=en;gn=gn.parentNode;Mn++){if(gn.id===Pn)return gn;if(gn==document.documentElement)return!1}},Jt=en=>Gi(void 0,null,function*(){!In(en.target,"oj-drawer")&&Ce&&De(!1);const Pn=Qt.current.findIndex(Tn=>Tn.identifier===(ln==null?void 0:ln.save_identifier)),Mn=Qt.current[Pn-1],gn=Qt.current[Pn+1];if(en.target.id==="oj-prev"){if(!Mn||Pn===-1){fe.ZP.warning("\u4E0A\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Dn(Mn==null?void 0:Mn.identifier),et("0"),setTimeout(()=>{en.target.style.pointerEvents="auto",en.target.style.cursor="pointer"},400)}if(en.target.id==="oj-next"||en.target.id==="oj-modal-next"){if(!gn||Pn===-1){fe.ZP.warning("\u4E0B\u4E00\u9898\u4E0D\u5B58\u5728");return}en.target.style.pointerEvents="none",en.target.style.cursor="not-allowed",yield Dn(gn==null?void 0:gn.identifier),et("0"),setTimeout(()=>{en.target.style.pointerEvents="auto",en.target.style.cursor="pointer"},400)}});(0,ee.useEffect)(()=>{Je(ln==null?void 0:ln.save_identifier);const en=Nt.findIndex(Pn=>Pn.some(Mn=>Mn.identifier===(ln==null?void 0:ln.save_identifier)));gt(en===-1?qi(Pi({},dt),{page:1}):qi(Pi({},dt),{page:en+1}))},[ln==null?void 0:ln.save_identifier,Nt]);const hn=en=>{dt.page=1,dt.tag_discipline_id=en,gt(Pi({},dt)),dn(dt)},Tt=()=>Gi(void 0,null,function*(){const en=yield(0,un.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}});Wt(en.tag_disciplines||[])}),on=en=>{dt.page=1,dt.difficulty=typeof en=="number"?en:null,gt(Pi({},dt)),dn(dt)},dn=en=>Gi(void 0,null,function*(){var Pn,Mn;Yt(!0);const gn=yield(0,me.KC)(en);if(gn!=null&&gn.practices_list){for(var Tn=(Pn=gn==null?void 0:gn.practices_list)==null?void 0:Pn.length,kn=[],Qn=0;Qn<Tn;Qn+=dt==null?void 0:dt.per_page)kn.push((Mn=gn==null?void 0:gn.practices_list)==null?void 0:Mn.slice(Qn,Qn+(dt==null?void 0:dt.per_page)));gt(qi(Pi({},dt),{total:gn==null?void 0:gn.practices_count})),Qt.current=(gn==null?void 0:gn.practices_list)||[],Vt(kn)}Yt(!1)}),Dn=(en,Pn)=>Gi(void 0,null,function*(){const Mn=yield(0,un.ZP)(`/api/practices/${en}/start`,{method:"get"});(Mn==null?void 0:Mn.status)===0&&ye.history.push(`/problems/${Mn==null?void 0:Mn.identifier}/oj/${en}`)}),qn=en=>{dt.page=en,gt(Pi({},dt))};return ee.createElement("div",{className:xi.wrap,id:"oj-drawer",style:{left:Ce?0:-700}},ee.createElement("div",{className:xi.head},ee.createElement("div",{className:xi.title},"\u9898\u76EE\u5217\u8868"),ee.createElement(Ke.default.Search,{value:dt==null?void 0:dt.save_search,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",style:{width:180,marginLeft:"auto",marginRight:10},onChange:en=>{dt.save_search=en.target.value,gt(Pi({},dt))},onSearch:()=>{dt.page=1,dt.search=dt.save_search,gt(Pi({},dt)),dn(dt)}}),ee.createElement(le.default,{value:dt==null?void 0:dt.tag_discipline_id,style:{width:210},mode:"multiple",placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,showArrow:!0,getPopupContainer:en=>en.parentNode,maxTagTextLength:2,maxTagCount:2,onChange:hn},St.map(en=>ee.createElement(le.default.Option,{key:en.id,value:en.id},en.name))),ee.createElement(le.default,{style:{width:70,marginLeft:10},allowClear:!0,placeholder:"\u96BE\u5EA6",getPopupContainer:en=>en.parentNode,value:dt==null?void 0:dt.difficulty,onChange:on},ee.createElement(le.default.Option,{value:1},"\u7B80\u5355"),ee.createElement(le.default.Option,{value:2},"\u9002\u4E2D"),ee.createElement(le.default.Option,{value:3},"\u56F0\u96BE"))),ee.createElement("div",{className:xi.content},ee.createElement(de.Z,{spinning:It},(rt=Nt==null?void 0:Nt[dt.page-1])==null?void 0:rt.map(en=>ee.createElement("div",{key:en.identifier,className:xi.list,onClick:Pn=>Dn(en.identifier,Pn)},ee.createElement("i",{style:{visibility:Re===en.identifier?"visible":"hidden"},className:"iconfont icon-wancheng1 c-green-29b"}),ee.createElement("span",{style:{fontWeight:Re===en.identifier?"bold":400,color:Re===en.identifier?"#ffffff":"#bac4cd"},title:en==null?void 0:en.name},en.name),(en==null?void 0:en.difficulty)===1&&ee.createElement("b",{style:{color:"#2FA34F"}},"\u7B80\u5355"),(en==null?void 0:en.difficulty)===2&&ee.createElement("b",{style:{color:"#0152d9"}},"\u9002\u4E2D"),(en==null?void 0:en.difficulty)===3&&ee.createElement("b",{style:{color:"#FA6400"}},"\u56F0\u96BE"))))),ee.createElement("div",{className:xi.footer},ee.createElement(yt.Z,{showTotal:en=>ee.createElement("span",{style:{color:"#656F87"}},"\u5171",ee.createElement("span",{className:"c-light-primary"},en),"\u6761\u6570\u636E"),total:dt.total,pageSize:dt==null?void 0:dt.per_page,current:dt==null?void 0:dt.page,showSizeChanger:!1,onChange:qn,showQuickJumper:!0,hideOnSinglePage:!0})))},Ka=({hack:Ce,onTriggerPraise:De,topicId:Re,page:Je,onPageChange:et,user:rt,submitRecords:tt,submitting:dt,submitResult:gt})=>{const[St]=(0,ye.useSearchParams)(),Wt=(0,ye.useLocation)(),[Nt,Vt]=(0,ee.useState)(St.get("tab")||"0"),[It,Yt]=(0,ee.useState)(0),[Qt,_n]=(0,ee.useState)(0),[ln,vn]=(0,ee.useState)(0),[In,Jt]=(0,ee.useState)(),[hn,Tt]=(0,ee.useState)(!1);function on(Dn){const qn=Dn.target.id;if(Nt==="3"&&qn!==Nt&&(Qt===1||Qt===2)){ie.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u6CE8\u610F",icon:null,className:"custom-modal-divider",content:"\u60A8\u6B63\u5728\u7F16\u5199\u9898\u89E3\uFF0C\u70B9\u51FB\u5173\u95ED\u540E\uFF0C\u60A8\u7684\u9898\u89E3\u5185\u5BB9\u5C06\u4E0D\u4F1A\u8FDB\u884C\u4FDD\u5B58\u3002",onOk:()=>{Vt(qn)}});return}Vt(qn)}(0,ee.useEffect)(()=>ze.Z.subscribe("to-commit-info",()=>{Vt("1")}),[]);function dn(){Vt("2")}return ee.createElement("div",{className:Qe["left-panel"]},ee.createElement("ul",{className:`${Qe["s-navs"]} ${Qe["bg-white"]} ${Qe.b1}`},ee.createElement("li",{className:"mr40 current"},ee.createElement("img",{onClick:()=>Tt(!0),src:fn})),ee.createElement("li",{className:Qe["oj-mr"]},ee.createElement("a",{className:Nt==="0"?Qe.active:"",id:"0",onClick:on},"\u4EFB\u52A1\u63CF\u8FF0")),ee.createElement("li",{className:Qe["oj-mr"]},ee.createElement("a",{className:Nt==="3"?Qe.active:"",id:"3",onClick:on},"\u9898\u89E3",ln?`(${ln})`:"")),ee.createElement("li",{className:Qe["oj-mr"]},ee.createElement("a",{className:Nt==="2"?Qe.active:"",id:"2",onClick:on},"\u8BC4\u8BBA",It?`(${It})`:"")),ee.createElement("li",null,ee.createElement("a",{className:Nt==="1"?Qe.active:"",id:"1",onClick:on},"\u63D0\u4EA4\u8BB0\u5F55"))),ee.createElement("div",{className:`${Qe["tab-panel-body"]} ${Nt==="0"?"":"hide"}`,style:{padding:"0 0 0 16px"}},ee.createElement(ke,{hack:Ce,onTriggerPraise:De,toDiscuss:dn})),ee.createElement("div",{className:`${Qe["tab-panel-body"]} ${Nt==="1"?"":"hide"}`},tt!=null&&tt.records_count?ee.createElement(ct,{page:Je,onPageChange:et,topicId:Re,submitting:dt,submitRecords:tt,submitResult:gt}):ee.createElement(Ge.Z,null)),ee.createElement("div",{className:`${Qe["tab-panel-body"]} ${Nt==="2"?"":"hide"}`,style:{padding:0}},ee.createElement(ot,{setDiscussTotal:Yt,user:rt,identifier:Ce.identifier,hack:Ce,onTriggerPraise:De})),ee.createElement("div",{className:`${Qe["tab-panel-body"]} ${Nt==="3"?"":"hide"}`,style:{padding:0}},ee.createElement(hs,{setListStatus:_n,setFilterListTotal:vn,tabStatus:Nt,identifier:Ce.identifier})),ee.createElement(Ss,{visible:hn,setIndex:Vt,onVisible:Dn=>Tt(Dn),value:In,onChange:Dn=>Jt(Dn)}))},_s=te(46942),Va=te(62522),ys=te(54318),Ya=te(71302),Ps=te(89392),Xa=te.n(Ps),bs=te(56102),or=te(59301),Cs=Object.defineProperty,Qa=Object.defineProperties,Es=Object.getOwnPropertyDescriptors,Ri=Object.getOwnPropertySymbols,Ja=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,ya=(Ce,De,Re)=>De in Ce?Cs(Ce,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ce[De]=Re,Kr=(Ce,De)=>{for(var Re in De||(De={}))Ja.call(De,Re)&&ya(Ce,Re,De[Re]);if(Ri)for(var Re of Ri(De))_a.call(De,Re)&&ya(Ce,Re,De[Re]);return Ce},po=(Ce,De)=>Qa(Ce,Es(De)),qa=(Ce,De)=>{var Re={};for(var Je in Ce)Ja.call(Ce,Je)&&De.indexOf(Je)<0&&(Re[Je]=Ce[Je]);if(Ce!=null&&Ri)for(var Je of Ri(Ce))De.indexOf(Je)<0&&_a.call(Ce,Je)&&(Re[Je]=Ce[Je]);return Re},Wo=(Ce,De,Re)=>new Promise((Je,et)=>{var rt=gt=>{try{dt(Re.next(gt))}catch(St){et(St)}},tt=gt=>{try{dt(Re.throw(gt))}catch(St){et(St)}},dt=gt=>gt.done?Je(gt.value):Promise.resolve(gt.value).then(rt,tt);dt((Re=Re.apply(Ce,De)).next())});const{Countdown:ws}=_e.default,di={Java:"java",C:"c",Python:"py","C++":"c"};var es=(Ce=>(Ce[Ce.SET_LOADING=0]="SET_LOADING",Ce[Ce.GET_DATA=1]="GET_DATA",Ce[Ce.GET_SUBMIT_RECORDS=2]="GET_SUBMIT_RECORDS",Ce[Ce.SET_DATA=3]="SET_DATA",Ce[Ce.SET_DEBUGING=4]="SET_DEBUGING",Ce[Ce.SET_SUBMITING=5]="SET_SUBMITING",Ce[Ce.SET_EXECUTE_MESSAGE=6]="SET_EXECUTE_MESSAGE",Ce[Ce.SET_EXECUTE_RESULT=7]="SET_EXECUTE_RESULT",Ce[Ce.SET_SUBMIT_RESULT=8]="SET_SUBMIT_RESULT",Ce[Ce.SET_SHOW_NOTE=9]="SET_SHOW_NOTE",Ce[Ce.SET_PAGE=10]="SET_PAGE",Ce[Ce.GET_LANGUAGE=11]="GET_LANGUAGE",Ce[Ce.GET_DRAWER=12]="GET_DRAWER",Ce))(es||{});function Ui(){return new Date().getTime()}const Ae={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 Te(Ce,De){switch(De.type){case 1:return Kr(Kr({},Ce),De.payload);case 3:return po(Kr({},Ce),{data:De.payload});case 0:return po(Kr({},Ce),{loading:De.payload});case 11:return po(Kr({},Ce),{languageList:De.payload});case 12:return po(Kr({},Ce),{drawerData:De.payload});case 9:return po(Kr({},Ce),{showNote:De.payload});case 4:return po(Kr({},Ce),{debuging:De.payload});case 5:return po(Kr({},Ce),{submitting:De.payload});case 2:return po(Kr({},Ce),{submitRecords:De.payload});case 10:return po(Kr({},Ce),{submitRecordPage:De.payload});case 6:return po(Kr({},Ce),{executingMessage:De.payload});case 7:return Kr(Kr({},Ce),De.payload);case 8:return Kr(Kr({},Ce),De.payload);default:throw new Error}}var Ue=({children:Ce})=>{var De,Re,Je,et;const[rt,tt]=(0,ee.useReducer)(Te,Ae),{id:dt}=(0,ye.useParams)(),gt=(0,ye.useLocation)(),[St]=(0,ye.useSearchParams)(),{languageValue:Wt,languageList:Nt,loading:Vt,data:It,debugResult:Yt,submitResult:Qt,submitRecords:_n,submitRecordPage:ln,showNote:vn,debuging:In,submitting:Jt,executingMessage:hn}=rt,[Tt,on]=(0,ee.useState)("#FFF"),[dn,Dn]=(0,ee.useState)(null),[qn,en]=(0,ee.useState)({}),[Pn,Mn]=(0,ee.useState)(!1),gn=(0,ee.useRef)(null),Tn=(0,ee.useRef)(null),kn=It==null?void 0:It.user,Qn=It==null?void 0:It.hack;(0,ee.useEffect)(()=>((0,ye.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,ye.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,ye.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,ye.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,ee.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)}),(0,ee.useEffect)(()=>{var nr;if(Pn){const mr=document.getElementById("oj-next"),eo=document.getElementById("oj-modal-next");((nr=mr==null?void 0:mr.style)==null?void 0:nr.display)==="none"?eo.style.display="none":eo.style.display="block"}},[Pn]),(0,ee.useEffect)(()=>{function nr(){return Wo(this,null,function*(){var mr,eo,Or;const wr=yield(0,me.fu)(dt);if(wr.status===401)document.location.href="/user/login";else{wr.hack=wr.practice,wr.hack.code=Fe.Base64.decode((mr=wr==null?void 0:wr.hack)==null?void 0:mr.code);const zo=`${kn==null?void 0:kn.login}-language`;localStorage.getItem(zo)&&(wr.hack.language=localStorage.getItem(zo)),Tn.current=Xa().cloneDeep(wr),Tn.current.language=(eo=wr==null?void 0:wr.hack)==null?void 0:eo.language,tt({type:1,payload:{loading:!1,data:wr}}),tt({type:8,payload:{languageValue:(Or=wr==null?void 0:wr.hack)==null?void 0:Or.language}})}})}dt&&nr()},[dt]),(0,ee.useEffect)(()=>{tt({type:8,payload:{debugResult:void 0}}),Vr(),Mn(!1)},[dt]),(0,ee.useEffect)(()=>{clearTimeout(gn.current)},[dt]),(0,ee.useEffect)(()=>{tr()},[dt,ln]);const Gr=()=>{window.parent.postMessage("backExercise","*")};function tr(){return Wo(this,null,function*(){try{const nr=yield(0,me.zO)(dt,{limit:15,page:ln});tt({type:2,payload:nr})}catch(nr){console.log(nr)}})}function Vr(){return Wo(this,null,function*(){try{const nr=yield(0,me.dd)(dt);tt({type:11,payload:nr==null?void 0:nr.data})}catch(nr){console.log(nr)}})}function _r(nr){tt({type:10,payload:nr})}function Ar(nr){return Wo(this,null,function*(){var mr,eo,Or;const wr=((Or=(eo=(mr=window==null?void 0:window.location)==null?void 0:mr.pathname)==null?void 0:eo.split("/"))==null?void 0:Or[2])||dt;return yield(0,me.n4)(wr,nr||{code:Fe.Base64.encode(Qn.code),language:Wt})})}function Tr(){return Wo(this,null,function*(){var nr;if(!Qn.code||((nr=Qn.code)==null?void 0:nr.trim())===""){fe.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(!Jt){tt({type:5,payload:!0});try{if(ze.Z.publish("to-commit-info"),(yield Ar()).status===0){let xr=function(){return Wo(this,null,function*(){const{status:Ur,data:Qr}=yield(0,me.rX)(dt,"submit"),gr=Ui()-Cr>(wr*zo+3)*1e3;if(Ur!==0&&!gr&&setTimeout(xr,1e3),gr){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"}),tt({type:5,payload:!1});return}if(Ur===0){Qr.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8BC4\u6D4B\u4EE3\u7801\u8D85\u65F6"});const To=yield(0,me.zO)(dt,{limit:15,page:ln});tt({type:8,payload:po(Kr({},rt),{submitResult:Qr,submitting:!1,submitRecords:To})}),(Qr==null?void 0:Qr.status)===0&&Mn(!0)}})},eo={};const Or=yield(0,me.bM)(dt,eo);if(Or.status===-1&&St.get("exercisesId")){window.parent.location.href=`/classrooms/${St.get("coursesId")}/exercise/${St.get("exercisesId")}/detail`;return}const{time_limit:wr,test_case_size:zo}=Qn,Cr=Ui();(Or==null?void 0:Or.status)>-1?xr():tt({type:4,payload:!1})}}catch(mr){tt({type:5,payload:!1})}}})}function zn(){return Wo(this,null,function*(){var nr;if(!Qn.code||((nr=Qn.code)==null?void 0:nr.trim())===""){fe.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}rt.debuging=!0,tt({type:4,payload:!0});try{if((yield Ar()).status===0){let Cr=function(){return Wo(this,null,function*(){const{status:xr,message:Ur,data:Qr}=yield(0,me.rX)(dt,"debug"),gr=Ui()-zo>(eo+3)*1e3;if(xr!==0&&!gr&&(tt({type:6,payload:Ur}),setTimeout(Cr,1e3)),gr){ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),tt({type:4,payload:!1});return}xr===0&&(tt({type:4,payload:!1}),Qr.status===2&&ie.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),tt({type:7,payload:po(Kr({},rt),{debugResult:Qr,debuging:!1})}))})};const{time_limit:eo}=Qn;let Or={input:encodeURIComponent(It.test_case.input)};const wr=yield(0,me.MU)(dt,Or);if(wr.status===-1&&St.get("exercisesId")){window.parent.location.href=`/classrooms/${St.get("coursesId")}/exercise/${St.get("exercisesId")}/detail`;return}const zo=Ui();(wr==null?void 0:wr.status)>-1?Cr():tt({type:4,payload:!1})}else tt({type:4,payload:!1})}catch(mr){console.log(mr)}finally{}})}function En(nr){var mr;clearTimeout(gn.current),gn.current=setTimeout(()=>{var eo;Ar({code:Fe.Base64.encode(nr),language:(eo=Tn==null?void 0:Tn.current)==null?void 0:eo.language})},2e3),tt({type:3,payload:po(Kr({},Tn==null?void 0:Tn.current),{hack:po(Kr({},(mr=Tn==null?void 0:Tn.current)==null?void 0:mr.hack),{code:nr})})})}function Bn(nr){let mr=nr.target.value;tt({type:3,payload:po(Kr({},It),{test_case:{input:mr}})})}const $n=nr=>Wo(void 0,null,function*(){var mr;if(tt({type:0,payload:!0}),(yield Ar()).status===0){tt({type:8,payload:{languageValue:nr}}),Tn.current.language=nr;const Or=`${kn==null?void 0:kn.login}-language`;localStorage.setItem(Or,nr);const wr=yield(0,me.dd)(dt);if(wr.status===0){const zo=(mr=wr==null?void 0:wr.data)==null?void 0:mr.find(Cr=>Cr.language===nr);En(Fe.Base64.decode(zo.code))}setTimeout(()=>{tt({type:0,payload:!1})},300)}});function An(){return Wo(this,null,function*(){try{const nr=yield(0,me.H7)(dt,{language:Wt});nr.status===401?ye.history.replace("/login",{from:gt.pathname}):(En(Fe.Base64.decode(nr.code)),Vr())}catch(nr){console.log(nr)}})}function br(){ie.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\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 Wo(this,null,function*(){const nr=yield(0,me.fi)(dt,{language:Wt});nr.status===401?ye.history.replace("/login",{from:gt.pathname}):En(Fe.Base64.decode(nr.code))})}})}function Rn(){tt({type:9,payload:!0})}function jn(){tt({type:9,payload:!1})}function hr(nr){return Wo(this,null,function*(){yield(0,me.MK)(dt,nr),tt({type:1,payload:{showNote:!1,data:po(Kr({},It),{hack:po(Kr({},Qn),{notes:nr.notes})})}})})}const Pr={input:(De=It==null?void 0:It.test_case)==null?void 0:De.input,is_file:(Re=It==null?void 0:It.test_case)==null?void 0:Re.is_file,language:((Je=Tn.current)==null?void 0:Je.language)||(Qn==null?void 0:Qn.language),code:Qn==null?void 0:Qn.code,title:"main."+di[Qn==null?void 0:Qn.language],modify_code:Qn==null?void 0:Qn.modify_code,notes:Qn==null?void 0:Qn.notes,debugResult:Yt,debuging:In,submitting:Jt,executingMessage:hn,id:dt,languageValue:Wt,languageList:Nt,onChangeLanguage:$n,onCancelNote:jn,onAddNote:hr,showNote:vn,onShowNote:Rn,onSubmitCode:Tr,onChangeCode:En,onChangeInput:Bn,onDebugCode:zn,onResetCode:An,onSyncCode:br,onUpdateCode:Ar};function Do(){return Wo(this,null,function*(){const{praise_count:nr}=yield(0,me.vl)(Qn.id,{container_type:"Hack",type:1});let mr=po(Kr({},It),{hack:po(Kr({},Qn),{praises_count:nr,user_praise:!Qn.user_praise})});tt({type:3,payload:mr})})}const bo={topicId:dt,submitResult:Qt,submitRecords:_n,submitting:Jt,page:ln,onPageChange:_r,hack:Qn,user:It==null?void 0:It.user,onTriggerPraise:Do};return console.log(It,Tn==null?void 0:Tn.current,"data--------"),or.createElement(or.Fragment,null,or.createElement(de.Z,{className:"oj-custom-large-spin",size:"large",spinning:Vt},It?or.createElement("div",{className:"oj-custom-warp"},or.createElement("header",{className:He.Z.header,style:{minWidth:1200}},or.createElement("div",null,or.createElement("img",{src:`${he.Z.IMG_SERVER}/images/${kn.image_url}`,alt:"user",width:30}),or.createElement("span",null,kn.name)),or.createElement("h2",{className:"flex-wrp flex_box_column flex_box_center"},or.createElement("div",null,Qn.name),or.createElement(_s.Z,{onChange:nr=>{},className:"font12 c-grey-999"})),or.createElement(bs.CopyToClipboard,{text:`${(et=window.location)==null?void 0:et.origin}/problems/${Qn.identifier}/share`,onCopy:()=>fe.ZP.success("\u590D\u5236\u9898\u76EE\u94FE\u63A5\u6210\u529F")},or.createElement("span",{className:He.Z.btn_back,style:{marginRight:10,cursor:"pointer"}}," ",or.createElement("i",{className:"iconfont icon-fenxiang1 font14 mr5"}),"\u5206\u4EAB\u9898\u76EE")),Qn.edit_privilege?or.createElement(ye.Link,{className:He.Z.btn_back,to:`/problems/${Qn.identifier}/ojedit`,style:{marginRight:10}}," ",or.createElement(ge.Z,null)," \u7F16\u8F91"):null,or.createElement(ye.Link,{className:He.Z.btn_back,onClick:()=>{},to:"/problems"}," ",or.createElement(be.Z,null),"\u9000\u51FA")),or.createElement(ae.Z,{hideResize:!0,className:"my-problems oj-problems",leftChild:or.createElement(Ka,Kr({},bo)),rightChild:or.createElement(lt,Kr({},Pr))})):null),or.createElement(ie.default,{centered:!0,closable:!1,width:680,footer:null,open:Pn,className:"oj-modal"},or.createElement("section",{className:"oj-modal-content"},or.createElement("div",{className:"oj-modal-head"},or.createElement("img",{src:Va,alt:""}),or.createElement("i",{onClick:()=>Mn(!1),className:"iconfont icon-guanbi1"})),or.createElement("aside",null,or.createElement("img",{className:"mr30",src:Ya.Z}),"\u8FD0\u884C\u65F6\u95F4:\xA0",or.createElement("span",{style:{color:"#75d6ba",marginRight:100}},Qt==null?void 0:Qt.execute_time,"s"),"\u4F18\u4E8E",or.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Qt==null?void 0:Qt.time_better_than)||100,"%"),"\u7684\u7528\u6237"),or.createElement("aside",{className:"mb50"},or.createElement("img",{src:ys.Z,className:"mr30"}),or.createElement("span",{className:"oj-modal-tt"},or.createElement("span",null,or.createElement("span",null,"\u5360\u7528\u5185\u5B58:\xA0"),or.createElement("span",{className:"c-light-primary"},Qt==null?void 0:Qt.execute_memory,"mb")),or.createElement("span",null,or.createElement("span",null))),"\u4F18\u4E8E",or.createElement("span",{style:{color:"#f3b087",margin:"0 5px"}},(Qt==null?void 0:Qt.memory_better_than)||100,"%"),"\u7684\u7528\u6237"),or.createElement("div",{id:"oj-modal-next",className:"oj-modal-btn"},"\u8FDB\u5165\u4E0B\u4E00\u9898"))))};function Ye({languageValue:Ce,languageList:De,onChangeLanguage:Re,title:Je,modify_code:et,onSyncCode:rt,onShowCodeSetting:tt,onResetCode:dt}){const gt=(0,ye.useLocation)(),St=()=>{ie.default.confirm({title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",icon:or.createElement(oe.Z,null),content:"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931\uFF0C\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:dt})};return or.createElement("div",{className:"action-bar"},or.createElement(le.default,{className:"oj-select",value:Ce,style:{width:100},placeholder:"\u9009\u62E9\u8BED\u8A00",onChange:Re},De==null?void 0:De.map(Wt=>or.createElement(le.default.Option,{key:Wt.language,value:Wt.language},Wt.language))),or.createElement("span",null),or.createElement("a",{title:"\u6062\u590D\u521D\u59CB\u4EE3\u7801",onClick:St},or.createElement("i",{className:"iconfont icon-zhongzhi font-20 "})),or.createElement("a",{onClick:tt},or.createElement("i",{className:"iconfont icon-shezhi"})))}function lt(Ce){var De=Ce,{id:Re,input:Je,is_file:et,showNote:rt,onShowNote:tt,notes:dt,onCancelNote:gt,onAddNote:St,debugResult:Wt,language:Nt,debuging:Vt,submitting:It,executingMessage:Yt,code:Qt,onSubmitCode:_n,onDebugCode:ln,onChangeCode:vn,onChangeInput:In,onUpdateCode:Jt}=De,hn=qa(De,["id","input","is_file","showNote","onShowNote","notes","onCancelNote","onAddNote","debugResult","language","debuging","submitting","executingMessage","code","onSubmitCode","onDebugCode","onChangeCode","onChangeInput","onUpdateCode"]);function Tt(dn){return or.createElement(Ye,po(Kr({},hn),{onShowCodeSetting:dn}))}const on={id:Re,input:Je,debugResult:Wt,debuging:Vt,is_file:et,submitting:It,executingMessage:Yt,onDebugCode:ln,onChangeCode:vn,onSubmitCode:_n,onChangeInput:In};return or.createElement("div",{className:"right-panel"},or.createElement(pt,{onUpdateCode:()=>{},language:Nt,value:Qt,onChange:vn,ActionBarRender:Tt}),or.createElement("div",{className:`note-form-area ${rt?"active":""}`},or.createElement(nt,{onCancel:gt,notes:dt,callback:St})),or.createElement(it.ZP,Kr({},on)))}},86723:function(ft,Ve,te){"use strict";te.d(Ve,{h:function(){return ee}});var ee=(ge=>(ge[ge.NOMATCH=-1]="NOMATCH",ge[ge.OK=0]="OK",ge[ge.TIMEOUT=2]="TIMEOUT",ge[ge.PODFAILURE=3]="PODFAILURE",ge[ge.COMPILEFAILURE=4]="COMPILEFAILURE",ge[ge.EXECUTEFAILURE=5]="EXECUTEFAILURE",ge[ge.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ge))(ee||{})},53576:function(ft,Ve,te){"use strict";te.d(Ve,{H7:function(){return le},KC:function(){return ne},M3:function(){return b},MK:function(){return de},MU:function(){return ye},Rg:function(){return re},WH:function(){return a},X6:function(){return fe},bM:function(){return be},bx:function(){return y},dd:function(){return he},de:function(){return ce},fi:function(){return me},fu:function(){return ge},gu:function(){return E},n4:function(){return ae},qe:function(){return z},rL:function(){return se},rX:function(){return ie},uc:function(){return pe},vl:function(){return oe},wO:function(){return x},zO:function(){return _e}});var ee=te(7660);function ge(Se){return(0,ee.U2)(`mypractices/${Se}.json`,{hidePopLogin:!0})}function be(Se,Le){return(0,ee.v_)(`mypractices/${Se}/code_submit.json`,Le)}function ye(Se,Le){return(0,ee.v_)(`mypractices/${Se}/code_debug.json`,Le)}function _e(Se,Le){return Le.language&&(Le.language=encodeURIComponent(Le.language)),(0,ee.U2)(`mypractices/${Se}/submit_records.json`,Le)}function fe(Se){return(0,ee.U2)("mypractices/record_detail.json",{id:Se})}function ie(Se,Le){return(0,ee.U2)(`mypractices/${Se}/result.json`,{mode:Le})}function de(Se,Le){return(0,ee.v_)(`mypractices/${Se}/add_notes.json`,Le)}function le(Se,Le){return(0,ee.v_)(`mypractices/${Se}/restore_initial_code.json`,Le)}function me(Se,Le){return(0,ee.v_)(`mypractices/${Se}/sync_code.json`,Le)}function ae(Se,Le){return(0,ee.v_)(`mypractices/${Se}/update_code.json`,Le)}function he(Se){return(0,ee.v_)(`mypractices/${Se}/initial_codes.json`)}function oe(Se,Le){return(0,ee.v_)(`discusses/${Se}/plus.json`,Le)}function ne(Se){return(0,ee.U2)("practices/practices_list.json",Se)}function a(Se,Le){return(0,ee.U2)(`practices/${Se}/question_solution_articles`,Le)}function y(Se,Le){return(0,ee.v_)(`practices/${Se}/question_solution_articles`,Le)}function E(Se,Le){return(0,ee.gz)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function b(Se,Le){return(0,ee.U2)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/edit`,Le)}function x(Se,Le){return(0,ee.U2)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function z(Se,Le){return(0,ee.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/set_authority_or_excellent`,Le)}function re(Se,Le){return(0,ee.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/praise_or_treads`,Le)}function se(Se,Le){return(0,ee.v_)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}/hide`)}function ce(Se,Le){return(0,ee.IV)(`practices/${Se}/question_solution_articles/${Le==null?void 0:Le.active}`,Le)}function pe(Se,Le){return(0,ee.v_)(`mypractices/${Se}/update_practice_time_sum`,Le)}},52649:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return oe}});var ee=te(59301),ge=te(8591),be=te(6848),ye=te(71418),_e=te(95237),fe=te(43604),ie=te(58421),de=te(3113),le=te(64726),me=te(7660),ae=te(99325),he=(a,y,E)=>new Promise((b,x)=>{var z=ce=>{try{se(E.next(ce))}catch(pe){x(pe)}},re=ce=>{try{se(E.throw(ce))}catch(pe){x(pe)}},se=ce=>ce.done?b(ce.value):Promise.resolve(ce.value).then(z,re);se((E=E.apply(a,y)).next())}),oe=({id:a,activeDiscussIndex:y,onReplyDiscuss:E,adminOrOperator:b})=>{const[x,z]=(0,ee.useState)(""),[re,se]=(0,ee.useState)(!1);function ce(Se){z(Se)}function pe(){if(!x){ge.ZP.info("\u56DE\u590D\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A!");return}E(a,x),z("")}return(0,ee.useEffect)(()=>{y!=a&&se(!1)},[y]),ee.createElement("div",{key:a,className:"discuss-item-editor",style:{display:y===a?"block":"none",width:"100%"}},ee.createElement(le.Z,{miniToolbar:!0,startInit:y===a,defaultValue:x,id:a,noStorage:!0,watch:!1,height:155,placeholder:"\u6211\u8981\u56DE\u590D",showResizeBar:!0,onChange:ce,extraUse:b&&ee.createElement(be.Z,{color:"#fff",open:re,destroyTooltipOnHide:!0,title:ne({id:a,isOpen:re,activeDiscussIndex:y,onChange:ce,setIsOpen:se}),overlayStyle:{maxWidth:600}},ee.createElement("a",{title:re?"\u5173\u95ED\u63A8\u8350":"\u6253\u5F00\u63A8\u8350",onClick:()=>se(!re)},ee.createElement("i",{className:"iconfont icon-dianzan11"})))}),ee.createElement("a",{onClick:pe,className:"btn-send"},"\u53D1\u9001"))};const ne=a=>{const[y,E]=(0,ee.useState)(!1),[b,x]=(0,ee.useState)([]),[z,re]=(0,ee.useState)(1);(0,ee.useEffect)(()=>{a!=null&&a.isOpen?se():(re(1),x([]))},[a==null?void 0:a.isOpen]);const se=()=>he(void 0,null,function*(){E(!0);const ce=yield(0,me.ZP)(`/api/discusses/${a==null?void 0:a.id}/recommend_answer.json`,{method:"get"});(ce==null?void 0:ce.status)==0&&x(ce==null?void 0:ce.answer),E(!1)});return ee.createElement(ye.Z,{spinning:y},ee.createElement("div",{style:{color:"#000"}},ee.createElement(ae.Z,{className:"font14",style:{maxHeight:500,overflow:"auto"},value:(b==null?void 0:b[z-1])||""}),ee.createElement(_e.Z,{justify:"end",align:"middle"},ee.createElement(fe.Z,null,ee.createElement(ie.Z,{simple:!0,current:z,pageSize:1,total:(b==null?void 0:b.length)||0,onChange:ce=>{re(ce)}})),ee.createElement(fe.Z,null,ee.createElement(de.ZP,{onClick:()=>he(void 0,null,function*(){a==null||a.onChange(b==null?void 0:b[z-1]),a==null||a.setIsOpen(!1)})},"\u586B\u5165\u6587\u672C\u6846")))))}},20736:function(ft,Ve,te){"use strict";te.d(Ve,{BU:function(){return ge},Dj:function(){return ee},gH:function(){return be},vp:function(){return ye}});function ee(_e){try{_e.mozRequestFullScreen?_e.mozRequestFullScreen():_e.webkitRequestFullScreen&&_e.webkitRequestFullScreen()}catch(fe){console.log(fe,":e")}}function ge(){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 ye(){var _e=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,fe=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",_e),window.isFullScreen?window.isFullScreen:_e!=null}},90691:function(ft,Ve,te){"use strict";te.d(Ve,{G:function(){return _e},t:function(){return ye}});var ee=te(7062),ge=te.n(ee);const be=null;function ye(fe,ie){let de=ge().get("__ec");de||(de={}),de[fe]=ie,ge().set("__ec",de)}function _e(fe,ie){let de=ge().get("__ec");return de?de[fe]===void 0?ie:de[fe]:ie}},44860:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return Yr}});class ee{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(ue,ve){return ue.__proto__=ve,ue},Object.assign=Object.assign||function(ue){if(ue==null)throw new TypeError("Cannot convert undefined or null to object");let ve=Object(ue);for(let Pe=1;Pe<arguments.length;Pe++){let xe=arguments[Pe];if(xe!=null)for(let Be in xe)xe.hasOwnProperty(Be)&&(ve[Be]=xe[Be])}return ve},typeof self.Promise!="function"&&te(3867).polyfill()}}ee.install();var ge=ee,be=te(86204),ye=te.n(be);class _e{static e(ue,ve){(!ue||_e.FORCE_GLOBAL_TAG)&&(ue=_e.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;_e.ENABLE_CALLBACK&&_e.emitter.emit("log","error",Pe),_e.ENABLE_ERROR&&(console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe))}static i(ue,ve){(!ue||_e.FORCE_GLOBAL_TAG)&&(ue=_e.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;_e.ENABLE_CALLBACK&&_e.emitter.emit("log","info",Pe),_e.ENABLE_INFO&&(console.info?console.info(Pe):console.log(Pe))}static w(ue,ve){(!ue||_e.FORCE_GLOBAL_TAG)&&(ue=_e.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;_e.ENABLE_CALLBACK&&_e.emitter.emit("log","warn",Pe),_e.ENABLE_WARN&&(console.warn?console.warn(Pe):console.log(Pe))}static d(ue,ve){(!ue||_e.FORCE_GLOBAL_TAG)&&(ue=_e.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;_e.ENABLE_CALLBACK&&_e.emitter.emit("log","debug",Pe),_e.ENABLE_DEBUG&&(console.debug?console.debug(Pe):console.log(Pe))}static v(ue,ve){(!ue||_e.FORCE_GLOBAL_TAG)&&(ue=_e.GLOBAL_TAG);let Pe=`[${ue}] > ${ve}`;_e.ENABLE_CALLBACK&&_e.emitter.emit("log","verbose",Pe),_e.ENABLE_VERBOSE&&console.log(Pe)}}_e.GLOBAL_TAG="flv.js",_e.FORCE_GLOBAL_TAG=!1,_e.ENABLE_ERROR=!0,_e.ENABLE_INFO=!0,_e.ENABLE_WARN=!0,_e.ENABLE_DEBUG=!0,_e.ENABLE_VERBOSE=!0,_e.ENABLE_CALLBACK=!1,_e.emitter=new(ye());var fe=_e;class ie{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(ue){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ue,this._totalBytes+=ue):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ue,this._totalBytes+=ue):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ue,this._totalBytes+=ue,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let ue=(this._now()-this._lastCheckpoint)/1e3;return ue==0&&(ue=1),this._intervalBytes/ue/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let ue=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ue/1024}}var de=ie;class le{constructor(ue){this._message=ue}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class me extends le{constructor(ue){super(ue)}get name(){return"IllegalStateException"}}class ae extends le{constructor(ue){super(ue)}get name(){return"InvalidArgumentException"}}class he extends le{constructor(ue){super(ue)}get name(){return"NotImplementedException"}}const oe={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 a{constructor(ue){this._type=ue||"undefined",this._status=oe.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=oe.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===oe.kConnecting||this._status===oe.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(ue){this._onContentLengthKnown=ue}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(ue){this._onURLRedirect=ue}get onDataArrival(){return this._onDataArrival}set onDataArrival(ue){this._onDataArrival=ue}get onError(){return this._onError}set onError(ue){this._onError=ue}get onComplete(){return this._onComplete}set onComplete(ue){this._onComplete=ue}open(ue,ve){throw new he("Unimplemented abstract function!")}abort(){throw new he("Unimplemented abstract function!")}}let y={};function E(){let $t=self.navigator.userAgent.toLowerCase(),ue=/(edge)\/([\w.]+)/.exec($t)||/(opr)[\/]([\w.]+)/.exec($t)||/(chrome)[ \/]([\w.]+)/.exec($t)||/(iemobile)[\/]([\w.]+)/.exec($t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($t)||/(webkit)[ \/]([\w.]+)/.exec($t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec($t)||/(msie) ([\w.]+)/.exec($t)||$t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec($t)||$t.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec($t)||[],ve=/(ipad)/.exec($t)||/(ipod)/.exec($t)||/(windows phone)/.exec($t)||/(iphone)/.exec($t)||/(kindle)/.exec($t)||/(android)/.exec($t)||/(windows)/.exec($t)||/(mac)/.exec($t)||/(linux)/.exec($t)||/(cros)/.exec($t)||[],Pe={browser:ue[5]||ue[3]||ue[1]||"",version:ue[2]||ue[4]||"0",majorVersion:ue[4]||ue[2]||"0",platform:ve[0]||""},xe={};if(Pe.browser){xe[Pe.browser]=!0;let Be=Pe.majorVersion.split(".");xe.version={major:parseInt(Pe.majorVersion,10),string:Pe.version},Be.length>1&&(xe.version.minor=parseInt(Be[1],10)),Be.length>2&&(xe.version.build=parseInt(Be[2],10))}if(Pe.platform&&(xe[Pe.platform]=!0),(xe.chrome||xe.opr||xe.safari)&&(xe.webkit=!0),xe.rv||xe.iemobile){xe.rv&&delete xe.rv;let Be="msie";Pe.browser=Be,xe[Be]=!0}if(xe.edge){delete xe.edge;let Be="msedge";Pe.browser=Be,xe[Be]=!0}if(xe.opr){let Be="opera";Pe.browser=Be,xe[Be]=!0}if(xe.safari&&xe.android){let Be="android";Pe.browser=Be,xe[Be]=!0}xe.name=Pe.browser,xe.platform=Pe.platform;for(let Be in y)y.hasOwnProperty(Be)&&delete y[Be];Object.assign(y,xe)}E();var b=y;class x extends a{static isSupported(){try{let ue=b.msedge&&b.version.minor>=15048,ve=b.msedge?ue:!0;return self.fetch&&self.ReadableStream&&ve}catch(ue){return!1}}constructor(ue,ve){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=ue,this._config=ve,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(ue,ve){this._dataSource=ue,this._range=ve;let Pe=ue.url;this._config.reuseRedirectedURL&&ue.redirectedURL!=null&&(Pe=ue.redirectedURL);let xe=this._seekHandler.getConfig(Pe,ve),Be=new self.Headers;if(typeof xe.headers=="object"){let ut=xe.headers;for(let rn in ut)ut.hasOwnProperty(rn)&&Be.append(rn,ut[rn])}let ot={method:"GET",headers:Be,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let ut in this._config.headers)Be.append(ut,this._config.headers[ut]);ue.cors===!1&&(ot.mode="same-origin"),ue.withCredentials&&(ot.credentials="include"),ue.referrerPolicy&&(ot.referrerPolicy=ue.referrerPolicy),this._status=oe.kConnecting,self.fetch(xe.url,ot).then(ut=>{if(this._requestAbort){this._requestAbort=!1,this._status=oe.kIdle;return}if(ut.ok&&ut.status>=200&&ut.status<=299){if(ut.url!==xe.url&&this._onURLRedirect){let Zt=this._seekHandler.removeURLParameters(ut.url);this._onURLRedirect(Zt)}let rn=ut.headers.get("Content-Length");return rn!=null&&(this._contentLength=parseInt(rn),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,ut.body.getReader())}else if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ut.status,msg:ut.statusText});else throw new le("FetchStreamLoader: Http code invalid, "+ut.status+" "+ut.statusText)}).catch(ut=>{if(this._status=oe.kError,this._onError)this._onError(ne.EXCEPTION,{code:-1,msg:ut.message});else throw ut})}abort(){this._requestAbort=!0}_pump(ue){return ue.read().then(ve=>{if(ve.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=oe.kError;let Pe=ne.EARLY_EOF,xe={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(Pe,xe);else throw new le(xe.msg)}else this._status=oe.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=oe.kComplete,ue.cancel();this._status=oe.kBuffering;let Pe=ve.value.buffer,xe=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength,this._onDataArrival&&this._onDataArrival(Pe,xe,this._receivedLength),this._pump(ue)}}).catch(ve=>{if(ve.code===11&&b.msedge)return;this._status=oe.kError;let Pe=0,xe=null;if((ve.code===19||ve.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(Pe=ne.EARLY_EOF,xe={code:ve.code,msg:"Fetch stream meet Early-EOF"}):(Pe=ne.EXCEPTION,xe={code:ve.code,msg:ve.message}),this._onError)this._onError(Pe,xe);else throw new le(xe.msg)})}}var z=x;class re extends a{static isSupported(){try{let ue=new XMLHttpRequest;return ue.open("GET","https://example.com",!0),ue.responseType="moz-chunked-arraybuffer",ue.responseType==="moz-chunked-arraybuffer"}catch(ue){return fe.w("MozChunkedLoader",ue.message),!1}}constructor(ue,ve){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=ue,this._config=ve,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(ue,ve){this._dataSource=ue,this._range=ve;let Pe=ue.url;this._config.reuseRedirectedURL&&ue.redirectedURL!=null&&(Pe=ue.redirectedURL);let xe=this._seekHandler.getConfig(Pe,ve);this._requestURL=xe.url;let Be=this._xhr=new XMLHttpRequest;if(Be.open("GET",xe.url,!0),Be.responseType="moz-chunked-arraybuffer",Be.onreadystatechange=this._onReadyStateChange.bind(this),Be.onprogress=this._onProgress.bind(this),Be.onloadend=this._onLoadEnd.bind(this),Be.onerror=this._onXhrError.bind(this),ue.withCredentials&&(Be.withCredentials=!0),typeof xe.headers=="object"){let ot=xe.headers;for(let ut in ot)ot.hasOwnProperty(ut)&&Be.setRequestHeader(ut,ot[ut])}if(typeof this._config.headers=="object"){let ot=this._config.headers;for(let ut in ot)ot.hasOwnProperty(ut)&&Be.setRequestHeader(ut,ot[ut])}this._status=oe.kConnecting,Be.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=oe.kComplete}_onReadyStateChange(ue){let ve=ue.target;if(ve.readyState===2){if(ve.responseURL!=null&&ve.responseURL!==this._requestURL&&this._onURLRedirect){let Pe=this._seekHandler.removeURLParameters(ve.responseURL);this._onURLRedirect(Pe)}if(ve.status!==0&&(ve.status<200||ve.status>299))if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ve.status,msg:ve.statusText});else throw new le("MozChunkedLoader: Http code invalid, "+ve.status+" "+ve.statusText);else this._status=oe.kBuffering}}_onProgress(ue){if(this._status===oe.kError)return;this._contentLength===null&&ue.total!==null&&ue.total!==0&&(this._contentLength=ue.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let ve=ue.target.response,Pe=this._range.from+this._receivedLength;this._receivedLength+=ve.byteLength,this._onDataArrival&&this._onDataArrival(ve,Pe,this._receivedLength)}_onLoadEnd(ue){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===oe.kError)return;this._status=oe.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(ue){this._status=oe.kError;let ve=0,Pe=null;if(this._contentLength&&ue.loaded<this._contentLength?(ve=ne.EARLY_EOF,Pe={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(ve=ne.EXCEPTION,Pe={code:-1,msg:ue.constructor.name+" "+ue.type}),this._onError)this._onError(ve,Pe);else throw new le(Pe.msg)}}var se=re;class ce extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let ue=new XMLHttpRequest;return ue.open("GET","https://example.com",!0),ue.responseType="ms-stream",ue.responseType==="ms-stream"}catch(ue){return Log.w("MSStreamLoader",ue.message),!1}}constructor(ue,ve){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=ue,this._config=ve,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(ue,ve){this._internalOpen(ue,ve,!1)}_internalOpen(ue,ve,Pe){this._dataSource=ue,Pe?this._currentRange=ve:this._totalRange=ve;let xe=ue.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?xe=this._currentRedirectedURL:ue.redirectedURL!=null&&(xe=ue.redirectedURL));let Be=this._seekHandler.getConfig(xe,ve);this._currentRequestURL=Be.url;let ot=this._reader=new self.MSStreamReader;ot.onprogress=this._msrOnProgress.bind(this),ot.onload=this._msrOnLoad.bind(this),ot.onerror=this._msrOnError.bind(this);let ut=this._xhr=new XMLHttpRequest;if(ut.open("GET",Be.url,!0),ut.responseType="ms-stream",ut.onreadystatechange=this._xhrOnReadyStateChange.bind(this),ut.onerror=this._xhrOnError.bind(this),ue.withCredentials&&(ut.withCredentials=!0),typeof Be.headers=="object"){let rn=Be.headers;for(let Zt in rn)rn.hasOwnProperty(Zt)&&ut.setRequestHeader(Zt,rn[Zt])}if(typeof this._config.headers=="object"){let rn=this._config.headers;for(let Zt in rn)rn.hasOwnProperty(Zt)&&ut.setRequestHeader(Zt,rn[Zt])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,ut.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(ue){let ve=ue.target;if(ve.readyState===2)if(ve.status>=200&&ve.status<=299){if(this._status=LoaderStatus.kBuffering,ve.responseURL!=null){let xe=this._seekHandler.removeURLParameters(ve.responseURL);ve.responseURL!==this._currentRequestURL&&xe!==this._currentRedirectedURL&&(this._currentRedirectedURL=xe,this._onURLRedirect&&this._onURLRedirect(xe))}let Pe=ve.getResponseHeader("Content-Length");if(Pe!=null&&this._contentLength==null){let xe=parseInt(Pe);xe>0&&(this._contentLength=xe,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:ve.status,msg:ve.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+ve.status+" "+ve.statusText);else if(ve.readyState===3&&ve.status>=200&&ve.status<=299){this._status=LoaderStatus.kBuffering;let Pe=ve.response;this._reader.readAsArrayBuffer(Pe)}}_xhrOnError(ue){this._status=LoaderStatus.kError;let ve=LoaderErrors.EXCEPTION,Pe={code:-1,msg:ue.constructor.name+" "+ue.type};if(this._onError)this._onError(ve,Pe);else throw new RuntimeException(Pe.msg)}_msrOnProgress(ue){let Pe=ue.target.result;if(Pe==null){this._doReconnectIfNeeded();return}let xe=Pe.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=Pe.byteLength;let Be=this._totalRange.from+this._receivedLength;this._receivedLength+=xe.byteLength,this._onDataArrival&&this._onDataArrival(xe,Be,this._receivedLength),Pe.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${Be+xe.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let ue={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,ue,!0)}}_msrOnLoad(ue){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(ue){this._status=LoaderStatus.kError;let ve=0,Pe=null;if(this._contentLength&&this._receivedLength<this._contentLength?(ve=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:"MSStream meet Early-Eof"}):(ve=LoaderErrors.EARLY_EOF,Pe={code:-1,msg:ue.constructor.name+" "+ue.type}),this._onError)this._onError(ve,Pe);else throw new RuntimeException(Pe.msg)}}var pe=null;class Se extends a{static isSupported(){try{let ue=new XMLHttpRequest;return ue.open("GET","https://example.com",!0),ue.responseType="arraybuffer",ue.responseType==="arraybuffer"}catch(ue){return fe.w("RangeLoader",ue.message),!1}}constructor(ue,ve){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=ue,this._config=ve,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new de,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(ue,ve){this._dataSource=ue,this._range=ve,this._status=oe.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 ue=this._currentChunkSizeKB*1024,ve=this._range.from+this._receivedLength,Pe=ve+ue;this._contentLength!=null&&Pe-this._range.from>=this._contentLength&&(Pe=this._range.from+this._contentLength-1),this._currentRequestRange={from:ve,to:Pe},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(ue,ve){this._lastTimeLoaded=0;let Pe=ue.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Pe=this._currentRedirectedURL:ue.redirectedURL!=null&&(Pe=ue.redirectedURL));let xe=this._seekHandler.getConfig(Pe,ve);this._currentRequestURL=xe.url;let Be=this._xhr=new XMLHttpRequest;if(Be.open("GET",xe.url,!0),Be.responseType="arraybuffer",Be.onreadystatechange=this._onReadyStateChange.bind(this),Be.onprogress=this._onProgress.bind(this),Be.onload=this._onLoad.bind(this),Be.onerror=this._onXhrError.bind(this),ue.withCredentials&&(Be.withCredentials=!0),typeof xe.headers=="object"){let ot=xe.headers;for(let ut in ot)ot.hasOwnProperty(ut)&&Be.setRequestHeader(ut,ot[ut])}if(typeof this._config.headers=="object"){let ot=this._config.headers;for(let ut in ot)ot.hasOwnProperty(ut)&&Be.setRequestHeader(ut,ot[ut])}Be.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=oe.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(ue){let ve=ue.target;if(ve.readyState===2){if(ve.responseURL!=null){let Pe=this._seekHandler.removeURLParameters(ve.responseURL);ve.responseURL!==this._currentRequestURL&&Pe!==this._currentRedirectedURL&&(this._currentRedirectedURL=Pe,this._onURLRedirect&&this._onURLRedirect(Pe))}if(ve.status>=200&&ve.status<=299){if(this._waitForTotalLength)return;this._status=oe.kBuffering}else if(this._status=oe.kError,this._onError)this._onError(ne.HTTP_STATUS_CODE_INVALID,{code:ve.status,msg:ve.statusText});else throw new le("RangeLoader: Http code invalid, "+ve.status+" "+ve.statusText)}}_onProgress(ue){if(this._status===oe.kError)return;if(this._contentLength===null){let Pe=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,Pe=!0;let xe=ue.total;this._internalAbort(),xe!=null&xe!==0&&(this._totalLength=xe)}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 ve=ue.loaded-this._lastTimeLoaded;this._lastTimeLoaded=ue.loaded,this._speedSampler.addBytes(ve)}_normalizeSpeed(ue){let ve=this._chunkSizeKBList,Pe=ve.length-1,xe=0,Be=0,ot=Pe;if(ue<ve[0])return ve[0];for(;Be<=ot;){if(xe=Be+Math.floor((ot-Be)/2),xe===Pe||ue>=ve[xe]&&ue<ve[xe+1])return ve[xe];ve[xe]<ue?Be=xe+1:ot=xe-1}}_onLoad(ue){if(this._status===oe.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let ve=this._speedSampler.lastSecondKBps;if(ve===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(ve=this._speedSampler.currentKBps)),ve!==0){let ot=this._normalizeSpeed(ve);this._currentSpeedNormalized!==ot&&(this._currentSpeedNormalized=ot,this._currentChunkSizeKB=ot)}let Pe=ue.target.response,xe=this._range.from+this._receivedLength;this._receivedLength+=Pe.byteLength;let Be=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Be=!0,this._onDataArrival&&this._onDataArrival(Pe,xe,this._receivedLength),Be&&(this._status=oe.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(ue){this._status=oe.kError;let ve=0,Pe=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(ve=ne.EARLY_EOF,Pe={code:-1,msg:"RangeLoader meet Early-Eof"}):(ve=ne.EXCEPTION,Pe={code:-1,msg:ue.constructor.name+" "+ue.type}),this._onError)this._onError(ve,Pe);else throw new le(Pe.msg)}}var Le=Se;class Ee extends a{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(ue){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(ue){try{let ve=this._ws=new self.WebSocket(ue.url);ve.binaryType="arraybuffer",ve.onopen=this._onWebSocketOpen.bind(this),ve.onclose=this._onWebSocketClose.bind(this),ve.onmessage=this._onWebSocketMessage.bind(this),ve.onerror=this._onWebSocketError.bind(this),this._status=oe.kConnecting}catch(ve){this._status=oe.kError;let Pe={code:ve.code,msg:ve.message};if(this._onError)this._onError(ne.EXCEPTION,Pe);else throw new le(Pe.msg)}}abort(){let ue=this._ws;ue&&(ue.readyState===0||ue.readyState===1)&&(this._requestAbort=!0,ue.close()),this._ws=null,this._status=oe.kComplete}_onWebSocketOpen(ue){this._status=oe.kBuffering}_onWebSocketClose(ue){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=oe.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(ue){if(ue.data instanceof ArrayBuffer)this._dispatchArrayBuffer(ue.data);else if(ue.data instanceof Blob){let ve=new FileReader;ve.onload=()=>{this._dispatchArrayBuffer(ve.result)},ve.readAsArrayBuffer(ue.data)}else{this._status=oe.kError;let ve={code:-1,msg:"Unsupported WebSocket message type: "+ue.data.constructor.name};if(this._onError)this._onError(ne.EXCEPTION,ve);else throw new le(ve.msg)}}_dispatchArrayBuffer(ue){let ve=ue,Pe=this._receivedLength;this._receivedLength+=ve.byteLength,this._onDataArrival&&this._onDataArrival(ve,Pe,this._receivedLength)}_onWebSocketError(ue){this._status=oe.kError;let ve={code:ue.code,msg:ue.message};if(this._onError)this._onError(ne.EXCEPTION,ve);else throw new le(ve.msg)}}var je=Ee;class Me{constructor(ue){this._zeroStart=ue||!1}getConfig(ue,ve){let Pe={};if(ve.from!==0||ve.to!==-1){let xe;ve.to!==-1?xe=`bytes=${ve.from.toString()}-${ve.to.toString()}`:xe=`bytes=${ve.from.toString()}-`,Pe.Range=xe}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:ue,headers:Pe}}removeURLParameters(ue){return ue}}var mt=Me;class Xe{constructor(ue,ve){this._startName=ue,this._endName=ve}getConfig(ue,ve){let Pe=ue;if(ve.from!==0||ve.to!==-1){let xe=!0;Pe.indexOf("?")===-1&&(Pe+="?",xe=!1),xe&&(Pe+="&"),Pe+=`${this._startName}=${ve.from.toString()}`,ve.to!==-1&&(Pe+=`&${this._endName}=${ve.to.toString()}`)}return{url:Pe,headers:{}}}removeURLParameters(ue){let ve=ue.split("?")[0],Pe,xe=ue.indexOf("?");xe!==-1&&(Pe=ue.substring(xe+1));let Be="";if(Pe!=null&&Pe.length>0){let ot=Pe.split("&");for(let ut=0;ut<ot.length;ut++){let rn=ot[ut].split("="),Zt=ut>0;rn[0]!==this._startName&&rn[0]!==this._endName&&(Zt&&(Be+="&"),Be+=ot[ut])}}return Be.length===0?ve:ve+"?"+Be}}var pt=Xe;class we{constructor(ue,ve,Pe){this.TAG="IOController",this._config=ve,this._extraData=Pe,this._stashInitialSize=1024*384,ve.stashInitialSize!=null&&ve.stashInitialSize>0&&(this._stashInitialSize=ve.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,ve.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=ue,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(ue.url),this._refTotalLength=ue.filesize?ue.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new de,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(ue){this._extraData=ue}get onDataArrival(){return this._onDataArrival}set onDataArrival(ue){this._onDataArrival=ue}get onSeeked(){return this._onSeeked}set onSeeked(ue){this._onSeeked=ue}get onError(){return this._onError}set onError(ue){this._onError=ue}get onComplete(){return this._onComplete}set onComplete(ue){this._onComplete=ue}get onRedirect(){return this._onRedirect}set onRedirect(ue){this._onRedirect=ue}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(ue){this._onRecoveredEarlyEof=ue}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 ue=this._config;if(ue.seekType==="range")this._seekHandler=new mt(this._config.rangeLoadZeroStart);else if(ue.seekType==="param"){let ve=ue.seekParamStart||"bstart",Pe=ue.seekParamEnd||"bend";this._seekHandler=new pt(ve,Pe)}else if(ue.seekType==="custom"){if(typeof ue.customSeekHandler!="function")throw new ae("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ue.customSeekHandler}else throw new ae(`Invalid seekType in config: ${ue.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=je;else if(z.isSupported())this._loaderClass=z;else if(se.isSupported())this._loaderClass=se;else if(Le.isSupported())this._loaderClass=Le;else throw new le("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(ue){this._currentRange={from:0,to:-1},ue&&(this._currentRange.from=ue),this._speedSampler.reset(),ue||(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 ue=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ue,!0)}}seek(ue){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ue,!0)}_internalSeek(ue,ve){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(ve),this._loader.destroy(),this._loader=null;let Pe={from:ue,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(ue){if(!ue||typeof ue!="string"||ue.length===0)throw new ae("Url must be a non-empty string!");this._dataSource.url=ue}_expandBuffer(ue){let ve=this._stashSize;for(;ve+1024*1024*1<ue;)ve*=2;if(ve+=1024*1024*1,ve===this._bufferSize)return;let Pe=new ArrayBuffer(ve);if(this._stashUsed>0){let xe=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(Pe,0,ve).set(xe,0)}this._stashBuffer=Pe,this._bufferSize=ve}_normalizeSpeed(ue){let ve=this._speedNormalizeList,Pe=ve.length-1,xe=0,Be=0,ot=Pe;if(ue<ve[0])return ve[0];for(;Be<=ot;){if(xe=Be+Math.floor((ot-Be)/2),xe===Pe||ue>=ve[xe]&&ue<ve[xe+1])return ve[xe];ve[xe]<ue?Be=xe+1:ot=xe-1}}_adjustStashSize(ue){let ve=0;this._config.isLive||ue<512?ve=ue:ue>=512&&ue<=1024?ve=Math.floor(ue*1.5):ve=ue*2,ve>8192&&(ve=8192);let Pe=ve*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=ve*1024}_dispatchChunks(ue,ve){return this._currentRange.to=ve+ue.byteLength-1,this._onDataArrival(ue,ve)}_onURLRedirect(ue){this._redirectedURL=ue,this._onRedirect&&this._onRedirect(ue)}_onContentLengthKnown(ue){ue&&this._fullRequestFlag&&(this._totalLength=ue,this._fullRequestFlag=!1)}_onLoaderChunkArrival(ue,ve,Pe){if(!this._onDataArrival)throw new me("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(ue.byteLength);let xe=this._speedSampler.lastSecondKBps;if(xe!==0){let Be=this._normalizeSpeed(xe);this._speedNormalized!==Be&&(this._speedNormalized=Be,this._adjustStashSize(Be))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=ve),this._stashUsed+ue.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength;else{let Be=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let ot=this._stashBuffer.slice(0,this._stashUsed),ut=this._dispatchChunks(ot,this._stashByteStart);if(ut<ot.byteLength){if(ut>0){let rn=new Uint8Array(ot,ut);Be.set(rn,0),this._stashUsed=rn.byteLength,this._stashByteStart+=ut}}else this._stashUsed=0,this._stashByteStart+=ut;this._stashUsed+ue.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ue.byteLength),Be=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Be.set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength}else{let ot=this._dispatchChunks(ue,ve);if(ot<ue.byteLength){let ut=ue.byteLength-ot;ut>this._bufferSize&&(this._expandBuffer(ut),Be=new Uint8Array(this._stashBuffer,0,this._bufferSize)),Be.set(new Uint8Array(ue,ot),0),this._stashUsed+=ut,this._stashByteStart=ve+ot}}}else if(this._stashUsed===0){let Be=this._dispatchChunks(ue,ve);if(Be<ue.byteLength){let ot=ue.byteLength-Be;ot>this._bufferSize&&this._expandBuffer(ot),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(ue,Be),0),this._stashUsed+=ot,this._stashByteStart=ve+Be}}else{this._stashUsed+ue.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ue.byteLength);let Be=new Uint8Array(this._stashBuffer,0,this._bufferSize);Be.set(new Uint8Array(ue),this._stashUsed),this._stashUsed+=ue.byteLength;let ot=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(ot<this._stashUsed&&ot>0){let ut=new Uint8Array(this._stashBuffer,ot);Be.set(ut,0)}this._stashUsed-=ot,this._stashByteStart+=ot}}_flushStashBuffer(ue){if(this._stashUsed>0){let ve=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(ve,this._stashByteStart),xe=ve.byteLength-Pe;if(Pe<ve.byteLength)if(ue)fe.w(this.TAG,`${xe} bytes unconsumed data remain when flush buffer, dropped`);else{if(Pe>0){let Be=new Uint8Array(this._stashBuffer,0,this._bufferSize),ot=new Uint8Array(ve,Pe);Be.set(ot,0),this._stashUsed=ot.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,xe}return 0}_onLoaderComplete(ue,ve){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(ue,ve){switch(fe.e(this.TAG,`Loader error, code = ${ve.code}, msg = ${ve.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ue=ne.UNRECOVERABLE_EARLY_EOF),ue){case ne.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let Pe=this._currentRange.to+1;Pe<this._totalLength&&(fe.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}ue=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(ue,ve);else throw new le("IOException: "+ve.msg)}}var Fe=we;const He={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 it(){return Object.assign({},He)}class Ke{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let ue=new Fe({},it()),ve=ue.loaderType;return ue.destroy(),ve=="fetch-stream-loader"||ve=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let ue=new Fe({},it()),ve=ue.loaderType;return ue.destroy(),ve}static supportNativeMediaPlayback(ue){Ke.videoElement==null&&(Ke.videoElement=window.document.createElement("video"));let ve=Ke.videoElement.canPlayType(ue);return ve==="probably"||ve=="maybe"}static getFeatureList(){let ue={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return ue.mseFlvPlayback=Ke.supportMSEH264Playback(),ue.networkStreamIO=Ke.supportNetworkStreamIO(),ue.networkLoaderName=Ke.getNetworkLoaderTypeName(),ue.mseLiveFlvPlayback=ue.mseFlvPlayback&&ue.networkStreamIO,ue.nativeMP4H264Playback=Ke.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),ue.nativeWebmVP8Playback=Ke.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),ue.nativeWebmVP9Playback=Ke.supportNativeMediaPlayback('video/webm; codecs="vp9"'),ue}}var ht=Ke,Lt={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 kt{static get forceGlobalTag(){return fe.FORCE_GLOBAL_TAG}static set forceGlobalTag(ue){fe.FORCE_GLOBAL_TAG=ue,kt._notifyChange()}static get globalTag(){return fe.GLOBAL_TAG}static set globalTag(ue){fe.GLOBAL_TAG=ue,kt._notifyChange()}static get enableAll(){return fe.ENABLE_VERBOSE&&fe.ENABLE_DEBUG&&fe.ENABLE_INFO&&fe.ENABLE_WARN&&fe.ENABLE_ERROR}static set enableAll(ue){fe.ENABLE_VERBOSE=ue,fe.ENABLE_DEBUG=ue,fe.ENABLE_INFO=ue,fe.ENABLE_WARN=ue,fe.ENABLE_ERROR=ue,kt._notifyChange()}static get enableDebug(){return fe.ENABLE_DEBUG}static set enableDebug(ue){fe.ENABLE_DEBUG=ue,kt._notifyChange()}static get enableVerbose(){return fe.ENABLE_VERBOSE}static set enableVerbose(ue){fe.ENABLE_VERBOSE=ue,kt._notifyChange()}static get enableInfo(){return fe.ENABLE_INFO}static set enableInfo(ue){fe.ENABLE_INFO=ue,kt._notifyChange()}static get enableWarn(){return fe.ENABLE_WARN}static set enableWarn(ue){fe.ENABLE_WARN=ue,kt._notifyChange()}static get enableError(){return fe.ENABLE_ERROR}static set enableError(ue){fe.ENABLE_ERROR=ue,kt._notifyChange()}static getConfig(){return{globalTag:fe.GLOBAL_TAG,forceGlobalTag:fe.FORCE_GLOBAL_TAG,enableVerbose:fe.ENABLE_VERBOSE,enableDebug:fe.ENABLE_DEBUG,enableInfo:fe.ENABLE_INFO,enableWarn:fe.ENABLE_WARN,enableError:fe.ENABLE_ERROR,enableCallback:fe.ENABLE_CALLBACK}}static applyConfig(ue){fe.GLOBAL_TAG=ue.globalTag,fe.FORCE_GLOBAL_TAG=ue.forceGlobalTag,fe.ENABLE_VERBOSE=ue.enableVerbose,fe.ENABLE_DEBUG=ue.enableDebug,fe.ENABLE_INFO=ue.enableInfo,fe.ENABLE_WARN=ue.enableWarn,fe.ENABLE_ERROR=ue.enableError,fe.ENABLE_CALLBACK=ue.enableCallback}static _notifyChange(){let ue=kt.emitter;if(ue.listenerCount("change")>0){let ve=kt.getConfig();ue.emit("change",ve)}}static registerListener(ue){kt.emitter.addListener("change",ue)}static removeListener(ue){kt.emitter.removeListener("change",ue)}static addLogListener(ue){fe.emitter.addListener("log",ue),fe.emitter.listenerCount("log")>0&&(fe.ENABLE_CALLBACK=!0,kt._notifyChange())}static removeLogListener(ue){fe.emitter.removeListener("log",ue),fe.emitter.listenerCount("log")===0&&(fe.ENABLE_CALLBACK=!1,kt._notifyChange())}}kt.emitter=new(ye());var nt=kt;class Qe{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 ue=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,ve=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&ue&&ve}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(ue){if(this.keyframesIndex==null)return null;let ve=this.keyframesIndex,Pe=this._search(ve.times,ue);return{index:Pe,milliseconds:ve.times[Pe],fileposition:ve.filepositions[Pe]}}_search(ue,ve){let Pe=0,xe=ue.length-1,Be=0,ot=0,ut=xe;for(ve<ue[0]&&(Pe=0,ot=ut+1);ot<=ut;)if(Be=ot+Math.floor((ut-ot)/2),Be===xe||ve>=ue[Be]&&ve<ue[Be+1]){Pe=Be;break}else ue[Be]<ve?ot=Be+1:ut=Be-1;return Pe}}var Pt=Qe;function zt($t,ue,ve){let Pe=$t;if(ue+ve<Pe.length){for(;ve--;)if((Pe[++ue]&192)!==128)return!1;return!0}else return!1}function yt($t){let ue=[],ve=$t,Pe=0,xe=$t.length;for(;Pe<xe;){if(ve[Pe]<128){ue.push(String.fromCharCode(ve[Pe])),++Pe;continue}else if(!(ve[Pe]<192)){if(ve[Pe]<224){if(zt(ve,Pe,1)){let Be=(ve[Pe]&31)<<6|ve[Pe+1]&63;if(Be>=128){ue.push(String.fromCharCode(Be&65535)),Pe+=2;continue}}}else if(ve[Pe]<240){if(zt(ve,Pe,2)){let Be=(ve[Pe]&15)<<12|(ve[Pe+1]&63)<<6|ve[Pe+2]&63;if(Be>=2048&&(Be&63488)!==55296){ue.push(String.fromCharCode(Be&65535)),Pe+=3;continue}}}else if(ve[Pe]<248&&zt(ve,Pe,3)){let Be=(ve[Pe]&7)<<18|(ve[Pe+1]&63)<<12|(ve[Pe+2]&63)<<6|ve[Pe+3]&63;if(Be>65536&&Be<1114112){Be-=65536,ue.push(String.fromCharCode(Be>>>10|55296)),ue.push(String.fromCharCode(Be&1023|56320)),Pe+=4;continue}}}ue.push("\uFFFD"),++Pe}return ue.join("")}var an=yt;let Ze=function(){let $t=new ArrayBuffer(2);return new DataView($t).setInt16(0,256,!0),new Int16Array($t)[0]===256}();class vt{static parseScriptData(ue,ve,Pe){let xe={};try{let Be=vt.parseValue(ue,ve,Pe),ot=vt.parseValue(ue,ve+Be.size,Pe-Be.size);xe[Be.data]=ot.data}catch(Be){fe.e("AMF",Be.toString())}return xe}static parseObject(ue,ve,Pe){if(Pe<3)throw new me("Data not enough when parse ScriptDataObject");let xe=vt.parseString(ue,ve,Pe),Be=vt.parseValue(ue,ve+xe.size,Pe-xe.size),ot=Be.objectEnd;return{data:{name:xe.data,value:Be.data},size:xe.size+Be.size,objectEnd:ot}}static parseVariable(ue,ve,Pe){return vt.parseObject(ue,ve,Pe)}static parseString(ue,ve,Pe){if(Pe<2)throw new me("Data not enough when parse String");let Be=new DataView(ue,ve,Pe).getUint16(0,!Ze),ot;return Be>0?ot=an(new Uint8Array(ue,ve+2,Be)):ot="",{data:ot,size:2+Be}}static parseLongString(ue,ve,Pe){if(Pe<4)throw new me("Data not enough when parse LongString");let Be=new DataView(ue,ve,Pe).getUint32(0,!Ze),ot;return Be>0?ot=an(new Uint8Array(ue,ve+4,Be)):ot="",{data:ot,size:4+Be}}static parseDate(ue,ve,Pe){if(Pe<10)throw new me("Data size invalid when parse Date");let xe=new DataView(ue,ve,Pe),Be=xe.getFloat64(0,!Ze),ot=xe.getInt16(8,!Ze);return Be+=ot*60*1e3,{data:new Date(Be),size:10}}static parseValue(ue,ve,Pe){if(Pe<1)throw new me("Data not enough when parse Value");let xe=new DataView(ue,ve,Pe),Be=1,ot=xe.getUint8(0),ut,rn=!1;try{switch(ot){case 0:ut=xe.getFloat64(1,!Ze),Be+=8;break;case 1:{ut=!!xe.getUint8(1),Be+=1;break}case 2:{let Zt=vt.parseString(ue,ve+1,Pe-1);ut=Zt.data,Be+=Zt.size;break}case 3:{ut={};let Zt=0;for((xe.getUint32(Pe-4,!Ze)&16777215)===9&&(Zt=3);Be<Pe-4;){let qt=vt.parseObject(ue,ve+Be,Pe-Be-Zt);if(qt.objectEnd)break;ut[qt.data.name]=qt.data.value,Be+=qt.size}Be<=Pe-3&&(xe.getUint32(Be-1,!Ze)&16777215)===9&&(Be+=3);break}case 8:{ut={},Be+=4;let Zt=0;for((xe.getUint32(Pe-4,!Ze)&16777215)===9&&(Zt=3);Be<Pe-8;){let qt=vt.parseVariable(ue,ve+Be,Pe-Be-Zt);if(qt.objectEnd)break;ut[qt.data.name]=qt.data.value,Be+=qt.size}Be<=Pe-3&&(xe.getUint32(Be-1,!Ze)&16777215)===9&&(Be+=3);break}case 9:ut=void 0,Be=1,rn=!0;break;case 10:{ut=[];let Zt=xe.getUint32(1,!Ze);Be+=4;for(let qt=0;qt<Zt;qt++){let bn=vt.parseValue(ue,ve+Be,Pe-Be);ut.push(bn.data),Be+=bn.size}break}case 11:{let Zt=vt.parseDate(ue,ve+1,Pe-1);ut=Zt.data,Be+=Zt.size;break}case 12:{let Zt=vt.parseString(ue,ve+1,Pe-1);ut=Zt.data,Be+=Zt.size;break}default:Be=Pe,fe.w("AMF","Unsupported AMF value type "+ot)}}catch(Zt){fe.e("AMF",Zt.toString())}return{data:ut,size:Be,objectEnd:rn}}}var xt=vt;class nn{constructor(ue){this.TAG="ExpGolomb",this._buffer=ue,this._buffer_index=0,this._total_bytes=ue.byteLength,this._total_bits=ue.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let ue=this._total_bytes-this._buffer_index;if(ue<=0)throw new me("ExpGolomb: _fillCurrentWord() but no bytes available");let ve=Math.min(4,ue),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+ve)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=ve,this._current_word_bits_left=ve*8}readBits(ue){if(ue>32)throw new ae("ExpGolomb: readBits() bits exceeded max 32bits!");if(ue<=this._current_word_bits_left){let ot=this._current_word>>>32-ue;return this._current_word<<=ue,this._current_word_bits_left-=ue,ot}let ve=this._current_word_bits_left?this._current_word:0;ve=ve>>>32-this._current_word_bits_left;let Pe=ue-this._current_word_bits_left;this._fillCurrentWord();let xe=Math.min(Pe,this._current_word_bits_left),Be=this._current_word>>>32-xe;return this._current_word<<=xe,this._current_word_bits_left-=xe,ve=ve<<xe|Be,ve}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let ue;for(ue=0;ue<this._current_word_bits_left;ue++)if(this._current_word&2147483648>>>ue)return this._current_word<<=ue,this._current_word_bits_left-=ue,ue;return this._fillCurrentWord(),ue+this._skipLeadingZero()}readUEG(){let ue=this._skipLeadingZero();return this.readBits(ue+1)-1}readSEG(){let ue=this.readUEG();return ue&1?ue+1>>>1:-1*(ue>>>1)}}var Gt=nn;class st{static _ebsp2rbsp(ue){let ve=ue,Pe=ve.byteLength,xe=new Uint8Array(Pe),Be=0;for(let ot=0;ot<Pe;ot++)ot>=2&&ve[ot]===3&&ve[ot-1]===0&&ve[ot-2]===0||(xe[Be]=ve[ot],Be++);return new Uint8Array(xe.buffer,0,Be)}static parseSPS(ue){let ve=st._ebsp2rbsp(ue),Pe=new Gt(ve);Pe.readByte();let xe=Pe.readByte();Pe.readByte();let Be=Pe.readByte();Pe.readUEG();let ot=st.getProfileString(xe),ut=st.getLevelString(Be),rn=1,Zt=420,qt=[0,420,422,444],bn=8;if((xe===100||xe===110||xe===122||xe===244||xe===44||xe===83||xe===86||xe===118||xe===128||xe===138||xe===144)&&(rn=Pe.readUEG(),rn===3&&Pe.readBits(1),rn<=3&&(Zt=qt[rn]),bn=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool())){let Hn=rn!==3?8:12;for(let mn=0;mn<Hn;mn++)Pe.readBool()&&(mn<6?st._skipScalingList(Pe,16):st._skipScalingList(Pe,64))}Pe.readUEG();let Rt=Pe.readUEG();if(Rt===0)Pe.readUEG();else if(Rt===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();let Hn=Pe.readUEG();for(let mn=0;mn<Hn;mn++)Pe.readSEG()}let $e=Pe.readUEG();Pe.readBits(1);let At=Pe.readUEG(),Ft=Pe.readUEG(),wt=Pe.readBits(1);wt===0&&Pe.readBits(1),Pe.readBits(1);let Bt=0,Kt=0,Xt=0,yn=0;Pe.readBool()&&(Bt=Pe.readUEG(),Kt=Pe.readUEG(),Xt=Pe.readUEG(),yn=Pe.readUEG());let Un=1,cn=1,Ln=0,Jn=!0,rr=0,fr=0;if(Pe.readBool()){if(Pe.readBool()){let Hn=Pe.readByte(),mn=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],ir=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Hn>0&&Hn<16?(Un=mn[Hn-1],cn=ir[Hn-1]):Hn===255&&(Un=Pe.readByte()<<8|Pe.readByte(),cn=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 Hn=Pe.readBits(32),mn=Pe.readBits(32);Jn=Pe.readBool(),rr=mn,fr=Hn*2,Ln=rr/fr}}let Lr=1;(Un!==1||cn!==1)&&(Lr=Un/cn);let dr=0,Xr=0;if(rn===0)dr=1,Xr=2-wt;else{let Hn=rn===3?1:2,mn=rn===1?2:1;dr=Hn,Xr=mn*(2-wt)}let Sr=(At+1)*16,sn=(2-wt)*((Ft+1)*16);Sr-=(Bt+Kt)*dr,sn-=(Xt+yn)*Xr;let wn=Math.ceil(Sr*Lr);return Pe.destroy(),Pe=null,{profile_string:ot,level_string:ut,bit_depth:bn,ref_frames:$e,chroma_format:Zt,chroma_format_string:st.getChromaFormatString(Zt),frame_rate:{fixed:Jn,fps:Ln,fps_den:fr,fps_num:rr},sar_ratio:{width:Un,height:cn},codec_size:{width:Sr,height:sn},present_size:{width:wn,height:sn}}}static _skipScalingList(ue,ve){let Pe=8,xe=8,Be=0;for(let ot=0;ot<ve;ot++)xe!==0&&(Be=ue.readSEG(),xe=(Pe+Be+256)%256),Pe=xe===0?Pe:xe}static getProfileString(ue){switch(ue){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(ue){return(ue/10).toFixed(1)}static getChromaFormatString(ue){switch(ue){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var ct=st,Ne={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function qe($t){return $t>>>8&255|($t&255)<<8}function Ct($t){return($t&4278190080)>>>24|($t&16711680)>>>8|($t&65280)<<8|($t&255)<<24}function Oe($t,ue){return $t[ue]<<24|$t[ue+1]<<16|$t[ue+2]<<8|$t[ue+3]}class Ie{constructor(ue,ve){this.TAG="FLVDemuxer",this._config=ve,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=ue.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=ue.hasAudioTrack,this._hasVideo=ue.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new Pt,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(ue){let ve=new Uint8Array(ue),Pe={match:!1};if(ve[0]!==70||ve[1]!==76||ve[2]!==86||ve[3]!==1)return Pe;let xe=(ve[4]&4)>>>2!==0,Be=(ve[4]&1)!==0,ot=Oe(ve,5);return ot<9?Pe:{match:!0,consumed:ot,dataOffset:ot,hasAudioTrack:xe,hasVideoTrack:Be}}bindDataSource(ue){return ue.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(ue){this._onTrackMetadata=ue}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(ue){this._onMediaInfo=ue}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(ue){this._onMetaDataArrived=ue}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(ue){this._onScriptDataArrived=ue}get onError(){return this._onError}set onError(ue){this._onError=ue}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(ue){this._onDataAvailable=ue}get timestampBase(){return this._timestampBase}set timestampBase(ue){this._timestampBase=ue}get overridedDuration(){return this._duration}set overridedDuration(ue){this._durationOverrided=!0,this._duration=ue,this._mediaInfo.duration=ue}set overridedHasAudio(ue){this._hasAudioFlagOverrided=!0,this._hasAudio=ue,this._mediaInfo.hasAudio=ue}set overridedHasVideo(ue){this._hasVideoFlagOverrided=!0,this._hasVideo=ue,this._mediaInfo.hasVideo=ue}resetMediaInfo(){this._mediaInfo=new Pt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(ue,ve){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new me("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let Pe=0,xe=this._littleEndian;if(ve===0)if(ue.byteLength>13)Pe=Ie.probe(ue).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,ve+Pe!==this._dataOffset&&fe.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(ue,Pe).getUint32(0,!xe)!==0&&fe.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4);Pe<ue.byteLength;){this._dispatch=!0;let Be=new DataView(ue,Pe);if(Pe+11+4>ue.byteLength)break;let ot=Be.getUint8(0),ut=Be.getUint32(0,!xe)&16777215;if(Pe+11+ut+4>ue.byteLength)break;if(ot!==8&&ot!==9&&ot!==18){fe.w(this.TAG,`Unsupported tag type ${ot}, skipped`),Pe+=11+ut+4;continue}let rn=Be.getUint8(4),Zt=Be.getUint8(5),qt=Be.getUint8(6),bn=Be.getUint8(7),Rt=qt|Zt<<8|rn<<16|bn<<24;(Be.getUint32(7,!xe)&16777215)!==0&&fe.w(this.TAG,"Meet tag which has StreamID != 0!");let At=Pe+11;switch(ot){case 8:this._parseAudioData(ue,At,ut,Rt);break;case 9:this._parseVideoData(ue,At,ut,Rt,ve+Pe);break;case 18:this._parseScriptData(ue,At,ut);break}let Ft=Be.getUint32(11+ut,!xe);Ft!==11+ut&&fe.w(this.TAG,`Invalid PrevTagSize ${Ft}`),Pe+=11+ut+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),Pe}_parseScriptData(ue,ve,Pe){let xe=xt.parseScriptData(ue,ve,Pe);if(xe.hasOwnProperty("onMetaData")){if(xe.onMetaData==null||typeof xe.onMetaData!="object"){fe.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&fe.w(this.TAG,"Found another onMetaData tag!"),this._metadata=xe;let Be=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},Be)),typeof Be.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=Be.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof Be.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=Be.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof Be.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=Be.audiodatarate),typeof Be.videodatarate=="number"&&(this._mediaInfo.videoDataRate=Be.videodatarate),typeof Be.width=="number"&&(this._mediaInfo.width=Be.width),typeof Be.height=="number"&&(this._mediaInfo.height=Be.height),typeof Be.duration=="number"){if(!this._durationOverrided){let ot=Math.floor(Be.duration*this._timescale);this._duration=ot,this._mediaInfo.duration=ot}}else this._mediaInfo.duration=0;if(typeof Be.framerate=="number"){let ot=Math.floor(Be.framerate*1e3);if(ot>0){let ut=ot/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=ut,this._referenceFrameRate.fps_num=ot,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=ut}}if(typeof Be.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let ot=Be.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(ot),Be.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=Be,fe.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(xe).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},xe))}_parseKeyframesIndex(ue){let ve=[],Pe=[];for(let xe=1;xe<ue.times.length;xe++){let Be=this._timestampBase+Math.floor(ue.times[xe]*1e3);ve.push(Be),Pe.push(ue.filepositions[xe])}return{times:ve,filepositions:Pe}}_parseAudioData(ue,ve,Pe,xe){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let Be=this._littleEndian,ut=new DataView(ue,ve,Pe).getUint8(0),rn=ut>>>4;if(rn!==2&&rn!==10){this._onError(Ne.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+rn);return}let Zt=0,qt=(ut&12)>>>2;if(qt>=0&&qt<=4)Zt=this._flvSoundRateTable[qt];else{this._onError(Ne.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+qt);return}let bn=(ut&2)>>>1,Rt=ut&1,$e=this._audioMetadata,At=this._audioTrack;if($e||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),$e=this._audioMetadata={},$e.type="audio",$e.id=At.id,$e.timescale=this._timescale,$e.duration=this._duration,$e.audioSampleRate=Zt,$e.channelCount=Rt===0?1:2),rn===10){let Ft=this._parseAACAudioData(ue,ve+1,Pe-1);if(Ft==null)return;if(Ft.packetType===0){$e.config&&fe.w(this.TAG,"Found another AudioSpecificConfig!");let wt=Ft.data;$e.audioSampleRate=wt.samplingRate,$e.channelCount=wt.channelCount,$e.codec=wt.codec,$e.originalCodec=wt.originalCodec,$e.config=wt.config,$e.refSampleDuration=1024/$e.audioSampleRate*$e.timescale,fe.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",$e);let Bt=this._mediaInfo;Bt.audioCodec=$e.originalCodec,Bt.audioSampleRate=$e.audioSampleRate,Bt.audioChannelCount=$e.channelCount,Bt.hasVideo?Bt.videoCodec!=null&&(Bt.mimeType='video/x-flv; codecs="'+Bt.videoCodec+","+Bt.audioCodec+'"'):Bt.mimeType='video/x-flv; codecs="'+Bt.audioCodec+'"',Bt.isComplete()&&this._onMediaInfo(Bt)}else if(Ft.packetType===1){let wt=this._timestampBase+xe,Bt={unit:Ft.data,length:Ft.data.byteLength,dts:wt,pts:wt};At.samples.push(Bt),At.length+=Ft.data.length}else fe.e(this.TAG,`Flv: Unsupported AAC data type ${Ft.packetType}`)}else if(rn===2){if(!$e.codec){let Kt=this._parseMP3AudioData(ue,ve+1,Pe-1,!0);if(Kt==null)return;$e.audioSampleRate=Kt.samplingRate,$e.channelCount=Kt.channelCount,$e.codec=Kt.codec,$e.originalCodec=Kt.originalCodec,$e.refSampleDuration=1152/$e.audioSampleRate*$e.timescale,fe.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",$e);let Xt=this._mediaInfo;Xt.audioCodec=$e.codec,Xt.audioSampleRate=$e.audioSampleRate,Xt.audioChannelCount=$e.channelCount,Xt.audioDataRate=Kt.bitRate,Xt.hasVideo?Xt.videoCodec!=null&&(Xt.mimeType='video/x-flv; codecs="'+Xt.videoCodec+","+Xt.audioCodec+'"'):Xt.mimeType='video/x-flv; codecs="'+Xt.audioCodec+'"',Xt.isComplete()&&this._onMediaInfo(Xt)}let Ft=this._parseMP3AudioData(ue,ve+1,Pe-1,!1);if(Ft==null)return;let wt=this._timestampBase+xe,Bt={unit:Ft,length:Ft.byteLength,dts:wt,pts:wt};At.samples.push(Bt),At.length+=Ft.length}}_parseAACAudioData(ue,ve,Pe){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let xe={},Be=new Uint8Array(ue,ve,Pe);return xe.packetType=Be[0],Be[0]===0?xe.data=this._parseAACAudioSpecificConfig(ue,ve+1,Pe-1):xe.data=Be.subarray(1),xe}_parseAACAudioSpecificConfig(ue,ve,Pe){let xe=new Uint8Array(ue,ve,Pe),Be=null,ot=0,ut=0,rn=null,Zt=0,qt=null;if(ot=ut=xe[0]>>>3,Zt=(xe[0]&7)<<1|xe[1]>>>7,Zt<0||Zt>=this._mpegSamplingRates.length){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let bn=this._mpegSamplingRates[Zt],Rt=(xe[1]&120)>>>3;if(Rt<0||Rt>=8){this._onError(Ne.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}ot===5&&(qt=(xe[1]&7)<<1|xe[2]>>>7,rn=(xe[2]&124)>>>2);let $e=self.navigator.userAgent.toLowerCase();return $e.indexOf("firefox")!==-1?Zt>=6?(ot=5,Be=new Array(4),qt=Zt-3):(ot=2,Be=new Array(2),qt=Zt):$e.indexOf("android")!==-1?(ot=2,Be=new Array(2),qt=Zt):(ot=5,qt=Zt,Be=new Array(4),Zt>=6?qt=Zt-3:Rt===1&&(ot=2,Be=new Array(2),qt=Zt)),Be[0]=ot<<3,Be[0]|=(Zt&15)>>>1,Be[1]=(Zt&15)<<7,Be[1]|=(Rt&15)<<3,ot===5&&(Be[1]|=(qt&15)>>>1,Be[2]=(qt&1)<<7,Be[2]|=8,Be[3]=0),{config:Be,samplingRate:bn,channelCount:Rt,codec:"mp4a.40."+ot,originalCodec:"mp4a.40."+ut}}_parseMP3AudioData(ue,ve,Pe,xe){if(Pe<4){fe.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let Be=this._littleEndian,ot=new Uint8Array(ue,ve,Pe),ut=null;if(xe){if(ot[0]!==255)return;let rn=ot[1]>>>3&3,Zt=(ot[1]&6)>>1,qt=(ot[2]&240)>>>4,bn=(ot[2]&12)>>>2,$e=(ot[3]>>>6&3)!==3?2:1,At=0,Ft=0,wt=34,Bt="mp3";switch(rn){case 0:At=this._mpegAudioV25SampleRateTable[bn];break;case 2:At=this._mpegAudioV20SampleRateTable[bn];break;case 3:At=this._mpegAudioV10SampleRateTable[bn];break}switch(Zt){case 1:wt=34,qt<this._mpegAudioL3BitRateTable.length&&(Ft=this._mpegAudioL3BitRateTable[qt]);break;case 2:wt=33,qt<this._mpegAudioL2BitRateTable.length&&(Ft=this._mpegAudioL2BitRateTable[qt]);break;case 3:wt=32,qt<this._mpegAudioL1BitRateTable.length&&(Ft=this._mpegAudioL1BitRateTable[qt]);break}ut={bitRate:Ft,samplingRate:At,channelCount:$e,codec:Bt,originalCodec:Bt}}else ut=ot;return ut}_parseVideoData(ue,ve,Pe,xe,Be){if(Pe<=1){fe.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let ot=new Uint8Array(ue,ve,Pe)[0],ut=(ot&240)>>>4,rn=ot&15;if(rn!==7){this._onError(Ne.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${rn}`);return}this._parseAVCVideoPacket(ue,ve+1,Pe-1,xe,Be,ut)}_parseAVCVideoPacket(ue,ve,Pe,xe,Be,ot){if(Pe<4){fe.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let ut=this._littleEndian,rn=new DataView(ue,ve,Pe),Zt=rn.getUint8(0),bn=(rn.getUint32(0,!ut)&16777215)<<8>>8;if(Zt===0)this._parseAVCDecoderConfigurationRecord(ue,ve+4,Pe-4);else if(Zt===1)this._parseAVCVideoData(ue,ve+4,Pe-4,xe,Be,ot,bn);else if(Zt!==2){this._onError(Ne.FORMAT_ERROR,`Flv: Invalid video packet type ${Zt}`);return}}_parseAVCDecoderConfigurationRecord(ue,ve,Pe){if(Pe<7){fe.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let xe=this._videoMetadata,Be=this._videoTrack,ot=this._littleEndian,ut=new DataView(ue,ve,Pe);xe?typeof xe.avcc!="undefined"&&fe.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),xe=this._videoMetadata={},xe.type="video",xe.id=Be.id,xe.timescale=this._timescale,xe.duration=this._duration);let rn=ut.getUint8(0),Zt=ut.getUint8(1),qt=ut.getUint8(2),bn=ut.getUint8(3);if(rn!==1||Zt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(ut.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Ne.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Rt=ut.getUint8(5)&31;if(Rt===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Rt>1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Rt}`);let $e=6;for(let Ft=0;Ft<Rt;Ft++){let wt=ut.getUint16($e,!ot);if($e+=2,wt===0)continue;let Bt=new Uint8Array(ue,ve+$e,wt);$e+=wt;let Kt=ct.parseSPS(Bt);if(Ft!==0)continue;xe.codecWidth=Kt.codec_size.width,xe.codecHeight=Kt.codec_size.height,xe.presentWidth=Kt.present_size.width,xe.presentHeight=Kt.present_size.height,xe.profile=Kt.profile_string,xe.level=Kt.level_string,xe.bitDepth=Kt.bit_depth,xe.chromaFormat=Kt.chroma_format,xe.sarRatio=Kt.sar_ratio,xe.frameRate=Kt.frame_rate,(Kt.frame_rate.fixed===!1||Kt.frame_rate.fps_num===0||Kt.frame_rate.fps_den===0)&&(xe.frameRate=this._referenceFrameRate);let Xt=xe.frameRate.fps_den,yn=xe.frameRate.fps_num;xe.refSampleDuration=xe.timescale*(Xt/yn);let Nn=Bt.subarray(1,4),Un="avc1.";for(let Ln=0;Ln<3;Ln++){let Jn=Nn[Ln].toString(16);Jn.length<2&&(Jn="0"+Jn),Un+=Jn}xe.codec=Un;let cn=this._mediaInfo;cn.width=xe.codecWidth,cn.height=xe.codecHeight,cn.fps=xe.frameRate.fps,cn.profile=xe.profile,cn.level=xe.level,cn.refFrames=Kt.ref_frames,cn.chromaFormat=Kt.chroma_format_string,cn.sarNum=xe.sarRatio.width,cn.sarDen=xe.sarRatio.height,cn.videoCodec=Un,cn.hasAudio?cn.audioCodec!=null&&(cn.mimeType='video/x-flv; codecs="'+cn.videoCodec+","+cn.audioCodec+'"'):cn.mimeType='video/x-flv; codecs="'+cn.videoCodec+'"',cn.isComplete()&&this._onMediaInfo(cn)}let At=ut.getUint8($e);if(At===0){this._onError(Ne.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else At>1&&fe.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${At}`);$e++;for(let Ft=0;Ft<At;Ft++){let wt=ut.getUint16($e,!ot);$e+=2,wt!==0&&($e+=wt)}xe.avcc=new Uint8Array(Pe),xe.avcc.set(new Uint8Array(ue,ve,Pe),0),fe.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",xe)}_parseAVCVideoData(ue,ve,Pe,xe,Be,ot,ut){let rn=this._littleEndian,Zt=new DataView(ue,ve,Pe),qt=[],bn=0,Rt=0;const $e=this._naluLengthSize;let At=this._timestampBase+xe,Ft=ot===1;for(;Rt<Pe;){if(Rt+4>=Pe){fe.w(this.TAG,`Malformed Nalu near timestamp ${At}, offset = ${Rt}, dataSize = ${Pe}`);break}let wt=Zt.getUint32(Rt,!rn);if($e===3&&(wt>>>=8),wt>Pe-$e){fe.w(this.TAG,`Malformed Nalus near timestamp ${At}, NaluSize > DataSize!`);return}let Bt=Zt.getUint8(Rt+$e)&31;Bt===5&&(Ft=!0);let Kt=new Uint8Array(ue,ve+Rt,$e+wt),Xt={type:Bt,data:Kt};qt.push(Xt),bn+=Kt.byteLength,Rt+=$e+wt}if(qt.length){let wt=this._videoTrack,Bt={units:qt,length:bn,isKeyframe:Ft,dts:At,cts:ut,pts:At+ut};Ft&&(Bt.fileposition=Be),wt.samples.push(Bt),wt.length+=bn}}}var We=Ie;class ke{static init(){ke.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let ve in ke.types)ke.types.hasOwnProperty(ve)&&(ke.types[ve]=[ve.charCodeAt(0),ve.charCodeAt(1),ve.charCodeAt(2),ve.charCodeAt(3)]);let ue=ke.constants={};ue.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),ue.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),ue.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),ue.STSC=ue.STCO=ue.STTS,ue.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ue.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]),ue.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]),ue.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),ue.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ue.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(ue){let ve=8,Pe=null,xe=Array.prototype.slice.call(arguments,1),Be=xe.length;for(let ut=0;ut<Be;ut++)ve+=xe[ut].byteLength;Pe=new Uint8Array(ve),Pe[0]=ve>>>24&255,Pe[1]=ve>>>16&255,Pe[2]=ve>>>8&255,Pe[3]=ve&255,Pe.set(ue,4);let ot=8;for(let ut=0;ut<Be;ut++)Pe.set(xe[ut],ot),ot+=xe[ut].byteLength;return Pe}static generateInitSegment(ue){let ve=ke.box(ke.types.ftyp,ke.constants.FTYP),Pe=ke.moov(ue),xe=new Uint8Array(ve.byteLength+Pe.byteLength);return xe.set(ve,0),xe.set(Pe,ve.byteLength),xe}static moov(ue){let ve=ke.mvhd(ue.timescale,ue.duration),Pe=ke.trak(ue),xe=ke.mvex(ue);return ke.box(ke.types.moov,ve,Pe,xe)}static mvhd(ue,ve){return ke.box(ke.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(ue){return ke.box(ke.types.trak,ke.tkhd(ue),ke.mdia(ue))}static tkhd(ue){let ve=ue.id,Pe=ue.duration,xe=ue.presentWidth,Be=ue.presentHeight;return ke.box(ke.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255,0,0,0,0,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,xe>>>8&255,xe&255,0,0,Be>>>8&255,Be&255,0,0]))}static mdia(ue){return ke.box(ke.types.mdia,ke.mdhd(ue),ke.hdlr(ue),ke.minf(ue))}static mdhd(ue){let ve=ue.timescale,Pe=ue.duration;return ke.box(ke.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}static hdlr(ue){let ve=null;return ue.type==="audio"?ve=ke.constants.HDLR_AUDIO:ve=ke.constants.HDLR_VIDEO,ke.box(ke.types.hdlr,ve)}static minf(ue){let ve=null;return ue.type==="audio"?ve=ke.box(ke.types.smhd,ke.constants.SMHD):ve=ke.box(ke.types.vmhd,ke.constants.VMHD),ke.box(ke.types.minf,ve,ke.dinf(),ke.stbl(ue))}static dinf(){return ke.box(ke.types.dinf,ke.box(ke.types.dref,ke.constants.DREF))}static stbl(ue){return ke.box(ke.types.stbl,ke.stsd(ue),ke.box(ke.types.stts,ke.constants.STTS),ke.box(ke.types.stsc,ke.constants.STSC),ke.box(ke.types.stsz,ke.constants.STSZ),ke.box(ke.types.stco,ke.constants.STCO))}static stsd(ue){return ue.type==="audio"?ue.codec==="mp3"?ke.box(ke.types.stsd,ke.constants.STSD_PREFIX,ke.mp3(ue)):ke.box(ke.types.stsd,ke.constants.STSD_PREFIX,ke.mp4a(ue)):ke.box(ke.types.stsd,ke.constants.STSD_PREFIX,ke.avc1(ue))}static mp3(ue){let ve=ue.channelCount,Pe=ue.audioSampleRate,xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ve,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return ke.box(ke.types[".mp3"],xe)}static mp4a(ue){let ve=ue.channelCount,Pe=ue.audioSampleRate,xe=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,ve,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return ke.box(ke.types.mp4a,xe,ke.esds(ue))}static esds(ue){let ve=ue.config||[],Pe=ve.length,xe=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(ve).concat([6,1,2]));return ke.box(ke.types.esds,xe)}static avc1(ue){let ve=ue.avcc,Pe=ue.codecWidth,xe=ue.codecHeight,Be=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,xe>>>8&255,xe&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 ke.box(ke.types.avc1,Be,ke.box(ke.types.avcC,ve))}static mvex(ue){return ke.box(ke.types.mvex,ke.trex(ue))}static trex(ue){let ve=ue.id,Pe=new Uint8Array([0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return ke.box(ke.types.trex,Pe)}static moof(ue,ve){return ke.box(ke.types.moof,ke.mfhd(ue.sequenceNumber),ke.traf(ue,ve))}static mfhd(ue){let ve=new Uint8Array([0,0,0,0,ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255]);return ke.box(ke.types.mfhd,ve)}static traf(ue,ve){let Pe=ue.id,xe=ke.box(ke.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),Be=ke.box(ke.types.tfdt,new Uint8Array([0,0,0,0,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255])),ot=ke.sdtp(ue),ut=ke.trun(ue,ot.byteLength+16+16+8+16+8+8);return ke.box(ke.types.traf,xe,Be,ut,ot)}static sdtp(ue){let ve=ue.samples||[],Pe=ve.length,xe=new Uint8Array(4+Pe);for(let Be=0;Be<Pe;Be++){let ot=ve[Be].flags;xe[Be+4]=ot.isLeading<<6|ot.dependsOn<<4|ot.isDependedOn<<2|ot.hasRedundancy}return ke.box(ke.types.sdtp,xe)}static trun(ue,ve){let Pe=ue.samples||[],xe=Pe.length,Be=12+16*xe,ot=new Uint8Array(Be);ve+=8+Be,ot.set([0,0,15,1,xe>>>24&255,xe>>>16&255,xe>>>8&255,xe&255,ve>>>24&255,ve>>>16&255,ve>>>8&255,ve&255],0);for(let ut=0;ut<xe;ut++){let rn=Pe[ut].duration,Zt=Pe[ut].size,qt=Pe[ut].flags,bn=Pe[ut].cts;ot.set([rn>>>24&255,rn>>>16&255,rn>>>8&255,rn&255,Zt>>>24&255,Zt>>>16&255,Zt>>>8&255,Zt&255,qt.isLeading<<2|qt.dependsOn,qt.isDependedOn<<6|qt.hasRedundancy<<4|qt.isNonSync,0,0,bn>>>24&255,bn>>>16&255,bn>>>8&255,bn&255],12+16*ut)}return ke.box(ke.types.trun,ot)}static mdat(ue){return ke.box(ke.types.mdat,ue)}}ke.init();var ze=ke;class at{static getSilentFrame(ue,ve){if(ue==="mp4a.40.2"){if(ve===1)return new Uint8Array([0,200,0,128,35,128]);if(ve===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(ve===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(ve===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(ve===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(ve===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(ve===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ve===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(ve===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var Ot=at;class Mt{constructor(ue,ve,Pe,xe,Be){this.dts=ue,this.pts=ve,this.duration=Pe,this.originalDts=xe,this.isSyncPoint=Be,this.fileposition=null}}class jt{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(ue){ue.isSyncPoint=!0,this.syncPoints.push(ue)}}class Dt{constructor(){this._list=[]}clear(){this._list=[]}appendArray(ue){let ve=this._list;ue.length!==0&&(ve.length>0&&ue[0].originalDts<ve[ve.length-1].originalDts&&this.clear(),Array.prototype.push.apply(ve,ue))}getLastSyncPointBeforeDts(ue){if(this._list.length==0)return null;let ve=this._list,Pe=0,xe=ve.length-1,Be=0,ot=0,ut=xe;for(ue<ve[0].dts&&(Pe=0,ot=ut+1);ot<=ut;)if(Be=ot+Math.floor((ut-ot)/2),Be===xe||ue>=ve[Be].dts&&ue<ve[Be+1].dts){Pe=Be;break}else ve[Be].dts<ue?ot=Be+1:ut=Be-1;return this._list[Pe]}}class Ht{constructor(ue){this._type=ue,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(ue){let ve=this._list;if(ve.length===0)return-2;let Pe=ve.length-1,xe=0,Be=0,ot=Pe,ut=0;if(ue<ve[0].originalBeginDts)return ut=-1,ut;for(;Be<=ot;)if(xe=Be+Math.floor((ot-Be)/2),xe===Pe||ue>ve[xe].lastSample.originalDts&&ue<ve[xe+1].originalBeginDts){ut=xe;break}else ve[xe].originalBeginDts<ue?Be=xe+1:ot=xe-1;return ut}_searchNearestSegmentAfter(ue){return this._searchNearestSegmentBefore(ue)+1}append(ue){let ve=this._list,Pe=ue,xe=this._lastAppendLocation,Be=0;xe!==-1&&xe<ve.length&&Pe.originalBeginDts>=ve[xe].lastSample.originalDts&&(xe===ve.length-1||xe<ve.length-1&&Pe.originalBeginDts<ve[xe+1].originalBeginDts)?Be=xe+1:ve.length>0&&(Be=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=Be,this._list.splice(Be,0,Pe)}getLastSegmentBefore(ue){let ve=this._searchNearestSegmentBefore(ue);return ve>=0?this._list[ve]:null}getLastSampleBefore(ue){let ve=this.getLastSegmentBefore(ue);return ve!=null?ve.lastSample:null}getLastSyncPointBefore(ue){let ve=this._searchNearestSegmentBefore(ue),Pe=this._list[ve].syncPoints;for(;Pe.length===0&&ve>0;)ve--,Pe=this._list[ve].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}class bt{constructor(ue){this.TAG="MP4Remuxer",this._config=ue,this._isLive=ue.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 Ht("audio"),this._videoSegmentInfoList=new Ht("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(ue){return ue.onDataAvailable=this.remux.bind(this),ue.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(ue){this._onInitSegment=ue}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(ue){this._onMediaSegment=ue}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(ue){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(ue,ve){if(!this._onMediaSegment)throw new me("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ue,ve),this._remuxVideo(ve),this._remuxAudio(ue)}_onTrackMetadataReceived(ue,ve){let Pe=null,xe="mp4",Be=ve.codec;if(ue==="audio")this._audioMeta=ve,ve.codec==="mp3"&&this._mp3UseMpegAudio?(xe="mpeg",Be="",Pe=new Uint8Array):Pe=ze.generateInitSegment(ve);else if(ue==="video")this._videoMeta=ve,Pe=ze.generateInitSegment(ve);else return;if(!this._onInitSegment)throw new me("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ue,{type:ue,data:Pe.buffer,codec:Be,container:`${ue}/${xe}`,mediaDuration:ve.duration})}_calculateDtsBase(ue,ve){this._dtsBaseInited||(ue.samples&&ue.samples.length&&(this._audioDtsBase=ue.samples[0].dts),ve.samples&&ve.samples.length&&(this._videoDtsBase=ve.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let ue=this._videoStashedLastSample,ve=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ue!=null&&(Pe.samples.push(ue),Pe.length=ue.length);let xe={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};ve!=null&&(xe.samples.push(ve),xe.length=ve.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(xe,!0)}_remuxAudio(ue,ve){if(this._audioMeta==null)return;let Pe=ue,xe=Pe.samples,Be,ot=-1,ut=-1,rn=-1,Zt=this._audioMeta.refSampleDuration,qt=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,bn=this._dtsBaseInited&&this._audioNextDts===void 0,Rt=!1;if(!xe||xe.length===0||xe.length===1&&!ve)return;let $e=0,At=null,Ft=0;qt?($e=0,Ft=Pe.length):($e=8,Ft=8+Pe.length);let wt=null;if(xe.length>1&&(wt=xe.pop(),Ft-=wt.length),this._audioStashedLastSample!=null){let cn=this._audioStashedLastSample;this._audioStashedLastSample=null,xe.unshift(cn),Ft+=cn.length}wt!=null&&(this._audioStashedLastSample=wt);let Bt=xe[0].dts-this._dtsBase;if(this._audioNextDts)Be=Bt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())Be=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Rt=!0);else{let cn=this._audioSegmentInfoList.getLastSampleBefore(Bt);if(cn!=null){let Ln=Bt-(cn.originalDts+cn.duration);Ln<=3&&(Ln=0);let Jn=cn.dts+cn.duration+Ln;Be=Bt-Jn}else Be=0}if(Rt){let cn=Bt-Be,Ln=this._videoSegmentInfoList.getLastSegmentBefore(Bt);if(Ln!=null&&Ln.beginDts<cn){let Jn=Ot.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Jn){let rr=Ln.beginDts,fr=cn-Ln.beginDts;fe.v(this.TAG,`InsertPrefixSilentAudio: dts: ${rr}, duration: ${fr}`),xe.unshift({unit:Jn,dts:rr,pts:rr}),Ft+=Jn.byteLength}}else Rt=!1}let Kt=[];for(let cn=0;cn<xe.length;cn++){let Ln=xe[cn],Jn=Ln.unit,rr=Ln.dts-this._dtsBase,fr=rr-Be;ot===-1&&(ot=fr);let Ut=0;cn!==xe.length-1?Ut=xe[cn+1].dts-this._dtsBase-Be-fr:wt!=null?Ut=wt.dts-this._dtsBase-Be-fr:Kt.length>=1?Ut=Kt[Kt.length-1].duration:Ut=Math.floor(Zt);let Lr=!1,dr=null;if(Ut>Zt*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!b.safari){Lr=!0;let Xr=Math.abs(Ut-Zt),Sr=Math.ceil(Xr/Zt),sn=fr+Zt;fe.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
dts: ${fr+Ut} ms, expected: ${fr+Math.round(Zt)} ms, delta: ${Math.round(Xr)} ms, generate: ${Sr} frames`);let wn=Ot.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);wn==null&&(fe.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),wn=Jn),dr=[];for(let mn=0;mn<Sr;mn++){let ir=Math.round(sn);if(dr.length>0){let Br=dr[dr.length-1];Br.duration=ir-Br.dts}let ar={dts:ir,pts:ir,cts:0,unit:wn,size:wn.byteLength,duration:0,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};dr.push(ar),Ft+=ar.size,sn+=Zt}let Hn=dr[dr.length-1];Hn.duration=fr+Ut-Hn.dts,Ut=Math.round(Zt)}Kt.push({dts:fr,pts:fr,cts:0,unit:Ln.unit,size:Ln.unit.byteLength,duration:Ut,originalDts:rr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Lr&&Kt.push.apply(Kt,dr)}qt?At=new Uint8Array(Ft):(At=new Uint8Array(Ft),At[0]=Ft>>>24&255,At[1]=Ft>>>16&255,At[2]=Ft>>>8&255,At[3]=Ft&255,At.set(ze.types.mdat,4));for(let cn=0;cn<Kt.length;cn++){let Ln=Kt[cn].unit;At.set(Ln,$e),$e+=Ln.byteLength}let Xt=Kt[Kt.length-1];ut=Xt.dts+Xt.duration,this._audioNextDts=ut;let yn=new jt;yn.beginDts=ot,yn.endDts=ut,yn.beginPts=ot,yn.endPts=ut,yn.originalBeginDts=Kt[0].originalDts,yn.originalEndDts=Xt.originalDts+Xt.duration,yn.firstSample=new Mt(Kt[0].dts,Kt[0].pts,Kt[0].duration,Kt[0].originalDts,!1),yn.lastSample=new Mt(Xt.dts,Xt.pts,Xt.duration,Xt.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(yn),Pe.samples=Kt,Pe.sequenceNumber++;let Nn=null;qt?Nn=new Uint8Array:Nn=ze.moof(Pe,ot),Pe.samples=[],Pe.length=0;let Un={type:"audio",data:this._mergeBoxes(Nn,At).buffer,sampleCount:Kt.length,info:yn};qt&&bn&&(Un.timestampOffset=ot),this._onMediaSegment("audio",Un)}_remuxVideo(ue,ve){if(this._videoMeta==null)return;let Pe=ue,xe=Pe.samples,Be,ot=-1,ut=-1,rn=-1,Zt=-1;if(!xe||xe.length===0||xe.length===1&&!ve)return;let qt=8,bn=null,Rt=8+ue.length,$e=null;if(xe.length>1&&($e=xe.pop(),Rt-=$e.length),this._videoStashedLastSample!=null){let Xt=this._videoStashedLastSample;this._videoStashedLastSample=null,xe.unshift(Xt),Rt+=Xt.length}$e!=null&&(this._videoStashedLastSample=$e);let At=xe[0].dts-this._dtsBase;if(this._videoNextDts)Be=At-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())Be=0;else{let Xt=this._videoSegmentInfoList.getLastSampleBefore(At);if(Xt!=null){let yn=At-(Xt.originalDts+Xt.duration);yn<=3&&(yn=0);let Nn=Xt.dts+Xt.duration+yn;Be=At-Nn}else Be=0}let Ft=new jt,wt=[];for(let Xt=0;Xt<xe.length;Xt++){let yn=xe[Xt],Nn=yn.dts-this._dtsBase,Un=yn.isKeyframe,cn=Nn-Be,Ln=yn.cts,Jn=cn+Ln;ot===-1&&(ot=cn,rn=Jn);let rr=0;if(Xt!==xe.length-1?rr=xe[Xt+1].dts-this._dtsBase-Be-cn:$e!=null?rr=$e.dts-this._dtsBase-Be-cn:wt.length>=1?rr=wt[wt.length-1].duration:rr=Math.floor(this._videoMeta.refSampleDuration),Un){let fr=new Mt(cn,Jn,rr,yn.dts,!0);fr.fileposition=yn.fileposition,Ft.appendSyncPoint(fr)}wt.push({dts:cn,pts:Jn,cts:Ln,units:yn.units,size:yn.length,isKeyframe:Un,duration:rr,originalDts:Nn,flags:{isLeading:0,dependsOn:Un?2:1,isDependedOn:Un?1:0,hasRedundancy:0,isNonSync:Un?0:1}})}bn=new Uint8Array(Rt),bn[0]=Rt>>>24&255,bn[1]=Rt>>>16&255,bn[2]=Rt>>>8&255,bn[3]=Rt&255,bn.set(ze.types.mdat,4);for(let Xt=0;Xt<wt.length;Xt++){let yn=wt[Xt].units;for(;yn.length;){let Un=yn.shift().data;bn.set(Un,qt),qt+=Un.byteLength}}let Bt=wt[wt.length-1];if(ut=Bt.dts+Bt.duration,Zt=Bt.pts+Bt.duration,this._videoNextDts=ut,Ft.beginDts=ot,Ft.endDts=ut,Ft.beginPts=rn,Ft.endPts=Zt,Ft.originalBeginDts=wt[0].originalDts,Ft.originalEndDts=Bt.originalDts+Bt.duration,Ft.firstSample=new Mt(wt[0].dts,wt[0].pts,wt[0].duration,wt[0].originalDts,wt[0].isKeyframe),Ft.lastSample=new Mt(Bt.dts,Bt.pts,Bt.duration,Bt.originalDts,Bt.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Ft),Pe.samples=wt,Pe.sequenceNumber++,this._forceFirstIDR){let Xt=wt[0].flags;Xt.dependsOn=2,Xt.isNonSync=0}let Kt=ze.moof(Pe,ot);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Kt,bn).buffer,sampleCount:wt.length,info:Ft})}_mergeBoxes(ue,ve){let Pe=new Uint8Array(ue.byteLength+ve.byteLength);return Pe.set(ue,0),Pe.set(ve,ue.byteLength),Pe}}var fn=bt,Et={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 Sn{constructor(ue,ve){this.TAG="TransmuxingController",this._emitter=new(ye()),this._config=ve,ue.segments||(ue.segments=[{duration:ue.duration,filesize:ue.filesize,url:ue.url}]),typeof ue.cors!="boolean"&&(ue.cors=!0),typeof ue.withCredentials!="boolean"&&(ue.withCredentials=!1),this._mediaDataSource=ue,this._currentSegmentIndex=0;let Pe=0;this._mediaDataSource.segments.forEach(xe=>{xe.timestampBase=Pe,Pe+=xe.duration,xe.cors=ue.cors,xe.withCredentials=ue.withCredentials,ve.referrerPolicy&&(xe.referrerPolicy=ve.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(ue,ve){this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(ue,ve){this._currentSegmentIndex=ue;let Pe=this._mediaDataSource.segments[ue],xe=this._ioctl=new Fe(Pe,this._config,ue);xe.onError=this._onIOException.bind(this),xe.onSeeked=this._onIOSeeked.bind(this),xe.onComplete=this._onIOComplete.bind(this),xe.onRedirect=this._onIORedirect.bind(this),xe.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),ve?this._demuxer.bindDataSource(this._ioctl):xe.onDataArrival=this._onInitChunkArrival.bind(this),xe.open(ve)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(ue){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let ve=this._searchSegmentIndexContains(ue);if(ve===this._currentSegmentIndex){let Pe=this._mediaInfo.segments[ve];if(Pe==null)this._pendingSeekTime=ue;else{let xe=Pe.getNearestKeyframe(ue);this._remuxer.seek(xe.milliseconds),this._ioctl.seek(xe.fileposition),this._pendingResolveSeekPoint=xe.milliseconds}}else{let Pe=this._mediaInfo.segments[ve];if(Pe==null)this._pendingSeekTime=ue,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(ve);else{let xe=Pe.getNearestKeyframe(ue);this._internalAbort(),this._remuxer.seek(ue),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[ve].timestampBase,this._loadSegment(ve,xe.fileposition),this._pendingResolveSeekPoint=xe.milliseconds,this._reportSegmentMediaInfo(ve)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(ue){let ve=this._mediaDataSource.segments,Pe=ve.length-1;for(let xe=0;xe<ve.length;xe++)if(ue<ve[xe].timestampBase){Pe=xe-1;break}return Pe}_onInitChunkArrival(ue,ve){let Pe=null,xe=0;if(ve>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,xe=this._demuxer.parseChunks(ue,ve);else if((Pe=We.probe(ue)).match){this._demuxer=new We(Pe,this._config),this._remuxer||(this._remuxer=new fn(this._config));let Be=this._mediaDataSource;Be.duration!=null&&!isNaN(Be.duration)&&(this._demuxer.overridedDuration=Be.duration),typeof Be.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Be.hasAudio),typeof Be.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Be.hasVideo),this._demuxer.timestampBase=Be.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),xe=this._demuxer.parseChunks(ue,ve)}else Pe=null,fe.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Et.DEMUX_ERROR,Ne.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),xe=0;return xe}_onMediaInfo(ue){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ue),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Pt.prototype));let ve=Object.assign({},ue);Object.setPrototypeOf(ve,Pt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=ve,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let Pe=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(Pe)})}_onMetaDataArrived(ue){this._emitter.emit(Et.METADATA_ARRIVED,ue)}_onScriptDataArrived(ue){this._emitter.emit(Et.SCRIPTDATA_ARRIVED,ue)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(ue){let Pe=ue+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Et.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(ue){let ve=this._ioctl.extraData;this._mediaDataSource.segments[ve].redirectedURL=ue}_onIORecoveredEarlyEof(){this._emitter.emit(Et.RECOVERED_EARLY_EOF)}_onIOException(ue,ve){fe.e(this.TAG,`IOException: type = ${ue}, code = ${ve.code}, msg = ${ve.msg}`),this._emitter.emit(Et.IO_ERROR,ue,ve),this._disableStatisticsReporter()}_onDemuxException(ue,ve){fe.e(this.TAG,`DemuxException: type = ${ue}, info = ${ve}`),this._emitter.emit(Et.DEMUX_ERROR,ue,ve)}_onRemuxerInitSegmentArrival(ue,ve){this._emitter.emit(Et.INIT_SEGMENT,ue,ve)}_onRemuxerMediaSegmentArrival(ue,ve){if(this._pendingSeekTime==null&&(this._emitter.emit(Et.MEDIA_SEGMENT,ue,ve),this._pendingResolveSeekPoint!=null&&ue==="video")){let Pe=ve.info.syncPoints,xe=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,b.safari&&Pe.length>0&&Pe[0].originalDts===xe&&(xe=Pe[0].pts),this._emitter.emit(Et.RECOMMEND_SEEKPOINT,xe)}}_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(ue){let ve=this._mediaInfo.segments[ue],Pe=Object.assign({},ve);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(Et.MEDIA_INFO,Pe)}_reportStatisticsInfo(){let ue={};ue.url=this._ioctl.currentURL,ue.hasRedirect=this._ioctl.hasRedirect,ue.hasRedirect&&(ue.redirectedURL=this._ioctl.currentRedirectedURL),ue.speed=this._ioctl.currentSpeed,ue.loaderType=this._ioctl.loaderType,ue.currentSegmentIndex=this._currentSegmentIndex,ue.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Et.STATISTICS_INFO,ue)}}var pn=Sn,xn=function($t){let ue="TransmuxingWorker",ve=null,Pe=Ft.bind(this);ge.install(),$t.addEventListener("message",function(wt){switch(wt.data.cmd){case"init":ve=new pn(wt.data.param[0],wt.data.param[1]),ve.on(Et.IO_ERROR,Rt.bind(this)),ve.on(Et.DEMUX_ERROR,$e.bind(this)),ve.on(Et.INIT_SEGMENT,xe.bind(this)),ve.on(Et.MEDIA_SEGMENT,Be.bind(this)),ve.on(Et.LOADING_COMPLETE,ot.bind(this)),ve.on(Et.RECOVERED_EARLY_EOF,ut.bind(this)),ve.on(Et.MEDIA_INFO,rn.bind(this)),ve.on(Et.METADATA_ARRIVED,Zt.bind(this)),ve.on(Et.SCRIPTDATA_ARRIVED,qt.bind(this)),ve.on(Et.STATISTICS_INFO,bn.bind(this)),ve.on(Et.RECOMMEND_SEEKPOINT,At.bind(this));break;case"destroy":ve&&(ve.destroy(),ve=null),$t.postMessage({msg:"destroyed"});break;case"start":ve.start();break;case"stop":ve.stop();break;case"seek":ve.seek(wt.data.param);break;case"pause":ve.pause();break;case"resume":ve.resume();break;case"logging_config":{let Bt=wt.data.param;nt.applyConfig(Bt),Bt.enableCallback===!0?nt.addLogListener(Pe):nt.removeLogListener(Pe);break}}});function xe(wt,Bt){let Kt={msg:Et.INIT_SEGMENT,data:{type:wt,data:Bt}};$t.postMessage(Kt,[Bt.data])}function Be(wt,Bt){let Kt={msg:Et.MEDIA_SEGMENT,data:{type:wt,data:Bt}};$t.postMessage(Kt,[Bt.data])}function ot(){let wt={msg:Et.LOADING_COMPLETE};$t.postMessage(wt)}function ut(){let wt={msg:Et.RECOVERED_EARLY_EOF};$t.postMessage(wt)}function rn(wt){let Bt={msg:Et.MEDIA_INFO,data:wt};$t.postMessage(Bt)}function Zt(wt){let Bt={msg:Et.METADATA_ARRIVED,data:wt};$t.postMessage(Bt)}function qt(wt){let Bt={msg:Et.SCRIPTDATA_ARRIVED,data:wt};$t.postMessage(Bt)}function bn(wt){let Bt={msg:Et.STATISTICS_INFO,data:wt};$t.postMessage(Bt)}function Rt(wt,Bt){$t.postMessage({msg:Et.IO_ERROR,data:{type:wt,info:Bt}})}function $e(wt,Bt){$t.postMessage({msg:Et.DEMUX_ERROR,data:{type:wt,info:Bt}})}function At(wt){$t.postMessage({msg:Et.RECOMMEND_SEEKPOINT,data:wt})}function Ft(wt,Bt){$t.postMessage({msg:"logcat_callback",data:{type:wt,logcat:Bt}})}};class Kn{constructor(ue,ve){if(this.TAG="Transmuxer",this._emitter=new(ye()),ve.enableWorker&&typeof Worker!="undefined")try{let Pe=te(82059);this._worker=Pe(xn),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[ue,ve]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},nt.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:nt.getConfig()})}catch(Pe){fe.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new pn(ue,ve)}else this._controller=new pn(ue,ve);if(this._controller){let Pe=this._controller;Pe.on(Et.IO_ERROR,this._onIOError.bind(this)),Pe.on(Et.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(Et.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(Et.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(Et.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(Et.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(Et.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(Et.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(Et.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(Et.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(Et.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),nt.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(ue,ve){this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(ue){this._worker?this._worker.postMessage({cmd:"seek",param:ue}):this._controller.seek(ue)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(Et.INIT_SEGMENT,ue,ve)})}_onMediaSegment(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(Et.MEDIA_SEGMENT,ue,ve)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Et.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Et.RECOVERED_EARLY_EOF)})}_onMediaInfo(ue){Promise.resolve().then(()=>{this._emitter.emit(Et.MEDIA_INFO,ue)})}_onMetaDataArrived(ue){Promise.resolve().then(()=>{this._emitter.emit(Et.METADATA_ARRIVED,ue)})}_onScriptDataArrived(ue){Promise.resolve().then(()=>{this._emitter.emit(Et.SCRIPTDATA_ARRIVED,ue)})}_onStatisticsInfo(ue){Promise.resolve().then(()=>{this._emitter.emit(Et.STATISTICS_INFO,ue)})}_onIOError(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(Et.IO_ERROR,ue,ve)})}_onDemuxError(ue,ve){Promise.resolve().then(()=>{this._emitter.emit(Et.DEMUX_ERROR,ue,ve)})}_onRecommendSeekpoint(ue){Promise.resolve().then(()=>{this._emitter.emit(Et.RECOMMEND_SEEKPOINT,ue)})}_onLoggingConfigChanged(ue){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ue})}_onWorkerMessage(ue){let ve=ue.data,Pe=ve.data;if(ve.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(ve.msg){case Et.INIT_SEGMENT:case Et.MEDIA_SEGMENT:this._emitter.emit(ve.msg,Pe.type,Pe.data);break;case Et.LOADING_COMPLETE:case Et.RECOVERED_EARLY_EOF:this._emitter.emit(ve.msg);break;case Et.MEDIA_INFO:Object.setPrototypeOf(Pe,Pt.prototype),this._emitter.emit(ve.msg,Pe);break;case Et.METADATA_ARRIVED:case Et.SCRIPTDATA_ARRIVED:case Et.STATISTICS_INFO:this._emitter.emit(ve.msg,Pe);break;case Et.IO_ERROR:case Et.DEMUX_ERROR:this._emitter.emit(ve.msg,Pe.type,Pe.info);break;case Et.RECOMMEND_SEEKPOINT:this._emitter.emit(ve.msg,Pe);break;case"logcat_callback":fe.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}var er=Kn,Yn={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class pr{constructor(ue){this.TAG="MSEController",this._config=ue,this._emitter=new(ye()),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 Dt}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(ue,ve){this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}attachMediaElement(ue){if(this._mediaSource)throw new me("MediaSource has been attached to an HTMLMediaElement!");let ve=this._mediaSource=new window.MediaSource;ve.addEventListener("sourceopen",this.e.onSourceOpen),ve.addEventListener("sourceended",this.e.onSourceEnded),ve.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ue,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ue.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let ue=this._mediaSource;for(let ve in this._sourceBuffers){let Pe=this._pendingSegments[ve];Pe.splice(0,Pe.length),this._pendingSegments[ve]=null,this._pendingRemoveRanges[ve]=null,this._lastInitSegments[ve]=null;let xe=this._sourceBuffers[ve];if(xe){if(ue.readyState!=="closed"){try{ue.removeSourceBuffer(xe)}catch(Be){fe.e(this.TAG,Be.message)}xe.removeEventListener("error",this.e.onSourceBufferError),xe.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[ve]=null,this._sourceBuffers[ve]=null}}if(ue.readyState==="open")try{ue.endOfStream()}catch(ve){fe.e(this.TAG,ve.message)}ue.removeEventListener("sourceopen",this.e.onSourceOpen),ue.removeEventListener("sourceended",this.e.onSourceEnded),ue.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(ue,ve){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ue),this._pendingSegments[ue.type].push(ue);return}let Pe=ue,xe=`${Pe.container}`;Pe.codec&&Pe.codec.length>0&&(xe+=`;codecs=${Pe.codec}`);let Be=!1;if(fe.v(this.TAG,"Received Initialization Segment, mimeType: "+xe),this._lastInitSegments[Pe.type]=Pe,xe!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])fe.v(this.TAG,`Notice: ${Pe.type} mimeType changed, origin: ${this._mimeTypes[Pe.type]}, target: ${xe}`);else{Be=!0;try{let ot=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(xe);ot.addEventListener("error",this.e.onSourceBufferError),ot.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(ot){fe.e(this.TAG,ot.message),this._emitter.emit(Yn.ERROR,{code:ot.code,msg:ot.message});return}}this._mimeTypes[Pe.type]=xe}ve||this._pendingSegments[Pe.type].push(Pe),Be||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(ue){let ve=ue;this._pendingSegments[ve.type].push(ve),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let Pe=this._sourceBuffers[ve.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(ue){for(let ve in this._sourceBuffers){if(!this._sourceBuffers[ve])continue;let Pe=this._sourceBuffers[ve];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(Be){fe.e(this.TAG,Be.message)}this._idrList.clear();let xe=this._pendingSegments[ve];if(xe.splice(0,xe.length),this._mediaSource.readyState!=="closed"){for(let Be=0;Be<Pe.buffered.length;Be++){let ot=Pe.buffered.start(Be),ut=Pe.buffered.end(Be);this._pendingRemoveRanges[ve].push({start:ot,end:ut})}if(Pe.updating||this._doRemoveRanges(),b.safari){let Be=this._lastInitSegments[ve];Be&&(this._pendingSegments[ve].push(Be),Pe.updating||this._doAppendSegments())}}}}endOfStream(){let ue=this._mediaSource,ve=this._sourceBuffers;if(!ue||ue.readyState!=="open"){ue&&ue.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}ve.video&&ve.video.updating||ve.audio&&ve.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,ue.endOfStream())}getNearestKeyframe(ue){return this._idrList.getLastSyncPointBeforeDts(ue)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let ue=this._mediaElement.currentTime;for(let ve in this._sourceBuffers){let Pe=this._sourceBuffers[ve];if(Pe){let xe=Pe.buffered;if(xe.length>=1&&ue-xe.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let ue=this._mediaElement.currentTime;for(let ve in this._sourceBuffers){let Pe=this._sourceBuffers[ve];if(Pe){let xe=Pe.buffered,Be=!1;for(let ot=0;ot<xe.length;ot++){let ut=xe.start(ot),rn=xe.end(ot);if(ut<=ue&&ue<rn+3){if(ue-ut>=this._config.autoCleanupMaxBackwardDuration){Be=!0;let Zt=ue-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[ve].push({start:ut,end:Zt})}}else rn<ue&&(Be=!0,this._pendingRemoveRanges[ve].push({start:ut,end:rn}))}Be&&!Pe.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let ue=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||ue.video&&ue.video.updating||ue.audio&&ue.audio.updating)return;let ve=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(ve)||Pe>ve)&&(fe.v(this.TAG,`Update MediaSource duration from ${ve} to ${Pe}`),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let ue in this._pendingRemoveRanges){if(!this._sourceBuffers[ue]||this._sourceBuffers[ue].updating)continue;let ve=this._sourceBuffers[ue],Pe=this._pendingRemoveRanges[ue];for(;Pe.length&&!ve.updating;){let xe=Pe.shift();ve.remove(xe.start,xe.end)}}}_doAppendSegments(){let ue=this._pendingSegments;for(let ve in ue)if(!(!this._sourceBuffers[ve]||this._sourceBuffers[ve].updating)&&ue[ve].length>0){let Pe=ue[ve].shift();if(Pe.timestampOffset){let xe=this._sourceBuffers[ve].timestampOffset,Be=Pe.timestampOffset/1e3;Math.abs(xe-Be)>.1&&(fe.v(this.TAG,`Update MPEG audio timestampOffset from ${xe} to ${Be}`),this._sourceBuffers[ve].timestampOffset=Be),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[ve].appendBuffer(Pe.data),this._isBufferFull=!1,ve==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(xe){this._pendingSegments[ve].unshift(Pe),xe.code===22?(this._isBufferFull||this._emitter.emit(Yn.BUFFER_FULL),this._isBufferFull=!0):(fe.e(this.TAG,xe.message),this._emitter.emit(Yn.ERROR,{code:xe.code,msg:xe.message}))}}}_onSourceOpen(){if(fe.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let ue=this._pendingSourceBufferInit;for(;ue.length;){let ve=ue.shift();this.appendInitSegment(ve,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Yn.SOURCE_OPEN)}_onSourceEnded(){fe.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){fe.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 ue=this._pendingSegments;return ue.video.length>0||ue.audio.length>0}_hasPendingRemoveRanges(){let ue=this._pendingRemoveRanges;return ue.video.length>0||ue.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Yn.UPDATE_END)}_onSourceBufferError(ue){fe.e(this.TAG,`SourceBuffer Error: ${ue}`)}}var vr=pr;const tn={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Xn={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:Ne.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Ne.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Ne.CODEC_UNSUPPORTED};class sr{constructor(ue,ve){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(ye()),this._config=it(),typeof ve=="object"&&Object.assign(this._config,ve),ue.type.toLowerCase()!=="flv")throw new ae("FlvPlayer requires an flv MediaDataSource input!");ue.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=ue,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(ue,ve){ue===Lt.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Lt.MEDIA_INFO,this.mediaInfo)}):ue===Lt.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Lt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}attachMediaElement(ue){if(this._mediaElement=ue,ue.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ue.addEventListener("seeking",this.e.onvSeeking),ue.addEventListener("canplay",this.e.onvCanPlay),ue.addEventListener("stalled",this.e.onvStalled),ue.addEventListener("progress",this.e.onvProgress),this._msectl=new vr(this._config),this._msectl.on(Yn.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Yn.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Yn.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Yn.ERROR,ve=>{this._emitter.emit(Lt.ERROR,tn.MEDIA_ERROR,Xn.MEDIA_MSE_ERROR,ve)}),this._msectl.attachMediaElement(ue),this._pendingSeekTime!=null)try{ue.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ve){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new me("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new me("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 er(this._mediaDataSource,this._config),this._transmuxer.on(Et.INIT_SEGMENT,(ue,ve)=>{this._msectl.appendInitSegment(ve)}),this._transmuxer.on(Et.MEDIA_SEGMENT,(ue,ve)=>{if(this._msectl.appendMediaSegment(ve),this._config.lazyLoad&&!this._config.isLive){let Pe=this._mediaElement.currentTime;ve.info.endDts>=(Pe+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(fe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Et.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Lt.LOADING_COMPLETE)}),this._transmuxer.on(Et.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Lt.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Et.IO_ERROR,(ue,ve)=>{this._emitter.emit(Lt.ERROR,tn.NETWORK_ERROR,ue,ve)}),this._transmuxer.on(Et.DEMUX_ERROR,(ue,ve)=>{this._emitter.emit(Lt.ERROR,tn.MEDIA_ERROR,ue,{code:-1,msg:ve})}),this._transmuxer.on(Et.MEDIA_INFO,ue=>{this._mediaInfo=ue,this._emitter.emit(Lt.MEDIA_INFO,Object.assign({},ue))}),this._transmuxer.on(Et.METADATA_ARRIVED,ue=>{this._emitter.emit(Lt.METADATA_ARRIVED,ue)}),this._transmuxer.on(Et.SCRIPTDATA_ARRIVED,ue=>{this._emitter.emit(Lt.SCRIPTDATA_ARRIVED,ue)}),this._transmuxer.on(Et.STATISTICS_INFO,ue=>{this._statisticsInfo=this._fillStatisticsInfo(ue),this._emitter.emit(Lt.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Et.RECOMMEND_SEEKPOINT,ue=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ue/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(ue){this._mediaElement.volume=ue}get muted(){return this._mediaElement.muted}set muted(ue){this._mediaElement.muted=ue}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ue){this._mediaElement?this._internalSeek(ue):this._pendingSeekTime=ue}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(ue){if(ue.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ue;let ve=!0,Pe=0,xe=0;if(this._mediaElement.getVideoPlaybackQuality){let Be=this._mediaElement.getVideoPlaybackQuality();Pe=Be.totalVideoFrames,xe=Be.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,xe=this._mediaElement.webkitDroppedFrameCount):ve=!1;return ve&&(ue.decodedFrames=Pe,ue.droppedFrames=xe),ue}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let ue=this._mediaElement.buffered,ve=this._mediaElement.currentTime,Pe=0,xe=0;for(let Be=0;Be<ue.length;Be++){let ot=ue.start(Be),ut=ue.end(Be);if(ot<=ve&&ve<ut){Pe=ot,xe=ut;break}}xe>=ve+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(fe.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){fe.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 ue=this._mediaElement.currentTime,ve=this._mediaElement.buffered,Pe=!1;for(let xe=0;xe<ve.length;xe++){let Be=ve.start(xe),ot=ve.end(xe);if(ue>=Be&&ue<ot){ue>=ot-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(fe.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(ue){let ve=this._mediaElement.buffered;for(let Pe=0;Pe<ve.length;Pe++){let xe=ve.start(Pe),Be=ve.end(Pe);if(ue>=xe&&ue<Be)return!0}return!1}_internalSeek(ue){let ve=this._isTimepointBuffered(ue),Pe=!1,xe=0;if(ue<1&&this._mediaElement.buffered.length>0){let Be=this._mediaElement.buffered.start(0);(Be<1&&ue<Be||b.safari)&&(Pe=!0,xe=b.safari?.1:Be)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=xe;else if(ve){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=ue;else{let Be=this._msectl.getNearestKeyframe(Math.floor(ue*1e3));this._requestSetTime=!0,Be!=null?this._mediaElement.currentTime=Be.dts/1e3:this._mediaElement.currentTime=ue}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(ue),this._transmuxer.seek(Math.floor(ue*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ue)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let ue=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(ue)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(ue),this._transmuxer.seek(Math.floor(ue*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ue))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(ue){let ve=this._mediaElement;if(ue||!this._receivedCanPlay||ve.readyState<2){let Pe=ve.buffered;Pe.length>0&&ve.currentTime<Pe.start(0)&&(fe.w(this.TAG,`Playback seems stuck at ${ve.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(ue){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(ue){let ve=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(ve<1&&Pe.length>0){let xe=Pe.start(0);if(xe<1&&ve<xe||b.safari){this._requestSetTime=!0,this._mediaElement.currentTime=b.safari?.1:xe;return}}if(this._isTimepointBuffered(ve)){if(this._alwaysSeekKeyframe){let xe=this._msectl.getNearestKeyframe(Math.floor(ve*1e3));xe!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=xe.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:ve,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(ue){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(ue){this._checkAndResumeStuckPlayback(!0)}_onvProgress(ue){this._checkAndResumeStuckPlayback()}}var Wn=sr;class lr{constructor(ue,ve){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(ye()),this._config=it(),typeof ve=="object"&&Object.assign(this._config,ve),ue.type.toLowerCase()==="flv")throw new ae("NativePlayer does't support flv MediaDataSource input!");if(ue.hasOwnProperty("segments"))throw new ae(`NativePlayer(${ue.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=ue,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(ue,ve){ue===Lt.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Lt.MEDIA_INFO,this.mediaInfo)}):ue===Lt.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Lt.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(ue,ve)}off(ue,ve){this._emitter.removeListener(ue,ve)}attachMediaElement(ue){if(this._mediaElement=ue,ue.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ue.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(ve){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new me("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(ue){this._mediaElement.volume=ue}get muted(){return this._mediaElement.muted}set muted(ue){this._mediaElement.muted=ue}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(ue){this._mediaElement?this._mediaElement.currentTime=ue:this._pendingSeekTime=ue}get mediaInfo(){let ve={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(ve.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(ve.width=this._mediaElement.videoWidth,ve.height=this._mediaElement.videoHeight)),ve}get statisticsInfo(){let ue={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ue;let ve=!0,Pe=0,xe=0;if(this._mediaElement.getVideoPlaybackQuality){let Be=this._mediaElement.getVideoPlaybackQuality();Pe=Be.totalVideoFrames,xe=Be.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,xe=this._mediaElement.webkitDroppedFrameCount):ve=!1;return ve&&(ue.decodedFrames=Pe,ue.droppedFrames=xe),ue}_onvLoadedMetadata(ue){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Lt.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Lt.STATISTICS_INFO,this.statisticsInfo)}}var Ir=lr;ge.install();function Rr($t,ue){let ve=$t;if(ve==null||typeof ve!="object")throw new ae("MediaDataSource must be an javascript object!");if(!ve.hasOwnProperty("type"))throw new ae("MediaDataSource must has type field to indicate video file type!");switch(ve.type){case"flv":return new Wn(ve,ue);default:return new Ir(ve,ue)}}function Er(){return ht.supportMSEH264Playback()}function Nr(){return ht.getFeatureList()}let cr={};cr.createPlayer=Rr,cr.isSupported=Er,cr.getFeatureList=Nr,cr.BaseLoader=a,cr.LoaderStatus=oe,cr.LoaderErrors=ne,cr.Events=Lt,cr.ErrorTypes=tn,cr.ErrorDetails=Xn,cr.FlvPlayer=Wn,cr.NativePlayer=Ir,cr.LoggingControl=nt,Object.defineProperty(cr,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Yr=cr},50371:function(ft,Ve){"use strict";function te(){const ee=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ge=1;ge<arguments.length;ge++){const be=ge<0||arguments.length<=ge?void 0:arguments[ge];be&&Object.keys(be).forEach(ye=>{const _e=be[ye];_e!==void 0&&(ee[ye]=_e)})}return ee}Ve.Z=te},13845:function(ft,Ve,te){"use strict";te.d(Ve,{F:function(){return ee},Z:function(){return ge}});function ee(be){return be!=null&&be===be.window}function ge(be,ye){var _e,fe;if(typeof window=="undefined")return 0;const ie=ye?"scrollTop":"scrollLeft";let de=0;return ee(be)?de=be[ye?"pageYOffset":"pageXOffset"]:be instanceof Document?de=be.documentElement[ie]:(be instanceof HTMLElement||be)&&(de=be[ie]),be&&!ee(be)&&typeof de!="number"&&(de=(fe=((_e=be.ownerDocument)!==null&&_e!==void 0?_e:be).documentElement)===null||fe===void 0?void 0:fe[ie]),de}},56762:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ge}});var ee=te(59301);function ge(){const[,be]=ee.useReducer(ye=>ye+1,0);return be}},68031:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ye}});var ee=te(16089);function ge(_e,fe,ie,de){const le=ie-fe;return _e/=de/2,_e<1?le/2*_e*_e*_e+fe:le/2*((_e-=2)*_e*_e+2)+fe}var be=te(13845);function ye(_e){let fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:ie=()=>window,callback:de,duration:le=450}=fe,me=ie(),ae=(0,be.Z)(me,!0),he=Date.now(),oe=()=>{const a=Date.now()-he,y=ge(a>le?le:a,ae,_e,le);(0,be.F)(me)?me.scrollTo(window.pageXOffset,y):me instanceof Document||me.constructor.name==="HTMLDocument"?me.documentElement.scrollTop=y:me.scrollTop=y,a<le?(0,ee.Z)(oe):typeof de=="function"&&de()};(0,ee.Z)(oe)}},24905:function(ft,Ve,te){"use strict";te.d(Ve,{default:function(){return pe}});var ee=te(92310),ge=te.n(ee),be=te(5630),ye=te(59301),_e=te(36355),fe=te(1684),ie=te(32441),le=ye.createContext(null),me=te(98447),ae=te(14088),he=te(4572),oe=function(Se,Le){var Ee={};for(var je in Se)Object.prototype.hasOwnProperty.call(Se,je)&&Le.indexOf(je)<0&&(Ee[je]=Se[je]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,je=Object.getOwnPropertySymbols(Se);Me<je.length;Me++)Le.indexOf(je[Me])<0&&Object.prototype.propertyIsEnumerable.call(Se,je[Me])&&(Ee[je[Me]]=Se[je[Me]]);return Ee};const ne=(Se,Le)=>{var Ee;const{prefixCls:je,className:Me,rootClassName:mt,children:Xe,indeterminate:pt=!1,style:we,onMouseEnter:Fe,onMouseLeave:He,skipGroup:it=!1,disabled:Ke}=Se,ht=oe(Se,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:_t,direction:Lt,checkbox:kt}=ye.useContext(_e.E_),nt=ye.useContext(le),{isFormItemInput:Qe}=ye.useContext(ie.aM),Pt=ye.useContext(fe.Z),zt=(Ee=(nt==null?void 0:nt.disabled)||Ke)!==null&&Ee!==void 0?Ee:Pt,yt=ye.useRef(ht.value);ye.useEffect(()=>{nt==null||nt.registerValue(ht.value)},[]),ye.useEffect(()=>{if(!it)return ht.value!==yt.current&&(nt==null||nt.cancelValue(yt.current),nt==null||nt.registerValue(ht.value),yt.current=ht.value),()=>nt==null?void 0:nt.cancelValue(ht.value)},[ht.value]);const an=_t("checkbox",je),[Ze,vt]=(0,me.ZP)(an),xt=Object.assign({},ht);nt&&!it&&(xt.onChange=function(){ht.onChange&&ht.onChange.apply(ht,arguments),nt.toggleOption&&nt.toggleOption({label:Xe,value:ht.value})},xt.name=nt.name,xt.checked=nt.value.includes(ht.value));const nn=ge()(`${an}-wrapper`,{[`${an}-rtl`]:Lt==="rtl",[`${an}-wrapper-checked`]:xt.checked,[`${an}-wrapper-disabled`]:zt,[`${an}-wrapper-in-form-item`]:Qe},kt==null?void 0:kt.className,Me,mt,vt),Gt=ge()({[`${an}-indeterminate`]:pt},he.A,vt),st=pt?"mixed":void 0;return Ze(ye.createElement(ae.Z,{component:"Checkbox",disabled:zt},ye.createElement("label",{className:nn,style:Object.assign(Object.assign({},kt==null?void 0:kt.style),we),onMouseEnter:Fe,onMouseLeave:He},ye.createElement(be.Z,Object.assign({"aria-checked":st},xt,{prefixCls:an,className:Gt,disabled:zt,ref:Le})),Xe!==void 0&&ye.createElement("span",null,Xe))))};var y=ye.forwardRef(ne),E=te(26407),b=te(2738),x=function(Se,Le){var Ee={};for(var je in Se)Object.prototype.hasOwnProperty.call(Se,je)&&Le.indexOf(je)<0&&(Ee[je]=Se[je]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,je=Object.getOwnPropertySymbols(Se);Me<je.length;Me++)Le.indexOf(je[Me])<0&&Object.prototype.propertyIsEnumerable.call(Se,je[Me])&&(Ee[je[Me]]=Se[je[Me]]);return Ee};const z=(Se,Le)=>{const{defaultValue:Ee,children:je,options:Me=[],prefixCls:mt,className:Xe,rootClassName:pt,style:we,onChange:Fe}=Se,He=x(Se,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:it,direction:Ke}=ye.useContext(_e.E_),[ht,_t]=ye.useState(He.value||Ee||[]),[Lt,kt]=ye.useState([]);ye.useEffect(()=>{"value"in He&&_t(He.value||[])},[He.value]);const nt=ye.useMemo(()=>Me.map(ct=>typeof ct=="string"||typeof ct=="number"?{label:ct,value:ct}:ct),[Me]),Qe=ct=>{kt(Ge=>Ge.filter(Ne=>Ne!==ct))},Pt=ct=>{kt(Ge=>[].concat((0,E.Z)(Ge),[ct]))},zt=ct=>{const Ge=ht.indexOf(ct.value),Ne=(0,E.Z)(ht);Ge===-1?Ne.push(ct.value):Ne.splice(Ge,1),"value"in He||_t(Ne),Fe==null||Fe(Ne.filter(qe=>Lt.includes(qe)).sort((qe,Ct)=>{const Oe=nt.findIndex(We=>We.value===qe),Ie=nt.findIndex(We=>We.value===Ct);return Oe-Ie}))},yt=it("checkbox",mt),an=`${yt}-group`,[Ze,vt]=(0,me.ZP)(yt),xt=(0,b.Z)(He,["value","disabled"]),nn=Me.length?nt.map(ct=>ye.createElement(y,{prefixCls:yt,key:ct.value.toString(),disabled:"disabled"in ct?ct.disabled:He.disabled,value:ct.value,checked:ht.includes(ct.value),onChange:ct.onChange,className:`${an}-item`,style:ct.style,title:ct.title},ct.label)):je,Gt={toggleOption:zt,value:ht,disabled:He.disabled,name:He.name,registerValue:Pt,cancelValue:Qe},st=ge()(an,{[`${an}-rtl`]:Ke==="rtl"},Xe,pt,vt);return Ze(ye.createElement("div",Object.assign({className:st,style:we},xt,{ref:Le}),ye.createElement(le.Provider,{value:Gt},nn)))},re=ye.forwardRef(z);var se=ye.memo(re);const ce=y;ce.Group=se,ce.__ANT_CHECKBOX=!0;var pe=ce},98447:function(ft,Ve,te){"use strict";te.d(Ve,{C2:function(){return _e}});var ee=te(17313),ge=te(37613),be=te(83116);const ye=fe=>{const{checkboxCls:ie}=fe,de=`${ie}-wrapper`;return[{[`${ie}-group`]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:fe.marginXS,[`> ${fe.antCls}-row`]:{flex:1}}),[de]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${de}`]:{marginInlineStart:0},[`&${de}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ie]:Object.assign(Object.assign({},(0,ee.Wf)(fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:fe.borderRadiusSM,alignSelf:"center",[`${ie}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ie}-inner`]:Object.assign({},(0,ee.oN)(fe))},[`${ie}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:fe.checkboxSize,height:fe.checkboxSize,direction:"ltr",backgroundColor:fe.colorBgContainer,border:`${fe.lineWidth}px ${fe.lineType} ${fe.colorBorder}`,borderRadius:fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:fe.checkboxSize/14*5,height:fe.checkboxSize/14*8,border:`${fe.lineWidthBold}px solid ${fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${fe.motionDurationFast} ${fe.motionEaseInBack}, opacity ${fe.motionDurationFast}`}},"& + span":{paddingInlineStart:fe.paddingXS,paddingInlineEnd:fe.paddingXS}})},{[`
${de}:not(${de}-disabled),
${ie}:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{borderColor:fe.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${ie}-checked:not(${ie}-disabled) ${ie}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ie}-checked:not(${ie}-disabled):after`]:{borderColor:fe.colorPrimaryHover}}},{[`${ie}-checked`]:{[`${ie}-inner`]:{backgroundColor:fe.colorPrimary,borderColor:fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${fe.motionDurationMid} ${fe.motionEaseOutBack} ${fe.motionDurationFast}`}}},[`
${de}-checked:not(${de}-disabled),
${ie}-checked:not(${ie}-disabled)
`]:{[`&:hover ${ie}-inner`]:{backgroundColor:fe.colorPrimaryHover,borderColor:"transparent"}}},{[ie]:{"&-indeterminate":{[`${ie}-inner`]:{backgroundColor:fe.colorBgContainer,borderColor:fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:fe.fontSizeLG/2,height:fe.fontSizeLG/2,backgroundColor:fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${de}-disabled`]:{cursor:"not-allowed"},[`${ie}-disabled`]:{[`&, ${ie}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ie}-inner`]:{background:fe.colorBgContainerDisabled,borderColor:fe.colorBorder,"&:after":{borderColor:fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:fe.colorTextDisabled},[`&${ie}-indeterminate ${ie}-inner::after`]:{background:fe.colorTextDisabled}}}]};function _e(fe,ie){const de=(0,ge.TS)(ie,{checkboxCls:`.${fe}`,checkboxSize:ie.controlInteractiveSize});return[ye(de)]}Ve.ZP=(0,be.Z)("Checkbox",(fe,ie)=>{let{prefixCls:de}=ie;return[_e(de,fe)]})},43428:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return Ze}});var ee=te(92310),ge=te.n(ee),be=te(33708),ye=te(33606),_e=te(43403),fe=te(34280),ie=te(59301),de=ie.createContext(null),le=ie.createContext({}),me=de,ae=te(400),he=te(92413),oe=te(77900),ne=te(10228),a=te(26112),y=te(70425),E=function(xt){var nn=xt.prefixCls,Gt=xt.className,st=xt.style,ct=xt.children,Ge=xt.containerRef,Ne=xt.id,qe=xt.onMouseEnter,Ct=xt.onMouseOver,Oe=xt.onMouseLeave,Ie=xt.onClick,We=xt.onKeyDown,ke=xt.onKeyUp,ze={onMouseEnter:qe,onMouseOver:Ct,onMouseLeave:Oe,onClick:Ie,onKeyDown:We,onKeyUp:ke},at=ie.useContext(le),Ot=at.panel,Mt=(0,y.useComposeRef)(Ot,Ge);return ie.createElement(ie.Fragment,null,ie.createElement("div",(0,he.Z)({id:Ne,className:ge()("".concat(nn,"-content"),Gt),style:(0,be.Z)({},st),"aria-modal":"true",role:"dialog",ref:Mt},ze),ct))},b=E,x=te(48736);function z(vt){return typeof vt=="string"&&String(Number(vt))===vt?((0,x.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(vt)):vt}function re(vt){warning(!("wrapperClassName"in vt),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!vt.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var se={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ce(vt,xt){var nn,Gt,st,ct,Ge=vt.prefixCls,Ne=vt.open,qe=vt.placement,Ct=vt.inline,Oe=vt.push,Ie=vt.forceRender,We=vt.autoFocus,ke=vt.keyboard,ze=vt.rootClassName,at=vt.rootStyle,Ot=vt.zIndex,Mt=vt.className,jt=vt.id,Dt=vt.style,Ht=vt.motion,bt=vt.width,fn=vt.height,un=vt.children,Et=vt.contentWrapperStyle,Sn=vt.mask,pn=vt.maskClosable,Fn=vt.maskMotion,xn=vt.maskClassName,Kn=vt.maskStyle,er=vt.afterOpenChange,Vn=vt.onClose,Yn=vt.onMouseEnter,pr=vt.onMouseOver,vr=vt.onMouseLeave,tn=vt.onClick,Xn=vt.onKeyDown,sr=vt.onKeyUp,Wn=ie.useRef(),lr=ie.useRef(),Ir=ie.useRef();ie.useImperativeHandle(xt,function(){return Wn.current});var Rr=function(bn){var Rt=bn.keyCode,$e=bn.shiftKey;switch(Rt){case ne.Z.TAB:{if(Rt===ne.Z.TAB){if(!$e&&document.activeElement===Ir.current){var At;(At=lr.current)===null||At===void 0||At.focus({preventScroll:!0})}else if($e&&document.activeElement===lr.current){var Ft;(Ft=Ir.current)===null||Ft===void 0||Ft.focus({preventScroll:!0})}}break}case ne.Z.ESC:{Vn&&ke&&(bn.stopPropagation(),Vn(bn));break}}};ie.useEffect(function(){if(Ne&&We){var qt;(qt=Wn.current)===null||qt===void 0||qt.focus({preventScroll:!0})}},[Ne]);var Er=ie.useState(!1),Nr=(0,ye.Z)(Er,2),cr=Nr[0],Yr=Nr[1],$t=ie.useContext(me),ue;Oe===!1?ue={distance:0}:Oe===!0?ue={}:ue=Oe||{};var ve=(nn=(Gt=(st=ue)===null||st===void 0?void 0:st.distance)!==null&&Gt!==void 0?Gt:$t==null?void 0:$t.pushDistance)!==null&&nn!==void 0?nn:180,Pe=ie.useMemo(function(){return{pushDistance:ve,push:function(){Yr(!0)},pull:function(){Yr(!1)}}},[ve]);ie.useEffect(function(){if(Ne){var qt;$t==null||(qt=$t.push)===null||qt===void 0||qt.call($t)}else{var bn;$t==null||(bn=$t.pull)===null||bn===void 0||bn.call($t)}},[Ne]),ie.useEffect(function(){return function(){var qt;$t==null||(qt=$t.pull)===null||qt===void 0||qt.call($t)}},[]);var xe=Sn&&ie.createElement(oe.default,(0,he.Z)({key:"mask"},Fn,{visible:Ne}),function(qt,bn){var Rt=qt.className,$e=qt.style;return ie.createElement("div",{className:ge()("".concat(Ge,"-mask"),Rt,xn),style:(0,be.Z)((0,be.Z)({},$e),Kn),onClick:pn&&Ne?Vn:void 0,ref:bn})}),Be=typeof Ht=="function"?Ht(qe):Ht,ot={};if(cr&&ve)switch(qe){case"top":ot.transform="translateY(".concat(ve,"px)");break;case"bottom":ot.transform="translateY(".concat(-ve,"px)");break;case"left":ot.transform="translateX(".concat(ve,"px)");break;default:ot.transform="translateX(".concat(-ve,"px)");break}qe==="left"||qe==="right"?ot.width=z(bt):ot.height=z(fn);var ut={onMouseEnter:Yn,onMouseOver:pr,onMouseLeave:vr,onClick:tn,onKeyDown:Xn,onKeyUp:sr},rn=ie.createElement(oe.default,(0,he.Z)({key:"panel"},Be,{visible:Ne,forceRender:Ie,onVisibleChanged:function(bn){er==null||er(bn)},removeOnLeave:!1,leavedClassName:"".concat(Ge,"-content-wrapper-hidden")}),function(qt,bn){var Rt=qt.className,$e=qt.style;return ie.createElement("div",(0,he.Z)({className:ge()("".concat(Ge,"-content-wrapper"),Rt),style:(0,be.Z)((0,be.Z)((0,be.Z)({},ot),$e),Et)},(0,a.Z)(vt,{data:!0})),ie.createElement(b,(0,he.Z)({id:jt,containerRef:bn,prefixCls:Ge,className:Mt,style:Dt},ut),un))}),Zt=(0,be.Z)({},at);return Ot&&(Zt.zIndex=Ot),ie.createElement(me.Provider,{value:Pe},ie.createElement("div",{className:ge()(Ge,"".concat(Ge,"-").concat(qe),ze,(ct={},(0,ae.Z)(ct,"".concat(Ge,"-open"),Ne),(0,ae.Z)(ct,"".concat(Ge,"-inline"),Ct),ct)),style:Zt,tabIndex:-1,ref:Wn,onKeyDown:Rr},xe,ie.createElement("div",{tabIndex:0,ref:lr,style:se,"aria-hidden":"true","data-sentinel":"start"}),rn,ie.createElement("div",{tabIndex:0,ref:Ir,style:se,"aria-hidden":"true","data-sentinel":"end"})))}var pe=ie.forwardRef(ce),Se=pe,Le=function(xt){var nn=xt.open,Gt=nn===void 0?!1:nn,st=xt.prefixCls,ct=st===void 0?"rc-drawer":st,Ge=xt.placement,Ne=Ge===void 0?"right":Ge,qe=xt.autoFocus,Ct=qe===void 0?!0:qe,Oe=xt.keyboard,Ie=Oe===void 0?!0:Oe,We=xt.width,ke=We===void 0?378:We,ze=xt.mask,at=ze===void 0?!0:ze,Ot=xt.maskClosable,Mt=Ot===void 0?!0:Ot,jt=xt.getContainer,Dt=xt.forceRender,Ht=xt.afterOpenChange,bt=xt.destroyOnClose,fn=xt.onMouseEnter,un=xt.onMouseOver,Et=xt.onMouseLeave,Sn=xt.onClick,pn=xt.onKeyDown,Fn=xt.onKeyUp,xn=xt.panelRef,Kn=ie.useState(!1),er=(0,ye.Z)(Kn,2),Vn=er[0],Yn=er[1],pr=ie.useState(!1),vr=(0,ye.Z)(pr,2),tn=vr[0],Xn=vr[1];(0,fe.Z)(function(){Xn(!0)},[]);var sr=tn?Gt:!1,Wn=ie.useRef(),lr=ie.useRef();(0,fe.Z)(function(){sr&&(lr.current=document.activeElement)},[sr]);var Ir=function(Yr){var $t;if(Yn(Yr),Ht==null||Ht(Yr),!Yr&&lr.current&&!(($t=Wn.current)!==null&&$t!==void 0&&$t.contains(lr.current))){var ue;(ue=lr.current)===null||ue===void 0||ue.focus({preventScroll:!0})}},Rr=ie.useMemo(function(){return{panel:xn}},[xn]);if(!Dt&&!Vn&&!sr&&bt)return null;var Er={onMouseEnter:fn,onMouseOver:un,onMouseLeave:Et,onClick:Sn,onKeyDown:pn,onKeyUp:Fn},Nr=(0,be.Z)((0,be.Z)({},xt),{},{open:sr,prefixCls:ct,placement:Ne,autoFocus:Ct,keyboard:Ie,width:ke,mask:at,maskClosable:Mt,inline:jt===!1,afterOpenChange:Ir,ref:Wn},Er);return ie.createElement(le.Provider,{value:Rr},ie.createElement(_e.Z,{open:sr||Dt||Vn,autoDestroy:!1,getContainer:jt,autoLock:at&&(sr||Vn)},ie.createElement(Se,Nr)))},Ee=Le,je=Ee,Me=te(62892),mt=te(36355),Xe=te(32441),pt=te(47729),Fe=vt=>{const{prefixCls:xt,title:nn,footer:Gt,extra:st,closeIcon:ct,closable:Ge,onClose:Ne,headerStyle:qe,drawerStyle:Ct,bodyStyle:Oe,footerStyle:Ie,children:We}=vt,ke=ie.useCallback(jt=>ie.createElement("button",{type:"button",onClick:Ne,"aria-label":"Close",className:`${xt}-close`},jt),[Ne]),[ze,at]=(0,pt.Z)(Ge,ct,ke,void 0,!0),Ot=ie.useMemo(()=>!nn&&!ze?null:ie.createElement("div",{style:qe,className:ge()(`${xt}-header`,{[`${xt}-header-close-only`]:ze&&!nn&&!st})},ie.createElement("div",{className:`${xt}-header-title`},at,nn&&ie.createElement("div",{className:`${xt}-title`},nn)),st&&ie.createElement("div",{className:`${xt}-extra`},st)),[ze,at,st,qe,xt,nn]),Mt=ie.useMemo(()=>{if(!Gt)return null;const jt=`${xt}-footer`;return ie.createElement("div",{className:jt,style:Ie},Gt)},[Gt,Ie,xt]);return ie.createElement("div",{className:`${xt}-wrapper-body`,style:Ct},Ot,ie.createElement("div",{className:`${xt}-body`,style:Oe},We),Mt)},He=te(33234),it=te(83116),Ke=te(37613),_t=vt=>{const{componentCls:xt,motionDurationSlow:nn}=vt,Gt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${nn}`}}};return{[xt]:{[`${xt}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${nn}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${xt}-panel-motion`]:{"&-left":[Gt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Gt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Gt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Gt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Lt=vt=>{const{componentCls:xt,zIndexPopup:nn,colorBgMask:Gt,colorBgElevated:st,motionDurationSlow:ct,motionDurationMid:Ge,padding:Ne,paddingLG:qe,fontSizeLG:Ct,lineHeightLG:Oe,lineWidth:Ie,lineType:We,colorSplit:ke,marginSM:ze,colorIcon:at,colorIconHover:Ot,colorText:Mt,fontWeightStrong:jt,footerPaddingBlock:Dt,footerPaddingInline:Ht}=vt,bt=`${xt}-content-wrapper`;return{[xt]:{position:"fixed",inset:0,zIndex:nn,pointerEvents:"none","&-pure":{position:"relative",background:st,[`&${xt}-left`]:{boxShadow:vt.boxShadowDrawerLeft},[`&${xt}-right`]:{boxShadow:vt.boxShadowDrawerRight},[`&${xt}-top`]:{boxShadow:vt.boxShadowDrawerUp},[`&${xt}-bottom`]:{boxShadow:vt.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${xt}-mask`]:{position:"absolute",inset:0,zIndex:nn,background:Gt,pointerEvents:"auto"},[bt]:{position:"absolute",zIndex:nn,maxWidth:"100vw",transition:`all ${ct}`,"&-hidden":{display:"none"}},[`&-left > ${bt}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:vt.boxShadowDrawerLeft},[`&-right > ${bt}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:vt.boxShadowDrawerRight},[`&-top > ${bt}`]:{top:0,insetInline:0,boxShadow:vt.boxShadowDrawerUp},[`&-bottom > ${bt}`]:{bottom:0,insetInline:0,boxShadow:vt.boxShadowDrawerDown},[`${xt}-content`]:{width:"100%",height:"100%",overflow:"auto",background:st,pointerEvents:"auto"},[`${xt}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${xt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Ne}px ${qe}px`,fontSize:Ct,lineHeight:Oe,borderBottom:`${Ie}px ${We} ${ke}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${xt}-extra`]:{flex:"none"},[`${xt}-close`]:{display:"inline-block",marginInlineEnd:ze,color:at,fontWeight:jt,fontSize:Ct,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Ge}`,textRendering:"auto","&:focus, &:hover":{color:Ot,textDecoration:"none"}},[`${xt}-title`]:{flex:1,margin:0,color:Mt,fontWeight:vt.fontWeightStrong,fontSize:Ct,lineHeight:Oe},[`${xt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:qe,overflow:"auto"},[`${xt}-footer`]:{flexShrink:0,padding:`${Dt}px ${Ht}px`,borderTop:`${Ie}px ${We} ${ke}`},"&-rtl":{direction:"rtl"}}}};var kt=(0,it.Z)("Drawer",vt=>{const xt=(0,Ke.TS)(vt,{});return[Lt(xt),_t(xt)]},vt=>({zIndexPopup:vt.zIndexPopupBase,footerPaddingBlock:vt.paddingXS,footerPaddingInline:vt.padding})),nt=te(11575),Qe=function(vt,xt){var nn={};for(var Gt in vt)Object.prototype.hasOwnProperty.call(vt,Gt)&&xt.indexOf(Gt)<0&&(nn[Gt]=vt[Gt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Gt=Object.getOwnPropertySymbols(vt);st<Gt.length;st++)xt.indexOf(Gt[st])<0&&Object.prototype.propertyIsEnumerable.call(vt,Gt[st])&&(nn[Gt[st]]=vt[Gt[st]]);return nn};const Pt=null,zt={distance:180},yt=vt=>{var xt;const{rootClassName:nn,width:Gt,height:st,size:ct="default",mask:Ge=!0,push:Ne=zt,open:qe,afterOpenChange:Ct,onClose:Oe,prefixCls:Ie,getContainer:We,style:ke,className:ze,visible:at,afterVisibleChange:Ot}=vt,Mt=Qe(vt,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:jt,getPrefixCls:Dt,direction:Ht,drawer:bt}=ie.useContext(mt.E_),fn=Dt("drawer",Ie),[un,Et]=kt(fn),Sn=We===void 0&&jt?()=>jt(document.body):We,pn=ge()({"no-mask":!Ge,[`${fn}-rtl`]:Ht==="rtl"},nn,Et),Fn=ie.useMemo(()=>Gt!=null?Gt:ct==="large"?736:378,[Gt,ct]),xn=ie.useMemo(()=>st!=null?st:ct==="large"?736:378,[st,ct]),Kn={motionName:(0,Me.m)(fn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},er=Yn=>({motionName:(0,Me.m)(fn,`panel-motion-${Yn}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Vn=(0,nt.H)();return un(ie.createElement(He.BR,null,ie.createElement(Xe.Ux,{status:!0,override:!0},ie.createElement(je,Object.assign({prefixCls:fn,onClose:Oe,maskMotion:Kn,motion:er},Mt,{open:qe!=null?qe:at,mask:Ge,push:Ne,width:Fn,height:xn,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),ke),className:ge()(bt==null?void 0:bt.className,ze),rootClassName:pn,getContainer:Sn,afterOpenChange:Ct!=null?Ct:Ot,panelRef:Vn}),ie.createElement(Fe,Object.assign({prefixCls:fn},Mt,{onClose:Oe}))))))},an=vt=>{const{prefixCls:xt,style:nn,className:Gt,placement:st="right"}=vt,ct=Qe(vt,["prefixCls","style","className","placement"]),{getPrefixCls:Ge}=ie.useContext(mt.E_),Ne=Ge("drawer",xt),[qe,Ct]=kt(Ne),Oe=ge()(Ne,`${Ne}-pure`,`${Ne}-${st}`,Ct,Gt);return qe(ie.createElement("div",{className:Oe,style:nn},ie.createElement(Fe,Object.assign({prefixCls:Ne},ct))))};yt._InternalPanelDoNotUseOrYouWillBeFired=an;var Ze=yt},91857:function(ft,Ve,te){"use strict";var ee=te(59301),ge=te(38819),be=te(92310),ye=te.n(be),_e=te(31561),fe=te(70425),ie=te(18929),de=te(2738),le=te(79676),me=te(53487),ae=te(92343),he=te(36355),oe=te(20834),ne=te(40875),a=te(88088),y=te(47211);const E=null,b=se=>{const{menu:ce,arrow:pe,prefixCls:Se,children:Le,trigger:Ee,disabled:je,dropdownRender:Me,getPopupContainer:mt,overlayClassName:Xe,rootClassName:pt,open:we,onOpenChange:Fe,visible:He,onVisibleChange:it,mouseEnterDelay:Ke=.15,mouseLeaveDelay:ht=.1,autoAdjustOverflow:_t=!0,placement:Lt="",overlay:kt,transitionName:nt}=se,{getPopupContainer:Qe,getPrefixCls:Pt,direction:zt}=ee.useContext(he.E_),yt=ee.useMemo(()=>{const ze=Pt();return nt!==void 0?nt:Lt.includes("top")?`${ze}-slide-down`:`${ze}-slide-up`},[Pt,Lt,nt]),an=ee.useMemo(()=>Lt?Lt.includes("Center")?Lt.slice(0,Lt.indexOf("Center")):Lt:zt==="rtl"?"bottomRight":"bottomLeft",[Lt,zt]),Ze=Pt("dropdown",Se),[vt,xt]=(0,y.Z)(Ze),[,nn]=(0,a.Z)(),Gt=ee.Children.only(Le),st=(0,ae.Tm)(Gt,{className:ye()(`${Ze}-trigger`,{[`${Ze}-rtl`]:zt==="rtl"},Gt.props.className),disabled:je}),ct=je?[]:Ee;let Ge;ct&&ct.includes("contextMenu")&&(Ge=!0);const[Ne,qe]=(0,ie.Z)(!1,{value:we!=null?we:He}),Ct=(0,fe.useEvent)(ze=>{Fe==null||Fe(ze),it==null||it(ze),qe(ze)}),Oe=ye()(Xe,pt,xt,{[`${Ze}-rtl`]:zt==="rtl"}),Ie=(0,le.Z)({arrowPointAtCenter:typeof pe=="object"&&pe.pointAtCenter,autoAdjustOverflow:_t,offset:nn.marginXXS,arrowWidth:pe?nn.sizePopupArrow:0,borderRadius:nn.borderRadius}),We=ee.useCallback(()=>{qe(!1)},[]),ke=()=>{let ze;return ce!=null&&ce.items?ze=ee.createElement(oe.default,Object.assign({},ce)):typeof kt=="function"?ze=kt():ze=kt,Me&&(ze=Me(ze)),ze=ee.Children.only(typeof ze=="string"?ee.createElement("span",null,ze):ze),ee.createElement(ne.J,{prefixCls:`${Ze}-menu`,expandIcon:ee.createElement("span",{className:`${Ze}-menu-submenu-arrow`},ee.createElement(ge.Z,{className:`${Ze}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:We,validator:at=>{let{mode:Ot}=at}},ze)};return vt(ee.createElement(_e.Z,Object.assign({alignPoint:Ge},(0,de.Z)(se,["rootClassName"]),{mouseEnterDelay:Ke,mouseLeaveDelay:ht,visible:Ne,builtinPlacements:Ie,arrow:!!pe,overlayClassName:Oe,prefixCls:Ze,getPopupContainer:mt||Qe,transitionName:yt,trigger:ct,overlay:ke,placement:an,onVisibleChange:Ct}),st))};function x(se){return Object.assign(Object.assign({},se),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,me.Z)(b,"dropdown",se=>se,x),re=se=>ee.createElement(z,Object.assign({},se),ee.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=re,Ve.Z=b},38854:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return a}});var ee=te(91857),ge=te(92310),be=te.n(ge),ye=te(59301),_e=te(18785),fe=te(3113),ie=te(36355),de=te(81327),le=te(33234),me=te(47211),ae=function(y,E){var b={};for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&E.indexOf(x)<0&&(b[x]=y[x]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,x=Object.getOwnPropertySymbols(y);z<x.length;z++)E.indexOf(x[z])<0&&Object.prototype.propertyIsEnumerable.call(y,x[z])&&(b[x[z]]=y[x[z]]);return b};const he=y=>{const{getPopupContainer:E,getPrefixCls:b,direction:x}=ye.useContext(ie.E_),{prefixCls:z,type:re="default",danger:se,disabled:ce,loading:pe,onClick:Se,htmlType:Le,children:Ee,className:je,menu:Me,arrow:mt,autoFocus:Xe,overlay:pt,trigger:we,align:Fe,open:He,onOpenChange:it,placement:Ke,getPopupContainer:ht,href:_t,icon:Lt=ye.createElement(_e.Z,null),title:kt,buttonsRender:nt=ke=>ke,mouseEnterDelay:Qe,mouseLeaveDelay:Pt,overlayClassName:zt,overlayStyle:yt,destroyPopupOnHide:an,dropdownRender:Ze}=y,vt=ae(y,["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"]),xt=b("dropdown",z),nn=`${xt}-button`,[Gt,st]=(0,me.Z)(xt),ct={menu:Me,arrow:mt,autoFocus:Xe,align:Fe,disabled:ce,trigger:ce?[]:we,onOpenChange:it,getPopupContainer:ht||E,mouseEnterDelay:Qe,mouseLeaveDelay:Pt,overlayClassName:zt,overlayStyle:yt,destroyPopupOnHide:an,dropdownRender:Ze},{compactSize:Ge,compactItemClassnames:Ne}=(0,le.ri)(xt,x),qe=be()(nn,Ne,je,st);"overlay"in y&&(ct.overlay=pt),"open"in y&&(ct.open=He),"placement"in y?ct.placement=Ke:ct.placement=x==="rtl"?"bottomLeft":"bottomRight";const Ct=ye.createElement(fe.ZP,{type:re,danger:se,disabled:ce,loading:pe,onClick:Se,htmlType:Le,href:_t,title:kt},Ee),Oe=ye.createElement(fe.ZP,{type:re,danger:se,icon:Lt}),[Ie,We]=nt([Ct,Oe]);return Gt(ye.createElement(de.Z.Compact,Object.assign({className:qe,size:Ge,block:!0},vt),Ie,ye.createElement(ee.Z,Object.assign({},ct),We)))};he.__ANT_BUTTON=!0;var oe=he;const ne=ee.Z;ne.Button=oe;var a=ne},47211:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ae}});var ee=te(17313),ge=te(13826),be=te(92899),ye=te(29878),_e=te(19447),fe=te(83116),ie=te(37613),le=he=>{const{componentCls:oe,menuCls:ne,colorError:a,colorTextLightSolid:y}=he,E=`${ne}-item`;return{[`${oe}, ${oe}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const me=he=>{const{componentCls:oe,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:re,fontSize:se,dropdownEdgeChildPadding:ce,colorTextDisabled:pe,fontSizeIcon:Se,controlPaddingHorizontal:Le,colorBgElevated:Ee}=he;return[{[oe]:Object.assign(Object.assign({},(0,ee.Wf)(he)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:Se}},[`${oe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:Se},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${oe}-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${oe}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${oe}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${oe}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${oe}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${oe}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${oe}-placement-bottomRight`]:{animationName:ge.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${oe}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${oe}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${oe}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${oe}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${oe}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${oe}-placement-topRight`]:{animationName:ge.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${oe}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${oe}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${oe}-placement-bottomRight`]:{animationName:ge.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${oe}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${oe}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${oe}-placement-topRight`]:{animationName:ge.ly}})},(0,_e.ZP)(he,{colorBg:Ee,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${oe} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${oe}, ${oe}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ce,listStyleType:"none",backgroundColor:Ee,backgroundClip:"padding-box",borderRadius:he.borderRadiusLG,outline:"none",boxShadow:he.boxShadowSecondary},(0,ee.Qy)(he)),{[`${ne}-item-group-title`]:{padding:`${re}px ${Le}px`,color:he.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:se,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:`${re}px ${Le}px`,color:he.colorText,fontWeight:"normal",fontSize:se,lineHeight:he.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:he.borderRadiusSM,"&:hover, &-active":{backgroundColor:he.controlItemBgHover}},(0,ee.Qy)(he)),{"&-selected":{color:he.colorPrimary,backgroundColor:he.controlItemBgActive,"&:hover, &-active":{backgroundColor:he.controlItemBgActiveHover}},"&-disabled":{color:pe,cursor:"not-allowed","&:hover":{color:pe,backgroundColor:Ee,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${he.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:he.colorSplit},[`${oe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:he.paddingXS,[`${oe}-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 ${oe}-menu-submenu-title`]:{[`&, ${oe}-menu-submenu-arrow-icon`]:{color:pe,backgroundColor:Ee,cursor:"not-allowed"}},[`${ne}-submenu-selected ${oe}-menu-submenu-title`]:{color:he.colorPrimary}})}},[(0,ge.oN)(he,"slide-up"),(0,ge.oN)(he,"slide-down"),(0,be.Fm)(he,"move-up"),(0,be.Fm)(he,"move-down"),(0,ye._y)(he,"zoom-big")]]};var ae=(0,fe.Z)("Dropdown",(he,oe)=>{let{rootPrefixCls:ne}=oe;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:re,borderRadiusLG:se}=he,ce=(E-b*x)/2,{dropdownArrowOffset:pe}=(0,_e.fS)({contentRadius:se}),Se=(0,ie.TS)(he,{menuCls:`${re}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:pe,dropdownPaddingVertical:ce,dropdownEdgeChildPadding:z});return[me(Se),le(Se)]},he=>({zIndexPopup:he.zIndexPopupBase+50}))},8628:function(ft,Ve,te){"use strict";var ee=te(59301),ge=te(34280),be=te(56762),ye=te(69507);function _e(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const ie=(0,ee.useRef)({}),de=(0,be.Z)(),le=(0,ye.ZP)();return(0,ge.Z)(()=>{const me=le.subscribe(ae=>{ie.current=ae,fe&&de()});return()=>le.unsubscribe(me)},[]),ie.current}Ve.Z=_e},45818:function(ft,Ve,te){"use strict";te.d(Ve,{D:function(){return z},Z:function(){return ce}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(Se,Le){return ge.createElement(_e.Z,(0,ee.Z)({},Se,{ref:Le,icon:ye}))},ie=ge.forwardRef(fe),de=ie,le=te(33853),me=te(38819),ae=te(92310),he=te.n(ae),oe=te(2738),a=pe=>!isNaN(parseFloat(pe))&&isFinite(pe),y=te(36355),E=te(84966),b=function(pe,Se){var Le={};for(var Ee in pe)Object.prototype.hasOwnProperty.call(pe,Ee)&&Se.indexOf(Ee)<0&&(Le[Ee]=pe[Ee]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ee=Object.getOwnPropertySymbols(pe);je<Ee.length;je++)Se.indexOf(Ee[je])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ee[je])&&(Le[Ee[je]]=pe[Ee[je]]);return Le};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=ge.createContext({}),re=(()=>{let pe=0;return function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return pe+=1,`${Se}${pe}`}})();var ce=ge.forwardRef((pe,Se)=>{const{prefixCls:Le,className:Ee,trigger:je,children:Me,defaultCollapsed:mt=!1,theme:Xe="dark",style:pt={},collapsible:we=!1,reverseArrow:Fe=!1,width:He=200,collapsedWidth:it=80,zeroWidthTriggerStyle:Ke,breakpoint:ht,onCollapse:_t,onBreakpoint:Lt}=pe,kt=b(pe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:nt}=(0,ge.useContext)(E.Gs),[Qe,Pt]=(0,ge.useState)("collapsed"in pe?pe.collapsed:mt),[zt,yt]=(0,ge.useState)(!1);(0,ge.useEffect)(()=>{"collapsed"in pe&&Pt(pe.collapsed)},[pe.collapsed]);const an=(st,ct)=>{"collapsed"in pe||Pt(st),_t==null||_t(st,ct)},Ze=(0,ge.useRef)();Ze.current=st=>{yt(st.matches),Lt==null||Lt(st.matches),Qe!==st.matches&&an(st.matches,"responsive")},(0,ge.useEffect)(()=>{function st(Ge){return Ze.current(Ge)}let ct;if(typeof window!="undefined"){const{matchMedia:Ge}=window;if(Ge&&ht&&ht in x){ct=Ge(`(max-width: ${x[ht]})`);try{ct.addEventListener("change",st)}catch(Ne){ct.addListener(st)}st(ct)}}return()=>{try{ct==null||ct.removeEventListener("change",st)}catch(Ge){ct==null||ct.removeListener(st)}}},[ht]),(0,ge.useEffect)(()=>{const st=re("ant-sider-");return nt.addSider(st),()=>nt.removeSider(st)},[]);const vt=()=>{an(!Qe,"clickTrigger")},{getPrefixCls:xt}=(0,ge.useContext)(y.E_),nn=()=>{const st=xt("layout-sider",Le),ct=(0,oe.Z)(kt,["collapsed"]),Ge=Qe?it:He,Ne=a(Ge)?`${Ge}px`:String(Ge),qe=parseFloat(String(it||0))===0?ge.createElement("span",{onClick:vt,className:he()(`${st}-zero-width-trigger`,`${st}-zero-width-trigger-${Fe?"right":"left"}`),style:Ke},je||ge.createElement(de,null)):null,Ie={expanded:Fe?ge.createElement(me.Z,null):ge.createElement(le.Z,null),collapsed:Fe?ge.createElement(le.Z,null):ge.createElement(me.Z,null)}[Qe?"collapsed":"expanded"],We=je!==null?qe||ge.createElement("div",{className:`${st}-trigger`,onClick:vt,style:{width:Ne}},je||Ie):null,ke=Object.assign(Object.assign({},pt),{flex:`0 0 ${Ne}`,maxWidth:Ne,minWidth:Ne,width:Ne}),ze=he()(st,`${st}-${Xe}`,{[`${st}-collapsed`]:!!Qe,[`${st}-has-trigger`]:we&&je!==null&&!qe,[`${st}-below`]:!!zt,[`${st}-zero-width`]:parseFloat(Ne)===0},Ee);return ge.createElement("aside",Object.assign({className:ze},ct,{style:ke,ref:Se}),ge.createElement("div",{className:`${st}-children`},Me),we||zt&&qe?We:null)},Gt=ge.useMemo(()=>({siderCollapsed:Qe}),[Qe]);return ge.createElement(z.Provider,{value:Gt},nn())})},84966:function(ft,Ve,te){"use strict";te.d(Ve,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return oe},ZP:function(){return re}});var ee=te(26407),ge=te(92310),be=te.n(ge),ye=te(2738),_e=te(59301),fe=te(36355),ie=te(83116),le=se=>{const{componentCls:ce,bodyBg:pe,lightSiderBg:Se,lightTriggerBg:Le,lightTriggerColor:Ee}=se;return{[`${ce}-sider-light`]:{background:Se,[`${ce}-sider-trigger`]:{color:Ee,background:Le},[`${ce}-sider-zero-width-trigger`]:{color:Ee,background:Le,border:`1px solid ${pe}`,borderInlineStart:0}}}};const me=se=>{const{antCls:ce,componentCls:pe,colorText:Se,triggerColor:Le,footerBg:Ee,triggerBg:je,headerHeight:Me,headerPadding:mt,headerColor:Xe,footerPadding:pt,triggerHeight:we,zeroTriggerHeight:Fe,zeroTriggerWidth:He,motionDurationMid:it,motionDurationSlow:Ke,fontSize:ht,borderRadius:_t,bodyBg:Lt,headerBg:kt,siderBg:nt}=se;return{[pe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Lt,"&, *":{boxSizing:"border-box"},[`&${pe}-has-sider`]:{flexDirection:"row",[`> ${pe}, > ${pe}-content`]:{width:0}},[`${pe}-header, &${pe}-footer`]:{flex:"0 0 auto"},[`${pe}-sider`]:{position:"relative",minWidth:0,background:nt,transition:`all ${it}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ce}-menu${ce}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:we},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:we,color:Le,lineHeight:`${we}px`,textAlign:"center",background:je,cursor:"pointer",transition:`all ${it}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-He,zIndex:1,width:He,height:Fe,color:Le,fontSize:se.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:nt,borderStartStartRadius:0,borderStartEndRadius:_t,borderEndEndRadius:_t,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-He,borderStartStartRadius:_t,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:_t}}}}},le(se)),{"&-rtl":{direction:"rtl"}}),[`${pe}-header`]:{height:Me,padding:mt,color:Xe,lineHeight:`${Me}px`,background:kt,[`${ce}-menu`]:{lineHeight:"inherit"}},[`${pe}-footer`]:{padding:pt,color:Se,fontSize:ht,background:Ee},[`${pe}-content`]:{flex:"auto",minHeight:0}}};var ae=(0,ie.Z)("Layout",se=>[me(se)],se=>{const{colorBgLayout:ce,controlHeight:pe,controlHeightLG:Se,colorText:Le,controlHeightSM:Ee,marginXXS:je,colorTextLightSolid:Me,colorBgContainer:mt}=se,Xe=Se*1.25;return{colorBgHeader:"#001529",colorBgBody:ce,colorBgTrigger:"#002140",bodyBg:ce,headerBg:"#001529",headerHeight:pe*2,headerPadding:`0 ${Xe}px`,headerColor:Le,footerPadding:`${Ee}px ${Xe}px`,footerBg:ce,siderBg:"#001529",triggerHeight:Se+je*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:Se,zeroTriggerHeight:Se,lightSiderBg:mt,lightTriggerBg:mt,lightTriggerColor:Le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),he=function(se,ce){var pe={};for(var Se in se)Object.prototype.hasOwnProperty.call(se,Se)&&ce.indexOf(Se)<0&&(pe[Se]=se[Se]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,Se=Object.getOwnPropertySymbols(se);Le<Se.length;Le++)ce.indexOf(Se[Le])<0&&Object.prototype.propertyIsEnumerable.call(se,Se[Le])&&(pe[Se[Le]]=se[Se[Le]]);return pe};const oe=_e.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(se){let{suffixCls:ce,tagName:pe,displayName:Se}=se;return Le=>_e.forwardRef((je,Me)=>_e.createElement(Le,Object.assign({ref:Me,suffixCls:ce,tagName:pe},je)))}const a=_e.forwardRef((se,ce)=>{const{prefixCls:pe,suffixCls:Se,className:Le,tagName:Ee}=se,je=he(se,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=_e.useContext(fe.E_),mt=Me("layout",pe),[Xe,pt]=ae(mt),we=Se?`${mt}-${Se}`:mt;return Xe(_e.createElement(Ee,Object.assign({className:be()(pe||we,Le,pt),ref:ce},je)))}),y=_e.forwardRef((se,ce)=>{const{direction:pe}=_e.useContext(fe.E_),[Se,Le]=_e.useState([]),{prefixCls:Ee,className:je,rootClassName:Me,children:mt,hasSider:Xe,tagName:pt,style:we}=se,Fe=he(se,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),He=(0,ye.Z)(Fe,["suffixCls"]),{getPrefixCls:it,layout:Ke}=_e.useContext(fe.E_),ht=it("layout",Ee),[_t,Lt]=ae(ht),kt=be()(ht,{[`${ht}-has-sider`]:typeof Xe=="boolean"?Xe:Se.length>0,[`${ht}-rtl`]:pe==="rtl"},Ke==null?void 0:Ke.className,je,Me,Lt),nt=_e.useMemo(()=>({siderHook:{addSider:Qe=>{Le(Pt=>[].concat((0,ee.Z)(Pt),[Qe]))},removeSider:Qe=>{Le(Pt=>Pt.filter(zt=>zt!==Qe))}}}),[]);return _t(_e.createElement(oe.Provider,{value:nt},_e.createElement(pt,Object.assign({ref:ce,className:kt,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),we)},He),mt)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var re=E},40875:function(ft,Ve,te){"use strict";te.d(Ve,{J:function(){return fe}});var ee=te(59301),ge=te(33234),be=te(70425),ye=function(ie,de){var le={};for(var me in ie)Object.prototype.hasOwnProperty.call(ie,me)&&de.indexOf(me)<0&&(le[me]=ie[me]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,me=Object.getOwnPropertySymbols(ie);ae<me.length;ae++)de.indexOf(me[ae])<0&&Object.prototype.propertyIsEnumerable.call(ie,me[ae])&&(le[me[ae]]=ie[me[ae]]);return le};const _e=ee.createContext(null),fe=ee.forwardRef((ie,de)=>{const{children:le}=ie,me=ye(ie,["children"]),ae=ee.useContext(_e),he=ee.useMemo(()=>Object.assign(Object.assign({},ae),me),[ae,me.prefixCls,me.mode,me.selectable]);return ee.createElement(_e.Provider,{value:he},ee.createElement(ge.BR,null,(0,be.supportNodeRef)(le)?ee.cloneElement(le,{ref:de}):le))});Ve.Z=_e},20834:function(ft,Ve,te){"use strict";te.d(Ve,{default:function(){return Gt}});var ee=te(15285),ge=te(59301),be=te(45818),ye=te(92310),_e=te.n(ye),fe=te(36355),ie=function(st,ct){var Ge={};for(var Ne in st)Object.prototype.hasOwnProperty.call(st,Ne)&&ct.indexOf(Ne)<0&&(Ge[Ne]=st[Ne]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ne=Object.getOwnPropertySymbols(st);qe<Ne.length;qe++)ct.indexOf(Ne[qe])<0&&Object.prototype.propertyIsEnumerable.call(st,Ne[qe])&&(Ge[Ne[qe]]=st[Ne[qe]]);return Ge},le=st=>{const{prefixCls:ct,className:Ge,dashed:Ne}=st,qe=ie(st,["prefixCls","className","dashed"]),{getPrefixCls:Ct}=ge.useContext(fe.E_),Oe=Ct("menu",ct),Ie=_e()({[`${Oe}-item-divider-dashed`]:!!Ne},Ge);return ge.createElement(ee.iz,Object.assign({className:Ie},qe))},me=te(11592),ae=te(2738),he=te(6848),oe=te(92343),a=(0,ge.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=st=>{var ct;const{className:Ge,children:Ne,icon:qe,title:Ct,danger:Oe}=st,{prefixCls:Ie,firstLevel:We,direction:ke,disableMenuItemTitleTooltip:ze,inlineCollapsed:at}=ge.useContext(a),Ot=fn=>{const un=ge.createElement("span",{className:`${Ie}-title-content`},Ne);return(!qe||(0,oe.l$)(Ne)&&Ne.type==="span")&&Ne&&fn&&We&&typeof Ne=="string"?ge.createElement("div",{className:`${Ie}-inline-collapsed-noicon`},Ne.charAt(0)):un},{siderCollapsed:Mt}=ge.useContext(be.D);let jt=Ct;typeof Ct=="undefined"?jt=We?Ne:"":Ct===!1&&(jt="");const Dt={title:jt};!Mt&&!at&&(Dt.title=null,Dt.open=!1);const Ht=(0,me.Z)(Ne).length;let bt=ge.createElement(ee.ck,Object.assign({},(0,ae.Z)(st,["title","icon","danger"]),{className:_e()({[`${Ie}-item-danger`]:Oe,[`${Ie}-item-only-child`]:(qe?Ht+1:Ht)===1},Ge),title:typeof Ct=="string"?Ct:void 0}),(0,oe.Tm)(qe,{className:_e()((0,oe.l$)(qe)?(ct=qe.props)===null||ct===void 0?void 0:ct.className:"",`${Ie}-item-icon`)}),Ot(at));return ze||(bt=ge.createElement(he.Z,Object.assign({},Dt,{placement:ke==="rtl"?"left":"right",overlayClassName:`${Ie}-inline-collapsed-tooltip`}),bt)),bt},x=st=>{var ct;const{popupClassName:Ge,icon:Ne,title:qe,theme:Ct}=st,Oe=ge.useContext(a),{prefixCls:Ie,inlineCollapsed:We,theme:ke}=Oe,ze=(0,ee.Xl)();let at;if(!Ne)at=We&&!ze.length&&qe&&typeof qe=="string"?ge.createElement("div",{className:`${Ie}-inline-collapsed-noicon`},qe.charAt(0)):ge.createElement("span",{className:`${Ie}-title-content`},qe);else{const Mt=(0,oe.l$)(qe)&&qe.type==="span";at=ge.createElement(ge.Fragment,null,(0,oe.Tm)(Ne,{className:_e()((0,oe.l$)(Ne)?(ct=Ne.props)===null||ct===void 0?void 0:ct.className:"",`${Ie}-item-icon`)}),Mt?qe:ge.createElement("span",{className:`${Ie}-title-content`},qe))}const Ot=ge.useMemo(()=>Object.assign(Object.assign({},Oe),{firstLevel:!1}),[Oe]);return ge.createElement(a.Provider,{value:Ot},ge.createElement(ee.Wd,Object.assign({},(0,ae.Z)(st,["icon"]),{title:at,popupClassName:_e()(Ie,Ge,`${Ie}-${Ct||ke}`)})))},z=te(18785),re=te(70425),se=te(62892),ce=te(40875),pe=function(st,ct){var Ge={};for(var Ne in st)Object.prototype.hasOwnProperty.call(st,Ne)&&ct.indexOf(Ne)<0&&(Ge[Ne]=st[Ne]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ne=Object.getOwnPropertySymbols(st);qe<Ne.length;qe++)ct.indexOf(Ne[qe])<0&&Object.prototype.propertyIsEnumerable.call(st,Ne[qe])&&(Ge[Ne[qe]]=st[Ne[qe]]);return Ge};function Se(st){return(st||[]).map((ct,Ge)=>{if(ct&&typeof ct=="object"){const Ne=ct,{label:qe,children:Ct,key:Oe,type:Ie}=Ne,We=pe(Ne,["label","children","key","type"]),ke=Oe!=null?Oe:`tmp-${Ge}`;return Ct||Ie==="group"?Ie==="group"?ge.createElement(ee.BW,Object.assign({key:ke},We,{title:qe}),Se(Ct)):ge.createElement(x,Object.assign({key:ke},We,{title:qe}),Se(Ct)):Ie==="divider"?ge.createElement(le,Object.assign({key:ke},We)):ge.createElement(E,Object.assign({key:ke},We),qe)}return null}).filter(ct=>ct)}function Le(st){return ge.useMemo(()=>st&&Se(st),[st])}var Ee=te(64993),je=te(17313),Me=te(8378),mt=te(13826),Xe=te(29878),pt=te(83116),we=te(37613),He=st=>{const{componentCls:ct,motionDurationSlow:Ge,horizontalLineHeight:Ne,colorSplit:qe,lineWidth:Ct,lineType:Oe,itemPaddingInline:Ie}=st;return{[`${ct}-horizontal`]:{lineHeight:Ne,border:0,borderBottom:`${Ct}px ${Oe} ${qe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ct}-item, ${ct}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ie},[`> ${ct}-item:hover,
> ${ct}-item-active,
> ${ct}-submenu ${ct}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ct}-item, ${ct}-submenu-title`]:{transition:[`border-color ${Ge}`,`background ${Ge}`].join(",")},[`${ct}-submenu-arrow`]:{display:"none"}}}},Ke=st=>{let{componentCls:ct,menuArrowOffset:Ge}=st;return{[`${ct}-rtl`]:{direction:"rtl"},[`${ct}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ct}-rtl${ct}-vertical,
${ct}-submenu-rtl ${ct}-vertical`]:{[`${ct}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Ge})`},"&::after":{transform:`rotate(45deg) translateY(${Ge})`}}}}};const ht=st=>Object.assign({},(0,je.oN)(st));var Lt=(st,ct)=>{const{componentCls:Ge,itemColor:Ne,itemSelectedColor:qe,groupTitleColor:Ct,itemBg:Oe,subMenuItemBg:Ie,itemSelectedBg:We,activeBarHeight:ke,activeBarWidth:ze,activeBarBorderWidth:at,motionDurationSlow:Ot,motionEaseInOut:Mt,motionEaseOut:jt,itemPaddingInline:Dt,motionDurationMid:Ht,itemHoverColor:bt,lineType:fn,colorSplit:un,itemDisabledColor:Et,dangerItemColor:Sn,dangerItemHoverColor:pn,dangerItemSelectedColor:Fn,dangerItemActiveBg:xn,dangerItemSelectedBg:Kn,itemHoverBg:er,itemActiveBg:Vn,menuSubMenuBg:Yn,horizontalItemSelectedColor:pr,horizontalItemSelectedBg:vr,horizontalItemBorderRadius:tn,horizontalItemHoverBg:Xn,popupBg:sr}=st;return{[`${Ge}-${ct}, ${Ge}-${ct} > ${Ge}`]:{color:Ne,background:Oe,[`&${Ge}-root:focus-visible`]:Object.assign({},ht(st)),[`${Ge}-item-group-title`]:{color:Ct},[`${Ge}-submenu-selected`]:{[`> ${Ge}-submenu-title`]:{color:qe}},[`${Ge}-item-disabled, ${Ge}-submenu-disabled`]:{color:`${Et} !important`},[`${Ge}-item:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{[`&:hover, > ${Ge}-submenu-title:hover`]:{color:bt}},[`&:not(${Ge}-horizontal)`]:{[`${Ge}-item:not(${Ge}-item-selected)`]:{"&:hover":{backgroundColor:er},"&:active":{backgroundColor:Vn}},[`${Ge}-submenu-title`]:{"&:hover":{backgroundColor:er},"&:active":{backgroundColor:Vn}}},[`${Ge}-item-danger`]:{color:Sn,[`&${Ge}-item:hover`]:{[`&:not(${Ge}-item-selected):not(${Ge}-submenu-selected)`]:{color:pn}},[`&${Ge}-item:active`]:{background:xn}},[`${Ge}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Ge}-item-selected`]:{color:qe,[`&${Ge}-item-danger`]:{color:Fn},"a, a:hover":{color:"inherit"}},[`& ${Ge}-item-selected`]:{backgroundColor:We,[`&${Ge}-item-danger`]:{backgroundColor:Kn}},[`${Ge}-item, ${Ge}-submenu-title`]:{[`&:not(${Ge}-item-disabled):focus-visible`]:Object.assign({},ht(st))},[`&${Ge}-submenu > ${Ge}`]:{backgroundColor:Yn},[`&${Ge}-popup > ${Ge}`]:{backgroundColor:sr},[`&${Ge}-horizontal`]:Object.assign(Object.assign({},ct==="dark"?{borderBottom:0}:{}),{[`> ${Ge}-item, > ${Ge}-submenu`]:{top:at,marginTop:-at,marginBottom:0,borderRadius:tn,"&::after":{position:"absolute",insetInline:Dt,bottom:0,borderBottom:`${ke}px solid transparent`,transition:`border-color ${Ot} ${Mt}`,content:'""'},"&:hover, &-active, &-open":{background:Xn,"&::after":{borderBottomWidth:ke,borderBottomColor:pr}},"&-selected":{color:pr,backgroundColor:vr,"&:hover":{backgroundColor:vr},"&::after":{borderBottomWidth:ke,borderBottomColor:pr}}}}),[`&${Ge}-root`]:{[`&${Ge}-inline, &${Ge}-vertical`]:{borderInlineEnd:`${at}px ${fn} ${un}`}},[`&${Ge}-inline`]:{[`${Ge}-sub${Ge}-inline`]:{background:Ie},[`${Ge}-item, ${Ge}-submenu-title`]:at&&ze?{width:`calc(100% + ${at}px)`}:{},[`${Ge}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ze}px solid ${qe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ht} ${jt}`,`opacity ${Ht} ${jt}`].join(","),content:'""'},[`&${Ge}-item-danger`]:{"&::after":{borderInlineEndColor:Fn}}},[`${Ge}-selected, ${Ge}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ht} ${Mt}`,`opacity ${Ht} ${Mt}`].join(",")}}}}}};const kt=st=>{const{componentCls:ct,itemHeight:Ge,itemMarginInline:Ne,padding:qe,menuArrowSize:Ct,marginXS:Oe,itemMarginBlock:Ie}=st,We=qe+Ct+Oe;return{[`${ct}-item`]:{position:"relative",overflow:"hidden"},[`${ct}-item, ${ct}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`,paddingInline:qe,overflow:"hidden",textOverflow:"ellipsis",marginInline:Ne,marginBlock:Ie,width:`calc(100% - ${Ne*2}px)`},[`> ${ct}-item,
> ${ct}-submenu > ${ct}-submenu-title`]:{height:Ge,lineHeight:`${Ge}px`},[`${ct}-item-group-list ${ct}-submenu-title,
${ct}-submenu-title`]:{paddingInlineEnd:We}}};var Qe=st=>{const{componentCls:ct,iconCls:Ge,itemHeight:Ne,colorTextLightSolid:qe,dropdownWidth:Ct,controlHeightLG:Oe,motionDurationMid:Ie,motionEaseOut:We,paddingXL:ke,itemMarginInline:ze,fontSizeLG:at,motionDurationSlow:Ot,paddingXS:Mt,boxShadowSecondary:jt,collapsedWidth:Dt,collapsedIconSize:Ht}=st,bt={height:Ne,lineHeight:`${Ne}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ct]:{"&-inline, &-vertical":Object.assign({[`&${ct}-root`]:{boxShadow:"none"}},kt(st))},[`${ct}-submenu-popup`]:{[`${ct}-vertical`]:Object.assign(Object.assign({},kt(st)),{boxShadow:jt})}},{[`${ct}-submenu-popup ${ct}-vertical${ct}-sub`]:{minWidth:Ct,maxHeight:`calc(100vh - ${Oe*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ct}-inline`]:{width:"100%",[`&${ct}-root`]:{[`${ct}-item, ${ct}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ot}`,`background ${Ot}`,`padding ${Ie} ${We}`].join(","),[`> ${ct}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ct}-sub${ct}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ct}-submenu > ${ct}-submenu-title`]:bt,[`& ${ct}-item-group-title`]:{paddingInlineStart:ke}},[`${ct}-item`]:bt}},{[`${ct}-inline-collapsed`]:{width:Dt,[`&${ct}-root`]:{[`${ct}-item, ${ct}-submenu ${ct}-submenu-title`]:{[`> ${ct}-inline-collapsed-noicon`]:{fontSize:at,textAlign:"center"}}},[`> ${ct}-item,
> ${ct}-item-group > ${ct}-item-group-list > ${ct}-item,
> ${ct}-item-group > ${ct}-item-group-list > ${ct}-submenu > ${ct}-submenu-title,
> ${ct}-submenu > ${ct}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${at/2}px - ${ze}px)`,textOverflow:"clip",[`
${ct}-submenu-arrow,
${ct}-submenu-expand-icon
`]:{opacity:0},[`${ct}-item-icon, ${Ge}`]:{margin:0,fontSize:Ht,lineHeight:`${Ne}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ct}-item-icon, ${Ge}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ct}-item-icon, ${Ge}`]:{display:"none"},"a, a:hover":{color:qe}},[`${ct}-item-group-title`]:Object.assign(Object.assign({},je.vS),{paddingInline:Mt})}}]};const Pt=st=>{const{componentCls:ct,motionDurationSlow:Ge,motionDurationMid:Ne,motionEaseInOut:qe,motionEaseOut:Ct,iconCls:Oe,iconSize:Ie,iconMarginInlineEnd:We}=st;return{[`${ct}-item, ${ct}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Ge}`,`background ${Ge}`,`padding ${Ge} ${qe}`].join(","),[`${ct}-item-icon, ${Oe}`]:{minWidth:Ie,fontSize:Ie,transition:[`font-size ${Ne} ${Ct}`,`margin ${Ge} ${qe}`,`color ${Ge}`].join(","),"+ span":{marginInlineStart:We,opacity:1,transition:[`opacity ${Ge} ${qe}`,`margin ${Ge}`,`color ${Ge}`].join(",")}},[`${ct}-item-icon`]:Object.assign({},(0,je.Ro)()),[`&${ct}-item-only-child`]:{[`> ${Oe}, > ${ct}-item-icon`]:{marginInlineEnd:0}}},[`${ct}-item-disabled, ${ct}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ct}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zt=st=>{const{componentCls:ct,motionDurationSlow:Ge,motionEaseInOut:Ne,borderRadius:qe,menuArrowSize:Ct,menuArrowOffset:Oe}=st;return{[`${ct}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:st.margin,width:Ct,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Ge} ${Ne}, opacity ${Ge}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ct*.6,height:Ct*.15,backgroundColor:"currentcolor",borderRadius:qe,transition:[`background ${Ge} ${Ne}`,`transform ${Ge} ${Ne}`,`top ${Ge} ${Ne}`,`color ${Ge} ${Ne}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Oe})`},"&::after":{transform:`rotate(-45deg) translateY(${Oe})`}}}}},yt=st=>{const{antCls:ct,componentCls:Ge,fontSize:Ne,motionDurationSlow:qe,motionDurationMid:Ct,motionEaseInOut:Oe,paddingXS:Ie,padding:We,colorSplit:ke,lineWidth:ze,zIndexPopup:at,borderRadiusLG:Ot,subMenuItemBorderRadius:Mt,menuArrowSize:jt,menuArrowOffset:Dt,lineType:Ht,menuPanelMaskInset:bt,groupTitleLineHeight:fn,groupTitleFontSize:un}=st;return[{"":{[`${Ge}`]:Object.assign(Object.assign({},(0,je.dF)()),{"&-hidden":{display:"none"}})},[`${Ge}-submenu-hidden`]:{display:"none"}},{[Ge]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,je.Wf)(st)),(0,je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Ne,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${qe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Ge}-item`]:{flex:"none"}},[`${Ge}-item, ${Ge}-submenu, ${Ge}-submenu-title`]:{borderRadius:st.itemBorderRadius},[`${Ge}-item-group-title`]:{padding:`${Ie}px ${We}px`,fontSize:un,lineHeight:fn,transition:`all ${qe}`},[`&-horizontal ${Ge}-submenu`]:{transition:[`border-color ${qe} ${Oe}`,`background ${qe} ${Oe}`].join(",")},[`${Ge}-submenu, ${Ge}-submenu-inline`]:{transition:[`border-color ${qe} ${Oe}`,`background ${qe} ${Oe}`,`padding ${Ct} ${Oe}`].join(",")},[`${Ge}-submenu ${Ge}-sub`]:{cursor:"initial",transition:[`background ${qe} ${Oe}`,`padding ${qe} ${Oe}`].join(",")},[`${Ge}-title-content`]:{transition:`color ${qe}`},[`${Ge}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Ge}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ke,borderStyle:Ht,borderWidth:0,borderTopWidth:ze,marginBlock:ze,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Pt(st)),{[`${Ge}-item-group`]:{[`${Ge}-item-group-list`]:{margin:0,padding:0,[`${Ge}-item, ${Ge}-submenu-title`]:{paddingInline:`${Ne*2}px ${We}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:at,borderRadius:Ot,boxShadow:"none",transformOrigin:"0 0",[`&${Ge}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${bt}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:bt},"\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:st.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:st.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:st.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:st.paddingXS},[`> ${Ge}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ot},Pt(st)),zt(st)),{[`${Ge}-item, ${Ge}-submenu > ${Ge}-submenu-title`]:{borderRadius:Mt},[`${Ge}-submenu-title::after`]:{transition:`transform ${qe} ${Oe}`}})}}),zt(st)),{[`&-inline-collapsed ${Ge}-submenu-arrow,
&-inline ${Ge}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Dt})`},"&::after":{transform:`rotate(45deg) translateX(-${Dt})`}},[`${Ge}-submenu-open${Ge}-submenu-inline > ${Ge}-submenu-title > ${Ge}-submenu-arrow`]:{transform:`translateY(-${jt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Dt})`},"&::before":{transform:`rotate(45deg) translateX(${Dt})`}}})},{[`${ct}-layout-header`]:{[Ge]:{lineHeight:"inherit"}}}]};var an=(st,ct)=>(0,pt.Z)("Menu",Ne=>{if(ct===!1)return[];const{colorBgElevated:qe,colorPrimary:Ct,colorTextLightSolid:Oe,controlHeightLG:Ie,fontSize:We,darkItemColor:ke,darkDangerItemColor:ze,darkItemBg:at,darkSubMenuItemBg:Ot,darkItemSelectedColor:Mt,darkItemSelectedBg:jt,darkDangerItemSelectedBg:Dt,darkItemHoverBg:Ht,darkGroupTitleColor:bt,darkItemHoverColor:fn,darkItemDisabledColor:un,darkDangerItemHoverColor:Et,darkDangerItemSelectedColor:Sn,darkDangerItemActiveBg:pn}=Ne,Fn=We/7*5,xn=(0,we.TS)(Ne,{menuArrowSize:Fn,menuHorizontalHeight:Ie*1.15,menuArrowOffset:`${Fn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:qe}),Kn=(0,we.TS)(xn,{itemColor:ke,itemHoverColor:fn,groupTitleColor:bt,itemSelectedColor:Mt,itemBg:at,popupBg:at,subMenuItemBg:Ot,itemActiveBg:"transparent",itemSelectedBg:jt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ht,itemDisabledColor:un,dangerItemColor:ze,dangerItemHoverColor:Et,dangerItemSelectedColor:Sn,dangerItemActiveBg:pn,dangerItemSelectedBg:Dt,menuSubMenuBg:Ot,horizontalItemSelectedColor:Oe,horizontalItemSelectedBg:Ct});return[yt(xn),He(xn),Qe(xn),Lt(xn,"light"),Lt(Kn,"dark"),Ke(xn),(0,Me.Z)(xn),(0,mt.oN)(xn,"slide-up"),(0,mt.oN)(xn,"slide-down"),(0,Xe._y)(xn,"zoom-big")]},Ne=>{const{colorPrimary:qe,colorError:Ct,colorTextDisabled:Oe,colorErrorBg:Ie,colorText:We,colorTextDescription:ke,colorBgContainer:ze,colorFillAlter:at,colorFillContent:Ot,lineWidth:Mt,lineWidthBold:jt,controlItemBgActive:Dt,colorBgTextHover:Ht,controlHeightLG:bt,lineHeight:fn,colorBgElevated:un,marginXXS:Et,padding:Sn,fontSize:pn,controlHeightSM:Fn,fontSizeLG:xn,colorTextLightSolid:Kn,colorErrorHover:er}=Ne,Vn=new Ee.C(Kn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Ne.zIndexPopupBase+50,radiusItem:Ne.borderRadiusLG,itemBorderRadius:Ne.borderRadiusLG,radiusSubMenuItem:Ne.borderRadiusSM,subMenuItemBorderRadius:Ne.borderRadiusSM,colorItemText:We,itemColor:We,colorItemTextHover:We,itemHoverColor:We,colorItemTextHoverHorizontal:qe,horizontalItemHoverColor:qe,colorGroupTitle:ke,groupTitleColor:ke,colorItemTextSelected:qe,itemSelectedColor:qe,colorItemTextSelectedHorizontal:qe,horizontalItemSelectedColor:qe,colorItemBg:ze,itemBg:ze,colorItemBgHover:Ht,itemHoverBg:Ht,colorItemBgActive:Ot,itemActiveBg:Dt,colorSubItemBg:at,subMenuItemBg:at,colorItemBgSelected:Dt,itemSelectedBg:Dt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jt,activeBarHeight:jt,colorActiveBarBorderSize:Mt,activeBarBorderWidth:Mt,colorItemTextDisabled:Oe,itemDisabledColor:Oe,colorDangerItemText:Ct,dangerItemColor:Ct,colorDangerItemTextHover:Ct,dangerItemHoverColor:Ct,colorDangerItemTextSelected:Ct,dangerItemSelectedColor:Ct,colorDangerItemBgActive:Ie,dangerItemActiveBg:Ie,colorDangerItemBgSelected:Ie,dangerItemSelectedBg:Ie,itemMarginInline:Ne.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:bt,groupTitleLineHeight:fn,collapsedWidth:bt*2,popupBg:un,itemMarginBlock:Et,itemPaddingInline:Sn,horizontalLineHeight:`${bt*1.15}px`,iconSize:pn,iconMarginInlineEnd:Fn-pn,collapsedIconSize:xn,groupTitleFontSize:pn,darkItemDisabledColor:new Ee.C(Kn).setAlpha(.25).toRgbString(),darkItemColor:Vn,darkDangerItemColor:Ct,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Kn,darkItemSelectedBg:qe,darkDangerItemSelectedBg:Ct,darkItemHoverBg:"transparent",darkGroupTitleColor:Vn,darkItemHoverColor:Kn,darkDangerItemHoverColor:er,darkDangerItemSelectedColor:Kn,darkDangerItemActiveBg:Ct}},{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"]]})(st),Ze=function(st,ct){var Ge={};for(var Ne in st)Object.prototype.hasOwnProperty.call(st,Ne)&&ct.indexOf(Ne)<0&&(Ge[Ne]=st[Ne]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ne=Object.getOwnPropertySymbols(st);qe<Ne.length;qe++)ct.indexOf(Ne[qe])<0&&Object.prototype.propertyIsEnumerable.call(st,Ne[qe])&&(Ge[Ne[qe]]=st[Ne[qe]]);return Ge},xt=(0,ge.forwardRef)((st,ct)=>{var Ge,Ne;const qe=ge.useContext(ce.Z),Ct=qe||{},{getPrefixCls:Oe,getPopupContainer:Ie,direction:We,menu:ke}=ge.useContext(fe.E_),ze=Oe(),{prefixCls:at,className:Ot,style:Mt,theme:jt="light",expandIcon:Dt,_internalDisableMenuItemTitleTooltip:Ht,inlineCollapsed:bt,siderCollapsed:fn,items:un,children:Et,rootClassName:Sn,mode:pn,selectable:Fn,onClick:xn,overflowedIndicatorPopupClassName:Kn}=st,er=Ze(st,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Vn=(0,ae.Z)(er,["collapsedWidth"]),Yn=Le(un)||Et;(Ge=Ct.validator)===null||Ge===void 0||Ge.call(Ct,{mode:pn});const pr=(0,re.useEvent)(function(){var cr;xn==null||xn.apply(void 0,arguments),(cr=Ct.onClick)===null||cr===void 0||cr.call(Ct)}),vr=Ct.mode||pn,tn=Fn!=null?Fn:Ct.selectable,Xn=ge.useMemo(()=>fn!==void 0?fn:bt,[bt,fn]),sr={horizontal:{motionName:`${ze}-slide-up`},inline:(0,se.Z)(ze),other:{motionName:`${ze}-zoom-big`}},Wn=Oe("menu",at||Ct.prefixCls),[lr,Ir]=an(Wn,!qe),Rr=_e()(`${Wn}-${jt}`,ke==null?void 0:ke.className,Ot);let Er;if(typeof Dt=="function")Er=Dt;else if(Dt===null||Dt===!1)Er=null;else if(Ct.expandIcon===null||Ct.expandIcon===!1)Er=null;else{const cr=Dt!=null?Dt:Ct.expandIcon;Er=(0,oe.Tm)(cr,{className:_e()(`${Wn}-submenu-expand-icon`,(0,oe.l$)(cr)?(Ne=cr.props)===null||Ne===void 0?void 0:Ne.className:"")})}const Nr=ge.useMemo(()=>({prefixCls:Wn,inlineCollapsed:Xn||!1,direction:We,firstLevel:!0,theme:jt,mode:vr,disableMenuItemTitleTooltip:Ht}),[Wn,Xn,We,Ht,jt]);return lr(ge.createElement(ce.Z.Provider,{value:null},ge.createElement(a.Provider,{value:Nr},ge.createElement(ee.ZP,Object.assign({getPopupContainer:Ie,overflowedIndicator:ge.createElement(z.Z,null),overflowedIndicatorPopupClassName:_e()(Wn,`${Wn}-${jt}`,Kn),mode:vr,selectable:tn,onClick:pr},Vn,{inlineCollapsed:Xn,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Mt),className:Rr,prefixCls:Wn,direction:We,defaultMotions:sr,expandIcon:Er,ref:ct,rootClassName:_e()(Sn,Ir)}),Yn))))});const nn=(0,ge.forwardRef)((st,ct)=>{const Ge=(0,ge.useRef)(null),Ne=ge.useContext(be.D);return(0,ge.useImperativeHandle)(ct,()=>({menu:Ge.current,focus:qe=>{var Ct;(Ct=Ge.current)===null||Ct===void 0||Ct.focus(qe)}})),ge.createElement(xt,Object.assign({ref:Ge},st,Ne))});nn.Item=E,nn.SubMenu=x,nn.Divider=le,nn.ItemGroup=ee.BW;var Gt=nn},58421:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return Ct}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(Ie,We){return ge.createElement(_e.Z,(0,ee.Z)({},Ie,{ref:We,icon:ye}))},ie=ge.forwardRef(fe),de=ie,le=te(49198),me=te(33853),ae=te(38819),he=te(92310),oe=te.n(he),ne=te(400),a=te(33708),y=te(6909),E=te(4771),b=te(9427),x=te(25440),z=te(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},se=re,ce=te(91735),pe=function(Oe){(0,b.Z)(We,Oe);var Ie=(0,x.Z)(We);function We(){var ke;(0,y.Z)(this,We);for(var ze=arguments.length,at=new Array(ze),Ot=0;Ot<ze;Ot++)at[Ot]=arguments[Ot];return ke=Ie.call.apply(Ie,[this].concat(at)),ke.state={goInputText:""},ke.getValidValue=function(){var Mt=ke.state.goInputText;return!Mt||Number.isNaN(Mt)?void 0:Number(Mt)},ke.buildOptionText=function(Mt){return"".concat(Mt," ").concat(ke.props.locale.items_per_page)},ke.changeSize=function(Mt){ke.props.changeSize(Number(Mt))},ke.handleChange=function(Mt){ke.setState({goInputText:Mt.target.value})},ke.handleBlur=function(Mt){var jt=ke.props,Dt=jt.goButton,Ht=jt.quickGo,bt=jt.rootPrefixCls,fn=ke.state.goInputText;Dt||fn===""||(ke.setState({goInputText:""}),!(Mt.relatedTarget&&(Mt.relatedTarget.className.indexOf("".concat(bt,"-item-link"))>=0||Mt.relatedTarget.className.indexOf("".concat(bt,"-item"))>=0))&&Ht(ke.getValidValue()))},ke.go=function(Mt){var jt=ke.state.goInputText;jt!==""&&(Mt.keyCode===se.ENTER||Mt.type==="click")&&(ke.setState({goInputText:""}),ke.props.quickGo(ke.getValidValue()))},ke}return(0,E.Z)(We,[{key:"getPageSizeOptions",value:function(){var ze=this.props,at=ze.pageSize,Ot=ze.pageSizeOptions;return Ot.some(function(Mt){return Mt.toString()===at.toString()})?Ot:Ot.concat([at.toString()]).sort(function(Mt,jt){var Dt=Number.isNaN(Number(Mt))?0:Number(Mt),Ht=Number.isNaN(Number(jt))?0:Number(jt);return Dt-Ht})}},{key:"render",value:function(){var ze=this,at=this.props,Ot=at.pageSize,Mt=at.locale,jt=at.rootPrefixCls,Dt=at.changeSize,Ht=at.quickGo,bt=at.goButton,fn=at.selectComponentClass,un=at.buildOptionText,Et=at.selectPrefixCls,Sn=at.disabled,pn=this.state.goInputText,Fn="".concat(jt,"-options"),xn=fn,Kn=null,er=null,Vn=null;if(!Dt&&!Ht)return null;var Yn=this.getPageSizeOptions();if(Dt&&xn){var pr=Yn.map(function(vr,tn){return ge.createElement(xn.Option,{key:tn,value:vr.toString()},(un||ze.buildOptionText)(vr))});Kn=ge.createElement(xn,{disabled:Sn,prefixCls:Et,showSearch:!1,className:"".concat(Fn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ot||Yn[0]).toString(),onChange:this.changeSize,getPopupContainer:function(tn){return tn.parentNode},"aria-label":Mt.page_size,defaultOpen:!1},pr)}return Ht&&(bt&&(Vn=typeof bt=="boolean"?ge.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Sn,className:"".concat(Fn,"-quick-jumper-button")},Mt.jump_to_confirm):ge.createElement("span",{onClick:this.go,onKeyUp:this.go},bt)),er=ge.createElement("div",{className:"".concat(Fn,"-quick-jumper")},Mt.jump_to,ge.createElement("input",{disabled:Sn,type:"text",value:pn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Mt.page}),Mt.page,Vn)),ge.createElement("li",{className:"".concat(Fn)},Kn,er)}}]),We}(ge.Component);pe.defaultProps={pageSizeOptions:["10","20","50","100"]};var Se=pe,Le=function(Ie){var We,ke=Ie.rootPrefixCls,ze=Ie.page,at=Ie.active,Ot=Ie.className,Mt=Ie.showTitle,jt=Ie.onClick,Dt=Ie.onKeyPress,Ht=Ie.itemRender,bt="".concat(ke,"-item"),fn=oe()(bt,"".concat(bt,"-").concat(ze),(We={},(0,ne.Z)(We,"".concat(bt,"-active"),at),(0,ne.Z)(We,"".concat(bt,"-disabled"),!ze),(0,ne.Z)(We,Ie.className,Ot),We)),un=function(){jt(ze)},Et=function(Fn){Dt(Fn,jt,ze)},Sn=Ht(ze,"page",ge.createElement("a",{rel:"nofollow"},ze));return Sn?ge.createElement("li",{title:Mt?ze.toString():null,className:fn,onClick:un,onKeyPress:Et,tabIndex:0},Sn):null},Ee=Le;function je(){}function Me(Oe){var Ie=Number(Oe);return typeof Ie=="number"&&!Number.isNaN(Ie)&&isFinite(Ie)&&Math.floor(Ie)===Ie}var mt=function(Ie,We,ke){return ke};function Xe(Oe,Ie,We){var ke=typeof Oe=="undefined"?Ie.pageSize:Oe;return Math.floor((We.total-1)/ke)+1}var pt=function(Oe){(0,b.Z)(We,Oe);var Ie=(0,x.Z)(We);function We(ke){var ze;(0,y.Z)(this,We),ze=Ie.call(this,ke),ze.paginationNode=ge.createRef(),ze.getJumpPrevPage=function(){return Math.max(1,ze.state.current-(ze.props.showLessItems?3:5))},ze.getJumpNextPage=function(){return Math.min(Xe(void 0,ze.state,ze.props),ze.state.current+(ze.props.showLessItems?3:5))},ze.getItemIcon=function(Dt,Ht){var bt=ze.props.prefixCls,fn=Dt||ge.createElement("button",{type:"button","aria-label":Ht,className:"".concat(bt,"-item-link")});return typeof Dt=="function"&&(fn=ge.createElement(Dt,(0,a.Z)({},ze.props))),fn},ze.isValid=function(Dt){var Ht=ze.props.total;return Me(Dt)&&Dt!==ze.state.current&&Me(Ht)&&Ht>0},ze.shouldDisplayQuickJumper=function(){var Dt=ze.props,Ht=Dt.showQuickJumper,bt=Dt.total,fn=ze.state.pageSize;return bt<=fn?!1:Ht},ze.handleKeyDown=function(Dt){(Dt.keyCode===se.ARROW_UP||Dt.keyCode===se.ARROW_DOWN)&&Dt.preventDefault()},ze.handleKeyUp=function(Dt){var Ht=ze.getValidValue(Dt),bt=ze.state.currentInputValue;Ht!==bt&&ze.setState({currentInputValue:Ht}),Dt.keyCode===se.ENTER?ze.handleChange(Ht):Dt.keyCode===se.ARROW_UP?ze.handleChange(Ht-1):Dt.keyCode===se.ARROW_DOWN&&ze.handleChange(Ht+1)},ze.handleBlur=function(Dt){var Ht=ze.getValidValue(Dt);ze.handleChange(Ht)},ze.changePageSize=function(Dt){var Ht=ze.state.current,bt=Xe(Dt,ze.state,ze.props);Ht=Ht>bt?bt:Ht,bt===0&&(Ht=ze.state.current),typeof Dt=="number"&&("pageSize"in ze.props||ze.setState({pageSize:Dt}),"current"in ze.props||ze.setState({current:Ht,currentInputValue:Ht})),ze.props.onShowSizeChange(Ht,Dt),"onChange"in ze.props&&ze.props.onChange&&ze.props.onChange(Ht,Dt)},ze.handleChange=function(Dt){var Ht=ze.props,bt=Ht.disabled,fn=Ht.onChange,un=ze.state,Et=un.pageSize,Sn=un.current,pn=un.currentInputValue;if(ze.isValid(Dt)&&!bt){var Fn=Xe(void 0,ze.state,ze.props),xn=Dt;return Dt>Fn?xn=Fn:Dt<1&&(xn=1),"current"in ze.props||ze.setState({current:xn}),xn!==pn&&ze.setState({currentInputValue:xn}),fn(xn,Et),xn}return Sn},ze.prev=function(){ze.hasPrev()&&ze.handleChange(ze.state.current-1)},ze.next=function(){ze.hasNext()&&ze.handleChange(ze.state.current+1)},ze.jumpPrev=function(){ze.handleChange(ze.getJumpPrevPage())},ze.jumpNext=function(){ze.handleChange(ze.getJumpNextPage())},ze.hasPrev=function(){return ze.state.current>1},ze.hasNext=function(){return ze.state.current<Xe(void 0,ze.state,ze.props)},ze.runIfEnter=function(Dt,Ht){if(Dt.key==="Enter"||Dt.charCode===13){for(var bt=arguments.length,fn=new Array(bt>2?bt-2:0),un=2;un<bt;un++)fn[un-2]=arguments[un];Ht.apply(void 0,fn)}},ze.runIfEnterPrev=function(Dt){ze.runIfEnter(Dt,ze.prev)},ze.runIfEnterNext=function(Dt){ze.runIfEnter(Dt,ze.next)},ze.runIfEnterJumpPrev=function(Dt){ze.runIfEnter(Dt,ze.jumpPrev)},ze.runIfEnterJumpNext=function(Dt){ze.runIfEnter(Dt,ze.jumpNext)},ze.handleGoTO=function(Dt){(Dt.keyCode===se.ENTER||Dt.type==="click")&&ze.handleChange(ze.state.currentInputValue)},ze.renderPrev=function(Dt){var Ht=ze.props,bt=Ht.prevIcon,fn=Ht.itemRender,un=fn(Dt,"prev",ze.getItemIcon(bt,"prev page")),Et=!ze.hasPrev();return(0,ge.isValidElement)(un)?(0,ge.cloneElement)(un,{disabled:Et}):un},ze.renderNext=function(Dt){var Ht=ze.props,bt=Ht.nextIcon,fn=Ht.itemRender,un=fn(Dt,"next",ze.getItemIcon(bt,"next page")),Et=!ze.hasNext();return(0,ge.isValidElement)(un)?(0,ge.cloneElement)(un,{disabled:Et}):un};var at=ke.onChange!==je,Ot="current"in ke;Ot&&!at&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Mt=ke.defaultCurrent;"current"in ke&&(Mt=ke.current);var jt=ke.defaultPageSize;return"pageSize"in ke&&(jt=ke.pageSize),Mt=Math.min(Mt,Xe(jt,void 0,ke)),ze.state={current:Mt,currentInputValue:Mt,pageSize:jt},ze}return(0,E.Z)(We,[{key:"componentDidUpdate",value:function(ze,at){var Ot=this.props.prefixCls;if(at.current!==this.state.current&&this.paginationNode.current){var Mt=this.paginationNode.current.querySelector(".".concat(Ot,"-item-").concat(at.current));if(Mt&&document.activeElement===Mt){var jt;Mt==null||(jt=Mt.blur)===null||jt===void 0||jt.call(Mt)}}}},{key:"getValidValue",value:function(ze){var at=ze.target.value,Ot=Xe(void 0,this.state,this.props),Mt=this.state.currentInputValue,jt;return at===""?jt=at:Number.isNaN(Number(at))?jt=Mt:at>=Ot?jt=Ot:jt=Number(at),jt}},{key:"getShowSizeChanger",value:function(){var ze=this.props,at=ze.showSizeChanger,Ot=ze.total,Mt=ze.totalBoundaryShowSizeChanger;return typeof at!="undefined"?at:Ot>Mt}},{key:"render",value:function(){var ze=this.props,at=ze.prefixCls,Ot=ze.className,Mt=ze.style,jt=ze.disabled,Dt=ze.hideOnSinglePage,Ht=ze.total,bt=ze.locale,fn=ze.showQuickJumper,un=ze.showLessItems,Et=ze.showTitle,Sn=ze.showTotal,pn=ze.simple,Fn=ze.itemRender,xn=ze.showPrevNextJumpers,Kn=ze.jumpPrevIcon,er=ze.jumpNextIcon,Vn=ze.selectComponentClass,Yn=ze.selectPrefixCls,pr=ze.pageSizeOptions,vr=this.state,tn=vr.current,Xn=vr.pageSize,sr=vr.currentInputValue;if(Dt===!0&&Ht<=Xn)return null;var Wn=Xe(void 0,this.state,this.props),lr=[],Ir=null,Rr=null,Er=null,Nr=null,cr=null,Yr=fn&&fn.goButton,$t=un?1:2,ue=tn-1>0?tn-1:0,ve=tn+1<Wn?tn+1:Wn,Pe=(0,z.Z)(this.props,{aria:!0,data:!0}),xe=Sn&&ge.createElement("li",{className:"".concat(at,"-total-text")},Sn(Ht,[Ht===0?0:(tn-1)*Xn+1,tn*Xn>Ht?Ht:tn*Xn]));if(pn){Yr&&(typeof Yr=="boolean"?cr=ge.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},bt.jump_to_confirm):cr=ge.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Yr),cr=ge.createElement("li",{title:Et?"".concat(bt.jump_to).concat(tn,"/").concat(Wn):null,className:"".concat(at,"-simple-pager")},cr));var Be=this.renderPrev(ue);return ge.createElement("ul",(0,ee.Z)({className:oe()(at,"".concat(at,"-simple"),(0,ne.Z)({},"".concat(at,"-disabled"),jt),Ot),style:Mt,ref:this.paginationNode},Pe),xe,Be?ge.createElement("li",{title:Et?bt.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:oe()("".concat(at,"-prev"),(0,ne.Z)({},"".concat(at,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Be):null,ge.createElement("li",{title:Et?"".concat(tn,"/").concat(Wn):null,className:"".concat(at,"-simple-pager")},ge.createElement("input",{type:"text",value:sr,disabled:jt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ge.createElement("span",{className:"".concat(at,"-slash")},"/"),Wn),ge.createElement("li",{title:Et?bt.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:oe()("".concat(at,"-next"),(0,ne.Z)({},"".concat(at,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ve)),cr)}if(Wn<=3+$t*2){var ot={locale:bt,rootPrefixCls:at,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Et,itemRender:Fn};Wn||lr.push(ge.createElement(Ee,(0,ee.Z)({},ot,{key:"noPager",page:1,className:"".concat(at,"-item-disabled")})));for(var ut=1;ut<=Wn;ut+=1){var rn=tn===ut;lr.push(ge.createElement(Ee,(0,ee.Z)({},ot,{key:ut,page:ut,active:rn})))}}else{var Zt=un?bt.prev_3:bt.prev_5,qt=un?bt.next_3:bt.next_5,bn=Fn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Kn,"prev page")),Rt=Fn(this.getJumpNextPage(),"jump-next",this.getItemIcon(er,"next page"));xn&&(Ir=bn?ge.createElement("li",{title:Et?Zt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:oe()("".concat(at,"-jump-prev"),(0,ne.Z)({},"".concat(at,"-jump-prev-custom-icon"),!!Kn))},bn):null,Rr=Rt?ge.createElement("li",{title:Et?qt:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:oe()("".concat(at,"-jump-next"),(0,ne.Z)({},"".concat(at,"-jump-next-custom-icon"),!!er))},Rt):null),Nr=ge.createElement(Ee,{locale:bt,last:!0,rootPrefixCls:at,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Wn,page:Wn,active:!1,showTitle:Et,itemRender:Fn}),Er=ge.createElement(Ee,{locale:bt,rootPrefixCls:at,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Et,itemRender:Fn});var $e=Math.max(1,tn-$t),At=Math.min(tn+$t,Wn);tn-1<=$t&&(At=1+$t*2),Wn-tn<=$t&&($e=Wn-$t*2);for(var Ft=$e;Ft<=At;Ft+=1){var wt=tn===Ft;lr.push(ge.createElement(Ee,{locale:bt,rootPrefixCls:at,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Ft,page:Ft,active:wt,showTitle:Et,itemRender:Fn}))}tn-1>=$t*2&&tn!==3&&(lr[0]=(0,ge.cloneElement)(lr[0],{className:"".concat(at,"-item-after-jump-prev")}),lr.unshift(Ir)),Wn-tn>=$t*2&&tn!==Wn-2&&(lr[lr.length-1]=(0,ge.cloneElement)(lr[lr.length-1],{className:"".concat(at,"-item-before-jump-next")}),lr.push(Rr)),$e!==1&&lr.unshift(Er),At!==Wn&&lr.push(Nr)}var Bt=!this.hasPrev()||!Wn,Kt=!this.hasNext()||!Wn,Xt=this.renderPrev(ue),yn=this.renderNext(ve);return ge.createElement("ul",(0,ee.Z)({className:oe()(at,Ot,(0,ne.Z)({},"".concat(at,"-disabled"),jt)),style:Mt,ref:this.paginationNode},Pe),xe,Xt?ge.createElement("li",{title:Et?bt.prev_page:null,onClick:this.prev,tabIndex:Bt?null:0,onKeyPress:this.runIfEnterPrev,className:oe()("".concat(at,"-prev"),(0,ne.Z)({},"".concat(at,"-disabled"),Bt)),"aria-disabled":Bt},Xt):null,lr,yn?ge.createElement("li",{title:Et?bt.next_page:null,onClick:this.next,tabIndex:Kt?null:0,onKeyPress:this.runIfEnterNext,className:oe()("".concat(at,"-next"),(0,ne.Z)({},"".concat(at,"-disabled"),Kt)),"aria-disabled":Kt},yn):null,ge.createElement(Se,{disabled:jt,locale:bt,rootPrefixCls:at,selectComponentClass:Vn,selectPrefixCls:Yn,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:tn,pageSize:Xn,pageSizeOptions:pr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Yr}))}}],[{key:"getDerivedStateFromProps",value:function(ze,at){var Ot={};if("current"in ze&&(Ot.current=ze.current,ze.current!==at.current&&(Ot.currentInputValue=Ot.current)),"pageSize"in ze&&ze.pageSize!==at.pageSize){var Mt=at.current,jt=Xe(ze.pageSize,at,ze);Mt=Mt>jt?jt:Mt,"current"in ze||(Ot.current=Mt,Ot.currentInputValue=Mt),Ot.pageSize=ze.pageSize}return Ot}}]),We}(ge.Component);pt.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:je,locale:ce.Z,style:{},itemRender:mt,totalBoundaryShowSizeChanger:50};var we=pt,Fe=te(22075),He=te(36355),it=te(19716),Ke=te(8628),ht=te(9763),_t=te(57809);const Lt=Oe=>ge.createElement(_t.default,Object.assign({},Oe,{showSearch:!0,size:"small"})),kt=Oe=>ge.createElement(_t.default,Object.assign({},Oe,{showSearch:!0,size:"middle"}));Lt.Option=_t.default.Option,kt.Option=_t.default.Option;var nt=te(9937),Qe=te(17313),Pt=te(83116),zt=te(37613);const yt=Oe=>{const{componentCls:Ie}=Oe;return{[`${Ie}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ie}-item-link`]:{color:Oe.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ie}-item-link`]:{color:Oe.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ie}-disabled`]:{cursor:"not-allowed",[`${Ie}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Oe.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Oe.colorBorder,backgroundColor:Oe.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Oe.itemActiveBgDisabled},a:{color:Oe.itemActiveColorDisabled}}},[`${Ie}-item-link`]:{color:Oe.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ie}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ie}-simple-pager`]:{color:Oe.colorTextDisabled},[`${Ie}-jump-prev, ${Ie}-jump-next`]:{[`${Ie}-item-link-icon`]:{opacity:0},[`${Ie}-item-ellipsis`]:{opacity:1}}},[`&${Ie}-simple`]:{[`${Ie}-prev, ${Ie}-next`]:{[`&${Ie}-disabled ${Ie}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},an=Oe=>{const{componentCls:Ie}=Oe;return{[`&${Ie}-mini ${Ie}-total-text, &${Ie}-mini ${Ie}-simple-pager`]:{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`},[`&${Ie}-mini ${Ie}-item`]:{minWidth:Oe.itemSizeSM,height:Oe.itemSizeSM,margin:0,lineHeight:`${Oe.itemSizeSM-2}px`},[`&${Ie}-mini:not(${Ie}-disabled) ${Ie}-item:not(${Ie}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Oe.colorBgTextHover},"&:active":{backgroundColor:Oe.colorBgTextActive}},[`&${Ie}-mini ${Ie}-prev, &${Ie}-mini ${Ie}-next`]:{minWidth:Oe.itemSizeSM,height:Oe.itemSizeSM,margin:0,lineHeight:`${Oe.itemSizeSM}px`},[`&${Ie}-mini:not(${Ie}-disabled)`]:{[`${Ie}-prev, ${Ie}-next`]:{[`&:hover ${Ie}-item-link`]:{backgroundColor:Oe.colorBgTextHover},[`&:active ${Ie}-item-link`]:{backgroundColor:Oe.colorBgTextActive},[`&${Ie}-disabled:hover ${Ie}-item-link`]:{backgroundColor:"transparent"}}},[`
&${Ie}-mini ${Ie}-prev ${Ie}-item-link,
&${Ie}-mini ${Ie}-next ${Ie}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`}},[`&${Ie}-mini ${Ie}-jump-prev, &${Ie}-mini ${Ie}-jump-next`]:{height:Oe.itemSizeSM,marginInlineEnd:0,lineHeight:`${Oe.itemSizeSM}px`},[`&${Ie}-mini ${Ie}-options`]:{marginInlineStart:Oe.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Oe.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,nt.x0)(Oe)),{width:Oe.paginationMiniQuickJumperInputWidth,height:Oe.controlHeightSM})}}}},Ze=Oe=>{const{componentCls:Ie}=Oe;return{[`
&${Ie}-simple ${Ie}-prev,
&${Ie}-simple ${Ie}-next
`]:{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`,verticalAlign:"top",[`${Ie}-item-link`]:{height:Oe.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Oe.colorBgTextHover},"&:active":{backgroundColor:Oe.colorBgTextActive},"&::after":{height:Oe.itemSizeSM,lineHeight:`${Oe.itemSizeSM}px`}}},[`&${Ie}-simple ${Ie}-simple-pager`]:{display:"inline-block",height:Oe.itemSizeSM,marginInlineEnd:Oe.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Oe.marginXS,padding:`0 ${Oe.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Oe.itemInputBg,border:`${Oe.lineWidth}px ${Oe.lineType} ${Oe.colorBorder}`,borderRadius:Oe.borderRadius,outline:"none",transition:`border-color ${Oe.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Oe.colorPrimary},"&:focus":{borderColor:Oe.colorPrimaryHover,boxShadow:`${Oe.inputOutlineOffset}px 0 ${Oe.controlOutlineWidth}px ${Oe.controlOutline}`},"&[disabled]":{color:Oe.colorTextDisabled,backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,cursor:"not-allowed"}}}}},vt=Oe=>{const{componentCls:Ie}=Oe;return{[`${Ie}-jump-prev, ${Ie}-jump-next`]:{outline:0,[`${Ie}-item-container`]:{position:"relative",[`${Ie}-item-link-icon`]:{color:Oe.colorPrimary,fontSize:Oe.fontSizeSM,opacity:0,transition:`all ${Oe.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ie}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Oe.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Oe.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Oe.paginationEllipsisTextIndent,opacity:1,transition:`all ${Oe.motionDurationMid}`}},"&:hover":{[`${Ie}-item-link-icon`]:{opacity:1},[`${Ie}-item-ellipsis`]:{opacity:0}}},[`
${Ie}-prev,
${Ie}-jump-prev,
${Ie}-jump-next
`]:{marginInlineEnd:Oe.marginXS},[`
${Ie}-prev,
${Ie}-next,
${Ie}-jump-prev,
${Ie}-jump-next
`]:{display:"inline-block",minWidth:Oe.itemSize,height:Oe.itemSize,color:Oe.colorText,fontFamily:Oe.fontFamily,lineHeight:`${Oe.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Oe.borderRadius,cursor:"pointer",transition:`all ${Oe.motionDurationMid}`},[`${Ie}-prev, ${Ie}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Oe.colorText,cursor:"pointer",userSelect:"none"},[`${Ie}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Oe.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Oe.lineWidth}px ${Oe.lineType} transparent`,borderRadius:Oe.borderRadius,outline:"none",transition:`all ${Oe.motionDurationMid}`},[`&:hover ${Ie}-item-link`]:{backgroundColor:Oe.colorBgTextHover},[`&:active ${Ie}-item-link`]:{backgroundColor:Oe.colorBgTextActive},[`&${Ie}-disabled:hover`]:{[`${Ie}-item-link`]:{backgroundColor:"transparent"}}},[`${Ie}-slash`]:{marginInlineEnd:Oe.paginationSlashMarginInlineEnd,marginInlineStart:Oe.paginationSlashMarginInlineStart},[`${Ie}-options`]:{display:"inline-block",marginInlineStart:Oe.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Oe.controlHeight,marginInlineStart:Oe.marginXS,lineHeight:`${Oe.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,nt.ik)(Oe)),{width:Oe.controlHeightLG*1.25,height:Oe.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Oe.marginXS,marginInlineEnd:Oe.marginXS})}}}},xt=Oe=>{const{componentCls:Ie}=Oe;return{[`${Ie}-item`]:{display:"inline-block",minWidth:Oe.itemSize,height:Oe.itemSize,marginInlineEnd:Oe.marginXS,fontFamily:Oe.fontFamily,lineHeight:`${Oe.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Oe.lineWidth}px ${Oe.lineType} transparent`,borderRadius:Oe.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Oe.paginationItemPaddingInline}px`,color:Oe.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ie}-item-active)`]:{"&:hover":{transition:`all ${Oe.motionDurationMid}`,backgroundColor:Oe.colorBgTextHover},"&:active":{backgroundColor:Oe.colorBgTextActive}},"&-active":{fontWeight:Oe.fontWeightStrong,backgroundColor:Oe.itemActiveBg,borderColor:Oe.colorPrimary,a:{color:Oe.colorPrimary},"&:hover":{borderColor:Oe.colorPrimaryHover},"&:hover a":{color:Oe.colorPrimaryHover}}}}},nn=Oe=>{const{componentCls:Ie}=Oe;return{[Ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Qe.Wf)(Oe)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ie}-total-text`]:{display:"inline-block",height:Oe.itemSize,marginInlineEnd:Oe.marginXS,lineHeight:`${Oe.itemSize-2}px`,verticalAlign:"middle"}}),xt(Oe)),vt(Oe)),Ze(Oe)),an(Oe)),yt(Oe)),{[`@media only screen and (max-width: ${Oe.screenLG}px)`]:{[`${Ie}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Oe.screenSM}px)`]:{[`${Ie}-options`]:{display:"none"}}}),[`&${Oe.componentCls}-rtl`]:{direction:"rtl"}}},Gt=Oe=>{const{componentCls:Ie}=Oe;return{[`${Ie}${Ie}-disabled:not(${Ie}-mini)`]:{"&, &:hover":{[`${Ie}-item-link`]:{borderColor:Oe.colorBorder}},"&:focus-visible":{[`${Ie}-item-link`]:{borderColor:Oe.colorBorder}},[`${Ie}-item, ${Ie}-item-link`]:{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,[`&:hover:not(${Ie}-item-active)`]:{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,a:{color:Oe.colorTextDisabled}},[`&${Ie}-item-active`]:{backgroundColor:Oe.itemActiveBgDisabled}},[`${Ie}-prev, ${Ie}-next`]:{"&:hover button":{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder,color:Oe.colorTextDisabled},[`${Ie}-item-link`]:{backgroundColor:Oe.colorBgContainerDisabled,borderColor:Oe.colorBorder}}},[`${Ie}:not(${Ie}-mini)`]:{[`${Ie}-prev, ${Ie}-next`]:{"&:hover button":{borderColor:Oe.colorPrimaryHover,backgroundColor:Oe.itemBg},[`${Ie}-item-link`]:{backgroundColor:Oe.itemLinkBg,borderColor:Oe.colorBorder},[`&:hover ${Ie}-item-link`]:{borderColor:Oe.colorPrimary,backgroundColor:Oe.itemBg,color:Oe.colorPrimary},[`&${Ie}-disabled`]:{[`${Ie}-item-link`]:{borderColor:Oe.colorBorder,color:Oe.colorTextDisabled}}},[`${Ie}-item`]:{backgroundColor:Oe.itemBg,border:`${Oe.lineWidth}px ${Oe.lineType} ${Oe.colorBorder}`,[`&:hover:not(${Ie}-item-active)`]:{borderColor:Oe.colorPrimary,backgroundColor:Oe.itemBg,a:{color:Oe.colorPrimary}},"&-active":{borderColor:Oe.colorPrimary}}}}},st=Oe=>{const{componentCls:Ie}=Oe;return{[`${Ie}:not(${Ie}-disabled)`]:{[`${Ie}-item`]:Object.assign({},(0,Qe.Qy)(Oe)),[`${Ie}-jump-prev, ${Ie}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ie}-item-link-icon`]:{opacity:1},[`${Ie}-item-ellipsis`]:{opacity:0}},(0,Qe.oN)(Oe))},[`${Ie}-prev, ${Ie}-next`]:{[`&:focus-visible ${Ie}-item-link`]:Object.assign({},(0,Qe.oN)(Oe))}}}};var ct=(0,Pt.Z)("Pagination",Oe=>{const Ie=(0,zt.TS)(Oe,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Oe.marginXXS/2,paginationMiniQuickJumperInputWidth:Oe.controlHeightLG*1.1,paginationItemPaddingInline:Oe.marginXXS*1.5,paginationEllipsisLetterSpacing:Oe.marginXXS/2,paginationSlashMarginInlineStart:Oe.marginXXS,paginationSlashMarginInlineEnd:Oe.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,nt.e5)(Oe),(0,nt.TM)(Oe));return[nn(Ie),st(Ie),Oe.wireframe&&Gt(Ie)]},Oe=>({itemBg:Oe.colorBgContainer,itemSize:Oe.controlHeight,itemSizeSM:Oe.controlHeightSM,itemActiveBg:Oe.colorBgContainer,itemLinkBg:Oe.colorBgContainer,itemActiveColorDisabled:Oe.colorTextDisabled,itemActiveBgDisabled:Oe.controlItemBgActiveDisabled,itemInputBg:Oe.colorBgContainer,miniOptionsSizeChangerTop:0})),Ge=function(Oe,Ie){var We={};for(var ke in Oe)Object.prototype.hasOwnProperty.call(Oe,ke)&&Ie.indexOf(ke)<0&&(We[ke]=Oe[ke]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,ke=Object.getOwnPropertySymbols(Oe);ze<ke.length;ze++)Ie.indexOf(ke[ze])<0&&Object.prototype.propertyIsEnumerable.call(Oe,ke[ze])&&(We[ke[ze]]=Oe[ke[ze]]);return We},qe=Oe=>{const{prefixCls:Ie,selectPrefixCls:We,className:ke,rootClassName:ze,style:at,size:Ot,locale:Mt,selectComponentClass:jt,responsive:Dt,showSizeChanger:Ht}=Oe,bt=Ge(Oe,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:fn}=(0,Ke.Z)(Dt),{getPrefixCls:un,direction:Et,pagination:Sn={}}=ge.useContext(He.E_),pn=un("pagination",Ie),[Fn,xn]=ct(pn),Kn=Ht!=null?Ht:Sn.showSizeChanger,er=ge.useMemo(()=>{const Wn=ge.createElement("span",{className:`${pn}-item-ellipsis`},"\u2022\u2022\u2022"),lr=ge.createElement("button",{className:`${pn}-item-link`,type:"button",tabIndex:-1},Et==="rtl"?ge.createElement(ae.Z,null):ge.createElement(me.Z,null)),Ir=ge.createElement("button",{className:`${pn}-item-link`,type:"button",tabIndex:-1},Et==="rtl"?ge.createElement(me.Z,null):ge.createElement(ae.Z,null)),Rr=ge.createElement("a",{className:`${pn}-item-link`},ge.createElement("div",{className:`${pn}-item-container`},Et==="rtl"?ge.createElement(le.Z,{className:`${pn}-item-link-icon`}):ge.createElement(de,{className:`${pn}-item-link-icon`}),Wn)),Er=ge.createElement("a",{className:`${pn}-item-link`},ge.createElement("div",{className:`${pn}-item-container`},Et==="rtl"?ge.createElement(de,{className:`${pn}-item-link-icon`}):ge.createElement(le.Z,{className:`${pn}-item-link-icon`}),Wn));return{prevIcon:lr,nextIcon:Ir,jumpPrevIcon:Rr,jumpNextIcon:Er}},[Et,pn]),[Vn]=(0,ht.Z)("Pagination",Fe.Z),Yn=Object.assign(Object.assign({},Vn),Mt),pr=(0,it.Z)(Ot),vr=pr==="small"||!!(fn&&!pr&&Dt),tn=un("select",We),Xn=oe()({[`${pn}-mini`]:vr,[`${pn}-rtl`]:Et==="rtl"},Sn==null?void 0:Sn.className,ke,ze,xn),sr=Object.assign(Object.assign({},Sn==null?void 0:Sn.style),at);return Fn(ge.createElement(we,Object.assign({},er,bt,{style:sr,prefixCls:pn,selectPrefixCls:tn,className:Xn,selectComponentClass:jt||(vr?Lt:kt),locale:Yn,showSizeChanger:Kn})))},Ct=qe},61621:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ct}});var ee=te(92310),ge=te.n(ee),be=te(59301),ye=te(36355),_e=te(2738),ie=Ge=>{const{prefixCls:Ne,className:qe,style:Ct,size:Oe,shape:Ie}=Ge,We=ge()({[`${Ne}-lg`]:Oe==="large",[`${Ne}-sm`]:Oe==="small"}),ke=ge()({[`${Ne}-circle`]:Ie==="circle",[`${Ne}-square`]:Ie==="square",[`${Ne}-round`]:Ie==="round"}),ze=be.useMemo(()=>typeof Oe=="number"?{width:Oe,height:Oe,lineHeight:`${Oe}px`}:{},[Oe]);return be.createElement("span",{className:ge()(Ne,We,ke,qe),style:Object.assign(Object.assign({},ze),Ct)})},de=te(93083),le=te(83116),me=te(37613);const ae=new de.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),he=Ge=>({height:Ge,lineHeight:`${Ge}px`}),oe=Ge=>Object.assign({width:Ge},he(Ge)),ne=Ge=>({background:Ge.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ae,animationDuration:Ge.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),a=Ge=>Object.assign({width:Ge*5,minWidth:Ge*5},he(Ge)),y=Ge=>{const{skeletonAvatarCls:Ne,gradientFromColor:qe,controlHeight:Ct,controlHeightLG:Oe,controlHeightSM:Ie}=Ge;return{[`${Ne}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:qe},oe(Ct)),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"},[`${Ne}${Ne}-lg`]:Object.assign({},oe(Oe)),[`${Ne}${Ne}-sm`]:Object.assign({},oe(Ie))}},E=Ge=>{const{controlHeight:Ne,borderRadiusSM:qe,skeletonInputCls:Ct,controlHeightLG:Oe,controlHeightSM:Ie,gradientFromColor:We}=Ge;return{[`${Ct}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:qe},a(Ne)),[`${Ct}-lg`]:Object.assign({},a(Oe)),[`${Ct}-sm`]:Object.assign({},a(Ie))}},b=Ge=>Object.assign({width:Ge},he(Ge)),x=Ge=>{const{skeletonImageCls:Ne,imageSizeBase:qe,gradientFromColor:Ct,borderRadiusSM:Oe}=Ge;return{[`${Ne}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Ct,borderRadius:Oe},b(qe*2)),{[`${Ne}-path`]:{fill:"#bfbfbf"},[`${Ne}-svg`]:Object.assign(Object.assign({},b(qe)),{maxWidth:qe*4,maxHeight:qe*4}),[`${Ne}-svg${Ne}-svg-circle`]:{borderRadius:"50%"}}),[`${Ne}${Ne}-circle`]:{borderRadius:"50%"}}},z=(Ge,Ne,qe)=>{const{skeletonButtonCls:Ct}=Ge;return{[`${qe}${Ct}-circle`]:{width:Ne,minWidth:Ne,borderRadius:"50%"},[`${qe}${Ct}-round`]:{borderRadius:Ne}}},re=Ge=>Object.assign({width:Ge*2,minWidth:Ge*2},he(Ge)),se=Ge=>{const{borderRadiusSM:Ne,skeletonButtonCls:qe,controlHeight:Ct,controlHeightLG:Oe,controlHeightSM:Ie,gradientFromColor:We}=Ge;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${qe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:We,borderRadius:Ne,width:Ct*2,minWidth:Ct*2},re(Ct))},z(Ge,Ct,qe)),{[`${qe}-lg`]:Object.assign({},re(Oe))}),z(Ge,Oe,`${qe}-lg`)),{[`${qe}-sm`]:Object.assign({},re(Ie))}),z(Ge,Ie,`${qe}-sm`))},ce=Ge=>{const{componentCls:Ne,skeletonAvatarCls:qe,skeletonTitleCls:Ct,skeletonParagraphCls:Oe,skeletonButtonCls:Ie,skeletonInputCls:We,skeletonImageCls:ke,controlHeight:ze,controlHeightLG:at,controlHeightSM:Ot,gradientFromColor:Mt,padding:jt,marginSM:Dt,borderRadius:Ht,titleHeight:bt,blockRadius:fn,paragraphLiHeight:un,controlHeightXS:Et,paragraphMarginTop:Sn}=Ge;return{[`${Ne}`]:{display:"table",width:"100%",[`${Ne}-header`]:{display:"table-cell",paddingInlineEnd:jt,verticalAlign:"top",[`${qe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Mt},oe(ze)),[`${qe}-circle`]:{borderRadius:"50%"},[`${qe}-lg`]:Object.assign({},oe(at)),[`${qe}-sm`]:Object.assign({},oe(Ot))},[`${Ne}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Ct}`]:{width:"100%",height:bt,background:Mt,borderRadius:fn,[`+ ${Oe}`]:{marginBlockStart:Ot}},[`${Oe}`]:{padding:0,"> li":{width:"100%",height:un,listStyle:"none",background:Mt,borderRadius:fn,"+ li":{marginBlockStart:Et}}},[`${Oe}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Ne}-content`]:{[`${Ct}, ${Oe} > li`]:{borderRadius:Ht}}},[`${Ne}-with-avatar ${Ne}-content`]:{[`${Ct}`]:{marginBlockStart:Dt,[`+ ${Oe}`]:{marginBlockStart:Sn}}},[`${Ne}${Ne}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},se(Ge)),y(Ge)),E(Ge)),x(Ge)),[`${Ne}${Ne}-block`]:{width:"100%",[`${Ie}`]:{width:"100%"},[`${We}`]:{width:"100%"}},[`${Ne}${Ne}-active`]:{[`
${Ct},
${Oe} > li,
${qe},
${Ie},
${We},
${ke}
`]:Object.assign({},ne(Ge))}}};var pe=(0,le.Z)("Skeleton",Ge=>{const{componentCls:Ne}=Ge,qe=(0,me.TS)(Ge,{skeletonAvatarCls:`${Ne}-avatar`,skeletonTitleCls:`${Ne}-title`,skeletonParagraphCls:`${Ne}-paragraph`,skeletonButtonCls:`${Ne}-button`,skeletonInputCls:`${Ne}-input`,skeletonImageCls:`${Ne}-image`,imageSizeBase:Ge.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Ge.gradientFromColor} 25%, ${Ge.gradientToColor} 37%, ${Ge.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ce(qe)]},Ge=>{const{colorFillContent:Ne,colorFill:qe}=Ge,Ct=Ne,Oe=qe;return{color:Ct,colorGradientEnd:Oe,gradientFromColor:Ct,gradientToColor:Oe,titleHeight:Ge.controlHeight/2,blockRadius:Ge.borderRadiusSM,paragraphMarginTop:Ge.marginLG+Ge.marginXXS,paragraphLiHeight:Ge.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Le=Ge=>{const{prefixCls:Ne,className:qe,rootClassName:Ct,active:Oe,shape:Ie="circle",size:We="default"}=Ge,{getPrefixCls:ke}=be.useContext(ye.E_),ze=ke("skeleton",Ne),[at,Ot]=pe(ze),Mt=(0,_e.Z)(Ge,["prefixCls","className"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Oe},qe,Ct,Ot);return at(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-avatar`,shape:Ie,size:We},Mt))))},je=Ge=>{const{prefixCls:Ne,className:qe,rootClassName:Ct,active:Oe,block:Ie=!1,size:We="default"}=Ge,{getPrefixCls:ke}=be.useContext(ye.E_),ze=ke("skeleton",Ne),[at,Ot]=pe(ze),Mt=(0,_e.Z)(Ge,["prefixCls"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Oe,[`${ze}-block`]:Ie},qe,Ct,Ot);return at(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-button`,size:We},Mt))))};const Me="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 Xe=Ge=>{const{prefixCls:Ne,className:qe,rootClassName:Ct,style:Oe,active:Ie}=Ge,{getPrefixCls:We}=be.useContext(ye.E_),ke=We("skeleton",Ne),[ze,at]=pe(ke),Ot=ge()(ke,`${ke}-element`,{[`${ke}-active`]:Ie},qe,Ct,at);return ze(be.createElement("div",{className:Ot},be.createElement("div",{className:ge()(`${ke}-image`,qe),style:Oe},be.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ke}-image-svg`},be.createElement("path",{d:Me,className:`${ke}-image-path`})))))},we=Ge=>{const{prefixCls:Ne,className:qe,rootClassName:Ct,active:Oe,block:Ie,size:We="default"}=Ge,{getPrefixCls:ke}=be.useContext(ye.E_),ze=ke("skeleton",Ne),[at,Ot]=pe(ze),Mt=(0,_e.Z)(Ge,["prefixCls"]),jt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Oe,[`${ze}-block`]:Ie},qe,Ct,Ot);return at(be.createElement("div",{className:jt},be.createElement(ie,Object.assign({prefixCls:`${ze}-input`,size:We},Mt))))},Fe=te(92413),He={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"},it=He,Ke=te(7657),ht=function(Ne,qe){return be.createElement(Ke.Z,(0,Fe.Z)({},Ne,{ref:qe,icon:it}))},_t=be.forwardRef(ht),Lt=_t,nt=Ge=>{const{prefixCls:Ne,className:qe,rootClassName:Ct,style:Oe,active:Ie,children:We}=Ge,{getPrefixCls:ke}=be.useContext(ye.E_),ze=ke("skeleton",Ne),[at,Ot]=pe(ze),Mt=ge()(ze,`${ze}-element`,{[`${ze}-active`]:Ie},Ot,qe,Ct),jt=We!=null?We:be.createElement(Lt,null);return at(be.createElement("div",{className:Mt},be.createElement("div",{className:ge()(`${ze}-image`,qe),style:Oe},jt)))},Qe=te(26407),zt=Ge=>{const Ne=ke=>{const{width:ze,rows:at=2}=Ge;if(Array.isArray(ze))return ze[ke];if(at-1===ke)return ze},{prefixCls:qe,className:Ct,style:Oe,rows:Ie}=Ge,We=(0,Qe.Z)(Array(Ie)).map((ke,ze)=>be.createElement("li",{key:ze,style:{width:Ne(ze)}}));return be.createElement("ul",{className:ge()(qe,Ct),style:Oe},We)},an=Ge=>{let{prefixCls:Ne,className:qe,width:Ct,style:Oe}=Ge;return be.createElement("h3",{className:ge()(Ne,qe),style:Object.assign({width:Ct},Oe)})};function Ze(Ge){return Ge&&typeof Ge=="object"?Ge:{}}function vt(Ge,Ne){return Ge&&!Ne?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function xt(Ge,Ne){return!Ge&&Ne?{width:"38%"}:Ge&&Ne?{width:"50%"}:{}}function nn(Ge,Ne){const qe={};return(!Ge||!Ne)&&(qe.width="61%"),!Ge&&Ne?qe.rows=3:qe.rows=2,qe}const Gt=Ge=>{const{prefixCls:Ne,loading:qe,className:Ct,rootClassName:Oe,style:Ie,children:We,avatar:ke=!1,title:ze=!0,paragraph:at=!0,active:Ot,round:Mt}=Ge,{getPrefixCls:jt,direction:Dt,skeleton:Ht}=be.useContext(ye.E_),bt=jt("skeleton",Ne),[fn,un]=pe(bt);if(qe||!("loading"in Ge)){const Et=!!ke,Sn=!!ze,pn=!!at;let Fn;if(Et){const er=Object.assign(Object.assign({prefixCls:`${bt}-avatar`},vt(Sn,pn)),Ze(ke));Fn=be.createElement("div",{className:`${bt}-header`},be.createElement(ie,Object.assign({},er)))}let xn;if(Sn||pn){let er;if(Sn){const Yn=Object.assign(Object.assign({prefixCls:`${bt}-title`},xt(Et,pn)),Ze(ze));er=be.createElement(an,Object.assign({},Yn))}let Vn;if(pn){const Yn=Object.assign(Object.assign({prefixCls:`${bt}-paragraph`},nn(Et,Sn)),Ze(at));Vn=be.createElement(zt,Object.assign({},Yn))}xn=be.createElement("div",{className:`${bt}-content`},er,Vn)}const Kn=ge()(bt,{[`${bt}-with-avatar`]:Et,[`${bt}-active`]:Ot,[`${bt}-rtl`]:Dt==="rtl",[`${bt}-round`]:Mt},Ht==null?void 0:Ht.className,Ct,Oe,un);return fn(be.createElement("div",{className:Kn,style:Object.assign(Object.assign({},Ht==null?void 0:Ht.style),Ie)},Fn,xn))}return typeof We!="undefined"?We:null};Gt.Button=je,Gt.Avatar=Le,Gt.Input=we,Gt.Image=Xe,Gt.Node=nt;var st=Gt,ct=st},81327:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return E}});var ee=te(59301),ge=te(92310),be=te.n(ge),ye=te(11592),_e=te(36355),fe=te(33234);const ie=ee.createContext({latestIndex:0}),de=ie.Provider;var me=b=>{let{className:x,index:z,children:re,split:se,style:ce}=b;const{latestIndex:pe}=ee.useContext(ie);return re==null?null:ee.createElement(ee.Fragment,null,ee.createElement("div",{className:x,style:ce},re),z<pe&&se&&ee.createElement("span",{className:`${x}-split`},se))},ae=te(2856);function he(b){return["small","middle","large"].includes(b)}function oe(b){return b?typeof b=="number"&&!Number.isNaN(b):!1}var ne=function(b,x){var z={};for(var re in b)Object.prototype.hasOwnProperty.call(b,re)&&x.indexOf(re)<0&&(z[re]=b[re]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,re=Object.getOwnPropertySymbols(b);se<re.length;se++)x.indexOf(re[se])<0&&Object.prototype.propertyIsEnumerable.call(b,re[se])&&(z[re[se]]=b[re[se]]);return z};const y=ee.forwardRef((b,x)=>{var z,re;const{getPrefixCls:se,space:ce,direction:pe}=ee.useContext(_e.E_),{size:Se=(ce==null?void 0:ce.size)||"small",align:Le,className:Ee,rootClassName:je,children:Me,direction:mt="horizontal",prefixCls:Xe,split:pt,style:we,wrap:Fe=!1,classNames:He,styles:it}=b,Ke=ne(b,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[ht,_t]=Array.isArray(Se)?Se:[Se,Se],Lt=he(_t),kt=he(ht),nt=oe(_t),Qe=oe(ht),Pt=(0,ye.Z)(Me,{keepEmpty:!0}),zt=Le===void 0&&mt==="horizontal"?"center":Le,yt=se("space",Xe),[an,Ze]=(0,ae.Z)(yt),vt=be()(yt,ce==null?void 0:ce.className,Ze,`${yt}-${mt}`,{[`${yt}-rtl`]:pe==="rtl",[`${yt}-align-${zt}`]:zt,[`${yt}-gap-row-${_t}`]:Lt,[`${yt}-gap-col-${ht}`]:kt},Ee,je),xt=be()(`${yt}-item`,(z=He==null?void 0:He.item)!==null&&z!==void 0?z:(re=ce==null?void 0:ce.classNames)===null||re===void 0?void 0:re.item);let nn=0;const Gt=Pt.map((Ge,Ne)=>{var qe,Ct;Ge!=null&&(nn=Ne);const Oe=Ge&&Ge.key||`${xt}-${Ne}`;return ee.createElement(me,{className:xt,key:Oe,index:Ne,split:pt,style:(qe=it==null?void 0:it.item)!==null&&qe!==void 0?qe:(Ct=ce==null?void 0:ce.styles)===null||Ct===void 0?void 0:Ct.item},Ge)}),st=ee.useMemo(()=>({latestIndex:nn}),[nn]);if(Pt.length===0)return null;const ct={};return Fe&&(ct.flexWrap="wrap"),!kt&&Qe&&(ct.columnGap=ht),!Lt&&nt&&(ct.rowGap=_t),an(ee.createElement("div",Object.assign({ref:x,className:vt,style:Object.assign(Object.assign(Object.assign({},ct),ce==null?void 0:ce.style),we)},Ke),ee.createElement(de,{value:st},Gt)))});y.Compact=fe.ZP;var E=y},31797:function(ft,Ve,te){"use strict";te.d(Ve,{default:function(){return pe}});var ee=te(59301),ge=te(56762),be=te(92343),ye=te(92310),_e=te.n(ye),fe=te(36355),ie=te(61621),le=Se=>{const{value:Le,formatter:Ee,precision:je,decimalSeparator:Me,groupSeparator:mt="",prefixCls:Xe}=Se;let pt;if(typeof Ee=="function")pt=Ee(Le);else{const we=String(Le),Fe=we.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Fe||we==="-")pt=we;else{const He=Fe[1];let it=Fe[2]||"0",Ke=Fe[4]||"";it=it.replace(/\B(?=(\d{3})+(?!\d))/g,mt),typeof je=="number"&&(Ke=Ke.padEnd(je,"0").slice(0,je>0?je:0)),Ke&&(Ke=`${Me}${Ke}`),pt=[ee.createElement("span",{key:"int",className:`${Xe}-content-value-int`},He,it),Ke&&ee.createElement("span",{key:"decimal",className:`${Xe}-content-value-decimal`},Ke)]}}return ee.createElement("span",{className:`${Xe}-content-value`},pt)},me=te(17313),ae=te(83116),he=te(37613);const oe=Se=>{const{componentCls:Le,marginXXS:Ee,padding:je,colorTextDescription:Me,titleFontSize:mt,colorTextHeading:Xe,contentFontSize:pt,fontFamily:we}=Se;return{[`${Le}`]:Object.assign(Object.assign({},(0,me.Wf)(Se)),{[`${Le}-title`]:{marginBottom:Ee,color:Me,fontSize:mt},[`${Le}-skeleton`]:{paddingTop:je},[`${Le}-content`]:{color:Xe,fontSize:pt,fontFamily:we,[`${Le}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Le}-content-prefix, ${Le}-content-suffix`]:{display:"inline-block"},[`${Le}-content-prefix`]:{marginInlineEnd:Ee},[`${Le}-content-suffix`]:{marginInlineStart:Ee}}})}};var ne=(0,ae.Z)("Statistic",Se=>{const Le=(0,he.TS)(Se,{});return[oe(Le)]},Se=>{const{fontSizeHeading3:Le,fontSize:Ee}=Se;return{titleFontSize:Ee,contentFontSize:Le}}),y=Se=>{const{prefixCls:Le,className:Ee,rootClassName:je,style:Me,valueStyle:mt,value:Xe=0,title:pt,valueRender:we,prefix:Fe,suffix:He,loading:it=!1,onMouseEnter:Ke,onMouseLeave:ht,decimalSeparator:_t=".",groupSeparator:Lt=","}=Se,{getPrefixCls:kt,direction:nt,statistic:Qe}=ee.useContext(fe.E_),Pt=kt("statistic",Le),[zt,yt]=ne(Pt),an=ee.createElement(le,Object.assign({decimalSeparator:_t,groupSeparator:Lt,prefixCls:Pt},Se,{value:Xe})),Ze=_e()(Pt,{[`${Pt}-rtl`]:nt==="rtl"},Qe==null?void 0:Qe.className,Ee,je,yt);return zt(ee.createElement("div",{className:Ze,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Me),onMouseEnter:Ke,onMouseLeave:ht},pt&&ee.createElement("div",{className:`${Pt}-title`},pt),ee.createElement(ie.Z,{paragraph:!1,loading:it,className:`${Pt}-skeleton`},ee.createElement("div",{style:mt,className:`${Pt}-content`},Fe&&ee.createElement("span",{className:`${Pt}-content-prefix`},Fe),we?we(an):an,He&&ee.createElement("span",{className:`${Pt}-content-suffix`},He)))))};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 Ee=Se;const je=/\[[^\]]*]/g,Me=(Le.match(je)||[]).map(we=>we.slice(1,-1)),mt=Le.replace(je,"[]"),Xe=E.reduce((we,Fe)=>{let[He,it]=Fe;if(we.includes(He)){const Ke=Math.floor(Ee/it);return Ee-=Ke*it,we.replace(new RegExp(`${He}+`,"g"),ht=>{const _t=ht.length;return Ke.toString().padStart(_t,"0")})}return we},mt);let pt=0;return Xe.replace(je,()=>{const we=Me[pt];return pt+=1,we})}function x(Se,Le){const{format:Ee=""}=Le,je=new Date(Se).getTime(),Me=Date.now(),mt=Math.max(je-Me,0);return b(mt,Ee)}const z=1e3/30;function re(Se){return new Date(Se).getTime()}const se=Se=>{const{value:Le,format:Ee="HH:mm:ss",onChange:je,onFinish:Me}=Se,mt=(0,ge.Z)(),Xe=ee.useRef(null),pt=()=>{Me==null||Me(),Xe.current&&(clearInterval(Xe.current),Xe.current=null)},we=()=>{const it=re(Le);it>=Date.now()&&(Xe.current=setInterval(()=>{mt(),je==null||je(it-Date.now()),it<Date.now()&&pt()},z))};ee.useEffect(()=>(we(),()=>{Xe.current&&(clearInterval(Xe.current),Xe.current=null)}),[Le]);const Fe=(it,Ke)=>x(it,Object.assign(Object.assign({},Ke),{format:Ee})),He=it=>(0,be.Tm)(it,{title:void 0});return ee.createElement(y,Object.assign({},Se,{valueRender:He,formatter:Fe}))};var ce=ee.memo(se);y.Countdown=ce;var pe=y},15969:function(ft,Ve,te){"use strict";te.d(Ve,{N:function(){return ee}});const ee=ge=>({color:ge.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ge.motionDurationSlow}`,"&:focus, &:hover":{color:ge.colorLinkHover},"&:active":{color:ge.colorLinkActive}})},1710:function(ft,Ve,te){"use strict";te.d(Ve,{default:function(){return Ui}});var ee={},ge="rc-table-internal-hook",be=te(33606),ye=te(6089),_e=te(34280),fe=te(13697),ie=te(59301),de=te(4676);function le(Ae){var Te=ie.createContext(void 0),Ue=function(lt){var Ce=lt.value,De=lt.children,Re=ie.useRef(Ce);Re.current=Ce;var Je=ie.useState(function(){return{getValue:function(){return Re.current},listeners:new Set}}),et=(0,be.Z)(Je,1),rt=et[0];return(0,_e.Z)(function(){(0,de.unstable_batchedUpdates)(function(){rt.listeners.forEach(function(tt){tt(Ce)})})},[Ce]),ie.createElement(Te.Provider,{value:rt},De)};return{Context:Te,Provider:Ue,defaultValue:Ae}}function me(Ae,Te){var Ue=(0,ye.Z)(typeof Te=="function"?Te:function(tt){if(Te===void 0)return tt;if(!Array.isArray(Te))return tt[Te];var dt={};return Te.forEach(function(gt){dt[gt]=tt[gt]}),dt}),Ye=ie.useContext(Ae==null?void 0:Ae.Context),lt=Ye||{},Ce=lt.listeners,De=lt.getValue,Re=ie.useRef();Re.current=Ue(Ye?De():Ae==null?void 0:Ae.defaultValue);var Je=ie.useState({}),et=(0,be.Z)(Je,2),rt=et[1];return(0,_e.Z)(function(){if(!Ye)return;function tt(dt){var gt=Ue(dt);(0,fe.Z)(Re.current,gt,!0)||rt({})}return Ce.add(tt),function(){Ce.delete(tt)}},[Ye]),Re.current}var ae=te(92413),he=te(8654);function oe(){var Ae=ie.createContext(null);function Te(){return ie.useContext(Ae)}function Ue(lt,Ce){var De=(0,he.Yr)(lt),Re=function(et,rt){var tt=De?{ref:rt}:{},dt=ie.useRef(0),gt=ie.useRef(et),St=Te();return St!==null?ie.createElement(lt,(0,ae.Z)({},et,tt)):((!Ce||Ce(gt.current,et))&&(dt.current+=1),gt.current=et,ie.createElement(Ae.Provider,{value:dt.current},ie.createElement(lt,(0,ae.Z)({},et,tt))))};return De?ie.forwardRef(Re):Re}function Ye(lt,Ce){var De=(0,he.Yr)(lt),Re=function(et,rt){var tt=De?{ref:rt}:{};return Te(),ie.createElement(lt,(0,ae.Z)({},et,tt))};return De?ie.memo(ie.forwardRef(Re),Ce):ie.memo(Re,Ce)}return{makeImmutable:Ue,responseImmutable:Ye,useImmutableMark:Te}}var ne=oe(),a=ne.makeImmutable,y=ne.responseImmutable,E=ne.useImmutableMark,b=oe(),x=b.makeImmutable,z=b.responseImmutable,re=b.useImmutableMark,se=le(),ce=se;function pe(Ae,Te){var Ue=ie.useRef(0);Ue.current+=1;var Ye=ie.useRef(Ae),lt=[];Object.keys(Ae||{}).map(function(De){var Re;(Ae==null?void 0:Ae[De])!==((Re=Ye.current)===null||Re===void 0?void 0:Re[De])&&lt.push(De)}),Ye.current=Ae;var Ce=ie.useRef([]);return lt.length&&(Ce.current=lt),ie.useDebugValue(Ue.current),ie.useDebugValue(Ce.current.join(", ")),Te&&console.log("".concat(Te,":"),Ue.current,Ce.current),Ue.current}var Se=null,Le=ie.memo(function(){var Ae=pe();return ie.createElement("h1",null,"Render Times: ",Ae)});Le.displayName="RenderBlock";var Ee=te(39559),je=te(33708),Me=te(400),mt=te(92310),Xe=te.n(mt),pt=te(80547),we=te(97938),Fe=te(48736),He=ie.createContext({renderWithProps:!1}),it=He,Ke="RC_TABLE_KEY";function ht(Ae){return Ae==null?[]:Array.isArray(Ae)?Ae:[Ae]}function _t(Ae){var Te=[],Ue={};return Ae.forEach(function(Ye){for(var lt=Ye||{},Ce=lt.key,De=lt.dataIndex,Re=Ce||ht(De).join("-")||Ke;Ue[Re];)Re="".concat(Re,"_next");Ue[Re]=!0,Te.push(Re)}),Te}function Lt(Ae){return Ae!=null}function kt(Ae){return Ae&&(0,Ee.Z)(Ae)==="object"&&!Array.isArray(Ae)&&!ie.isValidElement(Ae)}function nt(Ae,Te,Ue,Ye,lt,Ce){var De=ie.useContext(it),Re=re(),Je=(0,pt.Z)(function(){if(Lt(Ye))return[Ye];var et=Te==null||Te===""?[]:Array.isArray(Te)?Te:[Te],rt=(0,we.Z)(Ae,et),tt=rt,dt=void 0;if(lt){var gt=lt(rt,Ae,Ue);kt(gt)?(tt=gt.children,dt=gt.props,De.renderWithProps=!0):tt=gt}return[tt,dt]},[Re,Ae,Ye,Te,lt,Ue],function(et,rt){if(Ce){var tt=(0,be.Z)(et,2),dt=tt[1],gt=(0,be.Z)(rt,2),St=gt[1];return Ce(St,dt)}return De.renderWithProps?!0:!(0,fe.Z)(et,rt,!0)});return Je}function Qe(Ae,Te,Ue,Ye){var lt=Ae+Te-1;return Ae<=Ye&&lt>=Ue}function Pt(Ae,Te){return me(ce,function(Ue){var Ye=Qe(Ae,Te||1,Ue.hoverStartRow,Ue.hoverEndRow);return[Ye,Ue.onHover]})}var zt=function(Te){var Ue=Te.ellipsis,Ye=Te.rowType,lt=Te.children,Ce,De=Ue===!0?{showTitle:!0}:Ue;return De&&(De.showTitle||Ye==="header")&&(typeof lt=="string"||typeof lt=="number"?Ce=lt.toString():ie.isValidElement(lt)&&typeof lt.props.children=="string"&&(Ce=lt.props.children)),Ce};function yt(Ae){var Te,Ue,Ye,lt,Ce,De,Re,Je,et=Ae.component,rt=Ae.children,tt=Ae.ellipsis,dt=Ae.scope,gt=Ae.prefixCls,St=Ae.className,Wt=Ae.align,Nt=Ae.record,Vt=Ae.render,It=Ae.dataIndex,Yt=Ae.renderIndex,Qt=Ae.shouldCellUpdate,_n=Ae.index,ln=Ae.rowType,vn=Ae.colSpan,In=Ae.rowSpan,Jt=Ae.fixLeft,hn=Ae.fixRight,Tt=Ae.firstFixLeft,on=Ae.lastFixLeft,dn=Ae.firstFixRight,Dn=Ae.lastFixRight,qn=Ae.appendNode,en=Ae.additionalProps,Pn=en===void 0?{}:en,Mn=Ae.isSticky,gn="".concat(gt,"-cell"),Tn=me(ce,["supportSticky","allColumnsFixedLeft"]),kn=Tn.supportSticky,Qn=Tn.allColumnsFixedLeft,Gr=nt(Nt,It,Yt,rt,Vt,Qt),tr=(0,be.Z)(Gr,2),Vr=tr[0],_r=tr[1],Ar={},Tr=typeof Jt=="number"&&kn,zn=typeof hn=="number"&&kn;Tr&&(Ar.position="sticky",Ar.left=Jt),zn&&(Ar.position="sticky",Ar.right=hn);var En=(Te=(Ue=(Ye=_r==null?void 0:_r.colSpan)!==null&&Ye!==void 0?Ye:Pn.colSpan)!==null&&Ue!==void 0?Ue:vn)!==null&&Te!==void 0?Te:1,Bn=(lt=(Ce=(De=_r==null?void 0:_r.rowSpan)!==null&&De!==void 0?De:Pn.rowSpan)!==null&&Ce!==void 0?Ce:In)!==null&&lt!==void 0?lt:1,$n=Pt(_n,Bn),An=(0,be.Z)($n,2),br=An[0],Rn=An[1],jn=function(Or){var wr;Nt&&Rn(_n,_n+Bn-1),Pn==null||(wr=Pn.onMouseEnter)===null||wr===void 0||wr.call(Pn,Or)},hr=function(Or){var wr;Nt&&Rn(-1,-1),Pn==null||(wr=Pn.onMouseLeave)===null||wr===void 0||wr.call(Pn,Or)};if(En===0||Bn===0)return null;var Pr=(Re=Pn.title)!==null&&Re!==void 0?Re:zt({rowType:ln,ellipsis:tt,children:Vr}),Do=Xe()(gn,St,(Je={},(0,Me.Z)(Je,"".concat(gn,"-fix-left"),Tr&&kn),(0,Me.Z)(Je,"".concat(gn,"-fix-left-first"),Tt&&kn),(0,Me.Z)(Je,"".concat(gn,"-fix-left-last"),on&&kn),(0,Me.Z)(Je,"".concat(gn,"-fix-left-all"),on&&Qn&&kn),(0,Me.Z)(Je,"".concat(gn,"-fix-right"),zn&&kn),(0,Me.Z)(Je,"".concat(gn,"-fix-right-first"),dn&&kn),(0,Me.Z)(Je,"".concat(gn,"-fix-right-last"),Dn&&kn),(0,Me.Z)(Je,"".concat(gn,"-ellipsis"),tt),(0,Me.Z)(Je,"".concat(gn,"-with-append"),qn),(0,Me.Z)(Je,"".concat(gn,"-fix-sticky"),(Tr||zn)&&Mn&&kn),(0,Me.Z)(Je,"".concat(gn,"-row-hover"),!_r&&br),Je),Pn.className,_r==null?void 0:_r.className),bo={};Wt&&(bo.textAlign=Wt);var nr=(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},Ar),Pn.style),bo),_r==null?void 0:_r.style),mr=Vr;return(0,Ee.Z)(mr)==="object"&&!Array.isArray(mr)&&!ie.isValidElement(mr)&&(mr=null),tt&&(on||dn)&&(mr=ie.createElement("span",{className:"".concat(gn,"-content")},mr)),ie.createElement(et,(0,ae.Z)({},_r,Pn,{className:Do,style:nr,title:Pr,scope:dt,onMouseEnter:jn,onMouseLeave:hr,colSpan:En!==1?En:null,rowSpan:Bn!==1?Bn:null}),qn,mr)}var an=ie.memo(yt);function Ze(Ae,Te,Ue,Ye,lt,Ce){var De=Ue[Ae]||{},Re=Ue[Te]||{},Je,et;De.fixed==="left"?Je=Ye.left[lt==="rtl"?Te:Ae]:Re.fixed==="right"&&(et=Ye.right[lt==="rtl"?Ae:Te]);var rt=!1,tt=!1,dt=!1,gt=!1,St=Ue[Te+1],Wt=Ue[Ae-1],Nt=!(Ce!=null&&Ce.children);if(lt==="rtl"){if(Je!==void 0){var Vt=Wt&&Wt.fixed==="left";gt=!Vt&&Nt}else if(et!==void 0){var It=St&&St.fixed==="right";dt=!It&&Nt}}else if(Je!==void 0){var Yt=St&&St.fixed==="left";rt=!Yt&&Nt}else if(et!==void 0){var Qt=Wt&&Wt.fixed==="right";tt=!Qt&&Nt}return{fixLeft:Je,fixRight:et,lastFixLeft:rt,firstFixRight:tt,lastFixRight:dt,firstFixLeft:gt,isSticky:Ye.isSticky}}var vt=ie.createContext({}),xt=vt;function nn(Ae){var Te=Ae.className,Ue=Ae.index,Ye=Ae.children,lt=Ae.colSpan,Ce=lt===void 0?1:lt,De=Ae.rowSpan,Re=Ae.align,Je=me(ce,["prefixCls","direction"]),et=Je.prefixCls,rt=Je.direction,tt=ie.useContext(xt),dt=tt.scrollColumnIndex,gt=tt.stickyOffsets,St=tt.flattenColumns,Wt=tt.columns,Nt=Ue+Ce-1,Vt=Nt+1===dt?Ce+1:Ce,It=Ze(Ue,Ue+Vt-1,St,gt,rt,Wt==null?void 0:Wt[Ue]);return ie.createElement(an,(0,ae.Z)({className:Te,index:Ue,component:"td",prefixCls:et,record:null,dataIndex:null,align:Re,colSpan:Vt,rowSpan:De,render:function(){return Ye}},It))}var Gt=te(37061),st=["children"];function ct(Ae){var Te=Ae.children,Ue=(0,Gt.Z)(Ae,st);return ie.createElement("tr",Ue,Te)}function Ge(Ae){var Te=Ae.children;return Te}Ge.Row=ct,Ge.Cell=nn;var Ne=Ge;function qe(Ae){var Te=Ae.children,Ue=Ae.stickyOffsets,Ye=Ae.flattenColumns,lt=Ae.columns,Ce=me(ce,"prefixCls"),De=Ye.length-1,Re=Ye[De],Je=ie.useMemo(function(){return{stickyOffsets:Ue,flattenColumns:Ye,scrollColumnIndex:Re!=null&&Re.scrollbar?De:null,columns:lt}},[Re,Ye,De,Ue,lt]);return ie.createElement(xt.Provider,{value:Je},ie.createElement("tfoot",{className:"".concat(Ce,"-summary")},Te))}var Ct=z(qe),Oe=Ne,Ie=te(70425),We=te(29301),ke=te(29194),ze=te(24514),at=te(75152),Ot=te(26112);function Mt(Ae,Te,Ue,Ye,lt,Ce,De){Ae.push({record:Te,indent:Ue,index:De});var Re=Ce(Te),Je=lt==null?void 0:lt.has(Re);if(Te&&Array.isArray(Te[Ye])&&Je)for(var et=0;et<Te[Ye].length;et+=1)Mt(Ae,Te[Ye][et],Ue+1,Ye,lt,Ce,et)}function jt(Ae,Te,Ue,Ye){var lt=ie.useMemo(function(){if(Ue!=null&&Ue.size){for(var Ce=[],De=0;De<(Ae==null?void 0:Ae.length);De+=1){var Re=Ae[De];Mt(Ce,Re,0,Te,Ue,Ye,De)}return Ce}return Ae==null?void 0:Ae.map(function(Je,et){return{record:Je,indent:0,index:et}})},[Ae,Te,Ue,Ye]);return lt}function Dt(Ae){var Te=Ae.prefixCls,Ue=Ae.children,Ye=Ae.component,lt=Ae.cellComponent,Ce=Ae.className,De=Ae.expanded,Re=Ae.colSpan,Je=Ae.isEmpty,et=me(ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),rt=et.scrollbarSize,tt=et.fixHeader,dt=et.fixColumn,gt=et.componentWidth,St=et.horizonScroll,Wt=Ue;return(Je?St&&gt:dt)&&(Wt=ie.createElement("div",{style:{width:gt-(tt?rt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Te,"-expanded-row-fixed")},Wt)),ie.createElement(Ye,{className:Ce,style:{display:De?null:"none"}},ie.createElement(an,{component:lt,prefixCls:Te,colSpan:Re},Wt))}var Ht=Dt;function bt(Ae,Te,Ue,Ye){var lt=me(ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ce=lt.flattenColumns,De=lt.expandableType,Re=lt.expandedKeys,Je=lt.childrenColumnName,et=lt.onTriggerExpand,rt=lt.rowExpandable,tt=lt.onRow,dt=lt.expandRowByClick,gt=lt.rowClassName,St=De==="nest",Wt=De==="row"&&(!rt||rt(Ae)),Nt=Wt||St,Vt=Re&&Re.has(Te),It=Je&&Ae&&Ae[Je],Yt=(0,Ie.useEvent)(et),Qt=tt==null?void 0:tt(Ae,Ue),_n=Qt==null?void 0:Qt.onClick,ln=function(hn){dt&&Nt&&et(Ae,hn);for(var Tt=arguments.length,on=new Array(Tt>1?Tt-1:0),dn=1;dn<Tt;dn++)on[dn-1]=arguments[dn];_n==null||_n.apply(void 0,[hn].concat(on))},vn;typeof gt=="string"?vn=gt:typeof gt=="function"&&(vn=gt(Ae,Ue,Ye));var In=_t(Ce);return(0,je.Z)((0,je.Z)({},lt),{},{columnsKey:In,nestExpandable:St,expanded:Vt,hasNestChildren:It,record:Ae,onTriggerExpand:Yt,rowSupportExpand:Wt,expandable:Nt,rowProps:(0,je.Z)((0,je.Z)({},Qt),{},{className:Xe()(vn,Qt==null?void 0:Qt.className),onClick:ln})})}function fn(Ae,Te,Ue,Ye,lt){var Ce=Ae.record,De=Ae.prefixCls,Re=Ae.columnsKey,Je=Ae.fixedInfoList,et=Ae.expandIconColumnIndex,rt=Ae.nestExpandable,tt=Ae.indentSize,dt=Ae.expandIcon,gt=Ae.expanded,St=Ae.hasNestChildren,Wt=Ae.onTriggerExpand,Nt=Re[Ue],Vt=Je[Ue],It;Ue===(et||0)&&rt&&(It=ie.createElement(ie.Fragment,null,ie.createElement("span",{style:{paddingLeft:"".concat(tt*Ye,"px")},className:"".concat(De,"-row-indent indent-level-").concat(Ye)}),dt({prefixCls:De,expanded:gt,expandable:St,record:Ce,onExpand:Wt})));var Yt;return Te.onCell&&(Yt=Te.onCell(Ce,lt)),{key:Nt,fixedInfo:Vt,appendCellNode:It,additionalCellProps:Yt||{}}}function un(Ae){var Te=Ae.className,Ue=Ae.style,Ye=Ae.record,lt=Ae.index,Ce=Ae.renderIndex,De=Ae.rowKey,Re=Ae.indent,Je=Re===void 0?0:Re,et=Ae.rowComponent,rt=Ae.cellComponent,tt=Ae.scopeCellComponent,dt=bt(Ye,De,lt,Je),gt=dt.prefixCls,St=dt.flattenColumns,Wt=dt.expandedRowClassName,Nt=dt.expandedRowRender,Vt=dt.rowProps,It=dt.expanded,Yt=dt.rowSupportExpand,Qt=ie.useState(!1),_n=(0,be.Z)(Qt,2),ln=_n[0],vn=_n[1];ie.useEffect(function(){It&&vn(!0)},[It]);var In=ie.createElement(et,(0,ae.Z)({},Vt,{"data-row-key":De,className:Xe()(Te,"".concat(gt,"-row"),"".concat(gt,"-row-level-").concat(Je),Vt==null?void 0:Vt.className),style:(0,je.Z)((0,je.Z)({},Ue),Vt==null?void 0:Vt.style)}),St.map(function(on,dn){var Dn=on.render,qn=on.dataIndex,en=on.className,Pn=fn(dt,on,dn,Je,lt),Mn=Pn.key,gn=Pn.fixedInfo,Tn=Pn.appendCellNode,kn=Pn.additionalCellProps;return ie.createElement(an,(0,ae.Z)({className:en,ellipsis:on.ellipsis,align:on.align,scope:on.rowScope,component:on.rowScope?tt:rt,prefixCls:gt,key:Mn,record:Ye,index:lt,renderIndex:Ce,dataIndex:qn,render:Dn,shouldCellUpdate:on.shouldCellUpdate},gn,{appendNode:Tn,additionalProps:kn}))})),Jt;if(Yt&&(ln||It)){var hn=Nt(Ye,lt,Je+1,It),Tt=Wt&&Wt(Ye,lt,Je);Jt=ie.createElement(Ht,{expanded:It,className:Xe()("".concat(gt,"-expanded-row"),"".concat(gt,"-expanded-row-level-").concat(Je+1),Tt),prefixCls:gt,component:et,cellComponent:rt,colSpan:St.length,isEmpty:!1},hn)}return ie.createElement(ie.Fragment,null,In,Jt)}un.displayName="BodyRow";var Et=z(un);function Sn(Ae){var Te=Ae.columnKey,Ue=Ae.onColumnResize,Ye=ie.useRef();return ie.useEffect(function(){Ye.current&&Ue(Te,Ye.current.offsetWidth)},[]),ie.createElement(We.Z,{data:Te},ie.createElement("td",{ref:Ye,style:{padding:0,border:0,height:0}},ie.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function pn(Ae){var Te=Ae.prefixCls,Ue=Ae.columnsKey,Ye=Ae.onColumnResize;return ie.createElement("tr",{"aria-hidden":"true",className:"".concat(Te,"-measure-row"),style:{height:0,fontSize:0}},ie.createElement(We.Z.Collection,{onBatchResize:function(Ce){Ce.forEach(function(De){var Re=De.data,Je=De.size;Ye(Re,Je.offsetWidth)})}},Ue.map(function(lt){return ie.createElement(Sn,{key:lt,columnKey:lt,onColumnResize:Ye})})))}function Fn(Ae){var Te=Ae.data,Ue=Ae.measureColumnWidth,Ye=me(ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),lt=Ye.prefixCls,Ce=Ye.getComponent,De=Ye.onColumnResize,Re=Ye.flattenColumns,Je=Ye.getRowKey,et=Ye.expandedKeys,rt=Ye.childrenColumnName,tt=Ye.emptyNode,dt=jt(Te,rt,et,Je),gt=ie.useRef({renderWithProps:!1}),St=Ce(["body","wrapper"],"tbody"),Wt=Ce(["body","row"],"tr"),Nt=Ce(["body","cell"],"td"),Vt=Ce(["body","cell"],"th"),It;Te.length?It=dt.map(function(Qt,_n){var ln=Qt.record,vn=Qt.indent,In=Qt.index,Jt=Je(ln,_n);return ie.createElement(Et,{key:Jt,rowKey:Jt,record:ln,index:_n,renderIndex:In,rowComponent:Wt,cellComponent:Nt,scopeCellComponent:Vt,getRowKey:Je,indent:vn})}):It=ie.createElement(Ht,{expanded:!0,className:"".concat(lt,"-placeholder"),prefixCls:lt,component:Wt,cellComponent:Nt,colSpan:Re.length,isEmpty:!0},tt);var Yt=_t(Re);return ie.createElement(it.Provider,{value:gt.current},ie.createElement(St,{className:"".concat(lt,"-tbody")},Ue&&ie.createElement(pn,{prefixCls:lt,columnsKey:Yt,onColumnResize:De}),It))}Fn.displayName="Body";var xn=z(Fn),Kn=["expandable"],er="RC_TABLE_INTERNAL_COL_DEFINE";function Vn(Ae){var Te=Ae.expandable,Ue=(0,Gt.Z)(Ae,Kn),Ye;return"expandable"in Ae?Ye=(0,je.Z)((0,je.Z)({},Ue),Te):Ye=Ue,Ye.showExpandColumn===!1&&(Ye.expandIconColumnIndex=-1),Ye}var Yn=["columnType"];function pr(Ae){for(var Te=Ae.colWidths,Ue=Ae.columns,Ye=Ae.columCount,lt=[],Ce=Ye||Ue.length,De=!1,Re=Ce-1;Re>=0;Re-=1){var Je=Te[Re],et=Ue&&Ue[Re],rt=et&&et[er];if(Je||rt||De){var tt=rt||{},dt=tt.columnType,gt=(0,Gt.Z)(tt,Yn);lt.unshift(ie.createElement("col",(0,ae.Z)({key:Re,style:{width:Je}},gt))),De=!0}}return ie.createElement("colgroup",null,lt)}var vr=pr,tn=te(26407),Xn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function sr(Ae,Te){return(0,ie.useMemo)(function(){for(var Ue=[],Ye=0;Ye<Te;Ye+=1){var lt=Ae[Ye];if(lt!==void 0)Ue[Ye]=lt;else return null}return Ue},[Ae.join("_"),Te])}var Wn=ie.forwardRef(function(Ae,Te){var Ue=Ae.className,Ye=Ae.noData,lt=Ae.columns,Ce=Ae.flattenColumns,De=Ae.colWidths,Re=Ae.columCount,Je=Ae.stickyOffsets,et=Ae.direction,rt=Ae.fixHeader,tt=Ae.stickyTopOffset,dt=Ae.stickyBottomOffset,gt=Ae.stickyClassName,St=Ae.onScroll,Wt=Ae.maxContentScroll,Nt=Ae.children,Vt=(0,Gt.Z)(Ae,Xn),It=me(ce,["prefixCls","scrollbarSize","isSticky"]),Yt=It.prefixCls,Qt=It.scrollbarSize,_n=It.isSticky,ln=_n&&!rt?0:Qt,vn=ie.useRef(null),In=ie.useCallback(function(en){(0,he.mH)(Te,en),(0,he.mH)(vn,en)},[]);ie.useEffect(function(){var en;function Pn(Mn){var gn=Mn,Tn=gn.currentTarget,kn=gn.deltaX;kn&&(St({currentTarget:Tn,scrollLeft:Tn.scrollLeft+kn}),Mn.preventDefault())}return(en=vn.current)===null||en===void 0||en.addEventListener("wheel",Pn),function(){var Mn;(Mn=vn.current)===null||Mn===void 0||Mn.removeEventListener("wheel",Pn)}},[]);var Jt=ie.useMemo(function(){return Ce.every(function(en){return en.width})},[Ce]),hn=Ce[Ce.length-1],Tt={fixed:hn?hn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Yt,"-cell-scrollbar")}}},on=(0,ie.useMemo)(function(){return ln?[].concat((0,tn.Z)(lt),[Tt]):lt},[ln,lt]),dn=(0,ie.useMemo)(function(){return ln?[].concat((0,tn.Z)(Ce),[Tt]):Ce},[ln,Ce]),Dn=(0,ie.useMemo)(function(){var en=Je.right,Pn=Je.left;return(0,je.Z)((0,je.Z)({},Je),{},{left:et==="rtl"?[].concat((0,tn.Z)(Pn.map(function(Mn){return Mn+ln})),[0]):Pn,right:et==="rtl"?en:[].concat((0,tn.Z)(en.map(function(Mn){return Mn+ln})),[0]),isSticky:_n})},[ln,Je,_n]),qn=sr(De,Re);return ie.createElement("div",{style:(0,je.Z)({overflow:"hidden"},_n?{top:tt,bottom:dt}:{}),ref:In,className:Xe()(Ue,(0,Me.Z)({},gt,!!gt))},ie.createElement("table",{style:{tableLayout:"fixed",visibility:Ye||qn?null:"hidden"}},(!Ye||!Wt||Jt)&&ie.createElement(vr,{colWidths:qn?[].concat((0,tn.Z)(qn),[ln]):[],columCount:Re+1,columns:dn}),Nt((0,je.Z)((0,je.Z)({},Vt),{},{stickyOffsets:Dn,columns:on,flattenColumns:dn}))))});Wn.displayName="FixedHolder";var lr=ie.memo(Wn);function Ir(Ae){var Te=Ae.cells,Ue=Ae.stickyOffsets,Ye=Ae.flattenColumns,lt=Ae.rowComponent,Ce=Ae.cellComponent,De=Ae.tdCellComponent,Re=Ae.onHeaderRow,Je=Ae.index,et=me(ce,["prefixCls","direction"]),rt=et.prefixCls,tt=et.direction,dt;Re&&(dt=Re(Te.map(function(St){return St.column}),Je));var gt=_t(Te.map(function(St){return St.column}));return ie.createElement(lt,dt,Te.map(function(St,Wt){var Nt=St.column,Vt=Ze(St.colStart,St.colEnd,Ye,Ue,tt,Nt),It;return Nt&&Nt.onHeaderCell&&(It=St.column.onHeaderCell(Nt)),ie.createElement(an,(0,ae.Z)({},St,{scope:Nt.title?St.colSpan>1?"colgroup":"col":null,ellipsis:Nt.ellipsis,align:Nt.align,component:Nt.title?Ce:De,prefixCls:rt,key:gt[Wt]},Vt,{additionalProps:It,rowType:"header"}))}))}Ir.displayName="HeaderRow";var Rr=Ir;function Er(Ae){var Te=[];function Ue(De,Re){var Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Te[Je]=Te[Je]||[];var et=Re,rt=De.filter(Boolean).map(function(tt){var dt={key:tt.key,className:tt.className||"",children:tt.title,column:tt,colStart:et},gt=1,St=tt.children;return St&&St.length>0&&(gt=Ue(St,et,Je+1).reduce(function(Wt,Nt){return Wt+Nt},0),dt.hasSubColumns=!0),"colSpan"in tt&&(gt=tt.colSpan),"rowSpan"in tt&&(dt.rowSpan=tt.rowSpan),dt.colSpan=gt,dt.colEnd=dt.colStart+gt-1,Te[Je].push(dt),et+=gt,gt});return rt}Ue(Ae,0);for(var Ye=Te.length,lt=function(Re){Te[Re].forEach(function(Je){!("rowSpan"in Je)&&!Je.hasSubColumns&&(Je.rowSpan=Ye-Re)})},Ce=0;Ce<Ye;Ce+=1)lt(Ce);return Te}function Nr(Ae){var Te=Ae.stickyOffsets,Ue=Ae.columns,Ye=Ae.flattenColumns,lt=Ae.onHeaderRow,Ce=me(ce,["prefixCls","getComponent"]),De=Ce.prefixCls,Re=Ce.getComponent,Je=ie.useMemo(function(){return Er(Ue)},[Ue]),et=Re(["header","wrapper"],"thead"),rt=Re(["header","row"],"tr"),tt=Re(["header","cell"],"th"),dt=Re(["header","cell"],"td");return ie.createElement(et,{className:"".concat(De,"-thead")},Je.map(function(gt,St){var Wt=ie.createElement(Rr,{key:St,flattenColumns:Ye,cells:gt,stickyOffsets:Te,rowComponent:rt,cellComponent:tt,tdCellComponent:dt,onHeaderRow:lt,index:St});return Wt}))}var cr=z(Nr),Yr=te(11592);function $t(Ae){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?Ae*parseFloat(Te)/100:null}function ue(Ae,Te){return ie.useMemo(function(){if(Te&&Te>0){var Ue=0,Ye=0;Ae.forEach(function(et){var rt=$t(Te,et.width);rt?Ue+=rt:Ye+=1});var lt=Te-Ue,Ce=Ye,De=lt/Ye,Re=0,Je=Ae.map(function(et){var rt=(0,je.Z)({},et),tt=$t(Te,rt.width);if(tt)rt.width=tt;else{var dt=Math.floor(De);rt.width=Ce===1?lt:dt,lt-=dt,Ce-=1}return Re+=rt.width,rt});return[Je,Re]}return[Ae,Te]},[Ae,Te])}var ve=["children"],Pe=["fixed"];function xe(Ae){return(0,Yr.Z)(Ae).filter(function(Te){return ie.isValidElement(Te)}).map(function(Te){var Ue=Te.key,Ye=Te.props,lt=Ye.children,Ce=(0,Gt.Z)(Ye,ve),De=(0,je.Z)({key:Ue},Ce);return lt&&(De.children=xe(lt)),De})}function Be(Ae){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ae.filter(function(Ue){return Ue&&(0,Ee.Z)(Ue)==="object"}).reduce(function(Ue,Ye,lt){var Ce=Ye.fixed,De=Ce===!0?"left":Ce,Re="".concat(Te,"-").concat(lt),Je=Ye.children;return Je&&Je.length>0?[].concat((0,tn.Z)(Ue),(0,tn.Z)(Be(Je,Re).map(function(et){return(0,je.Z)({fixed:De},et)}))):[].concat((0,tn.Z)(Ue),[(0,je.Z)((0,je.Z)({key:Re},Ye),{},{fixed:De})])},[])}function ot(Ae){for(var Te=!0,Ue=0;Ue<Ae.length;Ue+=1){var Ye=Ae[Ue];if(Te&&Ye.fixed!=="left")Te=!1;else if(!Te&&Ye.fixed==="left"){warning(!1,"Index ".concat(Ue-1," of `columns` missing `fixed='left'` prop."));break}}for(var lt=!0,Ce=Ae.length-1;Ce>=0;Ce-=1){var De=Ae[Ce];if(lt&&De.fixed!=="right")lt=!1;else if(!lt&&De.fixed==="right"){warning(!1,"Index ".concat(Ce+1," of `columns` missing `fixed='right'` prop."));break}}}function ut(Ae){return Ae.map(function(Te){var Ue=Te.fixed,Ye=(0,Gt.Z)(Te,Pe),lt=Ue;return Ue==="left"?lt="right":Ue==="right"&&(lt="left"),(0,je.Z)({fixed:lt},Ye)})}function rn(Ae,Te){var Ue=Ae.prefixCls,Ye=Ae.columns,lt=Ae.children,Ce=Ae.expandable,De=Ae.expandedKeys,Re=Ae.columnTitle,Je=Ae.getRowKey,et=Ae.onTriggerExpand,rt=Ae.expandIcon,tt=Ae.rowExpandable,dt=Ae.expandIconColumnIndex,gt=Ae.direction,St=Ae.expandRowByClick,Wt=Ae.columnWidth,Nt=Ae.fixed,Vt=Ae.scrollWidth,It=ie.useMemo(function(){return Ye||xe(lt)},[Ye,lt]),Yt=ie.useMemo(function(){if(Ce){var hn,Tt=It.slice();if(!Tt.includes(ee)){var on=dt||0;on>=0&&Tt.splice(on,0,ee)}var dn=Tt.indexOf(ee);Tt=Tt.filter(function(Pn,Mn){return Pn!==ee||Mn===dn});var Dn=It[dn],qn;(Nt==="left"||Nt)&&!dt?qn="left":(Nt==="right"||Nt)&&dt===It.length?qn="right":qn=Dn?Dn.fixed:null;var en=(hn={},(0,Me.Z)(hn,er,{className:"".concat(Ue,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Me.Z)(hn,"title",Re),(0,Me.Z)(hn,"fixed",qn),(0,Me.Z)(hn,"className","".concat(Ue,"-row-expand-icon-cell")),(0,Me.Z)(hn,"width",Wt),(0,Me.Z)(hn,"render",function(Mn,gn,Tn){var kn=Je(gn,Tn),Qn=De.has(kn),Gr=tt?tt(gn):!0,tr=rt({prefixCls:Ue,expanded:Qn,expandable:Gr,record:gn,onExpand:et});return St?ie.createElement("span",{onClick:function(_r){return _r.stopPropagation()}},tr):tr}),hn);return Tt.map(function(Pn){return Pn===ee?en:Pn})}return It.filter(function(Pn){return Pn!==ee})},[Ce,It,Je,De,rt,gt]),Qt=ie.useMemo(function(){var hn=Yt;return Te&&(hn=Te(hn)),hn.length||(hn=[{render:function(){return null}}]),hn},[Te,Yt,gt]),_n=ie.useMemo(function(){return gt==="rtl"?ut(Be(Qt)):Be(Qt)},[Qt,gt,Vt]),ln=ue(_n,Vt),vn=(0,be.Z)(ln,2),In=vn[0],Jt=vn[1];return[Qt,In,Jt]}var Zt=rn;function qt(Ae){var Te,Ue=Ae.prefixCls,Ye=Ae.record,lt=Ae.onExpand,Ce=Ae.expanded,De=Ae.expandable,Re="".concat(Ue,"-row-expand-icon");if(!De)return ie.createElement("span",{className:Xe()(Re,"".concat(Ue,"-row-spaced"))});var Je=function(rt){lt(Ye,rt),rt.stopPropagation()};return ie.createElement("span",{className:Xe()(Re,(Te={},(0,Me.Z)(Te,"".concat(Ue,"-row-expanded"),Ce),(0,Me.Z)(Te,"".concat(Ue,"-row-collapsed"),!Ce),Te)),onClick:Je})}function bn(Ae,Te,Ue){var Ye=[];function lt(Ce){(Ce||[]).forEach(function(De,Re){Ye.push(Te(De,Re)),lt(De[Ue])})}return lt(Ae),Ye}function Rt(Ae,Te,Ue){var Ye=Vn(Ae),lt=Ye.expandIcon,Ce=Ye.expandedRowKeys,De=Ye.defaultExpandedRowKeys,Re=Ye.defaultExpandAllRows,Je=Ye.expandedRowRender,et=Ye.onExpand,rt=Ye.onExpandedRowsChange,tt=Ye.childrenColumnName,dt=lt||qt,gt=tt||"children",St=ie.useMemo(function(){return Je?"row":Ae.expandable&&Ae.internalHooks===ge&&Ae.expandable.__PARENT_RENDER_ICON__||Te.some(function(_n){return _n&&(0,Ee.Z)(_n)==="object"&&_n[gt]})?"nest":!1},[!!Je,Te]),Wt=ie.useState(function(){return De||(Re?bn(Te,Ue,gt):[])}),Nt=(0,be.Z)(Wt,2),Vt=Nt[0],It=Nt[1],Yt=ie.useMemo(function(){return new Set(Ce||Vt||[])},[Ce,Vt]),Qt=ie.useCallback(function(_n){var ln=Ue(_n,Te.indexOf(_n)),vn,In=Yt.has(ln);In?(Yt.delete(ln),vn=(0,tn.Z)(Yt)):vn=[].concat((0,tn.Z)(Yt),[ln]),It(vn),et&&et(!In,_n),rt&&rt(vn)},[Ue,Yt,Te,et,rt]);return[Ye,St,Yt,dt,gt,Qt]}function $e(Ae,Te,Ue,Ye){var lt=Ae.map(function(Ce,De){return Ze(De,De,Ae,Te,Ue,Ye==null?void 0:Ye[De])});return(0,pt.Z)(function(){return lt},[lt],function(Ce,De){return!(0,fe.Z)(Ce,De)})}function At(Ae){var Te=(0,ie.useRef)(Ae),Ue=(0,ie.useState)({}),Ye=(0,be.Z)(Ue,2),lt=Ye[1],Ce=(0,ie.useRef)(null),De=(0,ie.useRef)([]);function Re(Je){De.current.push(Je);var et=Promise.resolve();Ce.current=et,et.then(function(){if(Ce.current===et){var rt=De.current,tt=Te.current;De.current=[],rt.forEach(function(dt){Te.current=dt(Te.current)}),Ce.current=null,tt!==Te.current&&lt({})}})}return(0,ie.useEffect)(function(){return function(){Ce.current=null}},[]),[Te.current,Re]}function Ft(Ae){var Te=(0,ie.useRef)(Ae||null),Ue=(0,ie.useRef)();function Ye(){window.clearTimeout(Ue.current)}function lt(De){Te.current=De,Ye(),Ue.current=window.setTimeout(function(){Te.current=null,Ue.current=void 0},100)}function Ce(){return Te.current}return(0,ie.useEffect)(function(){return Ye},[]),[lt,Ce]}function wt(){var Ae=ie.useState(-1),Te=(0,be.Z)(Ae,2),Ue=Te[0],Ye=Te[1],lt=ie.useState(-1),Ce=(0,be.Z)(lt,2),De=Ce[0],Re=Ce[1],Je=ie.useCallback(function(et,rt){Ye(et),Re(rt)},[]);return[Ue,De,Je]}var Bt=te(47273),Kt=(0,Bt.Z)()?window:null;function Xt(Ae,Te){var Ue=(0,Ee.Z)(Ae)==="object"?Ae:{},Ye=Ue.offsetHeader,lt=Ye===void 0?0:Ye,Ce=Ue.offsetSummary,De=Ce===void 0?0:Ce,Re=Ue.offsetScroll,Je=Re===void 0?0:Re,et=Ue.getContainer,rt=et===void 0?function(){return Kt}:et,tt=rt()||Kt;return ie.useMemo(function(){var dt=!!Ae;return{isSticky:dt,stickyClassName:dt?"".concat(Te,"-sticky-holder"):"",offsetHeader:lt,offsetSummary:De,offsetScroll:Je,container:tt}},[Je,lt,De,Te,tt])}function yn(Ae,Te,Ue){var Ye=(0,ie.useMemo)(function(){for(var lt=[],Ce=[],De=0,Re=0,Je=0;Je<Te;Je+=1)if(Ue==="rtl"){Ce[Je]=Re,Re+=Ae[Je]||0;var et=Te-Je-1;lt[et]=De,De+=Ae[et]||0}else{lt[Je]=De,De+=Ae[Je]||0;var rt=Te-Je-1;Ce[rt]=Re,Re+=Ae[rt]||0}return{left:lt,right:Ce}},[Ae,Te,Ue]);return Ye}var Nn=yn;function Un(Ae){var Te=Ae.className,Ue=Ae.children;return ie.createElement("div",{className:Te},Ue)}var cn=Un,Ln=te(8224),Jn=te(55468),rr=function(Te,Ue){var Ye,lt,Ce=Te.scrollBodyRef,De=Te.onScroll,Re=Te.offsetScroll,Je=Te.container,et=me(ce,"prefixCls"),rt=((Ye=Ce.current)===null||Ye===void 0?void 0:Ye.scrollWidth)||0,tt=((lt=Ce.current)===null||lt===void 0?void 0:lt.clientWidth)||0,dt=rt&&tt*(tt/rt),gt=ie.useRef(),St=At({scrollLeft:0,isHiddenScrollBar:!1}),Wt=(0,be.Z)(St,2),Nt=Wt[0],Vt=Wt[1],It=ie.useRef({delta:0,x:0}),Yt=ie.useState(!1),Qt=(0,be.Z)(Yt,2),_n=Qt[0],ln=Qt[1],vn=function(){ln(!1)},In=function(dn){dn.persist(),It.current.delta=dn.pageX-Nt.scrollLeft,It.current.x=0,ln(!0),dn.preventDefault()},Jt=function(dn){var Dn,qn=dn||((Dn=window)===null||Dn===void 0?void 0:Dn.event),en=qn.buttons;if(!_n||en===0){_n&&ln(!1);return}var Pn=It.current.x+dn.pageX-It.current.x-It.current.delta;Pn<=0&&(Pn=0),Pn+dt>=tt&&(Pn=tt-dt),De({scrollLeft:Pn/tt*(rt+2)}),It.current.x=dn.pageX},hn=function(){if(Ce.current){var dn=(0,Jn.os)(Ce.current).top,Dn=dn+Ce.current.offsetHeight,qn=Je===window?document.documentElement.scrollTop+window.innerHeight:(0,Jn.os)(Je).top+Je.clientHeight;Dn-(0,at.Z)()<=qn||dn>=qn-Re?Vt(function(en){return(0,je.Z)((0,je.Z)({},en),{},{isHiddenScrollBar:!0})}):Vt(function(en){return(0,je.Z)((0,je.Z)({},en),{},{isHiddenScrollBar:!1})})}},Tt=function(dn){Vt(function(Dn){return(0,je.Z)((0,je.Z)({},Dn),{},{scrollLeft:dn/rt*tt||0})})};return ie.useImperativeHandle(Ue,function(){return{setScrollLeft:Tt}}),ie.useEffect(function(){var on=(0,Ln.Z)(document.body,"mouseup",vn,!1),dn=(0,Ln.Z)(document.body,"mousemove",Jt,!1);return hn(),function(){on.remove(),dn.remove()}},[dt,_n]),ie.useEffect(function(){var on=(0,Ln.Z)(Je,"scroll",hn,!1),dn=(0,Ln.Z)(window,"resize",hn,!1);return function(){on.remove(),dn.remove()}},[Je]),ie.useEffect(function(){Nt.isHiddenScrollBar||Vt(function(on){var dn=Ce.current;return dn?(0,je.Z)((0,je.Z)({},on),{},{scrollLeft:dn.scrollLeft/dn.scrollWidth*dn.clientWidth}):on})},[Nt.isHiddenScrollBar]),rt<=tt||!dt||Nt.isHiddenScrollBar?null:ie.createElement("div",{style:{height:(0,at.Z)(),width:tt,bottom:Re},className:"".concat(et,"-sticky-scroll")},ie.createElement("div",{onMouseDown:In,ref:gt,className:Xe()("".concat(et,"-sticky-scroll-bar"),(0,Me.Z)({},"".concat(et,"-sticky-scroll-bar-active"),_n)),style:{width:"".concat(dt,"px"),transform:"translate3d(".concat(Nt.scrollLeft,"px, 0, 0)")}}))},fr=ie.forwardRef(rr);function Ut(Ae){return null}var Lr=Ut;function dr(Ae){return null}var Xr=dr,Sr="rc-table",sn=[],wn={};function Hn(){return"No Data"}function mn(Ae){var Te,Ue=(0,je.Z)({rowKey:"key",prefixCls:Sr,emptyText:Hn},Ae),Ye=Ue.prefixCls,lt=Ue.className,Ce=Ue.rowClassName,De=Ue.style,Re=Ue.data,Je=Ue.rowKey,et=Ue.scroll,rt=Ue.tableLayout,tt=Ue.direction,dt=Ue.title,gt=Ue.footer,St=Ue.summary,Wt=Ue.caption,Nt=Ue.id,Vt=Ue.showHeader,It=Ue.components,Yt=Ue.emptyText,Qt=Ue.onRow,_n=Ue.onHeaderRow,ln=Ue.internalHooks,vn=Ue.transformColumns,In=Ue.internalRefs,Jt=Ue.tailor,hn=Ue.sticky,Tt=Re||sn,on=!!Tt.length,dn=ln===ge,Dn=ie.useCallback(function(kr,no){return(0,we.Z)(It,kr)||no},[It]),qn=ie.useMemo(function(){return typeof Je=="function"?Je:function(kr){var no=kr&&kr[Je];return no}},[Je]),en=Dn(["body"]),Pn=wt(),Mn=(0,be.Z)(Pn,3),gn=Mn[0],Tn=Mn[1],kn=Mn[2],Qn=Rt(Ue,Tt,qn),Gr=(0,be.Z)(Qn,6),tr=Gr[0],Vr=Gr[1],_r=Gr[2],Ar=Gr[3],Tr=Gr[4],zn=Gr[5],En=et==null?void 0:et.x,Bn=ie.useState(0),$n=(0,be.Z)(Bn,2),An=$n[0],br=$n[1],Rn=Zt((0,je.Z)((0,je.Z)((0,je.Z)({},Ue),tr),{},{expandable:!!tr.expandedRowRender,columnTitle:tr.columnTitle,expandedKeys:_r,getRowKey:qn,onTriggerExpand:zn,expandIcon:Ar,expandIconColumnIndex:tr.expandIconColumnIndex,direction:tt,scrollWidth:dn&&Jt&&typeof En=="number"?En:null}),dn?vn:null),jn=(0,be.Z)(Rn,3),hr=jn[0],Pr=jn[1],Do=jn[2],bo=Do!=null?Do:En,nr=ie.useMemo(function(){return{columns:hr,flattenColumns:Pr}},[hr,Pr]),mr=ie.useRef(),eo=ie.useRef(),Or=ie.useRef(),wr=ie.useRef(),zo=ie.useRef(),Cr=ie.useState(!1),xr=(0,be.Z)(Cr,2),Ur=xr[0],Qr=xr[1],uo=ie.useState(!1),gr=(0,be.Z)(uo,2),To=gr[0],jo=gr[1],ei=At(new Map),mi=(0,be.Z)(ei,2),ui=mi[0],ea=mi[1],bi=_t(Pr),ai=bi.map(function(kr){return ui.get(kr)}),Ko=ie.useMemo(function(){return ai},[ai.join("_")]),$o=Nn(Ko,Pr.length,tt),vo=et&&Lt(et.y),ao=et&&Lt(bo)||!!tr.fixed,pi=ao&&Pr.some(function(kr){var no=kr.fixed;return no}),Ti=ie.useRef(),Li=Xt(hn,Ye),vi=Li.isSticky,Pa=Li.offsetHeader,ts=Li.offsetSummary,Mr=Li.offsetScroll,Jr=Li.stickyClassName,No=Li.container,so=ie.useMemo(function(){return St==null?void 0:St(Tt)},[St,Tt]),Ho=(vo||vi)&&ie.isValidElement(so)&&so.type===Ne&&so.props.fixed,Vo,Yo,Ci;vo&&(Yo={overflowY:"scroll",maxHeight:et.y}),ao&&(Vo={overflowX:"auto"},vo||(Yo={overflowY:"hidden"}),Ci={width:bo===!0?"auto":bo,minWidth:"100%"});var xs=ie.useCallback(function(kr,no){(0,ke.Z)(mr.current)&&ea(function(si){if(si.get(kr)!==no){var Di=new Map(si);return Di.set(kr,no),Di}return si})},[]),$s=Ft(null),Ls=(0,be.Z)($s,2),Zs=Ls[0],Ds=Ls[1];function ba(kr,no){no&&(typeof no=="function"?no(kr):no.scrollLeft!==kr&&(no.scrollLeft=kr,no.scrollLeft!==kr&&setTimeout(function(){no.scrollLeft=kr},0)))}var $i=(0,ye.Z)(function(kr){var no=kr.currentTarget,si=kr.scrollLeft,Di=tt==="rtl",Mi=typeof si=="number"?si:no.scrollLeft,Us=no||wn;if(!Ds()||Ds()===Us){var as;Zs(Us),ba(Mi,eo.current),ba(Mi,Or.current),ba(Mi,zo.current),ba(Mi,(as=Ti.current)===null||as===void 0?void 0:as.setScrollLeft)}var ss=no||eo.current;if(ss){var ls=ss.scrollWidth,cs=ss.clientWidth;if(ls===cs){Qr(!1),jo(!1);return}Di?(Qr(-Mi<ls-cs),jo(-Mi>0)):(Qr(Mi>0),jo(Mi<ls-cs))}}),Ms=function(){ao&&Or.current?$i({currentTarget:Or.current}):(Qr(!1),jo(!1))},Ws=function(no){var si=no.width;si!==An&&(Ms(),br(mr.current?mr.current.offsetWidth:si))},As=ie.useRef(!1);ie.useEffect(function(){As.current&&Ms()},[ao,Re,hr.length]),ie.useEffect(function(){As.current=!0},[]);var Ks=ie.useState(0),Os=(0,be.Z)(Ks,2),Ca=Os[0],Is=Os[1],Vs=ie.useState(!0),Rs=(0,be.Z)(Vs,2),Ts=Rs[0],Ys=Rs[1];ie.useEffect(function(){(!Jt||!dn)&&(Or.current instanceof Element?Is((0,at.o)(Or.current).width):Is((0,at.o)(wr.current).width)),Ys((0,ze.G)("position","sticky"))},[]),ie.useEffect(function(){dn&&In&&(In.body.current=Or.current)});var Xs=ie.useCallback(function(kr){return ie.createElement(ie.Fragment,null,ie.createElement(cr,kr),Ho==="top"&&ie.createElement(Ct,kr,so))},[Ho,so]),Qs=ie.useCallback(function(kr){return ie.createElement(Ct,kr,so)},[so]),Ns=Dn(["table"],"table"),Ea=ie.useMemo(function(){return rt||(pi?bo==="max-content"?"auto":"fixed":vo||vi||Pr.some(function(kr){var no=kr.ellipsis;return no})?"fixed":"auto")},[vo,pi,Pr,rt,vi]),ns,rs={colWidths:Ko,columCount:Pr.length,stickyOffsets:$o,onHeaderRow:_n,fixHeader:vo,scroll:et},Bs=ie.useMemo(function(){return on?null:typeof Yt=="function"?Yt():Yt},[on,Yt]),ks=ie.createElement(xn,{data:Tt,measureColumnWidth:vo||ao||vi}),Fs=ie.createElement(vr,{colWidths:Pr.map(function(kr){var no=kr.width;return no}),columns:Pr}),zs=Wt!=null?ie.createElement("caption",{className:"".concat(Ye,"-caption")},Wt):void 0,Js=(0,Ot.Z)(Ue,{data:!0}),js=(0,Ot.Z)(Ue,{aria:!0});if(vo||vi){var os;typeof en=="function"?(os=en(Tt,{scrollbarSize:Ca,ref:Or,onScroll:$i}),rs.colWidths=Pr.map(function(kr,no){var si=kr.width,Di=no===Pr.length-1?si-Ca:si;return typeof Di=="number"&&!Number.isNaN(Di)?Di:0})):os=ie.createElement("div",{style:(0,je.Z)((0,je.Z)({},Vo),Yo),onScroll:$i,ref:Or,className:Xe()("".concat(Ye,"-body"))},ie.createElement(Ns,(0,ae.Z)({style:(0,je.Z)((0,je.Z)({},Ci),{},{tableLayout:Ea})},js),zs,Fs,ks,!Ho&&so&&ie.createElement(Ct,{stickyOffsets:$o,flattenColumns:Pr,columns:hr},so)));var Hs=(0,je.Z)((0,je.Z)((0,je.Z)({noData:!Tt.length,maxContentScroll:ao&&bo==="max-content"},rs),nr),{},{direction:tt,stickyClassName:Jr,onScroll:$i});ns=ie.createElement(ie.Fragment,null,Vt!==!1&&ie.createElement(lr,(0,ae.Z)({},Hs,{stickyTopOffset:Pa,className:"".concat(Ye,"-header"),ref:eo}),Xs),os,Ho&&Ho!=="top"&&ie.createElement(lr,(0,ae.Z)({},Hs,{stickyBottomOffset:ts,className:"".concat(Ye,"-summary"),ref:zo}),Qs),vi&&ie.createElement(fr,{ref:Ti,offsetScroll:Mr,scrollBodyRef:Or,onScroll:$i,container:No}))}else ns=ie.createElement("div",{style:(0,je.Z)((0,je.Z)({},Vo),Yo),className:Xe()("".concat(Ye,"-content")),onScroll:$i,ref:Or},ie.createElement(Ns,(0,ae.Z)({style:(0,je.Z)((0,je.Z)({},Ci),{},{tableLayout:Ea})},js),zs,Fs,Vt!==!1&&ie.createElement(cr,(0,ae.Z)({},rs,nr)),ks,so&&ie.createElement(Ct,{stickyOffsets:$o,flattenColumns:Pr,columns:hr},so)));var is=ie.createElement("div",(0,ae.Z)({className:Xe()(Ye,lt,(Te={},(0,Me.Z)(Te,"".concat(Ye,"-rtl"),tt==="rtl"),(0,Me.Z)(Te,"".concat(Ye,"-ping-left"),Ur),(0,Me.Z)(Te,"".concat(Ye,"-ping-right"),To),(0,Me.Z)(Te,"".concat(Ye,"-layout-fixed"),rt==="fixed"),(0,Me.Z)(Te,"".concat(Ye,"-fixed-header"),vo),(0,Me.Z)(Te,"".concat(Ye,"-fixed-column"),pi),(0,Me.Z)(Te,"".concat(Ye,"-scroll-horizontal"),ao),(0,Me.Z)(Te,"".concat(Ye,"-has-fix-left"),Pr[0]&&Pr[0].fixed),(0,Me.Z)(Te,"".concat(Ye,"-has-fix-right"),Pr[Pr.length-1]&&Pr[Pr.length-1].fixed==="right"),Te)),style:De,id:Nt,ref:mr},Js),dt&&ie.createElement(cn,{className:"".concat(Ye,"-title")},dt(Tt)),ie.createElement("div",{ref:wr,className:"".concat(Ye,"-container")},ns),gt&&ie.createElement(cn,{className:"".concat(Ye,"-footer")},gt(Tt)));ao&&(is=ie.createElement(We.Z,{onResize:Ws},is));var Gs=$e(Pr,$o,tt,hr),qs=ie.useMemo(function(){return{scrollX:bo,prefixCls:Ye,getComponent:Dn,scrollbarSize:Ca,direction:tt,fixedInfoList:Gs,isSticky:vi,supportSticky:Ts,componentWidth:An,fixHeader:vo,fixColumn:pi,horizonScroll:ao,tableLayout:Ea,rowClassName:Ce,expandedRowClassName:tr.expandedRowClassName,expandIcon:Ar,expandableType:Vr,expandRowByClick:tr.expandRowByClick,expandedRowRender:tr.expandedRowRender,onTriggerExpand:zn,expandIconColumnIndex:tr.expandIconColumnIndex,indentSize:tr.indentSize,allColumnsFixedLeft:Pr.every(function(kr){return kr.fixed==="left"}),emptyNode:Bs,columns:hr,flattenColumns:Pr,onColumnResize:xs,hoverStartRow:gn,hoverEndRow:Tn,onHover:kn,rowExpandable:tr.rowExpandable,onRow:Qt,getRowKey:qn,expandedKeys:_r,childrenColumnName:Tr}},[bo,Ye,Dn,Ca,tt,Gs,vi,Ts,An,vo,pi,ao,Ea,Ce,tr.expandedRowClassName,Ar,Vr,tr.expandRowByClick,tr.expandedRowRender,zn,tr.expandIconColumnIndex,tr.indentSize,Bs,hr,Pr,xs,gn,Tn,kn,tr.rowExpandable,Qt,qn,_r,Tr]);return ie.createElement(ce.Provider,{value:qs},is)}function ir(Ae){return x(mn,Ae)}var ar=ir();ar.EXPAND_COLUMN=ee,ar.INTERNAL_HOOKS=ge,ar.Column=Lr,ar.ColumnGroup=Xr,ar.Summary=Oe;var Br=ar,Fr=te(4409),$r=le(null),Co=le(null);function So(Ae,Te,Ue){var Ye=Te||1;return Ue[Ae+Ye]-(Ue[Ae]||0)}function Mo(Ae){var Te=Ae.rowInfo,Ue=Ae.column,Ye=Ae.colIndex,lt=Ae.indent,Ce=Ae.index,De=Ae.renderIndex,Re=Ae.record,Je=Ae.style,et=Ae.className,rt=Ae.inverse,tt=Ae.getHeight,dt=Ue.render,gt=Ue.dataIndex,St=Ue.className,Wt=Ue.width,Nt=me(Co,["columnsOffset"]),Vt=Nt.columnsOffset,It=fn(Te,Ue,Ye,lt,Ce),Yt=It.key,Qt=It.fixedInfo,_n=It.appendCellNode,ln=It.additionalCellProps,vn=ln.style,In=ln.colSpan,Jt=In===void 0?1:In,hn=ln.rowSpan,Tt=hn===void 0?1:hn,on=Ye-1,dn=So(on,Jt,Vt),Dn=Jt>1?Wt-dn:0,qn=(0,je.Z)((0,je.Z)((0,je.Z)({},vn),Je),{},{flex:"0 0 ".concat(dn,"px"),width:"".concat(dn,"px"),marginRight:Dn,pointerEvents:"auto"}),en=ie.useMemo(function(){return rt?Tt<=1:Jt===0||Tt===0||Tt>1},[Tt,Jt,rt]);en?qn.visibility="hidden":rt&&(qn.height=tt==null?void 0:tt(Tt));var Pn=en?function(){return null}:dt,Mn={};return(Tt===0||Jt===0)&&(Mn.rowSpan=1,Mn.colSpan=1),ie.createElement(an,(0,ae.Z)({className:Xe()(St,et),ellipsis:Ue.ellipsis,align:Ue.align,scope:Ue.rowScope,component:"div",prefixCls:Te.prefixCls,key:Yt,record:Re,index:Ce,renderIndex:De,dataIndex:gt,render:Pn,shouldCellUpdate:Ue.shouldCellUpdate},Qt,{appendNode:_n,additionalProps:(0,je.Z)((0,je.Z)({},ln),{},{style:qn},Mn)}))}var Ao=Mo,fo=["data","index","className","rowKey","style","extra","getHeight"],Bo=ie.forwardRef(function(Ae,Te){var Ue=Ae.data,Ye=Ae.index,lt=Ae.className,Ce=Ae.rowKey,De=Ae.style,Re=Ae.extra,Je=Ae.getHeight,et=(0,Gt.Z)(Ae,fo),rt=Ue.record,tt=Ue.indent,dt=Ue.index,gt=me(ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),St=gt.scrollX,Wt=gt.flattenColumns,Nt=gt.prefixCls,Vt=gt.fixColumn,It=gt.componentWidth,Yt=bt(rt,Ce,Ye,tt),Qt=Yt.rowSupportExpand,_n=Yt.expanded,ln=Yt.rowProps,vn=Yt.expandedRowRender,In=Yt.expandedRowClassName,Jt;if(Qt&&_n){var hn=vn(rt,Ye,tt+1,_n),Tt=In==null?void 0:In(rt,Ye,tt),on={};Vt&&(on={style:(0,Me.Z)({},"--virtual-width","".concat(It,"px"))});var dn="".concat(Nt,"-expanded-row-cell");Jt=ie.createElement("div",{className:Xe()("".concat(Nt,"-expanded-row"),"".concat(Nt,"-expanded-row-level-").concat(tt+1),Tt)},ie.createElement(an,{component:"div",prefixCls:Nt,className:Xe()(dn,(0,Me.Z)({},"".concat(dn,"-fixed"),Vt)),additionalProps:on},hn))}var Dn=(0,je.Z)((0,je.Z)({},De),{},{width:St});Re&&(Dn.position="absolute",Dn.pointerEvents="none");var qn=ie.createElement("div",(0,ae.Z)({},ln,et,{ref:Qt?null:Te,className:Xe()(lt,"".concat(Nt,"-row"),ln==null?void 0:ln.className,(0,Me.Z)({},"".concat(Nt,"-row-extra"),Re)),style:(0,je.Z)((0,je.Z)({},Dn),ln==null?void 0:ln.style)}),Wt.map(function(en,Pn){return ie.createElement(Ao,{key:Pn,rowInfo:Yt,column:en,colIndex:Pn,indent:tt,index:Ye,renderIndex:dt,record:rt,inverse:Re,getHeight:Je})}));return Qt?ie.createElement("div",{ref:Te},qn,Jt):qn}),_o=z(Bo),Eo=_o,Oo=ie.forwardRef(function(Ae,Te){var Ue=Ae.data,Ye=Ae.onScroll,lt=me(ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Ce=lt.flattenColumns,De=lt.onColumnResize,Re=lt.getRowKey,Je=lt.expandedKeys,et=lt.prefixCls,rt=lt.childrenColumnName,tt=lt.emptyNode,dt=lt.scrollX,gt=me($r),St=gt.scrollY,Wt=gt.listItemHeight,Nt=ie.useRef(),Vt=jt(Ue,rt,Je,Re),It=ie.useMemo(function(){var Jt=0;return Ce.map(function(hn){var Tt=hn.width,on=hn.key;return Jt+=Tt,[on,Tt,Jt]})},[Ce]),Yt=ie.useMemo(function(){return It.map(function(Jt){return Jt[2]})},[It]);ie.useEffect(function(){It.forEach(function(Jt){var hn=(0,be.Z)(Jt,2),Tt=hn[0],on=hn[1];De(Tt,on)})},[It]),ie.useImperativeHandle(Te,function(){var Jt={};return Object.defineProperty(Jt,"scrollLeft",{get:function(){var Tt;return((Tt=Nt.current)===null||Tt===void 0?void 0:Tt.getScrollInfo().x)||0},set:function(Tt){var on;(on=Nt.current)===null||on===void 0||on.scrollTo({left:Tt})}}),Jt});var Qt=function(hn,Tt){var on,dn=(on=Vt[Tt])===null||on===void 0?void 0:on.record,Dn=hn.onCell;if(Dn){var qn,en=Dn(dn,Tt);return(qn=en==null?void 0:en.rowSpan)!==null&&qn!==void 0?qn:1}return 1},_n=function(hn){var Tt=hn.start,on=hn.end,dn=hn.getSize,Dn=hn.offsetY;if(on<0)return null;for(var qn=Ce.filter(function(En){return Qt(En,Tt)===0}),en=Tt,Pn=function(Bn){if(qn=qn.filter(function($n){return Qt($n,Bn)===0}),!qn.length)return en=Bn,"break"},Mn=Tt;Mn>=0;Mn-=1){var gn=Pn(Mn);if(gn==="break")break}for(var Tn=Ce.filter(function(En){return Qt(En,on)!==1}),kn=on,Qn=function(Bn){if(Tn=Tn.filter(function($n){return Qt($n,Bn)!==1}),!Tn.length)return kn=Math.max(Bn-1,on),"break"},Gr=on;Gr<Vt.length;Gr+=1){var tr=Qn(Gr);if(tr==="break")break}for(var Vr=[],_r=function(Bn){var $n=Vt[Bn];if(!$n)return"continue";Ce.some(function(An){return Qt(An,Bn)>1})&&Vr.push(Bn)},Ar=en;Ar<=kn;Ar+=1)var Tr=_r(Ar);var zn=Vr.map(function(En){var Bn=Vt[En],$n=Re(Bn.record,En),An=function(jn){var hr=En+jn-1,Pr=Re(Vt[hr].record,hr),Do=dn($n,Pr);return Do.bottom-Do.top},br=dn($n);return ie.createElement(Eo,{key:En,data:Bn,rowKey:$n,index:En,style:{top:-Dn+br.top},extra:!0,getHeight:An})});return zn},ln=ie.useMemo(function(){return{columnsOffset:Yt}},[Yt]),vn="".concat(et,"-tbody"),In;return Vt.length?In=ie.createElement(Fr.Z,{fullHeight:!1,ref:Nt,className:Xe()(vn,"".concat(vn,"-virtual")),height:St,itemHeight:Wt||24,data:Vt,itemKey:function(hn){return Re(hn.record)},scrollWidth:dt,onVirtualScroll:function(hn){var Tt=hn.x;Ye({scrollLeft:Tt})},extraRender:_n},function(Jt,hn,Tt){var on=Re(Jt.record,hn);return ie.createElement(Eo,(0,ae.Z)({data:Jt,rowKey:on,index:hn},Tt))}):In=ie.createElement("div",{className:Xe()("".concat(et,"-placeholder"))},ie.createElement(an,{component:"div",prefixCls:et},tt)),ie.createElement(Co.Provider,{value:ln},In)}),zr=z(Oo),to=zr,Io=function(Te,Ue){var Ye=Ue.ref,lt=Ue.onScroll;return ie.createElement(to,{ref:Ye,data:Te,onScroll:lt})},Zr=100;function co(Ae){var Te=Ae.columns,Ue=Ae.scroll,Ye=Ae.prefixCls,lt=Ye===void 0?Sr:Ye,Ce=Ae.className,De=Ae.listItemHeight,Re=Ue||{},Je=Re.x,et=Re.y;typeof Je!="number"&&(Je=((Te||[]).length+1)*Zr),typeof et!="number"&&(et=500);var rt=ie.useMemo(function(){return{scrollY:et,listItemHeight:De}},[et,De]);return ie.createElement($r.Provider,{value:rt},ie.createElement(Br,(0,ae.Z)({},Ae,{className:Xe()(Ce,"".concat(lt,"-virtual")),scroll:(0,je.Z)((0,je.Z)({},Ue),{},{x:Je}),components:{body:Io},columns:Te,internalHooks:ge,tailor:!0})))}function yo(Ae){return x(co,Ae)}var ko=yo(),Wr=null;function ho(Ae){return null}var wo=ho;function mo(Ae){return null}var oi=mo,ti=te(2738),ni=te(68031),Ro=te(36355),xo=te(93891),Lo=te(19716),Xo=te(8628),Zo=te(31724),gi=te(58421),Zn=te(71418),Cn=te(88088);function On(Ae){return function(Ue){let{prefixCls:Ye,onExpand:lt,record:Ce,expanded:De,expandable:Re}=Ue;const Je=`${Ye}-row-expand-icon`;return ie.createElement("button",{type:"button",onClick:et=>{lt(Ce,et),et.stopPropagation()},className:Xe()(Je,{[`${Je}-spaced`]:!Re,[`${Je}-expanded`]:Re&&De,[`${Je}-collapsed`]:Re&&!De}),"aria-label":De?Ae.collapse:Ae.expand,"aria-expanded":De})}}var Gn=On;function yr(Ae,Te){return"key"in Ae&&Ae.key!==void 0&&Ae.key!==null?Ae.key:Ae.dataIndex?Array.isArray(Ae.dataIndex)?Ae.dataIndex.join("."):Ae.dataIndex:Te}function Dr(Ae,Te){return Te?`${Te}-${Ae}`:`${Ae}`}function jr(Ae,Te){return typeof Ae=="function"?Ae(Te):Ae}function qr(Ae,Te){const Ue=jr(Ae,Te);return Object.prototype.toString.call(Ue)==="[object Object]"?"":Ue}var ro={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"},oo=ro,Go=te(7657),Po=function(Te,Ue){return ie.createElement(Go.Z,(0,ae.Z)({},Te,{ref:Ue,icon:oo}))},fi=ie.forwardRef(Po),li=fi,ci=te(56762);function Ei(Ae){const Te=ie.useRef(Ae),Ue=(0,ci.Z)();return[()=>Te.current,Ye=>{Te.current=Ye,Ue()}]}var Hr=te(3113),ur=te(24905),io=te(38854),lo=te(64165),Fo=te(20834),ri=te(40875),Qo=te(5112),Jo=te(17574),Uo=te(47472),Si=te(92832);function _i(Ae){let{value:Te,onChange:Ue,filterSearch:Ye,tablePrefixCls:lt,locale:Ce}=Ae;return Ye?ie.createElement("div",{className:`${lt}-filter-dropdown-search`},ie.createElement(Si.default,{prefix:ie.createElement(Uo.Z,null),placeholder:Ce.filterSearchPlaceholder,onChange:Ue,value:Te,htmlSize:1,className:`${lt}-filter-dropdown-search-input`})):null}var yi=_i,ta=te(10228);const wa=Ae=>{const{keyCode:Te}=Ae;Te===ta.Z.ENTER&&Ae.stopPropagation()};var La=ie.forwardRef((Ae,Te)=>ie.createElement("div",{className:Ae.className,onClick:Ue=>Ue.stopPropagation(),onKeyDown:wa,ref:Te},Ae.children));function wi(Ae){let Te=[];return(Ae||[]).forEach(Ue=>{let{value:Ye,children:lt}=Ue;Te.push(Ye),lt&&(Te=[].concat((0,tn.Z)(Te),(0,tn.Z)(wi(lt))))}),Te}function na(Ae){return Ae.some(Te=>{let{children:Ue}=Te;return Ue})}function ra(Ae,Te){return typeof Te=="string"||typeof Te=="number"?Te==null?void 0:Te.toString().toLowerCase().includes(Ae.trim().toLowerCase()):!1}function Da(Ae){let{filters:Te,prefixCls:Ue,filteredKeys:Ye,filterMultiple:lt,searchValue:Ce,filterSearch:De}=Ae;return Te.map((Re,Je)=>{const et=String(Re.value);if(Re.children)return{key:et||Je,label:Re.text,popupClassName:`${Ue}-dropdown-submenu`,children:Da({filters:Re.children,prefixCls:Ue,filteredKeys:Ye,filterMultiple:lt,searchValue:Ce,filterSearch:De})};const rt=lt?ur.default:Qo.ZP,tt={key:Re.value!==void 0?et:Je,label:ie.createElement(ie.Fragment,null,ie.createElement(rt,{checked:Ye.includes(et)}),ie.createElement("span",null,Re.text))};return Ce.trim()?typeof De=="function"?De(Ce,Re)?tt:null:ra(Ce,Re.text)?tt:null:tt})}function Ma(Ae){var Te,Ue;const{tablePrefixCls:Ye,prefixCls:lt,column:Ce,dropdownPrefixCls:De,columnKey:Re,filterMultiple:Je,filterMode:et="menu",filterSearch:rt=!1,filterState:tt,triggerFilter:dt,locale:gt,children:St,getPopupContainer:Wt}=Ae,{filterDropdownOpen:Nt,onFilterDropdownOpenChange:Vt,filterResetToDefaultFilteredValue:It,defaultFilteredValue:Yt,filterDropdownVisible:Qt,onFilterDropdownVisibleChange:_n}=Ce,[ln,vn]=ie.useState(!1),In=!!(tt&&(!((Te=tt.filteredKeys)===null||Te===void 0)&&Te.length||tt.forceFiltered)),Jt=Rn=>{vn(Rn),Vt==null||Vt(Rn),_n==null||_n(Rn)},hn=(Ue=Nt!=null?Nt:Qt)!==null&&Ue!==void 0?Ue:ln,Tt=tt==null?void 0:tt.filteredKeys,[on,dn]=Ei(Tt||[]),Dn=Rn=>{let{selectedKeys:jn}=Rn;dn(jn)},qn=(Rn,jn)=>{let{node:hr,checked:Pr}=jn;Dn(Je?{selectedKeys:Rn}:{selectedKeys:Pr&&hr.key?[hr.key]:[]})};ie.useEffect(()=>{ln&&Dn({selectedKeys:Tt||[]})},[Tt]);const[en,Pn]=ie.useState([]),Mn=Rn=>{Pn(Rn)},[gn,Tn]=ie.useState(""),kn=Rn=>{const{value:jn}=Rn.target;Tn(jn)};ie.useEffect(()=>{ln||Tn("")},[ln]);const Qn=Rn=>{const jn=Rn&&Rn.length?Rn:null;if(jn===null&&(!tt||!tt.filteredKeys)||(0,fe.Z)(jn,tt==null?void 0:tt.filteredKeys,!0))return null;dt({column:Ce,key:Re,filteredKeys:jn})},Gr=()=>{Jt(!1),Qn(on())},tr=function(){let{confirm:Rn,closeDropdown:jn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Rn&&Qn([]),jn&&Jt(!1),Tn(""),dn(It?(Yt||[]).map(hr=>String(hr)):[])},Vr=function(){let{closeDropdown:Rn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Rn&&Jt(!1),Qn(on())},_r=Rn=>{Rn&&Tt!==void 0&&dn(Tt||[]),Jt(Rn),!Rn&&!Ce.filterDropdown&&Gr()},Ar=Xe()({[`${De}-menu-without-submenu`]:!na(Ce.filters||[])}),Tr=Rn=>{if(Rn.target.checked){const jn=wi(Ce==null?void 0:Ce.filters).map(hr=>String(hr));dn(jn)}else dn([])},zn=Rn=>{let{filters:jn}=Rn;return(jn||[]).map((hr,Pr)=>{const Do=String(hr.value),bo={title:hr.text,key:hr.value!==void 0?Do:Pr};return hr.children&&(bo.children=zn({filters:hr.children})),bo})},En=Rn=>{var jn;return Object.assign(Object.assign({},Rn),{text:Rn.title,value:Rn.key,children:((jn=Rn.children)===null||jn===void 0?void 0:jn.map(hr=>En(hr)))||[]})};let Bn;if(typeof Ce.filterDropdown=="function")Bn=Ce.filterDropdown({prefixCls:`${De}-custom`,setSelectedKeys:Rn=>Dn({selectedKeys:Rn}),selectedKeys:on(),confirm:Vr,clearFilters:tr,filters:Ce.filters,visible:hn,close:()=>{Jt(!1)}});else if(Ce.filterDropdown)Bn=Ce.filterDropdown;else{const Rn=on()||[],jn=()=>(Ce.filters||[]).length===0?ie.createElement(lo.Z,{image:lo.Z.PRESENTED_IMAGE_SIMPLE,description:gt.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):et==="tree"?ie.createElement(ie.Fragment,null,ie.createElement(yi,{filterSearch:rt,value:gn,onChange:kn,tablePrefixCls:Ye,locale:gt}),ie.createElement("div",{className:`${Ye}-filter-dropdown-tree`},Je?ie.createElement(ur.default,{checked:Rn.length===wi(Ce.filters).length,indeterminate:Rn.length>0&&Rn.length<wi(Ce.filters).length,className:`${Ye}-filter-dropdown-checkall`,onChange:Tr},gt.filterCheckall):null,ie.createElement(Jo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Je,checkStrictly:!Je,className:`${De}-menu`,onCheck:qn,checkedKeys:Rn,selectedKeys:Rn,showIcon:!1,treeData:zn({filters:Ce.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:gn.trim()?Pr=>typeof rt=="function"?rt(gn,En(Pr)):ra(gn,Pr.title):void 0}))):ie.createElement(ie.Fragment,null,ie.createElement(yi,{filterSearch:rt,value:gn,onChange:kn,tablePrefixCls:Ye,locale:gt}),ie.createElement(Fo.default,{selectable:!0,multiple:Je,prefixCls:`${De}-menu`,className:Ar,onSelect:Dn,onDeselect:Dn,selectedKeys:Rn,getPopupContainer:Wt,openKeys:en,onOpenChange:Mn,items:Da({filters:Ce.filters||[],filterSearch:rt,prefixCls:lt,filteredKeys:on(),filterMultiple:Je,searchValue:gn})})),hr=()=>It?(0,fe.Z)((Yt||[]).map(Pr=>String(Pr)),Rn,!0):Rn.length===0;Bn=ie.createElement(ie.Fragment,null,jn(),ie.createElement("div",{className:`${lt}-dropdown-btns`},ie.createElement(Hr.ZP,{type:"link",size:"small",disabled:hr(),onClick:()=>tr()},gt.filterReset),ie.createElement(Hr.ZP,{type:"primary",size:"small",onClick:Gr},gt.filterConfirm)))}Ce.filterDropdown&&(Bn=ie.createElement(ri.J,{selectable:void 0},Bn));const $n=()=>ie.createElement(La,{className:`${lt}-dropdown`},Bn);let An;typeof Ce.filterIcon=="function"?An=Ce.filterIcon(In):Ce.filterIcon?An=Ce.filterIcon:An=ie.createElement(li,null);const{direction:br}=ie.useContext(Ro.E_);return ie.createElement("div",{className:`${lt}-column`},ie.createElement("span",{className:`${Ye}-column-title`},St),ie.createElement(io.Z,{dropdownRender:$n,trigger:["click"],open:hn,onOpenChange:_r,getPopupContainer:Wt,placement:br==="rtl"?"bottomLeft":"bottomRight"},ie.createElement("span",{role:"button",tabIndex:-1,className:Xe()(`${lt}-trigger`,{active:In}),onClick:Rn=>{Rn.stopPropagation()}},An)))}var Aa=Ma;function Ni(Ae,Te,Ue){let Ye=[];return(Ae||[]).forEach((lt,Ce)=>{var De;const Re=Dr(Ce,Ue);if(lt.filters||"filterDropdown"in lt||"onFilter"in lt)if("filteredValue"in lt){let Je=lt.filteredValue;"filterDropdown"in lt||(Je=(De=Je==null?void 0:Je.map(String))!==null&&De!==void 0?De:Je),Ye.push({column:lt,key:yr(lt,Re),filteredKeys:Je,forceFiltered:lt.filtered})}else Ye.push({column:lt,key:yr(lt,Re),filteredKeys:Te&&lt.defaultFilteredValue?lt.defaultFilteredValue:void 0,forceFiltered:lt.filtered});"children"in lt&&(Ye=[].concat((0,tn.Z)(Ye),(0,tn.Z)(Ni(lt.children,Te,Re))))}),Ye}function oa(Ae,Te,Ue,Ye,lt,Ce,De,Re){return Ue.map((Je,et)=>{const rt=Dr(et,Re),{filterMultiple:tt=!0,filterMode:dt,filterSearch:gt}=Je;let St=Je;if(St.filters||St.filterDropdown){const Wt=yr(St,rt),Nt=Ye.find(Vt=>{let{key:It}=Vt;return Wt===It});St=Object.assign(Object.assign({},St),{title:Vt=>ie.createElement(Aa,{tablePrefixCls:Ae,prefixCls:`${Ae}-filter`,dropdownPrefixCls:Te,column:St,columnKey:Wt,filterState:Nt,filterMultiple:tt,filterMode:dt,filterSearch:gt,triggerFilter:Ce,locale:lt,getPopupContainer:De},jr(Je.title,Vt))})}return"children"in St&&(St=Object.assign(Object.assign({},St),{children:oa(Ae,Te,St.children,Ye,lt,Ce,De,rt)})),St})}function ia(Ae){const Te={};return Ae.forEach(Ue=>{let{key:Ye,filteredKeys:lt,column:Ce}=Ue;const{filters:De,filterDropdown:Re}=Ce;if(Re)Te[Ye]=lt||null;else if(Array.isArray(lt)){const Je=wi(De);Te[Ye]=Je.filter(et=>lt.includes(String(et)))}else Te[Ye]=null}),Te}function Zi(Ae,Te){return Te.reduce((Ue,Ye)=>{const{column:{onFilter:lt,filters:Ce},filteredKeys:De}=Ye;return lt&&De&&De.length?Ue.filter(Re=>De.some(Je=>{const et=wi(Ce),rt=et.findIndex(dt=>String(dt)===String(Je)),tt=rt!==-1?et[rt]:Je;return lt(tt,Re)})):Ue},Ae)}const aa=Ae=>Ae.flatMap(Te=>"children"in Te?[Te].concat((0,tn.Z)(aa(Te.children||[]))):[Te]);function ds(Ae){let{prefixCls:Te,dropdownPrefixCls:Ue,mergedColumns:Ye,onFilterChange:lt,getPopupContainer:Ce,locale:De}=Ae;const Re=ie.useMemo(()=>aa(Ye||[]),[Ye]),[Je,et]=ie.useState(()=>Ni(Re,!0)),rt=ie.useMemo(()=>{const St=Ni(Re,!1);if(St.length===0)return St;let Wt=!0,Nt=!0;if(St.forEach(Vt=>{let{filteredKeys:It}=Vt;It!==void 0?Wt=!1:Nt=!1}),Wt){const Vt=(Re||[]).map((It,Yt)=>yr(It,Dr(Yt)));return Je.filter(It=>{let{key:Yt}=It;return Vt.includes(Yt)}).map(It=>{const Yt=Re[Vt.findIndex(Qt=>Qt===It.key)];return Object.assign(Object.assign({},It),{column:Object.assign(Object.assign({},It.column),Yt),forceFiltered:Yt.filtered})})}return St},[Re,Je]),tt=ie.useMemo(()=>ia(rt),[rt]),dt=St=>{const Wt=rt.filter(Nt=>{let{key:Vt}=Nt;return Vt!==St.key});Wt.push(St),et(Wt),lt(ia(Wt),Wt)};return[St=>oa(Te,Ue,St,rt,De,dt,Ce),rt,tt]}var sa=ds;function Wi(Ae,Te,Ue){const Ye=ie.useRef({});function lt(Ce){if(!Ye.current||Ye.current.data!==Ae||Ye.current.childrenColumnName!==Te||Ye.current.getRowKey!==Ue){let Re=function(Je){Je.forEach((et,rt)=>{const tt=Ue(et,rt);De.set(tt,et),et&&typeof et=="object"&&Te in et&&Re(et[Te]||[])})};const De=new Map;Re(Ae),Ye.current={data:Ae,childrenColumnName:Te,kvMap:De,getRowKey:Ue}}return Ye.current.kvMap.get(Ce)}return[lt]}var la=te(50371),Bi=function(Ae,Te){var Ue={};for(var Ye in Ae)Object.prototype.hasOwnProperty.call(Ae,Ye)&&Te.indexOf(Ye)<0&&(Ue[Ye]=Ae[Ye]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,Ye=Object.getOwnPropertySymbols(Ae);lt<Ye.length;lt++)Te.indexOf(Ye[lt])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Ye[lt])&&(Ue[Ye[lt]]=Ae[Ye[lt]]);return Ue};const ii=10;function Oa(Ae,Te){const Ue={current:Ae.current,pageSize:Ae.pageSize};return Object.keys(Te&&typeof Te=="object"?Te:{}).forEach(lt=>{const Ce=Ae[lt];typeof Ce!="function"&&(Ue[lt]=Ce)}),Ue}function ca(Ae,Te,Ue){const Ye=Ue&&typeof Ue=="object"?Ue:{},{total:lt=0}=Ye,Ce=Bi(Ye,["total"]),[De,Re]=(0,ie.useState)(()=>({current:"defaultCurrent"in Ce?Ce.defaultCurrent:1,pageSize:"defaultPageSize"in Ce?Ce.defaultPageSize:ii})),Je=(0,la.Z)(De,Ce,{total:lt>0?lt:Ae}),et=Math.ceil((lt||Ae)/Je.pageSize);Je.current>et&&(Je.current=et||1);const rt=(dt,gt)=>{Re({current:dt!=null?dt:1,pageSize:gt||Je.pageSize})},tt=(dt,gt)=>{var St;Ue&&((St=Ue.onChange)===null||St===void 0||St.call(Ue,dt,gt)),rt(dt,gt),Te(dt,gt||(Je==null?void 0:Je.pageSize))};return Ue===!1?[{},()=>{}]:[Object.assign(Object.assign({},Je),{onChange:tt}),rt]}var Ia=ca,Ra=te(84105),Ta=te(35654),Ki=te(90782),ki=te(71430),us=te(18929);const hi={},Vi="SELECT_ALL",Yi="SELECT_INVERT",Fi="SELECT_NONE",da=[],ua=(Ae,Te)=>{let Ue=[];return(Te||[]).forEach(Ye=>{Ue.push(Ye),Ye&&typeof Ye=="object"&&Ae in Ye&&(Ue=[].concat((0,tn.Z)(Ue),(0,tn.Z)(ua(Ae,Ye[Ae]))))}),Ue};var Ba=(Ae,Te)=>{const{preserveSelectedRowKeys:Ue,selectedRowKeys:Ye,defaultSelectedRowKeys:lt,getCheckboxProps:Ce,onChange:De,onSelect:Re,onSelectAll:Je,onSelectInvert:et,onSelectNone:rt,onSelectMultiple:tt,columnWidth:dt,type:gt,selections:St,fixed:Wt,renderCell:Nt,hideSelectAll:Vt,checkStrictly:It=!0}=Te||{},{prefixCls:Yt,data:Qt,pageData:_n,getRecordByKey:ln,getRowKey:vn,expandType:In,childrenColumnName:Jt,locale:hn,getPopupContainer:Tt}=Ae,[on,dn]=(0,us.Z)(Ye||lt||da,{value:Ye}),Dn=ie.useRef(new Map),qn=(0,ie.useCallback)(En=>{if(Ue){const Bn=new Map;En.forEach($n=>{let An=ln($n);!An&&Dn.current.has($n)&&(An=Dn.current.get($n)),Bn.set($n,An)}),Dn.current=Bn}},[ln,Ue]);ie.useEffect(()=>{qn(on)},[on]);const{keyEntities:en}=(0,ie.useMemo)(()=>{if(It)return{keyEntities:null};let En=Qt;if(Ue){const Bn=new Set(Qt.map((An,br)=>vn(An,br))),$n=Array.from(Dn.current).reduce((An,br)=>{let[Rn,jn]=br;return Bn.has(Rn)?An:An.concat(jn)},[]);En=[].concat((0,tn.Z)(En),(0,tn.Z)($n))}return(0,ki.I8)(En,{externalGetKey:vn,childrenPropName:Jt})},[Qt,vn,It,Jt,Ue]),Pn=(0,ie.useMemo)(()=>ua(Jt,_n),[Jt,_n]),Mn=(0,ie.useMemo)(()=>{const En=new Map;return Pn.forEach((Bn,$n)=>{const An=vn(Bn,$n),br=(Ce?Ce(Bn):null)||{};En.set(An,br)}),En},[Pn,vn,Ce]),gn=(0,ie.useCallback)(En=>{var Bn;return!!(!((Bn=Mn.get(vn(En)))===null||Bn===void 0)&&Bn.disabled)},[Mn,vn]),[Tn,kn]=(0,ie.useMemo)(()=>{if(It)return[on||[],[]];const{checkedKeys:En,halfCheckedKeys:Bn}=(0,Ki.S)(on,!0,en,gn);return[En||[],Bn]},[on,It,en,gn]),Qn=(0,ie.useMemo)(()=>{const En=gt==="radio"?Tn.slice(0,1):Tn;return new Set(En)},[Tn,gt]),Gr=(0,ie.useMemo)(()=>gt==="radio"?new Set:new Set(kn),[kn,gt]),[tr,Vr]=(0,ie.useState)(null);ie.useEffect(()=>{Te||dn(da)},[!!Te]);const _r=(0,ie.useCallback)((En,Bn)=>{let $n,An;qn(En),Ue?($n=En,An=En.map(br=>Dn.current.get(br))):($n=[],An=[],En.forEach(br=>{const Rn=ln(br);Rn!==void 0&&($n.push(br),An.push(Rn))})),dn($n),De==null||De($n,An,{type:Bn})},[dn,ln,De,Ue]),Ar=(0,ie.useCallback)((En,Bn,$n,An)=>{if(Re){const br=$n.map(Rn=>ln(Rn));Re(ln(En),Bn,br,An)}_r($n,"single")},[Re,ln,_r]),Tr=(0,ie.useMemo)(()=>!St||Vt?null:(St===!0?[Vi,Yi,Fi]:St).map(Bn=>Bn===Vi?{key:"all",text:hn.selectionAll,onSelect(){_r(Qt.map(($n,An)=>vn($n,An)).filter($n=>{const An=Mn.get($n);return!(An!=null&&An.disabled)||Qn.has($n)}),"all")}}:Bn===Yi?{key:"invert",text:hn.selectInvert,onSelect(){const $n=new Set(Qn);_n.forEach((br,Rn)=>{const jn=vn(br,Rn),hr=Mn.get(jn);hr!=null&&hr.disabled||($n.has(jn)?$n.delete(jn):$n.add(jn))});const An=Array.from($n);et&&et(An),_r(An,"invert")}}:Bn===Fi?{key:"none",text:hn.selectNone,onSelect(){rt==null||rt(),_r(Array.from(Qn).filter($n=>{const An=Mn.get($n);return An==null?void 0:An.disabled}),"none")}}:Bn).map(Bn=>Object.assign(Object.assign({},Bn),{onSelect:function(){for(var $n,An,br=arguments.length,Rn=new Array(br),jn=0;jn<br;jn++)Rn[jn]=arguments[jn];(An=Bn.onSelect)===null||An===void 0||($n=An).call.apply($n,[Bn].concat(Rn)),Vr(null)}})),[St,Qn,_n,vn,et,_r]);return[(0,ie.useCallback)(En=>{var Bn;if(!Te)return En.filter(Cr=>Cr!==hi);let $n=(0,tn.Z)(En);const An=new Set(Qn),br=Pn.map(vn).filter(Cr=>!Mn.get(Cr).disabled),Rn=br.every(Cr=>An.has(Cr)),jn=br.some(Cr=>An.has(Cr)),hr=()=>{const Cr=[];Rn?br.forEach(Ur=>{An.delete(Ur),Cr.push(Ur)}):br.forEach(Ur=>{An.has(Ur)||(An.add(Ur),Cr.push(Ur))});const xr=Array.from(An);Je==null||Je(!Rn,xr.map(Ur=>ln(Ur)),Cr.map(Ur=>ln(Ur))),_r(xr,"all"),Vr(null)};let Pr;if(gt!=="radio"){let Cr;if(Tr){const gr={getPopupContainer:Tt,items:Tr.map((To,jo)=>{const{key:ei,text:mi,onSelect:ui}=To;return{key:ei!=null?ei:jo,onClick:()=>{ui==null||ui(br)},label:mi}})};Cr=ie.createElement("div",{className:`${Yt}-selection-extra`},ie.createElement(io.Z,{menu:gr,getPopupContainer:Tt},ie.createElement("span",null,ie.createElement(Ra.Z,null))))}const xr=Pn.map((gr,To)=>{const jo=vn(gr,To),ei=Mn.get(jo)||{};return Object.assign({checked:An.has(jo)},ei)}).filter(gr=>{let{disabled:To}=gr;return To}),Ur=!!xr.length&&xr.length===Pn.length,Qr=Ur&&xr.every(gr=>{let{checked:To}=gr;return To}),uo=Ur&&xr.some(gr=>{let{checked:To}=gr;return To});Pr=!Vt&&ie.createElement("div",{className:`${Yt}-selection`},ie.createElement(ur.default,{checked:Ur?Qr:!!Pn.length&&Rn,indeterminate:Ur?!Qr&&uo:!Rn&&jn,onChange:hr,disabled:Pn.length===0||Ur,"aria-label":Cr?"Custom selection":"Select all",skipGroup:!0}),Cr)}let Do;gt==="radio"?Do=(Cr,xr,Ur)=>{const Qr=vn(xr,Ur),uo=An.has(Qr);return{node:ie.createElement(Qo.ZP,Object.assign({},Mn.get(Qr),{checked:uo,onClick:gr=>gr.stopPropagation(),onChange:gr=>{An.has(Qr)||Ar(Qr,!0,[Qr],gr.nativeEvent)}})),checked:uo}}:Do=(Cr,xr,Ur)=>{var Qr;const uo=vn(xr,Ur),gr=An.has(uo),To=Gr.has(uo),jo=Mn.get(uo);let ei;return In==="nest"?ei=To:ei=(Qr=jo==null?void 0:jo.indeterminate)!==null&&Qr!==void 0?Qr:To,{node:ie.createElement(ur.default,Object.assign({},jo,{indeterminate:ei,checked:gr,skipGroup:!0,onClick:mi=>mi.stopPropagation(),onChange:mi=>{let{nativeEvent:ui}=mi;const{shiftKey:ea}=ui;let bi=-1,ai=-1;if(ea&&It){const Ko=new Set([tr,uo]);br.some(($o,vo)=>{if(Ko.has($o))if(bi===-1)bi=vo;else return ai=vo,!0;return!1})}if(ai!==-1&&bi!==ai&&It){const Ko=br.slice(bi,ai+1),$o=[];gr?Ko.forEach(ao=>{An.has(ao)&&($o.push(ao),An.delete(ao))}):Ko.forEach(ao=>{An.has(ao)||($o.push(ao),An.add(ao))});const vo=Array.from(An);tt==null||tt(!gr,vo.map(ao=>ln(ao)),$o.map(ao=>ln(ao))),_r(vo,"multiple")}else{const Ko=Tn;if(It){const $o=gr?(0,Ta._5)(Ko,uo):(0,Ta.L0)(Ko,uo);Ar(uo,!gr,$o,ui)}else{const $o=(0,Ki.S)([].concat((0,tn.Z)(Ko),[uo]),!0,en,gn),{checkedKeys:vo,halfCheckedKeys:ao}=$o;let pi=vo;if(gr){const Ti=new Set(vo);Ti.delete(uo),pi=(0,Ki.S)(Array.from(Ti),{checked:!1,halfCheckedKeys:ao},en,gn).checkedKeys}Ar(uo,!gr,pi,ui)}}Vr(gr?null:uo)}})),checked:gr}};const bo=(Cr,xr,Ur)=>{const{node:Qr,checked:uo}=Do(Cr,xr,Ur);return Nt?Nt(uo,xr,Ur,Qr):Qr};if(!$n.includes(hi))if($n.findIndex(Cr=>{var xr;return((xr=Cr[er])===null||xr===void 0?void 0:xr.columnType)==="EXPAND_COLUMN"})===0){const[Cr,...xr]=$n;$n=[Cr,hi].concat((0,tn.Z)(xr))}else $n=[hi].concat((0,tn.Z)($n));const nr=$n.indexOf(hi);$n=$n.filter((Cr,xr)=>Cr!==hi||xr===nr);const mr=$n[nr-1],eo=$n[nr+1];let Or=Wt;Or===void 0&&((eo==null?void 0:eo.fixed)!==void 0?Or=eo.fixed:(mr==null?void 0:mr.fixed)!==void 0&&(Or=mr.fixed)),Or&&mr&&((Bn=mr[er])===null||Bn===void 0?void 0:Bn.columnType)==="EXPAND_COLUMN"&&mr.fixed===void 0&&(mr.fixed=Or);const wr=Xe()(`${Yt}-selection-col`,{[`${Yt}-selection-col-with-dropdown`]:St&&gt==="checkbox"}),zo={fixed:Or,width:dt,className:`${Yt}-selection-column`,title:Te.columnTitle||Pr,render:bo,onCell:Te.onCell,[er]:{className:wr}};return $n.map(Cr=>Cr===hi?zo:Cr)},[vn,Pn,Te,Tn,Qn,Gr,dt,Tr,In,tr,Mn,tt,Ar,gn]),Qn]},Xi=te(89489),gs=te(59477),ka=te(6848);const zi="ascend",ji="descend";function Hi(Ae){return typeof Ae.sorter=="object"&&typeof Ae.sorter.multiple=="number"?Ae.sorter.multiple:!1}function ga(Ae){return typeof Ae=="function"?Ae:Ae&&typeof Ae=="object"&&Ae.compare?Ae.compare:!1}function fa(Ae,Te){return Te?Ae[Ae.indexOf(Te)+1]:Ae[0]}function Qi(Ae,Te,Ue){let Ye=[];function lt(Ce,De){Ye.push({column:Ce,key:yr(Ce,De),multiplePriority:Hi(Ce),sortOrder:Ce.sortOrder})}return(Ae||[]).forEach((Ce,De)=>{const Re=Dr(De,Ue);Ce.children?("sortOrder"in Ce&&lt(Ce,Re),Ye=[].concat((0,tn.Z)(Ye),(0,tn.Z)(Qi(Ce.children,Te,Re)))):Ce.sorter&&("sortOrder"in Ce?lt(Ce,Re):Te&&Ce.defaultSortOrder&&Ye.push({column:Ce,key:yr(Ce,Re),multiplePriority:Hi(Ce),sortOrder:Ce.defaultSortOrder}))}),Ye}function Fa(Ae,Te,Ue,Ye,lt,Ce,De,Re){return(Te||[]).map((Je,et)=>{const rt=Dr(et,Re);let tt=Je;if(tt.sorter){const dt=tt.sortDirections||lt,gt=tt.showSorterTooltip===void 0?De:tt.showSorterTooltip,St=yr(tt,rt),Wt=Ue.find(In=>{let{key:Jt}=In;return Jt===St}),Nt=Wt?Wt.sortOrder:null,Vt=fa(dt,Nt);let It;if(Je.sortIcon)It=Je.sortIcon({sortOrder:Nt});else{const In=dt.includes(zi)&&ie.createElement(gs.Z,{className:Xe()(`${Ae}-column-sorter-up`,{active:Nt===zi})}),Jt=dt.includes(ji)&&ie.createElement(Xi.Z,{className:Xe()(`${Ae}-column-sorter-down`,{active:Nt===ji})});It=ie.createElement("span",{className:Xe()(`${Ae}-column-sorter`,{[`${Ae}-column-sorter-full`]:!!(In&&Jt)})},ie.createElement("span",{className:`${Ae}-column-sorter-inner`,"aria-hidden":"true"},In,Jt))}const{cancelSort:Yt,triggerAsc:Qt,triggerDesc:_n}=Ce||{};let ln=Yt;Vt===ji?ln=_n:Vt===zi&&(ln=Qt);const vn=typeof gt=="object"?gt:{title:ln};tt=Object.assign(Object.assign({},tt),{className:Xe()(tt.className,{[`${Ae}-column-sort`]:Nt}),title:In=>{const Jt=ie.createElement("div",{className:`${Ae}-column-sorters`},ie.createElement("span",{className:`${Ae}-column-title`},jr(Je.title,In)),It);return gt?ie.createElement(ka.Z,Object.assign({},vn),Jt):Jt},onHeaderCell:In=>{const Jt=Je.onHeaderCell&&Je.onHeaderCell(In)||{},hn=Jt.onClick,Tt=Jt.onKeyDown;Jt.onClick=Dn=>{Ye({column:Je,key:St,sortOrder:Vt,multiplePriority:Hi(Je)}),hn==null||hn(Dn)},Jt.onKeyDown=Dn=>{Dn.keyCode===ta.Z.ENTER&&(Ye({column:Je,key:St,sortOrder:Vt,multiplePriority:Hi(Je)}),Tt==null||Tt(Dn))};const on=qr(Je.title,{}),dn=on==null?void 0:on.toString();return Nt?Jt["aria-sort"]=Nt==="ascend"?"ascending":"descending":Jt["aria-label"]=dn||"",Jt.className=Xe()(Jt.className,`${Ae}-column-has-sorters`),Jt.tabIndex=0,Je.ellipsis&&(Jt.title=(on!=null?on:"").toString()),Jt}})}return"children"in tt&&(tt=Object.assign(Object.assign({},tt),{children:Fa(Ae,tt.children,Ue,Ye,lt,Ce,De,rt)})),tt})}function ha(Ae){const{column:Te,sortOrder:Ue}=Ae;return{column:Te,order:Ue,field:Te.dataIndex,columnKey:Te.key}}function ma(Ae){const Te=Ae.filter(Ue=>{let{sortOrder:Ye}=Ue;return Ye}).map(ha);return Te.length===0&&Ae.length?Object.assign(Object.assign({},ha(Ae[Ae.length-1])),{column:void 0}):Te.length<=1?Te[0]||{}:Te}function Ji(Ae,Te,Ue){const Ye=Te.slice().sort((De,Re)=>Re.multiplePriority-De.multiplePriority),lt=Ae.slice(),Ce=Ye.filter(De=>{let{column:{sorter:Re},sortOrder:Je}=De;return ga(Re)&&Je});return Ce.length?lt.sort((De,Re)=>{for(let Je=0;Je<Ce.length;Je+=1){const et=Ce[Je],{column:{sorter:rt},sortOrder:tt}=et,dt=ga(rt);if(dt&&tt){const gt=dt(De,Re,tt);if(gt!==0)return tt===zi?gt:-gt}}return 0}).map(De=>{const Re=De[Ue];return Re?Object.assign(Object.assign({},De),{[Ue]:Ji(Re,Te,Ue)}):De}):lt}function za(Ae){let{prefixCls:Te,mergedColumns:Ue,onSorterChange:Ye,sortDirections:lt,tableLocale:Ce,showSorterTooltip:De}=Ae;const[Re,Je]=ie.useState(Qi(Ue,!0)),et=ie.useMemo(()=>{let St=!0;const Wt=Qi(Ue,!1);if(!Wt.length)return Re;const Nt=[];function Vt(Yt){St?Nt.push(Yt):Nt.push(Object.assign(Object.assign({},Yt),{sortOrder:null}))}let It=null;return Wt.forEach(Yt=>{It===null?(Vt(Yt),Yt.sortOrder&&(Yt.multiplePriority===!1?St=!1:It=!0)):(It&&Yt.multiplePriority!==!1||(St=!1),Vt(Yt))}),Nt},[Ue,Re]),rt=ie.useMemo(()=>{const St=et.map(Wt=>{let{column:Nt,sortOrder:Vt}=Wt;return{column:Nt,order:Vt}});return{sortColumns:St,sortColumn:St[0]&&St[0].column,sortOrder:St[0]&&St[0].order}},[et]);function tt(St){let Wt;St.multiplePriority===!1||!et.length||et[0].multiplePriority===!1?Wt=[St]:Wt=[].concat((0,tn.Z)(et.filter(Nt=>{let{key:Vt}=Nt;return Vt!==St.key})),[St]),Je(Wt),Ye(ma(Wt),Wt)}return[St=>Fa(Te,St,et,tt,lt,Ce,De),et,rt,()=>ma(et)]}function pa(Ae,Te){return Ae.map(Ue=>{const Ye=Object.assign({},Ue);return Ye.title=jr(Ue.title,Te),"children"in Ye&&(Ye.children=pa(Ye.children,Te)),Ye})}function ja(Ae){return[ie.useCallback(Ue=>pa(Ue,Ae),[Ae])]}var va=ir((Ae,Te)=>{const{_renderTimes:Ue}=Ae,{_renderTimes:Ye}=Te;return Ue!==Ye}),Ha=yo((Ae,Te)=>{const{_renderTimes:Ue}=Ae,{_renderTimes:Ye}=Te;return Ue!==Ye}),Ai=te(64993),Oi=te(17313),qo=te(83116),Ga=te(37613),fs=Ae=>{const{componentCls:Te}=Ae,Ue=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`,Ye=(lt,Ce,De)=>({[`&${Te}-${lt}`]:{[`> ${Te}-container`]:{[`> ${Te}-content, > ${Te}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Te}-expanded-row-fixed`]:{margin:`-${Ce}px -${De+Ae.lineWidth}px`}}}}}});return{[`${Te}-wrapper`]:{[`${Te}${Te}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Te}-title`]:{border:Ue,borderBottom:0},[`> ${Te}-container`]:{borderInlineStart:Ue,borderTop:Ue,[`
> ${Te}-content,
> ${Te}-header,
> ${Te}-body,
> ${Te}-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:Ue},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ue},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Te}-cell-fix-right-first::after`]:{borderInlineEnd:Ue}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Te}-expanded-row-fixed`]:{margin:`-${Ae.tablePaddingVertical}px -${Ae.tablePaddingHorizontal+Ae.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Ae.lineWidth,bottom:0,borderInlineEnd:Ue,content:'""'}}}}}},[`&${Te}-scroll-horizontal`]:{[`> ${Te}-container > ${Te}-body`]:{"> table > tbody":{[`
> tr${Te}-expanded-row,
> tr${Te}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},Ye("middle",Ae.tablePaddingVerticalMiddle,Ae.tablePaddingHorizontalMiddle)),Ye("small",Ae.tablePaddingVerticalSmall,Ae.tablePaddingHorizontalSmall)),{[`> ${Te}-footer`]:{border:Ue,borderTop:0}}),[`${Te}-cell`]:{[`${Te}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Ae.lineWidth}px 0 ${Ae.lineWidth}px ${Ae.tableHeaderBg}`}},[`${Te}-bordered ${Te}-cell-scrollbar`]:{borderInlineEnd:Ue}}}},xi=Ae=>{const{componentCls:Te}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-cell-ellipsis`]:Object.assign(Object.assign({},Oi.vS),{wordBreak:"keep-all",[`
&${Te}-cell-fix-left-last,
&${Te}-cell-fix-right-first
`]:{overflow:"visible",[`${Te}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Te}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Ua=Ae=>{const{componentCls:Te}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-tbody > tr${Te}-placeholder`]:{textAlign:"center",color:Ae.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Ae.colorBgContainer}}}}},$a=te(15969),Wa=Ae=>{const{componentCls:Te,antCls:Ue,controlInteractiveSize:Ye,motionDurationSlow:lt,lineWidth:Ce,paddingXS:De,lineType:Re,tableBorderColor:Je,tableExpandIconBg:et,tableExpandColumnWidth:rt,borderRadius:tt,fontSize:dt,fontSizeSM:gt,lineHeight:St,tablePaddingVertical:Wt,tablePaddingHorizontal:Nt,tableExpandedRowBg:Vt,paddingXXS:It}=Ae,Yt=Ye/2-Ce,Qt=Yt*2+Ce*3,_n=`${Ce}px ${Re} ${Je}`,ln=It-Ce;return{[`${Te}-wrapper`]:{[`${Te}-expand-icon-col`]:{width:rt},[`${Te}-row-expand-icon-cell`]:{textAlign:"center",[`${Te}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Te}-row-indent`]:{height:1,float:"left"},[`${Te}-row-expand-icon`]:Object.assign(Object.assign({},(0,$a.N)(Ae)),{position:"relative",float:"left",boxSizing:"border-box",width:Qt,height:Qt,padding:0,color:"inherit",lineHeight:`${Qt}px`,background:et,border:_n,borderRadius:tt,transform:`scale(${Ye/Qt})`,transition:`all ${lt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${lt} ease-out`,content:'""'},"&::before":{top:Yt,insetInlineEnd:ln,insetInlineStart:ln,height:Ce},"&::after":{top:ln,bottom:ln,insetInlineStart:Yt,width:Ce,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"}}),[`${Te}-row-indent + ${Te}-row-expand-icon`]:{marginTop:(dt*St-Ce*3)/2-Math.ceil((gt*1.4-Ce*3)/2),marginInlineEnd:De},[`tr${Te}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Vt}},[`${Ue}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Te}-expanded-row-fixed`]:{position:"relative",margin:`-${Wt}px -${Nt}px`,padding:`${Wt}px ${Nt}px`}}}},Sa=Ae=>{const{componentCls:Te,antCls:Ue,iconCls:Ye,tableFilterDropdownWidth:lt,tableFilterDropdownSearchWidth:Ce,paddingXXS:De,paddingXS:Re,colorText:Je,lineWidth:et,lineType:rt,tableBorderColor:tt,tableHeaderIconColor:dt,fontSizeSM:gt,tablePaddingHorizontal:St,borderRadius:Wt,motionDurationSlow:Nt,colorTextDescription:Vt,colorPrimary:It,tableHeaderFilterActiveBg:Yt,colorTextDisabled:Qt,tableFilterDropdownBg:_n,tableFilterDropdownHeight:ln,controlItemBgHover:vn,controlItemBgActive:In,boxShadowSecondary:Jt,filterDropdownMenuBg:hn}=Ae,Tt=`${Ue}-dropdown`,on=`${Te}-filter-dropdown`,dn=`${Ue}-tree`,Dn=`${et}px ${rt} ${tt}`;return[{[`${Te}-wrapper`]:{[`${Te}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Te}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-De,marginInline:`${De}px ${-St/2}px`,padding:`0 ${De}px`,color:dt,fontSize:gt,borderRadius:Wt,cursor:"pointer",transition:`all ${Nt}`,"&:hover":{color:Vt,background:Yt},"&.active":{color:It}}}},{[`${Ue}-dropdown`]:{[on]:Object.assign(Object.assign({},(0,Oi.Wf)(Ae)),{minWidth:lt,backgroundColor:_n,borderRadius:Wt,boxShadow:Jt,overflow:"hidden",[`${Tt}-menu`]:{maxHeight:ln,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:hn,"&:empty::after":{display:"block",padding:`${Re}px 0`,color:Qt,fontSize:gt,textAlign:"center",content:'"Not Found"'}},[`${on}-tree`]:{paddingBlock:`${Re}px 0`,paddingInline:Re,[dn]:{padding:0},[`${dn}-treenode ${dn}-node-content-wrapper:hover`]:{backgroundColor:vn},[`${dn}-treenode-checkbox-checked ${dn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:In}}},[`${on}-search`]:{padding:Re,borderBottom:Dn,"&-input":{input:{minWidth:Ce},[Ye]:{color:Qt}}},[`${on}-checkall`]:{width:"100%",marginBottom:De,marginInlineStart:De},[`${on}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Re-et}px ${Re}px`,overflow:"hidden",borderTop:Dn}})}},{[`${Ue}-dropdown ${on}, ${on}-submenu`]:{[`${Ue}-checkbox-wrapper + span`]:{paddingInlineStart:Re,color:Je},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},qi=Ae=>{const{componentCls:Te,lineWidth:Ue,colorSplit:Ye,motionDurationSlow:lt,zIndexTableFixed:Ce,tableBg:De,zIndexTableSticky:Re}=Ae,Je=Ye;return{[`${Te}-wrapper`]:{[`
${Te}-cell-fix-left,
${Te}-cell-fix-right
`]:{position:"sticky !important",zIndex:Ce,background:De},[`
${Te}-cell-fix-left-first::after,
${Te}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ue,width:30,transform:"translateX(100%)",transition:`box-shadow ${lt}`,content:'""',pointerEvents:"none"},[`${Te}-cell-fix-left-all::after`]:{display:"none"},[`
${Te}-cell-fix-right-first::after,
${Te}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Ue,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${lt}`,content:'""',pointerEvents:"none"},[`${Te}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:Re+1,width:30,transition:`box-shadow ${lt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Te}-ping-left`]:{[`&:not(${Te}-has-fix-left) ${Te}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Je}`}},[`
${Te}-cell-fix-left-first::after,
${Te}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Je}`},[`${Te}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Te}-ping-right`]:{[`&:not(${Te}-has-fix-right) ${Te}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Je}`}},[`
${Te}-cell-fix-right-first::after,
${Te}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Je}`}}}}},vs=Ae=>{const{componentCls:Te,antCls:Ue}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-pagination${Ue}-pagination`]:{margin:`${Ae.margin}px 0`},[`${Te}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Ae.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ka=Ae=>{const{componentCls:Te,tableRadius:Ue}=Ae;return{[`${Te}-wrapper`]:{[Te]:{[`${Te}-title, ${Te}-header`]:{borderRadius:`${Ue}px ${Ue}px 0 0`},[`${Te}-title + ${Te}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Te}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ue,borderStartEndRadius:Ue,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ue},"> *:last-child":{borderStartEndRadius:Ue}}},"&-footer":{borderRadius:`0 0 ${Ue}px ${Ue}px`}}}}},Va=Ae=>{const{componentCls:Te}=Ae;return{[`${Te}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Te}-pagination-left`]:{justifyContent:"flex-end"},[`${Te}-pagination-right`]:{justifyContent:"flex-start"},[`${Te}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Te}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Te}-row-indent`]:{float:"right"}}}}},Ya=Ae=>{const{componentCls:Te,antCls:Ue,iconCls:Ye,fontSizeIcon:lt,padding:Ce,paddingXS:De,tableHeaderIconColor:Re,tableHeaderIconColorHover:Je,tableSelectionColumnWidth:et}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-selection-col`]:{width:et,[`&${Te}-selection-col-with-dropdown`]:{width:et+lt+Ce/4}},[`${Te}-bordered ${Te}-selection-col`]:{width:et+De*2,[`&${Te}-selection-col-with-dropdown`]:{width:et+lt+Ce/4+De*2}},[`
table tr th${Te}-selection-column,
table tr td${Te}-selection-column
`]:{paddingInlineEnd:Ae.paddingXS,paddingInlineStart:Ae.paddingXS,textAlign:"center",[`${Ue}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Te}-selection-column${Te}-cell-fix-left`]:{zIndex:Ae.zIndexTableFixed+1},[`table tr th${Te}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Te}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Te}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Ae.tablePaddingHorizontal/4}px`,[Ye]:{color:Re,fontSize:lt,verticalAlign:"baseline","&:hover":{color:Je}}}}}},Xa=Ae=>{const{componentCls:Te}=Ae,Ue=(Ye,lt,Ce,De)=>({[`${Te}${Te}-${Ye}`]:{fontSize:De,[`
${Te}-title,
${Te}-footer,
${Te}-cell,
${Te}-thead > tr > th,
${Te}-tbody > tr > th,
${Te}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${lt}px ${Ce}px`},[`${Te}-filter-trigger`]:{marginInlineEnd:`-${Ce/2}px`},[`${Te}-expanded-row-fixed`]:{margin:`-${lt}px -${Ce}px`},[`${Te}-tbody`]:{[`${Te}-wrapper:only-child ${Te}`]:{marginBlock:`-${lt}px`,marginInline:`${Ae.tableExpandColumnWidth-Ce}px -${Ce}px`}},[`${Te}-selection-column`]:{paddingInlineStart:`${Ce/4}px`}}});return{[`${Te}-wrapper`]:Object.assign(Object.assign({},Ue("middle",Ae.tablePaddingVerticalMiddle,Ae.tablePaddingHorizontalMiddle,Ae.tableFontSizeMiddle)),Ue("small",Ae.tablePaddingVerticalSmall,Ae.tablePaddingHorizontalSmall,Ae.tableFontSizeSmall))}},or=Ae=>{const{componentCls:Te,marginXXS:Ue,fontSizeIcon:Ye,tableHeaderIconColor:lt,tableHeaderIconColorHover:Ce}=Ae;return{[`${Te}-wrapper`]:{[`${Te}-thead th${Te}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Ae.motionDurationSlow}`,"&:hover":{background:Ae.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Ae.colorPrimary},[`
&${Te}-cell-fix-left:hover,
&${Te}-cell-fix-right:hover
`]:{background:Ae.tableFixedHeaderSortActiveBg}},[`${Te}-thead th${Te}-column-sort`]:{background:Ae.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Te}-column-sort`]:{background:Ae.tableBodySortBg},[`${Te}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Te}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Te}-column-sorter`]:{marginInlineStart:Ue,color:lt,fontSize:0,transition:`color ${Ae.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:Ye,"&.active":{color:Ae.colorPrimary}},[`${Te}-column-sorter-up + ${Te}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Te}-column-sorters:hover ${Te}-column-sorter`]:{color:Ce}}}},Qa=Ae=>{const{componentCls:Te,opacityLoading:Ue,tableScrollThumbBg:Ye,tableScrollThumbBgHover:lt,tableScrollThumbSize:Ce,tableScrollBg:De,zIndexTableSticky:Re,stickyScrollBarBorderRadius:Je}=Ae,et=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`;return{[`${Te}-wrapper`]:{[`${Te}-sticky`]:{"&-holder":{position:"sticky",zIndex:Re,background:Ae.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Ce}px !important`,zIndex:Re,display:"flex",alignItems:"center",background:De,borderTop:et,opacity:Ue,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Ce,backgroundColor:Ye,borderRadius:Je,transition:`all ${Ae.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:lt}}}}}}},Ri=Ae=>{const{componentCls:Te,lineWidth:Ue,tableBorderColor:Ye}=Ae,lt=`${Ue}px ${Ae.lineType} ${Ye}`;return{[`${Te}-wrapper`]:{[`${Te}-summary`]:{position:"relative",zIndex:Ae.zIndexTableFixed,background:Ae.tableBg,"> tr":{"> th, > td":{borderBottom:lt}}},[`div${Te}-summary`]:{boxShadow:`0 -${Ue}px 0 ${Ye}`}}}},_a=Ae=>{const{componentCls:Te}=Ae,Ue=`${Ae.lineWidth}px ${Ae.lineType} ${Ae.tableBorderColor}`,Ye=`${Te}-expanded-row-cell`;return{[`${Te}-wrapper`]:{[`${Te}-tbody-virtual`]:{[`${Te}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Te}-cell`]:{borderBottom:Ue},[`${Te}-expanded-row`]:{[`${Ye}${Ye}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Ae.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Te}-bordered`]:{[`${Te}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ue,position:"absolute"},[`${Te}-cell`]:{borderInlineEnd:Ue,[`&${Te}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Ae.lineWidth,borderInlineStart:Ue}}}}}}};const ya=Ae=>{const{componentCls:Te,fontWeightStrong:Ue,tablePaddingVertical:Ye,tablePaddingHorizontal:lt,lineWidth:Ce,lineType:De,tableBorderColor:Re,tableFontSize:Je,tableBg:et,tableRadius:rt,tableHeaderTextColor:tt,motionDurationMid:dt,tableHeaderBg:gt,tableHeaderCellSplitColor:St,tableRowHoverBg:Wt,tableSelectedRowBg:Nt,tableSelectedRowHoverBg:Vt,tableFooterTextColor:It,tableFooterBg:Yt,paddingContentVerticalLG:Qt}=Ae,_n=`${Ce}px ${De} ${Re}`;return{[`${Te}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Oi.dF)()),{[Te]:Object.assign(Object.assign({},(0,Oi.Wf)(Ae)),{fontSize:Je,background:et,borderRadius:`${rt}px ${rt}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${rt}px ${rt}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Te}-cell,
${Te}-thead > tr > th,
${Te}-tbody > tr > th,
${Te}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Qt}px ${lt}px`,overflowWrap:"break-word"},[`${Te}-title`]:{padding:`${Ye}px ${lt}px`},[`${Te}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:tt,fontWeight:Ue,textAlign:"start",background:gt,borderBottom:_n,transition:`background ${dt} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Te}-selection-column):not(${Te}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:St,transform:"translateY(-50%)",transition:`background-color ${dt}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Te}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${dt}, border-color ${dt}`,borderBottom:_n,[`
> ${Te}-wrapper:only-child,
> ${Te}-expanded-row-fixed > ${Te}-wrapper:only-child
`]:{[Te]:{marginBlock:`-${Ye}px`,marginInline:`${Ae.tableExpandColumnWidth-lt}px -${lt}px`,[`${Te}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:tt,fontWeight:Ue,textAlign:"start",background:gt,borderBottom:_n,transition:`background ${dt} ease`},[`
&${Te}-row:hover > th,
&${Te}-row:hover > td,
> th${Te}-cell-row-hover,
> td${Te}-cell-row-hover
`]:{background:Wt},[`&${Te}-row-selected`]:{"> th, > td":{background:Nt},"&:hover > th, &:hover > td":{background:Vt}}}},[`${Te}-footer`]:{padding:`${Ye}px ${lt}px`,color:It,background:Yt}})}};var Kr=(0,qo.Z)("Table",Ae=>{const{colorTextHeading:Te,colorSplit:Ue,colorIcon:Ye,colorIconHover:lt,opacityLoading:Ce,colorBgContainer:De,controlInteractiveSize:Re,headerBg:Je,headerColor:et,headerSortActiveBg:rt,headerSortHoverBg:tt,bodySortBg:dt,rowHoverBg:gt,rowSelectedBg:St,rowSelectedHoverBg:Wt,rowExpandedBg:Nt,cellPaddingBlock:Vt,cellPaddingInline:It,cellPaddingBlockMD:Yt,cellPaddingInlineMD:Qt,cellPaddingBlockSM:_n,cellPaddingInlineSM:ln,borderColor:vn,footerBg:In,footerColor:Jt,headerBorderRadius:hn,cellFontSize:Tt,cellFontSizeMD:on,cellFontSizeSM:dn,headerSplitColor:Dn,fixedHeaderSortActiveBg:qn,headerFilterHoverBg:en,filterDropdownBg:Pn,expandIconBg:Mn,selectionColumnWidth:gn,stickyScrollBarBg:Tn}=Ae,kn=new Ai.C(Ye),Qn=new Ai.C(lt),Gr=2,tr=(0,Ga.TS)(Ae,{tableFontSize:Tt,tableBg:De,tableRadius:hn,tablePaddingVertical:Vt,tablePaddingHorizontal:It,tablePaddingVerticalMiddle:Yt,tablePaddingHorizontalMiddle:Qt,tablePaddingVerticalSmall:_n,tablePaddingHorizontalSmall:ln,tableBorderColor:vn,tableHeaderTextColor:et,tableHeaderBg:Je,tableFooterTextColor:Jt,tableFooterBg:In,tableHeaderCellSplitColor:Dn,tableHeaderSortBg:rt,tableHeaderSortHoverBg:tt,tableHeaderIconColor:kn.clone().setAlpha(kn.getAlpha()*Ce).toRgbString(),tableHeaderIconColorHover:Qn.clone().setAlpha(Qn.getAlpha()*Ce).toRgbString(),tableBodySortBg:dt,tableFixedHeaderSortActiveBg:qn,tableHeaderFilterActiveBg:en,tableFilterDropdownBg:Pn,tableRowHoverBg:gt,tableSelectedRowBg:St,tableSelectedRowHoverBg:Wt,zIndexTableFixed:Gr,zIndexTableSticky:Gr+1,tableFontSizeMiddle:on,tableFontSizeSmall:dn,tableSelectionColumnWidth:gn,tableExpandIconBg:Mn,tableExpandColumnWidth:Re+2*Ae.padding,tableExpandedRowBg:Nt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Tn,tableScrollThumbBgHover:Te,tableScrollBg:Ue});return[ya(tr),vs(tr),Ri(tr),or(tr),Sa(tr),fs(tr),Ka(tr),Wa(tr),Ri(tr),Ua(tr),Ya(tr),qi(tr),Qa(tr),xi(tr),Xa(tr),Va(tr),_a(tr)]},Ae=>{const{colorFillAlter:Te,colorBgContainer:Ue,colorTextHeading:Ye,colorFillSecondary:lt,colorFillContent:Ce,controlItemBgActive:De,controlItemBgActiveHover:Re,padding:Je,paddingSM:et,paddingXS:rt,colorBorderSecondary:tt,borderRadiusLG:dt,fontSize:gt,controlHeight:St,colorTextPlaceholder:Wt}=Ae,Nt=new Ai.C(lt).onBackground(Ue).toHexShortString(),Vt=new Ai.C(Ce).onBackground(Ue).toHexShortString(),It=new Ai.C(Te).onBackground(Ue).toHexShortString();return{headerBg:It,headerColor:Ye,headerSortActiveBg:Nt,headerSortHoverBg:Vt,bodySortBg:It,rowHoverBg:It,rowSelectedBg:De,rowSelectedHoverBg:Re,rowExpandedBg:Te,cellPaddingBlock:Je,cellPaddingInline:Je,cellPaddingBlockMD:et,cellPaddingInlineMD:rt,cellPaddingBlockSM:rt,cellPaddingInlineSM:rt,borderColor:tt,headerBorderRadius:dt,footerBg:It,footerColor:Ye,cellFontSize:gt,cellFontSizeMD:gt,cellFontSizeSM:gt,headerSplitColor:tt,fixedHeaderSortActiveBg:Nt,headerFilterHoverBg:Ce,filterDropdownMenuBg:Ue,filterDropdownBg:Ue,expandIconBg:Ue,selectionColumnWidth:St,stickyScrollBarBg:Wt,stickyScrollBarBorderRadius:100}});const po=[],qa=(Ae,Te)=>{const{prefixCls:Ue,className:Ye,rootClassName:lt,style:Ce,size:De,bordered:Re,dropdownPrefixCls:Je,dataSource:et,pagination:rt,rowSelection:tt,rowKey:dt="key",rowClassName:gt,columns:St,children:Wt,childrenColumnName:Nt,onChange:Vt,getPopupContainer:It,loading:Yt,expandIcon:Qt,expandable:_n,expandedRowRender:ln,expandIconColumnIndex:vn,indentSize:In,scroll:Jt,sortDirections:hn,locale:Tt,showSorterTooltip:on=!0,virtual:dn}=Ae,Dn=ie.useMemo(()=>St||xe(Wt),[St,Wt]),qn=ie.useMemo(()=>Dn.some(Mr=>Mr.responsive),[Dn]),en=(0,Xo.Z)(qn),Pn=ie.useMemo(()=>{const Mr=new Set(Object.keys(en).filter(Jr=>en[Jr]));return Dn.filter(Jr=>!Jr.responsive||Jr.responsive.some(No=>Mr.has(No)))},[Dn,en]),Mn=(0,ti.Z)(Ae,["className","style","columns"]),{locale:gn=Zo.Z,direction:Tn,table:kn,renderEmpty:Qn,getPrefixCls:Gr,getPopupContainer:tr}=ie.useContext(Ro.E_),Vr=(0,Lo.Z)(De),_r=Object.assign(Object.assign({},gn.Table),Tt),Ar=et||po,Tr=Gr("table",Ue),zn=Gr("dropdown",Je),En=Object.assign({childrenColumnName:Nt,expandIconColumnIndex:vn},_n),{childrenColumnName:Bn="children"}=En,$n=ie.useMemo(()=>Ar.some(Mr=>Mr==null?void 0:Mr[Bn])?"nest":ln||_n&&_n.expandedRowRender?"row":null,[Ar]),An={body:ie.useRef()},br=ie.useMemo(()=>typeof dt=="function"?dt:Mr=>Mr==null?void 0:Mr[dt],[dt]),[Rn]=Wi(Ar,Bn,br),jn={},hr=function(Mr,Jr){let No=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var so,Ho,Vo;const Yo=Object.assign(Object.assign({},jn),Mr);No&&((so=jn.resetPagination)===null||so===void 0||so.call(jn),!((Ho=Yo.pagination)===null||Ho===void 0)&&Ho.current&&(Yo.pagination.current=1),rt&&rt.onChange&&rt.onChange(1,(Vo=Yo.pagination)===null||Vo===void 0?void 0:Vo.pageSize)),Jt&&Jt.scrollToFirstRowOnChange!==!1&&An.body.current&&(0,ni.Z)(0,{getContainer:()=>An.body.current}),Vt==null||Vt(Yo.pagination,Yo.filters,Yo.sorter,{currentDataSource:Zi(Ji(Ar,Yo.sorterStates,Bn),Yo.filterStates),action:Jr})},Pr=(Mr,Jr)=>{hr({sorter:Mr,sorterStates:Jr},"sort",!1)},[Do,bo,nr,mr]=za({prefixCls:Tr,mergedColumns:Pn,onSorterChange:Pr,sortDirections:hn||["ascend","descend"],tableLocale:_r,showSorterTooltip:on}),eo=ie.useMemo(()=>Ji(Ar,bo,Bn),[Ar,bo]);jn.sorter=mr(),jn.sorterStates=bo;const Or=(Mr,Jr)=>{hr({filters:Mr,filterStates:Jr},"filter",!0)},[wr,zo,Cr]=sa({prefixCls:Tr,locale:_r,dropdownPrefixCls:zn,mergedColumns:Pn,onFilterChange:Or,getPopupContainer:It||tr}),xr=Zi(eo,zo);jn.filters=Cr,jn.filterStates=zo;const Ur=ie.useMemo(()=>{const Mr={};return Object.keys(Cr).forEach(Jr=>{Cr[Jr]!==null&&(Mr[Jr]=Cr[Jr])}),Object.assign(Object.assign({},nr),{filters:Mr})},[nr,Cr]),[Qr]=ja(Ur),uo=(Mr,Jr)=>{hr({pagination:Object.assign(Object.assign({},jn.pagination),{current:Mr,pageSize:Jr})},"paginate")},[gr,To]=Ia(xr.length,uo,rt);jn.pagination=rt===!1?{}:Oa(gr,rt),jn.resetPagination=To;const jo=ie.useMemo(()=>{if(rt===!1||!gr.pageSize)return xr;const{current:Mr=1,total:Jr,pageSize:No=ii}=gr;return xr.length<Jr?xr.length>No?xr.slice((Mr-1)*No,Mr*No):xr:xr.slice((Mr-1)*No,Mr*No)},[!!rt,xr,gr&&gr.current,gr&&gr.pageSize,gr&&gr.total]),[ei,mi]=Ba({prefixCls:Tr,data:xr,pageData:jo,getRowKey:br,getRecordByKey:Rn,expandType:$n,childrenColumnName:Bn,locale:_r,getPopupContainer:It||tr},tt),ui=(Mr,Jr,No)=>{let so;return typeof gt=="function"?so=Xe()(gt(Mr,Jr,No)):so=Xe()(gt),Xe()({[`${Tr}-row-selected`]:mi.has(br(Mr,Jr))},so)};En.__PARENT_RENDER_ICON__=En.expandIcon,En.expandIcon=En.expandIcon||Qt||Gn(_r),$n==="nest"&&En.expandIconColumnIndex===void 0?En.expandIconColumnIndex=tt?1:0:En.expandIconColumnIndex>0&&tt&&(En.expandIconColumnIndex-=1),typeof En.indentSize!="number"&&(En.indentSize=typeof In=="number"?In:15);const ea=ie.useCallback(Mr=>Qr(ei(wr(Do(Mr)))),[Do,wr,ei]);let bi,ai;if(rt!==!1&&(gr!=null&&gr.total)){let Mr;gr.size?Mr=gr.size:Mr=Vr==="small"||Vr==="middle"?"small":void 0;const Jr=Ho=>ie.createElement(gi.Z,Object.assign({},gr,{className:Xe()(`${Tr}-pagination ${Tr}-pagination-${Ho}`,gr.className),size:Mr})),No=Tn==="rtl"?"left":"right",{position:so}=gr;if(so!==null&&Array.isArray(so)){const Ho=so.find(Ci=>Ci.includes("top")),Vo=so.find(Ci=>Ci.includes("bottom")),Yo=so.every(Ci=>`${Ci}`=="none");!Ho&&!Vo&&!Yo&&(ai=Jr(No)),Ho&&(bi=Jr(Ho.toLowerCase().replace("top",""))),Vo&&(ai=Jr(Vo.toLowerCase().replace("bottom","")))}else ai=Jr(No)}let Ko;typeof Yt=="boolean"?Ko={spinning:Yt}:typeof Yt=="object"&&(Ko=Object.assign({spinning:!0},Yt));const[$o,vo]=Kr(Tr),[,ao]=(0,Cn.Z)(),pi=Xe()(`${Tr}-wrapper`,kn==null?void 0:kn.className,{[`${Tr}-wrapper-rtl`]:Tn==="rtl"},Ye,lt,vo),Ti=Object.assign(Object.assign({},kn==null?void 0:kn.style),Ce),Li=Tt&&Tt.emptyText||(Qn==null?void 0:Qn("Table"))||ie.createElement(xo.Z,{componentName:"Table"}),vi=dn?Ha:va,Pa={},ts=ie.useMemo(()=>{const{fontSize:Mr,lineHeight:Jr,padding:No,paddingXS:so,paddingSM:Ho}=ao,Vo=Math.floor(Mr*Jr);switch(Vr){case"large":return No*2+Vo;case"small":return so*2+Vo;default:return Ho*2+Vo}},[ao,Vr]);return dn&&(Pa.listItemHeight=ts),$o(ie.createElement("div",{ref:Te,className:pi,style:Ti},ie.createElement(Zn.Z,Object.assign({spinning:!1},Ko),bi,ie.createElement(vi,Object.assign({},Pa,Mn,{columns:Pn,direction:Tn,expandable:En,prefixCls:Tr,className:Xe()({[`${Tr}-middle`]:Vr==="middle",[`${Tr}-small`]:Vr==="small",[`${Tr}-bordered`]:Re,[`${Tr}-empty`]:Ar.length===0}),data:jo,rowKey:br,rowClassName:ui,emptyText:Li,internalHooks:ge,internalRefs:An,transformColumns:ea})),ai)))};var Wo=ie.forwardRef(qa);const ws=(Ae,Te)=>{const Ue=ie.useRef(0);return Ue.current+=1,ie.createElement(Wo,Object.assign({},Ae,{ref:Te,_renderTimes:Ue.current}))},di=ie.forwardRef(ws);di.SELECTION_COLUMN=hi,di.EXPAND_COLUMN=ee,di.SELECTION_ALL=Vi,di.SELECTION_INVERT=Yi,di.SELECTION_NONE=Fi,di.Column=wo,di.ColumnGroup=oi,di.Summary=Oe;var es=di,Ui=es},12563:function(ft,Ve,te){"use strict";te.d(Ve,{default:function(){return je}});var ee=te(59301),ge=te(99267),be=te(92310),ye=te.n(be),_e=te(36785),fe=te(47729),ie=te(14088),de=te(36355),le=te(17313),me=te(37613),ae=te(83116);const he=Me=>{const{paddingXXS:mt,lineWidth:Xe,tagPaddingHorizontal:pt,componentCls:we}=Me,Fe=pt-Xe,He=mt-Xe;return{[we]:Object.assign(Object.assign({},(0,le.Wf)(Me)),{display:"inline-block",height:"auto",marginInlineEnd:Me.marginXS,paddingInline:Fe,fontSize:Me.tagFontSize,lineHeight:Me.tagLineHeight,whiteSpace:"nowrap",background:Me.defaultBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,opacity:1,transition:`all ${Me.motionDurationMid}`,textAlign:"start",position:"relative",[`&${we}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Me.defaultColor},[`${we}-close-icon`]:{marginInlineStart:He,color:Me.colorTextDescription,fontSize:Me.tagIconSize,cursor:"pointer",transition:`all ${Me.motionDurationMid}`,"&:hover":{color:Me.colorTextHeading}},[`&${we}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Me.iconCls}-close, ${Me.iconCls}-close:hover`]:{color:Me.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${we}-checkable-checked):hover`]:{color:Me.colorPrimary,backgroundColor:Me.colorFillSecondary},"&:active, &-checked":{color:Me.colorTextLightSolid},"&-checked":{backgroundColor:Me.colorPrimary,"&:hover":{backgroundColor:Me.colorPrimaryHover}},"&:active":{backgroundColor:Me.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Me.iconCls} + span, > span + ${Me.iconCls}`]:{marginInlineStart:Fe}}),[`${we}-borderless`]:{borderColor:"transparent",background:Me.tagBorderlessBg}}},oe=Me=>{const{lineWidth:mt,fontSizeIcon:Xe}=Me,pt=Me.fontSizeSM,we=`${Me.lineHeightSM*pt}px`;return(0,me.TS)(Me,{tagFontSize:pt,tagLineHeight:we,tagIconSize:Xe-2*mt,tagPaddingHorizontal:8,tagBorderlessBg:Me.colorFillTertiary})},ne=Me=>({defaultBg:Me.colorFillQuaternary,defaultColor:Me.colorText});var a=(0,ae.Z)("Tag",Me=>{const mt=oe(Me);return he(mt)},ne),y=function(Me,mt){var Xe={};for(var pt in Me)Object.prototype.hasOwnProperty.call(Me,pt)&&mt.indexOf(pt)<0&&(Xe[pt]=Me[pt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,pt=Object.getOwnPropertySymbols(Me);we<pt.length;we++)mt.indexOf(pt[we])<0&&Object.prototype.propertyIsEnumerable.call(Me,pt[we])&&(Xe[pt[we]]=Me[pt[we]]);return Xe},b=Me=>{const{prefixCls:mt,style:Xe,className:pt,checked:we,onChange:Fe,onClick:He}=Me,it=y(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Ke,tag:ht}=ee.useContext(de.E_),_t=Pt=>{Fe==null||Fe(!we),He==null||He(Pt)},Lt=Ke("tag",mt),[kt,nt]=a(Lt),Qe=ye()(Lt,`${Lt}-checkable`,{[`${Lt}-checkable-checked`]:we},ht==null?void 0:ht.className,pt,nt);return kt(ee.createElement("span",Object.assign({},it,{style:Object.assign(Object.assign({},Xe),ht==null?void 0:ht.style),className:Qe,onClick:_t})))},x=te(45157);const z=Me=>(0,x.Z)(Me,(mt,Xe)=>{let{textColor:pt,lightBorderColor:we,lightColor:Fe,darkColor:He}=Xe;return{[`${Me.componentCls}-${mt}`]:{color:pt,background:Fe,borderColor:we,"&-inverse":{color:Me.colorTextLightSolid,background:He,borderColor:He},[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,ae.b)(["Tag","preset"],Me=>{const mt=oe(Me);return z(mt)},ne);function se(Me){return typeof Me!="string"?Me:Me.charAt(0).toUpperCase()+Me.slice(1)}const ce=(Me,mt,Xe)=>{const pt=se(Xe);return{[`${Me.componentCls}-${mt}`]:{color:Me[`color${Xe}`],background:Me[`color${pt}Bg`],borderColor:Me[`color${pt}Border`],[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}};var pe=(0,ae.b)(["Tag","status"],Me=>{const mt=oe(Me);return[ce(mt,"success","Success"),ce(mt,"processing","Info"),ce(mt,"error","Error"),ce(mt,"warning","Warning")]},ne),Se=function(Me,mt){var Xe={};for(var pt in Me)Object.prototype.hasOwnProperty.call(Me,pt)&&mt.indexOf(pt)<0&&(Xe[pt]=Me[pt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,pt=Object.getOwnPropertySymbols(Me);we<pt.length;we++)mt.indexOf(pt[we])<0&&Object.prototype.propertyIsEnumerable.call(Me,pt[we])&&(Xe[pt[we]]=Me[pt[we]]);return Xe};const Le=(Me,mt)=>{const{prefixCls:Xe,className:pt,rootClassName:we,style:Fe,children:He,icon:it,color:Ke,onClose:ht,closeIcon:_t,closable:Lt,bordered:kt=!0}=Me,nt=Se(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Qe,direction:Pt,tag:zt}=ee.useContext(de.E_),[yt,an]=ee.useState(!0);ee.useEffect(()=>{"visible"in nt&&an(nt.visible)},[nt.visible]);const Ze=(0,_e.o2)(Ke),vt=(0,_e.yT)(Ke),xt=Ze||vt,nn=Object.assign(Object.assign({backgroundColor:Ke&&!xt?Ke:void 0},zt==null?void 0:zt.style),Fe),Gt=Qe("tag",Xe),[st,ct]=a(Gt),Ge=ye()(Gt,zt==null?void 0:zt.className,{[`${Gt}-${Ke}`]:xt,[`${Gt}-has-color`]:Ke&&!xt,[`${Gt}-hidden`]:!yt,[`${Gt}-rtl`]:Pt==="rtl",[`${Gt}-borderless`]:!kt},pt,we,ct),Ne=ke=>{ke.stopPropagation(),ht==null||ht(ke),!ke.defaultPrevented&&an(!1)},[,qe]=(0,fe.Z)(Lt,_t,ke=>ke===null?ee.createElement(ge.Z,{className:`${Gt}-close-icon`,onClick:Ne}):ee.createElement("span",{className:`${Gt}-close-icon`,onClick:Ne},ke),null,!1),Ct=typeof nt.onClick=="function"||He&&He.type==="a",Oe=it||null,Ie=Oe?ee.createElement(ee.Fragment,null,Oe,He&&ee.createElement("span",null,He)):He,We=ee.createElement("span",Object.assign({},nt,{ref:mt,className:Ge,style:nn}),Ie,qe,Ze&&ee.createElement(re,{key:"preset",prefixCls:Gt}),vt&&ee.createElement(pe,{key:"status",prefixCls:Gt}));return st(Ct?ee.createElement(ie.Z,{component:"Tag"},We):We)},Ee=ee.forwardRef(Le);Ee.CheckableTag=b;var je=Ee},17574:function(ft,Ve,te){"use strict";te.d(Ve,{default:function(){return Ke}});var ee=te(23130),ge=te(26407),be=te(52671),ye=te(8657),_e=te(92413),fe=te(59301),ie={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"},de=ie,le=te(7657),me=function(_t,Lt){return fe.createElement(le.Z,(0,_e.Z)({},_t,{ref:Lt,icon:de}))},ae=fe.forwardRef(me),he=ae,oe=te(92310),ne=te.n(oe),a=te(35654),y=te(71430),E=te(36355),b=te(56082),x=te(62892),z=te(20648);const re=4;function se(ht){const{dropPosition:_t,dropLevelOffset:Lt,prefixCls:kt,indent:nt,direction:Qe="ltr"}=ht,Pt=Qe==="ltr"?"left":"right",zt=Qe==="ltr"?"right":"left",yt={[Pt]:-Lt*nt+re,[zt]:0};switch(_t){case-1:yt.top=-3;break;case 1:yt.bottom=-3;break;default:yt.bottom=-3,yt[Pt]=nt+re;break}return fe.createElement("div",{style:yt,className:`${kt}-drop-indicator`})}var ce=te(71997),Se=fe.forwardRef((ht,_t)=>{const{getPrefixCls:Lt,direction:kt,virtual:nt,tree:Qe}=fe.useContext(E.E_),{prefixCls:Pt,className:zt,showIcon:yt=!1,showLine:an,switcherIcon:Ze,blockNode:vt=!1,children:xt,checkable:nn=!1,selectable:Gt=!0,draggable:st,motion:ct,style:Ge}=ht,Ne=Lt("tree",Pt),qe=Lt(),Ct=ct!=null?ct:Object.assign(Object.assign({},(0,x.Z)(qe)),{motionAppear:!1}),Oe=Object.assign(Object.assign({},ht),{checkable:nn,selectable:Gt,showIcon:yt,motion:Ct,blockNode:vt,showLine:!!an,dropIndicatorRender:se}),[Ie,We]=(0,z.ZP)(Ne),ke=fe.useMemo(()=>{if(!st)return!1;let at={};switch(typeof st){case"function":at.nodeDraggable=st;break;case"object":at=Object.assign({},st);break;default:break}return at.icon!==!1&&(at.icon=at.icon||fe.createElement(b.Z,null)),at},[st]),ze=at=>fe.createElement(ce.Z,{prefixCls:Ne,switcherIcon:Ze,treeNodeProps:at,showLine:an});return Ie(fe.createElement(ee.Z,Object.assign({itemHeight:20,ref:_t,virtual:nt},Oe,{style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Ge),prefixCls:Ne,className:ne()({[`${Ne}-icon-hide`]:!yt,[`${Ne}-block-node`]:vt,[`${Ne}-unselectable`]:!Gt,[`${Ne}-rtl`]:kt==="rtl"},Qe==null?void 0:Qe.className,zt,We),direction:kt,checkable:nn&&fe.createElement("span",{className:`${Ne}-checkbox-inner`}),selectable:Gt,switcherIcon:ze,draggable:ke}),xt))}),Le;(function(ht){ht[ht.None=0]="None",ht[ht.Start=1]="Start",ht[ht.End=2]="End"})(Le||(Le={}));function Ee(ht,_t){function Lt(kt){const{key:nt,children:Qe}=kt;_t(nt,kt)!==!1&&Ee(Qe||[],_t)}ht.forEach(Lt)}function je(ht){let{treeData:_t,expandedKeys:Lt,startKey:kt,endKey:nt}=ht;const Qe=[];let Pt=Le.None;if(kt&&kt===nt)return[kt];if(!kt||!nt)return[];function zt(yt){return yt===kt||yt===nt}return Ee(_t,yt=>{if(Pt===Le.End)return!1;if(zt(yt)){if(Qe.push(yt),Pt===Le.None)Pt=Le.Start;else if(Pt===Le.Start)return Pt=Le.End,!1}else Pt===Le.Start&&Qe.push(yt);return Lt.includes(yt)}),Qe}function Me(ht,_t){const Lt=(0,ge.Z)(_t),kt=[];return Ee(ht,(nt,Qe)=>{const Pt=Lt.indexOf(nt);return Pt!==-1&&(kt.push(Qe),Lt.splice(Pt,1)),!!Lt.length}),kt}var mt=function(ht,_t){var Lt={};for(var kt in ht)Object.prototype.hasOwnProperty.call(ht,kt)&&_t.indexOf(kt)<0&&(Lt[kt]=ht[kt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,kt=Object.getOwnPropertySymbols(ht);nt<kt.length;nt++)_t.indexOf(kt[nt])<0&&Object.prototype.propertyIsEnumerable.call(ht,kt[nt])&&(Lt[kt[nt]]=ht[kt[nt]]);return Lt};function Xe(ht){const{isLeaf:_t,expanded:Lt}=ht;return _t?fe.createElement(be.Z,null):Lt?fe.createElement(ye.Z,null):fe.createElement(he,null)}function pt(ht){let{treeData:_t,children:Lt}=ht;return _t||(0,y.zn)(Lt)}const we=(ht,_t)=>{var{defaultExpandAll:Lt,defaultExpandParent:kt,defaultExpandedKeys:nt}=ht,Qe=mt(ht,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Pt=fe.useRef(),zt=fe.useRef(),yt=()=>{const{keyEntities:ke}=(0,y.I8)(pt(Qe));let ze;return Lt?ze=Object.keys(ke):kt?ze=(0,a.r7)(Qe.expandedKeys||nt||[],ke):ze=Qe.expandedKeys||nt,ze},[an,Ze]=fe.useState(Qe.selectedKeys||Qe.defaultSelectedKeys||[]),[vt,xt]=fe.useState(()=>yt());fe.useEffect(()=>{"selectedKeys"in Qe&&Ze(Qe.selectedKeys)},[Qe.selectedKeys]),fe.useEffect(()=>{"expandedKeys"in Qe&&xt(Qe.expandedKeys)},[Qe.expandedKeys]);const nn=(ke,ze)=>{var at;return"expandedKeys"in Qe||xt(ke),(at=Qe.onExpand)===null||at===void 0?void 0:at.call(Qe,ke,ze)},Gt=(ke,ze)=>{var at;const{multiple:Ot}=Qe,{node:Mt,nativeEvent:jt}=ze,{key:Dt=""}=Mt,Ht=pt(Qe),bt=Object.assign(Object.assign({},ze),{selected:!0}),fn=(jt==null?void 0:jt.ctrlKey)||(jt==null?void 0:jt.metaKey),un=jt==null?void 0:jt.shiftKey;let Et;Ot&&fn?(Et=ke,Pt.current=Dt,zt.current=Et,bt.selectedNodes=Me(Ht,Et)):Ot&&un?(Et=Array.from(new Set([].concat((0,ge.Z)(zt.current||[]),(0,ge.Z)(je({treeData:Ht,expandedKeys:vt,startKey:Dt,endKey:Pt.current}))))),bt.selectedNodes=Me(Ht,Et)):(Et=[Dt],Pt.current=Dt,zt.current=Et,bt.selectedNodes=Me(Ht,Et)),(at=Qe.onSelect)===null||at===void 0||at.call(Qe,Et,bt),"selectedKeys"in Qe||Ze(Et)},{getPrefixCls:st,direction:ct}=fe.useContext(E.E_),{prefixCls:Ge,className:Ne,showIcon:qe=!0,expandAction:Ct="click"}=Qe,Oe=mt(Qe,["prefixCls","className","showIcon","expandAction"]),Ie=st("tree",Ge),We=ne()(`${Ie}-directory`,{[`${Ie}-directory-rtl`]:ct==="rtl"},Ne);return fe.createElement(Se,Object.assign({icon:Xe,ref:_t,blockNode:!0},Oe,{showIcon:qe,expandAction:Ct,prefixCls:Ie,className:We,expandedKeys:vt,selectedKeys:an,onSelect:Gt,onExpand:nn}))};var He=fe.forwardRef(we);const it=Se;it.DirectoryTree=He,it.TreeNode=ee.O;var Ke=it},20648:function(ft,Ve,te){"use strict";te.d(Ve,{TM:function(){return oe},Yk:function(){return he}});var ee=te(93083),ge=te(98447),be=te(17313),ye=te(8378),_e=te(37613),fe=te(83116);const ie=new ee.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),de=(ne,a)=>({[`.${ne}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${a.motionDurationSlow}`}}}),le=(ne,a)=>({[`.${ne}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:a.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${a.lineWidthBold}px solid ${a.colorPrimary}`,borderRadius:"50%",content:'""'}}}),me=(ne,a)=>{const{treeCls:y,treeNodeCls:E,treeNodePadding:b,titleHeight:x,nodeSelectedBg:z,nodeHoverBg:re}=a,se=a.paddingXS;return{[y]:Object.assign(Object.assign({},(0,be.Wf)(a)),{background:a.colorBgContainer,borderRadius:a.borderRadius,transition:`background-color ${a.motionDurationSlow}`,[`&${y}-rtl`]:{[`${y}-switcher`]:{"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${y}-active-focused)`]:Object.assign({},(0,be.oN)(a)),[`${y}-list-holder-inner`]:{alignItems:"flex-start"},[`&${y}-block-node`]:{[`${y}-list-holder-inner`]:{alignItems:"stretch",[`${y}-node-content-wrapper`]:{flex:"auto"},[`${E}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:b,insetInlineStart:0,border:`1px solid ${a.colorPrimary}`,opacity:0,animationName:ie,animationDuration:a.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":{[`${y}-node-content-wrapper`]:{color:a.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${y}-node-content-wrapper`]:Object.assign({},(0,be.oN)(a)),[`&:not(${E}-disabled).filter-node ${y}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${y}-draggable-icon`]:{flexShrink:0,width:x,lineHeight:`${x}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${a.motionDurationSlow}`,[`${E}:hover &`]:{opacity:.45}},[`&${E}-disabled`]:{[`${y}-draggable-icon`]:{visibility:"hidden"}}}},[`${y}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:x}},[`${y}-draggable-icon`]:{visibility:"hidden"},[`${y}-switcher`]:Object.assign(Object.assign({},de(ne,a)),{position:"relative",flex:"none",alignSelf:"stretch",width:x,margin:0,lineHeight:`${x}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${y}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:a.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 ${a.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:x/2*.8,height:x/2,borderBottom:`1px solid ${a.colorBorder}`,content:'""'}}}),[`${y}-checkbox`]:{top:"initial",marginInlineEnd:se},[`${y}-node-content-wrapper, ${y}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:x,margin:0,padding:`0 ${a.paddingXS/2}px`,color:"inherit",lineHeight:`${x}px`,background:"transparent",borderRadius:a.borderRadius,cursor:"pointer",transition:`all ${a.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:re},[`&${y}-node-selected`]:{backgroundColor:z},[`${y}-iconEle`]:{display:"inline-block",width:x,height:x,lineHeight:`${x}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${y}-unselectable ${y}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${y}-node-content-wrapper`]:Object.assign({lineHeight:`${x}px`,userSelect:"none"},le(ne,a)),[`${E}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${a.colorPrimary}`}},"&-show-line":{[`${y}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:x/2,bottom:-b,borderInlineEnd:`1px solid ${a.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${y}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${E}-leaf-last`]:{[`${y}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${x/2}px !important`}}}}})}},ae=ne=>{const{treeCls:a,treeNodeCls:y,treeNodePadding:E,directoryNodeSelectedBg:b,directoryNodeSelectedColor:x}=ne;return{[`${a}${a}-directory`]:{[y]:{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},[`${a}-switcher`]:{transition:`color ${ne.motionDurationMid}`},[`${a}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${a}-node-selected`]:{color:x,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:b},[`${a}-switcher`]:{color:x},[`${a}-node-content-wrapper`]:{color:x,background:"transparent"}}}}}},he=(ne,a)=>{const y=`.${ne}`,E=`${y}-treenode`,b=a.paddingXS/2,x=(0,_e.TS)(a,{treeCls:y,treeNodeCls:E,treeNodePadding:b});return[me(ne,x),ae(x)]},oe=ne=>{const{controlHeightSM:a}=ne;return{titleHeight:a,nodeHoverBg:ne.controlItemBgHover,nodeSelectedBg:ne.controlItemBgActive}};Ve.ZP=(0,fe.Z)("Tree",(ne,a)=>{let{prefixCls:y}=a;return[{[ne.componentCls]:(0,ge.C2)(`${y}-checkbox`,ne)},he(y,ne),(0,ye.Z)(ne)]},ne=>{const{colorTextLightSolid:a,colorPrimary:y}=ne;return Object.assign(Object.assign({},oe(ne)),{directoryNodeSelectedColor:a,directoryNodeSelectedBg:y})})},71997:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return E}});var ee=te(92413),ge=te(59301),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"},ye=be,_e=te(7657),fe=function(x,z){return ge.createElement(_e.Z,(0,ee.Z)({},x,{ref:z,icon:ye}))},ie=ge.forwardRef(fe),de=ie,le=te(52671),me=te(58617),ae=te(15075),he=te(43531),oe=te(92310),ne=te.n(oe),a=te(92343),E=b=>{const{prefixCls:x,switcherIcon:z,treeNodeProps:re,showLine:se}=b,{isLeaf:ce,expanded:pe,loading:Se}=re;if(Se)return ge.createElement(me.Z,{className:`${x}-switcher-loading-icon`});let Le;if(se&&typeof se=="object"&&(Le=se.showLeafIcon),ce){if(!se)return null;if(typeof Le!="boolean"&&Le){const Me=typeof Le=="function"?Le(re):Le,mt=`${x}-switcher-line-custom-icon`;return(0,a.l$)(Me)?(0,a.Tm)(Me,{className:ne()(Me.props.className||"",mt)}):Me}return Le?ge.createElement(le.Z,{className:`${x}-switcher-line-icon`}):ge.createElement("span",{className:`${x}-switcher-leaf-line`})}const Ee=`${x}-switcher-icon`,je=typeof z=="function"?z(re):z;return(0,a.l$)(je)?(0,a.Tm)(je,{className:ne()(je.props.className||"",Ee)}):je!==void 0?je:se?pe?ge.createElement(ae.Z,{className:`${x}-switcher-line-icon`}):ge.createElement(he.Z,{className:`${x}-switcher-line-icon`}):ge.createElement(de,{className:Ee})}},3867:function(ft,Ve,te){var ee=te(97671);(function(ge,be){ft.exports=be()})(this,function(){"use strict";function ge(Oe){var Ie=typeof Oe;return Oe!==null&&(Ie==="object"||Ie==="function")}function be(Oe){return typeof Oe=="function"}var ye=void 0;Array.isArray?ye=Array.isArray:ye=function(Oe){return Object.prototype.toString.call(Oe)==="[object Array]"};var _e=ye,fe=0,ie=void 0,de=void 0,le=function(Ie,We){se[fe]=Ie,se[fe+1]=We,fe+=2,fe===2&&(de?de(ce):Se())};function me(Oe){de=Oe}function ae(Oe){le=Oe}var he=typeof window!="undefined"?window:void 0,oe=he||{},ne=oe.MutationObserver||oe.WebKitMutationObserver,a=typeof self=="undefined"&&typeof ee!="undefined"&&{}.toString.call(ee)==="[object process]",y=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return ee.nextTick(ce)}}function b(){return typeof ie!="undefined"?function(){ie(ce)}:re()}function x(){var Oe=0,Ie=new ne(ce),We=document.createTextNode("");return Ie.observe(We,{characterData:!0}),function(){We.data=Oe=++Oe%2}}function z(){var Oe=new MessageChannel;return Oe.port1.onmessage=ce,function(){return Oe.port2.postMessage(0)}}function re(){var Oe=setTimeout;return function(){return Oe(ce,1)}}var se=new Array(1e3);function ce(){for(var Oe=0;Oe<fe;Oe+=2){var Ie=se[Oe],We=se[Oe+1];Ie(We),se[Oe]=void 0,se[Oe+1]=void 0}fe=0}function pe(){try{var Oe=Function("return this")().require("vertx");return ie=Oe.runOnLoop||Oe.runOnContext,b()}catch(Ie){return re()}}var Se=void 0;a?Se=E():ne?Se=x():y?Se=z():he===void 0?Se=pe():Se=re();function Le(Oe,Ie){var We=this,ke=new this.constructor(Me);ke[je]===void 0&&vt(ke);var ze=We._state;if(ze){var at=arguments[ze-1];le(function(){return zt(ze,ke,at,We._result)})}else Qe(We,ke,Oe,Ie);return ke}function Ee(Oe){var Ie=this;if(Oe&&typeof Oe=="object"&&Oe.constructor===Ie)return Oe;var We=new Ie(Me);return _t(We,Oe),We}var je=Math.random().toString(36).substring(2);function Me(){}var mt=void 0,Xe=1,pt=2;function we(){return new TypeError("You cannot resolve a promise with itself")}function Fe(){return new TypeError("A promises callback cannot return that same promise.")}function He(Oe,Ie,We,ke){try{Oe.call(Ie,We,ke)}catch(ze){return ze}}function it(Oe,Ie,We){le(function(ke){var ze=!1,at=He(We,Ie,function(Ot){ze||(ze=!0,Ie!==Ot?_t(ke,Ot):kt(ke,Ot))},function(Ot){ze||(ze=!0,nt(ke,Ot))},"Settle: "+(ke._label||" unknown promise"));!ze&&at&&(ze=!0,nt(ke,at))},Oe)}function Ke(Oe,Ie){Ie._state===Xe?kt(Oe,Ie._result):Ie._state===pt?nt(Oe,Ie._result):Qe(Ie,void 0,function(We){return _t(Oe,We)},function(We){return nt(Oe,We)})}function ht(Oe,Ie,We){Ie.constructor===Oe.constructor&&We===Le&&Ie.constructor.resolve===Ee?Ke(Oe,Ie):We===void 0?kt(Oe,Ie):be(We)?it(Oe,Ie,We):kt(Oe,Ie)}function _t(Oe,Ie){if(Oe===Ie)nt(Oe,we());else if(ge(Ie)){var We=void 0;try{We=Ie.then}catch(ke){nt(Oe,ke);return}ht(Oe,Ie,We)}else kt(Oe,Ie)}function Lt(Oe){Oe._onerror&&Oe._onerror(Oe._result),Pt(Oe)}function kt(Oe,Ie){Oe._state===mt&&(Oe._result=Ie,Oe._state=Xe,Oe._subscribers.length!==0&&le(Pt,Oe))}function nt(Oe,Ie){Oe._state===mt&&(Oe._state=pt,Oe._result=Ie,le(Lt,Oe))}function Qe(Oe,Ie,We,ke){var ze=Oe._subscribers,at=ze.length;Oe._onerror=null,ze[at]=Ie,ze[at+Xe]=We,ze[at+pt]=ke,at===0&&Oe._state&&le(Pt,Oe)}function Pt(Oe){var Ie=Oe._subscribers,We=Oe._state;if(Ie.length!==0){for(var ke=void 0,ze=void 0,at=Oe._result,Ot=0;Ot<Ie.length;Ot+=3)ke=Ie[Ot],ze=Ie[Ot+We],ke?zt(We,ke,ze,at):ze(at);Oe._subscribers.length=0}}function zt(Oe,Ie,We,ke){var ze=be(We),at=void 0,Ot=void 0,Mt=!0;if(ze){try{at=We(ke)}catch(jt){Mt=!1,Ot=jt}if(Ie===at){nt(Ie,Fe());return}}else at=ke;Ie._state!==mt||(ze&&Mt?_t(Ie,at):Mt===!1?nt(Ie,Ot):Oe===Xe?kt(Ie,at):Oe===pt&&nt(Ie,at))}function yt(Oe,Ie){try{Ie(function(ke){_t(Oe,ke)},function(ke){nt(Oe,ke)})}catch(We){nt(Oe,We)}}var an=0;function Ze(){return an++}function vt(Oe){Oe[je]=an++,Oe._state=void 0,Oe._result=void 0,Oe._subscribers=[]}function xt(){return new Error("Array Methods must be provided an Array")}var nn=function(){function Oe(Ie,We){this._instanceConstructor=Ie,this.promise=new Ie(Me),this.promise[je]||vt(this.promise),_e(We)?(this.length=We.length,this._remaining=We.length,this._result=new Array(this.length),this.length===0?kt(this.promise,this._result):(this.length=this.length||0,this._enumerate(We),this._remaining===0&&kt(this.promise,this._result))):nt(this.promise,xt())}return Oe.prototype._enumerate=function(We){for(var ke=0;this._state===mt&&ke<We.length;ke++)this._eachEntry(We[ke],ke)},Oe.prototype._eachEntry=function(We,ke){var ze=this._instanceConstructor,at=ze.resolve;if(at===Ee){var Ot=void 0,Mt=void 0,jt=!1;try{Ot=We.then}catch(Ht){jt=!0,Mt=Ht}if(Ot===Le&&We._state!==mt)this._settledAt(We._state,ke,We._result);else if(typeof Ot!="function")this._remaining--,this._result[ke]=We;else if(ze===qe){var Dt=new ze(Me);jt?nt(Dt,Mt):ht(Dt,We,Ot),this._willSettleAt(Dt,ke)}else this._willSettleAt(new ze(function(Ht){return Ht(We)}),ke)}else this._willSettleAt(at(We),ke)},Oe.prototype._settledAt=function(We,ke,ze){var at=this.promise;at._state===mt&&(this._remaining--,We===pt?nt(at,ze):this._result[ke]=ze),this._remaining===0&&kt(at,this._result)},Oe.prototype._willSettleAt=function(We,ke){var ze=this;Qe(We,void 0,function(at){return ze._settledAt(Xe,ke,at)},function(at){return ze._settledAt(pt,ke,at)})},Oe}();function Gt(Oe){return new nn(this,Oe).promise}function st(Oe){var Ie=this;return _e(Oe)?new Ie(function(We,ke){for(var ze=Oe.length,at=0;at<ze;at++)Ie.resolve(Oe[at]).then(We,ke)}):new Ie(function(We,ke){return ke(new TypeError("You must pass an array to race."))})}function ct(Oe){var Ie=this,We=new Ie(Me);return nt(We,Oe),We}function Ge(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Ne(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var qe=function(){function Oe(Ie){this[je]=Ze(),this._result=this._state=void 0,this._subscribers=[],Me!==Ie&&(typeof Ie!="function"&&Ge(),this instanceof Oe?yt(this,Ie):Ne())}return Oe.prototype.catch=function(We){return this.then(null,We)},Oe.prototype.finally=function(We){var ke=this,ze=ke.constructor;return be(We)?ke.then(function(at){return ze.resolve(We()).then(function(){return at})},function(at){return ze.resolve(We()).then(function(){throw at})}):ke.then(We,We)},Oe}();qe.prototype.then=Le,qe.all=Gt,qe.race=st,qe.resolve=Ee,qe.reject=ct,qe._setScheduler=me,qe._setAsap=ae,qe._asap=le;function Ct(){var Oe=void 0;if(typeof te.g!="undefined")Oe=te.g;else if(typeof self!="undefined")Oe=self;else try{Oe=Function("return this")()}catch(ke){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ie=Oe.Promise;if(Ie){var We=null;try{We=Object.prototype.toString.call(Ie.resolve())}catch(ke){}if(We==="[object Promise]"&&!Ie.cast)return}Oe.Promise=qe}return qe.polyfill=Ct,qe.Promise=qe,qe})},86204:function(ft){"use strict";var Ve=typeof Reflect=="object"?Reflect:null,te=Ve&&typeof Ve.apply=="function"?Ve.apply:function(z,re,se){return Function.prototype.apply.call(z,re,se)},ee;Ve&&typeof Ve.ownKeys=="function"?ee=Ve.ownKeys:Object.getOwnPropertySymbols?ee=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:ee=function(z){return Object.getOwnPropertyNames(z)};function ge(x){console&&console.warn&&console.warn(x)}var be=Number.isNaN||function(z){return z!==z};function ye(){ye.init.call(this)}ft.exports=ye,ft.exports.once=y,ye.EventEmitter=ye,ye.prototype._events=void 0,ye.prototype._eventsCount=0,ye.prototype._maxListeners=void 0;var _e=10;function fe(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(ye,"defaultMaxListeners",{enumerable:!0,get:function(){return _e},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+".");_e=x}}),ye.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},ye.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 ie(x){return x._maxListeners===void 0?ye.defaultMaxListeners:x._maxListeners}ye.prototype.getMaxListeners=function(){return ie(this)},ye.prototype.emit=function(z){for(var re=[],se=1;se<arguments.length;se++)re.push(arguments[se]);var ce=z==="error",pe=this._events;if(pe!==void 0)ce=ce&&pe.error===void 0;else if(!ce)return!1;if(ce){var Se;if(re.length>0&&(Se=re[0]),Se instanceof Error)throw Se;var Le=new Error("Unhandled error."+(Se?" ("+Se.message+")":""));throw Le.context=Se,Le}var Ee=pe[z];if(Ee===void 0)return!1;if(typeof Ee=="function")te(Ee,this,re);else for(var je=Ee.length,Me=oe(Ee,je),se=0;se<je;++se)te(Me[se],this,re);return!0};function de(x,z,re,se){var ce,pe,Se;if(fe(re),pe=x._events,pe===void 0?(pe=x._events=Object.create(null),x._eventsCount=0):(pe.newListener!==void 0&&(x.emit("newListener",z,re.listener?re.listener:re),pe=x._events),Se=pe[z]),Se===void 0)Se=pe[z]=re,++x._eventsCount;else if(typeof Se=="function"?Se=pe[z]=se?[re,Se]:[Se,re]:se?Se.unshift(re):Se.push(re),ce=ie(x),ce>0&&Se.length>ce&&!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,ge(Le)}return x}ye.prototype.addListener=function(z,re){return de(this,z,re,!1)},ye.prototype.on=ye.prototype.addListener,ye.prototype.prependListener=function(z,re){return de(this,z,re,!0)};function le(){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 me(x,z,re){var se={fired:!1,wrapFn:void 0,target:x,type:z,listener:re},ce=le.bind(se);return ce.listener=re,se.wrapFn=ce,ce}ye.prototype.once=function(z,re){return fe(re),this.on(z,me(this,z,re)),this},ye.prototype.prependOnceListener=function(z,re){return fe(re),this.prependListener(z,me(this,z,re)),this},ye.prototype.removeListener=function(z,re){var se,ce,pe,Se,Le;if(fe(re),ce=this._events,ce===void 0)return this;if(se=ce[z],se===void 0)return this;if(se===re||se.listener===re)--this._eventsCount===0?this._events=Object.create(null):(delete ce[z],ce.removeListener&&this.emit("removeListener",z,se.listener||re));else if(typeof se!="function"){for(pe=-1,Se=se.length-1;Se>=0;Se--)if(se[Se]===re||se[Se].listener===re){Le=se[Se].listener,pe=Se;break}if(pe<0)return this;pe===0?se.shift():ne(se,pe),se.length===1&&(ce[z]=se[0]),ce.removeListener!==void 0&&this.emit("removeListener",z,Le||re)}return this},ye.prototype.off=ye.prototype.removeListener,ye.prototype.removeAllListeners=function(z){var re,se,ce;if(se=this._events,se===void 0)return this;if(se.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):se[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete se[z]),this;if(arguments.length===0){var pe=Object.keys(se),Se;for(ce=0;ce<pe.length;++ce)Se=pe[ce],Se!=="removeListener"&&this.removeAllListeners(Se);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(re=se[z],typeof re=="function")this.removeListener(z,re);else if(re!==void 0)for(ce=re.length-1;ce>=0;ce--)this.removeListener(z,re[ce]);return this};function ae(x,z,re){var se=x._events;if(se===void 0)return[];var ce=se[z];return ce===void 0?[]:typeof ce=="function"?re?[ce.listener||ce]:[ce]:re?a(ce):oe(ce,ce.length)}ye.prototype.listeners=function(z){return ae(this,z,!0)},ye.prototype.rawListeners=function(z){return ae(this,z,!1)},ye.listenerCount=function(x,z){return typeof x.listenerCount=="function"?x.listenerCount(z):he.call(x,z)},ye.prototype.listenerCount=he;function he(x){var z=this._events;if(z!==void 0){var re=z[x];if(typeof re=="function")return 1;if(re!==void 0)return re.length}return 0}ye.prototype.eventNames=function(){return this._eventsCount>0?ee(this._events):[]};function oe(x,z){for(var re=new Array(z),se=0;se<z;++se)re[se]=x[se];return re}function ne(x,z){for(;z+1<x.length;z++)x[z]=x[z+1];x.pop()}function a(x){for(var z=new Array(x.length),re=0;re<z.length;++re)z[re]=x[re].listener||x[re];return z}function y(x,z){return new Promise(function(re,se){function ce(Se){x.removeListener(z,pe),se(Se)}function pe(){typeof x.removeListener=="function"&&x.removeListener("error",ce),re([].slice.call(arguments))}b(x,z,pe,{once:!0}),z!=="error"&&E(x,ce,{once:!0})})}function E(x,z,re){typeof x.on=="function"&&b(x,"error",z,re)}function b(x,z,re,se){if(typeof x.on=="function")se.once?x.once(z,re):x.on(z,re);else if(typeof x.addEventListener=="function")x.addEventListener(z,function ce(pe){se.once&&x.removeEventListener(z,ce),re(pe)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}},24334:function(ft,Ve,te){var ee,ge;(function(be,ye){ft.exports=ye(be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof te.g!="undefined"?te.g:this,function(be){"use strict";be=be||{};var ye=be.Base64,_e="2.6.4",fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ie=function(Xe){for(var pt={},we=0,Fe=Xe.length;we<Fe;we++)pt[Xe.charAt(we)]=we;return pt}(fe),de=String.fromCharCode,le=function(Xe){if(Xe.length<2){var pt=Xe.charCodeAt(0);return pt<128?Xe:pt<2048?de(192|pt>>>6)+de(128|pt&63):de(224|pt>>>12&15)+de(128|pt>>>6&63)+de(128|pt&63)}else{var pt=65536+(Xe.charCodeAt(0)-55296)*1024+(Xe.charCodeAt(1)-56320);return de(240|pt>>>18&7)+de(128|pt>>>12&63)+de(128|pt>>>6&63)+de(128|pt&63)}},me=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Xe){return Xe.replace(me,le)},he=function(Xe){var pt=[0,2,1][Xe.length%3],we=Xe.charCodeAt(0)<<16|(Xe.length>1?Xe.charCodeAt(1):0)<<8|(Xe.length>2?Xe.charCodeAt(2):0),Fe=[fe.charAt(we>>>18),fe.charAt(we>>>12&63),pt>=2?"=":fe.charAt(we>>>6&63),pt>=1?"=":fe.charAt(we&63)];return Fe.join("")},oe=be.btoa&&typeof be.btoa=="function"?function(Xe){return be.btoa(Xe)}:function(Xe){if(Xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Xe.replace(/[\s\S]{1,3}/g,he)},ne=function(Xe){return oe(ae(String(Xe)))},a=function(Xe){return Xe.replace(/[+\/]/g,function(pt){return pt=="+"?"-":"_"}).replace(/=/g,"")},y=function(Xe,pt){return pt?a(ne(Xe)):ne(Xe)},E=function(Xe){return y(Xe,!0)},b;be.Uint8Array&&(b=function(Xe,pt){for(var we="",Fe=0,He=Xe.length;Fe<He;Fe+=3){var it=Xe[Fe],Ke=Xe[Fe+1],ht=Xe[Fe+2],_t=it<<16|Ke<<8|ht;we+=fe.charAt(_t>>>18)+fe.charAt(_t>>>12&63)+(typeof Ke!="undefined"?fe.charAt(_t>>>6&63):"=")+(typeof ht!="undefined"?fe.charAt(_t&63):"=")}return pt?a(we):we});var x=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,z=function(Xe){switch(Xe.length){case 4:var pt=(7&Xe.charCodeAt(0))<<18|(63&Xe.charCodeAt(1))<<12|(63&Xe.charCodeAt(2))<<6|63&Xe.charCodeAt(3),we=pt-65536;return de((we>>>10)+55296)+de((we&1023)+56320);case 3:return de((15&Xe.charCodeAt(0))<<12|(63&Xe.charCodeAt(1))<<6|63&Xe.charCodeAt(2));default:return de((31&Xe.charCodeAt(0))<<6|63&Xe.charCodeAt(1))}},re=function(Xe){return Xe.replace(x,z)},se=function(Xe){var pt=Xe.length,we=pt%4,Fe=(pt>0?ie[Xe.charAt(0)]<<18:0)|(pt>1?ie[Xe.charAt(1)]<<12:0)|(pt>2?ie[Xe.charAt(2)]<<6:0)|(pt>3?ie[Xe.charAt(3)]:0),He=[de(Fe>>>16),de(Fe>>>8&255),de(Fe&255)];return He.length-=[0,0,2,1][we],He.join("")},ce=be.atob&&typeof be.atob=="function"?function(Xe){return be.atob(Xe)}:function(Xe){return Xe.replace(/\S{1,4}/g,se)},pe=function(Xe){return ce(String(Xe).replace(/[^A-Za-z0-9\+\/]/g,""))},Se=function(Xe){return re(ce(Xe))},Le=function(Xe){return String(Xe).replace(/[-_]/g,function(pt){return pt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(Xe){return Se(Le(Xe))},je;be.Uint8Array&&(je=function(Xe){return Uint8Array.from(pe(Le(Xe)),function(pt){return pt.charCodeAt(0)})});var Me=function(){var Xe=be.Base64;return be.Base64=ye,Xe};if(be.Base64={VERSION:_e,atob:pe,btoa:oe,fromBase64:Ee,toBase64:y,utob:ae,encode:y,encodeURI:E,btou:re,decode:Ee,noConflict:Me,fromUint8Array:b,toUint8Array:je},typeof Object.defineProperty=="function"){var mt=function(Xe){return{value:Xe,enumerable:!1,writable:!0,configurable:!0}};be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",mt(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",mt(function(Xe){return y(this,Xe)})),Object.defineProperty(String.prototype,"toBase64URI",mt(function(){return y(this,!0)}))}}return be.Meteor&&(Base64=be.Base64),ft.exports?ft.exports.Base64=be.Base64:(ee=[],ge=function(){return be.Base64}.apply(Ve,ee),ge!==void 0&&(ft.exports=ge)),{Base64:be.Base64}})},39417:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return Se}});var ee=te(92413),ge=te(400),be=te(37061),ye=te(33708),_e=te(6909),fe=te(4771),ie=te(25314),de=te(9427),le=te(25440),me=te(92310),ae=te.n(me),he=te(26112),oe=te(59301),ne=te(39378),a=function(Ee){for(var je=Ee.prefixCls,Me=Ee.level,mt=Ee.isStart,Xe=Ee.isEnd,pt="".concat(je,"-indent-unit"),we=[],Fe=0;Fe<Me;Fe+=1){var He;we.push(oe.createElement("span",{key:Fe,className:ae()(pt,(He={},(0,ge.Z)(He,"".concat(pt,"-start"),mt[Fe]),(0,ge.Z)(He,"".concat(pt,"-end"),Xe[Fe]),He))}))}return oe.createElement("span",{"aria-hidden":"true",className:"".concat(je,"-indent")},we)},y=oe.memo(a),E=te(67841),b=te(71430),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],z="open",re="close",se="---",ce=function(Le){(0,de.Z)(je,Le);var Ee=(0,le.Z)(je);function je(){var Me;(0,_e.Z)(this,je);for(var mt=arguments.length,Xe=new Array(mt),pt=0;pt<mt;pt++)Xe[pt]=arguments[pt];return Me=Ee.call.apply(Ee,[this].concat(Xe)),Me.state={dragNodeHighlight:!1},Me.selectHandle=void 0,Me.cacheIndent=void 0,Me.onSelectorClick=function(we){var Fe=Me.props.context.onNodeClick;Fe(we,(0,b.F)(Me.props)),Me.isSelectable()?Me.onSelect(we):Me.onCheck(we)},Me.onSelectorDoubleClick=function(we){var Fe=Me.props.context.onNodeDoubleClick;Fe(we,(0,b.F)(Me.props))},Me.onSelect=function(we){if(!Me.isDisabled()){var Fe=Me.props.context.onNodeSelect;Fe(we,(0,b.F)(Me.props))}},Me.onCheck=function(we){if(!Me.isDisabled()){var Fe=Me.props,He=Fe.disableCheckbox,it=Fe.checked,Ke=Me.props.context.onNodeCheck;if(!(!Me.isCheckable()||He)){var ht=!it;Ke(we,(0,b.F)(Me.props),ht)}}},Me.onMouseEnter=function(we){var Fe=Me.props.context.onNodeMouseEnter;Fe(we,(0,b.F)(Me.props))},Me.onMouseLeave=function(we){var Fe=Me.props.context.onNodeMouseLeave;Fe(we,(0,b.F)(Me.props))},Me.onContextMenu=function(we){var Fe=Me.props.context.onNodeContextMenu;Fe(we,(0,b.F)(Me.props))},Me.onDragStart=function(we){var Fe=Me.props.context.onNodeDragStart;we.stopPropagation(),Me.setState({dragNodeHighlight:!0}),Fe(we,(0,ie.Z)(Me));try{we.dataTransfer.setData("text/plain","")}catch(He){}},Me.onDragEnter=function(we){var Fe=Me.props.context.onNodeDragEnter;we.preventDefault(),we.stopPropagation(),Fe(we,(0,ie.Z)(Me))},Me.onDragOver=function(we){var Fe=Me.props.context.onNodeDragOver;we.preventDefault(),we.stopPropagation(),Fe(we,(0,ie.Z)(Me))},Me.onDragLeave=function(we){var Fe=Me.props.context.onNodeDragLeave;we.stopPropagation(),Fe(we,(0,ie.Z)(Me))},Me.onDragEnd=function(we){var Fe=Me.props.context.onNodeDragEnd;we.stopPropagation(),Me.setState({dragNodeHighlight:!1}),Fe(we,(0,ie.Z)(Me))},Me.onDrop=function(we){var Fe=Me.props.context.onNodeDrop;we.preventDefault(),we.stopPropagation(),Me.setState({dragNodeHighlight:!1}),Fe(we,(0,ie.Z)(Me))},Me.onExpand=function(we){var Fe=Me.props,He=Fe.loading,it=Fe.context.onNodeExpand;He||it(we,(0,b.F)(Me.props))},Me.setSelectHandle=function(we){Me.selectHandle=we},Me.getNodeState=function(){var we=Me.props.expanded;return Me.isLeaf()?null:we?z:re},Me.hasChildren=function(){var we=Me.props.eventKey,Fe=Me.props.context.keyEntities,He=(0,E.Z)(Fe,we)||{},it=He.children;return!!(it||[]).length},Me.isLeaf=function(){var we=Me.props,Fe=we.isLeaf,He=we.loaded,it=Me.props.context.loadData,Ke=Me.hasChildren();return Fe===!1?!1:Fe||!it&&!Ke||it&&He&&!Ke},Me.isDisabled=function(){var we=Me.props.disabled,Fe=Me.props.context.disabled;return!!(Fe||we)},Me.isCheckable=function(){var we=Me.props.checkable,Fe=Me.props.context.checkable;return!Fe||we===!1?!1:Fe},Me.syncLoadData=function(we){var Fe=we.expanded,He=we.loading,it=we.loaded,Ke=Me.props.context,ht=Ke.loadData,_t=Ke.onNodeLoad;He||ht&&Fe&&!Me.isLeaf()&&!Me.hasChildren()&&!it&&_t((0,b.F)(Me.props))},Me.isDraggable=function(){var we=Me.props,Fe=we.data,He=we.context.draggable;return!!(He&&(!He.nodeDraggable||He.nodeDraggable(Fe)))},Me.renderDragHandler=function(){var we=Me.props.context,Fe=we.draggable,He=we.prefixCls;return Fe!=null&&Fe.icon?oe.createElement("span",{className:"".concat(He,"-draggable-icon")},Fe.icon):null},Me.renderSwitcherIconDom=function(we){var Fe=Me.props.switcherIcon,He=Me.props.context.switcherIcon,it=Fe||He;return typeof it=="function"?it((0,ye.Z)((0,ye.Z)({},Me.props),{},{isLeaf:we})):it},Me.renderSwitcher=function(){var we=Me.props.expanded,Fe=Me.props.context.prefixCls;if(Me.isLeaf()){var He=Me.renderSwitcherIconDom(!0);return He!==!1?oe.createElement("span",{className:ae()("".concat(Fe,"-switcher"),"".concat(Fe,"-switcher-noop"))},He):null}var it=ae()("".concat(Fe,"-switcher"),"".concat(Fe,"-switcher_").concat(we?z:re)),Ke=Me.renderSwitcherIconDom(!1);return Ke!==!1?oe.createElement("span",{onClick:Me.onExpand,className:it},Ke):null},Me.renderCheckbox=function(){var we=Me.props,Fe=we.checked,He=we.halfChecked,it=we.disableCheckbox,Ke=Me.props.context.prefixCls,ht=Me.isDisabled(),_t=Me.isCheckable();if(!_t)return null;var Lt=typeof _t!="boolean"?_t:null;return oe.createElement("span",{className:ae()("".concat(Ke,"-checkbox"),Fe&&"".concat(Ke,"-checkbox-checked"),!Fe&&He&&"".concat(Ke,"-checkbox-indeterminate"),(ht||it)&&"".concat(Ke,"-checkbox-disabled")),onClick:Me.onCheck},Lt)},Me.renderIcon=function(){var we=Me.props.loading,Fe=Me.props.context.prefixCls;return oe.createElement("span",{className:ae()("".concat(Fe,"-iconEle"),"".concat(Fe,"-icon__").concat(Me.getNodeState()||"docu"),we&&"".concat(Fe,"-icon_loading"))})},Me.renderSelector=function(){var we=Me.state.dragNodeHighlight,Fe=Me.props,He=Fe.title,it=He===void 0?se:He,Ke=Fe.selected,ht=Fe.icon,_t=Fe.loading,Lt=Fe.data,kt=Me.props.context,nt=kt.prefixCls,Qe=kt.showIcon,Pt=kt.icon,zt=kt.loadData,yt=kt.titleRender,an=Me.isDisabled(),Ze="".concat(nt,"-node-content-wrapper"),vt;if(Qe){var xt=ht||Pt;vt=xt?oe.createElement("span",{className:ae()("".concat(nt,"-iconEle"),"".concat(nt,"-icon__customize"))},typeof xt=="function"?xt(Me.props):xt):Me.renderIcon()}else zt&&_t&&(vt=Me.renderIcon());var nn;typeof it=="function"?nn=it(Lt):yt?nn=yt(Lt):nn=it;var Gt=oe.createElement("span",{className:"".concat(nt,"-title")},nn);return oe.createElement("span",{ref:Me.setSelectHandle,title:typeof it=="string"?it:"",className:ae()("".concat(Ze),"".concat(Ze,"-").concat(Me.getNodeState()||"normal"),!an&&(Ke||we)&&"".concat(nt,"-node-selected")),onMouseEnter:Me.onMouseEnter,onMouseLeave:Me.onMouseLeave,onContextMenu:Me.onContextMenu,onClick:Me.onSelectorClick,onDoubleClick:Me.onSelectorDoubleClick},vt,Gt,Me.renderDropIndicator())},Me.renderDropIndicator=function(){var we=Me.props,Fe=we.disabled,He=we.eventKey,it=Me.props.context,Ke=it.draggable,ht=it.dropLevelOffset,_t=it.dropPosition,Lt=it.prefixCls,kt=it.indent,nt=it.dropIndicatorRender,Qe=it.dragOverNodeKey,Pt=it.direction,zt=!!Ke,yt=!Fe&&zt&&Qe===He,an=kt!=null?kt:Me.cacheIndent;return Me.cacheIndent=kt,yt?nt({dropPosition:_t,dropLevelOffset:ht,indent:an,prefixCls:Lt,direction:Pt}):null},Me}return(0,fe.Z)(je,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var mt=this.props.selectable,Xe=this.props.context.selectable;return typeof mt=="boolean"?mt:Xe}},{key:"render",value:function(){var mt,Xe=this.props,pt=Xe.eventKey,we=Xe.className,Fe=Xe.style,He=Xe.dragOver,it=Xe.dragOverGapTop,Ke=Xe.dragOverGapBottom,ht=Xe.isLeaf,_t=Xe.isStart,Lt=Xe.isEnd,kt=Xe.expanded,nt=Xe.selected,Qe=Xe.checked,Pt=Xe.halfChecked,zt=Xe.loading,yt=Xe.domRef,an=Xe.active,Ze=Xe.data,vt=Xe.onMouseMove,xt=Xe.selectable,nn=(0,be.Z)(Xe,x),Gt=this.props.context,st=Gt.prefixCls,ct=Gt.filterTreeNode,Ge=Gt.keyEntities,Ne=Gt.dropContainerKey,qe=Gt.dropTargetKey,Ct=Gt.draggingNodeKey,Oe=this.isDisabled(),Ie=(0,he.Z)(nn,{aria:!0,data:!0}),We=(0,E.Z)(Ge,pt)||{},ke=We.level,ze=Lt[Lt.length-1],at=this.isDraggable(),Ot=!Oe&&at,Mt=Ct===pt,jt=xt!==void 0?{"aria-selected":!!xt}:void 0;return oe.createElement("div",(0,ee.Z)({ref:yt,className:ae()(we,"".concat(st,"-treenode"),(mt={},(0,ge.Z)(mt,"".concat(st,"-treenode-disabled"),Oe),(0,ge.Z)(mt,"".concat(st,"-treenode-switcher-").concat(kt?"open":"close"),!ht),(0,ge.Z)(mt,"".concat(st,"-treenode-checkbox-checked"),Qe),(0,ge.Z)(mt,"".concat(st,"-treenode-checkbox-indeterminate"),Pt),(0,ge.Z)(mt,"".concat(st,"-treenode-selected"),nt),(0,ge.Z)(mt,"".concat(st,"-treenode-loading"),zt),(0,ge.Z)(mt,"".concat(st,"-treenode-active"),an),(0,ge.Z)(mt,"".concat(st,"-treenode-leaf-last"),ze),(0,ge.Z)(mt,"".concat(st,"-treenode-draggable"),at),(0,ge.Z)(mt,"dragging",Mt),(0,ge.Z)(mt,"drop-target",qe===pt),(0,ge.Z)(mt,"drop-container",Ne===pt),(0,ge.Z)(mt,"drag-over",!Oe&&He),(0,ge.Z)(mt,"drag-over-gap-top",!Oe&&it),(0,ge.Z)(mt,"drag-over-gap-bottom",!Oe&&Ke),(0,ge.Z)(mt,"filter-node",ct&&ct((0,b.F)(this.props))),mt)),style:Fe,draggable:Ot,"aria-grabbed":Mt,onDragStart:Ot?this.onDragStart:void 0,onDragEnter:at?this.onDragEnter:void 0,onDragOver:at?this.onDragOver:void 0,onDragLeave:at?this.onDragLeave:void 0,onDrop:at?this.onDrop:void 0,onDragEnd:at?this.onDragEnd:void 0,onMouseMove:vt},jt,Ie),oe.createElement(y,{prefixCls:st,level:ke,isStart:_t,isEnd:Lt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),je}(oe.Component),pe=function(Ee){return oe.createElement(ne.k.Consumer,null,function(je){return oe.createElement(ce,(0,ee.Z)({},Ee,{context:je}))})};pe.displayName="TreeNode",pe.isTreeNode=1;var Se=pe},39378:function(ft,Ve,te){"use strict";te.d(Ve,{k:function(){return ge}});var ee=te(59301),ge=ee.createContext(null)},23130:function(ft,Ve,te){"use strict";te.d(Ve,{O:function(){return Se.Z},Z:function(){return Gt}});var ee=te(92413),ge=te(400),be=te(39559),ye=te(33708),_e=te(26407),fe=te(6909),ie=te(4771),de=te(25314),le=te(9427),me=te(25440),ae=te(92310),he=te.n(ae),oe=te(10228),ne=te(26112),a=te(48736),y=te(59301),E=te(39378);function b(st){var ct=st.dropPosition,Ge=st.dropLevelOffset,Ne=st.indent,qe={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ct){case-1:qe.top=0,qe.left=-Ge*Ne;break;case 1:qe.bottom=0,qe.left=-Ge*Ne;break;case 0:qe.bottom=0,qe.left=Ne;break}return y.createElement("div",{style:qe})}function x(st){if(st==null)throw new TypeError("Cannot destructure "+st)}var z=te(33606),re=te(37061),se=te(34280),ce=te(4409),pe=te(77900),Se=te(39417);function Le(st,ct){var Ge=y.useState(!1),Ne=(0,z.Z)(Ge,2),qe=Ne[0],Ct=Ne[1];y.useLayoutEffect(function(){if(qe)return st(),function(){ct()}},[qe]),y.useLayoutEffect(function(){return Ct(!0),function(){Ct(!1)}},[])}var Ee=te(71430),je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Me=function(ct,Ge){var Ne=ct.className,qe=ct.style,Ct=ct.motion,Oe=ct.motionNodes,Ie=ct.motionType,We=ct.onMotionStart,ke=ct.onMotionEnd,ze=ct.active,at=ct.treeNodeRequiredProps,Ot=(0,re.Z)(ct,je),Mt=y.useState(!0),jt=(0,z.Z)(Mt,2),Dt=jt[0],Ht=jt[1],bt=y.useContext(E.k),fn=bt.prefixCls,un=Oe&&Ie!=="hide";(0,se.Z)(function(){Oe&&un!==Dt&&Ht(un)},[Oe]);var Et=function(){Oe&&We()},Sn=y.useRef(!1),pn=function(){Oe&&!Sn.current&&(Sn.current=!0,ke())};Le(Et,pn);var Fn=function(Kn){un===Kn&&pn()};return Oe?y.createElement(pe.default,(0,ee.Z)({ref:Ge,visible:Dt},Ct,{motionAppear:Ie==="show",onVisibleChanged:Fn}),function(xn,Kn){var er=xn.className,Vn=xn.style;return y.createElement("div",{ref:Kn,className:he()("".concat(fn,"-treenode-motion"),er),style:Vn},Oe.map(function(Yn){var pr=(0,ee.Z)({},(x(Yn.data),Yn.data)),vr=Yn.title,tn=Yn.key,Xn=Yn.isStart,sr=Yn.isEnd;delete pr.children;var Wn=(0,Ee.H8)(tn,at);return y.createElement(Se.Z,(0,ee.Z)({},pr,Wn,{title:vr,active:ze,data:Yn.data,key:tn,isStart:Xn,isEnd:sr}))}))}):y.createElement(Se.Z,(0,ee.Z)({domRef:Ge,className:Ne,style:qe},Ot,{active:ze}))};Me.displayName="MotionTreeNode";var mt=y.forwardRef(Me),Xe=mt;function pt(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ge=st.length,Ne=ct.length;if(Math.abs(Ge-Ne)!==1)return{add:!1,key:null};function qe(Ct,Oe){var Ie=new Map;Ct.forEach(function(ke){Ie.set(ke,!0)});var We=Oe.filter(function(ke){return!Ie.has(ke)});return We.length===1?We[0]:null}return Ge<Ne?{add:!0,key:qe(st,ct)}:{add:!1,key:qe(ct,st)}}function we(st,ct,Ge){var Ne=st.findIndex(function(Ie){return Ie.key===Ge}),qe=st[Ne+1],Ct=ct.findIndex(function(Ie){return Ie.key===Ge});if(qe){var Oe=ct.findIndex(function(Ie){return Ie.key===qe.key});return ct.slice(Ct+1,Oe)}return ct.slice(Ct+1)}var Fe=["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"],He={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},it=function(){},Ke="RC_TREE_MOTION_".concat(Math.random()),ht={key:Ke},_t={key:Ke,level:0,index:0,pos:"0",node:ht,nodes:[ht]},Lt={parent:null,children:[],pos:_t.pos,data:ht,title:null,key:Ke,isStart:[],isEnd:[]};function kt(st,ct,Ge,Ne){return ct===!1||!Ge?st:st.slice(0,Math.ceil(Ge/Ne)+1)}function nt(st){var ct=st.key,Ge=st.pos;return(0,Ee.km)(ct,Ge)}function Qe(st){for(var ct=String(st.data.key),Ge=st;Ge.parent;)Ge=Ge.parent,ct="".concat(Ge.data.key," > ").concat(ct);return ct}var Pt=y.forwardRef(function(st,ct){var Ge=st.prefixCls,Ne=st.data,qe=st.selectable,Ct=st.checkable,Oe=st.expandedKeys,Ie=st.selectedKeys,We=st.checkedKeys,ke=st.loadedKeys,ze=st.loadingKeys,at=st.halfCheckedKeys,Ot=st.keyEntities,Mt=st.disabled,jt=st.dragging,Dt=st.dragOverNodeKey,Ht=st.dropPosition,bt=st.motion,fn=st.height,un=st.itemHeight,Et=st.virtual,Sn=st.focusable,pn=st.activeItem,Fn=st.focused,xn=st.tabIndex,Kn=st.onKeyDown,er=st.onFocus,Vn=st.onBlur,Yn=st.onActiveChange,pr=st.onListChangeStart,vr=st.onListChangeEnd,tn=(0,re.Z)(st,Fe),Xn=y.useRef(null),sr=y.useRef(null);y.useImperativeHandle(ct,function(){return{scrollTo:function(Bt){Xn.current.scrollTo(Bt)},getIndentWidth:function(){return sr.current.offsetWidth}}});var Wn=y.useState(Oe),lr=(0,z.Z)(Wn,2),Ir=lr[0],Rr=lr[1],Er=y.useState(Ne),Nr=(0,z.Z)(Er,2),cr=Nr[0],Yr=Nr[1],$t=y.useState(Ne),ue=(0,z.Z)($t,2),ve=ue[0],Pe=ue[1],xe=y.useState([]),Be=(0,z.Z)(xe,2),ot=Be[0],ut=Be[1],rn=y.useState(null),Zt=(0,z.Z)(rn,2),qt=Zt[0],bn=Zt[1],Rt=y.useRef(Ne);Rt.current=Ne;function $e(){var wt=Rt.current;Yr(wt),Pe(wt),ut([]),bn(null),vr()}(0,se.Z)(function(){Rr(Oe);var wt=pt(Ir,Oe);if(wt.key!==null)if(wt.add){var Bt=cr.findIndex(function(cn){var Ln=cn.key;return Ln===wt.key}),Kt=kt(we(cr,Ne,wt.key),Et,fn,un),Xt=cr.slice();Xt.splice(Bt+1,0,Lt),Pe(Xt),ut(Kt),bn("show")}else{var yn=Ne.findIndex(function(cn){var Ln=cn.key;return Ln===wt.key}),Nn=kt(we(Ne,cr,wt.key),Et,fn,un),Un=Ne.slice();Un.splice(yn+1,0,Lt),Pe(Un),ut(Nn),bn("hide")}else cr!==Ne&&(Yr(Ne),Pe(Ne))},[Oe,Ne]),y.useEffect(function(){jt||$e()},[jt]);var At=bt?ve:Ne,Ft={expandedKeys:Oe,selectedKeys:Ie,loadedKeys:ke,loadingKeys:ze,checkedKeys:We,halfCheckedKeys:at,dragOverNodeKey:Dt,dropPosition:Ht,keyEntities:Ot};return y.createElement(y.Fragment,null,Fn&&pn&&y.createElement("span",{style:He,"aria-live":"assertive"},Qe(pn)),y.createElement("div",null,y.createElement("input",{style:He,disabled:Sn===!1||Mt,tabIndex:Sn!==!1?xn:null,onKeyDown:Kn,onFocus:er,onBlur:Vn,value:"",onChange:it,"aria-label":"for screen reader"})),y.createElement("div",{className:"".concat(Ge,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},y.createElement("div",{className:"".concat(Ge,"-indent")},y.createElement("div",{ref:sr,className:"".concat(Ge,"-indent-unit")}))),y.createElement(ce.Z,(0,ee.Z)({},tn,{data:At,itemKey:nt,height:fn,fullHeight:!1,virtual:Et,itemHeight:un,prefixCls:"".concat(Ge,"-list"),ref:Xn,onVisibleChange:function(Bt,Kt){var Xt=new Set(Bt),yn=Kt.filter(function(Nn){return!Xt.has(Nn)});yn.some(function(Nn){return nt(Nn)===Ke})&&$e()}}),function(wt){var Bt=wt.pos,Kt=(0,ee.Z)({},(x(wt.data),wt.data)),Xt=wt.title,yn=wt.key,Nn=wt.isStart,Un=wt.isEnd,cn=(0,Ee.km)(yn,Bt);delete Kt.key,delete Kt.children;var Ln=(0,Ee.H8)(cn,Ft);return y.createElement(Xe,(0,ee.Z)({},Kt,Ln,{title:Xt,active:!!pn&&yn===pn.key,pos:Bt,data:wt.data,isStart:Nn,isEnd:Un,motion:bt,motionNodes:yn===Ke?ot:null,motionType:qt,onMotionStart:pr,onMotionEnd:$e,treeNodeRequiredProps:Ft,onMouseMove:function(){Yn(null)}}))}))});Pt.displayName="NodeList";var zt=Pt,yt=te(35654),an=te(90782),Ze=te(67841),vt=10,xt=function(st){(0,le.Z)(Ge,st);var ct=(0,me.Z)(Ge);function Ge(){var Ne;(0,fe.Z)(this,Ge);for(var qe=arguments.length,Ct=new Array(qe),Oe=0;Oe<qe;Oe++)Ct[Oe]=arguments[Oe];return Ne=ct.call.apply(ct,[this].concat(Ct)),Ne.destroyed=!1,Ne.delayedDragEnterLogic=void 0,Ne.loadingRetryTimes={},Ne.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,Ee.w$)()},Ne.dragStartMousePosition=null,Ne.dragNode=void 0,Ne.currentMouseOverDroppableNodeKey=null,Ne.listRef=y.createRef(),Ne.onNodeDragStart=function(Ie,We){var ke=Ne.state,ze=ke.expandedKeys,at=ke.keyEntities,Ot=Ne.props.onDragStart,Mt=We.props.eventKey;Ne.dragNode=We,Ne.dragStartMousePosition={x:Ie.clientX,y:Ie.clientY};var jt=(0,yt._5)(ze,Mt);Ne.setState({draggingNodeKey:Mt,dragChildrenKeys:(0,yt.wA)(Mt,at),indent:Ne.listRef.current.getIndentWidth()}),Ne.setExpandedKeys(jt),window.addEventListener("dragend",Ne.onWindowDragEnd),Ot==null||Ot({event:Ie,node:(0,Ee.F)(We.props)})},Ne.onNodeDragEnter=function(Ie,We){var ke=Ne.state,ze=ke.expandedKeys,at=ke.keyEntities,Ot=ke.dragChildrenKeys,Mt=ke.flattenNodes,jt=ke.indent,Dt=Ne.props,Ht=Dt.onDragEnter,bt=Dt.onExpand,fn=Dt.allowDrop,un=Dt.direction,Et=We.props,Sn=Et.pos,pn=Et.eventKey,Fn=(0,de.Z)(Ne),xn=Fn.dragNode;if(Ne.currentMouseOverDroppableNodeKey!==pn&&(Ne.currentMouseOverDroppableNodeKey=pn),!xn){Ne.resetDragState();return}var Kn=(0,yt.OM)(Ie,xn,We,jt,Ne.dragStartMousePosition,fn,Mt,at,ze,un),er=Kn.dropPosition,Vn=Kn.dropLevelOffset,Yn=Kn.dropTargetKey,pr=Kn.dropContainerKey,vr=Kn.dropTargetPos,tn=Kn.dropAllowed,Xn=Kn.dragOverNodeKey;if(Ot.indexOf(Yn)!==-1||!tn){Ne.resetDragState();return}if(Ne.delayedDragEnterLogic||(Ne.delayedDragEnterLogic={}),Object.keys(Ne.delayedDragEnterLogic).forEach(function(sr){clearTimeout(Ne.delayedDragEnterLogic[sr])}),xn.props.eventKey!==We.props.eventKey&&(Ie.persist(),Ne.delayedDragEnterLogic[Sn]=window.setTimeout(function(){if(Ne.state.draggingNodeKey!==null){var sr=(0,_e.Z)(ze),Wn=(0,Ze.Z)(at,We.props.eventKey);Wn&&(Wn.children||[]).length&&(sr=(0,yt.L0)(ze,We.props.eventKey)),"expandedKeys"in Ne.props||Ne.setExpandedKeys(sr),bt==null||bt(sr,{node:(0,Ee.F)(We.props),expanded:!0,nativeEvent:Ie.nativeEvent})}},800)),xn.props.eventKey===Yn&&Vn===0){Ne.resetDragState();return}Ne.setState({dragOverNodeKey:Xn,dropPosition:er,dropLevelOffset:Vn,dropTargetKey:Yn,dropContainerKey:pr,dropTargetPos:vr,dropAllowed:tn}),Ht==null||Ht({event:Ie,node:(0,Ee.F)(We.props),expandedKeys:ze})},Ne.onNodeDragOver=function(Ie,We){var ke=Ne.state,ze=ke.dragChildrenKeys,at=ke.flattenNodes,Ot=ke.keyEntities,Mt=ke.expandedKeys,jt=ke.indent,Dt=Ne.props,Ht=Dt.onDragOver,bt=Dt.allowDrop,fn=Dt.direction,un=(0,de.Z)(Ne),Et=un.dragNode;if(Et){var Sn=(0,yt.OM)(Ie,Et,We,jt,Ne.dragStartMousePosition,bt,at,Ot,Mt,fn),pn=Sn.dropPosition,Fn=Sn.dropLevelOffset,xn=Sn.dropTargetKey,Kn=Sn.dropContainerKey,er=Sn.dropAllowed,Vn=Sn.dropTargetPos,Yn=Sn.dragOverNodeKey;ze.indexOf(xn)!==-1||!er||(Et.props.eventKey===xn&&Fn===0?Ne.state.dropPosition===null&&Ne.state.dropLevelOffset===null&&Ne.state.dropTargetKey===null&&Ne.state.dropContainerKey===null&&Ne.state.dropTargetPos===null&&Ne.state.dropAllowed===!1&&Ne.state.dragOverNodeKey===null||Ne.resetDragState():pn===Ne.state.dropPosition&&Fn===Ne.state.dropLevelOffset&&xn===Ne.state.dropTargetKey&&Kn===Ne.state.dropContainerKey&&Vn===Ne.state.dropTargetPos&&er===Ne.state.dropAllowed&&Yn===Ne.state.dragOverNodeKey||Ne.setState({dropPosition:pn,dropLevelOffset:Fn,dropTargetKey:xn,dropContainerKey:Kn,dropTargetPos:Vn,dropAllowed:er,dragOverNodeKey:Yn}),Ht==null||Ht({event:Ie,node:(0,Ee.F)(We.props)}))}},Ne.onNodeDragLeave=function(Ie,We){Ne.currentMouseOverDroppableNodeKey===We.props.eventKey&&!Ie.currentTarget.contains(Ie.relatedTarget)&&(Ne.resetDragState(),Ne.currentMouseOverDroppableNodeKey=null);var ke=Ne.props.onDragLeave;ke==null||ke({event:Ie,node:(0,Ee.F)(We.props)})},Ne.onWindowDragEnd=function(Ie){Ne.onNodeDragEnd(Ie,null,!0),window.removeEventListener("dragend",Ne.onWindowDragEnd)},Ne.onNodeDragEnd=function(Ie,We){var ke=Ne.props.onDragEnd;Ne.setState({dragOverNodeKey:null}),Ne.cleanDragState(),ke==null||ke({event:Ie,node:(0,Ee.F)(We.props)}),Ne.dragNode=null,window.removeEventListener("dragend",Ne.onWindowDragEnd)},Ne.onNodeDrop=function(Ie,We){var ke,ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,at=Ne.state,Ot=at.dragChildrenKeys,Mt=at.dropPosition,jt=at.dropTargetKey,Dt=at.dropTargetPos,Ht=at.dropAllowed;if(Ht){var bt=Ne.props.onDrop;if(Ne.setState({dragOverNodeKey:null}),Ne.cleanDragState(),jt!==null){var fn=(0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(jt,Ne.getTreeNodeRequiredProps())),{},{active:((ke=Ne.getActiveItem())===null||ke===void 0?void 0:ke.key)===jt,data:(0,Ze.Z)(Ne.state.keyEntities,jt).node}),un=Ot.indexOf(jt)!==-1;(0,a.ZP)(!un,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Et=(0,yt.yx)(Dt),Sn={event:Ie,node:(0,Ee.F)(fn),dragNode:Ne.dragNode?(0,Ee.F)(Ne.dragNode.props):null,dragNodesKeys:[Ne.dragNode.props.eventKey].concat(Ot),dropToGap:Mt!==0,dropPosition:Mt+Number(Et[Et.length-1])};ze||bt==null||bt(Sn),Ne.dragNode=null}}},Ne.cleanDragState=function(){var Ie=Ne.state.draggingNodeKey;Ie!==null&&Ne.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ne.dragStartMousePosition=null,Ne.currentMouseOverDroppableNodeKey=null},Ne.triggerExpandActionExpand=function(Ie,We){var ke=Ne.state,ze=ke.expandedKeys,at=ke.flattenNodes,Ot=We.expanded,Mt=We.key,jt=We.isLeaf;if(!(jt||Ie.shiftKey||Ie.metaKey||Ie.ctrlKey)){var Dt=at.filter(function(bt){return bt.key===Mt})[0],Ht=(0,Ee.F)((0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(Mt,Ne.getTreeNodeRequiredProps())),{},{data:Dt.data}));Ne.setExpandedKeys(Ot?(0,yt._5)(ze,Mt):(0,yt.L0)(ze,Mt)),Ne.onNodeExpand(Ie,Ht)}},Ne.onNodeClick=function(Ie,We){var ke=Ne.props,ze=ke.onClick,at=ke.expandAction;at==="click"&&Ne.triggerExpandActionExpand(Ie,We),ze==null||ze(Ie,We)},Ne.onNodeDoubleClick=function(Ie,We){var ke=Ne.props,ze=ke.onDoubleClick,at=ke.expandAction;at==="doubleClick"&&Ne.triggerExpandActionExpand(Ie,We),ze==null||ze(Ie,We)},Ne.onNodeSelect=function(Ie,We){var ke=Ne.state.selectedKeys,ze=Ne.state,at=ze.keyEntities,Ot=ze.fieldNames,Mt=Ne.props,jt=Mt.onSelect,Dt=Mt.multiple,Ht=We.selected,bt=We[Ot.key],fn=!Ht;fn?Dt?ke=(0,yt.L0)(ke,bt):ke=[bt]:ke=(0,yt._5)(ke,bt);var un=ke.map(function(Et){var Sn=(0,Ze.Z)(at,Et);return Sn?Sn.node:null}).filter(function(Et){return Et});Ne.setUncontrolledState({selectedKeys:ke}),jt==null||jt(ke,{event:"select",selected:fn,node:We,selectedNodes:un,nativeEvent:Ie.nativeEvent})},Ne.onNodeCheck=function(Ie,We,ke){var ze=Ne.state,at=ze.keyEntities,Ot=ze.checkedKeys,Mt=ze.halfCheckedKeys,jt=Ne.props,Dt=jt.checkStrictly,Ht=jt.onCheck,bt=We.key,fn,un={event:"check",node:We,checked:ke,nativeEvent:Ie.nativeEvent};if(Dt){var Et=ke?(0,yt.L0)(Ot,bt):(0,yt._5)(Ot,bt),Sn=(0,yt._5)(Mt,bt);fn={checked:Et,halfChecked:Sn},un.checkedNodes=Et.map(function(Vn){return(0,Ze.Z)(at,Vn)}).filter(function(Vn){return Vn}).map(function(Vn){return Vn.node}),Ne.setUncontrolledState({checkedKeys:Et})}else{var pn=(0,an.S)([].concat((0,_e.Z)(Ot),[bt]),!0,at),Fn=pn.checkedKeys,xn=pn.halfCheckedKeys;if(!ke){var Kn=new Set(Fn);Kn.delete(bt);var er=(0,an.S)(Array.from(Kn),{checked:!1,halfCheckedKeys:xn},at);Fn=er.checkedKeys,xn=er.halfCheckedKeys}fn=Fn,un.checkedNodes=[],un.checkedNodesPositions=[],un.halfCheckedKeys=xn,Fn.forEach(function(Vn){var Yn=(0,Ze.Z)(at,Vn);if(Yn){var pr=Yn.node,vr=Yn.pos;un.checkedNodes.push(pr),un.checkedNodesPositions.push({node:pr,pos:vr})}}),Ne.setUncontrolledState({checkedKeys:Fn},!1,{halfCheckedKeys:xn})}Ht==null||Ht(fn,un)},Ne.onNodeLoad=function(Ie){var We=Ie.key,ke=new Promise(function(ze,at){Ne.setState(function(Ot){var Mt=Ot.loadedKeys,jt=Mt===void 0?[]:Mt,Dt=Ot.loadingKeys,Ht=Dt===void 0?[]:Dt,bt=Ne.props,fn=bt.loadData,un=bt.onLoad;if(!fn||jt.indexOf(We)!==-1||Ht.indexOf(We)!==-1)return null;var Et=fn(Ie);return Et.then(function(){var Sn=Ne.state.loadedKeys,pn=(0,yt.L0)(Sn,We);un==null||un(pn,{event:"load",node:Ie}),Ne.setUncontrolledState({loadedKeys:pn}),Ne.setState(function(Fn){return{loadingKeys:(0,yt._5)(Fn.loadingKeys,We)}}),ze()}).catch(function(Sn){if(Ne.setState(function(Fn){return{loadingKeys:(0,yt._5)(Fn.loadingKeys,We)}}),Ne.loadingRetryTimes[We]=(Ne.loadingRetryTimes[We]||0)+1,Ne.loadingRetryTimes[We]>=vt){var pn=Ne.state.loadedKeys;(0,a.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ne.setUncontrolledState({loadedKeys:(0,yt.L0)(pn,We)}),ze()}at(Sn)}),{loadingKeys:(0,yt.L0)(Ht,We)}})});return ke.catch(function(){}),ke},Ne.onNodeMouseEnter=function(Ie,We){var ke=Ne.props.onMouseEnter;ke==null||ke({event:Ie,node:We})},Ne.onNodeMouseLeave=function(Ie,We){var ke=Ne.props.onMouseLeave;ke==null||ke({event:Ie,node:We})},Ne.onNodeContextMenu=function(Ie,We){var ke=Ne.props.onRightClick;ke&&(Ie.preventDefault(),ke({event:Ie,node:We}))},Ne.onFocus=function(){var Ie=Ne.props.onFocus;Ne.setState({focused:!0});for(var We=arguments.length,ke=new Array(We),ze=0;ze<We;ze++)ke[ze]=arguments[ze];Ie==null||Ie.apply(void 0,ke)},Ne.onBlur=function(){var Ie=Ne.props.onBlur;Ne.setState({focused:!1}),Ne.onActiveChange(null);for(var We=arguments.length,ke=new Array(We),ze=0;ze<We;ze++)ke[ze]=arguments[ze];Ie==null||Ie.apply(void 0,ke)},Ne.getTreeNodeRequiredProps=function(){var Ie=Ne.state,We=Ie.expandedKeys,ke=Ie.selectedKeys,ze=Ie.loadedKeys,at=Ie.loadingKeys,Ot=Ie.checkedKeys,Mt=Ie.halfCheckedKeys,jt=Ie.dragOverNodeKey,Dt=Ie.dropPosition,Ht=Ie.keyEntities;return{expandedKeys:We||[],selectedKeys:ke||[],loadedKeys:ze||[],loadingKeys:at||[],checkedKeys:Ot||[],halfCheckedKeys:Mt||[],dragOverNodeKey:jt,dropPosition:Dt,keyEntities:Ht}},Ne.setExpandedKeys=function(Ie){var We=Ne.state,ke=We.treeData,ze=We.fieldNames,at=(0,Ee.oH)(ke,Ie,ze);Ne.setUncontrolledState({expandedKeys:Ie,flattenNodes:at},!0)},Ne.onNodeExpand=function(Ie,We){var ke=Ne.state.expandedKeys,ze=Ne.state,at=ze.listChanging,Ot=ze.fieldNames,Mt=Ne.props,jt=Mt.onExpand,Dt=Mt.loadData,Ht=We.expanded,bt=We[Ot.key];if(!at){var fn=ke.indexOf(bt),un=!Ht;if((0,a.ZP)(Ht&&fn!==-1||!Ht&&fn===-1,"Expand state not sync with index check"),un?ke=(0,yt.L0)(ke,bt):ke=(0,yt._5)(ke,bt),Ne.setExpandedKeys(ke),jt==null||jt(ke,{node:We,expanded:un,nativeEvent:Ie.nativeEvent}),un&&Dt){var Et=Ne.onNodeLoad(We);Et&&Et.then(function(){var Sn=(0,Ee.oH)(Ne.state.treeData,ke,Ot);Ne.setUncontrolledState({flattenNodes:Sn})}).catch(function(){var Sn=Ne.state.expandedKeys,pn=(0,yt._5)(Sn,bt);Ne.setExpandedKeys(pn)})}}},Ne.onListChangeStart=function(){Ne.setUncontrolledState({listChanging:!0})},Ne.onListChangeEnd=function(){setTimeout(function(){Ne.setUncontrolledState({listChanging:!1})})},Ne.onActiveChange=function(Ie){var We=Ne.state.activeKey,ke=Ne.props.onActiveChange;We!==Ie&&(Ne.setState({activeKey:Ie}),Ie!==null&&Ne.scrollTo({key:Ie}),ke==null||ke(Ie))},Ne.getActiveItem=function(){var Ie=Ne.state,We=Ie.activeKey,ke=Ie.flattenNodes;return We===null?null:ke.find(function(ze){var at=ze.key;return at===We})||null},Ne.offsetActiveKey=function(Ie){var We=Ne.state,ke=We.flattenNodes,ze=We.activeKey,at=ke.findIndex(function(jt){var Dt=jt.key;return Dt===ze});at===-1&&Ie<0&&(at=ke.length),at=(at+Ie+ke.length)%ke.length;var Ot=ke[at];if(Ot){var Mt=Ot.key;Ne.onActiveChange(Mt)}else Ne.onActiveChange(null)},Ne.onKeyDown=function(Ie){var We=Ne.state,ke=We.activeKey,ze=We.expandedKeys,at=We.checkedKeys,Ot=We.fieldNames,Mt=Ne.props,jt=Mt.onKeyDown,Dt=Mt.checkable,Ht=Mt.selectable;switch(Ie.which){case oe.Z.UP:{Ne.offsetActiveKey(-1),Ie.preventDefault();break}case oe.Z.DOWN:{Ne.offsetActiveKey(1),Ie.preventDefault();break}}var bt=Ne.getActiveItem();if(bt&&bt.data){var fn=Ne.getTreeNodeRequiredProps(),un=bt.data.isLeaf===!1||!!(bt.data[Ot.children]||[]).length,Et=(0,Ee.F)((0,ye.Z)((0,ye.Z)({},(0,Ee.H8)(ke,fn)),{},{data:bt.data,active:!0}));switch(Ie.which){case oe.Z.LEFT:{un&&ze.includes(ke)?Ne.onNodeExpand({},Et):bt.parent&&Ne.onActiveChange(bt.parent.key),Ie.preventDefault();break}case oe.Z.RIGHT:{un&&!ze.includes(ke)?Ne.onNodeExpand({},Et):bt.children&&bt.children.length&&Ne.onActiveChange(bt.children[0].key),Ie.preventDefault();break}case oe.Z.ENTER:case oe.Z.SPACE:{Dt&&!Et.disabled&&Et.checkable!==!1&&!Et.disableCheckbox?Ne.onNodeCheck({},Et,!at.includes(ke)):!Dt&&Ht&&!Et.disabled&&Et.selectable!==!1&&Ne.onNodeSelect({},Et);break}}}jt==null||jt(Ie)},Ne.setUncontrolledState=function(Ie){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ne.destroyed){var ze=!1,at=!0,Ot={};Object.keys(Ie).forEach(function(Mt){if(Mt in Ne.props){at=!1;return}ze=!0,Ot[Mt]=Ie[Mt]}),ze&&(!We||at)&&Ne.setState((0,ye.Z)((0,ye.Z)({},Ot),ke))}},Ne.scrollTo=function(Ie){Ne.listRef.current.scrollTo(Ie)},Ne}return(0,ie.Z)(Ge,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var qe=this.props.activeKey;qe!==void 0&&qe!==this.state.activeKey&&(this.setState({activeKey:qe}),qe!==null&&this.scrollTo({key:qe}))}},{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 qe,Ct=this.state,Oe=Ct.focused,Ie=Ct.flattenNodes,We=Ct.keyEntities,ke=Ct.draggingNodeKey,ze=Ct.activeKey,at=Ct.dropLevelOffset,Ot=Ct.dropContainerKey,Mt=Ct.dropTargetKey,jt=Ct.dropPosition,Dt=Ct.dragOverNodeKey,Ht=Ct.indent,bt=this.props,fn=bt.prefixCls,un=bt.className,Et=bt.style,Sn=bt.showLine,pn=bt.focusable,Fn=bt.tabIndex,xn=Fn===void 0?0:Fn,Kn=bt.selectable,er=bt.showIcon,Vn=bt.icon,Yn=bt.switcherIcon,pr=bt.draggable,vr=bt.checkable,tn=bt.checkStrictly,Xn=bt.disabled,sr=bt.motion,Wn=bt.loadData,lr=bt.filterTreeNode,Ir=bt.height,Rr=bt.itemHeight,Er=bt.virtual,Nr=bt.titleRender,cr=bt.dropIndicatorRender,Yr=bt.onContextMenu,$t=bt.onScroll,ue=bt.direction,ve=bt.rootClassName,Pe=bt.rootStyle,xe=(0,ne.Z)(this.props,{aria:!0,data:!0}),Be;return pr&&((0,be.Z)(pr)==="object"?Be=pr:typeof pr=="function"?Be={nodeDraggable:pr}:Be={}),y.createElement(E.k.Provider,{value:{prefixCls:fn,selectable:Kn,showIcon:er,icon:Vn,switcherIcon:Yn,draggable:Be,draggingNodeKey:ke,checkable:vr,checkStrictly:tn,disabled:Xn,keyEntities:We,dropLevelOffset:at,dropContainerKey:Ot,dropTargetKey:Mt,dropPosition:jt,dragOverNodeKey:Dt,indent:Ht,direction:ue,dropIndicatorRender:cr,loadData:Wn,filterTreeNode:lr,titleRender:Nr,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}},y.createElement("div",{role:"tree",className:he()(fn,un,ve,(qe={},(0,ge.Z)(qe,"".concat(fn,"-show-line"),Sn),(0,ge.Z)(qe,"".concat(fn,"-focused"),Oe),(0,ge.Z)(qe,"".concat(fn,"-active-focused"),ze!==null),qe)),style:Pe},y.createElement(zt,(0,ee.Z)({ref:this.listRef,prefixCls:fn,style:Et,data:Ie,disabled:Xn,selectable:Kn,checkable:!!vr,motion:sr,dragging:ke!==null,height:Ir,itemHeight:Rr,virtual:Er,focusable:pn,focused:Oe,tabIndex:xn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Yr,onScroll:$t},this.getTreeNodeRequiredProps(),xe))))}}],[{key:"getDerivedStateFromProps",value:function(qe,Ct){var Oe=Ct.prevProps,Ie={prevProps:qe};function We(pn){return!Oe&&pn in qe||Oe&&Oe[pn]!==qe[pn]}var ke,ze=Ct.fieldNames;if(We("fieldNames")&&(ze=(0,Ee.w$)(qe.fieldNames),Ie.fieldNames=ze),We("treeData")?ke=qe.treeData:We("children")&&((0,a.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ke=(0,Ee.zn)(qe.children)),ke){Ie.treeData=ke;var at=(0,Ee.I8)(ke,{fieldNames:ze});Ie.keyEntities=(0,ye.Z)((0,ge.Z)({},Ke,_t),at.keyEntities)}var Ot=Ie.keyEntities||Ct.keyEntities;if(We("expandedKeys")||Oe&&We("autoExpandParent"))Ie.expandedKeys=qe.autoExpandParent||!Oe&&qe.defaultExpandParent?(0,yt.r7)(qe.expandedKeys,Ot):qe.expandedKeys;else if(!Oe&&qe.defaultExpandAll){var Mt=(0,ye.Z)({},Ot);delete Mt[Ke],Ie.expandedKeys=Object.keys(Mt).map(function(pn){return Mt[pn].key})}else!Oe&&qe.defaultExpandedKeys&&(Ie.expandedKeys=qe.autoExpandParent||qe.defaultExpandParent?(0,yt.r7)(qe.defaultExpandedKeys,Ot):qe.defaultExpandedKeys);if(Ie.expandedKeys||delete Ie.expandedKeys,ke||Ie.expandedKeys){var jt=(0,Ee.oH)(ke||Ct.treeData,Ie.expandedKeys||Ct.expandedKeys,ze);Ie.flattenNodes=jt}if(qe.selectable&&(We("selectedKeys")?Ie.selectedKeys=(0,yt.BT)(qe.selectedKeys,qe):!Oe&&qe.defaultSelectedKeys&&(Ie.selectedKeys=(0,yt.BT)(qe.defaultSelectedKeys,qe))),qe.checkable){var Dt;if(We("checkedKeys")?Dt=(0,yt.E6)(qe.checkedKeys)||{}:!Oe&&qe.defaultCheckedKeys?Dt=(0,yt.E6)(qe.defaultCheckedKeys)||{}:ke&&(Dt=(0,yt.E6)(qe.checkedKeys)||{checkedKeys:Ct.checkedKeys,halfCheckedKeys:Ct.halfCheckedKeys}),Dt){var Ht=Dt,bt=Ht.checkedKeys,fn=bt===void 0?[]:bt,un=Ht.halfCheckedKeys,Et=un===void 0?[]:un;if(!qe.checkStrictly){var Sn=(0,an.S)(fn,!0,Ot);fn=Sn.checkedKeys,Et=Sn.halfCheckedKeys}Ie.checkedKeys=fn,Ie.halfCheckedKeys=Et}}return We("loadedKeys")&&(Ie.loadedKeys=qe.loadedKeys),Ie}}]),Ge}(y.Component);xt.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:b,allowDrop:function(){return!0},expandAction:!1},xt.TreeNode=Se.Z;var nn=xt,Gt=nn},35654:function(ft,Ve,te){"use strict";te.d(Ve,{BT:function(){return y},E6:function(){return x},L0:function(){return me},OM:function(){return a},_5:function(){return le},r7:function(){return z},wA:function(){return he},yx:function(){return ae}});var ee=te(26407),ge=te(39559),be=te(48736),ye=te(59301),_e=te(39417),fe=te(67841),ie=te(71430),de=null;function le(re,se){if(!re)return[];var ce=re.slice(),pe=ce.indexOf(se);return pe>=0&&ce.splice(pe,1),ce}function me(re,se){var ce=(re||[]).slice();return ce.indexOf(se)===-1&&ce.push(se),ce}function ae(re){return re.split("-")}function he(re,se){var ce=[],pe=(0,fe.Z)(se,re);function Se(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Le.forEach(function(Ee){var je=Ee.key,Me=Ee.children;ce.push(je),Se(Me)})}return Se(pe.children),ce}function oe(re){if(re.parent){var se=ae(re.pos);return Number(se[se.length-1])===re.parent.children.length-1}return!1}function ne(re){var se=ae(re.pos);return Number(se[se.length-1])===0}function a(re,se,ce,pe,Se,Le,Ee,je,Me,mt){var Xe,pt=re.clientX,we=re.clientY,Fe=re.target.getBoundingClientRect(),He=Fe.top,it=Fe.height,Ke=(mt==="rtl"?-1:1)*(((Se==null?void 0:Se.x)||0)-pt),ht=(Ke-12)/pe,_t=(0,fe.Z)(je,ce.props.eventKey);if(we<He+it/2){var Lt=Ee.findIndex(function(Gt){return Gt.key===_t.key}),kt=Lt<=0?0:Lt-1,nt=Ee[kt].key;_t=(0,fe.Z)(je,nt)}var Qe=_t.key,Pt=_t,zt=_t.key,yt=0,an=0;if(!Me.includes(Qe))for(var Ze=0;Ze<ht&&oe(_t);Ze+=1)_t=_t.parent,an+=1;var vt=se.props.data,xt=_t.node,nn=!0;return ne(_t)&&_t.level===0&&we<He+it/2&&Le({dragNode:vt,dropNode:xt,dropPosition:-1})&&_t.key===ce.props.eventKey?yt=-1:(Pt.children||[]).length&&Me.includes(zt)?Le({dragNode:vt,dropNode:xt,dropPosition:0})?yt=0:nn=!1:an===0?ht>-1.5?Le({dragNode:vt,dropNode:xt,dropPosition:1})?yt=1:nn=!1:Le({dragNode:vt,dropNode:xt,dropPosition:0})?yt=0:Le({dragNode:vt,dropNode:xt,dropPosition:1})?yt=1:nn=!1:Le({dragNode:vt,dropNode:xt,dropPosition:1})?yt=1:nn=!1,{dropPosition:yt,dropLevelOffset:an,dropTargetKey:_t.key,dropTargetPos:_t.pos,dragOverNodeKey:zt,dropContainerKey:yt===0?null:((Xe=_t.parent)===null||Xe===void 0?void 0:Xe.key)||null,dropAllowed:nn}}function y(re,se){if(re){var ce=se.multiple;return ce?re.slice():re.length?[re[0]]:re}}var E=function(se){return se};function b(re,se){if(!re)return[];var ce=se||{},pe=ce.processProps,Se=pe===void 0?E:pe,Le=Array.isArray(re)?re:[re];return Le.map(function(Ee){var je=Ee.children,Me=_objectWithoutProperties(Ee,de),mt=b(je,se);return React.createElement(TreeNode,_extends({key:Me.key},Se(Me)),mt)})}function x(re){if(!re)return null;var se;if(Array.isArray(re))se={checkedKeys:re,halfCheckedKeys:void 0};else if((0,ge.Z)(re)==="object")se={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,be.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return se}function z(re,se){var ce=new Set;function pe(Se){if(!ce.has(Se)){var Le=(0,fe.Z)(se,Se);if(Le){ce.add(Se);var Ee=Le.parent,je=Le.node;je.disabled||Ee&&pe(Ee.key)}}}return(re||[]).forEach(function(Se){pe(Se)}),(0,ee.Z)(ce)}},90782:function(ft,Ve,te){"use strict";te.d(Ve,{S:function(){return ie}});var ee=te(48736),ge=te(67841);function be(de,le){var me=new Set;return de.forEach(function(ae){le.has(ae)||me.add(ae)}),me}function ye(de){var le=de||{},me=le.disabled,ae=le.disableCheckbox,he=le.checkable;return!!(me||ae)||he===!1}function _e(de,le,me,ae){for(var he=new Set(de),oe=new Set,ne=0;ne<=me;ne+=1){var a=le.get(ne)||new Set;a.forEach(function(x){var z=x.key,re=x.node,se=x.children,ce=se===void 0?[]:se;he.has(z)&&!ae(re)&&ce.filter(function(pe){return!ae(pe.node)}).forEach(function(pe){he.add(pe.key)})})}for(var y=new Set,E=me;E>=0;E-=1){var b=le.get(E)||new Set;b.forEach(function(x){var z=x.parent,re=x.node;if(!(ae(re)||!x.parent||y.has(x.parent.key))){if(ae(x.parent.node)){y.add(z.key);return}var se=!0,ce=!1;(z.children||[]).filter(function(pe){return!ae(pe.node)}).forEach(function(pe){var Se=pe.key,Le=he.has(Se);se&&!Le&&(se=!1),!ce&&(Le||oe.has(Se))&&(ce=!0)}),se&&he.add(z.key),ce&&oe.add(z.key),y.add(z.key)}})}return{checkedKeys:Array.from(he),halfCheckedKeys:Array.from(be(oe,he))}}function fe(de,le,me,ae,he){for(var oe=new Set(de),ne=new Set(le),a=0;a<=ae;a+=1){var y=me.get(a)||new Set;y.forEach(function(z){var re=z.key,se=z.node,ce=z.children,pe=ce===void 0?[]:ce;!oe.has(re)&&!ne.has(re)&&!he(se)&&pe.filter(function(Se){return!he(Se.node)}).forEach(function(Se){oe.delete(Se.key)})})}ne=new Set;for(var E=new Set,b=ae;b>=0;b-=1){var x=me.get(b)||new Set;x.forEach(function(z){var re=z.parent,se=z.node;if(!(he(se)||!z.parent||E.has(z.parent.key))){if(he(z.parent.node)){E.add(re.key);return}var ce=!0,pe=!1;(re.children||[]).filter(function(Se){return!he(Se.node)}).forEach(function(Se){var Le=Se.key,Ee=oe.has(Le);ce&&!Ee&&(ce=!1),!pe&&(Ee||ne.has(Le))&&(pe=!0)}),ce||oe.delete(re.key),pe&&ne.add(re.key),E.add(re.key)}})}return{checkedKeys:Array.from(oe),halfCheckedKeys:Array.from(be(ne,oe))}}function ie(de,le,me,ae){var he=[],oe;ae?oe=ae:oe=ye;var ne=new Set(de.filter(function(b){var x=!!(0,ge.Z)(me,b);return x||he.push(b),x})),a=new Map,y=0;Object.keys(me).forEach(function(b){var x=me[b],z=x.level,re=a.get(z);re||(re=new Set,a.set(z,re)),re.add(x),y=Math.max(y,z)}),(0,ee.ZP)(!he.length,"Tree missing follow keys: ".concat(he.slice(0,100).map(function(b){return"'".concat(b,"'")}).join(", ")));var E;return le===!0?E=_e(ne,a,y,oe):E=fe(ne,le.halfCheckedKeys,a,y,oe),E}},67841:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ee}});function ee(ge,be){return ge[be]}},71430:function(ft,Ve,te){"use strict";te.d(Ve,{F:function(){return z},H8:function(){return x},I8:function(){return b},km:function(){return he},oH:function(){return y},w$:function(){return oe},zn:function(){return a}});var ee=te(39559),ge=te(26407),be=te(33708),ye=te(37061),_e=te(11592),fe=te(2738),ie=te(48736),de=te(67841),le=["children"];function me(re,se){return"".concat(re,"-").concat(se)}function ae(re){return re&&re.type&&re.type.isTreeNode}function he(re,se){return re!=null?re:se}function oe(re){var se=re||{},ce=se.title,pe=se._title,Se=se.key,Le=se.children,Ee=ce||"title";return{title:Ee,_title:pe||[Ee],key:Se||"key",children:Le||"children"}}function ne(re,se){var ce=new Map;function pe(Se){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Se||[]).forEach(function(Ee){var je=Ee[se.key],Me=Ee[se.children];warning(je!=null,"Tree node must have a certain key: [".concat(Le).concat(je,"]"));var mt=String(je);warning(!ce.has(mt)||je===null||je===void 0,"Same 'key' exist in the Tree: ".concat(mt)),ce.set(mt,!0),pe(Me,"".concat(Le).concat(mt," > "))})}pe(re)}function a(re){function se(ce){var pe=(0,_e.Z)(ce);return pe.map(function(Se){if(!ae(Se))return(0,ie.ZP)(!Se,"Tree/TreeNode can only accept TreeNode as children."),null;var Le=Se.key,Ee=Se.props,je=Ee.children,Me=(0,ye.Z)(Ee,le),mt=(0,be.Z)({key:Le},Me),Xe=se(je);return Xe.length&&(mt.children=Xe),mt}).filter(function(Se){return Se})}return se(re)}function y(re,se,ce){var pe=oe(ce),Se=pe._title,Le=pe.key,Ee=pe.children,je=new Set(se===!0?[]:se),Me=[];function mt(Xe){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Xe.map(function(we,Fe){for(var He=me(pt?pt.pos:"0",Fe),it=he(we[Le],He),Ke,ht=0;ht<Se.length;ht+=1){var _t=Se[ht];if(we[_t]!==void 0){Ke=we[_t];break}}var Lt=(0,be.Z)((0,be.Z)({},(0,fe.Z)(we,[].concat((0,ge.Z)(Se),[Le,Ee]))),{},{title:Ke,key:it,parent:pt,pos:He,children:null,data:we,isStart:[].concat((0,ge.Z)(pt?pt.isStart:[]),[Fe===0]),isEnd:[].concat((0,ge.Z)(pt?pt.isEnd:[]),[Fe===Xe.length-1])});return Me.push(Lt),se===!0||je.has(it)?Lt.children=mt(we[Ee]||[],Lt):Lt.children=[],Lt})}return mt(re),Me}function E(re,se,ce){var pe={};(0,ee.Z)(ce)==="object"?pe=ce:pe={externalGetKey:ce},pe=pe||{};var Se=pe,Le=Se.childrenPropName,Ee=Se.externalGetKey,je=Se.fieldNames,Me=oe(je),mt=Me.key,Xe=Me.children,pt=Le||Xe,we;Ee?typeof Ee=="string"?we=function(it){return it[Ee]}:typeof Ee=="function"&&(we=function(it){return Ee(it)}):we=function(it,Ke){return he(it[mt],Ke)};function Fe(He,it,Ke,ht){var _t=He?He[pt]:re,Lt=He?me(Ke.pos,it):"0",kt=He?[].concat((0,ge.Z)(ht),[He]):[];if(He){var nt=we(He,Lt),Qe={node:He,index:it,pos:Lt,key:nt,parentPos:Ke.node?Ke.pos:null,level:Ke.level+1,nodes:kt};se(Qe)}_t&&_t.forEach(function(Pt,zt){Fe(Pt,zt,{node:He,pos:Lt,level:Ke?Ke.level+1:-1},kt)})}Fe(null)}function b(re){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=se.initWrapper,pe=se.processEntity,Se=se.onProcessFinished,Le=se.externalGetKey,Ee=se.childrenPropName,je=se.fieldNames,Me=arguments.length>2?arguments[2]:void 0,mt=Le||Me,Xe={},pt={},we={posEntities:Xe,keyEntities:pt};return ce&&(we=ce(we)||we),E(re,function(Fe){var He=Fe.node,it=Fe.index,Ke=Fe.pos,ht=Fe.key,_t=Fe.parentPos,Lt=Fe.level,kt=Fe.nodes,nt={node:He,nodes:kt,index:it,key:ht,pos:Ke,level:Lt},Qe=he(ht,Ke);Xe[Ke]=nt,pt[Qe]=nt,nt.parent=Xe[_t],nt.parent&&(nt.parent.children=nt.parent.children||[],nt.parent.children.push(nt)),pe&&pe(nt,we)},{externalGetKey:mt,childrenPropName:Ee,fieldNames:je}),Se&&Se(we),we}function x(re,se){var ce=se.expandedKeys,pe=se.selectedKeys,Se=se.loadedKeys,Le=se.loadingKeys,Ee=se.checkedKeys,je=se.halfCheckedKeys,Me=se.dragOverNodeKey,mt=se.dropPosition,Xe=se.keyEntities,pt=(0,de.Z)(Xe,re),we={eventKey:re,expanded:ce.indexOf(re)!==-1,selected:pe.indexOf(re)!==-1,loaded:Se.indexOf(re)!==-1,loading:Le.indexOf(re)!==-1,checked:Ee.indexOf(re)!==-1,halfChecked:je.indexOf(re)!==-1,pos:String(pt?pt.pos:""),dragOver:Me===re&&mt===0,dragOverGapTop:Me===re&&mt===-1,dragOverGapBottom:Me===re&&mt===1};return we}function z(re){var se=re.data,ce=re.expanded,pe=re.selected,Se=re.checked,Le=re.loaded,Ee=re.loading,je=re.halfChecked,Me=re.dragOver,mt=re.dragOverGapTop,Xe=re.dragOverGapBottom,pt=re.pos,we=re.active,Fe=re.eventKey,He=(0,be.Z)((0,be.Z)({},se),{},{expanded:ce,selected:pe,checked:Se,loaded:Le,loading:Ee,halfChecked:je,dragOver:Me,dragOverGapTop:mt,dragOverGapBottom:Xe,pos:pt,active:we,key:Fe});return"props"in He||Object.defineProperty(He,"props",{get:function(){return(0,ie.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),re}}),He}},8224:function(ft,Ve,te){"use strict";te.d(Ve,{Z:function(){return ge}});var ee=te(4676);function ge(be,ye,_e,fe){var ie=ee.unstable_batchedUpdates?function(le){ee.unstable_batchedUpdates(_e,le)}:_e;return be!=null&&be.addEventListener&&be.addEventListener(ye,ie,fe),{remove:function(){be!=null&&be.removeEventListener&&be.removeEventListener(ye,ie,fe)}}}},55468:function(ft,Ve,te){"use strict";te.d(Ve,{g1:function(){return ae},os:function(){return oe}});var ee=/margin|padding|width|height|max|min|offset/,ge={left:!0,top:!0},be={cssFloat:1,styleFloat:1,float:1};function ye(ne){return ne.nodeType===1?ne.ownerDocument.defaultView.getComputedStyle(ne,null):{}}function _e(ne,a,y){if(a=a.toLowerCase(),y==="auto"){if(a==="height")return ne.offsetHeight;if(a==="width")return ne.offsetWidth}return a in ge||(ge[a]=ee.test(a)),ge[a]?parseFloat(y)||0:y}function fe(ne,a){var y=arguments.length,E=ye(ne);return a=be[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,y===1?E:_e(ne,a,E[a]||ne.style[a])}function ie(ne,a,y){var E=arguments.length;if(a=be[a]?"cssFloat"in ne.style?"cssFloat":"styleFloat":a,E===3)return typeof y=="number"&&ee.test(a)&&(y="".concat(y,"px")),ne.style[a]=y,y;for(var b in a)a.hasOwnProperty(b)&&ie(ne,b,a[b]);return ye(ne)}function de(ne){return ne===document.body?document.documentElement.clientWidth:ne.offsetWidth}function le(ne){return ne===document.body?window.innerHeight||document.documentElement.clientHeight:ne.offsetHeight}function me(){var ne=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),a=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ne,height:a}}function ae(){var ne=document.documentElement.clientWidth,a=window.innerHeight||document.documentElement.clientHeight;return{width:ne,height:a}}function he(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function oe(ne){var a=ne.getBoundingClientRect(),y=document.documentElement;return{left:a.left+(window.pageXOffset||y.scrollLeft)-(y.clientLeft||document.body.clientLeft||0),top:a.top+(window.pageYOffset||y.scrollTop)-(y.clientTop||document.body.clientTop||0)}}},24514:function(ft,Ve,te){"use strict";te.d(Ve,{G:function(){return ye}});var ee=te(47273),ge=function(fe){if((0,ee.Z)()&&window.document.documentElement){var ie=Array.isArray(fe)?fe:[fe],de=window.document.documentElement;return ie.some(function(le){return le in de.style})}return!1},be=function(fe,ie){if(!ge(fe))return!1;var de=document.createElement("div"),le=de.style[fe];return de.style[fe]=ie,de.style[fe]!==le};function ye(_e,fe){return!Array.isArray(_e)&&fe!==void 0?be(_e,fe):ge(_e)}},7062:function(ft,Ve,te){var ee=te(19637),ge=te(97573),be=[te(96627)];ft.exports=ee.createStore(ge,be)},96627:function(ft,Ve,te){ft.exports=ee;function ee(){return te(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(ft){return ft<10?"0"+ft:ft}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(ft){return rx_escapable.lastIndex=0,rx_escapable.test(ft)?'"'+ft.replace(rx_escapable,function(Ve){var te=meta[Ve];return typeof te=="string"?te:"\\u"+("0000"+Ve.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+ft+'"'}function str(ft,Ve){var te,ee,ge,be,ye=gap,_e,fe=Ve[ft];switch(fe&&typeof fe=="object"&&typeof fe.toJSON=="function"&&(fe=fe.toJSON(ft)),typeof rep=="function"&&(fe=rep.call(Ve,ft,fe)),typeof fe){case"string":return quote(fe);case"number":return isFinite(fe)?String(fe):"null";case"boolean":case"null":return String(fe);case"object":if(!fe)return"null";if(gap+=indent,_e=[],Object.prototype.toString.apply(fe)==="[object Array]"){for(be=fe.length,te=0;te<be;te+=1)_e[te]=str(te,fe)||"null";return ge=_e.length===0?"[]":gap?`[
`+gap+_e.join(`,
`+gap)+`
`+ye+"]":"["+_e.join(",")+"]",gap=ye,ge}if(rep&&typeof rep=="object")for(be=rep.length,te=0;te<be;te+=1)typeof rep[te]=="string"&&(ee=rep[te],ge=str(ee,fe),ge&&_e.push(quote(ee)+(gap?": ":":")+ge));else for(ee in fe)Object.prototype.hasOwnProperty.call(fe,ee)&&(ge=str(ee,fe),ge&&_e.push(quote(ee)+(gap?": ":":")+ge));return ge=_e.length===0?"{}":gap?`{
`+gap+_e.join(`,
`+gap)+`
`+ye+"}":"{"+_e.join(",")+"}",gap=ye,ge}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(ft,Ve,te){var ee;if(gap="",indent="",typeof te=="number")for(ee=0;ee<te;ee+=1)indent+=" ";else typeof te=="string"&&(indent=te);if(rep=Ve,Ve&&typeof Ve!="function"&&(typeof Ve!="object"||typeof Ve.length!="number"))throw new Error("JSON.stringify");return str("",{"":ft})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(ft,Ve){var te,ee,ge=ft[Ve];if(ge&&typeof ge=="object")for(te in ge)Object.prototype.hasOwnProperty.call(ge,te)&&(ee=walk(ge,te),ee!==void 0?ge[te]=ee:delete ge[te]);return reviver.call(ft,Ve,ge)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(ft){return"\\u"+("0000"+ft.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(ft,Ve,te){var ee=te(67039),ge=ee.slice,be=ee.pluck,ye=ee.each,_e=ee.bind,fe=ee.create,ie=ee.isList,de=ee.isFunction,le=ee.isObject;ft.exports={createStore:he};var me={version:"2.0.12",enabled:!1,get:function(oe,ne){var a=this.storage.read(this._namespacePrefix+oe);return this._deserialize(a,ne)},set:function(oe,ne){return ne===void 0?this.remove(oe):(this.storage.write(this._namespacePrefix+oe,this._serialize(ne)),ne)},remove:function(oe){this.storage.remove(this._namespacePrefix+oe)},each:function(oe){var ne=this;this.storage.each(function(a,y){oe.call(ne,ne._deserialize(a),(y||"").replace(ne._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(oe){return this._namespacePrefix=="__storejs_"+oe+"_"},createStore:function(){return he.apply(this,arguments)},addPlugin:function(oe){this._addPlugin(oe)},namespace:function(oe){return he(this.storage,this.plugins,oe)}};function ae(){var oe=typeof console=="undefined"?null:console;if(oe){var ne=oe.warn?oe.warn:oe.log;ne.apply(oe,arguments)}}function he(oe,ne,a){a||(a=""),oe&&!ie(oe)&&(oe=[oe]),ne&&!ie(ne)&&(ne=[ne]);var y=a?"__storejs_"+a+"_":"",E=a?new RegExp("^"+y):null,b=/^[a-zA-Z0-9_\-]*$/;if(!b.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var x={_namespacePrefix:y,_namespaceRegexp:E,_testStorage:function(re){try{var se="__storejs__test__";re.write(se,se);var ce=re.read(se)===se;return re.remove(se),ce}catch(pe){return!1}},_assignPluginFnProp:function(re,se){var ce=this[se];this[se]=function(){var Se=ge(arguments,0),Le=this;function Ee(){if(ce)return ye(arguments,function(Me,mt){Se[mt]=Me}),ce.apply(Le,Se)}var je=[Ee].concat(Se);return re.apply(Le,je)}},_serialize:function(re){return JSON.stringify(re)},_deserialize:function(re,se){if(!re)return se;var ce="";try{ce=JSON.parse(re)}catch(pe){ce=re}return ce!==void 0?ce:se},_addStorage:function(re){this.enabled||this._testStorage(re)&&(this.storage=re,this.enabled=!0)},_addPlugin:function(re){var se=this;if(ie(re)){ye(re,function(Se){se._addPlugin(Se)});return}var ce=be(this.plugins,function(Se){return re===Se});if(!ce){if(this.plugins.push(re),!de(re))throw new Error("Plugins must be function values that return objects");var pe=re.call(this);if(!le(pe))throw new Error("Plugins must return an object of function properties");ye(pe,function(Se,Le){if(!de(Se))throw new Error("Bad plugin property: "+Le+" from plugin "+re.name+". Plugins should only return functions.");se._assignPluginFnProp(Se,Le)})}},addStorage:function(re){ae("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(re)}},z=fe(x,me,{plugins:[]});return z.raw={},ye(z,function(re,se){de(re)&&(z.raw[se]=_e(z,re))}),ye(oe,function(re){z._addStorage(re)}),ye(ne,function(re){z._addPlugin(re)}),z}},67039:function(ft,Ve,te){var ee=_e(),ge=fe(),be=ie(),ye=typeof window!="undefined"?window:te.g;ft.exports={assign:ee,create:ge,trim:be,bind:de,slice:le,each:me,map:ae,pluck:he,isList:oe,isFunction:ne,isObject:a,Global:ye};function _e(){return Object.assign?Object.assign:function(E,b,x,z){for(var re=1;re<arguments.length;re++)me(Object(arguments[re]),function(se,ce){E[ce]=se});return E}}function fe(){if(Object.create)return function(b,x,z,re){var se=le(arguments,1);return ee.apply(this,[Object.create(b)].concat(se))};{let E=function(){};var y=E;return function(x,z,re,se){var ce=le(arguments,1);return E.prototype=x,ee.apply(this,[new E].concat(ce))}}}function ie(){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 de(y,E){return function(){return E.apply(y,Array.prototype.slice.call(arguments,0))}}function le(y,E){return Array.prototype.slice.call(y,E||0)}function me(y,E){he(y,function(b,x){return E(b,x),!1})}function ae(y,E){var b=oe(y)?[]:{};return he(y,function(x,z){return b[z]=E(x,z),!1}),b}function he(y,E){if(oe(y)){for(var b=0;b<y.length;b++)if(E(y[b],b))return y[b]}else for(var x in y)if(y.hasOwnProperty(x)&&E(y[x],x))return y[x]}function oe(y){return y!=null&&typeof y!="function"&&typeof y.length=="number"}function ne(y){return y&&{}.toString.call(y)==="[object Function]"}function a(y){return y&&{}.toString.call(y)==="[object Object]"}},97573:function(ft,Ve,te){ft.exports=[te(52496),te(16436),te(76673),te(35701),te(65578),te(65300)]},35701:function(ft,Ve,te){var ee=te(67039),ge=ee.Global,be=ee.trim;ft.exports={name:"cookieStorage",read:_e,write:ie,each:fe,remove:de,clearAll:le};var ye=ge.document;function _e(ae){if(!ae||!me(ae))return null;var he="(?:^|.*;\\s*)"+escape(ae).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(ye.cookie.replace(new RegExp(he),"$1"))}function fe(ae){for(var he=ye.cookie.split(/; ?/g),oe=he.length-1;oe>=0;oe--)if(be(he[oe])){var ne=he[oe].split("="),a=unescape(ne[0]),y=unescape(ne[1]);ae(y,a)}}function ie(ae,he){ae&&(ye.cookie=escape(ae)+"="+escape(he)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function de(ae){!ae||!me(ae)||(ye.cookie=escape(ae)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function le(){fe(function(ae,he){de(he)})}function me(ae){return new RegExp("(?:^|;\\s*)"+escape(ae).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(ye.cookie)}},52496:function(ft,Ve,te){var ee=te(67039),ge=ee.Global;ft.exports={name:"localStorage",read:ye,write:_e,each:fe,remove:ie,clearAll:de};function be(){return ge.localStorage}function ye(le){return be().getItem(le)}function _e(le,me){return be().setItem(le,me)}function fe(le){for(var me=be().length-1;me>=0;me--){var ae=be().key(me);le(ye(ae),ae)}}function ie(le){return be().removeItem(le)}function de(){return be().clear()}},65300:function(ft){ft.exports={name:"memoryStorage",read:te,write:ee,each:ge,remove:be,clearAll:ye};var Ve={};function te(_e){return Ve[_e]}function ee(_e,fe){Ve[_e]=fe}function ge(_e){for(var fe in Ve)Ve.hasOwnProperty(fe)&&_e(Ve[fe],fe)}function be(_e){delete Ve[_e]}function ye(_e){Ve={}}},16436:function(ft,Ve,te){var ee=te(67039),ge=ee.Global;ft.exports={name:"oldFF-globalStorage",read:ye,write:_e,each:fe,remove:ie,clearAll:de};var be=ge.globalStorage;function ye(le){return be[le]}function _e(le,me){be[le]=me}function fe(le){for(var me=be.length-1;me>=0;me--){var ae=be.key(me);le(be[ae],ae)}}function ie(le){return be.removeItem(le)}function de(){fe(function(le,me){delete be[le]})}},76673:function(ft,Ve,te){var ee=te(67039),ge=ee.Global;ft.exports={name:"oldIE-userDataStorage",write:ie,read:de,each:le,remove:me,clearAll:ae};var be="storejs",ye=ge.document,_e=ne(),fe=(ge.navigator?ge.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function ie(a,y){if(!fe){var E=oe(a);_e(function(b){b.setAttribute(E,y),b.save(be)})}}function de(a){if(!fe){var y=oe(a),E=null;return _e(function(b){E=b.getAttribute(y)}),E}}function le(a){_e(function(y){for(var E=y.XMLDocument.documentElement.attributes,b=E.length-1;b>=0;b--){var x=E[b];a(y.getAttribute(x.name),x.name)}})}function me(a){var y=oe(a);_e(function(E){E.removeAttribute(y),E.save(be)})}function ae(){_e(function(a){var y=a.XMLDocument.documentElement.attributes;a.load(be);for(var E=y.length-1;E>=0;E--)a.removeAttribute(y[E].name);a.save(be)})}var he=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function oe(a){return a.replace(/^\d/,"___$&").replace(he,"___")}function ne(){if(!ye||!ye.documentElement||!ye.documentElement.addBehavior)return null;var a="script",y,E,b;try{E=new ActiveXObject("htmlfile"),E.open(),E.write("<"+a+">document.w=window</"+a+'><iframe src="/favicon.ico"></iframe>'),E.close(),y=E.w.frames[0].document,b=y.createElement("div")}catch(x){b=ye.createElement("div"),y=ye.body}return function(x){var z=[].slice.call(arguments,0);z.unshift(b),y.appendChild(b),b.addBehavior("#default#userData"),b.load(be),x.apply(this,z),y.removeChild(b)}}},65578:function(ft,Ve,te){var ee=te(67039),ge=ee.Global;ft.exports={name:"sessionStorage",read:ye,write:_e,each:fe,remove:ie,clearAll:de};function be(){return ge.sessionStorage}function ye(le){return be().getItem(le)}function _e(le,me){return be().setItem(le,me)}function fe(le){for(var me=be().length-1;me>=0;me--){var ae=be().key(me);le(ye(ae),ae)}}function ie(le){return be().removeItem(le)}function de(){return be().clear()}},82059:function(ft){var Ve=arguments[3],te=arguments[4],ee=arguments[5],ge=JSON.stringify;ft.exports=function(be,ye){for(var _e,fe=Object.keys(ee),ie=0,de=fe.length;ie<de;ie++){var le=fe[ie],me=ee[le].exports;if(me===be||me&&me.default===be){_e=le;break}}if(!_e){_e=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ae={},ie=0,de=fe.length;ie<de;ie++){var le=fe[ie];ae[le]=le}te[_e]=["function(require,module,exports){"+be+"(self); }",ae]}var he=Math.floor(Math.pow(16,8)*Math.random()).toString(16),oe={};oe[_e]=_e,te[he]=["function(require,module,exports){var f = require("+ge(_e)+");(f.default ? f.default : f)(self);}",oe];var ne={};a(he);function a(re){ne[re]=!0;for(var se in te[re][1]){var ce=te[re][1][se];ne[ce]||a(ce)}}var y="("+Ve+")({"+Object.keys(ne).map(function(re){return ge(re)+":["+te[re][0]+","+ge(te[re][1])+"]"}).join(",")+"},{},["+ge(he)+"])",E=window.URL||window.webkitURL||window.mozURL||window.msURL,b=new Blob([y],{type:"text/javascript"});if(ye&&ye.bare)return b;var x=E.createObjectURL(b),z=new Worker(x);return z.objectURL=x,z}},34376:function(ft){(function(Ve,te){if(1)ft.exports=te();else var ee,ge})(window,function(){return function(Ve){var te={};function ee(ge){if(te[ge])return te[ge].exports;var be=te[ge]={i:ge,l:!1,exports:{}};return Ve[ge].call(be.exports,be,be.exports,ee),be.l=!0,be.exports}return ee.m=Ve,ee.c=te,ee.d=function(ge,be,ye){ee.o(ge,be)||Object.defineProperty(ge,be,{enumerable:!0,get:ye})},ee.r=function(ge){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(ge,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(ge,"__esModule",{value:!0})},ee.t=function(ge,be){if(1&be&&(ge=ee(ge)),8&be||4&be&&typeof ge=="object"&&ge&&ge.__esModule)return ge;var ye=Object.create(null);if(ee.r(ye),Object.defineProperty(ye,"default",{enumerable:!0,value:ge}),2&be&&typeof ge!="string")for(var _e in ge)ee.d(ye,_e,function(fe){return ge[fe]}.bind(null,_e));return ye},ee.n=function(ge){var be=ge&&ge.__esModule?function(){return ge.default}:function(){return ge};return ee.d(be,"a",be),be},ee.o=function(ge,be){return Object.prototype.hasOwnProperty.call(ge,be)},ee.p="",ee(ee.s=34)}([function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.forwardEvent=te.EventEmitter=void 0;var ge=function(){function be(){this._listeners=[],this._disposed=!1}return Object.defineProperty(be.prototype,"event",{get:function(){var ye=this;return this._event||(this._event=function(_e){return ye._listeners.push(_e),{dispose:function(){if(!ye._disposed){for(var fe=0;fe<ye._listeners.length;fe++)if(ye._listeners[fe]===_e)return void ye._listeners.splice(fe,1)}}}}),this._event},enumerable:!1,configurable:!0}),be.prototype.fire=function(ye,_e){for(var fe=[],ie=0;ie<this._listeners.length;ie++)fe.push(this._listeners[ie]);for(ie=0;ie<fe.length;ie++)fe[ie].call(void 0,ye,_e)},be.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},be}();te.EventEmitter=ge,te.forwardEvent=function(be,ye){return be(function(_e){return ye.fire(_e)})}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.IUnicodeService=te.IOptionsService=te.ILogService=te.IInstantiationService=te.IDirtyRowService=te.ICharsetService=te.ICoreService=te.ICoreMouseService=te.IBufferService=void 0;var ge=ee(14);te.IBufferService=ge.createDecorator("BufferService"),te.ICoreMouseService=ge.createDecorator("CoreMouseService"),te.ICoreService=ge.createDecorator("CoreService"),te.ICharsetService=ge.createDecorator("CharsetService"),te.IDirtyRowService=ge.createDecorator("DirtyRowService"),te.IInstantiationService=ge.createDecorator("InstantiationService"),te.ILogService=ge.createDecorator("LogService"),te.IOptionsService=ge.createDecorator("OptionsService"),te.IUnicodeService=ge.createDecorator("UnicodeService")},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.getDisposeArrayDisposable=te.disposeArray=te.Disposable=void 0;var ge=function(){function ye(){this._disposables=[],this._isDisposed=!1}return ye.prototype.dispose=function(){this._isDisposed=!0;for(var _e=0,fe=this._disposables;_e<fe.length;_e++)fe[_e].dispose();this._disposables.length=0},ye.prototype.register=function(_e){return this._disposables.push(_e),_e},ye.prototype.unregister=function(_e){var fe=this._disposables.indexOf(_e);fe!==-1&&this._disposables.splice(fe,1)},ye}();function be(ye){for(var _e=0,fe=ye;_e<fe.length;_e++)fe[_e].dispose();ye.length=0}te.Disposable=ge,te.disposeArray=be,te.getDisposeArrayDisposable=function(ye){return{dispose:function(){return be(ye)}}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WHITESPACE_CELL_CODE=te.WHITESPACE_CELL_WIDTH=te.WHITESPACE_CELL_CHAR=te.NULL_CELL_CODE=te.NULL_CELL_WIDTH=te.NULL_CELL_CHAR=te.CHAR_DATA_CODE_INDEX=te.CHAR_DATA_WIDTH_INDEX=te.CHAR_DATA_CHAR_INDEX=te.CHAR_DATA_ATTR_INDEX=te.DEFAULT_ATTR=te.DEFAULT_COLOR=void 0,te.DEFAULT_COLOR=256,te.DEFAULT_ATTR=256|te.DEFAULT_COLOR<<9,te.CHAR_DATA_ATTR_INDEX=0,te.CHAR_DATA_CHAR_INDEX=1,te.CHAR_DATA_WIDTH_INDEX=2,te.CHAR_DATA_CODE_INDEX=3,te.NULL_CELL_CHAR="",te.NULL_CELL_WIDTH=1,te.NULL_CELL_CODE=0,te.WHITESPACE_CELL_CHAR=" ",te.WHITESPACE_CELL_WIDTH=1,te.WHITESPACE_CELL_CODE=32},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(de,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ae){me.__proto__=ae}||function(me,ae){for(var he in ae)ae.hasOwnProperty(he)&&(me[he]=ae[he])})(de,le)},function(de,le){function me(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.CellData=void 0;var ye=ee(8),_e=ee(3),fe=ee(6),ie=function(de){function le(){var me=de!==null&&de.apply(this,arguments)||this;return me.content=0,me.fg=0,me.bg=0,me.extended=new fe.ExtendedAttrs,me.combinedData="",me}return be(le,de),le.fromCharData=function(me){var ae=new le;return ae.setFromCharData(me),ae},le.prototype.isCombined=function(){return 2097152&this.content},le.prototype.getWidth=function(){return this.content>>22},le.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?ye.stringFromCodePoint(2097151&this.content):""},le.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},le.prototype.setFromCharData=function(me){this.fg=me[_e.CHAR_DATA_ATTR_INDEX],this.bg=0;var ae=!1;if(me[_e.CHAR_DATA_CHAR_INDEX].length>2)ae=!0;else if(me[_e.CHAR_DATA_CHAR_INDEX].length===2){var he=me[_e.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=he&&he<=56319){var oe=me[_e.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=oe&&oe<=57343?this.content=1024*(he-55296)+oe-56320+65536|me[_e.CHAR_DATA_WIDTH_INDEX]<<22:ae=!0}else ae=!0}else this.content=me[_e.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|me[_e.CHAR_DATA_WIDTH_INDEX]<<22;ae&&(this.combinedData=me[_e.CHAR_DATA_CHAR_INDEX],this.content=2097152|me[_e.CHAR_DATA_WIDTH_INDEX]<<22)},le.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},le}(fe.AttributeData);te.CellData=ie},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ISoundService=te.ISelectionService=te.IRenderService=te.IMouseService=te.ICoreBrowserService=te.ICharSizeService=void 0;var ge=ee(14);te.ICharSizeService=ge.createDecorator("CharSizeService"),te.ICoreBrowserService=ge.createDecorator("CoreBrowserService"),te.IMouseService=ge.createDecorator("MouseService"),te.IRenderService=ge.createDecorator("RenderService"),te.ISelectionService=ge.createDecorator("SelectionService"),te.ISoundService=ge.createDecorator("SoundService")},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ExtendedAttrs=te.AttributeData=void 0;var ge=function(){function ye(){this.fg=0,this.bg=0,this.extended=new be}return ye.toColorRGB=function(_e){return[_e>>>16&255,_e>>>8&255,255&_e]},ye.fromColorRGB=function(_e){return(255&_e[0])<<16|(255&_e[1])<<8|255&_e[2]},ye.prototype.clone=function(){var _e=new ye;return _e.fg=this.fg,_e.bg=this.bg,_e.extended=this.extended.clone(),_e},ye.prototype.isInverse=function(){return 67108864&this.fg},ye.prototype.isBold=function(){return 134217728&this.fg},ye.prototype.isUnderline=function(){return 268435456&this.fg},ye.prototype.isBlink=function(){return 536870912&this.fg},ye.prototype.isInvisible=function(){return 1073741824&this.fg},ye.prototype.isItalic=function(){return 67108864&this.bg},ye.prototype.isDim=function(){return 134217728&this.bg},ye.prototype.getFgColorMode=function(){return 50331648&this.fg},ye.prototype.getBgColorMode=function(){return 50331648&this.bg},ye.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},ye.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},ye.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},ye.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},ye.prototype.isFgDefault=function(){return(50331648&this.fg)==0},ye.prototype.isBgDefault=function(){return(50331648&this.bg)==0},ye.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},ye.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},ye.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},ye.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},ye.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},ye.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()},ye.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},ye.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},ye.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},ye.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},ye.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},ye}();te.AttributeData=ge;var be=function(){function ye(_e,fe){_e===void 0&&(_e=0),fe===void 0&&(fe=-1),this.underlineStyle=_e,this.underlineColor=fe}return ye.prototype.clone=function(){return new ye(this.underlineStyle,this.underlineColor)},ye.prototype.isEmpty=function(){return this.underlineStyle===0},ye}();te.ExtendedAttrs=be},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.addDisposableDomListener=void 0,te.addDisposableDomListener=function(ge,be,ye,_e){ge.addEventListener(be,ye,_e);var fe=!1;return{dispose:function(){fe||(fe=!0,ge.removeEventListener(be,ye,_e))}}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Utf8ToUtf32=te.StringToUtf32=te.utf32ToString=te.stringFromCodePoint=void 0,te.stringFromCodePoint=function(ye){return ye>65535?(ye-=65536,String.fromCharCode(55296+(ye>>10))+String.fromCharCode(ye%1024+56320)):String.fromCharCode(ye)},te.utf32ToString=function(ye,_e,fe){_e===void 0&&(_e=0),fe===void 0&&(fe=ye.length);for(var ie="",de=_e;de<fe;++de){var le=ye[de];le>65535?(le-=65536,ie+=String.fromCharCode(55296+(le>>10))+String.fromCharCode(le%1024+56320)):ie+=String.fromCharCode(le)}return ie};var ge=function(){function ye(){this._interim=0}return ye.prototype.clear=function(){this._interim=0},ye.prototype.decode=function(_e,fe){var ie=_e.length;if(!ie)return 0;var de=0,le=0;this._interim&&(56320<=(he=_e.charCodeAt(le++))&&he<=57343?fe[de++]=1024*(this._interim-55296)+he-56320+65536:(fe[de++]=this._interim,fe[de++]=he),this._interim=0);for(var me=le;me<ie;++me){var ae=_e.charCodeAt(me);if(55296<=ae&&ae<=56319){if(++me>=ie)return this._interim=ae,de;var he;56320<=(he=_e.charCodeAt(me))&&he<=57343?fe[de++]=1024*(ae-55296)+he-56320+65536:(fe[de++]=ae,fe[de++]=he)}else fe[de++]=ae}return de},ye}();te.StringToUtf32=ge;var be=function(){function ye(){this.interim=new Uint8Array(3)}return ye.prototype.clear=function(){this.interim.fill(0)},ye.prototype.decode=function(_e,fe){var ie=_e.length;if(!ie)return 0;var de,le,me,ae,he=0,oe=0,ne=0;if(this.interim[0]){var a=!1,y=this.interim[0];y&=(224&y)==192?31:(240&y)==224?15:7;for(var E=0,b=void 0;(b=63&this.interim[++E])&&E<4;)y<<=6,y|=b;for(var x=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,z=x-E;ne<z;){if(ne>=ie)return 0;if((192&(b=_e[ne++]))!=128){ne--,a=!0;break}this.interim[E++]=b,y<<=6,y|=63&b}a||(x===2?y<128?ne--:fe[he++]=y:x===3?y<2048||y>=55296&&y<=57343||(fe[he++]=y):y<65536||y>1114111||(fe[he++]=y)),this.interim.fill(0)}for(var re=ie-4,se=ne;se<ie;){for(;!(!(se<re)||128&(de=_e[se])||128&(le=_e[se+1])||128&(me=_e[se+2])||128&(ae=_e[se+3]));)fe[he++]=de,fe[he++]=le,fe[he++]=me,fe[he++]=ae,se+=4;if((de=_e[se++])<128)fe[he++]=de;else if((224&de)==192){if(se>=ie)return this.interim[0]=de,he;if((192&(le=_e[se++]))!=128){se--;continue}if((oe=(31&de)<<6|63&le)<128){se--;continue}fe[he++]=oe}else if((240&de)==224){if(se>=ie)return this.interim[0]=de,he;if((192&(le=_e[se++]))!=128){se--;continue}if(se>=ie)return this.interim[0]=de,this.interim[1]=le,he;if((192&(me=_e[se++]))!=128){se--;continue}if((oe=(15&de)<<12|(63&le)<<6|63&me)<2048||oe>=55296&&oe<=57343)continue;fe[he++]=oe}else if((248&de)==240){if(se>=ie)return this.interim[0]=de,he;if((192&(le=_e[se++]))!=128){se--;continue}if(se>=ie)return this.interim[0]=de,this.interim[1]=le,he;if((192&(me=_e[se++]))!=128){se--;continue}if(se>=ie)return this.interim[0]=de,this.interim[1]=le,this.interim[2]=me,he;if((192&(ae=_e[se++]))!=128){se--;continue}if((oe=(7&de)<<18|(63&le)<<12|(63&me)<<6|63&ae)<65536||oe>1114111)continue;fe[he++]=oe}}return he},ye}();te.Utf8ToUtf32=be},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CHAR_ATLAS_CELL_SPACING=te.DIM_OPACITY=te.INVERTED_DEFAULT_COLOR=void 0,te.INVERTED_DEFAULT_COLOR=257,te.DIM_OPACITY=.5,te.CHAR_ATLAS_CELL_SPACING=1},function(Ve,te,ee){"use strict";var ge,be,ye,_e;function fe(de){var le=de.toString(16);return le.length<2?"0"+le:le}function ie(de,le){return de<le?(le+.05)/(de+.05):(de+.05)/(le+.05)}Object.defineProperty(te,"__esModule",{value:!0}),te.contrastRatio=te.toPaddedHex=te.rgba=te.rgb=te.css=te.color=te.channels=void 0,function(de){de.toCss=function(le,me,ae,he){return he!==void 0?"#"+fe(le)+fe(me)+fe(ae)+fe(he):"#"+fe(le)+fe(me)+fe(ae)},de.toRgba=function(le,me,ae,he){return he===void 0&&(he=255),(le<<24|me<<16|ae<<8|he)>>>0}}(ge=te.channels||(te.channels={})),(be=te.color||(te.color={})).blend=function(de,le){var me=(255&le.rgba)/255;if(me===1)return{css:le.css,rgba:le.rgba};var ae=le.rgba>>24&255,he=le.rgba>>16&255,oe=le.rgba>>8&255,ne=de.rgba>>24&255,a=de.rgba>>16&255,y=de.rgba>>8&255,E=ne+Math.round((ae-ne)*me),b=a+Math.round((he-a)*me),x=y+Math.round((oe-y)*me);return{css:ge.toCss(E,b,x),rgba:ge.toRgba(E,b,x)}},be.isOpaque=function(de){return(255&de.rgba)==255},be.ensureContrastRatio=function(de,le,me){var ae=_e.ensureContrastRatio(de.rgba,le.rgba,me);if(ae)return _e.toColor(ae>>24&255,ae>>16&255,ae>>8&255)},be.opaque=function(de){var le=(255|de.rgba)>>>0,me=_e.toChannels(le),ae=me[0],he=me[1],oe=me[2];return{css:ge.toCss(ae,he,oe),rgba:le}},be.opacity=function(de,le){var me=Math.round(255*le),ae=_e.toChannels(de.rgba),he=ae[0],oe=ae[1],ne=ae[2];return{css:ge.toCss(he,oe,ne,me),rgba:ge.toRgba(he,oe,ne,me)}},(te.css||(te.css={})).toColor=function(de){switch(de.length){case 7:return{css:de,rgba:(parseInt(de.slice(1),16)<<8|255)>>>0};case 9:return{css:de,rgba:parseInt(de.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(de){function le(me,ae,he){var oe=me/255,ne=ae/255,a=he/255;return .2126*(oe<=.03928?oe/12.92:Math.pow((oe+.055)/1.055,2.4))+.7152*(ne<=.03928?ne/12.92:Math.pow((ne+.055)/1.055,2.4))+.0722*(a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4))}de.relativeLuminance=function(me){return le(me>>16&255,me>>8&255,255&me)},de.relativeLuminance2=le}(ye=te.rgb||(te.rgb={})),function(de){function le(ae,he,oe){for(var ne=ae>>24&255,a=ae>>16&255,y=ae>>8&255,E=he>>24&255,b=he>>16&255,x=he>>8&255,z=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,a,y));z<oe&&(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=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}function me(ae,he,oe){for(var ne=ae>>24&255,a=ae>>16&255,y=ae>>8&255,E=he>>24&255,b=he>>16&255,x=he>>8&255,z=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,a,y));z<oe&&(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=ie(ye.relativeLuminance2(E,x,b),ye.relativeLuminance2(ne,a,y));return(E<<24|b<<16|x<<8|255)>>>0}de.ensureContrastRatio=function(ae,he,oe){var ne=ye.relativeLuminance(ae>>8),a=ye.relativeLuminance(he>>8);if(ie(ne,a)<oe)return a<ne?le(ae,he,oe):me(ae,he,oe)},de.reduceLuminance=le,de.increaseLuminance=me,de.toChannels=function(ae){return[ae>>24&255,ae>>16&255,ae>>8&255,255&ae]},de.toColor=function(ae,he,oe){return{css:ge.toCss(ae,he,oe),rgba:ge.toRgba(ae,he,oe)}}}(_e=te.rgba||(te.rgba={})),te.toPaddedHex=fe,te.contrastRatio=ie},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.isLinux=te.isWindows=te.isIphone=te.isIpad=te.isMac=te.isSafari=te.isFirefox=void 0;var ge=typeof navigator=="undefined",be=ge?"node":navigator.userAgent,ye=ge?"node":navigator.platform;function _e(fe,ie){return fe.indexOf(ie)>=0}te.isFirefox=!!~be.indexOf("Firefox"),te.isSafari=/^((?!chrome|android).)*safari/i.test(be),te.isMac=_e(["Macintosh","MacIntel","MacPPC","Mac68K"],ye),te.isIpad=ye==="iPad",te.isIphone=ye==="iPhone",te.isWindows=_e(["Windows","Win16","Win32","WinCE"],ye),te.isLinux=ye.indexOf("Linux")>=0},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.C1=te.C0=void 0,function(ge){ge.NUL="\0",ge.SOH="",ge.STX="",ge.ETX="",ge.EOT="",ge.ENQ="",ge.ACK="",ge.BEL="\x07",ge.BS="\b",ge.HT=" ",ge.LF=`
`,ge.VT="\v",ge.FF="\f",ge.CR="\r",ge.SO="",ge.SI="",ge.DLE="",ge.DC1="",ge.DC2="",ge.DC3="",ge.DC4="",ge.NAK="",ge.SYN="",ge.ETB="",ge.CAN="",ge.EM="",ge.SUB="",ge.ESC="\x1B",ge.FS="",ge.GS="",ge.RS="",ge.US="",ge.SP=" ",ge.DEL="\x7F"}(te.C0||(te.C0={})),function(ge){ge.PAD="\x80",ge.HOP="\x81",ge.BPH="\x82",ge.NBH="\x83",ge.IND="\x84",ge.NEL="\x85",ge.SSA="\x86",ge.ESA="\x87",ge.HTS="\x88",ge.HTJ="\x89",ge.VTS="\x8A",ge.PLD="\x8B",ge.PLU="\x8C",ge.RI="\x8D",ge.SS2="\x8E",ge.SS3="\x8F",ge.DCS="\x90",ge.PU1="\x91",ge.PU2="\x92",ge.STS="\x93",ge.CCH="\x94",ge.MW="\x95",ge.SPA="\x96",ge.EPA="\x97",ge.SOS="\x98",ge.SGCI="\x99",ge.SCI="\x9A",ge.CSI="\x9B",ge.ST="\x9C",ge.OSC="\x9D",ge.PM="\x9E",ge.APC="\x9F"}(te.C1||(te.C1={}))},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseRenderLayer=void 0;var ge=ee(3),be=ee(9),ye=ee(25),_e=ee(6),fe=ee(28),ie=ee(10),de=ee(17),le=function(){function me(ae,he,oe,ne,a,y,E,b){this._container=ae,this._alpha=ne,this._colors=a,this._rendererId=y,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=oe.toString(),this._initCanvas(),this._container.appendChild(this._canvas)}return me.prototype.dispose=function(){var ae;de.removeElementFromParent(this._canvas),(ae=this._charAtlas)===null||ae===void 0||ae.dispose()},me.prototype._initCanvas=function(){this._ctx=fe.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},me.prototype.onOptionsChanged=function(){},me.prototype.onBlur=function(){},me.prototype.onFocus=function(){},me.prototype.onCursorMove=function(){},me.prototype.onGridChanged=function(ae,he){},me.prototype.onSelectionChanged=function(ae,he,oe){oe===void 0&&(oe=!1)},me.prototype.setColors=function(ae){this._refreshCharAtlas(ae)},me.prototype._setTransparency=function(ae){if(ae!==this._alpha){var he=this._canvas;this._alpha=ae,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,he),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},me.prototype._refreshCharAtlas=function(ae){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=ye.acquireCharAtlas(this._optionsService.options,this._rendererId,ae,this._scaledCharWidth,this._scaledCharHeight),this._charAtlas.warmUp())},me.prototype.resize=function(ae){this._scaledCellWidth=ae.scaledCellWidth,this._scaledCellHeight=ae.scaledCellHeight,this._scaledCharWidth=ae.scaledCharWidth,this._scaledCharHeight=ae.scaledCharHeight,this._scaledCharLeft=ae.scaledCharLeft,this._scaledCharTop=ae.scaledCharTop,this._canvas.width=ae.scaledCanvasWidth,this._canvas.height=ae.scaledCanvasHeight,this._canvas.style.width=ae.canvasWidth+"px",this._canvas.style.height=ae.canvasHeight+"px",this._alpha||this._clearAll(),this._refreshCharAtlas(this._colors)},me.prototype._fillCells=function(ae,he,oe,ne){this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight)},me.prototype._fillBottomLineAtCells=function(ae,he,oe){oe===void 0&&(oe=1),this._ctx.fillRect(ae*this._scaledCellWidth,(he+1)*this._scaledCellHeight-window.devicePixelRatio-1,oe*this._scaledCellWidth,window.devicePixelRatio)},me.prototype._fillLeftLineAtCell=function(ae,he,oe){this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,window.devicePixelRatio*oe,this._scaledCellHeight)},me.prototype._strokeRectAtCell=function(ae,he,oe,ne){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(ae*this._scaledCellWidth+window.devicePixelRatio/2,he*this._scaledCellHeight+window.devicePixelRatio/2,oe*this._scaledCellWidth-window.devicePixelRatio,ne*this._scaledCellHeight-window.devicePixelRatio)},me.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))},me.prototype._clearCells=function(ae,he,oe,ne){this._alpha?this._ctx.clearRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(ae*this._scaledCellWidth,he*this._scaledCellHeight,oe*this._scaledCellWidth,ne*this._scaledCellHeight))},me.prototype._fillCharTrueColor=function(ae,he,oe){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(oe),this._ctx.fillText(ae.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},me.prototype._drawChars=function(ae,he,oe){var ne,a,y=this._getContrastColor(ae);y||ae.isFgRGB()||ae.isBgRGB()?this._drawUncachedChars(ae,he,oe,y):(ae.isInverse()?(ne=ae.isBgDefault()?be.INVERTED_DEFAULT_COLOR:ae.getBgColor(),a=ae.isFgDefault()?be.INVERTED_DEFAULT_COLOR:ae.getFgColor()):(a=ae.isBgDefault()?ge.DEFAULT_COLOR:ae.getBgColor(),ne=ae.isFgDefault()?ge.DEFAULT_COLOR:ae.getFgColor()),ne+=this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&ne<8?8:0,this._currentGlyphIdentifier.chars=ae.getChars()||ge.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=ae.getCode()||ge.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=a,this._currentGlyphIdentifier.fg=ne,this._currentGlyphIdentifier.bold=!!ae.isBold(),this._currentGlyphIdentifier.dim=!!ae.isDim(),this._currentGlyphIdentifier.italic=!!ae.isItalic(),this._charAtlas&&this._charAtlas.draw(this._ctx,this._currentGlyphIdentifier,he*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(ae,he,oe))},me.prototype._drawUncachedChars=function(ae,he,oe,ne){if(this._ctx.save(),this._ctx.font=this._getFont(!!ae.isBold(),!!ae.isItalic()),this._ctx.textBaseline="middle",ae.isInverse())if(ne)this._ctx.fillStyle=ne.css;else if(ae.isBgDefault())this._ctx.fillStyle=ie.color.opaque(this._colors.background).css;else if(ae.isBgRGB())this._ctx.fillStyle="rgb("+_e.AttributeData.toColorRGB(ae.getBgColor()).join(",")+")";else{var a=ae.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&a<8&&(a+=8),this._ctx.fillStyle=this._colors.ansi[a].css}else if(ne)this._ctx.fillStyle=ne.css;else if(ae.isFgDefault())this._ctx.fillStyle=this._colors.foreground.css;else if(ae.isFgRGB())this._ctx.fillStyle="rgb("+_e.AttributeData.toColorRGB(ae.getFgColor()).join(",")+")";else{var y=ae.getFgColor();this._optionsService.options.drawBoldTextInBrightColors&&ae.isBold()&&y<8&&(y+=8),this._ctx.fillStyle=this._colors.ansi[y].css}this._clipRow(oe),ae.isDim()&&(this._ctx.globalAlpha=be.DIM_OPACITY),this._ctx.fillText(ae.getChars(),he*this._scaledCellWidth+this._scaledCharLeft,oe*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},me.prototype._clipRow=function(ae){this._ctx.beginPath(),this._ctx.rect(0,ae*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},me.prototype._getFont=function(ae,he){return(he?"italic":"")+" "+(ae?this._optionsService.options.fontWeightBold:this._optionsService.options.fontWeight)+" "+this._optionsService.options.fontSize*window.devicePixelRatio+"px "+this._optionsService.options.fontFamily},me.prototype._getContrastColor=function(ae){if(this._optionsService.options.minimumContrastRatio!==1){var he=this._colors.contrastCache.getColor(ae.bg,ae.fg);if(he!==void 0)return he||void 0;var oe=ae.getFgColor(),ne=ae.getFgColorMode(),a=ae.getBgColor(),y=ae.getBgColorMode(),E=!!ae.isInverse(),b=!!ae.isInverse();if(E){var x=oe;oe=a,a=x;var z=ne;ne=y,y=z}var re=this._resolveBackgroundRgba(y,a,E),se=this._resolveForegroundRgba(ne,oe,E,b),ce=ie.rgba.ensureContrastRatio(re,se,this._optionsService.options.minimumContrastRatio);if(ce){var pe={css:ie.channels.toCss(ce>>24&255,ce>>16&255,ce>>8&255),rgba:ce};return this._colors.contrastCache.setColor(ae.bg,ae.fg,pe),pe}this._colors.contrastCache.setColor(ae.bg,ae.fg,null)}},me.prototype._resolveBackgroundRgba=function(ae,he,oe){switch(ae){case 16777216:case 33554432:return this._colors.ansi[he].rgba;case 50331648:return he<<8;case 0:default:return oe?this._colors.foreground.rgba:this._colors.background.rgba}},me.prototype._resolveForegroundRgba=function(ae,he,oe,ne){switch(ae){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 oe?this._colors.background.rgba:this._colors.foreground.rgba}},me}();te.BaseRenderLayer=le},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.createDecorator=te.getServiceDependencies=te.serviceRegistry=void 0;function ge(be,ye,_e){ye.di$target===ye?ye.di$dependencies.push({id:be,index:_e}):(ye.di$dependencies=[{id:be,index:_e}],ye.di$target=ye)}te.serviceRegistry=new Map,te.getServiceDependencies=function(be){return be.di$dependencies||[]},te.createDecorator=function(be){if(te.serviceRegistry.has(be))return te.serviceRegistry.get(be);var ye=function(_e,fe,ie){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ge(ye,_e,ie)};return ye.toString=function(){return be},te.serviceRegistry.set(be,ye),ye}},function(Ve,te,ee){"use strict";function ge(be,ye,_e,fe){if(_e===void 0&&(_e=0),fe===void 0&&(fe=be.length),_e>=be.length)return be;_e=(be.length+_e)%be.length,fe=fe>=be.length?be.length:(be.length+fe)%be.length;for(var ie=_e;ie<fe;++ie)be[ie]=ye;return be}Object.defineProperty(te,"__esModule",{value:!0}),te.concat=te.fillFallback=te.fill=void 0,te.fill=function(be,ye,_e,fe){return be.fill?be.fill(ye,_e,fe):ge(be,ye,_e,fe)},te.fillFallback=ge,te.concat=function(be,ye){var _e=new be.constructor(be.length+ye.length);return _e.set(be),_e.set(ye,be.length),_e}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferLine=te.DEFAULT_ATTR_DATA=void 0;var ge=ee(8),be=ee(3),ye=ee(4),_e=ee(6);te.DEFAULT_ATTR_DATA=Object.freeze(new _e.AttributeData);var fe=function(){function ie(de,le,me){me===void 0&&(me=!1),this.isWrapped=me,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*de);for(var ae=le||ye.CellData.fromCharData([0,be.NULL_CELL_CHAR,be.NULL_CELL_WIDTH,be.NULL_CELL_CODE]),he=0;he<de;++he)this.setCell(he,ae);this.length=de}return ie.prototype.get=function(de){var le=this._data[3*de+0],me=2097151&le;return[this._data[3*de+1],2097152&le?this._combined[de]:me?ge.stringFromCodePoint(me):"",le>>22,2097152&le?this._combined[de].charCodeAt(this._combined[de].length-1):me]},ie.prototype.set=function(de,le){this._data[3*de+1]=le[be.CHAR_DATA_ATTR_INDEX],le[be.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[de]=le[1],this._data[3*de+0]=2097152|de|le[be.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*de+0]=le[be.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|le[be.CHAR_DATA_WIDTH_INDEX]<<22},ie.prototype.getWidth=function(de){return this._data[3*de+0]>>22},ie.prototype.hasWidth=function(de){return 12582912&this._data[3*de+0]},ie.prototype.getFg=function(de){return this._data[3*de+1]},ie.prototype.getBg=function(de){return this._data[3*de+2]},ie.prototype.hasContent=function(de){return 4194303&this._data[3*de+0]},ie.prototype.getCodePoint=function(de){var le=this._data[3*de+0];return 2097152&le?this._combined[de].charCodeAt(this._combined[de].length-1):2097151&le},ie.prototype.isCombined=function(de){return 2097152&this._data[3*de+0]},ie.prototype.getString=function(de){var le=this._data[3*de+0];return 2097152&le?this._combined[de]:2097151&le?ge.stringFromCodePoint(2097151&le):""},ie.prototype.loadCell=function(de,le){var me=3*de;return le.content=this._data[me+0],le.fg=this._data[me+1],le.bg=this._data[me+2],2097152&le.content&&(le.combinedData=this._combined[de]),268435456&le.bg&&(le.extended=this._extendedAttrs[de]),le},ie.prototype.setCell=function(de,le){2097152&le.content&&(this._combined[de]=le.combinedData),268435456&le.bg&&(this._extendedAttrs[de]=le.extended),this._data[3*de+0]=le.content,this._data[3*de+1]=le.fg,this._data[3*de+2]=le.bg},ie.prototype.setCellFromCodePoint=function(de,le,me,ae,he,oe){268435456&he&&(this._extendedAttrs[de]=oe),this._data[3*de+0]=le|me<<22,this._data[3*de+1]=ae,this._data[3*de+2]=he},ie.prototype.addCodepointToCell=function(de,le){var me=this._data[3*de+0];2097152&me?this._combined[de]+=ge.stringFromCodePoint(le):(2097151&me?(this._combined[de]=ge.stringFromCodePoint(2097151&me)+ge.stringFromCodePoint(le),me&=-2097152,me|=2097152):me=le|1<<22,this._data[3*de+0]=me)},ie.prototype.insertCells=function(de,le,me,ae){if((de%=this.length)&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new _e.ExtendedAttrs),le<this.length-de){for(var he=new ye.CellData,oe=this.length-de-le-1;oe>=0;--oe)this.setCell(de+le+oe,this.loadCell(de+oe,he));for(oe=0;oe<le;++oe)this.setCell(de+oe,me)}else for(oe=de;oe<this.length;++oe)this.setCell(oe,me);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new _e.ExtendedAttrs)},ie.prototype.deleteCells=function(de,le,me,ae){if(de%=this.length,le<this.length-de){for(var he=new ye.CellData,oe=0;oe<this.length-de-le;++oe)this.setCell(de+oe,this.loadCell(de+le+oe,he));for(oe=this.length-le;oe<this.length;++oe)this.setCell(oe,me)}else for(oe=de;oe<this.length;++oe)this.setCell(oe,me);de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new _e.ExtendedAttrs),this.getWidth(de)!==0||this.hasContent(de)||this.setCellFromCodePoint(de,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new _e.ExtendedAttrs)},ie.prototype.replaceCells=function(de,le,me,ae){for(de&&this.getWidth(de-1)===2&&this.setCellFromCodePoint(de-1,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new _e.ExtendedAttrs),le<this.length&&this.getWidth(le-1)===2&&this.setCellFromCodePoint(le,0,1,(ae==null?void 0:ae.fg)||0,(ae==null?void 0:ae.bg)||0,(ae==null?void 0:ae.extended)||new _e.ExtendedAttrs);de<le&&de<this.length;)this.setCell(de++,me)},ie.prototype.resize=function(de,le){if(de!==this.length){if(de>this.length){var me=new Uint32Array(3*de);this.length&&(3*de<this._data.length?me.set(this._data.subarray(0,3*de)):me.set(this._data)),this._data=me;for(var ae=this.length;ae<de;++ae)this.setCell(ae,le)}else if(de){(me=new Uint32Array(3*de)).set(this._data.subarray(0,3*de)),this._data=me;var he=Object.keys(this._combined);for(ae=0;ae<he.length;ae++){var oe=parseInt(he[ae],10);oe>=de&&delete this._combined[oe]}}else this._data=new Uint32Array(0),this._combined={};this.length=de}},ie.prototype.fill=function(de){this._combined={},this._extendedAttrs={};for(var le=0;le<this.length;++le)this.setCell(le,de)},ie.prototype.copyFrom=function(de){for(var le in this.length!==de.length?this._data=new Uint32Array(de._data):this._data.set(de._data),this.length=de.length,this._combined={},de._combined)this._combined[le]=de._combined[le];for(var le in this._extendedAttrs={},de._extendedAttrs)this._extendedAttrs[le]=de._extendedAttrs[le];this.isWrapped=de.isWrapped},ie.prototype.clone=function(){var de=new ie(0);for(var le in de._data=new Uint32Array(this._data),de.length=this.length,this._combined)de._combined[le]=this._combined[le];for(var le in this._extendedAttrs)de._extendedAttrs[le]=this._extendedAttrs[le];return de.isWrapped=this.isWrapped,de},ie.prototype.getTrimmedLength=function(){for(var de=this.length-1;de>=0;--de)if(4194303&this._data[3*de+0])return de+(this._data[3*de+0]>>22);return 0},ie.prototype.copyCellsFrom=function(de,le,me,ae,he){var oe=de._data;if(he)for(var ne=ae-1;ne>=0;ne--)for(var a=0;a<3;a++)this._data[3*(me+ne)+a]=oe[3*(le+ne)+a];else for(ne=0;ne<ae;ne++)for(a=0;a<3;a++)this._data[3*(me+ne)+a]=oe[3*(le+ne)+a];var y=Object.keys(de._combined);for(a=0;a<y.length;a++){var E=parseInt(y[a],10);E>=le&&(this._combined[E-le+me]=de._combined[E])}},ie.prototype.translateToString=function(de,le,me){de===void 0&&(de=!1),le===void 0&&(le=0),me===void 0&&(me=this.length),de&&(me=Math.min(me,this.getTrimmedLength()));for(var ae="";le<me;){var he=this._data[3*le+0],oe=2097151&he;ae+=2097152&he?this._combined[le]:oe?ge.stringFromCodePoint(oe):be.WHITESPACE_CELL_CHAR,le+=he>>22||1}return ae},ie}();te.BufferLine=fe},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeElementFromParent=void 0,te.removeElementFromParent=function(){for(var ge,be=[],ye=0;ye<arguments.length;ye++)be[ye]=arguments[ye];for(var _e=0,fe=be;_e<fe.length;_e++){var ie=fe[_e];(ge=ie==null?void 0:ie.parentElement)===null||ge===void 0||ge.removeChild(ie)}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.tooMuchOutput=te.promptLabel=void 0,te.promptLabel="Terminal input",te.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(se,ce){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,Se){pe.__proto__=Se}||function(pe,Se){for(var Le in Se)Se.hasOwnProperty(Le)&&(pe[Le]=Se[Le])})(se,ce)},function(se,ce){function pe(){this.constructor=se}ge(se,ce),se.prototype=ce===null?Object.create(ce):(pe.prototype=ce.prototype,new pe)});Object.defineProperty(te,"__esModule",{value:!0}),te.InputHandler=te.WindowsOptionsReportType=void 0;var ye,_e=ee(12),fe=ee(20),ie=ee(39),de=ee(2),le=ee(15),me=ee(8),ae=ee(16),he=ee(0),oe=ee(3),ne=ee(4),a=ee(6),y=ee(22),E=ee(24),b={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function x(se,ce){if(se>24)return ce.setWinLines||!1;switch(se){case 1:return!!ce.restoreWin;case 2:return!!ce.minimizeWin;case 3:return!!ce.setWinPosition;case 4:return!!ce.setWinSizePixels;case 5:return!!ce.raiseWin;case 6:return!!ce.lowerWin;case 7:return!!ce.refreshWin;case 8:return!!ce.setWinSizeChars;case 9:return!!ce.maximizeWin;case 10:return!!ce.fullscreenWin;case 11:return!!ce.getWinState;case 13:return!!ce.getWinPosition;case 14:return!!ce.getWinSizePixels;case 15:return!!ce.getScreenSizePixels;case 16:return!!ce.getCellSizePixels;case 18:return!!ce.getWinSizeChars;case 19:return!!ce.getScreenSizeChars;case 20:return!!ce.getIconTitle;case 21:return!!ce.getWinTitle;case 22:return!!ce.pushTitle;case 23:return!!ce.popTitle;case 24:return!!ce.setWinLines}return!1}(function(se){se[se.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",se[se.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(ye=te.WindowsOptionsReportType||(te.WindowsOptionsReportType={}));var z=function(){function se(ce,pe,Se,Le){this._bufferService=ce,this._coreService=pe,this._logService=Se,this._optionsService=Le,this._data=new Uint32Array(0)}return se.prototype.hook=function(ce){this._data=new Uint32Array(0)},se.prototype.put=function(ce,pe,Se){this._data=le.concat(this._data,ce.subarray(pe,Se))},se.prototype.unhook=function(ce){if(ce){var pe=me.utf32ToString(this._data);switch(this._data=new Uint32Array(0),pe){case'"q':return this._coreService.triggerDataEvent(_e.C0.ESC+'P1$r0"q'+_e.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(_e.C0.ESC+'P1$r61;1"p'+_e.C0.ESC+"\\");case"r":var Se=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(_e.C0.ESC+"P1$r"+Se+_e.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(_e.C0.ESC+"P1$r0m"+_e.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(_e.C0.ESC+"P1$r"+Le+" q"+_e.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",pe),this._coreService.triggerDataEvent(_e.C0.ESC+"P0$r"+_e.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},se}(),re=function(se){function ce(pe,Se,Le,Ee,je,Me,mt,Xe,pt){pt===void 0&&(pt=new ie.EscapeSequenceParser);var we=se.call(this)||this;we._bufferService=pe,we._charsetService=Se,we._coreService=Le,we._dirtyRowService=Ee,we._logService=je,we._optionsService=Me,we._coreMouseService=mt,we._unicodeService=Xe,we._parser=pt,we._parseBuffer=new Uint32Array(4096),we._stringDecoder=new me.StringToUtf32,we._utf8Decoder=new me.Utf8ToUtf32,we._workCell=new ne.CellData,we._windowTitle="",we._iconName="",we._windowTitleStack=[],we._iconNameStack=[],we._curAttrData=ae.DEFAULT_ATTR_DATA.clone(),we._eraseAttrDataInternal=ae.DEFAULT_ATTR_DATA.clone(),we._onRequestBell=new he.EventEmitter,we._onRequestRefreshRows=new he.EventEmitter,we._onRequestReset=new he.EventEmitter,we._onRequestScroll=new he.EventEmitter,we._onRequestSyncScrollBar=new he.EventEmitter,we._onRequestWindowsOptionsReport=new he.EventEmitter,we._onA11yChar=new he.EventEmitter,we._onA11yTab=new he.EventEmitter,we._onCursorMove=new he.EventEmitter,we._onLineFeed=new he.EventEmitter,we._onScroll=new he.EventEmitter,we._onTitleChange=new he.EventEmitter,we.register(we._parser),we._parser.setCsiHandlerFallback(function(Ke,ht){we._logService.debug("Unknown CSI code: ",{identifier:we._parser.identToString(Ke),params:ht.toArray()})}),we._parser.setEscHandlerFallback(function(Ke){we._logService.debug("Unknown ESC code: ",{identifier:we._parser.identToString(Ke)})}),we._parser.setExecuteHandlerFallback(function(Ke){we._logService.debug("Unknown EXECUTE code: ",{code:Ke})}),we._parser.setOscHandlerFallback(function(Ke,ht,_t){we._logService.debug("Unknown OSC code: ",{identifier:Ke,action:ht,data:_t})}),we._parser.setDcsHandlerFallback(function(Ke,ht,_t){ht==="HOOK"&&(_t=_t.toArray()),we._logService.debug("Unknown DCS code: ",{identifier:we._parser.identToString(Ke),action:ht,payload:_t})}),we._parser.setPrintHandler(function(Ke,ht,_t){return we.print(Ke,ht,_t)}),we._parser.setCsiHandler({final:"@"},function(Ke){return we.insertChars(Ke)}),we._parser.setCsiHandler({intermediates:" ",final:"@"},function(Ke){return we.scrollLeft(Ke)}),we._parser.setCsiHandler({final:"A"},function(Ke){return we.cursorUp(Ke)}),we._parser.setCsiHandler({intermediates:" ",final:"A"},function(Ke){return we.scrollRight(Ke)}),we._parser.setCsiHandler({final:"B"},function(Ke){return we.cursorDown(Ke)}),we._parser.setCsiHandler({final:"C"},function(Ke){return we.cursorForward(Ke)}),we._parser.setCsiHandler({final:"D"},function(Ke){return we.cursorBackward(Ke)}),we._parser.setCsiHandler({final:"E"},function(Ke){return we.cursorNextLine(Ke)}),we._parser.setCsiHandler({final:"F"},function(Ke){return we.cursorPrecedingLine(Ke)}),we._parser.setCsiHandler({final:"G"},function(Ke){return we.cursorCharAbsolute(Ke)}),we._parser.setCsiHandler({final:"H"},function(Ke){return we.cursorPosition(Ke)}),we._parser.setCsiHandler({final:"I"},function(Ke){return we.cursorForwardTab(Ke)}),we._parser.setCsiHandler({final:"J"},function(Ke){return we.eraseInDisplay(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"J"},function(Ke){return we.eraseInDisplay(Ke)}),we._parser.setCsiHandler({final:"K"},function(Ke){return we.eraseInLine(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"K"},function(Ke){return we.eraseInLine(Ke)}),we._parser.setCsiHandler({final:"L"},function(Ke){return we.insertLines(Ke)}),we._parser.setCsiHandler({final:"M"},function(Ke){return we.deleteLines(Ke)}),we._parser.setCsiHandler({final:"P"},function(Ke){return we.deleteChars(Ke)}),we._parser.setCsiHandler({final:"S"},function(Ke){return we.scrollUp(Ke)}),we._parser.setCsiHandler({final:"T"},function(Ke){return we.scrollDown(Ke)}),we._parser.setCsiHandler({final:"X"},function(Ke){return we.eraseChars(Ke)}),we._parser.setCsiHandler({final:"Z"},function(Ke){return we.cursorBackwardTab(Ke)}),we._parser.setCsiHandler({final:"`"},function(Ke){return we.charPosAbsolute(Ke)}),we._parser.setCsiHandler({final:"a"},function(Ke){return we.hPositionRelative(Ke)}),we._parser.setCsiHandler({final:"b"},function(Ke){return we.repeatPrecedingCharacter(Ke)}),we._parser.setCsiHandler({final:"c"},function(Ke){return we.sendDeviceAttributesPrimary(Ke)}),we._parser.setCsiHandler({prefix:">",final:"c"},function(Ke){return we.sendDeviceAttributesSecondary(Ke)}),we._parser.setCsiHandler({final:"d"},function(Ke){return we.linePosAbsolute(Ke)}),we._parser.setCsiHandler({final:"e"},function(Ke){return we.vPositionRelative(Ke)}),we._parser.setCsiHandler({final:"f"},function(Ke){return we.hVPosition(Ke)}),we._parser.setCsiHandler({final:"g"},function(Ke){return we.tabClear(Ke)}),we._parser.setCsiHandler({final:"h"},function(Ke){return we.setMode(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"h"},function(Ke){return we.setModePrivate(Ke)}),we._parser.setCsiHandler({final:"l"},function(Ke){return we.resetMode(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"l"},function(Ke){return we.resetModePrivate(Ke)}),we._parser.setCsiHandler({final:"m"},function(Ke){return we.charAttributes(Ke)}),we._parser.setCsiHandler({final:"n"},function(Ke){return we.deviceStatus(Ke)}),we._parser.setCsiHandler({prefix:"?",final:"n"},function(Ke){return we.deviceStatusPrivate(Ke)}),we._parser.setCsiHandler({intermediates:"!",final:"p"},function(Ke){return we.softReset(Ke)}),we._parser.setCsiHandler({intermediates:" ",final:"q"},function(Ke){return we.setCursorStyle(Ke)}),we._parser.setCsiHandler({final:"r"},function(Ke){return we.setScrollRegion(Ke)}),we._parser.setCsiHandler({final:"s"},function(Ke){return we.saveCursor(Ke)}),we._parser.setCsiHandler({final:"t"},function(Ke){return we.windowOptions(Ke)}),we._parser.setCsiHandler({final:"u"},function(Ke){return we.restoreCursor(Ke)}),we._parser.setCsiHandler({intermediates:"'",final:"}"},function(Ke){return we.insertColumns(Ke)}),we._parser.setCsiHandler({intermediates:"'",final:"~"},function(Ke){return we.deleteColumns(Ke)}),we._parser.setExecuteHandler(_e.C0.BEL,function(){return we.bell()}),we._parser.setExecuteHandler(_e.C0.LF,function(){return we.lineFeed()}),we._parser.setExecuteHandler(_e.C0.VT,function(){return we.lineFeed()}),we._parser.setExecuteHandler(_e.C0.FF,function(){return we.lineFeed()}),we._parser.setExecuteHandler(_e.C0.CR,function(){return we.carriageReturn()}),we._parser.setExecuteHandler(_e.C0.BS,function(){return we.backspace()}),we._parser.setExecuteHandler(_e.C0.HT,function(){return we.tab()}),we._parser.setExecuteHandler(_e.C0.SO,function(){return we.shiftOut()}),we._parser.setExecuteHandler(_e.C0.SI,function(){return we.shiftIn()}),we._parser.setExecuteHandler(_e.C1.IND,function(){return we.index()}),we._parser.setExecuteHandler(_e.C1.NEL,function(){return we.nextLine()}),we._parser.setExecuteHandler(_e.C1.HTS,function(){return we.tabSet()}),we._parser.setOscHandler(0,new y.OscHandler(function(Ke){we.setTitle(Ke),we.setIconName(Ke)})),we._parser.setOscHandler(1,new y.OscHandler(function(Ke){return we.setIconName(Ke)})),we._parser.setOscHandler(2,new y.OscHandler(function(Ke){return we.setTitle(Ke)})),we._parser.setEscHandler({final:"7"},function(){return we.saveCursor()}),we._parser.setEscHandler({final:"8"},function(){return we.restoreCursor()}),we._parser.setEscHandler({final:"D"},function(){return we.index()}),we._parser.setEscHandler({final:"E"},function(){return we.nextLine()}),we._parser.setEscHandler({final:"H"},function(){return we.tabSet()}),we._parser.setEscHandler({final:"M"},function(){return we.reverseIndex()}),we._parser.setEscHandler({final:"="},function(){return we.keypadApplicationMode()}),we._parser.setEscHandler({final:">"},function(){return we.keypadNumericMode()}),we._parser.setEscHandler({final:"c"},function(){return we.fullReset()}),we._parser.setEscHandler({final:"n"},function(){return we.setgLevel(2)}),we._parser.setEscHandler({final:"o"},function(){return we.setgLevel(3)}),we._parser.setEscHandler({final:"|"},function(){return we.setgLevel(3)}),we._parser.setEscHandler({final:"}"},function(){return we.setgLevel(2)}),we._parser.setEscHandler({final:"~"},function(){return we.setgLevel(1)}),we._parser.setEscHandler({intermediates:"%",final:"@"},function(){return we.selectDefaultCharset()}),we._parser.setEscHandler({intermediates:"%",final:"G"},function(){return we.selectDefaultCharset()});var Fe=function(Ke){He._parser.setEscHandler({intermediates:"(",final:Ke},function(){return we.selectCharset("("+Ke)}),He._parser.setEscHandler({intermediates:")",final:Ke},function(){return we.selectCharset(")"+Ke)}),He._parser.setEscHandler({intermediates:"*",final:Ke},function(){return we.selectCharset("*"+Ke)}),He._parser.setEscHandler({intermediates:"+",final:Ke},function(){return we.selectCharset("+"+Ke)}),He._parser.setEscHandler({intermediates:"-",final:Ke},function(){return we.selectCharset("-"+Ke)}),He._parser.setEscHandler({intermediates:".",final:Ke},function(){return we.selectCharset("."+Ke)}),He._parser.setEscHandler({intermediates:"/",final:Ke},function(){return we.selectCharset("/"+Ke)})},He=this;for(var it in fe.CHARSETS)Fe(it);return we._parser.setEscHandler({intermediates:"#",final:"8"},function(){return we.screenAlignmentPattern()}),we._parser.setErrorHandler(function(Ke){return we._logService.error("Parsing error: ",Ke),Ke}),we._parser.setDcsHandler({intermediates:"$",final:"q"},new z(we._bufferService,we._coreService,we._logService,we._optionsService)),we}return be(ce,se),Object.defineProperty(ce.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(ce.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),ce.prototype.dispose=function(){se.prototype.dispose.call(this)},ce.prototype.parse=function(pe){var Se=this._bufferService.buffer,Le=Se.x,Ee=Se.y;if(this._logService.debug("parsing data",pe),this._parseBuffer.length<pe.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(pe.length,131072))),this._dirtyRowService.clearRange(),pe.length>131072)for(var je=0;je<pe.length;je+=131072){var Me=je+131072<pe.length?je+131072:pe.length,mt=typeof pe=="string"?this._stringDecoder.decode(pe.substring(je,Me),this._parseBuffer):this._utf8Decoder.decode(pe.subarray(je,Me),this._parseBuffer);this._parser.parse(this._parseBuffer,mt)}else mt=typeof pe=="string"?this._stringDecoder.decode(pe,this._parseBuffer):this._utf8Decoder.decode(pe,this._parseBuffer),this._parser.parse(this._parseBuffer,mt);(Se=this._bufferService.buffer).x===Le&&Se.y===Ee||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},ce.prototype.print=function(pe,Se,Le){var Ee,je,Me=this._bufferService.buffer,mt=this._charsetService.charset,Xe=this._optionsService.options.screenReaderMode,pt=this._bufferService.cols,we=this._coreService.decPrivateModes.wraparound,Fe=this._coreService.modes.insertMode,He=this._curAttrData,it=Me.lines.get(Me.ybase+Me.y);this._dirtyRowService.markDirty(Me.y),Me.x&&Le-Se>0&&it.getWidth(Me.x-1)===2&&it.setCellFromCodePoint(Me.x-1,0,1,He.fg,He.bg,He.extended);for(var Ke=Se;Ke<Le;++Ke){if(Ee=pe[Ke],je=this._unicodeService.wcwidth(Ee),Ee<127&&mt){var ht=mt[String.fromCharCode(Ee)];ht&&(Ee=ht.charCodeAt(0))}if(Xe&&this._onA11yChar.fire(me.stringFromCodePoint(Ee)),je||!Me.x){if(Me.x+je-1>=pt){if(we){for(;Me.x<pt;)it.setCellFromCodePoint(Me.x++,0,1,He.fg,He.bg,He.extended);Me.x=0,Me.y++,Me.y===Me.scrollBottom+1?(Me.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(Me.y>=this._bufferService.rows&&(Me.y=this._bufferService.rows-1),Me.lines.get(Me.ybase+Me.y).isWrapped=!0),it=Me.lines.get(Me.ybase+Me.y)}else if(Me.x=pt-1,je===2)continue}if(Fe&&(it.insertCells(Me.x,je,Me.getNullCell(He),He),it.getWidth(pt-1)===2&&it.setCellFromCodePoint(pt-1,oe.NULL_CELL_CODE,oe.NULL_CELL_WIDTH,He.fg,He.bg,He.extended)),it.setCellFromCodePoint(Me.x++,Ee,je,He.fg,He.bg,He.extended),je>0)for(;--je;)it.setCellFromCodePoint(Me.x++,0,0,He.fg,He.bg,He.extended)}else it.getWidth(Me.x-1)?it.addCodepointToCell(Me.x-1,Ee):it.addCodepointToCell(Me.x-2,Ee)}Le-Se>0&&(it.loadCell(Me.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),Me.x<pt&&Le-Se>0&&it.getWidth(Me.x)===0&&!it.hasContent(Me.x)&&it.setCellFromCodePoint(Me.x,0,1,He.fg,He.bg,He.extended),this._dirtyRowService.markDirty(Me.y)},ce.prototype.addCsiHandler=function(pe,Se){var Le=this;return pe.final!=="t"||pe.prefix||pe.intermediates?this._parser.addCsiHandler(pe,Se):this._parser.addCsiHandler(pe,function(Ee){return!x(Ee.params[0],Le._optionsService.options.windowOptions)||Se(Ee)})},ce.prototype.addDcsHandler=function(pe,Se){return this._parser.addDcsHandler(pe,new E.DcsHandler(Se))},ce.prototype.addEscHandler=function(pe,Se){return this._parser.addEscHandler(pe,Se)},ce.prototype.addOscHandler=function(pe,Se){return this._parser.addOscHandler(pe,new y.OscHandler(Se))},ce.prototype.bell=function(){this._onRequestBell.fire()},ce.prototype.lineFeed=function(){var pe=this._bufferService.buffer;this._dirtyRowService.markDirty(pe.y),this._optionsService.options.convertEol&&(pe.x=0),pe.y++,pe.y===pe.scrollBottom+1?(pe.y--,this._onRequestScroll.fire(this._eraseAttrData())):pe.y>=this._bufferService.rows&&(pe.y=this._bufferService.rows-1),pe.x>=this._bufferService.cols&&pe.x--,this._dirtyRowService.markDirty(pe.y),this._onLineFeed.fire()},ce.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},ce.prototype.backspace=function(){var pe,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&&(!((pe=Se.lines.get(Se.ybase+Se.y))===null||pe===void 0)&&pe.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()},ce.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var pe=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-pe)}},ce.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},ce.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},ce.prototype._restrictCursor=function(pe){pe===void 0&&(pe=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(pe,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)},ce.prototype._setCursor=function(pe,Se){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=pe,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+Se):(this._bufferService.buffer.x=pe,this._bufferService.buffer.y=Se),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},ce.prototype._moveCursor=function(pe,Se){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+pe,this._bufferService.buffer.y+Se)},ce.prototype.cursorUp=function(pe){var Se=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;Se>=0?this._moveCursor(0,-Math.min(Se,pe.params[0]||1)):this._moveCursor(0,-(pe.params[0]||1))},ce.prototype.cursorDown=function(pe){var Se=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;Se>=0?this._moveCursor(0,Math.min(Se,pe.params[0]||1)):this._moveCursor(0,pe.params[0]||1)},ce.prototype.cursorForward=function(pe){this._moveCursor(pe.params[0]||1,0)},ce.prototype.cursorBackward=function(pe){this._moveCursor(-(pe.params[0]||1),0)},ce.prototype.cursorNextLine=function(pe){this.cursorDown(pe),this._bufferService.buffer.x=0},ce.prototype.cursorPrecedingLine=function(pe){this.cursorUp(pe),this._bufferService.buffer.x=0},ce.prototype.cursorCharAbsolute=function(pe){this._setCursor((pe.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.cursorPosition=function(pe){this._setCursor(pe.length>=2?(pe.params[1]||1)-1:0,(pe.params[0]||1)-1)},ce.prototype.charPosAbsolute=function(pe){this._setCursor((pe.params[0]||1)-1,this._bufferService.buffer.y)},ce.prototype.hPositionRelative=function(pe){this._moveCursor(pe.params[0]||1,0)},ce.prototype.linePosAbsolute=function(pe){this._setCursor(this._bufferService.buffer.x,(pe.params[0]||1)-1)},ce.prototype.vPositionRelative=function(pe){this._moveCursor(0,pe.params[0]||1)},ce.prototype.hVPosition=function(pe){this.cursorPosition(pe)},ce.prototype.tabClear=function(pe){var Se=pe.params[0];Se===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:Se===3&&(this._bufferService.buffer.tabs={})},ce.prototype.cursorForwardTab=function(pe){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Se=pe.params[0]||1;Se--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},ce.prototype.cursorBackwardTab=function(pe){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var Se=pe.params[0]||1,Le=this._bufferService.buffer;Se--;)Le.x=Le.prevStop()},ce.prototype._eraseInBufferLine=function(pe,Se,Le,Ee){Ee===void 0&&(Ee=!1);var je=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+pe);je.replaceCells(Se,Le,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),Ee&&(je.isWrapped=!1)},ce.prototype._resetBufferLine=function(pe){var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+pe);Se.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),Se.isWrapped=!1},ce.prototype.eraseInDisplay=function(pe){var Se;switch(this._restrictCursor(),pe.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))}},ce.prototype.eraseInLine=function(pe){switch(this._restrictCursor(),pe.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)},ce.prototype.insertLines=function(pe){this._restrictCursor();var Se=pe.params[0]||1,Le=this._bufferService.buffer;if(!(Le.y>Le.scrollBottom||Le.y<Le.scrollTop)){for(var Ee=Le.ybase+Le.y,je=this._bufferService.rows-1-Le.scrollBottom,Me=this._bufferService.rows-1+Le.ybase-je+1;Se--;)Le.lines.splice(Me-1,1),Le.lines.splice(Ee,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.y,Le.scrollBottom),Le.x=0}},ce.prototype.deleteLines=function(pe){this._restrictCursor();var Se=pe.params[0]||1,Le=this._bufferService.buffer;if(!(Le.y>Le.scrollBottom||Le.y<Le.scrollTop)){var Ee,je=Le.ybase+Le.y;for(Ee=this._bufferService.rows-1-Le.scrollBottom,Ee=this._bufferService.rows-1+Le.ybase-Ee;Se--;)Le.lines.splice(je,1),Le.lines.splice(Ee,0,Le.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(Le.y,Le.scrollBottom),Le.x=0}},ce.prototype.insertChars=function(pe){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.insertCells(this._bufferService.buffer.x,pe.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.deleteChars=function(pe){this._restrictCursor();var Se=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);Se&&(Se.deleteCells(this._bufferService.buffer.x,pe.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.scrollUp=function(pe){for(var Se=pe.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)},ce.prototype.scrollDown=function(pe){for(var Se=pe.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(ae.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(Le.scrollTop,Le.scrollBottom)},ce.prototype.scrollLeft=function(pe){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=pe.params[0]||1,Ee=Se.scrollTop;Ee<=Se.scrollBottom;++Ee){var je=Se.lines.get(Se.ybase+Ee);je.deleteCells(0,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},ce.prototype.scrollRight=function(pe){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=pe.params[0]||1,Ee=Se.scrollTop;Ee<=Se.scrollBottom;++Ee){var je=Se.lines.get(Se.ybase+Ee);je.insertCells(0,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},ce.prototype.insertColumns=function(pe){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=pe.params[0]||1,Ee=Se.scrollTop;Ee<=Se.scrollBottom;++Ee){var je=this._bufferService.buffer.lines.get(Se.ybase+Ee);je.insertCells(Se.x,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},ce.prototype.deleteColumns=function(pe){var Se=this._bufferService.buffer;if(!(Se.y>Se.scrollBottom||Se.y<Se.scrollTop)){for(var Le=pe.params[0]||1,Ee=Se.scrollTop;Ee<=Se.scrollBottom;++Ee){var je=Se.lines.get(Se.ybase+Ee);je.deleteCells(Se.x,Le,Se.getNullCell(this._eraseAttrData()),this._eraseAttrData()),je.isWrapped=!1}this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom)}},ce.prototype.eraseChars=function(pe){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+(pe.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},ce.prototype.repeatPrecedingCharacter=function(pe){if(this._parser.precedingCodepoint){for(var Se=pe.params[0]||1,Le=new Uint32Array(Se),Ee=0;Ee<Se;++Ee)Le[Ee]=this._parser.precedingCodepoint;this.print(Le,0,Le.length)}},ce.prototype.sendDeviceAttributesPrimary=function(pe){pe.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(_e.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(_e.C0.ESC+"[?6c"))},ce.prototype.sendDeviceAttributesSecondary=function(pe){pe.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(_e.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(_e.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(pe.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(_e.C0.ESC+"[>83;40003;0c"))},ce.prototype._is=function(pe){return(this._optionsService.options.termName+"").indexOf(pe)===0},ce.prototype.setMode=function(pe){for(var Se=0;Se<pe.length;Se++)switch(pe.params[Se]){case 4:this._coreService.modes.insertMode=!0}},ce.prototype.setModePrivate=function(pe){for(var Se=0;Se<pe.length;Se++)switch(pe.params[Se]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(1,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(2,fe.DEFAULT_CHARSET),this._charsetService.setgCharset(3,fe.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}},ce.prototype.resetMode=function(pe){for(var Se=0;Se<pe.length;Se++)switch(pe.params[Se]){case 4:this._coreService.modes.insertMode=!1}},ce.prototype.resetModePrivate=function(pe){for(var Se=0;Se<pe.length;Se++)switch(pe.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(),pe.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}},ce.prototype._updateAttrColor=function(pe,Se,Le,Ee,je){return Se===2?(pe|=50331648,pe&=-16777216,pe|=a.AttributeData.fromColorRGB([Le,Ee,je])):Se===5&&(pe&=-50331904,pe|=33554432|255&Le),pe},ce.prototype._extractColor=function(pe,Se,Le){var Ee=[0,0,-1,0,0,0],je=0,Me=0;do{if(Ee[Me+je]=pe.params[Se+Me],pe.hasSubParams(Se+Me)){var mt=pe.getSubParams(Se+Me),Xe=0;do Ee[1]===5&&(je=1),Ee[Me+Xe+1+je]=mt[Xe];while(++Xe<mt.length&&Xe+Me+1+je<Ee.length);break}if(Ee[1]===5&&Me+je>=2||Ee[1]===2&&Me+je>=5)break;Ee[1]&&(je=1)}while(++Me+Se<pe.length&&Me+je<Ee.length);for(Xe=2;Xe<Ee.length;++Xe)Ee[Xe]===-1&&(Ee[Xe]=0);switch(Ee[0]){case 38:Le.fg=this._updateAttrColor(Le.fg,Ee[1],Ee[3],Ee[4],Ee[5]);break;case 48:Le.bg=this._updateAttrColor(Le.bg,Ee[1],Ee[3],Ee[4],Ee[5]);break;case 58:Le.extended=Le.extended.clone(),Le.extended.underlineColor=this._updateAttrColor(Le.extended.underlineColor,Ee[1],Ee[3],Ee[4],Ee[5])}return Me},ce.prototype._processUnderline=function(pe,Se){Se.extended=Se.extended.clone(),(!~pe||pe>5)&&(pe=1),Se.extended.underlineStyle=pe,Se.fg|=268435456,pe===0&&(Se.fg&=-268435457),Se.updateExtended()},ce.prototype.charAttributes=function(pe){if(pe.length===1&&pe.params[0]===0)return this._curAttrData.fg=ae.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=ae.DEFAULT_ATTR_DATA.bg);for(var Se,Le=pe.length,Ee=this._curAttrData,je=0;je<Le;je++)(Se=pe.params[je])>=30&&Se<=37?(Ee.fg&=-50331904,Ee.fg|=16777216|Se-30):Se>=40&&Se<=47?(Ee.bg&=-50331904,Ee.bg|=16777216|Se-40):Se>=90&&Se<=97?(Ee.fg&=-50331904,Ee.fg|=16777224|Se-90):Se>=100&&Se<=107?(Ee.bg&=-50331904,Ee.bg|=16777224|Se-100):Se===0?(Ee.fg=ae.DEFAULT_ATTR_DATA.fg,Ee.bg=ae.DEFAULT_ATTR_DATA.bg):Se===1?Ee.fg|=134217728:Se===3?Ee.bg|=67108864:Se===4?(Ee.fg|=268435456,this._processUnderline(pe.hasSubParams(je)?pe.getSubParams(je)[0]:1,Ee)):Se===5?Ee.fg|=536870912:Se===7?Ee.fg|=67108864:Se===8?Ee.fg|=1073741824:Se===2?Ee.bg|=134217728:Se===21?this._processUnderline(2,Ee):Se===22?(Ee.fg&=-134217729,Ee.bg&=-134217729):Se===23?Ee.bg&=-67108865:Se===24?Ee.fg&=-268435457:Se===25?Ee.fg&=-536870913:Se===27?Ee.fg&=-67108865:Se===28?Ee.fg&=-1073741825:Se===39?(Ee.fg&=-67108864,Ee.fg|=16777215&ae.DEFAULT_ATTR_DATA.fg):Se===49?(Ee.bg&=-67108864,Ee.bg|=16777215&ae.DEFAULT_ATTR_DATA.bg):Se===38||Se===48||Se===58?je+=this._extractColor(pe,je,Ee):Se===59?(Ee.extended=Ee.extended.clone(),Ee.extended.underlineColor=-1,Ee.updateExtended()):Se===100?(Ee.fg&=-67108864,Ee.fg|=16777215&ae.DEFAULT_ATTR_DATA.fg,Ee.bg&=-67108864,Ee.bg|=16777215&ae.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",Se)},ce.prototype.deviceStatus=function(pe){switch(pe.params[0]){case 5:this._coreService.triggerDataEvent(_e.C0.ESC+"[0n");break;case 6:var Se=this._bufferService.buffer.y+1,Le=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(_e.C0.ESC+"["+Se+";"+Le+"R")}},ce.prototype.deviceStatusPrivate=function(pe){switch(pe.params[0]){case 6:var Se=this._bufferService.buffer.y+1,Le=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(_e.C0.ESC+"[?"+Se+";"+Le+"R")}},ce.prototype.softReset=function(pe){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=ae.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},ce.prototype.setCursorStyle=function(pe){var Se=pe.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},ce.prototype.setScrollRegion=function(pe){var Se,Le=pe.params[0]||1;(pe.length<2||(Se=pe.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))},ce.prototype.windowOptions=function(pe){if(x(pe.params[0],this._optionsService.options.windowOptions)){var Se=pe.length>1?pe.params[1]:0;switch(pe.params[0]){case 14:Se!==2&&this._onRequestWindowsOptionsReport.fire(ye.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(ye.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(_e.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())}}},ce.prototype.saveCursor=function(pe){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},ce.prototype.restoreCursor=function(pe){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()},ce.prototype.setTitle=function(pe){this._windowTitle=pe,this._onTitleChange.fire(pe)},ce.prototype.setIconName=function(pe){this._iconName=pe},ce.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},ce.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},ce.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},ce.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,fe.DEFAULT_CHARSET)},ce.prototype.selectCharset=function(pe){pe.length===2?pe[0]!=="/"&&this._charsetService.setgCharset(b[pe[0]],fe.CHARSETS[pe[1]]||fe.DEFAULT_CHARSET):this.selectDefaultCharset()},ce.prototype.index=function(){this._restrictCursor();var pe=this._bufferService.buffer;this._bufferService.buffer.y++,pe.y===pe.scrollBottom+1?(pe.y--,this._onRequestScroll.fire(this._eraseAttrData())):pe.y>=this._bufferService.rows&&(pe.y=this._bufferService.rows-1),this._restrictCursor()},ce.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},ce.prototype.reverseIndex=function(){this._restrictCursor();var pe=this._bufferService.buffer;if(pe.y===pe.scrollTop){var Se=pe.scrollBottom-pe.scrollTop;pe.lines.shiftElements(pe.ybase+pe.y,Se,1),pe.lines.set(pe.ybase+pe.y,pe.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(pe.scrollTop,pe.scrollBottom)}else pe.y--,this._restrictCursor()},ce.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},ce.prototype.reset=function(){this._curAttrData=ae.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=ae.DEFAULT_ATTR_DATA.clone()},ce.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},ce.prototype.setgLevel=function(pe){this._charsetService.setgLevel(pe)},ce.prototype.screenAlignmentPattern=function(){var pe=new ne.CellData;pe.content=1<<22|69,pe.fg=this._curAttrData.fg,pe.bg=this._curAttrData.bg;var Se=this._bufferService.buffer;this._setCursor(0,0);for(var Le=0;Le<this._bufferService.rows;++Le){var Ee=Se.ybase+Se.y+Le,je=Se.lines.get(Ee);je&&(je.fill(pe),je.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},ce}(de.Disposable);te.InputHandler=re},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DEFAULT_CHARSET=te.CHARSETS=void 0,te.CHARSETS={},te.DEFAULT_CHARSET=te.CHARSETS.B,te.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"},te.CHARSETS.A={"#":"\xA3"},te.CHARSETS.B=void 0,te.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},te.CHARSETS.C=te.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},te.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},te.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},te.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},te.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},te.CHARSETS.E=te.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},te.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},te.CHARSETS.H=te.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},te.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Params=void 0;var ge=function(){function be(ye,_e){if(ye===void 0&&(ye=32),_e===void 0&&(_e=32),this.maxLength=ye,this.maxSubParamsLength=_e,_e>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(ye),this.length=0,this._subParams=new Int32Array(_e),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(ye),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return be.fromArray=function(ye){var _e=new be;if(!ye.length)return _e;for(var fe=ye[0]instanceof Array?1:0;fe<ye.length;++fe){var ie=ye[fe];if(ie instanceof Array)for(var de=0;de<ie.length;++de)_e.addSubParam(ie[de]);else _e.addParam(ie)}return _e},be.prototype.clone=function(){var ye=new be(this.maxLength,this.maxSubParamsLength);return ye.params.set(this.params),ye.length=this.length,ye._subParams.set(this._subParams),ye._subParamsLength=this._subParamsLength,ye._subParamsIdx.set(this._subParamsIdx),ye._rejectDigits=this._rejectDigits,ye._rejectSubDigits=this._rejectSubDigits,ye._digitIsSub=this._digitIsSub,ye},be.prototype.toArray=function(){for(var ye=[],_e=0;_e<this.length;++_e){ye.push(this.params[_e]);var fe=this._subParamsIdx[_e]>>8,ie=255&this._subParamsIdx[_e];ie-fe>0&&ye.push(Array.prototype.slice.call(this._subParams,fe,ie))}return ye},be.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},be.prototype.addParam=function(ye){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(ye<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=ye>2147483647?2147483647:ye}},be.prototype.addSubParam=function(ye){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(ye<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=ye>2147483647?2147483647:ye,this._subParamsIdx[this.length-1]++}},be.prototype.hasSubParams=function(ye){return(255&this._subParamsIdx[ye])-(this._subParamsIdx[ye]>>8)>0},be.prototype.getSubParams=function(ye){var _e=this._subParamsIdx[ye]>>8,fe=255&this._subParamsIdx[ye];return fe-_e>0?this._subParams.subarray(_e,fe):null},be.prototype.getSubParamsAll=function(){for(var ye={},_e=0;_e<this.length;++_e){var fe=this._subParamsIdx[_e]>>8,ie=255&this._subParamsIdx[_e];ie-fe>0&&(ye[_e]=this._subParams.slice(fe,ie))}return ye},be.prototype.addDigit=function(ye){var _e;if(!(this._rejectDigits||!(_e=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var fe=this._digitIsSub?this._subParams:this.params,ie=fe[_e-1];fe[_e-1]=~ie?Math.min(10*ie+ye,2147483647):ye}},be}();te.Params=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OscHandler=te.OscParser=void 0;var ge=ee(23),be=ee(8),ye=function(){function fe(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return fe.prototype.addHandler=function(ie,de){this._handlers[ie]===void 0&&(this._handlers[ie]=[]);var le=this._handlers[ie];return le.push(de),{dispose:function(){var me=le.indexOf(de);me!==-1&&le.splice(me,1)}}},fe.prototype.setHandler=function(ie,de){this._handlers[ie]=[de]},fe.prototype.clearHandler=function(ie){this._handlers[ie]&&delete this._handlers[ie]},fe.prototype.setHandlerFallback=function(ie){this._handlerFb=ie},fe.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},fe.prototype.reset=function(){this._state===2&&this.end(!1),this._id=-1,this._state=0},fe.prototype._start=function(){var ie=this._handlers[this._id];if(ie)for(var de=ie.length-1;de>=0;de--)ie[de].start();else this._handlerFb(this._id,"START")},fe.prototype._put=function(ie,de,le){var me=this._handlers[this._id];if(me)for(var ae=me.length-1;ae>=0;ae--)me[ae].put(ie,de,le);else this._handlerFb(this._id,"PUT",be.utf32ToString(ie,de,le))},fe.prototype._end=function(ie){var de=this._handlers[this._id];if(de){for(var le=de.length-1;le>=0&&de[le].end(ie)===!1;le--);for(le--;le>=0;le--)de[le].end(!1)}else this._handlerFb(this._id,"END",ie)},fe.prototype.start=function(){this.reset(),this._id=-1,this._state=1},fe.prototype.put=function(ie,de,le){if(this._state!==3){if(this._state===1)for(;de<le;){var me=ie[de++];if(me===59){this._state=2,this._start();break}if(me<48||57<me)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+me-48}this._state===2&&le-de>0&&this._put(ie,de,le)}},fe.prototype.end=function(ie){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(ie)),this._id=-1,this._state=0)},fe}();te.OscParser=ye;var _e=function(){function fe(ie){this._handler=ie,this._data="",this._hitLimit=!1}return fe.prototype.start=function(){this._data="",this._hitLimit=!1},fe.prototype.put=function(ie,de,le){this._hitLimit||(this._data+=be.utf32ToString(ie,de,le),this._data.length>ge.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},fe.prototype.end=function(ie){var de;return this._hitLimit?de=!1:ie&&(de=this._handler(this._data)),this._data="",this._hitLimit=!1,de},fe}();te.OscHandler=_e},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.PAYLOAD_LIMIT=void 0,te.PAYLOAD_LIMIT=1e7},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DcsHandler=te.DcsParser=void 0;var ge=ee(8),be=ee(21),ye=ee(23),_e=[],fe=function(){function de(){this._handlers=Object.create(null),this._active=_e,this._ident=0,this._handlerFb=function(){}}return de.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},de.prototype.addHandler=function(le,me){this._handlers[le]===void 0&&(this._handlers[le]=[]);var ae=this._handlers[le];return ae.push(me),{dispose:function(){var he=ae.indexOf(me);he!==-1&&ae.splice(he,1)}}},de.prototype.setHandler=function(le,me){this._handlers[le]=[me]},de.prototype.clearHandler=function(le){this._handlers[le]&&delete this._handlers[le]},de.prototype.setHandlerFallback=function(le){this._handlerFb=le},de.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=_e,this._ident=0},de.prototype.hook=function(le,me){if(this.reset(),this._ident=le,this._active=this._handlers[le]||_e,this._active.length)for(var ae=this._active.length-1;ae>=0;ae--)this._active[ae].hook(me);else this._handlerFb(this._ident,"HOOK",me)},de.prototype.put=function(le,me,ae){if(this._active.length)for(var he=this._active.length-1;he>=0;he--)this._active[he].put(le,me,ae);else this._handlerFb(this._ident,"PUT",ge.utf32ToString(le,me,ae))},de.prototype.unhook=function(le){if(this._active.length){for(var me=this._active.length-1;me>=0&&this._active[me].unhook(le)===!1;me--);for(me--;me>=0;me--)this._active[me].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",le);this._active=_e,this._ident=0},de}();te.DcsParser=fe;var ie=function(){function de(le){this._handler=le,this._data="",this._hitLimit=!1}return de.prototype.hook=function(le){this._params=le.clone(),this._data="",this._hitLimit=!1},de.prototype.put=function(le,me,ae){this._hitLimit||(this._data+=ge.utf32ToString(le,me,ae),this._data.length>ye.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},de.prototype.unhook=function(le){var me;return this._hitLimit?me=!1:le&&(me=this._handler(this._data,this._params||new be.Params)),this._params=void 0,this._data="",this._hitLimit=!1,me},de}();te.DcsHandler=ie},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.removeTerminalFromCache=te.acquireCharAtlas=void 0;var ge=ee(26),be=ee(43),ye=[];te.acquireCharAtlas=function(_e,fe,ie,de,le){for(var me=ge.generateConfig(de,le,_e,ie),ae=0;ae<ye.length;ae++){var he=(oe=ye[ae]).ownedBy.indexOf(fe);if(he>=0){if(ge.configEquals(oe.config,me))return oe.atlas;oe.ownedBy.length===1?(oe.atlas.dispose(),ye.splice(ae,1)):oe.ownedBy.splice(he,1);break}}for(ae=0;ae<ye.length;ae++){var oe=ye[ae];if(ge.configEquals(oe.config,me))return oe.ownedBy.push(fe),oe.atlas}var ne={atlas:new be.DynamicCharAtlas(document,me),config:me,ownedBy:[fe]};return ye.push(ne),ne.atlas},te.removeTerminalFromCache=function(_e){for(var fe=0;fe<ye.length;fe++){var ie=ye[fe].ownedBy.indexOf(_e);if(ie!==-1){ye[fe].ownedBy.length===1?(ye[fe].atlas.dispose(),ye.splice(fe,1)):ye[fe].ownedBy.splice(ie,1);break}}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.is256Color=te.configEquals=te.generateConfig=void 0;var ge=ee(3);te.generateConfig=function(be,ye,_e,fe){var ie={foreground:fe.foreground,background:fe.background,cursor:void 0,cursorAccent:void 0,selection:void 0,ansi:fe.ansi.slice(0,16)};return{devicePixelRatio:window.devicePixelRatio,scaledCharWidth:be,scaledCharHeight:ye,fontFamily:_e.fontFamily,fontSize:_e.fontSize,fontWeight:_e.fontWeight,fontWeightBold:_e.fontWeightBold,allowTransparency:_e.allowTransparency,colors:ie}},te.configEquals=function(be,ye){for(var _e=0;_e<be.colors.ansi.length;_e++)if(be.colors.ansi[_e].rgba!==ye.colors.ansi[_e].rgba)return!1;return be.devicePixelRatio===ye.devicePixelRatio&&be.fontFamily===ye.fontFamily&&be.fontSize===ye.fontSize&&be.fontWeight===ye.fontWeight&&be.fontWeightBold===ye.fontWeightBold&&be.allowTransparency===ye.allowTransparency&&be.scaledCharWidth===ye.scaledCharWidth&&be.scaledCharHeight===ye.scaledCharHeight&&be.colors.foreground===ye.colors.foreground&&be.colors.background===ye.colors.background},te.is256Color=function(be){return be<ge.DEFAULT_COLOR}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorManager=te.DEFAULT_ANSI_COLORS=void 0;var ge=ee(10),be=ee(45),ye=ge.css.toColor("#ffffff"),_e=ge.css.toColor("#000000"),fe=ge.css.toColor("#ffffff"),ie=ge.css.toColor("#000000"),de={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};te.DEFAULT_ANSI_COLORS=function(){for(var me=[ge.css.toColor("#2e3436"),ge.css.toColor("#cc0000"),ge.css.toColor("#4e9a06"),ge.css.toColor("#c4a000"),ge.css.toColor("#3465a4"),ge.css.toColor("#75507b"),ge.css.toColor("#06989a"),ge.css.toColor("#d3d7cf"),ge.css.toColor("#555753"),ge.css.toColor("#ef2929"),ge.css.toColor("#8ae234"),ge.css.toColor("#fce94f"),ge.css.toColor("#729fcf"),ge.css.toColor("#ad7fa8"),ge.css.toColor("#34e2e2"),ge.css.toColor("#eeeeec")],ae=[0,95,135,175,215,255],he=0;he<216;he++){var oe=ae[he/36%6|0],ne=ae[he/6%6|0],a=ae[he%6];me.push({css:ge.channels.toCss(oe,ne,a),rgba:ge.channels.toRgba(oe,ne,a)})}for(he=0;he<24;he++){var y=8+10*he;me.push({css:ge.channels.toCss(y,y,y),rgba:ge.channels.toRgba(y,y,y)})}return me}();var le=function(){function me(ae,he){this.allowTransparency=he;var oe=ae.createElement("canvas");oe.width=1,oe.height=1;var ne=oe.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:ye,background:_e,cursor:fe,cursorAccent:ie,selectionTransparent:de,selectionOpaque:ge.color.blend(_e,de),ansi:te.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return me.prototype.onOptionsChange=function(ae){ae==="minimumContrastRatio"&&this._contrastCache.clear()},me.prototype.setTheme=function(ae){ae===void 0&&(ae={}),this.colors.foreground=this._parseColor(ae.foreground,ye),this.colors.background=this._parseColor(ae.background,_e),this.colors.cursor=this._parseColor(ae.cursor,fe,!0),this.colors.cursorAccent=this._parseColor(ae.cursorAccent,ie,!0),this.colors.selectionTransparent=this._parseColor(ae.selection,de,!0),this.colors.selectionOpaque=ge.color.blend(this.colors.background,this.colors.selectionTransparent),ge.color.isOpaque(this.colors.selectionTransparent)&&(this.colors.selectionTransparent=ge.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(ae.black,te.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(ae.red,te.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(ae.green,te.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(ae.yellow,te.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(ae.blue,te.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(ae.magenta,te.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(ae.cyan,te.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(ae.white,te.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(ae.brightBlack,te.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(ae.brightRed,te.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(ae.brightGreen,te.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(ae.brightYellow,te.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(ae.brightBlue,te.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(ae.brightMagenta,te.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(ae.brightCyan,te.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(ae.brightWhite,te.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},me.prototype._parseColor=function(ae,he,oe){if(oe===void 0&&(oe=this.allowTransparency),ae===void 0)return he;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=ae,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+ae+" 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(!oe)return console.warn("Color: "+ae+" is using transparency, but allowTransparency is false. Using fallback "+he.css+"."),he;var a=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(re){return Number(re)}),y=a[0],E=a[1],b=a[2],x=a[3],z=Math.round(255*x);return{rgba:ge.channels.toRgba(y,E,b,z),css:ae}}return{css:this._ctx.fillStyle,rgba:ge.channels.toRgba(ne[0],ne[1],ne[2],ne[3])}},me}();te.ColorManager=le},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.throwIfFalsy=void 0,te.throwIfFalsy=function(ge){if(!ge)throw new Error("value must not be falsy");return ge}},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(le,me){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,he){ae.__proto__=he}||function(ae,he){for(var oe in he)he.hasOwnProperty(oe)&&(ae[oe]=he[oe])})(le,me)},function(le,me){function ae(){this.constructor=le}ge(le,me),le.prototype=me===null?Object.create(me):(ae.prototype=me.prototype,new ae)});Object.defineProperty(te,"__esModule",{value:!0}),te.CharacterJoinerRegistry=te.JoinedCellData=void 0;var ye=ee(6),_e=ee(3),fe=ee(4),ie=function(le){function me(ae,he,oe){var ne=le.call(this)||this;return ne.content=0,ne.combinedData="",ne.fg=ae.fg,ne.bg=ae.bg,ne.combinedData=he,ne._width=oe,ne}return be(me,le),me.prototype.isCombined=function(){return 2097152},me.prototype.getWidth=function(){return this._width},me.prototype.getChars=function(){return this.combinedData},me.prototype.getCode=function(){return 2097151},me.prototype.setFromCharData=function(ae){throw new Error("not implemented")},me.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},me}(ye.AttributeData);te.JoinedCellData=ie;var de=function(){function le(me){this._bufferService=me,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new fe.CellData}return le.prototype.registerCharacterJoiner=function(me){var ae={id:this._nextCharacterJoinerId++,handler:me};return this._characterJoiners.push(ae),ae.id},le.prototype.deregisterCharacterJoiner=function(me){for(var ae=0;ae<this._characterJoiners.length;ae++)if(this._characterJoiners[ae].id===me)return this._characterJoiners.splice(ae,1),!0;return!1},le.prototype.getJoinedCharacters=function(me){if(this._characterJoiners.length===0)return[];var ae=this._bufferService.buffer.lines.get(me);if(!ae||ae.length===0)return[];for(var he=[],oe=ae.translateToString(!0),ne=0,a=0,y=0,E=ae.getFg(0),b=ae.getBg(0),x=0;x<ae.getTrimmedLength();x++)if(ae.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(oe,y,a,ae,ne),re=0;re<z.length;re++)he.push(z[re]);ne=x,y=a,E=this._workCell.fg,b=this._workCell.bg}a+=this._workCell.getChars().length||_e.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-ne>1)for(z=this._getJoinedRanges(oe,y,a,ae,ne),re=0;re<z.length;re++)he.push(z[re]);return he},le.prototype._getJoinedRanges=function(me,ae,he,oe,ne){for(var a=me.substring(ae,he),y=this._characterJoiners[0].handler(a),E=1;E<this._characterJoiners.length;E++)for(var b=this._characterJoiners[E].handler(a),x=0;x<b.length;x++)le._mergeRanges(y,b[x]);return this._stringRangesToCellRanges(y,oe,ne),y},le.prototype._stringRangesToCellRanges=function(me,ae,he){var oe=0,ne=!1,a=0,y=me[oe];if(y){for(var E=he;E<this._bufferService.cols;E++){var b=ae.getWidth(E),x=ae.getString(E).length||_e.WHITESPACE_CELL_CHAR.length;if(b!==0){if(!ne&&y[0]<=a&&(y[0]=E,ne=!0),y[1]<=a){if(y[1]=E,!(y=me[++oe]))break;y[0]<=a?(y[0]=E,ne=!0):ne=!1}a+=x}}y&&(y[1]=this._bufferService.cols)}},le._mergeRanges=function(me,ae){for(var he=!1,oe=0;oe<me.length;oe++){var ne=me[oe];if(he){if(ae[1]<=ne[0])return me[oe-1][1]=ae[1],me;if(ae[1]<=ne[1])return me[oe-1][1]=Math.max(ae[1],ne[1]),me.splice(oe,1),me;me.splice(oe,1),oe--}else{if(ae[1]<=ne[0])return me.splice(oe,0,ae),me;if(ae[1]<=ne[1])return ne[0]=Math.min(ae[0],ne[0]),me;ae[0]<ne[1]&&(ne[0]=Math.min(ae[0],ne[0]),he=!0)}}return he?me[me.length-1][1]=ae[1]:me.push(ae),me},le}();te.CharacterJoinerRegistry=de},function(Ve,te,ee){"use strict";function ge(be,ye){var _e=ye.getBoundingClientRect();return[be.clientX-_e.left,be.clientY-_e.top]}Object.defineProperty(te,"__esModule",{value:!0}),te.getRawByteCoords=te.getCoords=te.getCoordsRelativeToElement=void 0,te.getCoordsRelativeToElement=ge,te.getCoords=function(be,ye,_e,fe,ie,de,le,me){if(ie){var ae=ge(be,ye);if(ae)return ae[0]=Math.ceil((ae[0]+(me?de/2:0))/de),ae[1]=Math.ceil(ae[1]/le),ae[0]=Math.min(Math.max(ae[0],1),_e+(me?1:0)),ae[1]=Math.min(Math.max(ae[1],1),fe),ae}},te.getRawByteCoords=function(be){if(be)return{x:be[0]+32,y:be[1]+32}}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.RenderDebouncer=void 0;var ge=function(){function be(ye){this._renderCallback=ye}return be.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},be.prototype.refresh=function(ye,_e,fe){var ie=this;this._rowCount=fe,ye=ye!==void 0?ye:0,_e=_e!==void 0?_e:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,ye):ye,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,_e):_e,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return ie._innerRefresh()}))},be.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var ye=Math.max(this._rowStart,0),_e=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(ye,_e)}},be}();te.RenderDebouncer=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(_e,fe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,de){ie.__proto__=de}||function(ie,de){for(var le in de)de.hasOwnProperty(le)&&(ie[le]=de[le])})(_e,fe)},function(_e,fe){function ie(){this.constructor=_e}ge(_e,fe),_e.prototype=fe===null?Object.create(fe):(ie.prototype=fe.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.ScreenDprMonitor=void 0;var ye=function(_e){function fe(){var ie=_e!==null&&_e.apply(this,arguments)||this;return ie._currentDevicePixelRatio=window.devicePixelRatio,ie}return be(fe,_e),fe.prototype.setListener=function(ie){var de=this;this._listener&&this.clearListener(),this._listener=ie,this._outerListener=function(){de._listener&&(de._listener(window.devicePixelRatio,de._currentDevicePixelRatio),de._updateDpr())},this._updateDpr()},fe.prototype.dispose=function(){_e.prototype.dispose.call(this),this.clearListener()},fe.prototype._updateDpr=function(){var ie;this._outerListener&&((ie=this._resolutionMediaMatchList)===null||ie===void 0||ie.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},fe.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)},fe}(ee(2).Disposable);te.ScreenDprMonitor=ye},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.clone=void 0,te.clone=function ge(be,ye){if(ye===void 0&&(ye=5),typeof be!="object")return be;var _e=Array.isArray(be)?[]:{};for(var fe in be)_e[fe]=ye<=1?be[fe]:be[fe]?ge(be[fe],ye-1):be[fe];return _e}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var ge=ee(4),be=ee(35),ye=ee(18),_e=ee(0),fe=ee(83),ie=function(){function oe(ne){this._core=new be.Terminal(ne),this._addonManager=new fe.AddonManager}return oe.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(oe.prototype,"onCursorMove",{get:function(){return this._core.onCursorMove},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onLineFeed",{get:function(){return this._core.onLineFeed},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onSelectionChange",{get:function(){return this._core.onSelectionChange},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onData",{get:function(){return this._core.onData},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onBinary",{get:function(){return this._core.onBinary},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onTitleChange",{get:function(){return this._core.onTitleChange},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onScroll",{get:function(){return this._core.onScroll},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onKey",{get:function(){return this._core.onKey},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onRender",{get:function(){return this._core.onRender},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"onResize",{get:function(){return this._core.onResize},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"element",{get:function(){return this._core.element},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"parser",{get:function(){return this._checkProposedApi(),this._parser||(this._parser=new ae(this._core)),this._parser},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"unicode",{get:function(){return this._checkProposedApi(),new he(this._core)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"textarea",{get:function(){return this._core.textarea},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"rows",{get:function(){return this._core.rows},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cols",{get:function(){return this._core.cols},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"buffer",{get:function(){return this._checkProposedApi(),new le(this._core.buffers)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"markers",{get:function(){return this._checkProposedApi(),this._core.markers},enumerable:!1,configurable:!0}),oe.prototype.blur=function(){this._core.blur()},oe.prototype.focus=function(){this._core.focus()},oe.prototype.resize=function(ne,a){this._verifyIntegers(ne,a),this._core.resize(ne,a)},oe.prototype.open=function(ne){this._core.open(ne)},oe.prototype.attachCustomKeyEventHandler=function(ne){this._core.attachCustomKeyEventHandler(ne)},oe.prototype.registerLinkMatcher=function(ne,a,y){return this._checkProposedApi(),this._core.registerLinkMatcher(ne,a,y)},oe.prototype.deregisterLinkMatcher=function(ne){this._checkProposedApi(),this._core.deregisterLinkMatcher(ne)},oe.prototype.registerLinkProvider=function(ne){return this._checkProposedApi(),this._core.registerLinkProvider(ne)},oe.prototype.registerCharacterJoiner=function(ne){return this._checkProposedApi(),this._core.registerCharacterJoiner(ne)},oe.prototype.deregisterCharacterJoiner=function(ne){this._checkProposedApi(),this._core.deregisterCharacterJoiner(ne)},oe.prototype.registerMarker=function(ne){return this._checkProposedApi(),this._verifyIntegers(ne),this._core.addMarker(ne)},oe.prototype.addMarker=function(ne){return this.registerMarker(ne)},oe.prototype.hasSelection=function(){return this._core.hasSelection()},oe.prototype.select=function(ne,a,y){this._verifyIntegers(ne,a,y),this._core.select(ne,a,y)},oe.prototype.getSelection=function(){return this._core.getSelection()},oe.prototype.getSelectionPosition=function(){return this._core.getSelectionPosition()},oe.prototype.clearSelection=function(){this._core.clearSelection()},oe.prototype.selectAll=function(){this._core.selectAll()},oe.prototype.selectLines=function(ne,a){this._verifyIntegers(ne,a),this._core.selectLines(ne,a)},oe.prototype.dispose=function(){this._addonManager.dispose(),this._core.dispose()},oe.prototype.scrollLines=function(ne){this._verifyIntegers(ne),this._core.scrollLines(ne)},oe.prototype.scrollPages=function(ne){this._verifyIntegers(ne),this._core.scrollPages(ne)},oe.prototype.scrollToTop=function(){this._core.scrollToTop()},oe.prototype.scrollToBottom=function(){this._core.scrollToBottom()},oe.prototype.scrollToLine=function(ne){this._verifyIntegers(ne),this._core.scrollToLine(ne)},oe.prototype.clear=function(){this._core.clear()},oe.prototype.write=function(ne,a){this._core.write(ne,a)},oe.prototype.writeUtf8=function(ne,a){this._core.write(ne,a)},oe.prototype.writeln=function(ne,a){this._core.write(ne),this._core.write(`\r
`,a)},oe.prototype.paste=function(ne){this._core.paste(ne)},oe.prototype.getOption=function(ne){return this._core.optionsService.getOption(ne)},oe.prototype.setOption=function(ne,a){this._core.optionsService.setOption(ne,a)},oe.prototype.refresh=function(ne,a){this._verifyIntegers(ne,a),this._core.refresh(ne,a)},oe.prototype.reset=function(){this._core.reset()},oe.prototype.loadAddon=function(ne){return this._addonManager.loadAddon(this,ne)},Object.defineProperty(oe,"strings",{get:function(){return ye},enumerable:!1,configurable:!0}),oe.prototype._verifyIntegers=function(){for(var ne=[],a=0;a<arguments.length;a++)ne[a]=arguments[a];for(var y=0,E=ne;y<E.length;y++){var b=E[y];if(b===1/0||isNaN(b)||b%1!=0)throw new Error("This API only accepts integers")}},oe}();te.Terminal=ie;var de=function(){function oe(ne,a){this._buffer=ne,this.type=a}return oe.prototype.init=function(ne){return this._buffer=ne,this},Object.defineProperty(oe.prototype,"cursorY",{get:function(){return this._buffer.y},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"cursorX",{get:function(){return this._buffer.x},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"viewportY",{get:function(){return this._buffer.ydisp},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"baseY",{get:function(){return this._buffer.ybase},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"length",{get:function(){return this._buffer.lines.length},enumerable:!1,configurable:!0}),oe.prototype.getLine=function(ne){var a=this._buffer.lines.get(ne);if(a)return new me(a)},oe.prototype.getNullCell=function(){return new ge.CellData},oe}(),le=function(){function oe(ne){var a=this;this._buffers=ne,this._onBufferChange=new _e.EventEmitter,this._normal=new de(this._buffers.normal,"normal"),this._alternate=new de(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return a._onBufferChange.fire(a.active)})}return Object.defineProperty(oe.prototype,"onBufferChange",{get:function(){return this._onBufferChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(oe.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(oe.prototype,"normal",{get:function(){return this._normal.init(this._buffers.normal)},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"alternate",{get:function(){return this._alternate.init(this._buffers.alt)},enumerable:!1,configurable:!0}),oe}(),me=function(){function oe(ne){this._line=ne}return Object.defineProperty(oe.prototype,"isWrapped",{get:function(){return this._line.isWrapped},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"length",{get:function(){return this._line.length},enumerable:!1,configurable:!0}),oe.prototype.getCell=function(ne,a){if(!(ne<0||ne>=this._line.length))return a?(this._line.loadCell(ne,a),a):this._line.loadCell(ne,new ge.CellData)},oe.prototype.translateToString=function(ne,a,y){return this._line.translateToString(ne,a,y)},oe}(),ae=function(){function oe(ne){this._core=ne}return oe.prototype.registerCsiHandler=function(ne,a){return this._core.addCsiHandler(ne,function(y){return a(y.toArray())})},oe.prototype.addCsiHandler=function(ne,a){return this.registerCsiHandler(ne,a)},oe.prototype.registerDcsHandler=function(ne,a){return this._core.addDcsHandler(ne,function(y,E){return a(y,E.toArray())})},oe.prototype.addDcsHandler=function(ne,a){return this.registerDcsHandler(ne,a)},oe.prototype.registerEscHandler=function(ne,a){return this._core.addEscHandler(ne,a)},oe.prototype.addEscHandler=function(ne,a){return this.registerEscHandler(ne,a)},oe.prototype.registerOscHandler=function(ne,a){return this._core.addOscHandler(ne,a)},oe.prototype.addOscHandler=function(ne,a){return this.registerOscHandler(ne,a)},oe}(),he=function(){function oe(ne){this._core=ne}return oe.prototype.register=function(ne){this._core.unicodeService.register(ne)},Object.defineProperty(oe.prototype,"versions",{get:function(){return this._core.unicodeService.versions},enumerable:!1,configurable:!0}),Object.defineProperty(oe.prototype,"activeVersion",{get:function(){return this._core.unicodeService.activeVersion},set:function(ne){this._core.unicodeService.activeVersion=ne},enumerable:!1,configurable:!0}),oe}()},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(pt,we){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Fe,He){Fe.__proto__=He}||function(Fe,He){for(var it in He)He.hasOwnProperty(it)&&(Fe[it]=He[it])})(pt,we)},function(pt,we){function Fe(){this.constructor=pt}ge(pt,we),pt.prototype=we===null?Object.create(we):(Fe.prototype=we.prototype,new Fe)});Object.defineProperty(te,"__esModule",{value:!0}),te.Terminal=void 0;var ye=ee(36),_e=ee(37),fe=ee(38),ie=ee(12),de=ee(19),le=ee(40),me=ee(50),ae=ee(51),he=ee(11),oe=ee(7),ne=ee(18),a=ee(54),y=ee(55),E=ee(56),b=ee(57),x=ee(59),z=ee(0),re=ee(16),se=ee(27),ce=ee(60),pe=ee(5),Se=ee(61),Le=ee(62),Ee=ee(63),je=ee(64),Me=ee(65),mt=typeof window!="undefined"?window.document:null,Xe=function(pt){function we(Fe){Fe===void 0&&(Fe={});var He=pt.call(this,Fe)||this;return He.browser=he,He._keyDownHandled=!1,He._onCursorMove=new z.EventEmitter,He._onKey=new z.EventEmitter,He._onRender=new z.EventEmitter,He._onSelectionChange=new z.EventEmitter,He._onTitleChange=new z.EventEmitter,He._onFocus=new z.EventEmitter,He._onBlur=new z.EventEmitter,He._onA11yCharEmitter=new z.EventEmitter,He._onA11yTabEmitter=new z.EventEmitter,He._setup(),He.linkifier=He._instantiationService.createInstance(me.Linkifier),He.linkifier2=He.register(He._instantiationService.createInstance(Ee.Linkifier2)),He.register(He._inputHandler.onRequestBell(function(){return He.bell()})),He.register(He._inputHandler.onRequestRefreshRows(function(it,Ke){return He.refresh(it,Ke)})),He.register(He._inputHandler.onRequestReset(function(){return He.reset()})),He.register(He._inputHandler.onRequestScroll(function(it,Ke){return He.scroll(it,Ke||void 0)})),He.register(He._inputHandler.onRequestWindowsOptionsReport(function(it){return He._reportWindowsOptions(it)})),He.register(z.forwardEvent(He._inputHandler.onCursorMove,He._onCursorMove)),He.register(z.forwardEvent(He._inputHandler.onTitleChange,He._onTitleChange)),He.register(z.forwardEvent(He._inputHandler.onA11yChar,He._onA11yCharEmitter)),He.register(z.forwardEvent(He._inputHandler.onA11yTab,He._onA11yTabEmitter)),He.register(He._bufferService.onResize(function(it){return He._afterResize(it.cols,it.rows)})),He}return be(we,pt),Object.defineProperty(we.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(we.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),we.prototype.dispose=function(){var Fe,He,it;this._isDisposed||(pt.prototype.dispose.call(this),(Fe=this._renderService)===null||Fe===void 0||Fe.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(it=(He=this.element)===null||He===void 0?void 0:He.parentNode)===null||it===void 0||it.removeChild(this.element))},we.prototype._setup=function(){pt.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(we.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),we.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},we.prototype._updateOptions=function(Fe){var He,it,Ke,ht;switch(pt.prototype._updateOptions.call(this,Fe),Fe){case"fontFamily":case"fontSize":(He=this._renderService)===null||He===void 0||He.clear(),(it=this._charSizeService)===null||it===void 0||it.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":(Ke=this.viewport)===null||Ke===void 0||Ke.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new E.AccessibilityManager(this,this._renderService)):((ht=this._accessibilityManager)===null||ht===void 0||ht.dispose(),this._accessibilityManager=void 0);break;case"tabStopWidth":this.buffers.setupTabStops();break;case"theme":this._setTheme(this.optionsService.options.theme)}},we.prototype._onTextAreaFocus=function(Fe){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[I"),this.updateCursorStyle(Fe),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},we.prototype.blur=function(){var Fe;return(Fe=this.textarea)===null||Fe===void 0?void 0:Fe.blur()},we.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(ie.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},we.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var Fe=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),He=this._bufferService.buffer.y*Fe,it=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=it+"px",this.textarea.style.top=He+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=Fe+"px",this.textarea.style.lineHeight=Fe+"px",this.textarea.style.zIndex="-5"}},we.prototype._initGlobal=function(){var Fe=this;this._bindKeys(),this.register(oe.addDisposableDomListener(this.element,"copy",function(it){Fe.hasSelection()&&fe.copyHandler(it,Fe._selectionService)}));var He=function(it){return fe.handlePasteEvent(it,Fe.textarea,Fe._coreService)};this.register(oe.addDisposableDomListener(this.textarea,"paste",He)),this.register(oe.addDisposableDomListener(this.element,"paste",He)),he.isFirefox?this.register(oe.addDisposableDomListener(this.element,"mousedown",function(it){it.button===2&&fe.rightClickHandler(it,Fe.textarea,Fe.screenElement,Fe._selectionService,Fe.options.rightClickSelectsWord)})):this.register(oe.addDisposableDomListener(this.element,"contextmenu",function(it){fe.rightClickHandler(it,Fe.textarea,Fe.screenElement,Fe._selectionService,Fe.options.rightClickSelectsWord)})),he.isLinux&&this.register(oe.addDisposableDomListener(this.element,"auxclick",function(it){it.button===1&&fe.moveTextAreaUnderMouseCursor(it,Fe.textarea,Fe.screenElement)}))},we.prototype._bindKeys=function(){var Fe=this;this.register(oe.addDisposableDomListener(this.textarea,"keyup",function(He){return Fe._keyUp(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keydown",function(He){return Fe._keyDown(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"keypress",function(He){return Fe._keyPress(He)},!0)),this.register(oe.addDisposableDomListener(this.textarea,"compositionstart",function(){return Fe._compositionHelper.compositionstart()})),this.register(oe.addDisposableDomListener(this.textarea,"compositionupdate",function(He){return Fe._compositionHelper.compositionupdate(He)})),this.register(oe.addDisposableDomListener(this.textarea,"compositionend",function(){return Fe._compositionHelper.compositionend()})),this.register(this.onRender(function(){return Fe._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(He){return Fe._queueLinkification(He.start,He.end)}))},we.prototype.open=function(Fe){var He=this;if(!Fe)throw new Error("Terminal requires a parent element.");mt.body.contains(Fe)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=Fe.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"),Fe.appendChild(this.element);var it=mt.createDocumentFragment();this._viewportElement=mt.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),it.appendChild(this._viewportElement),this._viewportScrollArea=mt.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=mt.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=mt.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),it.appendChild(this.screenElement),this.textarea=mt.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(oe.addDisposableDomListener(this.textarea,"focus",function(_t){return He._onTextAreaFocus(_t)})),this.register(oe.addDisposableDomListener(this.textarea,"blur",function(){return He._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var Ke=this._instantiationService.createInstance(je.CoreBrowserService,this.textarea);this._instantiationService.setService(pe.ICoreBrowserService,Ke),this._charSizeService=this._instantiationService.createInstance(Se.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(pe.ICharSizeService,this._charSizeService),this._compositionView=mt.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(ye.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(it),this._theme=this.options.theme||this._theme,this._colorManager=new se.ColorManager(mt,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(_t){return He._colorManager.onOptionsChange(_t)})),this._colorManager.setTheme(this._theme);var ht=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(ce.RenderService,ht,this.rows,this.screenElement)),this._instantiationService.setService(pe.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(_t){return He._onRender.fire(_t)})),this.onResize(function(_t){return He._renderService.resize(_t.cols,_t.rows)}),this._soundService=this._instantiationService.createInstance(a.SoundService),this._instantiationService.setService(pe.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(Le.MouseService),this._instantiationService.setService(pe.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(_e.Viewport,function(_t,Lt){return He.scrollLines(_t,Lt)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return He.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){He._renderService.onCursorMove(),He._syncTextArea()})),this.register(this.onResize(function(){return He._renderService.onResize(He.cols,He.rows)})),this.register(this.onBlur(function(){return He._renderService.onBlur()})),this.register(this.onFocus(function(){return He._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return He.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(ae.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(pe.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(_t){return He.scrollLines(_t.amount,_t.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return He._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(_t){return He._renderService.onSelectionChanged(_t.start,_t.end,_t.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(_t){He.textarea.value=_t,He.textarea.focus(),He.textarea.select()})),this.register(this.onScroll(function(){He.viewport.syncScrollArea(),He._selectionService.refresh()})),this.register(oe.addDisposableDomListener(this._viewportElement,"scroll",function(){return He._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(y.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return He._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(oe.addDisposableDomListener(this.element,"mousedown",function(_t){return He._selectionService.onMouseDown(_t)})),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()},we.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(le.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+'"')}},we.prototype._setTheme=function(Fe){var He,it,Ke;this._theme=Fe,(He=this._colorManager)===null||He===void 0||He.setTheme(Fe),(it=this._renderService)===null||it===void 0||it.setColors(this._colorManager.colors),(Ke=this.viewport)===null||Ke===void 0||Ke.onThemeChange(this._colorManager.colors)},we.prototype.bindMouse=function(){var Fe=this,He=this,it=this.element;function Ke(Qe){var Pt,zt,yt=He._mouseService.getRawByteCoords(Qe,He.screenElement,He.cols,He.rows);if(!yt)return!1;switch(Qe.overrideType||Qe.type){case"mousemove":zt=32,Qe.buttons===void 0?(Pt=3,Qe.button!==void 0&&(Pt=Qe.button<3?Qe.button:3)):Pt=1&Qe.buttons?0:4&Qe.buttons?1:2&Qe.buttons?2:3;break;case"mouseup":zt=0,Pt=Qe.button<3?Qe.button:3;break;case"mousedown":zt=1,Pt=Qe.button<3?Qe.button:3;break;case"wheel":Qe.deltaY!==0&&(zt=Qe.deltaY<0?0:1),Pt=4;break;default:return!1}return!(zt===void 0||Pt===void 0||Pt>4)&&He._coreMouseService.triggerMouseEvent({col:yt.x-33,row:yt.y-33,button:Pt,action:zt,ctrl:Qe.ctrlKey,alt:Qe.altKey,shift:Qe.shiftKey})}var ht={mouseup:null,wheel:null,mousedrag:null,mousemove:null},_t=function(Qe){return Ke(Qe),Qe.buttons||(Fe._document.removeEventListener("mouseup",ht.mouseup),ht.mousedrag&&Fe._document.removeEventListener("mousemove",ht.mousedrag)),Fe.cancel(Qe)},Lt=function(Qe){return Ke(Qe),Qe.preventDefault(),Fe.cancel(Qe)},kt=function(Qe){Qe.buttons&&Ke(Qe)},nt=function(Qe){Qe.buttons||Ke(Qe)};this.register(this._coreMouseService.onProtocolChange(function(Qe){Qe?(Fe.optionsService.options.logLevel==="debug"&&Fe._logService.debug("Binding to mouse events:",Fe._coreMouseService.explainEvents(Qe)),Fe.element.classList.add("enable-mouse-events"),Fe._selectionService.disable()):(Fe._logService.debug("Unbinding from mouse events."),Fe.element.classList.remove("enable-mouse-events"),Fe._selectionService.enable()),8&Qe?ht.mousemove||(it.addEventListener("mousemove",nt),ht.mousemove=nt):(it.removeEventListener("mousemove",ht.mousemove),ht.mousemove=null),16&Qe?ht.wheel||(it.addEventListener("wheel",Lt,{passive:!1}),ht.wheel=Lt):(it.removeEventListener("wheel",ht.wheel),ht.wheel=null),2&Qe?ht.mouseup||(ht.mouseup=_t):(Fe._document.removeEventListener("mouseup",ht.mouseup),ht.mouseup=null),4&Qe?ht.mousedrag||(ht.mousedrag=kt):(Fe._document.removeEventListener("mousemove",ht.mousedrag),ht.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(oe.addDisposableDomListener(it,"mousedown",function(Qe){if(Qe.preventDefault(),Fe.focus(),Fe._coreMouseService.areMouseEventsActive&&!Fe._selectionService.shouldForceSelection(Qe))return Ke(Qe),ht.mouseup&&Fe._document.addEventListener("mouseup",ht.mouseup),ht.mousedrag&&Fe._document.addEventListener("mousemove",ht.mousedrag),Fe.cancel(Qe)})),this.register(oe.addDisposableDomListener(it,"wheel",function(Qe){if(!ht.wheel){if(!Fe.buffer.hasScrollback){var Pt=Fe.viewport.getLinesScrolled(Qe);if(Pt===0)return;for(var zt=ie.C0.ESC+(Fe._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Qe.deltaY<0?"A":"B"),yt="",an=0;an<Math.abs(Pt);an++)yt+=zt;Fe._coreService.triggerDataEvent(yt,!0)}}},{passive:!0})),this.register(oe.addDisposableDomListener(it,"wheel",function(Qe){if(!ht.wheel)return Fe.viewport.onWheel(Qe)?void 0:Fe.cancel(Qe)},{passive:!1})),this.register(oe.addDisposableDomListener(it,"touchstart",function(Qe){if(!Fe._coreMouseService.areMouseEventsActive)return Fe.viewport.onTouchStart(Qe),Fe.cancel(Qe)},{passive:!0})),this.register(oe.addDisposableDomListener(it,"touchmove",function(Qe){if(!Fe._coreMouseService.areMouseEventsActive)return Fe.viewport.onTouchMove(Qe)?void 0:Fe.cancel(Qe)},{passive:!1}))},we.prototype.refresh=function(Fe,He){var it;(it=this._renderService)===null||it===void 0||it.refreshRows(Fe,He)},we.prototype._queueLinkification=function(Fe,He){var it;(it=this.linkifier)===null||it===void 0||it.linkifyRows(Fe,He)},we.prototype.updateCursorStyle=function(Fe){this._selectionService&&this._selectionService.shouldColumnSelect(Fe)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},we.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},we.prototype.scrollLines=function(Fe,He){pt.prototype.scrollLines.call(this,Fe,He),this.refresh(0,this.rows-1)},we.prototype.paste=function(Fe){fe.paste(Fe,this.textarea,this._coreService)},we.prototype.attachCustomKeyEventHandler=function(Fe){this._customKeyEventHandler=Fe},we.prototype.registerLinkMatcher=function(Fe,He,it){var Ke=this.linkifier.registerLinkMatcher(Fe,He,it);return this.refresh(0,this.rows-1),Ke},we.prototype.deregisterLinkMatcher=function(Fe){this.linkifier.deregisterLinkMatcher(Fe)&&this.refresh(0,this.rows-1)},we.prototype.registerLinkProvider=function(Fe){return this.linkifier2.registerLinkProvider(Fe)},we.prototype.registerCharacterJoiner=function(Fe){var He=this._renderService.registerCharacterJoiner(Fe);return this.refresh(0,this.rows-1),He},we.prototype.deregisterCharacterJoiner=function(Fe){this._renderService.deregisterCharacterJoiner(Fe)&&this.refresh(0,this.rows-1)},Object.defineProperty(we.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),we.prototype.addMarker=function(Fe){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Fe)},we.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},we.prototype.select=function(Fe,He,it){this._selectionService.setSelection(Fe,He,it)},we.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},we.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]}},we.prototype.clearSelection=function(){var Fe;(Fe=this._selectionService)===null||Fe===void 0||Fe.clearSelection()},we.prototype.selectAll=function(){var Fe;(Fe=this._selectionService)===null||Fe===void 0||Fe.selectAll()},we.prototype.selectLines=function(Fe,He){var it;(it=this._selectionService)===null||it===void 0||it.selectLines(Fe,He)},we.prototype._keyDown=function(Fe){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(Fe)===!1)return!1;if(!this._compositionHelper.keydown(Fe))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var He=x.evaluateKeyboardEvent(Fe,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Fe),He.type===3||He.type===2){var it=this.rows-1;return this.scrollLines(He.type===2?-it:it),this.cancel(Fe,!0)}return He.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Fe)||(He.cancel&&this.cancel(Fe,!0),!He.key||(He.key!==ie.C0.ETX&&He.key!==ie.C0.CR||(this.textarea.value=""),this._onKey.fire({key:He.key,domEvent:Fe}),this._showCursor(),this._coreService.triggerDataEvent(He.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(Fe,!0)))},we.prototype._isThirdLevelShift=function(Fe,He){var it=Fe.isMac&&!this.options.macOptionIsMeta&&He.altKey&&!He.ctrlKey&&!He.metaKey||Fe.isWindows&&He.altKey&&He.ctrlKey&&!He.metaKey;return He.type==="keypress"?it:it&&(!He.keyCode||He.keyCode>47)},we.prototype._keyUp=function(Fe){this._customKeyEventHandler&&this._customKeyEventHandler(Fe)===!1||(function(He){return He.keyCode===16||He.keyCode===17||He.keyCode===18}(Fe)||this.focus(),this.updateCursorStyle(Fe))},we.prototype._keyPress=function(Fe){var He;if(this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(Fe)===!1)return!1;if(this.cancel(Fe),Fe.charCode)He=Fe.charCode;else if(Fe.which===null||Fe.which===void 0)He=Fe.keyCode;else{if(Fe.which===0||Fe.charCode===0)return!1;He=Fe.which}return!(!He||(Fe.altKey||Fe.ctrlKey||Fe.metaKey)&&!this._isThirdLevelShift(this.browser,Fe))&&(He=String.fromCharCode(He),this._onKey.fire({key:He,domEvent:Fe}),this._showCursor(),this._coreService.triggerDataEvent(He,!0),!0)},we.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},we.prototype.resize=function(Fe,He){Fe!==this.cols||He!==this.rows?pt.prototype.resize.call(this,Fe,He):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},we.prototype._afterResize=function(Fe,He){var it,Ke;(it=this._charSizeService)===null||it===void 0||it.measure(),(Ke=this.viewport)===null||Ke===void 0||Ke.syncScrollArea(!0)},we.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 Fe=1;Fe<this.rows;Fe++)this.buffer.lines.push(this.buffer.getBlankLine(re.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},we.prototype.reset=function(){var Fe,He;this.options.rows=this.rows,this.options.cols=this.cols;var it=this._customKeyEventHandler;this._setup(),pt.prototype.reset.call(this),(Fe=this._selectionService)===null||Fe===void 0||Fe.reset(),this._customKeyEventHandler=it,this.refresh(0,this.rows-1),(He=this.viewport)===null||He===void 0||He.syncScrollArea()},we.prototype._reportWindowsOptions=function(Fe){if(this._renderService)switch(Fe){case de.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var He=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),it=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[4;"+it+";"+He+"t");break;case de.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var Ke=this._renderService.dimensions.scaledCellWidth.toFixed(0),ht=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(ie.C0.ESC+"[6;"+ht+";"+Ke+"t")}},we.prototype.cancel=function(Fe,He){if(this.options.cancelEvents||He)return Fe.preventDefault(),Fe.stopPropagation(),!1},we.prototype._visualBell=function(){return!1},we.prototype._soundBell=function(){return this.options.bellStyle==="sound"},we}(Me.CoreTerminal);te.Terminal=Xe},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(ie,de,le,me){var ae,he=arguments.length,oe=he<3?de:me===null?me=Object.getOwnPropertyDescriptor(de,le):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,de,le,me);else for(var ne=ie.length-1;ne>=0;ne--)(ae=ie[ne])&&(oe=(he<3?ae(oe):he>3?ae(de,le,oe):ae(de,le))||oe);return he>3&&oe&&Object.defineProperty(de,le,oe),oe},be=this&&this.__param||function(ie,de){return function(le,me){de(le,me,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CompositionHelper=void 0;var ye=ee(5),_e=ee(1),fe=function(){function ie(de,le,me,ae,he,oe){this._textarea=de,this._compositionView=le,this._bufferService=me,this._optionsService=ae,this._charSizeService=he,this._coreService=oe,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(ie.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),ie.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},ie.prototype.compositionupdate=function(de){var le=this;this._compositionView.textContent=de.data,this.updateCompositionElements(),setTimeout(function(){le._compositionPosition.end=le._textarea.value.length},0)},ie.prototype.compositionend=function(){this._finalizeComposition(!0)},ie.prototype.keydown=function(de){if(this._isComposing||this._isSendingComposition){if(de.keyCode===229||de.keyCode===16||de.keyCode===17||de.keyCode===18)return!1;this._finalizeComposition(!1)}return de.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},ie.prototype._finalizeComposition=function(de){var le=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,de){var me={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(le._isSendingComposition){le._isSendingComposition=!1;var he=void 0;he=le._isComposing?le._textarea.value.substring(me.start,me.end):le._textarea.value.substring(me.start),le._coreService.triggerDataEvent(he,!0)}},0)}else{this._isSendingComposition=!1;var ae=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(ae,!0)}},ie.prototype._handleAnyTextareaChanges=function(){var de=this,le=this._textarea.value;setTimeout(function(){if(!de._isComposing){var me=de._textarea.value.replace(le,"");me.length>0&&de._coreService.triggerDataEvent(me,!0)}},0)},ie.prototype.updateCompositionElements=function(de){var le=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var me=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),ae=this._bufferService.buffer.y*me,he=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=he+"px",this._compositionView.style.top=ae+"px",this._compositionView.style.height=me+"px",this._compositionView.style.lineHeight=me+"px",this._compositionView.style.fontFamily=this._optionsService.options.fontFamily,this._compositionView.style.fontSize=this._optionsService.options.fontSize+"px";var oe=this._compositionView.getBoundingClientRect();this._textarea.style.left=he+"px",this._textarea.style.top=ae+"px",this._textarea.style.width=oe.width+"px",this._textarea.style.height=oe.height+"px",this._textarea.style.lineHeight=oe.height+"px"}de||setTimeout(function(){return le.updateCompositionElements(!0)},0)}},ie=ge([be(2,_e.IBufferService),be(3,_e.IOptionsService),be(4,ye.ICharSizeService),be(5,_e.ICoreService)],ie)}();te.CompositionHelper=fe},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),ye=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},_e=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Viewport=void 0;var fe=ee(2),ie=ee(7),de=ee(5),le=ee(1),me=function(ae){function he(oe,ne,a,y,E,b,x){var z=ae.call(this)||this;return z._scrollLines=oe,z._viewportElement=ne,z._scrollArea=a,z._bufferService=y,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(ie.addDisposableDomListener(z._viewportElement,"scroll",z._onScroll.bind(z))),setTimeout(function(){return z.syncScrollArea()},0),z}return be(he,ae),he.prototype.onThemeChange=function(oe){this._viewportElement.style.backgroundColor=oe.background.css},he.prototype._refresh=function(oe){var ne=this;if(oe)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 oe=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==oe&&(this._lastRecordedBufferHeight=oe,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(oe){if(oe===void 0&&(oe=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(oe);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(oe)}else this._refresh(oe)},he.prototype._onScroll=function(oe){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(oe,ne){var a=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(ne<0&&this._viewportElement.scrollTop!==0||ne>0&&a<this._lastRecordedBufferHeight)||(oe.cancelable&&oe.preventDefault(),!1)},he.prototype.onWheel=function(oe){var ne=this._getPixelsScrolled(oe);return ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(oe,ne))},he.prototype._getPixelsScrolled=function(oe){if(oe.deltaY===0)return 0;var ne=this._applyScrollModifier(oe.deltaY,oe);return oe.deltaMode===WheelEvent.DOM_DELTA_LINE?ne*=this._currentRowHeight:oe.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._currentRowHeight*this._bufferService.rows),ne},he.prototype.getLinesScrolled=function(oe){if(oe.deltaY===0)return 0;var ne=this._applyScrollModifier(oe.deltaY,oe);return oe.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):oe.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(ne*=this._bufferService.rows),ne},he.prototype._applyScrollModifier=function(oe,ne){var a=this._optionsService.options.fastScrollModifier;return a==="alt"&&ne.altKey||a==="ctrl"&&ne.ctrlKey||a==="shift"&&ne.shiftKey?oe*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:oe*this._optionsService.options.scrollSensitivity},he.prototype.onTouchStart=function(oe){this._lastTouchY=oe.touches[0].pageY},he.prototype.onTouchMove=function(oe){var ne=this._lastTouchY-oe.touches[0].pageY;return this._lastTouchY=oe.touches[0].pageY,ne!==0&&(this._viewportElement.scrollTop+=ne,this._bubbleScroll(oe,ne))},he=ye([_e(3,le.IBufferService),_e(4,le.IOptionsService),_e(5,de.ICharSizeService),_e(6,de.IRenderService)],he)}(fe.Disposable);te.Viewport=me},function(Ve,te,ee){"use strict";function ge(fe){return fe.replace(/\r?\n/g,"\r")}function be(fe,ie){return ie?"\x1B[200~"+fe+"\x1B[201~":fe}function ye(fe,ie,de){fe=be(fe=ge(fe),de.decPrivateModes.bracketedPasteMode),de.triggerDataEvent(fe,!0),ie.value=""}function _e(fe,ie,de){var le=de.getBoundingClientRect(),me=fe.clientX-le.left-10,ae=fe.clientY-le.top-10;ie.style.width="20px",ie.style.height="20px",ie.style.left=me+"px",ie.style.top=ae+"px",ie.style.zIndex="1000",ie.focus()}Object.defineProperty(te,"__esModule",{value:!0}),te.rightClickHandler=te.moveTextAreaUnderMouseCursor=te.paste=te.handlePasteEvent=te.copyHandler=te.bracketTextForPaste=te.prepareTextForTerminal=void 0,te.prepareTextForTerminal=ge,te.bracketTextForPaste=be,te.copyHandler=function(fe,ie){fe.clipboardData&&fe.clipboardData.setData("text/plain",ie.selectionText),fe.preventDefault()},te.handlePasteEvent=function(fe,ie,de){fe.stopPropagation(),fe.clipboardData&&ye(fe.clipboardData.getData("text/plain"),ie,de)},te.paste=ye,te.moveTextAreaUnderMouseCursor=_e,te.rightClickHandler=function(fe,ie,de,le,me){_e(fe,ie,de),me&&!le.isClickInSelection(fe)&&le.selectWordAtCursor(fe),ie.value=le.selectionText,ie.select()}},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)});Object.defineProperty(te,"__esModule",{value:!0}),te.EscapeSequenceParser=te.VT500_TRANSITION_TABLE=te.TransitionTable=void 0;var ye=ee(2),_e=ee(15),fe=ee(21),ie=ee(22),de=ee(24),le=function(){function ae(he){this.table=new Uint8Array(he)}return ae.prototype.setDefault=function(he,oe){_e.fill(this.table,he<<4|oe)},ae.prototype.add=function(he,oe,ne,a){this.table[oe<<8|he]=ne<<4|a},ae.prototype.addMany=function(he,oe,ne,a){for(var y=0;y<he.length;y++)this.table[oe<<8|he[y]]=ne<<4|a},ae}();te.TransitionTable=le,te.VT500_TRANSITION_TABLE=function(){var ae=new le(4095),he=Array.apply(null,Array(256)).map(function(b,x){return x}),oe=function(b,x){return he.slice(b,x)},ne=oe(32,127),a=oe(0,24);a.push(25),a.push.apply(a,oe(28,32));var y,E=oe(0,14);for(y in ae.setDefault(1,0),ae.addMany(ne,0,2,0),E)ae.addMany([24,26,153,154],y,3,0),ae.addMany(oe(128,144),y,3,0),ae.addMany(oe(144,152),y,3,0),ae.add(156,y,0,0),ae.add(27,y,11,1),ae.add(157,y,4,8),ae.addMany([152,158,159],y,0,7),ae.add(155,y,11,3),ae.add(144,y,11,9);return ae.addMany(a,0,3,0),ae.addMany(a,1,3,1),ae.add(127,1,0,1),ae.addMany(a,8,0,8),ae.addMany(a,3,3,3),ae.add(127,3,0,3),ae.addMany(a,4,3,4),ae.add(127,4,0,4),ae.addMany(a,6,3,6),ae.addMany(a,5,3,5),ae.add(127,5,0,5),ae.addMany(a,2,3,2),ae.add(127,2,0,2),ae.add(93,1,4,8),ae.addMany(ne,8,5,8),ae.add(127,8,5,8),ae.addMany([156,27,24,26,7],8,6,0),ae.addMany(oe(28,32),8,0,8),ae.addMany([88,94,95],1,0,7),ae.addMany(ne,7,0,7),ae.addMany(a,7,0,7),ae.add(156,7,0,0),ae.add(127,7,0,7),ae.add(91,1,11,3),ae.addMany(oe(64,127),3,7,0),ae.addMany(oe(48,60),3,8,4),ae.addMany([60,61,62,63],3,9,4),ae.addMany(oe(48,60),4,8,4),ae.addMany(oe(64,127),4,7,0),ae.addMany([60,61,62,63],4,0,6),ae.addMany(oe(32,64),6,0,6),ae.add(127,6,0,6),ae.addMany(oe(64,127),6,0,0),ae.addMany(oe(32,48),3,9,5),ae.addMany(oe(32,48),5,9,5),ae.addMany(oe(48,64),5,0,6),ae.addMany(oe(64,127),5,7,0),ae.addMany(oe(32,48),4,9,5),ae.addMany(oe(32,48),1,9,2),ae.addMany(oe(32,48),2,9,2),ae.addMany(oe(48,127),2,10,0),ae.addMany(oe(48,80),1,10,0),ae.addMany(oe(81,88),1,10,0),ae.addMany([89,90,92],1,10,0),ae.addMany(oe(96,127),1,10,0),ae.add(80,1,11,9),ae.addMany(a,9,0,9),ae.add(127,9,0,9),ae.addMany(oe(28,32),9,0,9),ae.addMany(oe(32,48),9,9,12),ae.addMany(oe(48,60),9,8,10),ae.addMany([60,61,62,63],9,9,10),ae.addMany(a,11,0,11),ae.addMany(oe(32,128),11,0,11),ae.addMany(oe(28,32),11,0,11),ae.addMany(a,10,0,10),ae.add(127,10,0,10),ae.addMany(oe(28,32),10,0,10),ae.addMany(oe(48,60),10,8,10),ae.addMany([60,61,62,63],10,0,11),ae.addMany(oe(32,48),10,9,12),ae.addMany(a,12,0,12),ae.add(127,12,0,12),ae.addMany(oe(28,32),12,0,12),ae.addMany(oe(32,48),12,9,12),ae.addMany(oe(48,64),12,0,11),ae.addMany(oe(64,127),12,12,13),ae.addMany(oe(64,127),10,12,13),ae.addMany(oe(64,127),9,12,13),ae.addMany(a,13,13,13),ae.addMany(ne,13,13,13),ae.add(127,13,0,13),ae.addMany([27,156,24,26],13,14,0),ae.add(160,0,2,0),ae.add(160,8,5,8),ae.add(160,6,0,6),ae.add(160,11,0,11),ae.add(160,13,13,13),ae}();var me=function(ae){function he(oe){oe===void 0&&(oe=te.VT500_TRANSITION_TABLE);var ne=ae.call(this)||this;return ne._transitions=oe,ne.initialState=0,ne.currentState=ne.initialState,ne._params=new fe.Params,ne._params.addParam(0),ne._collect=0,ne.precedingCodepoint=0,ne._printHandlerFb=function(a,y,E){},ne._executeHandlerFb=function(a){},ne._csiHandlerFb=function(a,y){},ne._escHandlerFb=function(a){},ne._errorHandlerFb=function(a){return a},ne._printHandler=ne._printHandlerFb,ne._executeHandlers=Object.create(null),ne._csiHandlers=Object.create(null),ne._escHandlers=Object.create(null),ne._oscParser=new ie.OscParser,ne._dcsParser=new de.DcsParser,ne._errorHandler=ne._errorHandlerFb,ne.setEscHandler({final:"\\"},function(){}),ne}return be(he,ae),he.prototype._identifier=function(oe,ne){ne===void 0&&(ne=[64,126]);var a=0;if(oe.prefix){if(oe.prefix.length>1)throw new Error("only one byte as prefix supported");if((a=oe.prefix.charCodeAt(0))&&60>a||a>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(oe.intermediates){if(oe.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(var y=0;y<oe.intermediates.length;++y){var E=oe.intermediates.charCodeAt(y);if(32>E||E>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");a<<=8,a|=E}}if(oe.final.length!==1)throw new Error("final must be a single byte");var b=oe.final.charCodeAt(0);if(ne[0]>b||b>ne[1])throw new Error("final must be in range "+ne[0]+" .. "+ne[1]);return a<<=8,a|=b},he.prototype.identToString=function(oe){for(var ne=[];oe;)ne.push(String.fromCharCode(255&oe)),oe>>=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(oe){this._printHandler=oe},he.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},he.prototype.addEscHandler=function(oe,ne){var a=this._identifier(oe,[48,126]);this._escHandlers[a]===void 0&&(this._escHandlers[a]=[]);var y=this._escHandlers[a];return y.push(ne),{dispose:function(){var E=y.indexOf(ne);E!==-1&&y.splice(E,1)}}},he.prototype.setEscHandler=function(oe,ne){this._escHandlers[this._identifier(oe,[48,126])]=[ne]},he.prototype.clearEscHandler=function(oe){this._escHandlers[this._identifier(oe,[48,126])]&&delete this._escHandlers[this._identifier(oe,[48,126])]},he.prototype.setEscHandlerFallback=function(oe){this._escHandlerFb=oe},he.prototype.setExecuteHandler=function(oe,ne){this._executeHandlers[oe.charCodeAt(0)]=ne},he.prototype.clearExecuteHandler=function(oe){this._executeHandlers[oe.charCodeAt(0)]&&delete this._executeHandlers[oe.charCodeAt(0)]},he.prototype.setExecuteHandlerFallback=function(oe){this._executeHandlerFb=oe},he.prototype.addCsiHandler=function(oe,ne){var a=this._identifier(oe);this._csiHandlers[a]===void 0&&(this._csiHandlers[a]=[]);var y=this._csiHandlers[a];return y.push(ne),{dispose:function(){var E=y.indexOf(ne);E!==-1&&y.splice(E,1)}}},he.prototype.setCsiHandler=function(oe,ne){this._csiHandlers[this._identifier(oe)]=[ne]},he.prototype.clearCsiHandler=function(oe){this._csiHandlers[this._identifier(oe)]&&delete this._csiHandlers[this._identifier(oe)]},he.prototype.setCsiHandlerFallback=function(oe){this._csiHandlerFb=oe},he.prototype.addDcsHandler=function(oe,ne){return this._dcsParser.addHandler(this._identifier(oe),ne)},he.prototype.setDcsHandler=function(oe,ne){this._dcsParser.setHandler(this._identifier(oe),ne)},he.prototype.clearDcsHandler=function(oe){this._dcsParser.clearHandler(this._identifier(oe))},he.prototype.setDcsHandlerFallback=function(oe){this._dcsParser.setHandlerFallback(oe)},he.prototype.addOscHandler=function(oe,ne){return this._oscParser.addHandler(oe,ne)},he.prototype.setOscHandler=function(oe,ne){this._oscParser.setHandler(oe,ne)},he.prototype.clearOscHandler=function(oe){this._oscParser.clearHandler(oe)},he.prototype.setOscHandlerFallback=function(oe){this._oscParser.setHandlerFallback(oe)},he.prototype.setErrorHandler=function(oe){this._errorHandler=oe},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(oe,ne){for(var a=0,y=0,E=this.currentState,b=this._oscParser,x=this._dcsParser,z=this._collect,re=this._params,se=this._transitions.table,ce=0;ce<ne;++ce){switch((y=se[E<<8|((a=oe[ce])<160?a:160)])>>4){case 2:for(var pe=ce+1;;++pe){if(pe>=ne||(a=oe[pe])<32||a>126&&a<160){this._printHandler(oe,ce,pe),ce=pe-1;break}if(++pe>=ne||(a=oe[pe])<32||a>126&&a<160){this._printHandler(oe,ce,pe),ce=pe-1;break}if(++pe>=ne||(a=oe[pe])<32||a>126&&a<160){this._printHandler(oe,ce,pe),ce=pe-1;break}if(++pe>=ne||(a=oe[pe])<32||a>126&&a<160){this._printHandler(oe,ce,pe),ce=pe-1;break}}break;case 3:this._executeHandlers[a]?this._executeHandlers[a]():this._executeHandlerFb(a),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:ce,code:a,currentState:E,collect:z,params:re,abort:!1}).abort)return;break;case 7:for(var Se=this._csiHandlers[z<<8|a],Le=Se?Se.length-1:-1;Le>=0&&Se[Le](re)===!1;Le--);Le<0&&this._csiHandlerFb(z<<8|a,re),this.precedingCodepoint=0;break;case 8:do switch(a){case 59:re.addParam(0);break;case 58:re.addSubParam(-1);break;default:re.addDigit(a-48)}while(++ce<ne&&(a=oe[ce])>47&&a<60);ce--;break;case 9:z<<=8,z|=a;break;case 10:for(var Ee=this._escHandlers[z<<8|a],je=Ee?Ee.length-1:-1;je>=0&&Ee[je]()===!1;je--);je<0&&this._escHandlerFb(z<<8|a),this.precedingCodepoint=0;break;case 11:re.reset(),re.addParam(0),z=0;break;case 12:x.hook(z<<8|a,re);break;case 13:for(var Me=ce+1;;++Me)if(Me>=ne||(a=oe[Me])===24||a===26||a===27||a>127&&a<160){x.put(oe,ce,Me),ce=Me-1;break}break;case 14:x.unhook(a!==24&&a!==26),a===27&&(y|=1),re.reset(),re.addParam(0),z=0,this.precedingCodepoint=0;break;case 4:b.start();break;case 5:for(var mt=ce+1;;mt++)if(mt>=ne||(a=oe[mt])<32||a>127&&a<=159){b.put(oe,ce,mt),ce=mt-1;break}break;case 6:b.end(a!==24&&a!==26),a===27&&(y|=1),re.reset(),re.addParam(0),z=0,this.precedingCodepoint=0}E=15&y}this._collect=z,this.currentState=E},he}(ye.Disposable);te.EscapeSequenceParser=me},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(b,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var se in re)re.hasOwnProperty(se)&&(z[se]=re[se])})(b,x)},function(b,x){function z(){this.constructor=b}ge(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ye=this&&this.__decorate||function(b,x,z,re){var se,ce=arguments.length,pe=ce<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(b,x,z,re);else for(var Se=b.length-1;Se>=0;Se--)(se=b[Se])&&(pe=(ce<3?se(pe):ce>3?se(x,z,pe):se(x,z))||pe);return ce>3&&pe&&Object.defineProperty(x,z,pe),pe},_e=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Renderer=void 0;var fe=ee(41),ie=ee(47),de=ee(48),le=ee(49),me=ee(29),ae=ee(2),he=ee(5),oe=ee(1),ne=ee(25),a=ee(0),y=1,E=function(b){function x(z,re,se,ce,pe,Se,Le,Ee,je){var Me=b.call(this)||this;Me._colors=z,Me._screenElement=re,Me._bufferService=pe,Me._charSizeService=Se,Me._optionsService=Le,Me._id=y++,Me._onRequestRedraw=new a.EventEmitter;var mt=Me._optionsService.options.allowTransparency;return Me._characterJoinerRegistry=new me.CharacterJoinerRegistry(Me._bufferService),Me._renderLayers=[new fe.TextRenderLayer(Me._screenElement,0,Me._colors,Me._characterJoinerRegistry,mt,Me._id,Me._bufferService,Le),new ie.SelectionRenderLayer(Me._screenElement,1,Me._colors,Me._id,Me._bufferService,Le),new le.LinkRenderLayer(Me._screenElement,2,Me._colors,Me._id,se,ce,Me._bufferService,Le),new de.CursorRenderLayer(Me._screenElement,3,Me._colors,Me._id,Me._onRequestRedraw,Me._bufferService,Le,Ee,je)],Me.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},Me._devicePixelRatio=window.devicePixelRatio,Me._updateDimensions(),Me.onOptionsChanged(),Me}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,re=this._renderLayers;z<re.length;z++)re[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 re=0,se=this._renderLayers;re<se.length;re++){var ce=se[re];ce.setColors(this._colors),ce.reset()}},x.prototype.onResize=function(z,re){this._updateDimensions();for(var se=0,ce=this._renderLayers;se<ce.length;se++)ce[se].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,re,se){se===void 0&&(se=!1),this._runOperation(function(ce){return ce.onSelectionChanged(z,re,se)})},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 re=0,se=this._renderLayers;re<se.length;re++)z(se[re])},x.prototype.renderRows=function(z,re){for(var se=0,ce=this._renderLayers;se<ce.length;se++)ce[se].onGridChanged(z,re)},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=ye([_e(4,oe.IBufferService),_e(5,he.ICharSizeService),_e(6,oe.IOptionsService),_e(7,oe.ICoreService),_e(8,he.ICoreBrowserService)],x)}(ae.Disposable);te.Renderer=E},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)});Object.defineProperty(te,"__esModule",{value:!0}),te.TextRenderLayer=void 0;var ye=ee(42),_e=ee(13),fe=ee(6),ie=ee(3),de=ee(29),le=ee(4),me=function(ae){function he(oe,ne,a,y,E,b,x,z){var re=ae.call(this,oe,"text",ne,E,a,b,x,z)||this;return re._characterWidth=0,re._characterFont="",re._characterOverlapCache={},re._workCell=new le.CellData,re._state=new ye.GridCache,re._characterJoinerRegistry=y,re}return be(he,ae),he.prototype.resize=function(oe){ae.prototype.resize.call(this,oe);var ne=this._getFont(!1,!1);this._characterWidth===oe.scaledCharWidth&&this._characterFont===ne||(this._characterWidth=oe.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(oe,ne,a,y){for(var E=oe;E<=ne;E++)for(var b=E+this._bufferService.buffer.ydisp,x=this._bufferService.buffer.lines.get(b),z=a?a.getJoinedCharacters(b):[],re=0;re<this._bufferService.cols;re++){x.loadCell(re,this._workCell);var se=this._workCell,ce=!1,pe=re;if(se.getWidth()!==0){if(z.length>0&&re===z[0][0]){ce=!0;var Se=z.shift();se=new de.JoinedCellData(this._workCell,x.translateToString(!0,Se[0],Se[1]),Se[1]-Se[0]),pe=Se[1]-1}!ce&&this._isOverlapping(se)&&pe<x.length-1&&x.getCodePoint(pe+1)===ie.NULL_CELL_CODE&&(se.content&=-12582913,se.content|=2<<22),y(se,re,E),re=pe}}},he.prototype._drawBackground=function(oe,ne){var a=this,y=this._ctx,E=this._bufferService.cols,b=0,x=0,z=null;y.save(),this._forEachCell(oe,ne,null,function(re,se,ce){var pe=null;re.isInverse()?pe=re.isFgDefault()?a._colors.foreground.css:re.isFgRGB()?"rgb("+fe.AttributeData.toColorRGB(re.getFgColor()).join(",")+")":a._colors.ansi[re.getFgColor()].css:re.isBgRGB()?pe="rgb("+fe.AttributeData.toColorRGB(re.getBgColor()).join(",")+")":re.isBgPalette()&&(pe=a._colors.ansi[re.getBgColor()].css),z===null&&(b=se,x=ce),ce!==x?(y.fillStyle=z||"",a._fillCells(b,x,E-b,1),b=se,x=ce):z!==pe&&(y.fillStyle=z||"",a._fillCells(b,x,se-b,1),b=se,x=ce),z=pe}),z!==null&&(y.fillStyle=z,this._fillCells(b,x,E-b,1)),y.restore()},he.prototype._drawForeground=function(oe,ne){var a=this;this._forEachCell(oe,ne,this._characterJoinerRegistry,function(y,E,b){if(!y.isInvisible()&&(a._drawChars(y,E,b),y.isUnderline())){if(a._ctx.save(),y.isInverse())if(y.isBgDefault())a._ctx.fillStyle=a._colors.background.css;else if(y.isBgRGB())a._ctx.fillStyle="rgb("+fe.AttributeData.toColorRGB(y.getBgColor()).join(",")+")";else{var x=y.getBgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&x<8&&(x+=8),a._ctx.fillStyle=a._colors.ansi[x].css}else if(y.isFgDefault())a._ctx.fillStyle=a._colors.foreground.css;else if(y.isFgRGB())a._ctx.fillStyle="rgb("+fe.AttributeData.toColorRGB(y.getFgColor()).join(",")+")";else{var z=y.getFgColor();a._optionsService.options.drawBoldTextInBrightColors&&y.isBold()&&z<8&&(z+=8),a._ctx.fillStyle=a._colors.ansi[z].css}a._fillBottomLineAtCells(E,b,y.getWidth()),a._ctx.restore()}})},he.prototype.onGridChanged=function(oe,ne){this._state.cache.length!==0&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,oe,this._bufferService.cols,ne-oe+1),this._drawBackground(oe,ne),this._drawForeground(oe,ne))},he.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},he.prototype._isOverlapping=function(oe){if(oe.getWidth()!==1||oe.getCode()<256)return!1;var ne=oe.getChars();if(this._characterOverlapCache.hasOwnProperty(ne))return this._characterOverlapCache[ne];this._ctx.save(),this._ctx.font=this._characterFont;var a=Math.floor(this._ctx.measureText(ne).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[ne]=a,a},he}(_e.BaseRenderLayer);te.TextRenderLayer=me},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.GridCache=void 0;var ge=function(){function be(){this.cache=[]}return be.prototype.resize=function(ye,_e){for(var fe=0;fe<ye;fe++){this.cache.length<=fe&&this.cache.push([]);for(var ie=this.cache[fe].length;ie<_e;ie++)this.cache[fe].push(void 0);this.cache[fe].length=_e}this.cache.length=ye},be.prototype.clear=function(){for(var ye=0;ye<this.cache.length;ye++)for(var _e=0;_e<this.cache[ye].length;_e++)this.cache[ye][_e]=void 0},be}();te.GridCache=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(a,y){return(ge=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])})(a,y)},function(a,y){function E(){this.constructor=a}ge(a,y),a.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(te,"__esModule",{value:!0}),te.NoneCharAtlas=te.DynamicCharAtlas=te.getGlyphCacheKey=void 0;var ye=ee(9),_e=ee(44),fe=ee(27),ie=ee(46),de=ee(11),le=ee(28),me=ee(10),ae={css:"rgba(0, 0, 0, 0)",rgba:0};function he(a){return a.code<<21|a.bg<<12|a.fg<<3|(a.bold?0:4)+(a.dim?0:2)+(a.italic?0:1)}te.getGlyphCacheKey=he;var oe=function(a){function y(E,b){var x=a.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=le.throwIfFalsy(x._cacheCanvas.getContext("2d",{alpha:!0}));var z=E.createElement("canvas");z.width=x._config.scaledCharWidth,z.height=x._config.scaledCharHeight,x._tmpCtx=le.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 re=x._width*x._height;return x._cacheMap=new ie.LRUMap(re),x._cacheMap.prealloc(re),x}return be(y,a),y.prototype.dispose=function(){this._bitmapCommitTimeout!==null&&(window.clearTimeout(this._bitmapCommitTimeout),this._bitmapCommitTimeout=null)},y.prototype.beginFrame=function(){this._drawToCacheCount=0},y.prototype.draw=function(E,b,x,z){if(b.code===32)return!0;if(!this._canCache(b))return!1;var re=he(b),se=this._cacheMap.get(re);if(se!=null)return this._drawFromCache(E,se,x,z),!0;if(this._drawToCacheCount<100){var ce=void 0;ce=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var pe=this._drawToCache(b,ce);return this._cacheMap.set(re,pe),this._drawFromCache(E,pe,x,z),!0}return!1},y.prototype._canCache=function(E){return E.code<256},y.prototype._toCoordinateX=function(E){return E%this._width*this._config.scaledCharWidth},y.prototype._toCoordinateY=function(E){return Math.floor(E/this._width)*this._config.scaledCharHeight},y.prototype._drawFromCache=function(E,b,x,z){if(!b.isEmpty){var re=this._toCoordinateX(b.index),se=this._toCoordinateY(b.index);E.drawImage(b.inBitmap?this._bitmap:this._cacheCanvas,re,se,this._config.scaledCharWidth,this._config.scaledCharHeight,x,z,this._config.scaledCharWidth,this._config.scaledCharHeight)}},y.prototype._getColorFromAnsiIndex=function(E){return E<this._config.colors.ansi.length?this._config.colors.ansi[E]:fe.DEFAULT_ANSI_COLORS[E]},y.prototype._getBackgroundColor=function(E){return this._config.allowTransparency?ae:E.bg===ye.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:E.bg<256?this._getColorFromAnsiIndex(E.bg):this._config.colors.background},y.prototype._getForegroundColor=function(E){return E.fg===ye.INVERTED_DEFAULT_COLOR?me.color.opaque(this._config.colors.background):E.fg<256?this._getColorFromAnsiIndex(E.fg):this._config.colors.foreground},y.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,re=E.italic?"italic":"";this._tmpCtx.font=re+" "+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=ye.DIM_OPACITY),this._tmpCtx.fillText(E.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var se=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),ce=!1;this._config.allowTransparency||(ce=function(Ee,je){for(var Me=!0,mt=je.rgba>>>24,Xe=je.rgba>>>16&255,pt=je.rgba>>>8&255,we=0;we<Ee.data.length;we+=4)Ee.data[we]===mt&&Ee.data[we+1]===Xe&&Ee.data[we+2]===pt?Ee.data[we+3]=0:Me=!1;return Me}(se,x));var pe=this._toCoordinateX(b),Se=this._toCoordinateY(b);this._cacheCtx.putImageData(se,pe,Se);var Le={index:b,isEmpty:ce,inBitmap:!1};return this._addGlyphToBitmap(Le),Le},y.prototype._addGlyphToBitmap=function(E){var b=this;!("createImageBitmap"in window)||de.isFirefox||de.isSafari||(this._glyphsWaitingOnBitmap.push(E),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return b._generateBitmap()},100)))},y.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},y}(_e.BaseCharAtlas);te.DynamicCharAtlas=oe;var ne=function(a){function y(E,b){return a.call(this)||this}return be(y,a),y.prototype.draw=function(E,b,x,z){return!1},y}(_e.BaseCharAtlas);te.NoneCharAtlas=ne},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BaseCharAtlas=void 0;var ge=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}();te.BaseCharAtlas=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.ColorContrastCache=void 0;var ge=function(){function be(){this._color={},this._rgba={}}return be.prototype.clear=function(){this._color={},this._rgba={}},be.prototype.setCss=function(ye,_e,fe){this._rgba[ye]||(this._rgba[ye]={}),this._rgba[ye][_e]=fe},be.prototype.getCss=function(ye,_e){return this._rgba[ye]?this._rgba[ye][_e]:void 0},be.prototype.setColor=function(ye,_e,fe){this._color[ye]||(this._color[ye]={}),this._color[ye][_e]=fe},be.prototype.getColor=function(ye,_e){return this._color[ye]?this._color[ye][_e]:void 0},be}();te.ColorContrastCache=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.LRUMap=void 0;var ge=function(){function be(ye){this.capacity=ye,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return be.prototype._unlinkNode=function(ye){var _e=ye.prev,fe=ye.next;ye===this._head&&(this._head=fe),ye===this._tail&&(this._tail=_e),_e!==null&&(_e.next=fe),fe!==null&&(fe.prev=_e)},be.prototype._appendNode=function(ye){var _e=this._tail;_e!==null&&(_e.next=ye),ye.prev=_e,ye.next=null,this._tail=ye,this._head===null&&(this._head=ye)},be.prototype.prealloc=function(ye){for(var _e=this._nodePool,fe=0;fe<ye;fe++)_e.push({prev:null,next:null,key:null,value:null})},be.prototype.get=function(ye){var _e=this._map[ye];return _e!==void 0?(this._unlinkNode(_e),this._appendNode(_e),_e.value):null},be.prototype.peekValue=function(ye){var _e=this._map[ye];return _e!==void 0?_e.value:null},be.prototype.peek=function(){var ye=this._head;return ye===null?null:ye.value},be.prototype.set=function(ye,_e){var fe=this._map[ye];if(fe!==void 0)fe=this._map[ye],this._unlinkNode(fe),fe.value=_e;else if(this.size>=this.capacity)fe=this._head,this._unlinkNode(fe),delete this._map[fe.key],fe.key=ye,fe.value=_e,this._map[ye]=fe;else{var ie=this._nodePool;ie.length>0?((fe=ie.pop()).key=ye,fe.value=_e):fe={prev:null,next:null,key:ye,value:_e},this._map[ye]=fe,this.size++}this._appendNode(fe)},be}();te.LRUMap=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(_e,fe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,de){ie.__proto__=de}||function(ie,de){for(var le in de)de.hasOwnProperty(le)&&(ie[le]=de[le])})(_e,fe)},function(_e,fe){function ie(){this.constructor=_e}ge(_e,fe),_e.prototype=fe===null?Object.create(fe):(ie.prototype=fe.prototype,new ie)});Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionRenderLayer=void 0;var ye=function(_e){function fe(ie,de,le,me,ae,he){var oe=_e.call(this,ie,"selection",de,!0,le,me,ae,he)||this;return oe._clearState(),oe}return be(fe,_e),fe.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},fe.prototype.resize=function(ie){_e.prototype.resize.call(this,ie),this._clearState()},fe.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},fe.prototype.onSelectionChanged=function(ie,de,le){if(this._didStateChange(ie,de,le,this._bufferService.buffer.ydisp))if(this._clearAll(),ie&&de){var me=ie[1]-this._bufferService.buffer.ydisp,ae=de[1]-this._bufferService.buffer.ydisp,he=Math.max(me,0),oe=Math.min(ae,this._bufferService.rows-1);if(!(he>=this._bufferService.rows||oe<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,le){var ne=ie[0],a=de[0]-ne,y=oe-he+1;this._fillCells(ne,he,a,y)}else{ne=me===he?ie[0]:0;var E=he===oe?de[0]:this._bufferService.cols;this._fillCells(ne,he,E-ne,1);var b=Math.max(oe-he-1,0);if(this._fillCells(0,he+1,this._bufferService.cols,b),he!==oe){var x=ae===oe?de[0]:this._bufferService.cols;this._fillCells(0,oe,x,1)}}this._state.start=[ie[0],ie[1]],this._state.end=[de[0],de[1]],this._state.columnSelectMode=le,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},fe.prototype._didStateChange=function(ie,de,le,me){return!this._areCoordinatesEqual(ie,this._state.start)||!this._areCoordinatesEqual(de,this._state.end)||le!==this._state.columnSelectMode||me!==this._state.ydisp},fe.prototype._areCoordinatesEqual=function(ie,de){return!(!ie||!de)&&ie[0]===de[0]&&ie[1]===de[1]},fe}(ee(13).BaseRenderLayer);te.SelectionRenderLayer=ye},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(de,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ae){me.__proto__=ae}||function(me,ae){for(var he in ae)ae.hasOwnProperty(he)&&(me[he]=ae[he])})(de,le)},function(de,le){function me(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.CursorRenderLayer=void 0;var ye=ee(13),_e=ee(4),fe=function(de){function le(me,ae,he,oe,ne,a,y,E,b){var x=de.call(this,me,"cursor",ae,!0,he,oe,a,y)||this;return x._onRequestRedraw=ne,x._coreService=E,x._coreBrowserService=b,x._cell=new _e.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(le,de),le.prototype.resize=function(me){de.prototype.resize.call(this,me),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},le.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},le.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onOptionsChanged=function(){var me,ae=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new ie(this._coreBrowserService.isFocused,function(){ae._render(!0)})):((me=this._cursorBlinkStateManager)===null||me===void 0||me.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},le.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype.onGridChanged=function(me,ae){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},le.prototype._render=function(me){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var ae=this._bufferService.buffer.ybase+this._bufferService.buffer.y,he=ae-this._bufferService.buffer.ydisp;if(he<0||he>=this._bufferService.rows)this._clearCursor();else{var oe=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(ae).loadCell(oe,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](oe,he,this._cell):this._renderBlurCursor(oe,he,this._cell),this._ctx.restore(),this._state.x=oe,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===oe&&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"](oe,he,this._cell),this._ctx.restore(),this._state.x=oe,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()},le.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})},le.prototype._renderBarCursor=function(me,ae,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(me,ae,this._optionsService.options.cursorWidth),this._ctx.restore()},le.prototype._renderBlockCursor=function(me,ae,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(me,ae,he.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(he,me,ae),this._ctx.restore()},le.prototype._renderUnderlineCursor=function(me,ae,he){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(me,ae),this._ctx.restore()},le.prototype._renderBlurCursor=function(me,ae,he){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(me,ae,he.getWidth(),1),this._ctx.restore()},le}(ye.BaseRenderLayer);te.CursorRenderLayer=fe;var ie=function(){function de(le,me){this._renderCallback=me,this.isCursorVisible=!0,le&&this._restartInterval()}return Object.defineProperty(de.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),de.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)},de.prototype.restartBlinkAnimation=function(){var le=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){le._renderCallback(),le._animationFrame=void 0})))},de.prototype._restartInterval=function(le){var me=this;le===void 0&&(le=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(me._animationTimeRestarted){var ae=600-(Date.now()-me._animationTimeRestarted);if(me._animationTimeRestarted=void 0,ae>0)return void me._restartInterval(ae)}me.isCursorVisible=!1,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0}),me._blinkInterval=window.setInterval(function(){if(me._animationTimeRestarted){var he=600-(Date.now()-me._animationTimeRestarted);return me._animationTimeRestarted=void 0,void me._restartInterval(he)}me.isCursorVisible=!me.isCursorVisible,me._animationFrame=window.requestAnimationFrame(function(){me._renderCallback(),me._animationFrame=void 0})},600)},le)},de.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)},de.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},de}()},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(de,le){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(me,ae){me.__proto__=ae}||function(me,ae){for(var he in ae)ae.hasOwnProperty(he)&&(me[he]=ae[he])})(de,le)},function(de,le){function me(){this.constructor=de}ge(de,le),de.prototype=le===null?Object.create(le):(me.prototype=le.prototype,new me)});Object.defineProperty(te,"__esModule",{value:!0}),te.LinkRenderLayer=void 0;var ye=ee(13),_e=ee(9),fe=ee(26),ie=function(de){function le(me,ae,he,oe,ne,a,y,E){var b=de.call(this,me,"link",ae,!0,he,oe,y,E)||this;return ne.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),ne.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),a.onShowLinkUnderline(function(x){return b._onShowLinkUnderline(x)}),a.onHideLinkUnderline(function(x){return b._onHideLinkUnderline(x)}),b}return be(le,de),le.prototype.resize=function(me){de.prototype.resize.call(this,me),this._state=void 0},le.prototype.reset=function(){this._clearCurrentLink()},le.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var me=this._state.y2-this._state.y1-1;me>0&&this._clearCells(0,this._state.y1+1,this._state.cols,me),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},le.prototype._onShowLinkUnderline=function(me){if(me.fg===_e.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:me.fg&&fe.is256Color(me.fg)?this._ctx.fillStyle=this._colors.ansi[me.fg].css:this._ctx.fillStyle=this._colors.foreground.css,me.y1===me.y2)this._fillBottomLineAtCells(me.x1,me.y1,me.x2-me.x1);else{this._fillBottomLineAtCells(me.x1,me.y1,me.cols-me.x1);for(var ae=me.y1+1;ae<me.y2;ae++)this._fillBottomLineAtCells(0,ae,me.cols);this._fillBottomLineAtCells(0,me.y2,me.x2)}this._state=me},le.prototype._onHideLinkUnderline=function(me){this._clearCurrentLink()},le}(ye.BaseRenderLayer);te.LinkRenderLayer=ie},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(de,le,me,ae){var he,oe=arguments.length,ne=oe<3?le:ae===null?ae=Object.getOwnPropertyDescriptor(le,me):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,le,me,ae);else for(var a=de.length-1;a>=0;a--)(he=de[a])&&(ne=(oe<3?he(ne):oe>3?he(le,me,ne):he(le,me))||ne);return oe>3&&ne&&Object.defineProperty(le,me,ne),ne},be=this&&this.__param||function(de,le){return function(me,ae){le(me,ae,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZone=te.Linkifier=void 0;var ye=ee(0),_e=ee(1),fe=function(){function de(le,me,ae){this._bufferService=le,this._logService=me,this._unicodeService=ae,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new ye.EventEmitter,this._onHideLinkUnderline=new ye.EventEmitter,this._onLinkTooltip=new ye.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(de.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),de.prototype.attachToDom=function(le,me){this._element=le,this._mouseZoneManager=me},de.prototype.linkifyRows=function(le,me){var ae=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=le,this._rowsToLinkify.end=me):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,le),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,me)),this._mouseZoneManager.clearAll(le,me),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return ae._linkifyRows()},de._timeBeforeLatency))},de.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var le=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var me=le.ydisp+this._rowsToLinkify.start;if(!(me>=le.lines.length)){for(var ae=le.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,he=Math.ceil(2e3/this._bufferService.cols),oe=this._bufferService.buffer.iterator(!1,me,ae,he,he);oe.hasNext();)for(var ne=oe.next(),a=0;a<this._linkMatchers.length;a++)this._doLinkifyRow(ne.range.first,ne.content,this._linkMatchers[a]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},de.prototype.registerLinkMatcher=function(le,me,ae){if(ae===void 0&&(ae={}),!me)throw new Error("handler must be defined");var he={id:this._nextLinkMatcherId++,regex:le,handler:me,matchIndex:ae.matchIndex,validationCallback:ae.validationCallback,hoverTooltipCallback:ae.tooltipCallback,hoverLeaveCallback:ae.leaveCallback,willLinkActivate:ae.willLinkActivate,priority:ae.priority||0};return this._addLinkMatcherToList(he),he.id},de.prototype._addLinkMatcherToList=function(le){if(this._linkMatchers.length!==0){for(var me=this._linkMatchers.length-1;me>=0;me--)if(le.priority<=this._linkMatchers[me].priority)return void this._linkMatchers.splice(me+1,0,le);this._linkMatchers.splice(0,0,le)}else this._linkMatchers.push(le)},de.prototype.deregisterLinkMatcher=function(le){for(var me=0;me<this._linkMatchers.length;me++)if(this._linkMatchers[me].id===le)return this._linkMatchers.splice(me,1),!0;return!1},de.prototype._doLinkifyRow=function(le,me,ae){for(var he,oe=this,ne=new RegExp(ae.regex.source,(ae.regex.flags||"")+"g"),a=-1,y=function(){var b=he[typeof ae.matchIndex!="number"?0:ae.matchIndex];if(!b)return E._logService.debug("match found without corresponding matchIndex",he,ae),"break";if(a=me.indexOf(b,a+1),ne.lastIndex=a+b.length,a<0)return"break";var x=E._bufferService.buffer.stringIndexToBufferIndex(le,a);if(x[0]<0)return"break";var z=E._bufferService.buffer.lines.get(x[0]);if(!z)return"break";var re=z.getFg(x[1]),se=re?re>>9&511:void 0;ae.validationCallback?ae.validationCallback(b,function(ce){oe._rowsTimeoutId||ce&&oe._addLink(x[1],x[0]-oe._bufferService.buffer.ydisp,b,ae,se)}):E._addLink(x[1],x[0]-E._bufferService.buffer.ydisp,b,ae,se)},E=this;(he=ne.exec(me))!==null&&y()!=="break";);},de.prototype._addLink=function(le,me,ae,he,oe){var ne=this;if(this._mouseZoneManager&&this._element){var a=this._unicodeService.getStringCellWidth(ae),y=le%this._bufferService.cols,E=me+Math.floor(le/this._bufferService.cols),b=(y+a)%this._bufferService.cols,x=E+Math.floor((y+a)/this._bufferService.cols);b===0&&(b=this._bufferService.cols,x--),this._mouseZoneManager.add(new ie(y+1,E+1,b+1,x+1,function(z){if(he.handler)return he.handler(z,ae);var re=window.open();re?(re.opener=null,re.location.href=ae):console.warn("Opening link blocked as opener could not be cleared")},function(){ne._onShowLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,oe)),ne._element.classList.add("xterm-cursor-pointer")},function(z){ne._onLinkTooltip.fire(ne._createLinkHoverEvent(y,E,b,x,oe)),he.hoverTooltipCallback&&he.hoverTooltipCallback(z,ae,{start:{x:y,y:E},end:{x:b,y:x}})},function(){ne._onHideLinkUnderline.fire(ne._createLinkHoverEvent(y,E,b,x,oe)),ne._element.classList.remove("xterm-cursor-pointer"),he.hoverLeaveCallback&&he.hoverLeaveCallback()},function(z){return!he.willLinkActivate||he.willLinkActivate(z,ae)}))}},de.prototype._createLinkHoverEvent=function(le,me,ae,he,oe){return{x1:le,y1:me,x2:ae,y2:he,cols:this._bufferService.cols,fg:oe}},de._timeBeforeLatency=200,de=ge([be(0,_e.IBufferService),be(1,_e.ILogService),be(2,_e.IUnicodeService)],de)}();te.Linkifier=fe;var ie=function(de,le,me,ae,he,oe,ne,a,y){this.x1=de,this.y1=le,this.x2=me,this.y2=ae,this.clickCallback=he,this.hoverCallback=oe,this.tooltipCallback=ne,this.leaveCallback=a,this.willLinkActivate=y};te.MouseZone=ie},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(b,x){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,re){z.__proto__=re}||function(z,re){for(var se in re)re.hasOwnProperty(se)&&(z[se]=re[se])})(b,x)},function(b,x){function z(){this.constructor=b}ge(b,x),b.prototype=x===null?Object.create(x):(z.prototype=x.prototype,new z)}),ye=this&&this.__decorate||function(b,x,z,re){var se,ce=arguments.length,pe=ce<3?x:re===null?re=Object.getOwnPropertyDescriptor(x,z):re;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(b,x,z,re);else for(var Se=b.length-1;Se>=0;Se--)(se=b[Se])&&(pe=(ce<3?se(pe):ce>3?se(x,z,pe):se(x,z))||pe);return ce>3&&pe&&Object.defineProperty(x,z,pe),pe},_e=this&&this.__param||function(b,x){return function(z,re){x(z,re,b)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionService=void 0;var fe=ee(11),ie=ee(52),de=ee(4),le=ee(0),me=ee(5),ae=ee(1),he=ee(30),oe=ee(53),ne=ee(2),a="\xA0",y=new RegExp(a,"g"),E=function(b){function x(z,re,se,ce,pe,Se,Le){var Ee=b.call(this)||this;return Ee._element=z,Ee._screenElement=re,Ee._bufferService=se,Ee._coreService=ce,Ee._mouseService=pe,Ee._optionsService=Se,Ee._renderService=Le,Ee._dragScrollAmount=0,Ee._enabled=!0,Ee._workCell=new de.CellData,Ee._mouseDownTimeStamp=0,Ee._onLinuxMouseSelection=Ee.register(new le.EventEmitter),Ee._onRedrawRequest=Ee.register(new le.EventEmitter),Ee._onSelectionChange=Ee.register(new le.EventEmitter),Ee._onRequestScrollLines=Ee.register(new le.EventEmitter),Ee._mouseMoveListener=function(je){return Ee._onMouseMove(je)},Ee._mouseUpListener=function(je){return Ee._onMouseUp(je)},Ee._coreService.onUserInput(function(){Ee.hasSelection&&Ee.clearSelection()}),Ee._trimListener=Ee._bufferService.buffer.lines.onTrim(function(je){return Ee._onTrim(je)}),Ee.register(Ee._bufferService.buffers.onBufferActivate(function(je){return Ee._onBufferActivate(je)})),Ee.enable(),Ee._model=new ie.SelectionModel(Ee._bufferService),Ee._activeSelectionMode=0,Ee}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,re=this._model.finalSelectionEnd;return!(!z||!re)&&(z[0]!==re[0]||z[1]!==re[1])},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"selectionText",{get:function(){var z=this._model.finalSelectionStart,re=this._model.finalSelectionEnd;if(!z||!re)return"";var se=this._bufferService.buffer,ce=[];if(this._activeSelectionMode===3){if(z[0]===re[0])return"";for(var pe=z[1];pe<=re[1];pe++){var Se=se.translateBufferLineToString(pe,!0,z[0],re[0]);ce.push(Se)}}else{var Le=z[1]===re[1]?re[0]:void 0;for(ce.push(se.translateBufferLineToString(z[1],!0,z[0],Le)),pe=z[1]+1;pe<=re[1]-1;pe++){var Ee=se.lines.get(pe);Se=se.translateBufferLineToString(pe,!0),Ee&&Ee.isWrapped?ce[ce.length-1]+=Se:ce.push(Se)}z[1]!==re[1]&&(Ee=se.lines.get(re[1]),Se=se.translateBufferLineToString(re[1],!0,0,re[0]),Ee&&Ee.isWrapped?ce[ce.length-1]+=Se:ce.push(Se))}return ce.map(function(je){return je.replace(y," ")}).join(fe.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 re=this;this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return re._refresh()})),fe.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 re=this._getMouseBufferCoords(z),se=this._model.finalSelectionStart,ce=this._model.finalSelectionEnd;return!!(se&&ce&&re)&&this._areCoordsInSelection(re,se,ce)},x.prototype._areCoordsInSelection=function(z,re,se){return z[1]>re[1]&&z[1]<se[1]||re[1]===se[1]&&z[1]===re[1]&&z[0]>=re[0]&&z[0]<se[0]||re[1]<se[1]&&z[1]===se[1]&&z[0]<se[0]||re[1]<se[1]&&z[1]===re[1]&&z[0]>=re[0]},x.prototype.selectWordAtCursor=function(z){var re=this._getMouseBufferCoords(z);re&&(this._selectWordAt(re,!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,re){this._model.clearSelection(),z=Math.max(z,0),re=Math.min(re,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,z],this._model.selectionEnd=[this._bufferService.cols,re],this.refresh(),this._onSelectionChange.fire()},x.prototype._onTrim=function(z){this._model.onTrim(z)&&this.refresh()},x.prototype._getMouseBufferCoords=function(z){var re=this._mouseService.getCoords(z,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(re)return re[0]--,re[1]--,re[1]+=this._bufferService.buffer.ydisp,re},x.prototype._getMouseEventScrollAmount=function(z){var re=he.getCoordsRelativeToElement(z,this._screenElement)[1],se=this._renderService.dimensions.canvasHeight;return re>=0&&re<=se?0:(re>se&&(re-=se),re=Math.min(Math.max(re,-50),50),(re/=50)/Math.abs(re)+Math.round(14*re))},x.prototype.shouldForceSelection=function(z){return fe.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 re=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);re&&re.length!==this._model.selectionStart[0]&&re.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},x.prototype._onDoubleClick=function(z){var re=this._getMouseBufferCoords(z);re&&(this._activeSelectionMode=1,this._selectWordAt(re,!0))},x.prototype._onTripleClick=function(z){var re=this._getMouseBufferCoords(z);re&&(this._activeSelectionMode=2,this._selectLineAt(re[1]))},x.prototype.shouldColumnSelect=function(z){return z.altKey&&!(fe.isMac&&this._optionsService.options.macOptionClickForcesSelection)},x.prototype._onMouseMove=function(z){if(z.stopImmediatePropagation(),this._model.selectionStart){var re=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 se=this._bufferService.buffer;if(this._model.selectionEnd[1]<se.lines.length){var ce=se.lines.get(this._model.selectionEnd[1]);ce&&ce.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}re&&re[0]===this._model.selectionEnd[0]&&re[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 re=z.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&re<500&&z.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var se=this._mouseService.getCoords(z,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(se&&se[0]!==void 0&&se[1]!==void 0){var ce=oe.moveToCellSequence(se[0]-1,se[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ce,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},x.prototype._onBufferActivate=function(z){var re=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=z.activeBuffer.lines.onTrim(function(se){return re._onTrim(se)})},x.prototype._convertViewportColToCharacterIndex=function(z,re){for(var se=re[0],ce=0;re[0]>=ce;ce++){var pe=z.loadCell(ce,this._workCell).getChars().length;this._workCell.getWidth()===0?se--:pe>1&&re[0]!==ce&&(se+=pe-1)}return se},x.prototype.setSelection=function(z,re,se){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[z,re],this._model.selectionStartLength=se,this.refresh()},x.prototype._getWordAt=function(z,re,se,ce){if(se===void 0&&(se=!0),ce===void 0&&(ce=!0),!(z[0]>=this._bufferService.cols)){var pe=this._bufferService.buffer,Se=pe.lines.get(z[1]);if(Se){var Le=pe.translateBufferLineToString(z[1],!1),Ee=this._convertViewportColToCharacterIndex(Se,z),je=Ee,Me=z[0]-Ee,mt=0,Xe=0,pt=0,we=0;if(Le.charAt(Ee)===" "){for(;Ee>0&&Le.charAt(Ee-1)===" ";)Ee--;for(;je<Le.length&&Le.charAt(je+1)===" ";)je++}else{var Fe=z[0],He=z[0];Se.getWidth(Fe)===0&&(mt++,Fe--),Se.getWidth(He)===2&&(Xe++,He++);var it=Se.getString(He).length;for(it>1&&(we+=it-1,je+=it-1);Fe>0&&Ee>0&&!this._isCharWordSeparator(Se.loadCell(Fe-1,this._workCell));){Se.loadCell(Fe-1,this._workCell);var Ke=this._workCell.getChars().length;this._workCell.getWidth()===0?(mt++,Fe--):Ke>1&&(pt+=Ke-1,Ee-=Ke-1),Ee--,Fe--}for(;He<Se.length&&je+1<Le.length&&!this._isCharWordSeparator(Se.loadCell(He+1,this._workCell));){Se.loadCell(He+1,this._workCell);var ht=this._workCell.getChars().length;this._workCell.getWidth()===2?(Xe++,He++):ht>1&&(we+=ht-1,je+=ht-1),je++,He++}}je++;var _t=Ee+Me-mt+pt,Lt=Math.min(this._bufferService.cols,je-Ee+mt+Xe-pt-we);if(re||Le.slice(Ee,je).trim()!==""){if(se&&_t===0&&Se.getCodePoint(0)!==32){var kt=pe.lines.get(z[1]-1);if(kt&&Se.isWrapped&&kt.getCodePoint(this._bufferService.cols-1)!==32){var nt=this._getWordAt([this._bufferService.cols-1,z[1]-1],!1,!0,!1);if(nt){var Qe=this._bufferService.cols-nt.start;_t-=Qe,Lt+=Qe}}}if(ce&&_t+Lt===this._bufferService.cols&&Se.getCodePoint(this._bufferService.cols-1)!==32){var Pt=pe.lines.get(z[1]+1);if(Pt&&Pt.isWrapped&&Pt.getCodePoint(0)!==32){var zt=this._getWordAt([0,z[1]+1],!1,!1,!0);zt&&(Lt+=zt.length)}}return{start:_t,length:Lt}}}}},x.prototype._selectWordAt=function(z,re){var se=this._getWordAt(z,re);if(se){for(;se.start<0;)se.start+=this._bufferService.cols,z[1]--;this._model.selectionStart=[se.start,z[1]],this._model.selectionStartLength=se.length}},x.prototype._selectToWordAt=function(z){var re=this._getWordAt(z,!0);if(re){for(var se=z[1];re.start<0;)re.start+=this._bufferService.cols,se--;if(!this._model.areSelectionValuesReversed())for(;re.start+re.length>this._bufferService.cols;)re.length-=this._bufferService.cols,se++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?re.start:re.start+re.length,se]}},x.prototype._isCharWordSeparator=function(z){return z.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(z.getChars())>=0},x.prototype._selectLineAt=function(z){var re=this._bufferService.buffer.getWrappedRangeForLine(z);this._model.selectionStart=[0,re.first],this._model.selectionEnd=[this._bufferService.cols,re.last],this._model.selectionStartLength=0},x=ye([_e(2,ae.IBufferService),_e(3,ae.ICoreService),_e(4,me.IMouseService),_e(5,ae.IOptionsService),_e(6,me.IRenderService)],x)}(ne.Disposable);te.SelectionService=E},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.SelectionModel=void 0;var ge=function(){function be(ye){this._bufferService=ye,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 ye=this.selectionStart[0]+this.selectionStartLength;return ye>this._bufferService.cols?[ye%this._bufferService.cols,this.selectionStart[1]+Math.floor(ye/this._bufferService.cols)]:[ye,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 ye=this.selectionStart,_e=this.selectionEnd;return!(!ye||!_e)&&(ye[1]>_e[1]||ye[1]===_e[1]&&ye[0]>_e[0])},be.prototype.onTrim=function(ye){return this.selectionStart&&(this.selectionStart[1]-=ye),this.selectionEnd&&(this.selectionEnd[1]-=ye),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},be}();te.SelectionModel=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.moveToCellSequence=void 0;var ge=ee(12);function be(le,me,ae,he){var oe=le-ye(ae,le),ne=me-ye(ae,me);return de(Math.abs(oe-ne)-function(a,y,E){for(var b=0,x=a-ye(E,a),z=y-ye(E,y),re=0;re<Math.abs(x-z);re++){var se=_e(a,y)==="A"?-1:1,ce=E.buffer.lines.get(x+se*re);ce&&ce.isWrapped&&b++}return b}(le,me,ae),ie(_e(le,me),he))}function ye(le,me){for(var ae=0,he=le.buffer.lines.get(me),oe=he&&he.isWrapped;oe&&me>=0&&me<le.rows;)ae++,oe=(he=le.buffer.lines.get(--me))&&he.isWrapped;return ae}function _e(le,me){return le>me?"A":"B"}function fe(le,me,ae,he,oe,ne){for(var a=le,y=me,E="";a!==ae||y!==he;)a+=oe?1:-1,oe&&a>ne.cols-1?(E+=ne.buffer.translateBufferLineToString(y,!1,le,a),a=0,le=0,y++):!oe&&a<0&&(E+=ne.buffer.translateBufferLineToString(y,!1,0,le+1),le=a=ne.cols-1,y--);return E+ne.buffer.translateBufferLineToString(y,!1,le,a)}function ie(le,me){var ae=me?"O":"[";return ge.C0.ESC+ae+le}function de(le,me){le=Math.floor(le);for(var ae="",he=0;he<le;he++)ae+=me;return ae}te.moveToCellSequence=function(le,me,ae,he){var oe,ne=ae.buffer.x,a=ae.buffer.y;if(!ae.buffer.hasScrollback)return function(E,b,x,z,re,se){return be(b,z,re,se).length===0?"":de(fe(E,b,E,b-ye(re,b),!1,re).length,ie("D",se))}(ne,a,0,me,ae,he)+be(a,me,ae,he)+function(E,b,x,z,re,se){var ce;ce=be(b,z,re,se).length>0?z-ye(re,z):b;var pe=z,Se=function(Le,Ee,je,Me,mt,Xe){var pt;return pt=be(je,Me,mt,Xe).length>0?Me-ye(mt,Me):Ee,Le<je&&pt<=Me||Le>=je&&pt<Me?"C":"D"}(E,b,x,z,re,se);return de(fe(E,ce,x,pe,Se==="C",re).length,ie(Se,se))}(ne,a,le,me,ae,he);if(a===me)return oe=ne>le?"D":"C",de(Math.abs(ne-le),ie(oe,he));oe=a>me?"D":"C";var y=Math.abs(a-me);return de(function(E,b){return b.cols-E}(a>me?le:ne,ae)+(y-1)*ae.cols+1+((a>me?ne:le)-1),ie(oe,he))}},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(fe,ie,de,le){var me,ae=arguments.length,he=ae<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,ie,de,le);else for(var oe=fe.length-1;oe>=0;oe--)(me=fe[oe])&&(he=(ae<3?me(he):ae>3?me(ie,de,he):me(ie,de))||he);return ae>3&&he&&Object.defineProperty(ie,de,he),he},be=this&&this.__param||function(fe,ie){return function(de,le){ie(de,le,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.SoundService=void 0;var ye=ee(1),_e=function(){function fe(ie){this._optionsService=ie}return Object.defineProperty(fe,"audioContext",{get:function(){if(!fe._audioContext){var ie=window.AudioContext||window.webkitAudioContext;if(!ie)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;fe._audioContext=new ie}return fe._audioContext},enumerable:!1,configurable:!0}),fe.prototype.playBellSound=function(){var ie=fe.audioContext;if(ie){var de=ie.createBufferSource();ie.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(le){de.buffer=le,de.connect(ie.destination),de.start(0)})}},fe.prototype._base64ToArrayBuffer=function(ie){for(var de=window.atob(ie),le=de.length,me=new Uint8Array(le),ae=0;ae<le;ae++)me[ae]=de.charCodeAt(ae);return me.buffer},fe.prototype._removeMimeType=function(ie){return ie.split(",")[1]},fe=ge([be(0,ye.IOptionsService)],fe)}();te.SoundService=_e},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),ye=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},_e=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseZoneManager=void 0;var fe=ee(2),ie=ee(7),de=ee(5),le=ee(1),me=function(ae){function he(oe,ne,a,y,E,b){var x=ae.call(this)||this;return x._element=oe,x._screenElement=ne,x._bufferService=a,x._mouseService=y,x._selectionService=E,x._optionsService=b,x._zones=[],x._areZonesActive=!1,x._lastHoverCoords=[void 0,void 0],x._initialSelectionLength=0,x.register(ie.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,ae),he.prototype.dispose=function(){ae.prototype.dispose.call(this),this._deactivate()},he.prototype.add=function(oe){this._zones.push(oe),this._zones.length===1&&this._activate()},he.prototype.clearAll=function(oe,ne){if(this._zones.length!==0){oe&&ne||(oe=0,ne=this._bufferService.rows-1);for(var a=0;a<this._zones.length;a++){var y=this._zones[a];(y.y1>oe&&y.y1<=ne+1||y.y2>oe&&y.y2<=ne+1||y.y1<oe&&y.y2>ne+1)&&(this._currentZone&&this._currentZone===y&&(this._currentZone.leaveCallback(),this._currentZone=void 0),this._zones.splice(a--,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(oe){this._lastHoverCoords[0]===oe.pageX&&this._lastHoverCoords[1]===oe.pageY||(this._onHover(oe),this._lastHoverCoords=[oe.pageX,oe.pageY])},he.prototype._onHover=function(oe){var ne=this,a=this._findZoneEventAt(oe);a!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),a&&(this._currentZone=a,a.hoverCallback&&a.hoverCallback(oe),this._tooltipTimeout=window.setTimeout(function(){return ne._onTooltip(oe)},this._optionsService.options.linkTooltipHoverDuration)))},he.prototype._onTooltip=function(oe){this._tooltipTimeout=void 0;var ne=this._findZoneEventAt(oe);ne&&ne.tooltipCallback&&ne.tooltipCallback(oe)},he.prototype._onMouseDown=function(oe){if(this._initialSelectionLength=this._getSelectionLength(),this._areZonesActive){var ne=this._findZoneEventAt(oe);ne!=null&&ne.willLinkActivate(oe)&&(oe.preventDefault(),oe.stopImmediatePropagation())}},he.prototype._onMouseLeave=function(oe){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},he.prototype._onClick=function(oe){var ne=this._findZoneEventAt(oe),a=this._getSelectionLength();ne&&a===this._initialSelectionLength&&(ne.clickCallback(oe),oe.preventDefault(),oe.stopImmediatePropagation())},he.prototype._getSelectionLength=function(){var oe=this._selectionService.selectionText;return oe?oe.length:0},he.prototype._findZoneEventAt=function(oe){var ne=this._mouseService.getCoords(oe,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(ne)for(var a=ne[0],y=ne[1],E=0;E<this._zones.length;E++){var b=this._zones[E];if(b.y1===b.y2){if(y===b.y1&&a>=b.x1&&a<b.x2)return b}else if(y===b.y1&&a>=b.x1||y===b.y2&&a<b.x2||y>b.y1&&y<b.y2)return b}},he=ye([_e(2,le.IBufferService),_e(3,de.IMouseService),_e(4,de.ISelectionService),_e(5,le.IOptionsService)],he)}(fe.Disposable);te.MouseZoneManager=me},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(he,oe){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ne,a){ne.__proto__=a}||function(ne,a){for(var y in a)a.hasOwnProperty(y)&&(ne[y]=a[y])})(he,oe)},function(he,oe){function ne(){this.constructor=he}ge(he,oe),he.prototype=oe===null?Object.create(oe):(ne.prototype=oe.prototype,new ne)});Object.defineProperty(te,"__esModule",{value:!0}),te.AccessibilityManager=void 0;var ye=ee(18),_e=ee(11),fe=ee(31),ie=ee(7),de=ee(2),le=ee(32),me=ee(17),ae=function(he){function oe(ne,a){var y=he.call(this)||this;y._terminal=ne,y._renderService=a,y._liveRegionLineCount=0,y._charsToConsume=[],y._charsToAnnounce="",y._accessibilityTreeRoot=document.createElement("div"),y._accessibilityTreeRoot.classList.add("xterm-accessibility"),y._rowContainer=document.createElement("div"),y._rowContainer.classList.add("xterm-accessibility-tree"),y._rowContainer.setAttribute("role","list"),y._rowElements=[];for(var E=0;E<y._terminal.rows;E++)y._rowElements[E]=y._createAccessibilityTreeNode(),y._rowContainer.appendChild(y._rowElements[E]);if(y._topBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,0)},y._bottomBoundaryFocusListener=function(b){return y._onBoundaryFocus(b,1)},y._rowElements[0].addEventListener("focus",y._topBoundaryFocusListener),y._rowElements[y._rowElements.length-1].addEventListener("focus",y._bottomBoundaryFocusListener),y._refreshRowsDimensions(),y._accessibilityTreeRoot.appendChild(y._rowContainer),y._renderRowsDebouncer=new fe.RenderDebouncer(y._renderRows.bind(y)),y._refreshRows(),y._liveRegion=document.createElement("div"),y._liveRegion.classList.add("live-region"),y._liveRegion.setAttribute("aria-live","assertive"),y._accessibilityTreeRoot.appendChild(y._liveRegion),!y._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return y._terminal.element.insertAdjacentElement("afterbegin",y._accessibilityTreeRoot),y.register(y._renderRowsDebouncer),y.register(y._terminal.onResize(function(b){return y._onResize(b.rows)})),y.register(y._terminal.onRender(function(b){return y._refreshRows(b.start,b.end)})),y.register(y._terminal.onScroll(function(){return y._refreshRows()})),y.register(y._terminal.onA11yChar(function(b){return y._onChar(b)})),y.register(y._terminal.onLineFeed(function(){return y._onChar(`
`)})),y.register(y._terminal.onA11yTab(function(b){return y._onTab(b)})),y.register(y._terminal.onKey(function(b){return y._onKey(b.key)})),y.register(y._terminal.onBlur(function(){return y._clearLiveRegion()})),y.register(y._renderService.onDimensionsChange(function(){return y._refreshRowsDimensions()})),y._screenDprMonitor=new le.ScreenDprMonitor,y.register(y._screenDprMonitor),y._screenDprMonitor.setListener(function(){return y._refreshRowsDimensions()}),y.register(ie.addDisposableDomListener(window,"resize",function(){return y._refreshRowsDimensions()})),y}return be(oe,he),oe.prototype.dispose=function(){he.prototype.dispose.call(this),me.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},oe.prototype._onBoundaryFocus=function(ne,a){var y=ne.target,E=this._rowElements[a===0?1:this._rowElements.length-2];if(y.getAttribute("aria-posinset")!==(a===0?"1":""+this._terminal.buffer.lines.length)&&ne.relatedTarget===E){var b,x;if(a===0?(b=y,x=this._rowElements.pop(),this._rowContainer.removeChild(x)):(b=this._rowElements.shift(),x=y,this._rowContainer.removeChild(b)),b.removeEventListener("focus",this._topBoundaryFocusListener),x.removeEventListener("focus",this._bottomBoundaryFocusListener),a===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(a===0?-1:1),this._rowElements[a===0?1:this._rowElements.length-2].focus(),ne.preventDefault(),ne.stopImmediatePropagation()}},oe.prototype._onResize=function(ne){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(var a=this._rowContainer.children.length;a<this._terminal.rows;a++)this._rowElements[a]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[a]);for(;this._rowElements.length>ne;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()},oe.prototype._createAccessibilityTreeNode=function(){var ne=document.createElement("div");return ne.setAttribute("role","listitem"),ne.tabIndex=-1,this._refreshRowDimensions(ne),ne},oe.prototype._onTab=function(ne){for(var a=0;a<ne;a++)this._onChar(" ")},oe.prototype._onChar=function(ne){var a=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+=ye.tooMuchOutput)),_e.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){a._accessibilityTreeRoot.appendChild(a._liveRegion)},0))},oe.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,_e.isMac&&me.removeElementFromParent(this._liveRegion)},oe.prototype._onKey=function(ne){this._clearLiveRegion(),this._charsToConsume.push(ne)},oe.prototype._refreshRows=function(ne,a){this._renderRowsDebouncer.refresh(ne,a,this._terminal.rows)},oe.prototype._renderRows=function(ne,a){for(var y=this._terminal.buffer,E=y.lines.length.toString(),b=ne;b<=a;b++){var x=y.translateBufferLineToString(y.ydisp+b,!0),z=(y.ydisp+b+1).toString(),re=this._rowElements[b];re&&(x.length===0?re.innerHTML="&nbsp;":re.textContent=x,re.setAttribute("aria-posinset",z),re.setAttribute("aria-setsize",E))}this._announceCharacters()},oe.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])}},oe.prototype._refreshRowDimensions=function(ne){ne.style.height=this._renderService.dimensions.actualCellHeight+"px"},oe.prototype._announceCharacters=function(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")},oe}(de.Disposable);te.AccessibilityManager=ae},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(y,E){return(ge=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])})(y,E)},function(y,E){function b(){this.constructor=y}ge(y,E),y.prototype=E===null?Object.create(E):(b.prototype=E.prototype,new b)}),ye=this&&this.__decorate||function(y,E,b,x){var z,re=arguments.length,se=re<3?E:x===null?x=Object.getOwnPropertyDescriptor(E,b):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")se=Reflect.decorate(y,E,b,x);else for(var ce=y.length-1;ce>=0;ce--)(z=y[ce])&&(se=(re<3?z(se):re>3?z(E,b,se):z(E,b))||se);return re>3&&se&&Object.defineProperty(E,b,se),se},_e=this&&this.__param||function(y,E){return function(b,x){E(b,x,y)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DomRenderer=void 0;var fe=ee(58),ie=ee(9),de=ee(2),le=ee(5),me=ee(1),ae=ee(0),he=ee(10),oe=ee(17),ne=1,a=function(y){function E(b,x,z,re,se,ce,pe,Se,Le){var Ee=y.call(this)||this;return Ee._colors=b,Ee._element=x,Ee._screenElement=z,Ee._viewportElement=re,Ee._linkifier=se,Ee._linkifier2=ce,Ee._charSizeService=pe,Ee._optionsService=Se,Ee._bufferService=Le,Ee._terminalClass=ne++,Ee._rowElements=[],Ee._rowContainer=document.createElement("div"),Ee._rowContainer.classList.add("xterm-rows"),Ee._rowContainer.style.lineHeight="normal",Ee._rowContainer.setAttribute("aria-hidden","true"),Ee._refreshRowElements(Ee._bufferService.cols,Ee._bufferService.rows),Ee._selectionContainer=document.createElement("div"),Ee._selectionContainer.classList.add("xterm-selection"),Ee._selectionContainer.setAttribute("aria-hidden","true"),Ee.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},Ee._updateDimensions(),Ee._injectCss(),Ee._rowFactory=new fe.DomRendererRowFactory(document,Ee._optionsService,Ee._colors),Ee._element.classList.add("xterm-dom-renderer-owner-"+Ee._terminalClass),Ee._screenElement.appendChild(Ee._rowContainer),Ee._screenElement.appendChild(Ee._selectionContainer),Ee._linkifier.onShowLinkUnderline(function(je){return Ee._onLinkHover(je)}),Ee._linkifier.onHideLinkUnderline(function(je){return Ee._onLinkLeave(je)}),Ee._linkifier2.onShowLinkUnderline(function(je){return Ee._onLinkHover(je)}),Ee._linkifier2.onHideLinkUnderline(function(je){return Ee._onLinkLeave(je)}),Ee}return be(E,y),Object.defineProperty(E.prototype,"onRequestRedraw",{get:function(){return new ae.EventEmitter().event},enumerable:!1,configurable:!0}),E.prototype.dispose=function(){this._element.classList.remove("xterm-dom-renderer-owner-"+this._terminalClass),oe.removeElementFromParent(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement),y.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 re=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=re,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(."+fe.BOLD_CLASS+") { font-weight: "+this._optionsService.options.fontWeight+";}"+this._terminalSelector+" span."+fe.BOLD_CLASS+" { font-weight: "+this._optionsService.options.fontWeightBold+";}"+this._terminalSelector+" span."+fe.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) ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { outline: 1px solid "+this._colors.cursor.css+"; outline-offset: -1px;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_BLINK_CLASS+":not(."+fe.CURSOR_STYLE_BLOCK_CLASS+") { animation: blink_box_shadow_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_BLINK_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { animation: blink_block_"+this._terminalClass+" 1s step-end infinite;}"+this._terminalSelector+" .xterm-rows.xterm-focus ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BLOCK_CLASS+" { background-color: "+this._colors.cursor.css+"; color: "+this._colors.cursorAccent.css+";}"+this._terminalSelector+" .xterm-rows ."+fe.CURSOR_CLASS+"."+fe.CURSOR_STYLE_BAR_CLASS+" { box-shadow: "+this._optionsService.options.cursorWidth+"px 0 0 "+this._colors.cursor.css+" inset;}"+this._terminalSelector+" .xterm-rows ."+fe.CURSOR_CLASS+"."+fe.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,re){x+=b._terminalSelector+" .xterm-fg-"+re+" { color: "+z.css+"; }"+b._terminalSelector+" .xterm-bg-"+re+" { background-color: "+z.css+"; }"}),x+=this._terminalSelector+" .xterm-fg-"+ie.INVERTED_DEFAULT_COLOR+" { color: "+he.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+ie.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 re=document.createElement("div");this._rowContainer.appendChild(re),this._rowElements.push(re)}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 re=b[1]-this._bufferService.buffer.ydisp,se=x[1]-this._bufferService.buffer.ydisp,ce=Math.max(re,0),pe=Math.min(se,this._bufferService.rows-1);if(!(ce>=this._bufferService.rows||pe<0)){var Se=document.createDocumentFragment();if(z)Se.appendChild(this._createSelectionElement(ce,b[0],x[0],pe-ce+1));else{var Le=re===ce?b[0]:0,Ee=ce===pe?x[0]:this._bufferService.cols;Se.appendChild(this._createSelectionElement(ce,Le,Ee));var je=pe-ce-1;if(Se.appendChild(this._createSelectionElement(ce+1,0,this._bufferService.cols,je)),ce!==pe){var Me=se===pe?x[0]:this._bufferService.cols;Se.appendChild(this._createSelectionElement(pe,0,Me))}}this._selectionContainer.appendChild(Se)}}},E.prototype._createSelectionElement=function(b,x,z,re){re===void 0&&(re=1);var se=document.createElement("div");return se.style.height=re*this.dimensions.actualCellHeight+"px",se.style.top=b*this.dimensions.actualCellHeight+"px",se.style.left=x*this.dimensions.actualCellWidth+"px",se.style.width=this.dimensions.actualCellWidth*(z-x)+"px",se},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,re=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),se=this._optionsService.options.cursorBlink,ce=b;ce<=x;ce++){var pe=this._rowElements[ce];pe.innerHTML="";var Se=ce+this._bufferService.buffer.ydisp,Le=this._bufferService.buffer.lines.get(Se),Ee=this._optionsService.options.cursorStyle;pe.appendChild(this._rowFactory.createRow(Le,Se===z,Ee,re,se,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,re,se,ce){for(;b!==x||z!==re;){var pe=this._rowElements[z];if(!pe)return;var Se=pe.children[b];Se&&(Se.style.textDecoration=ce?"underline":"none"),++b>=se&&(b=0,z++)}},E=ye([_e(6,le.ICharSizeService),_e(7,me.IOptionsService),_e(8,me.IBufferService)],E)}(de.Disposable);te.DomRenderer=a},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.DomRendererRowFactory=te.CURSOR_STYLE_UNDERLINE_CLASS=te.CURSOR_STYLE_BAR_CLASS=te.CURSOR_STYLE_BLOCK_CLASS=te.CURSOR_BLINK_CLASS=te.CURSOR_CLASS=te.UNDERLINE_CLASS=te.ITALIC_CLASS=te.DIM_CLASS=te.BOLD_CLASS=void 0;var ge=ee(9),be=ee(3),ye=ee(4),_e=ee(10);te.BOLD_CLASS="xterm-bold",te.DIM_CLASS="xterm-dim",te.ITALIC_CLASS="xterm-italic",te.UNDERLINE_CLASS="xterm-underline",te.CURSOR_CLASS="xterm-cursor",te.CURSOR_BLINK_CLASS="xterm-cursor-blink",te.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",te.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",te.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var fe=function(){function de(le,me,ae){this._document=le,this._optionsService=me,this._colors=ae,this._workCell=new ye.CellData}return de.prototype.setColors=function(le){this._colors=le},de.prototype.createRow=function(le,me,ae,he,oe,ne,a){for(var y=this._document.createDocumentFragment(),E=0,b=Math.min(le.length,a)-1;b>=0;b--)if(le.loadCell(b,this._workCell).getCode()!==be.NULL_CELL_CODE||me&&b===he){E=b+1;break}for(b=0;b<E;b++){le.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"),me&&b===he)switch(z.classList.add(te.CURSOR_CLASS),oe&&z.classList.add(te.CURSOR_BLINK_CLASS),ae){case"bar":z.classList.add(te.CURSOR_STYLE_BAR_CLASS);break;case"underline":z.classList.add(te.CURSOR_STYLE_UNDERLINE_CLASS);break;default:z.classList.add(te.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&z.classList.add(te.BOLD_CLASS),this._workCell.isItalic()&&z.classList.add(te.ITALIC_CLASS),this._workCell.isDim()&&z.classList.add(te.DIM_CLASS),this._workCell.isUnderline()&&z.classList.add(te.UNDERLINE_CLASS),this._workCell.isInvisible()?z.textContent=be.WHITESPACE_CELL_CHAR:z.textContent=this._workCell.getChars()||be.WHITESPACE_CELL_CHAR;var re=this._workCell.getFgColor(),se=this._workCell.getFgColorMode(),ce=this._workCell.getBgColor(),pe=this._workCell.getBgColorMode(),Se=!!this._workCell.isInverse();if(Se){var Le=re;re=ce,ce=Le;var Ee=se;se=pe,pe=Ee}switch(se){case 16777216:case 33554432:this._workCell.isBold()&&re<8&&this._optionsService.options.drawBoldTextInBrightColors&&(re+=8),this._applyMinimumContrast(z,this._colors.background,this._colors.ansi[re])||z.classList.add("xterm-fg-"+re);break;case 50331648:var je=_e.rgba.toColor(re>>16&255,re>>8&255,255&re);this._applyMinimumContrast(z,this._colors.background,je)||this._addStyle(z,"color:#"+ie(re.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(z,this._colors.background,this._colors.foreground)||Se&&z.classList.add("xterm-fg-"+ge.INVERTED_DEFAULT_COLOR)}switch(pe){case 16777216:case 33554432:z.classList.add("xterm-bg-"+ce);break;case 50331648:this._addStyle(z,"background-color:#"+ie(ce.toString(16),"0",6));break;case 0:default:Se&&z.classList.add("xterm-bg-"+ge.INVERTED_DEFAULT_COLOR)}y.appendChild(z)}}return y},de.prototype._applyMinimumContrast=function(le,me,ae){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=_e.color.ensureContrastRatio(me,ae,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,he!=null?he:null)),!!he&&(this._addStyle(le,"color:"+he.css),!0)},de.prototype._addStyle=function(le,me){le.setAttribute("style",""+(le.getAttribute("style")||"")+me+";")},de}();function ie(de,le,me){for(;de.length<me;)de=le+de;return de}te.DomRendererRowFactory=fe},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.evaluateKeyboardEvent=void 0;var ge=ee(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:["'",'"']};te.evaluateKeyboardEvent=function(ye,_e,fe,ie){var de={type:0,cancel:!1,key:void 0},le=(ye.shiftKey?1:0)|(ye.altKey?2:0)|(ye.ctrlKey?4:0)|(ye.metaKey?8:0);switch(ye.keyCode){case 0:ye.key==="UIKeyInputUpArrow"?de.key=_e?ge.C0.ESC+"OA":ge.C0.ESC+"[A":ye.key==="UIKeyInputLeftArrow"?de.key=_e?ge.C0.ESC+"OD":ge.C0.ESC+"[D":ye.key==="UIKeyInputRightArrow"?de.key=_e?ge.C0.ESC+"OC":ge.C0.ESC+"[C":ye.key==="UIKeyInputDownArrow"&&(de.key=_e?ge.C0.ESC+"OB":ge.C0.ESC+"[B");break;case 8:if(ye.shiftKey){de.key=ge.C0.BS;break}if(ye.altKey){de.key=ge.C0.ESC+ge.C0.DEL;break}de.key=ge.C0.DEL;break;case 9:if(ye.shiftKey){de.key=ge.C0.ESC+"[Z";break}de.key=ge.C0.HT,de.cancel=!0;break;case 13:de.key=ye.altKey?ge.C0.ESC+ge.C0.CR:ge.C0.CR,de.cancel=!0;break;case 27:de.key=ge.C0.ESC,ye.altKey&&(de.key=ge.C0.ESC+ge.C0.ESC),de.cancel=!0;break;case 37:if(ye.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"D",de.key===ge.C0.ESC+"[1;3D"&&(de.key=ge.C0.ESC+(fe?"b":"[1;5D"))):de.key=_e?ge.C0.ESC+"OD":ge.C0.ESC+"[D";break;case 39:if(ye.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"C",de.key===ge.C0.ESC+"[1;3C"&&(de.key=ge.C0.ESC+(fe?"f":"[1;5C"))):de.key=_e?ge.C0.ESC+"OC":ge.C0.ESC+"[C";break;case 38:if(ye.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"A",fe||de.key!==ge.C0.ESC+"[1;3A"||(de.key=ge.C0.ESC+"[1;5A")):de.key=_e?ge.C0.ESC+"OA":ge.C0.ESC+"[A";break;case 40:if(ye.metaKey)break;le?(de.key=ge.C0.ESC+"[1;"+(le+1)+"B",fe||de.key!==ge.C0.ESC+"[1;3B"||(de.key=ge.C0.ESC+"[1;5B")):de.key=_e?ge.C0.ESC+"OB":ge.C0.ESC+"[B";break;case 45:ye.shiftKey||ye.ctrlKey||(de.key=ge.C0.ESC+"[2~");break;case 46:de.key=le?ge.C0.ESC+"[3;"+(le+1)+"~":ge.C0.ESC+"[3~";break;case 36:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"H":_e?ge.C0.ESC+"OH":ge.C0.ESC+"[H";break;case 35:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"F":_e?ge.C0.ESC+"OF":ge.C0.ESC+"[F";break;case 33:ye.shiftKey?de.type=2:de.key=ge.C0.ESC+"[5~";break;case 34:ye.shiftKey?de.type=3:de.key=ge.C0.ESC+"[6~";break;case 112:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"P":ge.C0.ESC+"OP";break;case 113:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"Q":ge.C0.ESC+"OQ";break;case 114:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"R":ge.C0.ESC+"OR";break;case 115:de.key=le?ge.C0.ESC+"[1;"+(le+1)+"S":ge.C0.ESC+"OS";break;case 116:de.key=le?ge.C0.ESC+"[15;"+(le+1)+"~":ge.C0.ESC+"[15~";break;case 117:de.key=le?ge.C0.ESC+"[17;"+(le+1)+"~":ge.C0.ESC+"[17~";break;case 118:de.key=le?ge.C0.ESC+"[18;"+(le+1)+"~":ge.C0.ESC+"[18~";break;case 119:de.key=le?ge.C0.ESC+"[19;"+(le+1)+"~":ge.C0.ESC+"[19~";break;case 120:de.key=le?ge.C0.ESC+"[20;"+(le+1)+"~":ge.C0.ESC+"[20~";break;case 121:de.key=le?ge.C0.ESC+"[21;"+(le+1)+"~":ge.C0.ESC+"[21~";break;case 122:de.key=le?ge.C0.ESC+"[23;"+(le+1)+"~":ge.C0.ESC+"[23~";break;case 123:de.key=le?ge.C0.ESC+"[24;"+(le+1)+"~":ge.C0.ESC+"[24~";break;default:if(!ye.ctrlKey||ye.shiftKey||ye.altKey||ye.metaKey)if(fe&&!ie||!ye.altKey||ye.metaKey)fe&&!ye.altKey&&!ye.ctrlKey&&ye.metaKey?ye.keyCode===65&&(de.type=1):ye.key&&!ye.ctrlKey&&!ye.altKey&&!ye.metaKey&&ye.keyCode>=48&&ye.key.length===1?de.key=ye.key:ye.key&&ye.ctrlKey&&ye.key==="_"&&(de.key=ge.C0.US);else{var me=be[ye.keyCode],ae=me&&me[ye.shiftKey?1:0];if(ae)de.key=ge.C0.ESC+ae;else if(ye.keyCode>=65&&ye.keyCode<=90){var he=ye.ctrlKey?ye.keyCode-64:ye.keyCode+32;de.key=ge.C0.ESC+String.fromCharCode(he)}}else ye.keyCode>=65&&ye.keyCode<=90?de.key=String.fromCharCode(ye.keyCode-64):ye.keyCode===32?de.key=ge.C0.NUL:ye.keyCode>=51&&ye.keyCode<=55?de.key=String.fromCharCode(ye.keyCode-51+27):ye.keyCode===56?de.key=ge.C0.DEL:ye.keyCode===219?de.key=ge.C0.ESC:ye.keyCode===220?de.key=ge.C0.FS:ye.keyCode===221&&(de.key=ge.C0.GS)}return de}},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ne,a){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var b in E)E.hasOwnProperty(b)&&(y[b]=E[b])})(ne,a)},function(ne,a){function y(){this.constructor=ne}ge(ne,a),ne.prototype=a===null?Object.create(a):(y.prototype=a.prototype,new y)}),ye=this&&this.__decorate||function(ne,a,y,E){var b,x=arguments.length,z=x<3?a:E===null?E=Object.getOwnPropertyDescriptor(a,y):E;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")z=Reflect.decorate(ne,a,y,E);else for(var re=ne.length-1;re>=0;re--)(b=ne[re])&&(z=(x<3?b(z):x>3?b(a,y,z):b(a,y))||z);return x>3&&z&&Object.defineProperty(a,y,z),z},_e=this&&this.__param||function(ne,a){return function(y,E){a(y,E,ne)}};Object.defineProperty(te,"__esModule",{value:!0}),te.RenderService=void 0;var fe=ee(31),ie=ee(0),de=ee(2),le=ee(32),me=ee(7),ae=ee(1),he=ee(5),oe=function(ne){function a(y,E,b,x,z,re){var se=ne.call(this)||this;if(se._renderer=y,se._rowCount=E,se._isPaused=!1,se._needsFullRefresh=!1,se._isNextRenderRedrawOnly=!0,se._needsSelectionRefresh=!1,se._canvasWidth=0,se._canvasHeight=0,se._selectionState={start:void 0,end:void 0,columnSelectMode:!1},se._onDimensionsChange=new ie.EventEmitter,se._onRender=new ie.EventEmitter,se._onRefreshRequest=new ie.EventEmitter,se.register({dispose:function(){return se._renderer.dispose()}}),se._renderDebouncer=new fe.RenderDebouncer(function(pe,Se){return se._renderRows(pe,Se)}),se.register(se._renderDebouncer),se._screenDprMonitor=new le.ScreenDprMonitor,se._screenDprMonitor.setListener(function(){return se.onDevicePixelRatioChange()}),se.register(se._screenDprMonitor),se.register(re.onResize(function(pe){return se._fullRefresh()})),se.register(x.onOptionChange(function(){return se._renderer.onOptionsChanged()})),se.register(z.onCharSizeChange(function(){return se.onCharSizeChanged()})),se._renderer.onRequestRedraw(function(pe){return se.refreshRows(pe.start,pe.end,!0)}),se.register(me.addDisposableDomListener(window,"resize",function(){return se.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var ce=new IntersectionObserver(function(pe){return se._onIntersectionChange(pe[pe.length-1])},{threshold:0});ce.observe(b),se.register({dispose:function(){return ce.disconnect()}})}return se}return be(a,ne),Object.defineProperty(a.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),a.prototype._onIntersectionChange=function(y){this._isPaused=y.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},a.prototype.refreshRows=function(y,E,b){b===void 0&&(b=!1),this._isPaused?this._needsFullRefresh=!0:(b||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(y,E,this._rowCount))},a.prototype._renderRows=function(y,E){this._renderer.renderRows(y,E),this._needsSelectionRefresh&&(this._renderer.onSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRender.fire({start:y,end:E}),this._isNextRenderRedrawOnly=!0},a.prototype.resize=function(y,E){this._rowCount=E,this._fireOnCanvasResize()},a.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},a.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},a.prototype.dispose=function(){ne.prototype.dispose.call(this)},a.prototype.setRenderer=function(y){var E=this;this._renderer.dispose(),this._renderer=y,this._renderer.onRequestRedraw(function(b){return E.refreshRows(b.start,b.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},a.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},a.prototype.setColors=function(y){this._renderer.setColors(y),this._fullRefresh()},a.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},a.prototype.onResize=function(y,E){this._renderer.onResize(y,E),this._fullRefresh()},a.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},a.prototype.onBlur=function(){this._renderer.onBlur()},a.prototype.onFocus=function(){this._renderer.onFocus()},a.prototype.onSelectionChanged=function(y,E,b){this._selectionState.start=y,this._selectionState.end=E,this._selectionState.columnSelectMode=b,this._renderer.onSelectionChanged(y,E,b)},a.prototype.onCursorMove=function(){this._renderer.onCursorMove()},a.prototype.clear=function(){this._renderer.clear()},a.prototype.registerCharacterJoiner=function(y){return this._renderer.registerCharacterJoiner(y)},a.prototype.deregisterCharacterJoiner=function(y){return this._renderer.deregisterCharacterJoiner(y)},a=ye([_e(3,ae.IOptionsService),_e(4,he.ICharSizeService),_e(5,ae.IBufferService)],a)}(de.Disposable);te.RenderService=oe},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(de,le,me,ae){var he,oe=arguments.length,ne=oe<3?le:ae===null?ae=Object.getOwnPropertyDescriptor(le,me):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ne=Reflect.decorate(de,le,me,ae);else for(var a=de.length-1;a>=0;a--)(he=de[a])&&(ne=(oe<3?he(ne):oe>3?he(le,me,ne):he(le,me))||ne);return oe>3&&ne&&Object.defineProperty(le,me,ne),ne},be=this&&this.__param||function(de,le){return function(me,ae){le(me,ae,de)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CharSizeService=void 0;var ye=ee(1),_e=ee(0),fe=function(){function de(le,me,ae){this._optionsService=ae,this.width=0,this.height=0,this._onCharSizeChange=new _e.EventEmitter,this._measureStrategy=new ie(le,me,this._optionsService)}return Object.defineProperty(de.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),de.prototype.measure=function(){var le=this._measureStrategy.measure();le.width===this.width&&le.height===this.height||(this.width=le.width,this.height=le.height,this._onCharSizeChange.fire())},de=ge([be(2,ye.IOptionsService)],de)}();te.CharSizeService=fe;var ie=function(){function de(le,me,ae){this._document=le,this._parentElement=me,this._optionsService=ae,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 de.prototype.measure=function(){this._measureElement.style.fontFamily=this._optionsService.options.fontFamily,this._measureElement.style.fontSize=this._optionsService.options.fontSize+"px";var le=this._measureElement.getBoundingClientRect();return le.width!==0&&le.height!==0&&(this._result.width=le.width,this._result.height=Math.ceil(le.height)),this._result},de}()},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(ie,de,le,me){var ae,he=arguments.length,oe=he<3?de:me===null?me=Object.getOwnPropertyDescriptor(de,le):me;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ie,de,le,me);else for(var ne=ie.length-1;ne>=0;ne--)(ae=ie[ne])&&(oe=(he<3?ae(oe):he>3?ae(de,le,oe):ae(de,le))||oe);return he>3&&oe&&Object.defineProperty(de,le,oe),oe},be=this&&this.__param||function(ie,de){return function(le,me){de(le,me,ie)}};Object.defineProperty(te,"__esModule",{value:!0}),te.MouseService=void 0;var ye=ee(5),_e=ee(30),fe=function(){function ie(de,le){this._renderService=de,this._charSizeService=le}return ie.prototype.getCoords=function(de,le,me,ae,he){return _e.getCoords(de,le,me,ae,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,he)},ie.prototype.getRawByteCoords=function(de,le,me,ae){var he=this.getCoords(de,le,me,ae);return _e.getRawByteCoords(he)},ie=ge([be(0,ye.IRenderService),be(1,ye.ICharSizeService)],ie)}();te.MouseService=fe},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),ye=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},_e=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.Linkifier2=void 0;var fe=ee(1),ie=ee(0),de=ee(2),le=ee(7),me=function(ae){function he(oe){var ne=ae.call(this)||this;return ne._bufferService=oe,ne._linkProviders=[],ne._linkCacheDisposables=[],ne._isMouseOut=!0,ne._activeLine=-1,ne._onShowLinkUnderline=ne.register(new ie.EventEmitter),ne._onHideLinkUnderline=ne.register(new ie.EventEmitter),ne.register(de.getDisposeArrayDisposable(ne._linkCacheDisposables)),ne}return be(he,ae),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(oe){var ne=this;return this._linkProviders.push(oe),{dispose:function(){var a=ne._linkProviders.indexOf(oe);a!==-1&&ne._linkProviders.splice(a,1)}}},he.prototype.attachToDom=function(oe,ne,a){var y=this;this._element=oe,this._mouseService=ne,this._renderService=a,this.register(le.addDisposableDomListener(this._element,"mouseleave",function(){y._isMouseOut=!0,y._clearCurrentLink()})),this.register(le.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(le.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},he.prototype._onMouseMove=function(oe){if(this._lastMouseEvent=oe,this._element&&this._mouseService){var ne=this._positionFromMouseEvent(oe,this._element,this._mouseService);if(ne){this._isMouseOut=!1;for(var a=oe.composedPath(),y=0;y<a.length;y++){var E=a[y];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(oe){if(this._activeLine!==oe.y)return this._clearCurrentLink(),void this._askForLink(oe,!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,oe)||(this._clearCurrentLink(),this._askForLink(oe,!0))},he.prototype._askForLink=function(oe,ne){var a=this;this._activeProviderReplies&&ne||(this._activeProviderReplies=new Map,this._activeLine=oe.y);var y=!1;this._linkProviders.forEach(function(E,b){var x;ne?!((x=a._activeProviderReplies)===null||x===void 0)&&x.get(b)&&(y=a._checkLinkProviderResult(b,oe,y)):E.provideLinks(oe.y,function(z){var re,se;if(!a._isMouseOut){var ce=z==null?void 0:z.map(function(pe){return{link:pe}});(re=a._activeProviderReplies)===null||re===void 0||re.set(b,ce),y=a._checkLinkProviderResult(b,oe,y),((se=a._activeProviderReplies)===null||se===void 0?void 0:se.size)===a._linkProviders.length&&a._removeIntersectingLinks(oe.y,a._activeProviderReplies)}})})},he.prototype._removeIntersectingLinks=function(oe,ne){for(var a=new Set,y=0;y<ne.size;y++){var E=ne.get(y);if(E)for(var b=0;b<E.length;b++)for(var x=E[b],z=x.link.range.start.y<oe?0:x.link.range.start.x,re=x.link.range.end.y>oe?this._bufferService.cols:x.link.range.end.x,se=z;se<=re;se++){if(a.has(se)){E.splice(b--,1);break}a.add(se)}}},he.prototype._checkLinkProviderResult=function(oe,ne,a){var y,E=this;if(!this._activeProviderReplies)return a;for(var b=this._activeProviderReplies.get(oe),x=!1,z=0;z<oe;z++)this._activeProviderReplies.has(z)&&!this._activeProviderReplies.get(z)||(x=!0);if(!x&&b){var re=b.find(function(ce){return E._linkAtPosition(ce.link,ne)});re&&(a=!0,this._handleNewLink(re))}if(this._activeProviderReplies.size===this._linkProviders.length&&!a)for(z=0;z<this._activeProviderReplies.size;z++){var se=(y=this._activeProviderReplies.get(z))===null||y===void 0?void 0:y.find(function(ce){return E._linkAtPosition(ce.link,ne)});if(se){a=!0,this._handleNewLink(se);break}}return a},he.prototype._onClick=function(oe){if(this._element&&this._mouseService&&this._currentLink){var ne=this._positionFromMouseEvent(oe,this._element,this._mouseService);ne&&this._linkAtPosition(this._currentLink.link,ne)&&this._currentLink.link.activate(oe,this._currentLink.link.text)}},he.prototype._clearCurrentLink=function(oe,ne){this._element&&this._currentLink&&this._lastMouseEvent&&(!oe||!ne||this._currentLink.link.range.start.y>=oe&&this._currentLink.link.range.end.y<=ne)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,de.disposeArray(this._linkCacheDisposables))},he.prototype._handleNewLink=function(oe){var ne=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var a=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);a&&this._linkAtPosition(oe.link,a)&&(this._currentLink=oe,this._currentLink.state={decorations:{underline:oe.link.decorations===void 0||oe.link.decorations.underline,pointerCursor:oe.link.decorations===void 0||oe.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,oe.link,this._lastMouseEvent),oe.link.decorations={},Object.defineProperties(oe.link.decorations,{pointerCursor:{get:function(){var y,E;return(E=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.pointerCursor},set:function(y){var E,b;!((E=ne._currentLink)===null||E===void 0)&&E.state&&ne._currentLink.state.decorations.pointerCursor!==y&&(ne._currentLink.state.decorations.pointerCursor=y,ne._currentLink.state.isHovered&&((b=ne._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",y)))}},underline:{get:function(){var y,E;return(E=(y=ne._currentLink)===null||y===void 0?void 0:y.state)===null||E===void 0?void 0:E.decorations.underline},set:function(y){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)!==y&&(ne._currentLink.state.decorations.underline=y,ne._currentLink.state.isHovered&&ne._fireUnderlineEvent(oe.link,y))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(y){var E=y.start===0?0:y.start+1+ne._bufferService.buffer.ydisp;ne._clearCurrentLink(E,y.end+1+ne._bufferService.buffer.ydisp)})))}},he.prototype._linkHover=function(oe,ne,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!0),this._currentLink.state.decorations.pointerCursor&&oe.classList.add("xterm-cursor-pointer")),ne.hover&&ne.hover(a,ne.text)},he.prototype._fireUnderlineEvent=function(oe,ne){var a=oe.range,y=this._bufferService.buffer.ydisp,E=this._createLinkUnderlineEvent(a.start.x-1,a.start.y-y-1,a.end.x,a.end.y-y-1,void 0);(ne?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(E)},he.prototype._linkLeave=function(oe,ne,a){var y;!((y=this._currentLink)===null||y===void 0)&&y.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(ne,!1),this._currentLink.state.decorations.pointerCursor&&oe.classList.remove("xterm-cursor-pointer")),ne.leave&&ne.leave(a,ne.text)},he.prototype._linkAtPosition=function(oe,ne){var a=oe.range.start.y===oe.range.end.y,y=oe.range.start.y<ne.y,E=oe.range.end.y>ne.y;return(a&&oe.range.start.x<=ne.x&&oe.range.end.x>=ne.x||y&&oe.range.end.x>=ne.x||E&&oe.range.start.x<=ne.x||y&&E)&&oe.range.start.y<=ne.y&&oe.range.end.y>=ne.y},he.prototype._positionFromMouseEvent=function(oe,ne,a){var y=a.getCoords(oe,ne,this._bufferService.cols,this._bufferService.rows);if(y)return{x:y[0],y:y[1]+this._bufferService.buffer.ydisp}},he.prototype._createLinkUnderlineEvent=function(oe,ne,a,y,E){return{x1:oe,y1:ne,x2:a,y2:y,cols:this._bufferService.cols,fg:E}},he=ye([_e(0,fe.IBufferService)],he)}(de.Disposable);te.Linkifier2=me},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CoreBrowserService=void 0;var ge=function(){function be(ye){this._textarea=ye}return Object.defineProperty(be.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),be}();te.CoreBrowserService=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(z,re){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,ce){se.__proto__=ce}||function(se,ce){for(var pe in ce)ce.hasOwnProperty(pe)&&(se[pe]=ce[pe])})(z,re)},function(z,re){function se(){this.constructor=z}ge(z,re),z.prototype=re===null?Object.create(re):(se.prototype=re.prototype,new se)});Object.defineProperty(te,"__esModule",{value:!0}),te.CoreTerminal=void 0;var ye=ee(2),_e=ee(1),fe=ee(66),ie=ee(67),de=ee(68),le=ee(74),me=ee(75),ae=ee(0),he=ee(76),oe=ee(77),ne=ee(78),a=ee(80),y=ee(81),E=ee(19),b=ee(82),x=function(z){function re(se){var ce=z.call(this)||this;return ce._onBinary=new ae.EventEmitter,ce._onData=new ae.EventEmitter,ce._onLineFeed=new ae.EventEmitter,ce._onResize=new ae.EventEmitter,ce._onScroll=new ae.EventEmitter,ce._instantiationService=new fe.InstantiationService,ce.optionsService=new le.OptionsService(se),ce._instantiationService.setService(_e.IOptionsService,ce.optionsService),ce._bufferService=ce.register(ce._instantiationService.createInstance(de.BufferService)),ce._instantiationService.setService(_e.IBufferService,ce._bufferService),ce._logService=ce._instantiationService.createInstance(ie.LogService),ce._instantiationService.setService(_e.ILogService,ce._logService),ce._coreService=ce.register(ce._instantiationService.createInstance(me.CoreService,function(){return ce.scrollToBottom()})),ce._instantiationService.setService(_e.ICoreService,ce._coreService),ce._coreMouseService=ce._instantiationService.createInstance(he.CoreMouseService),ce._instantiationService.setService(_e.ICoreMouseService,ce._coreMouseService),ce._dirtyRowService=ce._instantiationService.createInstance(oe.DirtyRowService),ce._instantiationService.setService(_e.IDirtyRowService,ce._dirtyRowService),ce.unicodeService=ce._instantiationService.createInstance(ne.UnicodeService),ce._instantiationService.setService(_e.IUnicodeService,ce.unicodeService),ce._charsetService=ce._instantiationService.createInstance(a.CharsetService),ce._instantiationService.setService(_e.ICharsetService,ce._charsetService),ce._inputHandler=new E.InputHandler(ce._bufferService,ce._charsetService,ce._coreService,ce._dirtyRowService,ce._logService,ce.optionsService,ce._coreMouseService,ce.unicodeService),ce.register(ae.forwardEvent(ce._inputHandler.onLineFeed,ce._onLineFeed)),ce.register(ce._inputHandler),ce.register(ae.forwardEvent(ce._bufferService.onResize,ce._onResize)),ce.register(ae.forwardEvent(ce._coreService.onData,ce._onData)),ce.register(ae.forwardEvent(ce._coreService.onBinary,ce._onBinary)),ce.register(ce.optionsService.onOptionChange(function(pe){return ce._updateOptions(pe)})),ce._writeBuffer=new b.WriteBuffer(function(pe){return ce._inputHandler.parse(pe)}),ce}return be(re,z),Object.defineProperty(re.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(re.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),re.prototype.dispose=function(){var se;this._isDisposed||(z.prototype.dispose.call(this),(se=this._windowsMode)===null||se===void 0||se.dispose(),this._windowsMode=void 0)},re.prototype.write=function(se,ce){this._writeBuffer.write(se,ce)},re.prototype.writeSync=function(se){this._writeBuffer.writeSync(se)},re.prototype.resize=function(se,ce){isNaN(se)||isNaN(ce)||(se=Math.max(se,de.MINIMUM_COLS),ce=Math.max(ce,de.MINIMUM_ROWS),this._bufferService.resize(se,ce))},re.prototype.scroll=function(se,ce){ce===void 0&&(ce=!1);var pe,Se=this._bufferService.buffer;(pe=this._cachedBlankLine)&&pe.length===this.cols&&pe.getFg(0)===se.fg&&pe.getBg(0)===se.bg||(pe=Se.getBlankLine(se,ce),this._cachedBlankLine=pe),pe.isWrapped=ce;var Le=Se.ybase+Se.scrollTop,Ee=Se.ybase+Se.scrollBottom;if(Se.scrollTop===0){var je=Se.lines.isFull;Ee===Se.lines.length-1?je?Se.lines.recycle().copyFrom(pe):Se.lines.push(pe.clone()):Se.lines.splice(Ee+1,0,pe.clone()),je?this._bufferService.isUserScrolling&&(Se.ydisp=Math.max(Se.ydisp-1,0)):(Se.ybase++,this._bufferService.isUserScrolling||Se.ydisp++)}else{var Me=Ee-Le+1;Se.lines.shiftElements(Le+1,Me-1,-1),Se.lines.set(Ee,pe.clone())}this._bufferService.isUserScrolling||(Se.ydisp=Se.ybase),this._dirtyRowService.markRangeDirty(Se.scrollTop,Se.scrollBottom),this._onScroll.fire(Se.ydisp)},re.prototype.scrollLines=function(se,ce){var pe=this._bufferService.buffer;if(se<0){if(pe.ydisp===0)return;this._bufferService.isUserScrolling=!0}else se+pe.ydisp>=pe.ybase&&(this._bufferService.isUserScrolling=!1);var Se=pe.ydisp;pe.ydisp=Math.max(Math.min(pe.ydisp+se,pe.ybase),0),Se!==pe.ydisp&&(ce||this._onScroll.fire(pe.ydisp))},re.prototype.scrollPages=function(se){this.scrollLines(se*(this.rows-1))},re.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},re.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},re.prototype.scrollToLine=function(se){var ce=se-this._bufferService.buffer.ydisp;ce!==0&&this.scrollLines(ce)},re.prototype.addEscHandler=function(se,ce){return this._inputHandler.addEscHandler(se,ce)},re.prototype.addDcsHandler=function(se,ce){return this._inputHandler.addDcsHandler(se,ce)},re.prototype.addCsiHandler=function(se,ce){return this._inputHandler.addCsiHandler(se,ce)},re.prototype.addOscHandler=function(se,ce){return this._inputHandler.addOscHandler(se,ce)},re.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},re.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},re.prototype._updateOptions=function(se){var ce;switch(se){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((ce=this._windowsMode)===null||ce===void 0||ce.dispose(),this._windowsMode=void 0)}},re.prototype._enableWindowsMode=function(){var se=this;if(!this._windowsMode){var ce=[];ce.push(this.onLineFeed(y.updateWindowsModeWrappedState.bind(null,this._bufferService))),ce.push(this.addCsiHandler({final:"H"},function(){return y.updateWindowsModeWrappedState(se._bufferService),!1})),this._windowsMode={dispose:function(){for(var pe=0,Se=ce;pe<Se.length;pe++)Se[pe].dispose()}}}},re}(ye.Disposable);te.CoreTerminal=x},function(Ve,te,ee){"use strict";var ge=this&&this.__spreadArrays||function(){for(var ie=0,de=0,le=arguments.length;de<le;de++)ie+=arguments[de].length;var me=Array(ie),ae=0;for(de=0;de<le;de++)for(var he=arguments[de],oe=0,ne=he.length;oe<ne;oe++,ae++)me[ae]=he[oe];return me};Object.defineProperty(te,"__esModule",{value:!0}),te.InstantiationService=te.ServiceCollection=void 0;var be=ee(1),ye=ee(14),_e=function(){function ie(){for(var de=[],le=0;le<arguments.length;le++)de[le]=arguments[le];this._entries=new Map;for(var me=0,ae=de;me<ae.length;me++){var he=ae[me],oe=he[0],ne=he[1];this.set(oe,ne)}}return ie.prototype.set=function(de,le){var me=this._entries.get(de);return this._entries.set(de,le),me},ie.prototype.forEach=function(de){this._entries.forEach(function(le,me){return de(me,le)})},ie.prototype.has=function(de){return this._entries.has(de)},ie.prototype.get=function(de){return this._entries.get(de)},ie}();te.ServiceCollection=_e;var fe=function(){function ie(){this._services=new _e,this._services.set(be.IInstantiationService,this)}return ie.prototype.setService=function(de,le){this._services.set(de,le)},ie.prototype.getService=function(de){return this._services.get(de)},ie.prototype.createInstance=function(de){for(var le=[],me=1;me<arguments.length;me++)le[me-1]=arguments[me];for(var ae=ye.getServiceDependencies(de).sort(function(b,x){return b.index-x.index}),he=[],oe=0,ne=ae;oe<ne.length;oe++){var a=ne[oe],y=this._services.get(a.id);if(!y)throw new Error("[createInstance] "+de.name+" depends on UNKNOWN service "+a.id+".");he.push(y)}var E=ae.length>0?ae[0].index:le.length;if(le.length!==E)throw new Error("[createInstance] First service dependency of "+de.name+" at position "+(E+1)+" conflicts with "+le.length+" static arguments");return new(de.bind.apply(de,ge([void 0],ge(le,he))))},ie}();te.InstantiationService=fe},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(le,me,ae,he){var oe,ne=arguments.length,a=ne<3?me:he===null?he=Object.getOwnPropertyDescriptor(me,ae):he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(le,me,ae,he);else for(var y=le.length-1;y>=0;y--)(oe=le[y])&&(a=(ne<3?oe(a):ne>3?oe(me,ae,a):oe(me,ae))||a);return ne>3&&a&&Object.defineProperty(me,ae,a),a},be=this&&this.__param||function(le,me){return function(ae,he){me(ae,he,le)}},ye=this&&this.__spreadArrays||function(){for(var le=0,me=0,ae=arguments.length;me<ae;me++)le+=arguments[me].length;var he=Array(le),oe=0;for(me=0;me<ae;me++)for(var ne=arguments[me],a=0,y=ne.length;a<y;a++,oe++)he[oe]=ne[a];return he};Object.defineProperty(te,"__esModule",{value:!0}),te.LogService=te.LogLevel=void 0;var _e,fe=ee(1);(function(le){le[le.DEBUG=0]="DEBUG",le[le.INFO=1]="INFO",le[le.WARN=2]="WARN",le[le.ERROR=3]="ERROR",le[le.OFF=4]="OFF"})(_e=te.LogLevel||(te.LogLevel={}));var ie={debug:_e.DEBUG,info:_e.INFO,warn:_e.WARN,error:_e.ERROR,off:_e.OFF},de=function(){function le(me){var ae=this;this._optionsService=me,this._updateLogLevel(),this._optionsService.onOptionChange(function(he){he==="logLevel"&&ae._updateLogLevel()})}return le.prototype._updateLogLevel=function(){this._logLevel=ie[this._optionsService.options.logLevel]},le.prototype._evalLazyOptionalParams=function(me){for(var ae=0;ae<me.length;ae++)typeof me[ae]=="function"&&(me[ae]=me[ae]())},le.prototype._log=function(me,ae,he){this._evalLazyOptionalParams(he),me.call.apply(me,ye([console,"xterm.js: "+ae],he))},le.prototype.debug=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=_e.DEBUG&&this._log(console.log,me,ae)},le.prototype.info=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=_e.INFO&&this._log(console.info,me,ae)},le.prototype.warn=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=_e.WARN&&this._log(console.warn,me,ae)},le.prototype.error=function(me){for(var ae=[],he=1;he<arguments.length;he++)ae[he-1]=arguments[he];this._logLevel<=_e.ERROR&&this._log(console.error,me,ae)},le=ge([be(0,fe.IOptionsService)],le)}();te.LogService=de},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ae,he){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,ne){oe.__proto__=ne}||function(oe,ne){for(var a in ne)ne.hasOwnProperty(a)&&(oe[a]=ne[a])})(ae,he)},function(ae,he){function oe(){this.constructor=ae}ge(ae,he),ae.prototype=he===null?Object.create(he):(oe.prototype=he.prototype,new oe)}),ye=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},_e=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.BufferService=te.MINIMUM_ROWS=te.MINIMUM_COLS=void 0;var fe=ee(1),ie=ee(69),de=ee(0),le=ee(2);te.MINIMUM_COLS=2,te.MINIMUM_ROWS=1;var me=function(ae){function he(oe){var ne=ae.call(this)||this;return ne._optionsService=oe,ne.isUserScrolling=!1,ne._onResize=new de.EventEmitter,ne.cols=Math.max(oe.options.cols,te.MINIMUM_COLS),ne.rows=Math.max(oe.options.rows,te.MINIMUM_ROWS),ne.buffers=new ie.BufferSet(oe,ne),ne}return be(he,ae),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(){ae.prototype.dispose.call(this),this.buffers.dispose()},he.prototype.resize=function(oe,ne){this.cols=oe,this.rows=ne,this.buffers.resize(oe,ne),this.buffers.setupTabStops(this.cols),this._onResize.fire({cols:oe,rows:ne})},he.prototype.reset=function(){this.buffers.dispose(),this.buffers=new ie.BufferSet(this._optionsService,this),this.isUserScrolling=!1},he=ye([_e(0,fe.IOptionsService)],he)}(le.Disposable);te.BufferService=me},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(ie,de){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,me){le.__proto__=me}||function(le,me){for(var ae in me)me.hasOwnProperty(ae)&&(le[ae]=me[ae])})(ie,de)},function(ie,de){function le(){this.constructor=ie}ge(ie,de),ie.prototype=de===null?Object.create(de):(le.prototype=de.prototype,new le)});Object.defineProperty(te,"__esModule",{value:!0}),te.BufferSet=void 0;var ye=ee(70),_e=ee(0),fe=function(ie){function de(le,me){var ae=ie.call(this)||this;return ae._onBufferActivate=ae.register(new _e.EventEmitter),ae._normal=new ye.Buffer(!0,le,me),ae._normal.fillViewportRows(),ae._alt=new ye.Buffer(!1,le,me),ae._activeBuffer=ae._normal,ae.setupTabStops(),ae}return be(de,ie),Object.defineProperty(de.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),de.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}))},de.prototype.activateAltBuffer=function(le){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(le),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}))},de.prototype.resize=function(le,me){this._normal.resize(le,me),this._alt.resize(le,me)},de.prototype.setupTabStops=function(le){this._normal.setupTabStops(le),this._alt.setupTabStops(le)},de}(ee(2).Disposable);te.BufferSet=fe},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.BufferStringIterator=te.Buffer=te.MAX_BUFFER_SIZE=void 0;var ge=ee(71),be=ee(16),ye=ee(4),_e=ee(3),fe=ee(72),ie=ee(73),de=ee(20),le=ee(6);te.MAX_BUFFER_SIZE=4294967295;var me=function(){function he(oe,ne,a){this._hasScrollback=oe,this._optionsService=ne,this._bufferService=a,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=de.DEFAULT_CHARSET,this.markers=[],this._nullCell=ye.CellData.fromCharData([0,_e.NULL_CELL_CHAR,_e.NULL_CELL_WIDTH,_e.NULL_CELL_CODE]),this._whitespaceCell=ye.CellData.fromCharData([0,_e.WHITESPACE_CELL_CHAR,_e.WHITESPACE_CELL_WIDTH,_e.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new ge.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return he.prototype.getNullCell=function(oe){return oe?(this._nullCell.fg=oe.fg,this._nullCell.bg=oe.bg,this._nullCell.extended=oe.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new le.ExtendedAttrs),this._nullCell},he.prototype.getWhitespaceCell=function(oe){return oe?(this._whitespaceCell.fg=oe.fg,this._whitespaceCell.bg=oe.bg,this._whitespaceCell.extended=oe.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new le.ExtendedAttrs),this._whitespaceCell},he.prototype.getBlankLine=function(oe,ne){return new be.BufferLine(this._bufferService.cols,this.getNullCell(oe),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 oe=this.ybase+this.y-this.ydisp;return oe>=0&&oe<this._rows},enumerable:!1,configurable:!0}),he.prototype._getCorrectBufferLength=function(oe){if(!this._hasScrollback)return oe;var ne=oe+this._optionsService.options.scrollback;return ne>te.MAX_BUFFER_SIZE?te.MAX_BUFFER_SIZE:ne},he.prototype.fillViewportRows=function(oe){if(this.lines.length===0){oe===void 0&&(oe=be.DEFAULT_ATTR_DATA);for(var ne=this._rows;ne--;)this.lines.push(this.getBlankLine(oe))}},he.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new ge.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},he.prototype.resize=function(oe,ne){var a=this.getNullCell(be.DEFAULT_ATTR_DATA),y=this._getCorrectBufferLength(ne);if(y>this.lines.maxLength&&(this.lines.maxLength=y),this.lines.length>0){if(this._cols<oe)for(var E=0;E<this.lines.length;E++)this.lines.get(E).resize(oe,a);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(oe,a)):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(oe,a)));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(y<this.lines.maxLength){var z=this.lines.length-y;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=y}this.x=Math.min(this.x,oe-1),this.y=Math.min(this.y,ne-1),b&&(this.y+=b),this.savedX=Math.min(this.savedX,oe-1),this.scrollTop=0}if(this.scrollBottom=ne-1,this._isReflowEnabled&&(this._reflow(oe,ne),this._cols>oe))for(E=0;E<this.lines.length;E++)this.lines.get(E).resize(oe,a);this._cols=oe,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(oe,ne){this._cols!==oe&&(oe>this._cols?this._reflowLarger(oe,ne):this._reflowSmaller(oe,ne))},he.prototype._reflowLarger=function(oe,ne){var a=fe.reflowLargerGetLinesToRemove(this.lines,this._cols,oe,this.ybase+this.y,this.getNullCell(be.DEFAULT_ATTR_DATA));if(a.length>0){var y=fe.reflowLargerCreateNewLayout(this.lines,a);fe.reflowLargerApplyNewLayout(this.lines,y.layout),this._reflowLargerAdjustViewport(oe,ne,y.countRemoved)}},he.prototype._reflowLargerAdjustViewport=function(oe,ne,a){for(var y=this.getNullCell(be.DEFAULT_ATTR_DATA),E=a;E-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<ne&&this.lines.push(new be.BufferLine(oe,y))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-a,0)},he.prototype._reflowSmaller=function(oe,ne){for(var a=this.getNullCell(be.DEFAULT_ATTR_DATA),y=[],E=0,b=this.lines.length-1;b>=0;b--){var x=this.lines.get(b);if(!(!x||!x.isWrapped&&x.getTrimmedLength()<=oe)){for(var z=[x];x.isWrapped&&b>0;)x=this.lines.get(--b),z.unshift(x);var re=this.ybase+this.y;if(!(re>=b&&re<b+z.length)){var se=z[z.length-1].getTrimmedLength(),ce=fe.reflowSmallerGetNewLineLengths(z,this._cols,oe),pe=ce.length-z.length,Se=void 0;Se=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+pe):Math.max(0,this.lines.length-this.lines.maxLength+pe);for(var Le=[],Ee=0;Ee<pe;Ee++){var je=this.getBlankLine(be.DEFAULT_ATTR_DATA,!0);Le.push(je)}Le.length>0&&(y.push({start:b+z.length+E,newLines:Le}),E+=Le.length),z.push.apply(z,Le);var Me=ce.length-1,mt=ce[Me];mt===0&&(mt=ce[--Me]);for(var Xe=z.length-pe-1,pt=se;Xe>=0;){var we=Math.min(pt,mt);if(z[Me].copyCellsFrom(z[Xe],pt-we,mt-we,we,!0),(mt-=we)===0&&(mt=ce[--Me]),(pt-=we)===0){Xe--;var Fe=Math.max(Xe,0);pt=fe.getWrappedLineTrimmedLength(z,Fe,this._cols)}}for(Ee=0;Ee<z.length;Ee++)ce[Ee]<oe&&z[Ee].setCell(ce[Ee],a);for(var He=pe-Se;He-- >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+pe,this.ybase+ne-1)}}}if(y.length>0){var it=[],Ke=[];for(Ee=0;Ee<this.lines.length;Ee++)Ke.push(this.lines.get(Ee));var ht=this.lines.length,_t=ht-1,Lt=0,kt=y[Lt];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+E);var nt=0;for(Ee=Math.min(this.lines.maxLength-1,ht+E-1);Ee>=0;Ee--)if(kt&&kt.start>_t+nt){for(var Qe=kt.newLines.length-1;Qe>=0;Qe--)this.lines.set(Ee--,kt.newLines[Qe]);Ee++,it.push({index:_t+1,amount:kt.newLines.length}),nt+=kt.newLines.length,kt=y[++Lt]}else this.lines.set(Ee,Ke[_t--]);var Pt=0;for(Ee=it.length-1;Ee>=0;Ee--)it[Ee].index+=Pt,this.lines.onInsertEmitter.fire(it[Ee]),Pt+=it[Ee].amount;var zt=Math.max(0,ht+E-this.lines.maxLength);zt>0&&this.lines.onTrimEmitter.fire(zt)}},he.prototype.stringIndexToBufferIndex=function(oe,ne,a){for(a===void 0&&(a=!1);ne;){var y=this.lines.get(oe);if(!y)return[-1,-1];for(var E=a?y.getTrimmedLength():y.length,b=0;b<E;++b)if(y.get(b)[_e.CHAR_DATA_WIDTH_INDEX]&&(ne-=y.get(b)[_e.CHAR_DATA_CHAR_INDEX].length||1),ne<0)return[oe,b];oe++}return[oe,0]},he.prototype.translateBufferLineToString=function(oe,ne,a,y){a===void 0&&(a=0);var E=this.lines.get(oe);return E?E.translateToString(ne,a,y):""},he.prototype.getWrappedRangeForLine=function(oe){for(var ne=oe,a=oe;ne>0&&this.lines.get(ne).isWrapped;)ne--;for(;a+1<this.lines.length&&this.lines.get(a+1).isWrapped;)a++;return{first:ne,last:a}},he.prototype.setupTabStops=function(oe){for(oe!=null?this.tabs[oe]||(oe=this.prevStop(oe)):(this.tabs={},oe=0);oe<this._cols;oe+=this._optionsService.options.tabStopWidth)this.tabs[oe]=!0},he.prototype.prevStop=function(oe){for(oe==null&&(oe=this.x);!this.tabs[--oe]&&oe>0;);return oe>=this._cols?this._cols-1:oe<0?0:oe},he.prototype.nextStop=function(oe){for(oe==null&&(oe=this.x);!this.tabs[++oe]&&oe<this._cols;);return oe>=this._cols?this._cols-1:oe<0?0:oe},he.prototype.addMarker=function(oe){var ne=this,a=new ie.Marker(oe);return this.markers.push(a),a.register(this.lines.onTrim(function(y){a.line-=y,a.line<0&&a.dispose()})),a.register(this.lines.onInsert(function(y){a.line>=y.index&&(a.line+=y.amount)})),a.register(this.lines.onDelete(function(y){a.line>=y.index&&a.line<y.index+y.amount&&a.dispose(),a.line>y.index&&(a.line-=y.amount)})),a.register(a.onDispose(function(){return ne._removeMarker(a)})),a},he.prototype._removeMarker=function(oe){this.markers.splice(this.markers.indexOf(oe),1)},he.prototype.iterator=function(oe,ne,a,y,E){return new ae(this,oe,ne,a,y,E)},he}();te.Buffer=me;var ae=function(){function he(oe,ne,a,y,E,b){a===void 0&&(a=0),y===void 0&&(y=oe.lines.length),E===void 0&&(E=0),b===void 0&&(b=0),this._buffer=oe,this._trimRight=ne,this._startIndex=a,this._endIndex=y,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 oe=this._buffer.getWrappedRangeForLine(this._current);oe.first<this._startIndex-this._startOverscan&&(oe.first=this._startIndex-this._startOverscan),oe.last>this._endIndex+this._endOverscan&&(oe.last=this._endIndex+this._endOverscan),oe.first=Math.max(oe.first,0),oe.last=Math.min(oe.last,this._buffer.lines.length);for(var ne="",a=oe.first;a<=oe.last;++a)ne+=this._buffer.translateBufferLineToString(a,this._trimRight);return this._current=oe.last+1,{range:oe,content:ne}},he}();te.BufferStringIterator=ae},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CircularList=void 0;var ge=ee(0),be=function(){function ye(_e){this._maxLength=_e,this.onDeleteEmitter=new ge.EventEmitter,this.onInsertEmitter=new ge.EventEmitter,this.onTrimEmitter=new ge.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(ye.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"maxLength",{get:function(){return this._maxLength},set:function(_e){if(this._maxLength!==_e){for(var fe=new Array(_e),ie=0;ie<Math.min(_e,this.length);ie++)fe[ie]=this._array[this._getCyclicIndex(ie)];this._array=fe,this._maxLength=_e,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(ye.prototype,"length",{get:function(){return this._length},set:function(_e){if(_e>this._length)for(var fe=this._length;fe<_e;fe++)this._array[fe]=void 0;this._length=_e},enumerable:!1,configurable:!0}),ye.prototype.get=function(_e){return this._array[this._getCyclicIndex(_e)]},ye.prototype.set=function(_e,fe){this._array[this._getCyclicIndex(_e)]=fe},ye.prototype.push=function(_e){this._array[this._getCyclicIndex(this._length)]=_e,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},ye.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(ye.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),ye.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},ye.prototype.splice=function(_e,fe){for(var ie=[],de=2;de<arguments.length;de++)ie[de-2]=arguments[de];if(fe){for(var le=_e;le<this._length-fe;le++)this._array[this._getCyclicIndex(le)]=this._array[this._getCyclicIndex(le+fe)];this._length-=fe}for(le=this._length-1;le>=_e;le--)this._array[this._getCyclicIndex(le+ie.length)]=this._array[this._getCyclicIndex(le)];for(le=0;le<ie.length;le++)this._array[this._getCyclicIndex(_e+le)]=ie[le];if(this._length+ie.length>this._maxLength){var me=this._length+ie.length-this._maxLength;this._startIndex+=me,this._length=this._maxLength,this.onTrimEmitter.fire(me)}else this._length+=ie.length},ye.prototype.trimStart=function(_e){_e>this._length&&(_e=this._length),this._startIndex+=_e,this._length-=_e,this.onTrimEmitter.fire(_e)},ye.prototype.shiftElements=function(_e,fe,ie){if(!(fe<=0)){if(_e<0||_e>=this._length)throw new Error("start argument out of range");if(_e+ie<0)throw new Error("Cannot shift elements in list beyond index 0");if(ie>0){for(var de=fe-1;de>=0;de--)this.set(_e+de+ie,this.get(_e+de));var le=_e+fe+ie-this._length;if(le>0)for(this._length+=le;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(de=0;de<fe;de++)this.set(_e+de+ie,this.get(_e+de))}},ye.prototype._getCyclicIndex=function(_e){return(this._startIndex+_e)%this._maxLength},ye}();te.CircularList=be},function(Ve,te,ee){"use strict";function ge(be,ye,_e){if(ye===be.length-1)return be[ye].getTrimmedLength();var fe=!be[ye].hasContent(_e-1)&&be[ye].getWidth(_e-1)===1,ie=be[ye+1].getWidth(0)===2;return fe&&ie?_e-1:_e}Object.defineProperty(te,"__esModule",{value:!0}),te.getWrappedLineTrimmedLength=te.reflowSmallerGetNewLineLengths=te.reflowLargerApplyNewLayout=te.reflowLargerCreateNewLayout=te.reflowLargerGetLinesToRemove=void 0,te.reflowLargerGetLinesToRemove=function(be,ye,_e,fe,ie){for(var de=[],le=0;le<be.length-1;le++){var me=le,ae=be.get(++me);if(ae.isWrapped){for(var he=[be.get(le)];me<be.length&&ae.isWrapped;)he.push(ae),ae=be.get(++me);if(fe>=le&&fe<me)le+=he.length-1;else{for(var oe=0,ne=ge(he,oe,ye),a=1,y=0;a<he.length;){var E=ge(he,a,ye),b=E-y,x=_e-ne,z=Math.min(b,x);he[oe].copyCellsFrom(he[a],y,ne,z,!1),(ne+=z)===_e&&(oe++,ne=0),(y+=z)===E&&(a++,y=0),ne===0&&oe!==0&&he[oe-1].getWidth(_e-1)===2&&(he[oe].copyCellsFrom(he[oe-1],_e-1,ne++,1,!1),he[oe-1].setCell(_e-1,ie))}he[oe].replaceCells(ne,_e,ie);for(var re=0,se=he.length-1;se>0&&(se>oe||he[se].getTrimmedLength()===0);se--)re++;re>0&&(de.push(le+he.length-re),de.push(re)),le+=he.length-1}}}return de},te.reflowLargerCreateNewLayout=function(be,ye){for(var _e=[],fe=0,ie=ye[fe],de=0,le=0;le<be.length;le++)if(ie===le){var me=ye[++fe];be.onDeleteEmitter.fire({index:le-de,amount:me}),le+=me-1,de+=me,ie=ye[++fe]}else _e.push(le);return{layout:_e,countRemoved:de}},te.reflowLargerApplyNewLayout=function(be,ye){for(var _e=[],fe=0;fe<ye.length;fe++)_e.push(be.get(ye[fe]));for(fe=0;fe<_e.length;fe++)be.set(fe,_e[fe]);be.length=ye.length},te.reflowSmallerGetNewLineLengths=function(be,ye,_e){for(var fe=[],ie=be.map(function(ne,a){return ge(be,a,ye)}).reduce(function(ne,a){return ne+a}),de=0,le=0,me=0;me<ie;){if(ie-me<_e){fe.push(ie-me);break}de+=_e;var ae=ge(be,le,ye);de>ae&&(de-=ae,le++);var he=be[le].getWidth(de-1)===2;he&&de--;var oe=he?_e-1:_e;fe.push(oe),me+=oe}return fe},te.getWrappedLineTrimmedLength=ge},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(fe,ie){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,le){de.__proto__=le}||function(de,le){for(var me in le)le.hasOwnProperty(me)&&(de[me]=le[me])})(fe,ie)},function(fe,ie){function de(){this.constructor=fe}ge(fe,ie),fe.prototype=ie===null?Object.create(ie):(de.prototype=ie.prototype,new de)});Object.defineProperty(te,"__esModule",{value:!0}),te.Marker=void 0;var ye=ee(0),_e=function(fe){function ie(de){var le=fe.call(this)||this;return le.line=de,le._id=ie._nextId++,le.isDisposed=!1,le._onDispose=new ye.EventEmitter,le}return be(ie,fe),Object.defineProperty(ie.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(ie.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),ie.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},ie._nextId=1,ie}(ee(2).Disposable);te.Marker=_e},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.OptionsService=te.DEFAULT_OPTIONS=te.DEFAULT_BELL_SOUND=void 0;var ge=ee(0),be=ee(11),ye=ee(33);te.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",te.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:te.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 _e=["cols","rows"],fe=function(){function ie(de){this._onOptionChange=new ge.EventEmitter,this.options=ye.clone(te.DEFAULT_OPTIONS);for(var le=0,me=Object.keys(de);le<me.length;le++){var ae=me[le];if(ae in this.options){var he=de[ae];this.options[ae]=he}}}return Object.defineProperty(ie.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),ie.prototype.setOption=function(de,le){if(!(de in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');if(_e.indexOf(de)!==-1)throw new Error('Option "'+de+'" can only be set in the constructor');this.options[de]!==le&&(le=this._sanitizeAndValidateOption(de,le),this.options[de]!==le&&(this.options[de]=le,this._onOptionChange.fire(de)))},ie.prototype._sanitizeAndValidateOption=function(de,le){switch(de){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":le||(le=te.DEFAULT_OPTIONS[de]);break;case"cursorWidth":le=Math.floor(le);case"lineHeight":case"tabStopWidth":if(le<1)throw new Error(de+" cannot be less than 1, value: "+le);break;case"minimumContrastRatio":le=Math.max(1,Math.min(21,Math.round(10*le)/10));break;case"scrollback":if((le=Math.min(le,4294967295))<0)throw new Error(de+" cannot be less than 0, value: "+le);break;case"fastScrollSensitivity":case"scrollSensitivity":if(le<=0)throw new Error(de+" cannot be less than or equal to 0, value: "+le)}return le},ie.prototype.getOption=function(de){if(!(de in te.DEFAULT_OPTIONS))throw new Error('No option with key "'+de+'"');return this.options[de]},ie}();te.OptionsService=fe},function(Ve,te,ee){"use strict";var ge,be=this&&this.__extends||(ge=function(oe,ne){return(ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,y){a.__proto__=y}||function(a,y){for(var E in y)y.hasOwnProperty(E)&&(a[E]=y[E])})(oe,ne)},function(oe,ne){function a(){this.constructor=oe}ge(oe,ne),oe.prototype=ne===null?Object.create(ne):(a.prototype=ne.prototype,new a)}),ye=this&&this.__decorate||function(oe,ne,a,y){var E,b=arguments.length,x=b<3?ne:y===null?y=Object.getOwnPropertyDescriptor(ne,a):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(oe,ne,a,y);else for(var z=oe.length-1;z>=0;z--)(E=oe[z])&&(x=(b<3?E(x):b>3?E(ne,a,x):E(ne,a))||x);return b>3&&x&&Object.defineProperty(ne,a,x),x},_e=this&&this.__param||function(oe,ne){return function(a,y){ne(a,y,oe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreService=void 0;var fe=ee(1),ie=ee(0),de=ee(33),le=ee(2),me=Object.freeze({insertMode:!1}),ae=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),he=function(oe){function ne(a,y,E,b){var x=oe.call(this)||this;return x._bufferService=y,x._logService=E,x._optionsService=b,x.isCursorInitialized=!1,x.isCursorHidden=!1,x._onData=x.register(new ie.EventEmitter),x._onUserInput=x.register(new ie.EventEmitter),x._onBinary=x.register(new ie.EventEmitter),x._scrollToBottom=a,x.register({dispose:function(){return x._scrollToBottom=void 0}}),x.modes=de.clone(me),x.decPrivateModes=de.clone(ae),x}return be(ne,oe),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=de.clone(me),this.decPrivateModes=de.clone(ae)},ne.prototype.triggerDataEvent=function(a,y){if(y===void 0&&(y=!1),!this._optionsService.options.disableStdin){var E=this._bufferService.buffer;E.ybase!==E.ydisp&&this._scrollToBottom(),y&&this._onUserInput.fire(),this._logService.debug('sending data "'+a+'"',function(){return a.split("").map(function(b){return b.charCodeAt(0)})}),this._onData.fire(a)}},ne.prototype.triggerBinaryEvent=function(a){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+a+'"',function(){return a.split("").map(function(y){return y.charCodeAt(0)})}),this._onBinary.fire(a))},ne=ye([_e(1,fe.IBufferService),_e(2,fe.ILogService),_e(3,fe.IOptionsService)],ne)}(le.Disposable);te.CoreService=he},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(ae,he,oe,ne){var a,y=arguments.length,E=y<3?he:ne===null?ne=Object.getOwnPropertyDescriptor(he,oe):ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(ae,he,oe,ne);else for(var b=ae.length-1;b>=0;b--)(a=ae[b])&&(E=(y<3?a(E):y>3?a(he,oe,E):a(he,oe))||E);return y>3&&E&&Object.defineProperty(he,oe,E),E},be=this&&this.__param||function(ae,he){return function(oe,ne){he(oe,ne,ae)}};Object.defineProperty(te,"__esModule",{value:!0}),te.CoreMouseService=void 0;var ye=ee(1),_e=ee(0),fe={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(ae){return ae.button!==4&&ae.action===1&&(ae.ctrl=!1,ae.alt=!1,ae.shift=!1,!0)}},VT200:{events:19,restrict:function(ae){return ae.action!==32}},DRAG:{events:23,restrict:function(ae){return ae.action!==32||ae.button!==3}},ANY:{events:31,restrict:function(ae){return!0}}};function ie(ae,he){var oe=(ae.ctrl?16:0)|(ae.shift?4:0)|(ae.alt?8:0);return ae.button===4?(oe|=64,oe|=ae.action):(oe|=3&ae.button,4&ae.button&&(oe|=64),8&ae.button&&(oe|=128),ae.action===32?oe|=32:ae.action!==0||he||(oe|=3)),oe}var de=String.fromCharCode,le={DEFAULT:function(ae){var he=[ie(ae,!1)+32,ae.col+32,ae.row+32];return he[0]>255||he[1]>255||he[2]>255?"":"\x1B[M"+de(he[0])+de(he[1])+de(he[2])},SGR:function(ae){var he=ae.action===0&&ae.button!==4?"m":"M";return"\x1B[<"+ie(ae,!0)+";"+ae.col+";"+ae.row+he}},me=function(){function ae(he,oe){this._bufferService=he,this._coreService=oe,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new _e.EventEmitter,this._lastEvent=null;for(var ne=0,a=Object.keys(fe);ne<a.length;ne++){var y=a[ne];this.addProtocol(y,fe[y])}for(var E=0,b=Object.keys(le);E<b.length;E++){var x=b[E];this.addEncoding(x,le[x])}this.reset()}return ae.prototype.addProtocol=function(he,oe){this._protocols[he]=oe},ae.prototype.addEncoding=function(he,oe){this._encodings[he]=oe},Object.defineProperty(ae.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(ae.prototype,"areMouseEventsActive",{get:function(){return this._protocols[this._activeProtocol].events!==0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.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}),ae.prototype.reset=function(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null},Object.defineProperty(ae.prototype,"onProtocolChange",{get:function(){return this._onProtocolChange.event},enumerable:!1,configurable:!0}),ae.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 oe=this._encodings[this._activeEncoding](he);return oe&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(oe):this._coreService.triggerDataEvent(oe,!0)),this._lastEvent=he,!0},ae.prototype.explainEvents=function(he){return{down:!!(1&he),up:!!(2&he),drag:!!(4&he),move:!!(8&he),wheel:!!(16&he)}},ae.prototype._compareEvents=function(he,oe){return he.col===oe.col&&he.row===oe.row&&he.button===oe.button&&he.action===oe.action&&he.ctrl===oe.ctrl&&he.alt===oe.alt&&he.shift===oe.shift},ae=ge([be(0,ye.IBufferService),be(1,ye.ICoreService)],ae)}();te.CoreMouseService=me},function(Ve,te,ee){"use strict";var ge=this&&this.__decorate||function(fe,ie,de,le){var me,ae=arguments.length,he=ae<3?ie:le===null?le=Object.getOwnPropertyDescriptor(ie,de):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")he=Reflect.decorate(fe,ie,de,le);else for(var oe=fe.length-1;oe>=0;oe--)(me=fe[oe])&&(he=(ae<3?me(he):ae>3?me(ie,de,he):me(ie,de))||he);return ae>3&&he&&Object.defineProperty(ie,de,he),he},be=this&&this.__param||function(fe,ie){return function(de,le){ie(de,le,fe)}};Object.defineProperty(te,"__esModule",{value:!0}),te.DirtyRowService=void 0;var ye=ee(1),_e=function(){function fe(ie){this._bufferService=ie,this.clearRange()}return Object.defineProperty(fe.prototype,"start",{get:function(){return this._start},enumerable:!1,configurable:!0}),Object.defineProperty(fe.prototype,"end",{get:function(){return this._end},enumerable:!1,configurable:!0}),fe.prototype.clearRange=function(){this._start=this._bufferService.buffer.y,this._end=this._bufferService.buffer.y},fe.prototype.markDirty=function(ie){ie<this._start?this._start=ie:ie>this._end&&(this._end=ie)},fe.prototype.markRangeDirty=function(ie,de){if(ie>de){var le=ie;ie=de,de=le}ie<this._start&&(this._start=ie),de>this._end&&(this._end=de)},fe.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},fe=ge([be(0,ye.IBufferService)],fe)}();te.DirtyRowService=_e},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeService=void 0;var ge=ee(0),be=ee(79),ye=function(){function _e(){this._providers=Object.create(null),this._active="",this._onChange=new ge.EventEmitter;var fe=new be.UnicodeV6;this.register(fe),this._active=fe.version,this._activeProvider=fe}return Object.defineProperty(_e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(_e.prototype,"activeVersion",{get:function(){return this._active},set:function(fe){if(!this._providers[fe])throw new Error('unknown Unicode version "'+fe+'"');this._active=fe,this._activeProvider=this._providers[fe],this._onChange.fire(fe)},enumerable:!1,configurable:!0}),_e.prototype.register=function(fe){this._providers[fe.version]=fe},_e.prototype.wcwidth=function(fe){return this._activeProvider.wcwidth(fe)},_e.prototype.getStringCellWidth=function(fe){for(var ie=0,de=fe.length,le=0;le<de;++le){var me=fe.charCodeAt(le);if(55296<=me&&me<=56319){if(++le>=de)return ie+this.wcwidth(me);var ae=fe.charCodeAt(le);56320<=ae&&ae<=57343?me=1024*(me-55296)+ae-56320+65536:ie+=this.wcwidth(ae)}ie+=this.wcwidth(me)}return ie},_e}();te.UnicodeService=ye},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.UnicodeV6=void 0;var ge,be=ee(15),ye=[[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]],_e=[[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]],fe=function(){function ie(){if(this.version="6",!ge){ge=new Uint8Array(65536),be.fill(ge,1),ge[0]=0,be.fill(ge,0,1,32),be.fill(ge,0,127,160),be.fill(ge,2,4352,4448),ge[9001]=2,ge[9002]=2,be.fill(ge,2,11904,42192),ge[12351]=1,be.fill(ge,2,44032,55204),be.fill(ge,2,63744,64256),be.fill(ge,2,65040,65050),be.fill(ge,2,65072,65136),be.fill(ge,2,65280,65377),be.fill(ge,2,65504,65511);for(var de=0;de<ye.length;++de)be.fill(ge,0,ye[de][0],ye[de][1]+1)}}return ie.prototype.wcwidth=function(de){return de<32?0:de<127?1:de<65536?ge[de]:function(le,me){var ae,he=0,oe=me.length-1;if(le<me[0][0]||le>me[oe][1])return!1;for(;oe>=he;)if(le>me[ae=he+oe>>1][1])he=ae+1;else{if(!(le<me[ae][0]))return!0;oe=ae-1}return!1}(de,_e)?0:de>=131072&&de<=196605||de>=196608&&de<=262141?2:1},ie}();te.UnicodeV6=fe},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.CharsetService=void 0;var ge=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(ye){this.glevel=ye,this.charset=this._charsets[ye]},be.prototype.setgCharset=function(ye,_e){this._charsets[ye]=_e,this.glevel===ye&&(this.charset=_e)},be}();te.CharsetService=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.updateWindowsModeWrappedState=void 0;var ge=ee(3);te.updateWindowsModeWrappedState=function(be){var ye=be.buffer.lines.get(be.buffer.ybase+be.buffer.y-1),_e=ye==null?void 0:ye.get(be.cols-1),fe=be.buffer.lines.get(be.buffer.ybase+be.buffer.y);fe&&_e&&(fe.isWrapped=_e[ge.CHAR_DATA_CODE_INDEX]!==ge.NULL_CELL_CODE&&_e[ge.CHAR_DATA_CODE_INDEX]!==ge.WHITESPACE_CELL_CODE)}},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.WriteBuffer=void 0;var ge=function(){function be(ye){this._action=ye,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return be.prototype.writeSync=function(ye){if(this._writeBuffer.length){for(var _e=this._bufferOffset;_e<this._writeBuffer.length;++_e){var fe=this._writeBuffer[_e],ie=this._callbacks[_e];this._action(fe),ie&&ie()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(ye)},be.prototype.write=function(ye,_e){var fe=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 fe._innerWrite()})),this._pendingData+=ye.length,this._writeBuffer.push(ye),this._callbacks.push(_e)},be.prototype._innerWrite=function(){for(var ye=this,_e=Date.now();this._writeBuffer.length>this._bufferOffset;){var fe=this._writeBuffer[this._bufferOffset],ie=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(fe),this._pendingData-=fe.length,ie&&ie(),Date.now()-_e>=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 ye._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},be}();te.WriteBuffer=ge},function(Ve,te,ee){"use strict";Object.defineProperty(te,"__esModule",{value:!0}),te.AddonManager=void 0;var ge=function(){function be(){this._addons=[]}return be.prototype.dispose=function(){for(var ye=this._addons.length-1;ye>=0;ye--)this._addons[ye].instance.dispose()},be.prototype.loadAddon=function(ye,_e){var fe=this,ie={instance:_e,dispose:_e.dispose,isDisposed:!1};this._addons.push(ie),_e.dispose=function(){return fe._wrappedAddonDispose(ie)},_e.activate(ye)},be.prototype._wrappedAddonDispose=function(ye){if(!ye.isDisposed){for(var _e=-1,fe=0;fe<this._addons.length;fe++)if(this._addons[fe]===ye){_e=fe;break}if(_e===-1)throw new Error("Could not dispose an addon that has not been loaded");ye.isDisposed=!0,ye.dispose.apply(ye.instance),this._addons.splice(_e,1)}},be}();te.AddonManager=ge}])})},62522:function(ft){"use strict";ft.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="}}]);